html_url
stringlengths
48
51
title
stringlengths
5
268
comments
stringlengths
63
51.8k
body
stringlengths
0
36.2k
comment_length
int64
16
1.52k
text
stringlengths
164
54.1k
embeddings
sequence
https://github.com/huggingface/datasets/issues/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.2508120239, -0.2407747656, -0.0531519279, 0.503803134, 0.242677629, 0.0379794091, 0.4234101176, 0.2302230299, 0.0534565076, 0.012271638, -0.0213181376, 0.3855957985, -0.2364186496, 0.4087213278, -0.073391445, 0.1519470215, 0.0036895594, 0.1174419373, 0.2415752858, 0.1663117409, -0.0428831093, 0.2773868442, -0.057136409, 0.1090653241, -0.1840186417, 0.0136174606, 0.0146283228, 0.3506194353, -0.0750770867, -0.508487463, 0.0108171804, -0.0190765858, 0.4783015251, 0.3833351433, -0.0001139213, -0.028652925, 0.3157631755, 0.0450190119, -0.422922194, -0.3848214447, -0.5591982007, 0.1110935137, 0.1526587903, -0.0374609828, -0.3507242799, -0.0653411746, -0.3116797805, -0.2656854689, 0.4028450251, 0.6623775959, 0.178203851, 0.1914704293, -0.0731055662, -0.3078444898, 0.2821202278, 0.020372944, 0.0018275606, 0.2220327407, -0.2715071142, 0.1779978126, 0.2951637506, 0.270999521, -0.4019234776, 0.1139448062, 0.5365952253, 0.0304874368, 0.3513381779, 0.0784728006, 0.1274640113, 0.1705706269, 0.5801001787, -0.136125803, -0.4543990493, -0.1849199533, -0.2141834348, -0.282492429, 0.1915265769, 0.0894621387, 0.0374889821, 0.0282423031, -0.0464703329, -0.0466800593, -0.0988202915, 0.2466036379, 0.0339197703, 0.4405599833, -0.2780038416, 0.0633563548, 0.2615090311, 0.0703384131, 0.3421870768, -0.1132722348, 0.0181239415, 0.0466640554, -0.2519854009, 0.1674025059, -0.0153580746, 0.2122866064, -0.0699797496, 0.1938644201, 0.3034310043, -0.0739919171, 0.3996637464, 0.2401907295, 0.3883313537, -0.1680296659, 0.0913827047, 0.0003887896, -0.0994112715, 0.4869205952, 0.0785982013, -0.1934863329, -0.3133123219, -0.5367279053, 0.1240956038, 0.26881814, 0.3971947134, -0.3510358036, -0.2658776045, -0.0860201418, -0.1192131862, -0.1965767741, 0.2694830596, 0.4972229898, -0.3471300006, -0.1139851362, -0.117971167, 0.2110882849, -0.2143540531, 0.0854032934, -0.1983183771, 0.2434528023, -0.3190573752, 0.0227509756, 0.1486800015, -0.5799325705, 0.5168523192, -0.0738640502, 0.0051263194, -0.3440084159, 0.1492901444, -0.2164645791, 0.177761659, 0.1814397275, 0.1935321689, 0.2570755482, -0.0537815392, -0.0760162771, -0.1820332855, 0.0855755582, -0.1849054843, -0.479770869, 0.0412795767, 0.2240626961, -0.2657831907, -0.1602721363, -0.0594209917, -0.1859488189, 0.2781680822, -0.0984314457, -0.3886997104, 0.0453321859, -0.1181020439, -0.220781222, 0.4690742791, 0.3192172945, -0.3537426293, 0.1085963696, -0.4716525674, 0.1138472706, 0.0835105702, 0.2105171382, -0.3659239113, 0.44895944, -0.3048421741, 0.132893756, 0.5610041618, -0.2565936446, 0.0060540354, 0.0853613913, -0.0421511047, -0.1606776565, 0.1342203468, -0.063041538, -0.1340705603, -0.1085646749, 0.0167824961, 0.3441396654, 0.0382881239, 0.0388525389, -0.1566990167, -0.0247691069, 0.1257413179, 0.2443983406, 0.1100836396, -0.0220542811, -0.037371058, -0.1964022666, -0.0556681119, -0.1184008718, -0.0434881337, 0.4679804146, 0.2733067274, 0.3011100888, -0.0028269668, 0.151649937, -0.2742569149, 0.1333040148, 0.0448953696, -0.277271688, -0.0668592453, 0.0106649278, -0.2895233929, 0.0034127384, -0.4520741403, 0.0989072993, 0.1053080484, 0.3138041794, 0.2326270342, -0.0971177518, -0.1190225929, -0.3059856594, 0.3305367529, -0.0151231829, -0.3088081479, 0.1135314554, -0.405138433, -0.0548964813, 0.086904034, 0.043993637, 0.1716849506, 0.117635712, 0.0150822662, 0.1787702143, 0.1243599877, 0.227449581, -0.2144690305, 0.1562109143, -0.1199653596, 0.0306926258, 0.1797364056, -0.1334499121, 0.135618493, 0.0835731253, -0.0444402322, 0.4771926701, -0.0267101228, 0.1894396394, 0.1397074908, 0.015092548, 0.2696096897, -0.1694879383, -0.0204154309, -0.1353713572, 0.0476755649, -0.1200016439, 0.1146694496, 0.0762753785, -0.0729277357, -0.1295491904, 0.3834596276, 0.0959831476, -0.0108044818, -0.2696373463, -0.2296589613, -0.1449697912, 0.0653626025, 0.4955293536, 0.3665238023, 0.2210590094, 0.0965471342, -0.0355797336, -0.053980913, -0.1855221093, 0.2379353791, 0.423758626, 0.4380970895, 0.3556295931, -0.3781281412, -0.0747242719, -0.2402071655, -0.1607343704, 0.1642103195, 0.282250762, -0.4002408981, 0.1890036017, -0.0598931499, -0.1696403176, -0.2982714772, -0.354865402, -0.1032037139, -0.2554684579, -0.1192266941, 0.2769101858, -0.2668560445, -0.0272913184, 0.0960364565, 0.0128378617, -0.0740059018, -0.0552991815, -0.3418391645, -0.2471805066, -0.170404911, 0.0550117567, 0.2183093727, 0.0958848894, 0.2658966184, -0.1865488142, 0.1083012745, -0.4633398056, -0.0825943574, -0.017645603, -0.00809744, 0.302495122, 0.2742293179, 0.0802076086, 0.2997994721, -0.246578306, 0.465375483, -0.0120982472, 0.020435391, 0.2364754528, -0.0213384405, -0.1121435761, -0.0333960205, -0.3809586167, 0.069973059, -0.4534810483, -0.3755662739, 0.0112920757, 0.1440522224, 0.2753454149, 0.3328948319, 0.2299250364, -0.2099560201, 0.3361962736, -0.2096321285, -0.2037050128, 0.1267782003, -0.2523743808, -0.2639803886, 0.330471158, -0.0450137146, 0.8056795597, -0.1035315022, -0.2581114471, -0.0281819236, 0.054154899, -0.313547641, -0.1422800869, -0.2467392087, 0.3080141544, 0.2088037729, -0.0856468678, -0.00781768, -0.3258493245, 0.0911114514, -0.2148194611, 0.2122523338, -0.2017768919, 0.8904486299, -0.005194304, 0.4429089427, 0.1470212191, -0.2118463069, 0.4529938102, -0.106380254, 0.1824466288, -0.104823485, -0.2602484226, -0.1180830747, 0.1664526463, -0.2900656164, 0.1482967436, -0.2593996823, -0.0632347241, -0.2945417166, 0.0631955341, -0.3335377276, -0.2166405469, 0.0108936122, -0.2646001279, 0.1334774345, -0.1084317863, 0.0371413603, -0.0522481203, 0.1782281846, 0.1964564323, 0.27402547, 0.179841131, -0.0360956378, -0.2892716527, -0.0228561442, -0.3024624884, 0.3309326172, -0.0449293703, 0.1445601135, -0.1725996435, -0.2284810841, 0.108591482, -0.2120635062, 0.5687654018, -0.288608104, 0.0759903938, 0.256681025, -0.1874073744, -0.4711459875, -0.2658158541, -0.0675032884, 0.2460009456, 0.0289377607, 0.4087799788, -0.1191498488, -0.4835370779, 0.1473180205, -0.0567419343, -0.0862192139, -0.2047349066, -0.347964406, -0.1231661215, -0.3823906481, -0.0772972107, -0.0697869286, 0.34709993, 0.0993614122, -0.2050060034, 0.0540419556, 0.0844746456, 0.026174657, -0.0463367775, 0.472672075, 0.033060465, 0.2310326695, 0.272346288, 0.3769769967, 0.1094539538, 0.3990898132, 0.2031018287, -0.4686417282, -0.1039526761, 0.0307145175, 0.4628866613, -0.0234796386, -0.1841690391, 0.105656974, 0.1430650949, 0.1544752419, -0.1691707522, 0.1093408838, 0.4040111601, 0.0435306467, -0.3053804338, -0.5429390073, -0.0136748273, 0.0826764479, 0.0919226408, -0.0626313612, -0.320395112, -0.2080416977, 0.2609346807, 0.4015892446, 0.6901730895, -0.0723920986, 0.2966907918, 0.5587425232, 0.0910604298, 0.0016884506, 0.2774416208, -0.1042706966, -0.5139324665, 0.1954909712, 0.0833372399, -0.1815755665, -0.0093928548, 0.2339336723, -0.1757297814, 0.2052434683, -0.219678551, 0.0933762267, -0.1733642668, 0.1602140218, -0.1688348651, -0.0502106808, -0.1218758449, 0.0497321635, -0.0692729354, 0.0820501298, -0.1036421284, -0.2097410858, 0.0337742157, -0.2309394777, 0.0748144314, 0.2753438056, 0.0081002135, 0.0343262553, -0.2805510163, -0.1951714903, 0.1213370785, 0.2447197884, 0.3164098561, 0.0351310372, -0.0893451646, 0.101099357, -0.3682294786, -0.2763565481, -0.2608575821, -0.0956430286, 0.184987098, -0.2108018249, -0.0499804318, 0.124062553, -0.0613715164, -0.3762873709, -0.0335861295, -0.0350456983, 0.2754875422, -0.4317030907, -0.2545202374, -0.1319119632, -0.1161126718, -0.1919200718, 0.1608151197, 0.2287707329, -0.1201415956, 0.0152175557, -0.1504314095, -0.2745188177, 0.0584028959, 0.5248116255, -0.1016796306, 0.1521697938, 0.6307945848, 0.0710354224, -0.1138498411, -0.2894232273, -0.2996491194, 0.0183574408, -0.2909432352, 0.1833908111, 0.2434942126, -0.0689216256, 0.2441022843, 0.3077547252, 0.1714058071, -0.0989842564, -0.0508269295, -0.5483649969, -0.0284050573, 0.0474093482, -0.1534882635, 0.3620048463, 0.1767352223, -0.3220783174, -0.0817598701, -0.1770444363, -0.2993301153, 0.0011036806, -0.1198001057, 0.2405625135, -0.2157945484, -0.2780374885, 0.2113569081, 0.0620970987, 0.1622254401, -0.3558203578, -0.0777115896, -0.2533759475, -0.0681321323, 0.1221703812, 0.1441824883, 0.0095418552, 0.1336416006, -0.1444761455, -0.3320430517, -0.1306844205, 0.0670905337, 0.1010916233, -0.0039908797, 0.2840559781, 0.0924804807, 0.0219094958, -0.1482168436, -0.1065013483, -0.199454248, -0.1743006855, 0.0085590398, 0.2015721798, -0.1814143062, -0.2146723419, 0.0438419022, 0.0030675931, 0.0793969631, 0.0792411789, 0.3128162026, -0.4647561312, 0.0515679531, 0.1602490246, 0.5055224895, 0.3906167448, -0.0799036771, 0.2140353173, 0.3118721545, 0.238157928, -0.1135246158, -0.2740479708, -0.1960723549, -0.2340989262, -0.0069742477, -0.0698654875, -0.0677563623, 0.0582613088, 0.2001819909, -0.0457283407, 0.1784251481, 0.1480000764, 0.1270187497, 0.2794733644, -0.3211748004, 0.0406146049, 0.2804034054, 0.1732444316, 0.1449830681, 0.3777579069, -0.155561924, 0.1443802565, -0.2752651572, 0.1954729408, -0.1280411631, -0.6779034138, 0.1011460274, 0.0413990989, -0.0967221558, -0.0895922408, -0.1370328218, 0.328610599, 0.031060962, 0.0625447333, -0.3678520918, 0.083988525, -0.146653071, -0.0880458355, -0.3406415284, 0.0076262462, -0.0325514041, 0.1551522911, 0.1516608, -0.0349880047, -0.0857884064, 0.087555252, -0.0400349051, -0.0436643362, 0.0709550157, 0.3961868882, -0.2319028229, -0.4020037055, 0.1886534542, -0.1219384372, -0.0789997056, 0.0003443246, 0.0715054423, 0.5281402469, 0.3324437141, 0.1592496336, 0.0043609194, -0.0478784665, -0.1837077439, -0.053014677, 0.0596840233, 0.168232128, 0.3104562759, 0.4630704522, 0.1703826487, -0.1467408538, 0.1241713837, -0.1453257352, 0.320807457, -0.0304010976, 0.1715202481, 0.1750356257, -0.2403035462, -0.2071764618, 0.2140192688, -0.5623787642, -0.2455458194, 0.3704135418, 0.0733888894, 0.0577129461, -0.1164957657, 0.059036959, 0.1694279909, 0.5225658417, 0.1972418427, 0.3079322875, -0.4567182362, -0.0008988748, -0.5817424059, -0.0127124181, 0.1645325124, 0.2716319859, 0.1598727554, 0.1856327355, -0.2448570281, -0.0757828504, 0.2462040484, 0.2971826494, 0.1082025245, 0.2338157147, -0.1574129313, -0.1347533315, 0.1514977068, -0.1274894923, 0.0899901316, -0.1791541129, 0.0747643262, -0.047213681, 0.0362292193, -0.2751495838, 0.0237009134, 0.0012947904, -0.1667187661, 0.5104473829, -0.2578531206, 0.4464896023, -0.0321036242, 0.1099808365, -0.4661690891, 0.0489511788, -0.149584651, 0.1149456576, 0.0738410726, 0.2687283456, -0.0252669789, 0.3849053085, -0.4096692204, 0.2747507393, -0.1608556658, -0.3426372111, -0.0414932482, 0.1178343743, 0.0767926872, 0.3193475604, 0.0821501687, -0.0379418992, 0.0348787792, 0.0631609559, -0.5235247612, -0.2149446011, 0.6017241478, -0.439919889, -0.048564598, -0.007045777, 0.2270692587, 0.1117745116, -0.1416445225, -0.4197170734, 0.1078706607, 0.2636763752, 0.1084363237, -0.0447178409, 0.3393389285, 0.2886269391, 0.1458837688, -0.0916725025, 0.1939832866, 0.1492438167, -0.1321776062, -0.1302172691, -0.3663119376 ]
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.2508120239, -0.2407747656, -0.0531519279, 0.503803134, 0.242677629, 0.0379794091, 0.4234101176, 0.2302230299, 0.0534565076, 0.012271638, -0.0213181376, 0.3855957985, -0.2364186496, 0.4087213278, -0.073391445, 0.1519470215, 0.0036895594, 0.1174419373, 0.2415752858, 0.1663117409, -0.0428831093, 0.2773868442, -0.057136409, 0.1090653241, -0.1840186417, 0.0136174606, 0.0146283228, 0.3506194353, -0.0750770867, -0.508487463, 0.0108171804, -0.0190765858, 0.4783015251, 0.3833351433, -0.0001139213, -0.028652925, 0.3157631755, 0.0450190119, -0.422922194, -0.3848214447, -0.5591982007, 0.1110935137, 0.1526587903, -0.0374609828, -0.3507242799, -0.0653411746, -0.3116797805, -0.2656854689, 0.4028450251, 0.6623775959, 0.178203851, 0.1914704293, -0.0731055662, -0.3078444898, 0.2821202278, 0.020372944, 0.0018275606, 0.2220327407, -0.2715071142, 0.1779978126, 0.2951637506, 0.270999521, -0.4019234776, 0.1139448062, 0.5365952253, 0.0304874368, 0.3513381779, 0.0784728006, 0.1274640113, 0.1705706269, 0.5801001787, -0.136125803, -0.4543990493, -0.1849199533, -0.2141834348, -0.282492429, 0.1915265769, 0.0894621387, 0.0374889821, 0.0282423031, -0.0464703329, -0.0466800593, -0.0988202915, 0.2466036379, 0.0339197703, 0.4405599833, -0.2780038416, 0.0633563548, 0.2615090311, 0.0703384131, 0.3421870768, -0.1132722348, 0.0181239415, 0.0466640554, -0.2519854009, 0.1674025059, -0.0153580746, 0.2122866064, -0.0699797496, 0.1938644201, 0.3034310043, -0.0739919171, 0.3996637464, 0.2401907295, 0.3883313537, -0.1680296659, 0.0913827047, 0.0003887896, -0.0994112715, 0.4869205952, 0.0785982013, -0.1934863329, -0.3133123219, -0.5367279053, 0.1240956038, 0.26881814, 0.3971947134, -0.3510358036, -0.2658776045, -0.0860201418, -0.1192131862, -0.1965767741, 0.2694830596, 0.4972229898, -0.3471300006, -0.1139851362, -0.117971167, 0.2110882849, -0.2143540531, 0.0854032934, -0.1983183771, 0.2434528023, -0.3190573752, 0.0227509756, 0.1486800015, -0.5799325705, 0.5168523192, -0.0738640502, 0.0051263194, -0.3440084159, 0.1492901444, -0.2164645791, 0.177761659, 0.1814397275, 0.1935321689, 0.2570755482, -0.0537815392, -0.0760162771, -0.1820332855, 0.0855755582, -0.1849054843, -0.479770869, 0.0412795767, 0.2240626961, -0.2657831907, -0.1602721363, -0.0594209917, -0.1859488189, 0.2781680822, -0.0984314457, -0.3886997104, 0.0453321859, -0.1181020439, -0.220781222, 0.4690742791, 0.3192172945, -0.3537426293, 0.1085963696, -0.4716525674, 0.1138472706, 0.0835105702, 0.2105171382, -0.3659239113, 0.44895944, -0.3048421741, 0.132893756, 0.5610041618, -0.2565936446, 0.0060540354, 0.0853613913, -0.0421511047, -0.1606776565, 0.1342203468, -0.063041538, -0.1340705603, -0.1085646749, 0.0167824961, 0.3441396654, 0.0382881239, 0.0388525389, -0.1566990167, -0.0247691069, 0.1257413179, 0.2443983406, 0.1100836396, -0.0220542811, -0.037371058, -0.1964022666, -0.0556681119, -0.1184008718, -0.0434881337, 0.4679804146, 0.2733067274, 0.3011100888, -0.0028269668, 0.151649937, -0.2742569149, 0.1333040148, 0.0448953696, -0.277271688, -0.0668592453, 0.0106649278, -0.2895233929, 0.0034127384, -0.4520741403, 0.0989072993, 0.1053080484, 0.3138041794, 0.2326270342, -0.0971177518, -0.1190225929, -0.3059856594, 0.3305367529, -0.0151231829, -0.3088081479, 0.1135314554, -0.405138433, -0.0548964813, 0.086904034, 0.043993637, 0.1716849506, 0.117635712, 0.0150822662, 0.1787702143, 0.1243599877, 0.227449581, -0.2144690305, 0.1562109143, -0.1199653596, 0.0306926258, 0.1797364056, -0.1334499121, 0.135618493, 0.0835731253, -0.0444402322, 0.4771926701, -0.0267101228, 0.1894396394, 0.1397074908, 0.015092548, 0.2696096897, -0.1694879383, -0.0204154309, -0.1353713572, 0.0476755649, -0.1200016439, 0.1146694496, 0.0762753785, -0.0729277357, -0.1295491904, 0.3834596276, 0.0959831476, -0.0108044818, -0.2696373463, -0.2296589613, -0.1449697912, 0.0653626025, 0.4955293536, 0.3665238023, 0.2210590094, 0.0965471342, -0.0355797336, -0.053980913, -0.1855221093, 0.2379353791, 0.423758626, 0.4380970895, 0.3556295931, -0.3781281412, -0.0747242719, -0.2402071655, -0.1607343704, 0.1642103195, 0.282250762, -0.4002408981, 0.1890036017, -0.0598931499, -0.1696403176, -0.2982714772, -0.354865402, -0.1032037139, -0.2554684579, -0.1192266941, 0.2769101858, -0.2668560445, -0.0272913184, 0.0960364565, 0.0128378617, -0.0740059018, -0.0552991815, -0.3418391645, -0.2471805066, -0.170404911, 0.0550117567, 0.2183093727, 0.0958848894, 0.2658966184, -0.1865488142, 0.1083012745, -0.4633398056, -0.0825943574, -0.017645603, -0.00809744, 0.302495122, 0.2742293179, 0.0802076086, 0.2997994721, -0.246578306, 0.465375483, -0.0120982472, 0.020435391, 0.2364754528, -0.0213384405, -0.1121435761, -0.0333960205, -0.3809586167, 0.069973059, -0.4534810483, -0.3755662739, 0.0112920757, 0.1440522224, 0.2753454149, 0.3328948319, 0.2299250364, -0.2099560201, 0.3361962736, -0.2096321285, -0.2037050128, 0.1267782003, -0.2523743808, -0.2639803886, 0.330471158, -0.0450137146, 0.8056795597, -0.1035315022, -0.2581114471, -0.0281819236, 0.054154899, -0.313547641, -0.1422800869, -0.2467392087, 0.3080141544, 0.2088037729, -0.0856468678, -0.00781768, -0.3258493245, 0.0911114514, -0.2148194611, 0.2122523338, -0.2017768919, 0.8904486299, -0.005194304, 0.4429089427, 0.1470212191, -0.2118463069, 0.4529938102, -0.106380254, 0.1824466288, -0.104823485, -0.2602484226, -0.1180830747, 0.1664526463, -0.2900656164, 0.1482967436, -0.2593996823, -0.0632347241, -0.2945417166, 0.0631955341, -0.3335377276, -0.2166405469, 0.0108936122, -0.2646001279, 0.1334774345, -0.1084317863, 0.0371413603, -0.0522481203, 0.1782281846, 0.1964564323, 0.27402547, 0.179841131, -0.0360956378, -0.2892716527, -0.0228561442, -0.3024624884, 0.3309326172, -0.0449293703, 0.1445601135, -0.1725996435, -0.2284810841, 0.108591482, -0.2120635062, 0.5687654018, -0.288608104, 0.0759903938, 0.256681025, -0.1874073744, -0.4711459875, -0.2658158541, -0.0675032884, 0.2460009456, 0.0289377607, 0.4087799788, -0.1191498488, -0.4835370779, 0.1473180205, -0.0567419343, -0.0862192139, -0.2047349066, -0.347964406, -0.1231661215, -0.3823906481, -0.0772972107, -0.0697869286, 0.34709993, 0.0993614122, -0.2050060034, 0.0540419556, 0.0844746456, 0.026174657, -0.0463367775, 0.472672075, 0.033060465, 0.2310326695, 0.272346288, 0.3769769967, 0.1094539538, 0.3990898132, 0.2031018287, -0.4686417282, -0.1039526761, 0.0307145175, 0.4628866613, -0.0234796386, -0.1841690391, 0.105656974, 0.1430650949, 0.1544752419, -0.1691707522, 0.1093408838, 0.4040111601, 0.0435306467, -0.3053804338, -0.5429390073, -0.0136748273, 0.0826764479, 0.0919226408, -0.0626313612, -0.320395112, -0.2080416977, 0.2609346807, 0.4015892446, 0.6901730895, -0.0723920986, 0.2966907918, 0.5587425232, 0.0910604298, 0.0016884506, 0.2774416208, -0.1042706966, -0.5139324665, 0.1954909712, 0.0833372399, -0.1815755665, -0.0093928548, 0.2339336723, -0.1757297814, 0.2052434683, -0.219678551, 0.0933762267, -0.1733642668, 0.1602140218, -0.1688348651, -0.0502106808, -0.1218758449, 0.0497321635, -0.0692729354, 0.0820501298, -0.1036421284, -0.2097410858, 0.0337742157, -0.2309394777, 0.0748144314, 0.2753438056, 0.0081002135, 0.0343262553, -0.2805510163, -0.1951714903, 0.1213370785, 0.2447197884, 0.3164098561, 0.0351310372, -0.0893451646, 0.101099357, -0.3682294786, -0.2763565481, -0.2608575821, -0.0956430286, 0.184987098, -0.2108018249, -0.0499804318, 0.124062553, -0.0613715164, -0.3762873709, -0.0335861295, -0.0350456983, 0.2754875422, -0.4317030907, -0.2545202374, -0.1319119632, -0.1161126718, -0.1919200718, 0.1608151197, 0.2287707329, -0.1201415956, 0.0152175557, -0.1504314095, -0.2745188177, 0.0584028959, 0.5248116255, -0.1016796306, 0.1521697938, 0.6307945848, 0.0710354224, -0.1138498411, -0.2894232273, -0.2996491194, 0.0183574408, -0.2909432352, 0.1833908111, 0.2434942126, -0.0689216256, 0.2441022843, 0.3077547252, 0.1714058071, -0.0989842564, -0.0508269295, -0.5483649969, -0.0284050573, 0.0474093482, -0.1534882635, 0.3620048463, 0.1767352223, -0.3220783174, -0.0817598701, -0.1770444363, -0.2993301153, 0.0011036806, -0.1198001057, 0.2405625135, -0.2157945484, -0.2780374885, 0.2113569081, 0.0620970987, 0.1622254401, -0.3558203578, -0.0777115896, -0.2533759475, -0.0681321323, 0.1221703812, 0.1441824883, 0.0095418552, 0.1336416006, -0.1444761455, -0.3320430517, -0.1306844205, 0.0670905337, 0.1010916233, -0.0039908797, 0.2840559781, 0.0924804807, 0.0219094958, -0.1482168436, -0.1065013483, -0.199454248, -0.1743006855, 0.0085590398, 0.2015721798, -0.1814143062, -0.2146723419, 0.0438419022, 0.0030675931, 0.0793969631, 0.0792411789, 0.3128162026, -0.4647561312, 0.0515679531, 0.1602490246, 0.5055224895, 0.3906167448, -0.0799036771, 0.2140353173, 0.3118721545, 0.238157928, -0.1135246158, -0.2740479708, -0.1960723549, -0.2340989262, -0.0069742477, -0.0698654875, -0.0677563623, 0.0582613088, 0.2001819909, -0.0457283407, 0.1784251481, 0.1480000764, 0.1270187497, 0.2794733644, -0.3211748004, 0.0406146049, 0.2804034054, 0.1732444316, 0.1449830681, 0.3777579069, -0.155561924, 0.1443802565, -0.2752651572, 0.1954729408, -0.1280411631, -0.6779034138, 0.1011460274, 0.0413990989, -0.0967221558, -0.0895922408, -0.1370328218, 0.328610599, 0.031060962, 0.0625447333, -0.3678520918, 0.083988525, -0.146653071, -0.0880458355, -0.3406415284, 0.0076262462, -0.0325514041, 0.1551522911, 0.1516608, -0.0349880047, -0.0857884064, 0.087555252, -0.0400349051, -0.0436643362, 0.0709550157, 0.3961868882, -0.2319028229, -0.4020037055, 0.1886534542, -0.1219384372, -0.0789997056, 0.0003443246, 0.0715054423, 0.5281402469, 0.3324437141, 0.1592496336, 0.0043609194, -0.0478784665, -0.1837077439, -0.053014677, 0.0596840233, 0.168232128, 0.3104562759, 0.4630704522, 0.1703826487, -0.1467408538, 0.1241713837, -0.1453257352, 0.320807457, -0.0304010976, 0.1715202481, 0.1750356257, -0.2403035462, -0.2071764618, 0.2140192688, -0.5623787642, -0.2455458194, 0.3704135418, 0.0733888894, 0.0577129461, -0.1164957657, 0.059036959, 0.1694279909, 0.5225658417, 0.1972418427, 0.3079322875, -0.4567182362, -0.0008988748, -0.5817424059, -0.0127124181, 0.1645325124, 0.2716319859, 0.1598727554, 0.1856327355, -0.2448570281, -0.0757828504, 0.2462040484, 0.2971826494, 0.1082025245, 0.2338157147, -0.1574129313, -0.1347533315, 0.1514977068, -0.1274894923, 0.0899901316, -0.1791541129, 0.0747643262, -0.047213681, 0.0362292193, -0.2751495838, 0.0237009134, 0.0012947904, -0.1667187661, 0.5104473829, -0.2578531206, 0.4464896023, -0.0321036242, 0.1099808365, -0.4661690891, 0.0489511788, -0.149584651, 0.1149456576, 0.0738410726, 0.2687283456, -0.0252669789, 0.3849053085, -0.4096692204, 0.2747507393, -0.1608556658, -0.3426372111, -0.0414932482, 0.1178343743, 0.0767926872, 0.3193475604, 0.0821501687, -0.0379418992, 0.0348787792, 0.0631609559, -0.5235247612, -0.2149446011, 0.6017241478, -0.439919889, -0.048564598, -0.007045777, 0.2270692587, 0.1117745116, -0.1416445225, -0.4197170734, 0.1078706607, 0.2636763752, 0.1084363237, -0.0447178409, 0.3393389285, 0.2886269391, 0.1458837688, -0.0916725025, 0.1939832866, 0.1492438167, -0.1321776062, -0.1302172691, -0.3663119376 ]
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.3241669238, -0.0680931062, -0.1207574233, 0.2375428975, -0.0479867347, -0.0551255904, 0.4634111524, -0.0104471454, 0.2775006294, 0.1358922571, -0.0574945994, 0.4406973422, -0.0379496254, -0.0338125266, -0.2684330642, 0.0123531884, -0.0058119255, 0.1865818948, -0.492304951, -0.1244889274, 0.0327857994, 0.013097032, -0.2001437843, -0.222433269, -0.1072915792, -0.1239840761, 0.1369383484, 0.1350971758, -0.1098113209, -0.4247671664, 0.0017358034, 0.1950881928, 0.3713119924, 0.6450659037, -0.0001175915, 0.0595058128, 0.0318344794, 0.2282908261, -0.2663004398, 0.4214523435, 0.0467982627, -0.4410391748, 0.1777762175, -0.15022102, 0.3183624148, -0.1672295183, -0.3622269928, -0.1270675659, 0.0363597833, -0.0522842929, 0.1114332899, 0.538842082, -0.5062482953, 0.0144919194, -0.0427799635, -0.2250580937, -0.1712978631, 0.3582557738, 0.7214532495, 0.0632594973, -0.4866900742, 0.2670524418, 0.066041328, 0.3211707771, 0.1695448309, 0.1509488076, 0.4048444331, -0.2836865485, -0.0620001592, 0.3078354299, 0.7381131053, -0.0354179032, -0.2990175188, -0.0910645872, 0.010506901, -0.1903960705, 0.0654632822, -0.3881120682, -0.3574894369, -0.1338219792, -0.3717270792, -0.0269219875, 0.0679101422, -0.0472424477, -0.111969173, -0.0657405704, 0.0455355532, -0.1303458065, 0.1895780116, -0.2349327952, 0.2986091375, -0.195466578, 0.1711441129, 0.1489229351, -0.6994063258, -0.0902782679, -0.2848400474, 0.0521824881, -0.0891149789, -0.01816939, 0.354893744, 0.1102725416, -0.0667484775, 0.0600797832, 0.1825923324, 0.1178169325, 0.0049759708, -0.2424708754, 0.1138005257, 0.0938198492, -0.1968665421, 0.0588540584, -0.2202973962, -0.3105730712, 0.6017608047, -0.1301608682, -0.129699856, 0.1186171696, -0.2490781248, -0.1723691374, 0.1275791973, -0.2305167317, 0.3537155092, 0.2471129, -0.1536794007, 0.4567606151, -0.2397266477, -0.050376825, -0.2576822639, -0.4324012697, -0.1131180748, -0.2418786287, -0.1623124927, 0.3175444305, -0.0372212604, -0.2119461, 0.0773526654, 0.4499235451, 0.2396336943, 0.0114683835, 0.063750349, -0.2298670113, -0.1895277202, -0.0006906859, -0.0946099833, 0.3075330555, 0.0369766802, 0.1128362715, -0.068998307, 0.2015662789, -0.6437552571, 0.0785502046, -0.0394439101, 0.1380126774, 0.2078983635, -0.1920043528, -0.274797231, -0.0646829382, -0.1752679497, 0.0844001472, 0.057530012, -0.3610057533, -0.0583950356, -0.089168638, -0.0122568822, 0.3467794955, -0.2351539731, 0.0202757344, -0.1796611398, 0.0347962342, 0.4447408617, 0.432410121, -0.3443000019, 0.6609276533, -0.4009300768, -0.2704448998, 0.481755048, -0.2173742652, -0.432020843, 0.7465630174, -0.1581311673, 0.2618145049, 0.312427938, 0.4026634395, 0.4636732042, -0.2787518203, 0.2423097193, 0.192070961, 0.1954513788, 0.2177640498, -0.1472033262, 0.1382673234, 0.2342142612, 0.2169909179, -0.0854832828, 0.3467282057, -0.0216154139, -0.2039887011, 0.4737630486, -0.2093395442, -0.0713678822, 0.3619622588, -0.1518403292, -0.1550885439, 0.1403793842, 0.1130171344, -0.5651845336, 0.2188804299, 0.0174574424, -0.2443376184, 0.3122855723, 0.1191146895, -0.1705145836, 0.0810039192, -0.2775759995, 0.0633914098, 0.0383196808, 0.1155602485, -0.1098964438, -0.3375314474, 0.0054838201, 0.3593554795, -0.0542125851, 0.0724647045, 0.1110631451, 0.2941325307, 0.4734765887, -0.1357279718, 0.22661677, -0.3497341275, -0.0022916789, -0.1050761491, -0.1363228112, 0.254938066, 0.2548445761, 0.4663393795, 0.4570466876, 0.0839059353, 0.1968623698, 0.0920431763, 0.151091516, -0.1182598621, 0.2299345434, -0.1504811496, 0.3272108138, 0.3399003148, -0.431476295, 0.3046648502, -0.1557521969, -0.2725872397, 0.0748400018, 0.0128784124, -0.0994905084, 0.3636082709, 0.4137882888, 0.189122349, 0.5586001277, 0.2135505974, -0.1636329442, 0.1299818456, 0.0829001516, 0.0867925137, -0.2338928133, 0.1753520072, -0.2699448764, -0.0051417276, -0.1918001622, -0.0197300334, 0.4462365806, 0.0328503661, 0.1807247102, -0.1930124164, 0.2182889283, -0.1475968063, -0.0196375903, 0.2065649778, 0.2737129331, 0.4008261859, -0.0294163246, -0.0897582769, -0.3164696097, -0.2832612097, 0.0854961276, 0.3603065908, -0.0995680392, 0.2097771019, -0.2502037287, 0.1953951865, -0.1894830614, -0.3557634652, -0.1991956979, -0.2604181767, -0.1925880313, 0.0787442848, 0.2964641452, -0.009786333, 0.1002822593, -0.0192542896, 0.2309795469, 0.0735186189, -0.169291079, 0.0327541903, -0.0956840143, -0.0191796981, 0.2025863379, -0.1779783815, 0.063596651, -0.0934722871, 0.1840914935, -0.3834201097, 0.1968762279, -0.1433965713, 0.0445305295, 0.16536057, -0.0252619293, 0.3253191411, -0.0218572114, -0.1016791686, 0.1156652644, -0.138293162, -0.031627126, -0.0245854948, -0.1935524493, 0.1150002852, 0.3658194244, 0.0710403919, -0.2702753544, -0.1006648242, -0.2287166119, 0.0387517214, 0.1328376383, -0.1525256932, -0.112602517, 0.0776154101, 0.2564550638, 0.0264568254, -0.0234878138, -0.7568567991, 0.4094847143, 0.0923794582, 0.0480865017, -0.2590309083, -0.11156822, 0.2096381187, 0.2576954067, -0.4277703166, 0.023391787, -0.1314117312, 0.2236768156, -0.1926168799, 0.1394825429, -0.1026300713, -0.1637044549, -0.0642289743, 0.0713584125, -0.0732138902, -0.1602993757, -0.2642505169, 0.0712502226, -0.1342387646, 0.2918333709, -0.2233042568, 0.4822227061, 0.2165642828, -0.1205236763, 0.0885194018, -0.0922472104, 0.0981976986, 0.1598917544, -0.3891575038, -0.2941408455, -0.1147343516, -0.3326258957, 0.3235488534, -0.3457532227, 0.0190702304, 0.0377802327, -0.0053884163, -0.1034276485, -0.009618002, 0.1407834888, -0.1608003676, 0.2850821018, -0.1276007891, 0.0551185571, -0.3122488558, -0.1316485703, 0.0756107718, 0.1663701385, 0.0100022815, -0.3491047919, -0.4216746688, 0.1617168039, -0.4815858305, 0.0578871034, -0.0331894532, 0.5251984596, 0.3719905615, 0.0860172138, 0.3544751406, 0.0799852684, 0.5257921219, 0.2051192671, -0.2232923359, 0.0023487005, -0.4758289456, 0.0141723845, -0.1697369069, -0.2489892244, 0.2695686519, 0.3460758328, 0.4094495177, -0.0674000829, -0.1872820854, -0.0953923389, 0.1143278927, -0.2102627009, -0.5684306622, -0.1520519108, 0.1021381617, 0.1626298428, 0.1056237519, -0.5356792212, 0.2143602967, 0.0322543643, -0.0189000405, -0.0836556554, -0.2037845254, 0.3269469142, 0.0747585073, 0.1129340008, 0.1472715288, 0.3608942926, 0.0147419749, -0.0684389919, 0.1255160123, 0.1568818837, -0.0220571887, -0.1695780009, 0.1808068007, 0.0972108692, 0.3712499738, 0.2193919867, -0.0518941693, 0.1839530319, -0.1259786934, 0.1605491787, -0.1819386631, -0.2642448246, 0.5638888478, 0.0309710447, -0.4069399536, -0.1719617397, 0.483460784, 0.0989405662, -0.0105493655, 0.3498976827, -0.5904159546, 0.0142254364, -0.1594043225, 0.1420181394, 0.7446188331, -0.1264877021, -0.0125971911, 0.0659487993, 0.3584727049, 0.0503185168, -0.1736757904, -0.0291846301, -0.2662466764, -0.4274469018, 0.0013967213, -0.3462821543, 0.4885745049, 0.1571310163, -0.0712065324, 0.1693329811, -0.1653467119, -0.0267517846, -0.182356745, 0.1607089192, -0.0941548347, -0.4092693329, -0.3305322528, 0.0502946302, -0.1155603006, 0.164143309, -0.1359094083, -0.1962173134, 0.0800795704, 0.2977903783, -0.0549249128, -0.1854810566, -0.3081088662, -0.0060287104, 0.5209765434, -0.2394130528, -0.1247559488, 0.0293190721, 0.0641799048, -0.1590399444, 0.0430512503, 0.2172894776, -0.0277932342, 0.3600897193, 0.1343170106, -0.2849561274, 0.1039279848, -0.004828766, 0.2251031399, 0.3471112549, 0.0937861353, -0.2201294154, 0.0377965942, 0.1709918976, 0.2526410222, -0.2016206533, -0.1696676165, 0.2142751515, 0.149772346, -0.1001045555, 0.0529836975, 0.4944341779, -0.2453265935, 0.397969842, 0.0484554097, -0.3939451575, -0.1342612654, 0.2439270318, 0.396648556, -0.0035279184, 0.5114948153, 0.0457234383, -0.2285663486, -0.1265177429, 0.2642817199, 0.0848127827, -0.2579107881, 0.2370845675, 0.0847056657, 0.3823506534, 0.1951826066, 0.0365416147, -0.0463558771, -0.0795821697, -0.4196229577, -0.3935624063, -0.138342157, -0.1341870427, -0.034408506, 0.025478743, -0.2641666532, -0.1282234341, -0.0912756473, 0.2852680683, -0.1915304959, -0.116488792, -0.087803483, -0.0669836551, 0.1230993941, -0.2324831337, 0.098925218, 0.3156077862, 0.0332669877, 0.136262238, -0.038309373, -0.172020182, 0.0935095027, 0.1423201859, -0.0538632683, -0.156554848, 0.0857354179, -0.0315397382, 0.116631642, -0.1002721861, -0.0595491938, -0.0775009394, 0.0313653983, 0.051088728, 0.3887102306, -0.1345024407, -0.1091193408, 0.2731110454, 0.0256584901, 0.2094881535, 0.2166256607, -0.0087039554, 0.1175244823, -0.2616749704, -0.2864659727, 0.1258471608, 0.093243897, -0.1184823737, 0.3263694644, -0.5417137146, 0.28818205, 0.0469427928, 0.1405950487, 0.4909068048, -0.1122057065, -0.3595328629, -0.0469781868, 0.1188166887, -0.0551327057, -0.3106612265, -0.0435382091, 0.1552539468, -0.0671744794, 0.1591501981, -0.0264548734, 0.0291599464, 0.103374362, -0.1961595118, -0.0410269909, -0.2628025711, -0.147314921, 0.1206524149, 0.2635149658, 0.1223749816, 0.3378016353, 0.4258939922, -0.241326049, 0.1406070143, 0.0870904028, 0.2866997719, 0.3331165314, 0.1572490782, -0.1672668159, -0.4285088778, -0.102202639, 0.5111820698, -0.2431721538, -0.1594284475, 0.0612281002, -0.0594524927, 0.1479031295, -0.1062040925, -0.2463629395, 0.2721638978, -0.1473353207, -0.263011694, 0.0548409894, 0.0015626252, -0.136614576, 0.0878091305, -0.2911334634, 0.0286304988, -0.2513046861, 0.257212162, 0.1657458246, -0.4683098197, -0.4442837536, 0.1463362724, -0.090417847, -0.2134360224, 0.0612118952, -0.1709277779, 0.2752651572, 0.1769126207, 0.2811592221, 0.2175333798, 0.3926662803, 0.084073469, -0.1159076467, -0.3157944381, -0.1060001403, 0.1331924945, 0.1759581268, -0.2666061521, 0.0788064674, 0.2236632854, 0.0109629063, -0.219742313, -0.2131664604, -0.1389033645, -0.1174118891, -0.4200174212, 0.2254899442, 0.1522700042, 0.2054165453, -0.2552954853, 0.0101230703, -0.3215102255, -0.2694218457, 0.3446246386, -0.471599102, -0.0606435165, -0.0044036848, 0.0155245671, -0.4134435058, 0.737255156, 0.4419791698, 0.3989586234, -0.3557167053, -0.189586252, -0.4855271876, -0.1053840593, -0.2492278516, -0.1253550351, 0.314922452, 0.4505526423, 0.0909564942, 0.3465803862, 0.4759300947, 0.0007373211, -0.2330503613, 0.106046319, -0.3805702329, 0.0859564692, -0.2519360781, 0.1973507255, -0.2169901729, -0.2561092675, 0.5060574412, 0.0261226837, 0.08500956, 0.1327456832, 0.0064478689, 0.2202894092, 0.5054417849, 0.1820294112, -0.0491192378, 0.0127557954, 0.1249503121, -0.0120062921, -0.0260486063, -0.2467250824, 0.0929744989, 0.0209725797, 0.0895192847, -0.0480326638, -0.0645181313, 0.1016281918, -0.1225496009, 0.3272275031, -0.1230131462, -0.0839083493, -0.1053655148, -0.0240381174, 0.0994607359, 0.2704178989, 0.0243563764, 0.3296840787, 0.3303028643, 0.2231872231, -0.3987431228, -0.0195250642, 0.1854535788, -0.4523903131, -0.2727067769, -0.2303162962, 0.2011426836, 0.1696783602, 0.2593236566, -0.1572711617, 0.1248510778, 0.5009221435, -0.0768935382, 0.1301144809, 0.3328209221, -0.0222503003, 0.3303353786, -0.0723400936, 0.1694294512, -0.06518621, -0.1960438788, -0.2223622352, -0.0946174487 ]
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.316660136, -0.1029364243, -0.0979053453, 0.2440701127, -0.0499429889, -0.0601619482, 0.4438635409, 0.0588656813, 0.2712094188, 0.1299745142, -0.1063352376, 0.4185296297, -0.0331582054, -0.0275142062, -0.2983724177, -0.0049311807, 0.0067098089, 0.1882977784, -0.4768674076, -0.1194709539, 0.0179647263, 0.0545862429, -0.2014027536, -0.1911983937, -0.1009984016, -0.1206042022, 0.1409039497, 0.1710790098, -0.1337467581, -0.4246098399, -0.0138662541, 0.1935267597, 0.3952451646, 0.6482262611, -0.0001178202, 0.0566184893, 0.0264995042, 0.2120859027, -0.2565659285, 0.4005937576, 0.0597716048, -0.4337362647, 0.1683364809, -0.1513478458, 0.2930934131, -0.1966490448, -0.3613283634, -0.1367076486, 0.0631073862, -0.0252261236, 0.0939410999, 0.5212464333, -0.4703531861, 0.0297145229, -0.0337097868, -0.1853239238, -0.1692754924, 0.381485194, 0.7359796762, 0.0564531311, -0.505846858, 0.2526676655, 0.0517945699, 0.3203216791, 0.1774704605, 0.1548086703, 0.393853128, -0.2973324955, -0.0632715374, 0.3236044347, 0.7466248274, -0.0210778117, -0.2943344116, -0.0697090328, -0.0124599049, -0.219605431, 0.0809601694, -0.3400807083, -0.332406193, -0.1357451379, -0.3238391876, -0.0309910122, 0.0235058572, -0.0490882657, -0.0860464722, -0.0660923198, 0.0649643764, -0.1187762767, 0.2368848175, -0.2670114338, 0.3284731507, -0.1962853521, 0.1320452839, 0.1515495628, -0.6910883188, -0.1019918323, -0.3191578984, 0.031994991, -0.0595747046, 0.0018936326, 0.3282824457, 0.1334093064, -0.0833956301, 0.0504405014, 0.1658607274, 0.1284783632, -0.0052223867, -0.2074885666, 0.1097569764, 0.1336805522, -0.2376728207, 0.0282059945, -0.2098190486, -0.3414177895, 0.5878217816, -0.1503876895, -0.1432618648, 0.1301597804, -0.224359259, -0.2226840407, 0.1200110912, -0.2705475986, 0.3614212573, 0.242931664, -0.1394592524, 0.4287490845, -0.2386575341, -0.0481597409, -0.2818554342, -0.4302233756, -0.0740945414, -0.2263041586, -0.1469934285, 0.3179360628, -0.0038822824, -0.2084018737, 0.0603289381, 0.4574334323, 0.2425085753, -0.0128222853, 0.1101612896, -0.2686153948, -0.1184237152, -0.0063188113, -0.120620206, 0.306160301, 0.0516658723, 0.0760857165, -0.0969515517, 0.183252573, -0.6864608526, 0.0834371522, -0.0672796071, 0.1188881397, 0.2085927129, -0.188648358, -0.2580999732, -0.0979589298, -0.2360370308, -0.0075426395, 0.0347405039, -0.3694817722, -0.0533454865, -0.0692519844, 0.0106375711, 0.3819203079, -0.1973308325, 0.0350575484, -0.1582670063, 0.0454130359, 0.4544562995, 0.4650475681, -0.3375992477, 0.6549204588, -0.4523155391, -0.2464647442, 0.4832214415, -0.2251609117, -0.4284914732, 0.8008060455, -0.1540123671, 0.2838915586, 0.3193063438, 0.4010232389, 0.4309623837, -0.2910651267, 0.1836388707, 0.175156936, 0.2073604167, 0.2159060389, -0.1610919237, 0.1502372175, 0.2100467682, 0.2198770493, -0.0866751, 0.3731678426, 0.0138056958, -0.2445846498, 0.5300356746, -0.2338069379, -0.0645176619, 0.3581279814, -0.1276017427, -0.1772906631, 0.1632807106, 0.1161283404, -0.5292483568, 0.2247516513, -0.0182533413, -0.2675393224, 0.3040396571, 0.1315129548, -0.173222363, 0.0576085746, -0.2893500924, 0.0605176091, 0.0344242454, 0.1301122904, -0.1397274584, -0.3061436713, -0.0136181042, 0.3415115476, -0.0361141786, 0.0500602126, 0.0910874903, 0.2567868233, 0.4768993258, -0.1074485555, 0.2059674412, -0.3815588057, 0.0034205676, -0.1245019808, -0.143128708, 0.2594468892, 0.2545199394, 0.4919040799, 0.480160147, 0.1059655175, 0.2099206746, 0.0794370994, 0.1212285832, -0.1313033402, 0.2305027097, -0.1494423896, 0.3068238795, 0.3459584117, -0.4667882919, 0.3317513168, -0.1355158687, -0.2834476531, 0.0963178799, -0.0036895352, -0.0947325528, 0.4250706732, 0.4221169949, 0.2127612829, 0.5241931081, 0.2097857445, -0.16578044, 0.1091376841, 0.1247465685, 0.0873470008, -0.2630184889, 0.1912242323, -0.2478467822, 0.013132453, -0.1887077689, -0.020451786, 0.4574694037, 0.0307618715, 0.1961123496, -0.1940345615, 0.2421046793, -0.1629880518, -0.0085570188, 0.2014560848, 0.2979939282, 0.4072521031, -0.0514674149, -0.0824854597, -0.2856568992, -0.3075769246, 0.0966851264, 0.3380292058, -0.1108183488, 0.2201797366, -0.2431993484, 0.1831481904, -0.1834977269, -0.3231661618, -0.2017692178, -0.2333123386, -0.2080876678, 0.1413586587, 0.3014653623, -0.0248410888, 0.1472410709, -0.0204528254, 0.2273661792, 0.0493648872, -0.1851490587, 0.0364045128, -0.0934501812, -0.0383995622, 0.2595828474, -0.172471121, 0.0450632758, -0.1190327778, 0.1774958819, -0.3923736811, 0.2000943571, -0.1399608403, 0.0718212277, 0.1724396646, -0.0584422909, 0.359505564, -0.0697539449, -0.097547926, 0.1009123772, -0.1151340008, -0.0050508371, 0.0129500451, -0.2145969868, 0.1132047251, 0.3765967488, 0.0537092015, -0.276766032, -0.1288031489, -0.1705852896, 0.0340352692, 0.1489662081, -0.1220610663, -0.130559504, 0.065579541, 0.2450956404, 0.0501667745, 0.0157430544, -0.7621059418, 0.3951427341, 0.0677167401, 0.015577198, -0.2487182617, -0.0788240433, 0.1925944388, 0.2424007803, -0.4438735545, 0.0044750385, -0.1068582237, 0.2340215892, -0.2126052976, 0.1059339121, -0.1001094505, -0.1356115192, -0.0600721873, 0.0671861023, -0.046825707, -0.1423874497, -0.2593167722, 0.0523370728, -0.0820426121, 0.27099967, -0.2003936172, 0.4641515315, 0.2466201037, -0.0860851184, 0.1353131533, -0.107370913, 0.0927096084, 0.1337202042, -0.3944265246, -0.2607372999, -0.1174354032, -0.3128914833, 0.3140818179, -0.3539557457, 0.0119828004, 0.0010053084, 0.001441602, -0.0945530757, -0.0288458485, 0.154630363, -0.1546778232, 0.2852308452, -0.1361413002, 0.0237185657, -0.3096565902, -0.1658521742, 0.1099758372, 0.2008670121, 0.0345289521, -0.3326033354, -0.4072930515, 0.1362867951, -0.4539999366, 0.04848326, -0.009008931, 0.5288020372, 0.3669135571, 0.0660329461, 0.3438120484, 0.0605068021, 0.5548290014, 0.2545395792, -0.2080110461, 0.0195859801, -0.4589508474, 0.0202270262, -0.1629422605, -0.2597131729, 0.2689764798, 0.3551840186, 0.4644610584, -0.0557688549, -0.2231533229, -0.1256972551, 0.1310104579, -0.1777798235, -0.5715379119, -0.1179524735, 0.1032797396, 0.1491022259, 0.1027581468, -0.5400913358, 0.2180645764, 0.0086473031, -0.0137989493, -0.0727660283, -0.2045612484, 0.3114061356, 0.0704572201, 0.1319791377, 0.1789389402, 0.3548608124, 0.0108652394, -0.0264908522, 0.1380885243, 0.1556931436, -0.0258880276, -0.1709598601, 0.1659112275, 0.0766542628, 0.3214378655, 0.2069889903, -0.0495261289, 0.1642780602, -0.1335683465, 0.1671285778, -0.1898438036, -0.236457333, 0.5697369576, 0.014337373, -0.4116794467, -0.1541274339, 0.4692335725, 0.0824371129, -0.0329309441, 0.3657380342, -0.5970938802, 0.0303878542, -0.1592685729, 0.1182077676, 0.7345678806, -0.1399645358, -0.0110858716, 0.0630709529, 0.3613533974, 0.0445492677, -0.1997786462, -0.0245237201, -0.2633059621, -0.4968054891, -0.0064576864, -0.3365731239, 0.4635764956, 0.1743907034, -0.0789045095, 0.1565501392, -0.1058638245, -0.0809654146, -0.1944641024, 0.234571144, -0.0844627023, -0.4102790356, -0.2810541093, 0.0388458371, -0.1339752525, 0.1421444714, -0.1132422313, -0.2350192666, 0.0851002634, 0.3290153444, -0.0351833627, -0.1962545067, -0.312446624, -0.0120794009, 0.4914209247, -0.2618904114, -0.1324982792, 0.0706864595, 0.0515629835, -0.1660015583, 0.0156616531, 0.2186150253, -0.011865478, 0.3512447178, 0.1358560622, -0.2737429142, 0.1267368942, -0.0248626266, 0.2071804851, 0.2973388433, 0.0734464973, -0.2179531306, 0.0671455041, 0.1551452279, 0.2528366745, -0.1812250763, -0.1727755815, 0.1670878679, 0.089841336, -0.078078866, 0.0423073582, 0.4858026803, -0.234353438, 0.405357033, 0.0650555417, -0.424410224, -0.1394930333, 0.255944103, 0.3345215917, -0.0433805473, 0.5527669191, 0.054233972, -0.2101469934, -0.1225173101, 0.3144050241, 0.0625273287, -0.2677162886, 0.2483634055, 0.1136026308, 0.4252675772, 0.2227356136, 0.0260568708, -0.0250558313, -0.0971147493, -0.3878438473, -0.3976694643, -0.1520537585, -0.1582999378, -0.0333077684, 0.0078741265, -0.2520015836, -0.1751627177, -0.0461983494, 0.265078187, -0.1847982705, -0.0912906379, -0.0756389126, -0.0717387721, 0.1688822061, -0.1944399178, 0.1162433103, 0.3230673671, 0.0221843477, 0.0959104523, -0.0278773811, -0.1538805515, 0.0664540902, 0.1495305449, -0.0937716514, -0.1992666572, 0.0827972144, -0.0799872801, 0.0872306451, -0.1243393645, -0.1106039733, -0.1067116037, -0.0078492193, 0.0647784919, 0.3694910109, -0.1574408263, -0.1222183406, 0.2708649337, 0.0151600493, 0.1746545434, 0.1952190548, -0.0044966671, 0.1171732619, -0.2872150242, -0.2666617632, 0.1080244929, 0.1165787056, -0.1188653484, 0.384185791, -0.5312281847, 0.293806076, 0.0472393706, 0.1531579047, 0.4938795269, -0.1071816981, -0.3221667707, -0.0204021186, 0.1087444723, -0.0412739478, -0.3164401054, -0.0432353355, 0.1390949935, -0.0700433925, 0.1413058937, -0.0209869202, 0.0084887575, 0.1209070832, -0.178774029, -0.0318040662, -0.2754975557, -0.1832911819, 0.1137367934, 0.2706339657, 0.0924994126, 0.3110260665, 0.4216329157, -0.2320676744, 0.1466448456, 0.0508888848, 0.2746365964, 0.3467850983, 0.1904751211, -0.1923954934, -0.4684843421, -0.119115904, 0.4923175275, -0.2387518883, -0.1527888477, 0.045761589, -0.0554563105, 0.1530506462, -0.1237030923, -0.2178712189, 0.2652501166, -0.1303157806, -0.237598449, 0.0564868823, -0.006806042, -0.1462870687, 0.0895876437, -0.2862946391, 0.0816505924, -0.2494116277, 0.3162237406, 0.1634909958, -0.4218572974, -0.4552078545, 0.1364049613, -0.0514431, -0.2444346398, 0.0437281393, -0.1586105973, 0.2364048958, 0.1942925751, 0.2766426802, 0.230755657, 0.4069310725, 0.0945905074, -0.086499162, -0.3239960372, -0.09404964, 0.1422660798, 0.1759309322, -0.2421972901, 0.0937009975, 0.2388683558, -0.0122271106, -0.2029806674, -0.2131847441, -0.1822449118, -0.1011533886, -0.4517957568, 0.1729628444, 0.1904039383, 0.1621839851, -0.2738578618, -0.0217473209, -0.3191104829, -0.2476678938, 0.3361474872, -0.4791127145, -0.033463411, -0.000531389, 0.0150804315, -0.3787365556, 0.7244367003, 0.4265891612, 0.3731871247, -0.3712475598, -0.2031195164, -0.4963702559, -0.1356545091, -0.1927956641, -0.0929637775, 0.3313574195, 0.4202613235, 0.0891366601, 0.2848302126, 0.4489075243, -0.0367926061, -0.2154840082, 0.1458652616, -0.3762746751, 0.0610195063, -0.2251273096, 0.2461048663, -0.230422169, -0.2388390452, 0.520016253, -0.0023021246, 0.075883843, 0.1667213142, -0.0106623759, 0.2384665161, 0.5113661885, 0.1818321347, -0.0143393641, 0.0355592333, 0.0796926022, 0.0058667585, -0.0101931151, -0.2185800374, 0.0669597834, 0.0282929298, 0.0977740362, -0.0449021012, -0.0518784076, 0.0738148242, -0.1508273184, 0.3138605058, -0.1692913175, -0.0898571759, -0.1428131908, -0.0491730943, 0.1282467544, 0.2565405667, 0.0382507443, 0.3413083255, 0.3397578597, 0.2115655094, -0.4215074778, -0.0126902256, 0.170415014, -0.43889153, -0.2576791346, -0.1882521212, 0.2134844065, 0.1332677603, 0.2981817424, -0.1307427138, 0.1505236775, 0.518191278, -0.05944518, 0.1413767934, 0.3339853585, -0.0212695096, 0.3372216821, -0.0530972406, 0.1800503135, -0.018349776, -0.2241743356, -0.2240966856, -0.0788605586 ]
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.5215907693, -0.0397975221, -0.1209278107, 0.413828671, 0.3087592125, 0.3442182839, 0.4162841737, 0.4116173089, 0.1893083006, -0.1259102225, -0.2459376007, -0.0363802686, -0.2387998998, 0.1189185232, -0.1006124169, -0.193389222, -0.109389469, -0.0083493162, 0.0082315775, 0.0248100441, -0.1954828352, 0.2631106973, -0.4074179828, -0.0073812287, -0.5533471107, -0.2076043785, 0.0664418489, 0.2464725226, -0.1878923625, -0.3777329326, 0.4374704957, 0.0338274017, 0.298522532, 0.4265398681, -0.0001084289, 0.0661218464, 0.5560091138, -0.1408036947, -0.3377950788, -0.2855278552, -0.2910868824, -0.0734333992, 0.2554955184, -0.2121905833, -0.0610393323, -0.2735612392, -0.0876793712, -0.4681125283, 0.3000150323, 0.4594838321, 0.2551243901, -0.030522937, 0.0760369077, -0.1456567496, 0.0994298086, 0.1825696081, 0.0096921977, 0.3030391634, 0.0760117099, 0.0173889361, 0.2145229429, 0.0415253639, -0.2540516555, -0.037988741, 0.2962742448, 0.0274886731, 0.0673013702, -0.4677698016, 0.0347380973, 0.2485589087, 0.6612052321, -0.0836042687, -0.3514131606, -0.0572895557, 0.1594482213, -0.2821140885, 0.1125694439, 0.2813577652, -0.1202668026, 0.1045411527, -0.4093437493, -0.0662198439, -0.0858247429, 0.1770365536, 0.0300608482, -0.0702763796, 0.059068881, 0.0750905499, 0.2223214954, -0.1004088596, 0.3060331941, 0.0287063122, 0.0114888577, 0.1601479799, -0.2722391486, 0.0616547465, -0.3099354208, 0.0013536994, -0.0696112737, 0.2496412694, -0.20697622, -0.021083666, -0.0292112753, 0.2595464587, 0.2834865749, 0.1375844181, 0.038836211, 0.4064241052, 0.1448390633, 0.2383132875, -0.2738072872, -0.1059612706, -0.2260228842, -0.1501699686, 0.0980361849, 0.1302990615, 0.0258588754, -0.1813313812, -0.5039566159, -0.0179435816, -0.1861051917, 0.0018605017, 0.3757008314, 0.3940537274, -0.1082345992, 0.1711022556, 0.1874575615, 0.3105210364, -0.1181693152, -0.0630417243, -0.1855239421, 0.2731184065, -0.18487598, 0.0785205737, 0.4066706896, -0.1432266235, 0.4070622921, 0.0138800703, 0.0988443419, -0.2059770823, 0.1962587088, -0.3265182078, 0.0474713445, 0.3069473803, 0.2882389128, 0.1749824136, 0.1750797927, -0.0222158935, -0.12192633, 0.0434904695, -0.2463379502, -0.4131353199, -0.1829317212, 0.2787932158, -0.0036364803, -0.055039525, -0.4261501133, -0.0292975195, 0.0431885011, -0.1881003082, -0.175845921, -0.3051406145, -0.1755625755, -0.1236034185, 0.4283628464, 0.4742211699, -0.281942755, -0.0677017942, -0.354587853, -0.1019598916, 0.2071656585, 0.2522234023, -0.3016600013, 0.2245973051, -0.3644295633, 0.1026925966, 0.3114511669, -0.4896247983, -0.1315891743, 0.3070099056, 0.151950866, 0.1178987548, 0.0510697924, 0.117821604, 0.3234885633, 0.0152815664, 0.2373961508, 0.4272212982, -0.0333048813, -0.1566787064, -0.0633247867, -0.2016085237, 0.1954357475, 0.3601022363, 0.3082617223, 0.0021153502, 0.0012145481, 0.2097963989, 0.2742596269, 0.1175744161, -0.0408722088, 0.206319645, -0.0526261926, 0.3531843126, -0.0541508235, -0.1990601867, -0.4411433935, 0.1967228949, 0.2666047812, -0.046509631, -0.1574426293, -0.1011872217, -0.275845468, -0.1793881655, -0.2391405255, 0.0034422842, 0.1849972308, -0.0831261575, -0.0139210289, 0.0582016297, -0.4372184575, 0.3967027068, -0.1066203788, 0.1430695802, -0.3454018831, 0.3588091135, -0.1727035791, -0.2236958742, 0.1571167409, 0.1187443957, 0.1863099933, -0.249666512, -0.0465862043, 0.4384958744, 0.3271713555, -0.0282259788, -0.0712759793, -0.2227296382, 0.1980132163, -0.3737979829, 0.1602868885, -0.1303506643, 0.0517518371, -0.1354400218, -0.0591691732, 0.1639061719, -0.2817700207, 0.2440554649, 0.2280350626, 0.1386641711, 0.2511509061, -0.0994583219, -0.0211281497, -0.4406083226, 0.1827892065, -0.0190275107, 0.0183313359, -0.0145885907, -0.262970686, -0.2127720267, 0.4115472138, 0.1476502866, -0.0533785932, 0.138818562, -0.1717076749, 0.102297619, -0.0761988238, 0.151296407, 0.2494869679, 0.1761388928, -0.0901042521, -0.0738935098, 0.137101233, -0.1112425327, 0.2687685192, 0.0630815104, 0.1386986822, 0.3271504045, -0.1574338228, -0.04321656, -0.3005726933, -0.3626558185, 0.1164299771, 0.2661465108, -0.3761329353, -0.0721555427, -0.3137324154, -0.1708399057, -0.0889625996, -0.3290139735, -0.0407064818, -0.3265829384, -0.087656863, 0.3447711468, 0.3259419203, 0.1502281427, -0.2954137325, -0.1498265415, -0.0587890632, -0.0474689715, -0.0757707283, -0.2140562534, -0.1474245042, 0.1250645369, 0.4519131482, 0.1995559335, 0.2789731324, -0.3943607509, -0.0972727239, 0.0210900735, 0.1583138257, -0.0527740978, -0.137291953, 0.1901930869, 0.1164053902, 0.248075828, 0.1137988716, -0.5119879246, 0.3313747346, -0.1434603631, 0.0764829144, 0.1595187485, 0.0767458379, -0.0790888369, 0.0146053005, -0.4780642688, -0.4822545052, -0.3378785551, -0.0881934613, 0.1694436818, 0.0430158116, 0.2023379952, 0.1366271377, 0.1154307351, 0.318382442, 0.1276843995, -0.0295815896, -0.3274248838, 0.3202657104, -0.2303407937, -0.1603824049, 0.2412950099, 0.1050816923, 0.1461466402, 0.0087437611, -0.4140425026, 0.0979011506, -0.0617495552, 0.1573086083, -0.0945535153, -0.1469499916, -0.0430617072, 0.069940649, -0.0419445448, 0.0470373966, -0.0949977487, -0.0371988192, -0.0491983369, 0.160198316, -0.1255296618, 0.5187343359, -0.3258315623, 0.5013354421, 0.2936229706, -0.2053152919, 0.3749496639, -0.1927378476, 0.1645800471, -0.2501035929, -0.6196157932, -0.1546027511, -0.1297272742, -0.1464299262, -0.0048479699, -0.1120475009, -0.189454928, -0.2324506044, 0.126452446, -0.3696001768, -0.1551600397, 0.0012162259, -0.3850668967, 0.0758725479, -0.2124610394, 0.1771602184, -0.0284016598, -0.2188703716, 0.0555678941, 0.3343017697, 0.1610342562, -0.0290785264, -0.1514207721, -0.166362524, -0.0766228959, 0.2000466138, 0.0912990794, 0.3703828454, -0.2813601494, 0.1310258359, 0.0968396589, 0.2025269419, 0.7217803001, -0.3861362636, 0.02938696, 0.2499889433, -0.0360614434, -0.2788175642, -0.0903180838, -0.1689852774, 0.2853349745, 0.3045787215, 0.4047123492, -0.0590220727, -0.1351770908, 0.3005586863, 0.2268383056, -0.1510552913, -0.204157576, -0.2009699494, -0.0961607695, -0.3041915894, -0.156325683, 0.076182656, 0.1681104302, -0.1662720293, -0.1548368931, -0.1071053371, -0.0860012099, 0.2872056663, 0.1429075003, 0.4447769225, 0.136457175, 0.2428423762, 0.2942498922, -0.0182976555, 0.6086499691, 0.5828624964, -0.3432210684, -0.1498764902, -0.0054402258, -0.0642552227, 0.2022987455, 0.0719375238, -0.1482065767, -0.382892549, -0.0234472957, 0.0470135547, 0.0367245972, 0.0739894211, 0.4998266101, -0.1790411472, -0.3552515507, -0.7226409912, 0.2665430307, 0.2397556901, 0.1121795699, 0.2370270938, 0.0124269994, -0.2850596607, 0.3875685334, 0.0134151587, 0.6175723076, -0.1111617759, -0.1354353577, -0.0062214071, 0.23965846, 0.1921857893, -0.2774074972, 0.1478305608, -0.3572450578, -0.2386854887, -0.1130824387, -0.1766704917, -0.0648924857, 0.1164608821, -0.2836247385, 0.2537146509, -0.4340722859, -0.1987107098, -0.3366387784, 0.5193693042, -0.1824014485, -0.0792319626, -0.0600765683, 0.2007259578, -0.0260535162, 0.0932927653, 0.0542489439, 0.0664754733, -0.1279191822, 0.0140655367, -0.4498793185, 0.1206536442, -0.0912440419, 0.4674478769, -0.2363012135, -0.181773141, 0.1474527717, 0.2513227165, 0.1848684102, -0.1039213762, -0.0616096854, 0.1473176479, 0.1996781677, -0.2431141585, -0.0718798339, 0.0659911782, 0.5382041335, 0.0189235583, -0.2080613077, 0.1704944521, -0.0192905758, -0.0903053135, 0.2119591832, -0.1407052875, 0.2336814106, -0.39580369, -0.3060359061, -0.1800653487, -0.0167639162, -0.0842178687, 0.1587504297, -0.0818678886, -0.0336172394, 0.2271250933, 0.1778803915, -0.2174732536, 0.0068270653, 0.3988776505, 0.055701796, 0.2617914975, 0.6054586768, 0.3335593641, -0.1888596267, -0.2647025287, 0.1452557445, 0.1888811886, -0.3561070263, 0.1968364418, 0.0737197697, 0.2766793966, 0.1766980737, 0.0865051597, 0.1420458406, 0.0673733875, -0.1388967782, -0.5432531834, -0.2428758442, 0.232049197, -0.1529148072, 0.1940087378, -0.1489850432, 0.0385880694, 0.0362789929, -0.089737393, -0.3076260686, 0.1704564095, -0.353653729, 0.0237958431, 0.0332673863, -0.1266146898, 0.1435002536, -0.1172339246, 0.2098435462, -0.1444980353, 0.0421808288, -0.2270585448, 0.006778568, 0.0830584392, -0.0757992938, -0.200037092, -0.2402273417, -0.1800376326, -0.2467719615, -0.1115231216, -0.1279411763, 0.229634136, 0.1045645624, 0.2553444803, 0.1092189252, -0.1440079212, -0.152247563, 0.1293584704, -0.078470774, 0.1014196128, 0.0305777695, 0.0742830262, 0.1241867021, -0.010430296, -0.2565322518, 0.0256590042, -0.0393746197, 0.0003743333, 0.319609791, -0.2303961813, 0.2110102922, 0.2362057716, 0.2677216232, 0.6366454959, -0.1434468627, 0.1193622947, -0.1094078645, 0.2458397001, -0.2158835083, 0.0160182565, 0.2568390965, 0.0181632489, -0.1134103164, 0.1555421501, 0.0622501336, 0.0334845409, -0.185801819, 0.0147245908, 0.497682184, -0.0226810761, 0.3811484575, 0.2872026265, -0.0353964567, -0.1042965204, 0.0545421913, 0.1543367803, 0.2103147805, 0.5497239232, -0.322281152, 0.1640164554, -0.1561699808, 0.0331005119, -0.0107062533, -0.3065340221, 0.0461900719, 0.0737168193, 0.0256277043, -0.1397123635, -0.1254889369, 0.3516052365, -0.2902523279, -0.1200765967, -0.2268694788, 0.0749206394, -0.142320022, 0.1095636114, -0.1731155813, -0.1698088497, -0.3732797205, -0.0568984188, -0.0800223947, -0.0284515582, 0.1086794212, 0.3877879083, -0.1657390296, -0.3098505437, 0.0844726712, 0.0971011072, 0.1705607772, -0.3105941415, 0.1344516724, 0.2724176645, 0.1277649254, 0.3165694475, 0.1486421674, 0.5456302166, 0.3749963939, -0.2448309362, 0.0116229234, 0.1487067193, -0.1571662873, 0.0753748715, 0.2999420762, 0.1794320643, 0.3049530685, 0.2285929024, 0.2683784366, -0.1066692173, 0.068055056, -0.0231998153, 0.2483198345, -0.1545083076, 0.3747861683, -0.1099103168, -0.0839412957, -0.3794901073, -0.0722258985, -0.3162461221, -0.164957881, 0.3867698014, -0.1232078671, 0.0033519845, 0.0040559918, 0.0844310895, -0.1905733347, 0.4992543757, 0.3944142461, 0.1096332893, -0.4755222797, -0.092849873, -0.5908112526, -0.0558129437, -0.0984434709, -0.0759909526, 0.2061030865, 0.2298827767, -0.1204377785, 0.0457118042, 0.0933319107, 0.1367588639, -0.0401351154, 0.2172302157, -0.2901270986, -0.0901619941, -0.2090151161, 0.0558771715, -0.1663666368, -0.1674049944, 0.0828184336, -0.5049979687, 0.0360492654, 0.0008961095, -0.3720474243, 0.1805413663, 0.3742032051, 0.2840801477, -0.0968510285, 0.7990047932, 0.0698330849, -0.0349646956, -0.2617948353, -0.3925071061, -0.1967741698, 0.4153387547, 0.2645182908, 0.3011757731, -0.1691697985, 0.0210932828, -0.3125958443, 0.3212580979, -0.0824551061, -0.1678825468, -0.3540569246, -0.1923819035, -0.0200939663, 0.033096645, 0.2503875494, 0.1431869417, -0.0678640828, 0.1911815554, -0.2078014761, -0.3176257908, 0.5762025714, -0.090449594, -0.1553604603, -0.1684868336, 0.0965388343, 0.2750170529, 0.066156514, -0.5203386545, 0.0940828696, 0.3871852458, -0.1895417273, -0.1051005051, 0.1640699506, 0.2043438107, 0.1031656489, -0.0863083377, -0.0761999115, 0.0498592369, -0.1477046311, -0.0565749332, 0.0410749651 ]
https://github.com/huggingface/datasets/issues/876
imdb dataset cannot be loaded
Hi ! I just tried in 1.8.0 and it worked fine. Can you try again ? Maybe the dataset host had some issues that are fixed now
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") ```
27
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") ``` Hi ! I just tried in 1.8.0 and it worked fine. Can you try again ? Maybe the dataset host had some issues that are fixed now
[ -0.5215907693, -0.0397975221, -0.1209278107, 0.413828671, 0.3087592125, 0.3442182839, 0.4162841737, 0.4116173089, 0.1893083006, -0.1259102225, -0.2459376007, -0.0363802686, -0.2387998998, 0.1189185232, -0.1006124169, -0.193389222, -0.109389469, -0.0083493162, 0.0082315775, 0.0248100441, -0.1954828352, 0.2631106973, -0.4074179828, -0.0073812287, -0.5533471107, -0.2076043785, 0.0664418489, 0.2464725226, -0.1878923625, -0.3777329326, 0.4374704957, 0.0338274017, 0.298522532, 0.4265398681, -0.0001084289, 0.0661218464, 0.5560091138, -0.1408036947, -0.3377950788, -0.2855278552, -0.2910868824, -0.0734333992, 0.2554955184, -0.2121905833, -0.0610393323, -0.2735612392, -0.0876793712, -0.4681125283, 0.3000150323, 0.4594838321, 0.2551243901, -0.030522937, 0.0760369077, -0.1456567496, 0.0994298086, 0.1825696081, 0.0096921977, 0.3030391634, 0.0760117099, 0.0173889361, 0.2145229429, 0.0415253639, -0.2540516555, -0.037988741, 0.2962742448, 0.0274886731, 0.0673013702, -0.4677698016, 0.0347380973, 0.2485589087, 0.6612052321, -0.0836042687, -0.3514131606, -0.0572895557, 0.1594482213, -0.2821140885, 0.1125694439, 0.2813577652, -0.1202668026, 0.1045411527, -0.4093437493, -0.0662198439, -0.0858247429, 0.1770365536, 0.0300608482, -0.0702763796, 0.059068881, 0.0750905499, 0.2223214954, -0.1004088596, 0.3060331941, 0.0287063122, 0.0114888577, 0.1601479799, -0.2722391486, 0.0616547465, -0.3099354208, 0.0013536994, -0.0696112737, 0.2496412694, -0.20697622, -0.021083666, -0.0292112753, 0.2595464587, 0.2834865749, 0.1375844181, 0.038836211, 0.4064241052, 0.1448390633, 0.2383132875, -0.2738072872, -0.1059612706, -0.2260228842, -0.1501699686, 0.0980361849, 0.1302990615, 0.0258588754, -0.1813313812, -0.5039566159, -0.0179435816, -0.1861051917, 0.0018605017, 0.3757008314, 0.3940537274, -0.1082345992, 0.1711022556, 0.1874575615, 0.3105210364, -0.1181693152, -0.0630417243, -0.1855239421, 0.2731184065, -0.18487598, 0.0785205737, 0.4066706896, -0.1432266235, 0.4070622921, 0.0138800703, 0.0988443419, -0.2059770823, 0.1962587088, -0.3265182078, 0.0474713445, 0.3069473803, 0.2882389128, 0.1749824136, 0.1750797927, -0.0222158935, -0.12192633, 0.0434904695, -0.2463379502, -0.4131353199, -0.1829317212, 0.2787932158, -0.0036364803, -0.055039525, -0.4261501133, -0.0292975195, 0.0431885011, -0.1881003082, -0.175845921, -0.3051406145, -0.1755625755, -0.1236034185, 0.4283628464, 0.4742211699, -0.281942755, -0.0677017942, -0.354587853, -0.1019598916, 0.2071656585, 0.2522234023, -0.3016600013, 0.2245973051, -0.3644295633, 0.1026925966, 0.3114511669, -0.4896247983, -0.1315891743, 0.3070099056, 0.151950866, 0.1178987548, 0.0510697924, 0.117821604, 0.3234885633, 0.0152815664, 0.2373961508, 0.4272212982, -0.0333048813, -0.1566787064, -0.0633247867, -0.2016085237, 0.1954357475, 0.3601022363, 0.3082617223, 0.0021153502, 0.0012145481, 0.2097963989, 0.2742596269, 0.1175744161, -0.0408722088, 0.206319645, -0.0526261926, 0.3531843126, -0.0541508235, -0.1990601867, -0.4411433935, 0.1967228949, 0.2666047812, -0.046509631, -0.1574426293, -0.1011872217, -0.275845468, -0.1793881655, -0.2391405255, 0.0034422842, 0.1849972308, -0.0831261575, -0.0139210289, 0.0582016297, -0.4372184575, 0.3967027068, -0.1066203788, 0.1430695802, -0.3454018831, 0.3588091135, -0.1727035791, -0.2236958742, 0.1571167409, 0.1187443957, 0.1863099933, -0.249666512, -0.0465862043, 0.4384958744, 0.3271713555, -0.0282259788, -0.0712759793, -0.2227296382, 0.1980132163, -0.3737979829, 0.1602868885, -0.1303506643, 0.0517518371, -0.1354400218, -0.0591691732, 0.1639061719, -0.2817700207, 0.2440554649, 0.2280350626, 0.1386641711, 0.2511509061, -0.0994583219, -0.0211281497, -0.4406083226, 0.1827892065, -0.0190275107, 0.0183313359, -0.0145885907, -0.262970686, -0.2127720267, 0.4115472138, 0.1476502866, -0.0533785932, 0.138818562, -0.1717076749, 0.102297619, -0.0761988238, 0.151296407, 0.2494869679, 0.1761388928, -0.0901042521, -0.0738935098, 0.137101233, -0.1112425327, 0.2687685192, 0.0630815104, 0.1386986822, 0.3271504045, -0.1574338228, -0.04321656, -0.3005726933, -0.3626558185, 0.1164299771, 0.2661465108, -0.3761329353, -0.0721555427, -0.3137324154, -0.1708399057, -0.0889625996, -0.3290139735, -0.0407064818, -0.3265829384, -0.087656863, 0.3447711468, 0.3259419203, 0.1502281427, -0.2954137325, -0.1498265415, -0.0587890632, -0.0474689715, -0.0757707283, -0.2140562534, -0.1474245042, 0.1250645369, 0.4519131482, 0.1995559335, 0.2789731324, -0.3943607509, -0.0972727239, 0.0210900735, 0.1583138257, -0.0527740978, -0.137291953, 0.1901930869, 0.1164053902, 0.248075828, 0.1137988716, -0.5119879246, 0.3313747346, -0.1434603631, 0.0764829144, 0.1595187485, 0.0767458379, -0.0790888369, 0.0146053005, -0.4780642688, -0.4822545052, -0.3378785551, -0.0881934613, 0.1694436818, 0.0430158116, 0.2023379952, 0.1366271377, 0.1154307351, 0.318382442, 0.1276843995, -0.0295815896, -0.3274248838, 0.3202657104, -0.2303407937, -0.1603824049, 0.2412950099, 0.1050816923, 0.1461466402, 0.0087437611, -0.4140425026, 0.0979011506, -0.0617495552, 0.1573086083, -0.0945535153, -0.1469499916, -0.0430617072, 0.069940649, -0.0419445448, 0.0470373966, -0.0949977487, -0.0371988192, -0.0491983369, 0.160198316, -0.1255296618, 0.5187343359, -0.3258315623, 0.5013354421, 0.2936229706, -0.2053152919, 0.3749496639, -0.1927378476, 0.1645800471, -0.2501035929, -0.6196157932, -0.1546027511, -0.1297272742, -0.1464299262, -0.0048479699, -0.1120475009, -0.189454928, -0.2324506044, 0.126452446, -0.3696001768, -0.1551600397, 0.0012162259, -0.3850668967, 0.0758725479, -0.2124610394, 0.1771602184, -0.0284016598, -0.2188703716, 0.0555678941, 0.3343017697, 0.1610342562, -0.0290785264, -0.1514207721, -0.166362524, -0.0766228959, 0.2000466138, 0.0912990794, 0.3703828454, -0.2813601494, 0.1310258359, 0.0968396589, 0.2025269419, 0.7217803001, -0.3861362636, 0.02938696, 0.2499889433, -0.0360614434, -0.2788175642, -0.0903180838, -0.1689852774, 0.2853349745, 0.3045787215, 0.4047123492, -0.0590220727, -0.1351770908, 0.3005586863, 0.2268383056, -0.1510552913, -0.204157576, -0.2009699494, -0.0961607695, -0.3041915894, -0.156325683, 0.076182656, 0.1681104302, -0.1662720293, -0.1548368931, -0.1071053371, -0.0860012099, 0.2872056663, 0.1429075003, 0.4447769225, 0.136457175, 0.2428423762, 0.2942498922, -0.0182976555, 0.6086499691, 0.5828624964, -0.3432210684, -0.1498764902, -0.0054402258, -0.0642552227, 0.2022987455, 0.0719375238, -0.1482065767, -0.382892549, -0.0234472957, 0.0470135547, 0.0367245972, 0.0739894211, 0.4998266101, -0.1790411472, -0.3552515507, -0.7226409912, 0.2665430307, 0.2397556901, 0.1121795699, 0.2370270938, 0.0124269994, -0.2850596607, 0.3875685334, 0.0134151587, 0.6175723076, -0.1111617759, -0.1354353577, -0.0062214071, 0.23965846, 0.1921857893, -0.2774074972, 0.1478305608, -0.3572450578, -0.2386854887, -0.1130824387, -0.1766704917, -0.0648924857, 0.1164608821, -0.2836247385, 0.2537146509, -0.4340722859, -0.1987107098, -0.3366387784, 0.5193693042, -0.1824014485, -0.0792319626, -0.0600765683, 0.2007259578, -0.0260535162, 0.0932927653, 0.0542489439, 0.0664754733, -0.1279191822, 0.0140655367, -0.4498793185, 0.1206536442, -0.0912440419, 0.4674478769, -0.2363012135, -0.181773141, 0.1474527717, 0.2513227165, 0.1848684102, -0.1039213762, -0.0616096854, 0.1473176479, 0.1996781677, -0.2431141585, -0.0718798339, 0.0659911782, 0.5382041335, 0.0189235583, -0.2080613077, 0.1704944521, -0.0192905758, -0.0903053135, 0.2119591832, -0.1407052875, 0.2336814106, -0.39580369, -0.3060359061, -0.1800653487, -0.0167639162, -0.0842178687, 0.1587504297, -0.0818678886, -0.0336172394, 0.2271250933, 0.1778803915, -0.2174732536, 0.0068270653, 0.3988776505, 0.055701796, 0.2617914975, 0.6054586768, 0.3335593641, -0.1888596267, -0.2647025287, 0.1452557445, 0.1888811886, -0.3561070263, 0.1968364418, 0.0737197697, 0.2766793966, 0.1766980737, 0.0865051597, 0.1420458406, 0.0673733875, -0.1388967782, -0.5432531834, -0.2428758442, 0.232049197, -0.1529148072, 0.1940087378, -0.1489850432, 0.0385880694, 0.0362789929, -0.089737393, -0.3076260686, 0.1704564095, -0.353653729, 0.0237958431, 0.0332673863, -0.1266146898, 0.1435002536, -0.1172339246, 0.2098435462, -0.1444980353, 0.0421808288, -0.2270585448, 0.006778568, 0.0830584392, -0.0757992938, -0.200037092, -0.2402273417, -0.1800376326, -0.2467719615, -0.1115231216, -0.1279411763, 0.229634136, 0.1045645624, 0.2553444803, 0.1092189252, -0.1440079212, -0.152247563, 0.1293584704, -0.078470774, 0.1014196128, 0.0305777695, 0.0742830262, 0.1241867021, -0.010430296, -0.2565322518, 0.0256590042, -0.0393746197, 0.0003743333, 0.319609791, -0.2303961813, 0.2110102922, 0.2362057716, 0.2677216232, 0.6366454959, -0.1434468627, 0.1193622947, -0.1094078645, 0.2458397001, -0.2158835083, 0.0160182565, 0.2568390965, 0.0181632489, -0.1134103164, 0.1555421501, 0.0622501336, 0.0334845409, -0.185801819, 0.0147245908, 0.497682184, -0.0226810761, 0.3811484575, 0.2872026265, -0.0353964567, -0.1042965204, 0.0545421913, 0.1543367803, 0.2103147805, 0.5497239232, -0.322281152, 0.1640164554, -0.1561699808, 0.0331005119, -0.0107062533, -0.3065340221, 0.0461900719, 0.0737168193, 0.0256277043, -0.1397123635, -0.1254889369, 0.3516052365, -0.2902523279, -0.1200765967, -0.2268694788, 0.0749206394, -0.142320022, 0.1095636114, -0.1731155813, -0.1698088497, -0.3732797205, -0.0568984188, -0.0800223947, -0.0284515582, 0.1086794212, 0.3877879083, -0.1657390296, -0.3098505437, 0.0844726712, 0.0971011072, 0.1705607772, -0.3105941415, 0.1344516724, 0.2724176645, 0.1277649254, 0.3165694475, 0.1486421674, 0.5456302166, 0.3749963939, -0.2448309362, 0.0116229234, 0.1487067193, -0.1571662873, 0.0753748715, 0.2999420762, 0.1794320643, 0.3049530685, 0.2285929024, 0.2683784366, -0.1066692173, 0.068055056, -0.0231998153, 0.2483198345, -0.1545083076, 0.3747861683, -0.1099103168, -0.0839412957, -0.3794901073, -0.0722258985, -0.3162461221, -0.164957881, 0.3867698014, -0.1232078671, 0.0033519845, 0.0040559918, 0.0844310895, -0.1905733347, 0.4992543757, 0.3944142461, 0.1096332893, -0.4755222797, -0.092849873, -0.5908112526, -0.0558129437, -0.0984434709, -0.0759909526, 0.2061030865, 0.2298827767, -0.1204377785, 0.0457118042, 0.0933319107, 0.1367588639, -0.0401351154, 0.2172302157, -0.2901270986, -0.0901619941, -0.2090151161, 0.0558771715, -0.1663666368, -0.1674049944, 0.0828184336, -0.5049979687, 0.0360492654, 0.0008961095, -0.3720474243, 0.1805413663, 0.3742032051, 0.2840801477, -0.0968510285, 0.7990047932, 0.0698330849, -0.0349646956, -0.2617948353, -0.3925071061, -0.1967741698, 0.4153387547, 0.2645182908, 0.3011757731, -0.1691697985, 0.0210932828, -0.3125958443, 0.3212580979, -0.0824551061, -0.1678825468, -0.3540569246, -0.1923819035, -0.0200939663, 0.033096645, 0.2503875494, 0.1431869417, -0.0678640828, 0.1911815554, -0.2078014761, -0.3176257908, 0.5762025714, -0.090449594, -0.1553604603, -0.1684868336, 0.0965388343, 0.2750170529, 0.066156514, -0.5203386545, 0.0940828696, 0.3871852458, -0.1895417273, -0.1051005051, 0.1640699506, 0.2043438107, 0.1031656489, -0.0863083377, -0.0761999115, 0.0498592369, -0.1477046311, -0.0565749332, 0.0410749651 ]
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.2242927402, 0.1419457644, -0.0225758627, 0.2384323776, 0.3819947541, 0.1261650026, 0.6168981194, 0.2147599757, -0.0231773313, 0.1334126741, -0.1637565494, 0.058236558, -0.3759567142, -0.1230778396, 0.0085836845, 0.1149686202, -0.096401386, 0.1582956165, -0.205109641, -0.1422859728, -0.3901510537, 0.1864793301, -0.0768185332, 0.0159925055, -0.254440248, -0.2072731555, -0.1191692948, 0.4782720208, -0.2281917781, -0.3415710926, 0.2912244201, -0.1937134713, 0.2596126199, 0.6446202397, -0.0001103697, 0.1348131597, 0.2574552596, -0.0459847264, -0.599034369, -0.6107158065, -0.1344918013, -0.1810777187, 0.2224272937, -0.285746932, -0.0545736775, 0.1120455042, 0.0625396222, 0.0195217486, 0.3589364588, 0.5676549077, 0.2382050902, 0.2500875294, -0.021465404, -0.1423245668, -0.1394215822, 0.3917793334, -0.0832961872, 0.5298008919, -0.3784788847, -0.0074531641, 0.300991714, 0.2560058534, -0.3467571735, 0.248128593, 0.3105842173, 0.0931706503, 0.2014933378, -0.3185790777, 0.0102560492, 0.0520642214, 0.4628159404, -0.3776452839, -0.2139324695, -0.0260959938, 0.087480396, -0.4519511759, 0.3440143168, 0.3034416139, -0.1303298622, 0.053182967, -0.1461746097, -0.1438383758, -0.1814102381, 0.4520485401, -0.1718833148, 0.2167278826, -0.0570035167, 0.0317017697, 0.0401941463, 0.0549001507, 0.5230497718, -0.2012924254, 0.1109837815, 0.1689763069, -0.0259171445, 0.0619169883, 0.2004216909, -0.1987337768, -0.1959023029, 0.1629694849, -0.0814731568, -0.2725149691, -0.0308208372, 0.0420360491, 0.0562603101, 0.1875985265, -0.0870421603, 0.5960316658, 0.2050023824, 0.2587226331, -0.0126045849, -0.1288866848, -0.3524647653, -0.249772504, 0.1027379334, 0.0556451678, 0.636834085, 0.0808700472, -0.2626220882, -0.1706475466, -0.2875089943, 0.0266696084, 0.1824935377, 0.377037406, 0.0879200399, -0.0015780833, 0.1018525735, 0.2980030179, -0.0611402541, 0.3207466304, -0.2227891982, 0.2121761143, -0.1194053516, -0.038934771, 0.2705803216, -0.2202293128, 0.1217842996, -0.1732522547, -0.0137372091, -0.0063967071, 0.1550606936, -0.1759006977, 0.0742248669, 0.5078184009, -0.1087168306, 0.2788079977, 0.2708215714, 0.0265565664, -0.3172303438, 0.132672742, -0.1793327332, -0.4073956311, -0.0890355036, 0.191819638, 0.043319799, -0.1540219933, 0.0512395613, -0.2044744343, -0.1510189027, -0.1646994054, -0.0049301796, -0.1914941072, -0.0878128484, -0.3597047627, 0.2943395674, 0.6152351499, -0.3911427259, 0.0004787063, -0.4250386357, -0.1540965885, 0.1708232611, 0.2825910747, -0.1810852438, 0.4182516336, -0.2191810161, -0.2109977752, 0.4664490223, -0.4039040506, -0.4069177806, 0.1619244665, -0.1690846235, -0.0231490135, 0.0143250721, 0.1950931251, -0.1637684107, 0.087465398, 0.0317932554, 0.3440904915, -0.0140820872, 0.0791540965, -0.0952030793, -0.2890998423, 0.1494428813, 0.1394834369, 0.2537146807, 0.2065376043, 0.0017705066, 0.0574447848, 0.0345365927, -0.1340151429, -0.0199385546, 0.1930294186, 0.4896595478, 0.0706251711, -0.3033567667, -0.0080357334, -0.5152103901, 0.1154647693, 0.0506805368, 0.2688595951, -0.2443438321, 0.0475811884, -0.2807431817, -0.1213217452, -0.2518717945, -0.0720805898, 0.1413441747, 0.3626241982, 0.0602166578, 0.0658183396, -0.2875798941, 0.2650076151, 0.055536408, 0.1482610404, -0.1362413615, 0.4147194326, -0.1979317069, -0.0624309219, -0.0436082259, 0.1352326572, 0.2345962077, -0.144653216, -0.1301756948, 0.3645672798, -0.1508780122, -0.0773252845, 0.0398344435, -0.1054768488, 0.0736473724, -0.0363831446, 0.2342953682, 0.3620505929, 0.1599351317, -0.0431436449, -0.1002387628, 0.2904097736, 0.1619523764, 0.0390075259, 0.1538697332, -0.0371429808, 0.0395895056, -0.0555202104, 0.1082933843, -0.0412752666, 0.2116335928, 0.0997431055, 0.4739991724, 0.0227579921, -0.1307648718, -0.3711324036, 0.270595938, -0.1347056776, 0.144420132, 0.1506157666, -0.2888513505, 0.0992452428, -0.190003112, 0.1472335011, 0.6052932739, 0.1164713576, 0.032504566, 0.1258144528, -0.0870900601, -0.0704520568, 0.2077792138, 0.0883651376, 0.2569259703, 0.2160900086, 0.0695266426, 0.0620280653, -0.3969857395, -0.2876625061, 0.0426679552, 0.4161449373, -0.3931627572, 0.0595920533, -0.1244836673, -0.216604948, -0.0977733433, -0.5352475643, -0.0786895677, -0.3155717552, -0.1555617154, 0.1735684723, 0.1367603093, 0.1662629098, -0.1210424304, -0.1262291223, 0.1058904156, -0.4859182537, -0.2068845779, -0.0484760702, -0.017488936, 0.0651339591, 0.2804498971, -0.1032846868, 0.2476292104, -0.1312972605, -0.1217800826, -0.1863986552, -0.0907367468, -0.0835307986, -0.1042266637, 0.2084369808, 0.264452219, 0.3542819917, 0.0467900708, -0.1947211772, 0.3619306087, -0.1828134358, 0.0223101173, 0.3297628164, -0.1260292679, -0.0134162102, -0.0603097677, -0.5458138585, -0.5458029509, -0.3574633598, -0.1193348616, 0.1282773912, 0.1643209904, 0.4390530884, 0.1495429873, 0.1939642429, -0.106573455, 0.0041576722, -0.0272341017, -0.1540676057, 0.4063128531, -0.2877521515, -0.2439706624, 0.1713532209, -0.040531233, 0.1901891828, -0.1609369516, -0.4939944744, -0.2556859553, -0.0731519982, 0.038228672, -0.1987713575, -0.0513625219, 0.2149720937, 0.0962021798, -0.1009548679, 0.1519617438, -0.1301397234, -0.0496765189, 0.1687471867, 0.0203160271, -0.2199279964, 0.5267876983, -0.2912863791, 0.5844217539, 0.1298207939, -0.097659193, 0.3287141025, -0.2017040104, 0.4355215728, -0.2107224911, -0.5223429799, -0.0787452236, 0.2892432809, -0.1790048927, 0.180033505, 0.0565604083, -0.2591914535, -0.2643008232, -0.0444025956, -0.3779844344, -0.0743462816, 0.1186381504, -0.0179856308, 0.0781657025, -0.0592777468, 0.0965214744, -0.1504167914, -0.1698939651, -0.1216431111, 0.3782084882, 0.0190807953, 0.1019872501, -0.0288798939, 0.0270933844, -0.3145632744, 0.2298071086, -0.0520730764, 0.07154686, -0.2187214196, 0.0831158534, -0.0285105854, 0.029310625, 0.361294508, -0.0923880562, 0.0112153003, 0.4276466966, 0.072345078, -0.4850646853, -0.0946589708, -0.2761999965, 0.167673707, -0.001272243, 0.2047503591, -0.1170452014, -0.1677078754, 0.3938709199, 0.2733161747, -0.0797540545, -0.3248059154, -0.4682422578, -0.3894967437, -0.4203396142, -0.0765345916, -0.1250402331, 0.0756563544, 0.105262354, -0.1257731915, -0.0364614427, 0.0204614028, 0.1145616397, -0.014096383, 0.2421567887, 0.0633370206, 0.126145348, 0.1231672764, 0.1575559825, 0.3707534671, 0.5872366428, -0.1024380699, -0.3017363548, -0.0854126662, 0.1388858259, 0.0639619157, 0.2150995582, -0.2014813125, -0.3429366648, 0.0943885148, 0.1914982945, 0.0416607857, -0.0360613167, 0.5686714053, -0.1586036086, -0.3970258832, -0.2941640019, 0.402808547, -0.1327414364, 0.1745824665, 0.2641440332, -0.1621220708, -0.1939864159, 0.1144842952, -0.2864451706, 0.7768806219, -0.1121845767, 0.2149888873, 0.6759076118, 0.1097223759, 0.4076383412, -0.0114144403, 0.1372163743, -0.3117955029, -0.1835331768, -0.1531408131, -0.2621163428, 0.09902744, 0.2857243419, -0.1570023149, 0.4138244987, -0.2599774599, 0.1028070003, -0.1273013353, 0.1603610963, -0.0852784365, 0.0861264914, -0.3097005188, 0.1809031069, 0.0234545935, 0.3886291683, -0.2298666388, 0.1079558581, -0.1512608975, -0.2345504612, 0.002513784, 0.1233491525, -0.4199483395, 0.2769892812, -0.0176258907, -0.1646071076, -0.1869406104, 0.247104153, -0.070444487, -0.0975800157, -0.1174653172, 0.0991973728, -0.1049690992, -0.0900422037, -0.1319459677, 0.0436582826, 0.2979976535, -0.0978419855, -0.2941856384, 0.0657166243, -0.1450731158, -0.279520601, 0.2277365625, 0.0566372275, 0.2674981058, -0.3583119512, -0.2808160484, -0.0401816443, -0.0521990545, -0.0776874721, 0.1419313997, 0.0039219097, 0.0197129268, 0.0714480579, -0.243500039, -0.3559808731, -0.1612129807, 0.2835135162, -0.2098851353, 0.0607412308, 0.5739113092, 0.1368584037, -0.2089031786, -0.3013285697, 0.1953062117, 0.0391630121, -0.1753418595, 0.2251407057, 0.2365748733, 0.2650002837, -0.0125540588, 0.2555107176, 0.2237352729, -0.0629732162, -0.1974659711, -0.3072935045, -0.1711296439, 0.0286056008, 0.0978400409, 0.2520788908, 0.0883997306, 0.0631106049, 0.3833884895, -0.2658514977, -0.3185986578, 0.0119841034, -0.0162869934, -0.0612216443, 0.0742239878, -0.0595228262, 0.5541497469, 0.0120948255, 0.2147975713, -0.3351582289, -0.0658873469, -0.282309711, -0.0192318317, 0.1273973137, 0.1241839901, -0.1153777167, 0.082035087, -0.257568568, -0.2182907313, -0.1288655847, -0.0556794181, 0.2382220179, -0.0639590845, 0.1493337452, 0.0589089878, -0.0790562332, -0.1343443394, 0.0602041148, -0.2575854957, 0.0918631554, 0.0379101709, 0.1405529082, 0.2113551795, -0.1355242431, -0.4185725152, -0.0494290702, 0.0334854238, 0.0262348, 0.2199244797, -0.1869715899, -0.0101037025, -0.0072820578, 0.3588444293, 0.1904234439, -0.2865006626, 0.0540696867, 0.2150326222, 0.2182924896, -0.2886956632, 0.0796892121, -0.0444070436, 0.0619236082, 0.1027721465, 0.1913685352, -0.3624689281, 0.0646900088, -0.1960901469, 0.0315472744, 0.3888281882, -0.1976902634, 0.0516500473, 0.399838388, -0.1716949493, 0.0677288994, 0.2848178744, 0.0445195772, 0.1066730767, 0.5403019786, -0.1691644937, 0.0274335928, -0.274908185, -0.1154988855, 0.0093394304, -0.3157518506, 0.0527973063, 0.149911046, -0.0275919177, -0.006132083, -0.1501960903, 0.2725357115, -0.4593993127, 0.1213817745, -0.3764192164, 0.377787441, -0.1425218433, 0.1625411808, -0.1579575837, 0.0105230575, -0.0120908422, 0.0446167625, 0.0195147898, -0.2471571565, 0.2412218451, 0.4903679788, -0.1194791347, -0.1413522363, 0.3903645575, 0.2625901401, -0.1352914721, -0.2359022647, 0.3025464416, 0.3034742773, 0.1200006753, -0.0492575802, 0.487074852, 0.4269423783, 0.4090619683, 0.0039018809, 0.2013228387, -0.0100114262, -0.1889313757, -0.0214956254, 0.0882003903, -0.0550459661, 0.5318030119, 0.1638850421, 0.2567686141, -0.2468537986, 0.1854959875, 0.0133692818, -0.0159491822, -0.1292091161, 0.6912082434, -0.2564795315, -0.1056897864, -0.233110249, 0.0544373691, -0.5289074183, 0.2520843446, 0.3535762131, 0.0812641457, 0.1096362397, 0.0725060478, 0.0778280646, 0.0445871614, 0.2782053947, 0.3427437842, 0.30538252, -0.5661407709, 0.024391463, -0.6365789771, 0.1711901575, -0.2892042994, -0.0434494168, -0.1806511283, -0.0156531017, -0.1364324838, 0.1296591908, 0.1261665076, 0.0536836721, -0.0534697212, -0.1056467891, -0.289837569, -0.0953033641, -0.0626653954, 0.0257229917, 0.0159504693, -0.4950200021, 0.0248201005, -0.413179785, 0.0006354289, 0.0270588715, -0.1335080117, 0.0396981239, 0.3611628711, 0.45333758, -0.0263894852, 0.5661261082, -0.0605584085, -0.196563825, -0.1913535148, -0.2649547458, -0.1598000973, 0.2294674665, 0.1461037993, 0.3851698935, -0.3064143658, -0.0087606777, -0.4270079732, 0.290129751, -0.0378128961, -0.0673950985, -0.2009867579, 0.0023699878, -0.1316206455, 0.1983623654, 0.1464609057, -0.0151978666, -0.0840772018, 0.1883645803, -0.2635798156, -0.3884924352, 0.461283952, -0.2634094656, -0.2436618209, 0.0428762138, 0.1699990481, -0.0931859761, 0.1788181067, -0.4839810133, 0.3811456859, 0.4383373559, 0.1640304923, -0.2190377563, 0.1378460228, 0.0010954404, 0.1383844614, 0.0792406276, 0.4123993218, 0.007534401, -0.3825777769, -0.0340820141, -0.1186553314 ]
https://github.com/huggingface/datasets/issues/873
load_dataset('cnn_dalymail', '3.0.0') gives a 'Not a directory' error
> atal("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 ? 2 short-term workarounds: 1. Use this line instead `dataset = load_dataset('ccdv/cnn_dailymail', '3.0.0')`. [In a related issue](https://github.com/huggingface/datasets/issues/996#issuecomment-997343101), this person mentioned another data source copy that just works. 2. Use the same data source, but edit the urls. Instead of google drive quota problems mentioned in #996, I was getting the "can't scan this file for viruses" problem, which results in that prompted html getting downloaded instead of the files. You can get around this by: 1. Look at the traceback and find out where `cnn_dailymail.py` is on your computer. 2. Edit the `cnn_stories` and `dm_stories` url's by adding the following to the end of them `&confirm=t`. This should be around line 67. 3. You may have to remove those confirmation html files in your download directory (`~/.cache/huggingface/datasets/downloads` for me) so that they don't get in the way of the new download attempts. Either method works for me. I would've made a PR, but not sure if they want to go with the new ccdv/cnn_dailymail source or not.
``` 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
199
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 > atal("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 ? 2 short-term workarounds: 1. Use this line instead `dataset = load_dataset('ccdv/cnn_dailymail', '3.0.0')`. [In a related issue](https://github.com/huggingface/datasets/issues/996#issuecomment-997343101), this person mentioned another data source copy that just works. 2. Use the same data source, but edit the urls. Instead of google drive quota problems mentioned in #996, I was getting the "can't scan this file for viruses" problem, which results in that prompted html getting downloaded instead of the files. You can get around this by: 1. Look at the traceback and find out where `cnn_dailymail.py` is on your computer. 2. Edit the `cnn_stories` and `dm_stories` url's by adding the following to the end of them `&confirm=t`. This should be around line 67. 3. You may have to remove those confirmation html files in your download directory (`~/.cache/huggingface/datasets/downloads` for me) so that they don't get in the way of the new download attempts. Either method works for me. I would've made a PR, but not sure if they want to go with the new ccdv/cnn_dailymail source or not.
[ -0.2242927402, 0.1419457644, -0.0225758627, 0.2384323776, 0.3819947541, 0.1261650026, 0.6168981194, 0.2147599757, -0.0231773313, 0.1334126741, -0.1637565494, 0.058236558, -0.3759567142, -0.1230778396, 0.0085836845, 0.1149686202, -0.096401386, 0.1582956165, -0.205109641, -0.1422859728, -0.3901510537, 0.1864793301, -0.0768185332, 0.0159925055, -0.254440248, -0.2072731555, -0.1191692948, 0.4782720208, -0.2281917781, -0.3415710926, 0.2912244201, -0.1937134713, 0.2596126199, 0.6446202397, -0.0001103697, 0.1348131597, 0.2574552596, -0.0459847264, -0.599034369, -0.6107158065, -0.1344918013, -0.1810777187, 0.2224272937, -0.285746932, -0.0545736775, 0.1120455042, 0.0625396222, 0.0195217486, 0.3589364588, 0.5676549077, 0.2382050902, 0.2500875294, -0.021465404, -0.1423245668, -0.1394215822, 0.3917793334, -0.0832961872, 0.5298008919, -0.3784788847, -0.0074531641, 0.300991714, 0.2560058534, -0.3467571735, 0.248128593, 0.3105842173, 0.0931706503, 0.2014933378, -0.3185790777, 0.0102560492, 0.0520642214, 0.4628159404, -0.3776452839, -0.2139324695, -0.0260959938, 0.087480396, -0.4519511759, 0.3440143168, 0.3034416139, -0.1303298622, 0.053182967, -0.1461746097, -0.1438383758, -0.1814102381, 0.4520485401, -0.1718833148, 0.2167278826, -0.0570035167, 0.0317017697, 0.0401941463, 0.0549001507, 0.5230497718, -0.2012924254, 0.1109837815, 0.1689763069, -0.0259171445, 0.0619169883, 0.2004216909, -0.1987337768, -0.1959023029, 0.1629694849, -0.0814731568, -0.2725149691, -0.0308208372, 0.0420360491, 0.0562603101, 0.1875985265, -0.0870421603, 0.5960316658, 0.2050023824, 0.2587226331, -0.0126045849, -0.1288866848, -0.3524647653, -0.249772504, 0.1027379334, 0.0556451678, 0.636834085, 0.0808700472, -0.2626220882, -0.1706475466, -0.2875089943, 0.0266696084, 0.1824935377, 0.377037406, 0.0879200399, -0.0015780833, 0.1018525735, 0.2980030179, -0.0611402541, 0.3207466304, -0.2227891982, 0.2121761143, -0.1194053516, -0.038934771, 0.2705803216, -0.2202293128, 0.1217842996, -0.1732522547, -0.0137372091, -0.0063967071, 0.1550606936, -0.1759006977, 0.0742248669, 0.5078184009, -0.1087168306, 0.2788079977, 0.2708215714, 0.0265565664, -0.3172303438, 0.132672742, -0.1793327332, -0.4073956311, -0.0890355036, 0.191819638, 0.043319799, -0.1540219933, 0.0512395613, -0.2044744343, -0.1510189027, -0.1646994054, -0.0049301796, -0.1914941072, -0.0878128484, -0.3597047627, 0.2943395674, 0.6152351499, -0.3911427259, 0.0004787063, -0.4250386357, -0.1540965885, 0.1708232611, 0.2825910747, -0.1810852438, 0.4182516336, -0.2191810161, -0.2109977752, 0.4664490223, -0.4039040506, -0.4069177806, 0.1619244665, -0.1690846235, -0.0231490135, 0.0143250721, 0.1950931251, -0.1637684107, 0.087465398, 0.0317932554, 0.3440904915, -0.0140820872, 0.0791540965, -0.0952030793, -0.2890998423, 0.1494428813, 0.1394834369, 0.2537146807, 0.2065376043, 0.0017705066, 0.0574447848, 0.0345365927, -0.1340151429, -0.0199385546, 0.1930294186, 0.4896595478, 0.0706251711, -0.3033567667, -0.0080357334, -0.5152103901, 0.1154647693, 0.0506805368, 0.2688595951, -0.2443438321, 0.0475811884, -0.2807431817, -0.1213217452, -0.2518717945, -0.0720805898, 0.1413441747, 0.3626241982, 0.0602166578, 0.0658183396, -0.2875798941, 0.2650076151, 0.055536408, 0.1482610404, -0.1362413615, 0.4147194326, -0.1979317069, -0.0624309219, -0.0436082259, 0.1352326572, 0.2345962077, -0.144653216, -0.1301756948, 0.3645672798, -0.1508780122, -0.0773252845, 0.0398344435, -0.1054768488, 0.0736473724, -0.0363831446, 0.2342953682, 0.3620505929, 0.1599351317, -0.0431436449, -0.1002387628, 0.2904097736, 0.1619523764, 0.0390075259, 0.1538697332, -0.0371429808, 0.0395895056, -0.0555202104, 0.1082933843, -0.0412752666, 0.2116335928, 0.0997431055, 0.4739991724, 0.0227579921, -0.1307648718, -0.3711324036, 0.270595938, -0.1347056776, 0.144420132, 0.1506157666, -0.2888513505, 0.0992452428, -0.190003112, 0.1472335011, 0.6052932739, 0.1164713576, 0.032504566, 0.1258144528, -0.0870900601, -0.0704520568, 0.2077792138, 0.0883651376, 0.2569259703, 0.2160900086, 0.0695266426, 0.0620280653, -0.3969857395, -0.2876625061, 0.0426679552, 0.4161449373, -0.3931627572, 0.0595920533, -0.1244836673, -0.216604948, -0.0977733433, -0.5352475643, -0.0786895677, -0.3155717552, -0.1555617154, 0.1735684723, 0.1367603093, 0.1662629098, -0.1210424304, -0.1262291223, 0.1058904156, -0.4859182537, -0.2068845779, -0.0484760702, -0.017488936, 0.0651339591, 0.2804498971, -0.1032846868, 0.2476292104, -0.1312972605, -0.1217800826, -0.1863986552, -0.0907367468, -0.0835307986, -0.1042266637, 0.2084369808, 0.264452219, 0.3542819917, 0.0467900708, -0.1947211772, 0.3619306087, -0.1828134358, 0.0223101173, 0.3297628164, -0.1260292679, -0.0134162102, -0.0603097677, -0.5458138585, -0.5458029509, -0.3574633598, -0.1193348616, 0.1282773912, 0.1643209904, 0.4390530884, 0.1495429873, 0.1939642429, -0.106573455, 0.0041576722, -0.0272341017, -0.1540676057, 0.4063128531, -0.2877521515, -0.2439706624, 0.1713532209, -0.040531233, 0.1901891828, -0.1609369516, -0.4939944744, -0.2556859553, -0.0731519982, 0.038228672, -0.1987713575, -0.0513625219, 0.2149720937, 0.0962021798, -0.1009548679, 0.1519617438, -0.1301397234, -0.0496765189, 0.1687471867, 0.0203160271, -0.2199279964, 0.5267876983, -0.2912863791, 0.5844217539, 0.1298207939, -0.097659193, 0.3287141025, -0.2017040104, 0.4355215728, -0.2107224911, -0.5223429799, -0.0787452236, 0.2892432809, -0.1790048927, 0.180033505, 0.0565604083, -0.2591914535, -0.2643008232, -0.0444025956, -0.3779844344, -0.0743462816, 0.1186381504, -0.0179856308, 0.0781657025, -0.0592777468, 0.0965214744, -0.1504167914, -0.1698939651, -0.1216431111, 0.3782084882, 0.0190807953, 0.1019872501, -0.0288798939, 0.0270933844, -0.3145632744, 0.2298071086, -0.0520730764, 0.07154686, -0.2187214196, 0.0831158534, -0.0285105854, 0.029310625, 0.361294508, -0.0923880562, 0.0112153003, 0.4276466966, 0.072345078, -0.4850646853, -0.0946589708, -0.2761999965, 0.167673707, -0.001272243, 0.2047503591, -0.1170452014, -0.1677078754, 0.3938709199, 0.2733161747, -0.0797540545, -0.3248059154, -0.4682422578, -0.3894967437, -0.4203396142, -0.0765345916, -0.1250402331, 0.0756563544, 0.105262354, -0.1257731915, -0.0364614427, 0.0204614028, 0.1145616397, -0.014096383, 0.2421567887, 0.0633370206, 0.126145348, 0.1231672764, 0.1575559825, 0.3707534671, 0.5872366428, -0.1024380699, -0.3017363548, -0.0854126662, 0.1388858259, 0.0639619157, 0.2150995582, -0.2014813125, -0.3429366648, 0.0943885148, 0.1914982945, 0.0416607857, -0.0360613167, 0.5686714053, -0.1586036086, -0.3970258832, -0.2941640019, 0.402808547, -0.1327414364, 0.1745824665, 0.2641440332, -0.1621220708, -0.1939864159, 0.1144842952, -0.2864451706, 0.7768806219, -0.1121845767, 0.2149888873, 0.6759076118, 0.1097223759, 0.4076383412, -0.0114144403, 0.1372163743, -0.3117955029, -0.1835331768, -0.1531408131, -0.2621163428, 0.09902744, 0.2857243419, -0.1570023149, 0.4138244987, -0.2599774599, 0.1028070003, -0.1273013353, 0.1603610963, -0.0852784365, 0.0861264914, -0.3097005188, 0.1809031069, 0.0234545935, 0.3886291683, -0.2298666388, 0.1079558581, -0.1512608975, -0.2345504612, 0.002513784, 0.1233491525, -0.4199483395, 0.2769892812, -0.0176258907, -0.1646071076, -0.1869406104, 0.247104153, -0.070444487, -0.0975800157, -0.1174653172, 0.0991973728, -0.1049690992, -0.0900422037, -0.1319459677, 0.0436582826, 0.2979976535, -0.0978419855, -0.2941856384, 0.0657166243, -0.1450731158, -0.279520601, 0.2277365625, 0.0566372275, 0.2674981058, -0.3583119512, -0.2808160484, -0.0401816443, -0.0521990545, -0.0776874721, 0.1419313997, 0.0039219097, 0.0197129268, 0.0714480579, -0.243500039, -0.3559808731, -0.1612129807, 0.2835135162, -0.2098851353, 0.0607412308, 0.5739113092, 0.1368584037, -0.2089031786, -0.3013285697, 0.1953062117, 0.0391630121, -0.1753418595, 0.2251407057, 0.2365748733, 0.2650002837, -0.0125540588, 0.2555107176, 0.2237352729, -0.0629732162, -0.1974659711, -0.3072935045, -0.1711296439, 0.0286056008, 0.0978400409, 0.2520788908, 0.0883997306, 0.0631106049, 0.3833884895, -0.2658514977, -0.3185986578, 0.0119841034, -0.0162869934, -0.0612216443, 0.0742239878, -0.0595228262, 0.5541497469, 0.0120948255, 0.2147975713, -0.3351582289, -0.0658873469, -0.282309711, -0.0192318317, 0.1273973137, 0.1241839901, -0.1153777167, 0.082035087, -0.257568568, -0.2182907313, -0.1288655847, -0.0556794181, 0.2382220179, -0.0639590845, 0.1493337452, 0.0589089878, -0.0790562332, -0.1343443394, 0.0602041148, -0.2575854957, 0.0918631554, 0.0379101709, 0.1405529082, 0.2113551795, -0.1355242431, -0.4185725152, -0.0494290702, 0.0334854238, 0.0262348, 0.2199244797, -0.1869715899, -0.0101037025, -0.0072820578, 0.3588444293, 0.1904234439, -0.2865006626, 0.0540696867, 0.2150326222, 0.2182924896, -0.2886956632, 0.0796892121, -0.0444070436, 0.0619236082, 0.1027721465, 0.1913685352, -0.3624689281, 0.0646900088, -0.1960901469, 0.0315472744, 0.3888281882, -0.1976902634, 0.0516500473, 0.399838388, -0.1716949493, 0.0677288994, 0.2848178744, 0.0445195772, 0.1066730767, 0.5403019786, -0.1691644937, 0.0274335928, -0.274908185, -0.1154988855, 0.0093394304, -0.3157518506, 0.0527973063, 0.149911046, -0.0275919177, -0.006132083, -0.1501960903, 0.2725357115, -0.4593993127, 0.1213817745, -0.3764192164, 0.377787441, -0.1425218433, 0.1625411808, -0.1579575837, 0.0105230575, -0.0120908422, 0.0446167625, 0.0195147898, -0.2471571565, 0.2412218451, 0.4903679788, -0.1194791347, -0.1413522363, 0.3903645575, 0.2625901401, -0.1352914721, -0.2359022647, 0.3025464416, 0.3034742773, 0.1200006753, -0.0492575802, 0.487074852, 0.4269423783, 0.4090619683, 0.0039018809, 0.2013228387, -0.0100114262, -0.1889313757, -0.0214956254, 0.0882003903, -0.0550459661, 0.5318030119, 0.1638850421, 0.2567686141, -0.2468537986, 0.1854959875, 0.0133692818, -0.0159491822, -0.1292091161, 0.6912082434, -0.2564795315, -0.1056897864, -0.233110249, 0.0544373691, -0.5289074183, 0.2520843446, 0.3535762131, 0.0812641457, 0.1096362397, 0.0725060478, 0.0778280646, 0.0445871614, 0.2782053947, 0.3427437842, 0.30538252, -0.5661407709, 0.024391463, -0.6365789771, 0.1711901575, -0.2892042994, -0.0434494168, -0.1806511283, -0.0156531017, -0.1364324838, 0.1296591908, 0.1261665076, 0.0536836721, -0.0534697212, -0.1056467891, -0.289837569, -0.0953033641, -0.0626653954, 0.0257229917, 0.0159504693, -0.4950200021, 0.0248201005, -0.413179785, 0.0006354289, 0.0270588715, -0.1335080117, 0.0396981239, 0.3611628711, 0.45333758, -0.0263894852, 0.5661261082, -0.0605584085, -0.196563825, -0.1913535148, -0.2649547458, -0.1598000973, 0.2294674665, 0.1461037993, 0.3851698935, -0.3064143658, -0.0087606777, -0.4270079732, 0.290129751, -0.0378128961, -0.0673950985, -0.2009867579, 0.0023699878, -0.1316206455, 0.1983623654, 0.1464609057, -0.0151978666, -0.0840772018, 0.1883645803, -0.2635798156, -0.3884924352, 0.461283952, -0.2634094656, -0.2436618209, 0.0428762138, 0.1699990481, -0.0931859761, 0.1788181067, -0.4839810133, 0.3811456859, 0.4383373559, 0.1640304923, -0.2190377563, 0.1378460228, 0.0010954404, 0.1383844614, 0.0792406276, 0.4123993218, 0.007534401, -0.3825777769, -0.0340820141, -0.1186553314 ]
https://github.com/huggingface/datasets/issues/873
load_dataset('cnn_dalymail', '3.0.0') gives a 'Not a directory' error
experience the same problem, ccdv/cnn_dailymail not working either. Solve this problem by installing datasets library from the master branch: python -m pip install git+https://github.com/huggingface/datasets.git@master
``` 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
24
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 experience the same problem, ccdv/cnn_dailymail not working either. Solve this problem by installing datasets library from the master branch: python -m pip install git+https://github.com/huggingface/datasets.git@master
[ -0.2242927402, 0.1419457644, -0.0225758627, 0.2384323776, 0.3819947541, 0.1261650026, 0.6168981194, 0.2147599757, -0.0231773313, 0.1334126741, -0.1637565494, 0.058236558, -0.3759567142, -0.1230778396, 0.0085836845, 0.1149686202, -0.096401386, 0.1582956165, -0.205109641, -0.1422859728, -0.3901510537, 0.1864793301, -0.0768185332, 0.0159925055, -0.254440248, -0.2072731555, -0.1191692948, 0.4782720208, -0.2281917781, -0.3415710926, 0.2912244201, -0.1937134713, 0.2596126199, 0.6446202397, -0.0001103697, 0.1348131597, 0.2574552596, -0.0459847264, -0.599034369, -0.6107158065, -0.1344918013, -0.1810777187, 0.2224272937, -0.285746932, -0.0545736775, 0.1120455042, 0.0625396222, 0.0195217486, 0.3589364588, 0.5676549077, 0.2382050902, 0.2500875294, -0.021465404, -0.1423245668, -0.1394215822, 0.3917793334, -0.0832961872, 0.5298008919, -0.3784788847, -0.0074531641, 0.300991714, 0.2560058534, -0.3467571735, 0.248128593, 0.3105842173, 0.0931706503, 0.2014933378, -0.3185790777, 0.0102560492, 0.0520642214, 0.4628159404, -0.3776452839, -0.2139324695, -0.0260959938, 0.087480396, -0.4519511759, 0.3440143168, 0.3034416139, -0.1303298622, 0.053182967, -0.1461746097, -0.1438383758, -0.1814102381, 0.4520485401, -0.1718833148, 0.2167278826, -0.0570035167, 0.0317017697, 0.0401941463, 0.0549001507, 0.5230497718, -0.2012924254, 0.1109837815, 0.1689763069, -0.0259171445, 0.0619169883, 0.2004216909, -0.1987337768, -0.1959023029, 0.1629694849, -0.0814731568, -0.2725149691, -0.0308208372, 0.0420360491, 0.0562603101, 0.1875985265, -0.0870421603, 0.5960316658, 0.2050023824, 0.2587226331, -0.0126045849, -0.1288866848, -0.3524647653, -0.249772504, 0.1027379334, 0.0556451678, 0.636834085, 0.0808700472, -0.2626220882, -0.1706475466, -0.2875089943, 0.0266696084, 0.1824935377, 0.377037406, 0.0879200399, -0.0015780833, 0.1018525735, 0.2980030179, -0.0611402541, 0.3207466304, -0.2227891982, 0.2121761143, -0.1194053516, -0.038934771, 0.2705803216, -0.2202293128, 0.1217842996, -0.1732522547, -0.0137372091, -0.0063967071, 0.1550606936, -0.1759006977, 0.0742248669, 0.5078184009, -0.1087168306, 0.2788079977, 0.2708215714, 0.0265565664, -0.3172303438, 0.132672742, -0.1793327332, -0.4073956311, -0.0890355036, 0.191819638, 0.043319799, -0.1540219933, 0.0512395613, -0.2044744343, -0.1510189027, -0.1646994054, -0.0049301796, -0.1914941072, -0.0878128484, -0.3597047627, 0.2943395674, 0.6152351499, -0.3911427259, 0.0004787063, -0.4250386357, -0.1540965885, 0.1708232611, 0.2825910747, -0.1810852438, 0.4182516336, -0.2191810161, -0.2109977752, 0.4664490223, -0.4039040506, -0.4069177806, 0.1619244665, -0.1690846235, -0.0231490135, 0.0143250721, 0.1950931251, -0.1637684107, 0.087465398, 0.0317932554, 0.3440904915, -0.0140820872, 0.0791540965, -0.0952030793, -0.2890998423, 0.1494428813, 0.1394834369, 0.2537146807, 0.2065376043, 0.0017705066, 0.0574447848, 0.0345365927, -0.1340151429, -0.0199385546, 0.1930294186, 0.4896595478, 0.0706251711, -0.3033567667, -0.0080357334, -0.5152103901, 0.1154647693, 0.0506805368, 0.2688595951, -0.2443438321, 0.0475811884, -0.2807431817, -0.1213217452, -0.2518717945, -0.0720805898, 0.1413441747, 0.3626241982, 0.0602166578, 0.0658183396, -0.2875798941, 0.2650076151, 0.055536408, 0.1482610404, -0.1362413615, 0.4147194326, -0.1979317069, -0.0624309219, -0.0436082259, 0.1352326572, 0.2345962077, -0.144653216, -0.1301756948, 0.3645672798, -0.1508780122, -0.0773252845, 0.0398344435, -0.1054768488, 0.0736473724, -0.0363831446, 0.2342953682, 0.3620505929, 0.1599351317, -0.0431436449, -0.1002387628, 0.2904097736, 0.1619523764, 0.0390075259, 0.1538697332, -0.0371429808, 0.0395895056, -0.0555202104, 0.1082933843, -0.0412752666, 0.2116335928, 0.0997431055, 0.4739991724, 0.0227579921, -0.1307648718, -0.3711324036, 0.270595938, -0.1347056776, 0.144420132, 0.1506157666, -0.2888513505, 0.0992452428, -0.190003112, 0.1472335011, 0.6052932739, 0.1164713576, 0.032504566, 0.1258144528, -0.0870900601, -0.0704520568, 0.2077792138, 0.0883651376, 0.2569259703, 0.2160900086, 0.0695266426, 0.0620280653, -0.3969857395, -0.2876625061, 0.0426679552, 0.4161449373, -0.3931627572, 0.0595920533, -0.1244836673, -0.216604948, -0.0977733433, -0.5352475643, -0.0786895677, -0.3155717552, -0.1555617154, 0.1735684723, 0.1367603093, 0.1662629098, -0.1210424304, -0.1262291223, 0.1058904156, -0.4859182537, -0.2068845779, -0.0484760702, -0.017488936, 0.0651339591, 0.2804498971, -0.1032846868, 0.2476292104, -0.1312972605, -0.1217800826, -0.1863986552, -0.0907367468, -0.0835307986, -0.1042266637, 0.2084369808, 0.264452219, 0.3542819917, 0.0467900708, -0.1947211772, 0.3619306087, -0.1828134358, 0.0223101173, 0.3297628164, -0.1260292679, -0.0134162102, -0.0603097677, -0.5458138585, -0.5458029509, -0.3574633598, -0.1193348616, 0.1282773912, 0.1643209904, 0.4390530884, 0.1495429873, 0.1939642429, -0.106573455, 0.0041576722, -0.0272341017, -0.1540676057, 0.4063128531, -0.2877521515, -0.2439706624, 0.1713532209, -0.040531233, 0.1901891828, -0.1609369516, -0.4939944744, -0.2556859553, -0.0731519982, 0.038228672, -0.1987713575, -0.0513625219, 0.2149720937, 0.0962021798, -0.1009548679, 0.1519617438, -0.1301397234, -0.0496765189, 0.1687471867, 0.0203160271, -0.2199279964, 0.5267876983, -0.2912863791, 0.5844217539, 0.1298207939, -0.097659193, 0.3287141025, -0.2017040104, 0.4355215728, -0.2107224911, -0.5223429799, -0.0787452236, 0.2892432809, -0.1790048927, 0.180033505, 0.0565604083, -0.2591914535, -0.2643008232, -0.0444025956, -0.3779844344, -0.0743462816, 0.1186381504, -0.0179856308, 0.0781657025, -0.0592777468, 0.0965214744, -0.1504167914, -0.1698939651, -0.1216431111, 0.3782084882, 0.0190807953, 0.1019872501, -0.0288798939, 0.0270933844, -0.3145632744, 0.2298071086, -0.0520730764, 0.07154686, -0.2187214196, 0.0831158534, -0.0285105854, 0.029310625, 0.361294508, -0.0923880562, 0.0112153003, 0.4276466966, 0.072345078, -0.4850646853, -0.0946589708, -0.2761999965, 0.167673707, -0.001272243, 0.2047503591, -0.1170452014, -0.1677078754, 0.3938709199, 0.2733161747, -0.0797540545, -0.3248059154, -0.4682422578, -0.3894967437, -0.4203396142, -0.0765345916, -0.1250402331, 0.0756563544, 0.105262354, -0.1257731915, -0.0364614427, 0.0204614028, 0.1145616397, -0.014096383, 0.2421567887, 0.0633370206, 0.126145348, 0.1231672764, 0.1575559825, 0.3707534671, 0.5872366428, -0.1024380699, -0.3017363548, -0.0854126662, 0.1388858259, 0.0639619157, 0.2150995582, -0.2014813125, -0.3429366648, 0.0943885148, 0.1914982945, 0.0416607857, -0.0360613167, 0.5686714053, -0.1586036086, -0.3970258832, -0.2941640019, 0.402808547, -0.1327414364, 0.1745824665, 0.2641440332, -0.1621220708, -0.1939864159, 0.1144842952, -0.2864451706, 0.7768806219, -0.1121845767, 0.2149888873, 0.6759076118, 0.1097223759, 0.4076383412, -0.0114144403, 0.1372163743, -0.3117955029, -0.1835331768, -0.1531408131, -0.2621163428, 0.09902744, 0.2857243419, -0.1570023149, 0.4138244987, -0.2599774599, 0.1028070003, -0.1273013353, 0.1603610963, -0.0852784365, 0.0861264914, -0.3097005188, 0.1809031069, 0.0234545935, 0.3886291683, -0.2298666388, 0.1079558581, -0.1512608975, -0.2345504612, 0.002513784, 0.1233491525, -0.4199483395, 0.2769892812, -0.0176258907, -0.1646071076, -0.1869406104, 0.247104153, -0.070444487, -0.0975800157, -0.1174653172, 0.0991973728, -0.1049690992, -0.0900422037, -0.1319459677, 0.0436582826, 0.2979976535, -0.0978419855, -0.2941856384, 0.0657166243, -0.1450731158, -0.279520601, 0.2277365625, 0.0566372275, 0.2674981058, -0.3583119512, -0.2808160484, -0.0401816443, -0.0521990545, -0.0776874721, 0.1419313997, 0.0039219097, 0.0197129268, 0.0714480579, -0.243500039, -0.3559808731, -0.1612129807, 0.2835135162, -0.2098851353, 0.0607412308, 0.5739113092, 0.1368584037, -0.2089031786, -0.3013285697, 0.1953062117, 0.0391630121, -0.1753418595, 0.2251407057, 0.2365748733, 0.2650002837, -0.0125540588, 0.2555107176, 0.2237352729, -0.0629732162, -0.1974659711, -0.3072935045, -0.1711296439, 0.0286056008, 0.0978400409, 0.2520788908, 0.0883997306, 0.0631106049, 0.3833884895, -0.2658514977, -0.3185986578, 0.0119841034, -0.0162869934, -0.0612216443, 0.0742239878, -0.0595228262, 0.5541497469, 0.0120948255, 0.2147975713, -0.3351582289, -0.0658873469, -0.282309711, -0.0192318317, 0.1273973137, 0.1241839901, -0.1153777167, 0.082035087, -0.257568568, -0.2182907313, -0.1288655847, -0.0556794181, 0.2382220179, -0.0639590845, 0.1493337452, 0.0589089878, -0.0790562332, -0.1343443394, 0.0602041148, -0.2575854957, 0.0918631554, 0.0379101709, 0.1405529082, 0.2113551795, -0.1355242431, -0.4185725152, -0.0494290702, 0.0334854238, 0.0262348, 0.2199244797, -0.1869715899, -0.0101037025, -0.0072820578, 0.3588444293, 0.1904234439, -0.2865006626, 0.0540696867, 0.2150326222, 0.2182924896, -0.2886956632, 0.0796892121, -0.0444070436, 0.0619236082, 0.1027721465, 0.1913685352, -0.3624689281, 0.0646900088, -0.1960901469, 0.0315472744, 0.3888281882, -0.1976902634, 0.0516500473, 0.399838388, -0.1716949493, 0.0677288994, 0.2848178744, 0.0445195772, 0.1066730767, 0.5403019786, -0.1691644937, 0.0274335928, -0.274908185, -0.1154988855, 0.0093394304, -0.3157518506, 0.0527973063, 0.149911046, -0.0275919177, -0.006132083, -0.1501960903, 0.2725357115, -0.4593993127, 0.1213817745, -0.3764192164, 0.377787441, -0.1425218433, 0.1625411808, -0.1579575837, 0.0105230575, -0.0120908422, 0.0446167625, 0.0195147898, -0.2471571565, 0.2412218451, 0.4903679788, -0.1194791347, -0.1413522363, 0.3903645575, 0.2625901401, -0.1352914721, -0.2359022647, 0.3025464416, 0.3034742773, 0.1200006753, -0.0492575802, 0.487074852, 0.4269423783, 0.4090619683, 0.0039018809, 0.2013228387, -0.0100114262, -0.1889313757, -0.0214956254, 0.0882003903, -0.0550459661, 0.5318030119, 0.1638850421, 0.2567686141, -0.2468537986, 0.1854959875, 0.0133692818, -0.0159491822, -0.1292091161, 0.6912082434, -0.2564795315, -0.1056897864, -0.233110249, 0.0544373691, -0.5289074183, 0.2520843446, 0.3535762131, 0.0812641457, 0.1096362397, 0.0725060478, 0.0778280646, 0.0445871614, 0.2782053947, 0.3427437842, 0.30538252, -0.5661407709, 0.024391463, -0.6365789771, 0.1711901575, -0.2892042994, -0.0434494168, -0.1806511283, -0.0156531017, -0.1364324838, 0.1296591908, 0.1261665076, 0.0536836721, -0.0534697212, -0.1056467891, -0.289837569, -0.0953033641, -0.0626653954, 0.0257229917, 0.0159504693, -0.4950200021, 0.0248201005, -0.413179785, 0.0006354289, 0.0270588715, -0.1335080117, 0.0396981239, 0.3611628711, 0.45333758, -0.0263894852, 0.5661261082, -0.0605584085, -0.196563825, -0.1913535148, -0.2649547458, -0.1598000973, 0.2294674665, 0.1461037993, 0.3851698935, -0.3064143658, -0.0087606777, -0.4270079732, 0.290129751, -0.0378128961, -0.0673950985, -0.2009867579, 0.0023699878, -0.1316206455, 0.1983623654, 0.1464609057, -0.0151978666, -0.0840772018, 0.1883645803, -0.2635798156, -0.3884924352, 0.461283952, -0.2634094656, -0.2436618209, 0.0428762138, 0.1699990481, -0.0931859761, 0.1788181067, -0.4839810133, 0.3811456859, 0.4383373559, 0.1640304923, -0.2190377563, 0.1378460228, 0.0010954404, 0.1383844614, 0.0792406276, 0.4123993218, 0.007534401, -0.3825777769, -0.0340820141, -0.1186553314 ]
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.2756949663, -0.6896211505, 0.1162040234, 0.3686617315, 0.3344204724, -0.0612297319, 0.3348028064, 0.1536110342, -0.2083399147, 0.1179819405, -0.0654010102, -0.3324612081, -0.0295324028, 0.4058205187, -0.1832790077, -0.2990667224, 0.0189543366, 0.1540885419, -0.462133199, -0.0021638412, -0.2290544808, 0.3899802566, -0.2134581655, 0.3483884335, -0.1130776033, 0.1178063974, 0.0829797685, 0.012772074, -0.0949838609, -0.2316043228, 0.2211650014, -0.0909960121, 0.1667656749, 0.3702023029, -0.0001311232, -0.0367904045, 0.26559484, 0.057068985, -0.1440137476, 0.1104690507, -0.0511533506, 0.1461776793, 0.0536197647, 0.036151737, 0.0598798506, -0.2049441189, 0.2089882493, 0.2312645316, 0.4897399843, 0.0151624931, 0.0531786494, 0.306332022, 0.3312011957, 0.0816990882, -0.0270449463, -0.1165641546, -0.2888155878, -0.0628104731, -0.1118594408, -0.0160787534, 0.3052895367, 0.0109919617, 0.076532498, -0.1810524464, -0.1658042669, -0.0464860909, 0.4919874668, -0.3176008165, 0.2732106149, 0.3026654124, 0.565993011, -0.2089447826, -0.3208207488, 0.2825088203, -0.1629637182, -0.6633639336, 0.0295161009, 0.0157641917, 0.0368275493, 0.2872443497, -0.1765950173, -0.0747152865, -0.3560746908, 0.0618632808, -0.248319909, 0.3457751572, -0.0724098757, 0.3870838284, 0.1909076273, 0.0661903173, -0.3279820979, 0.2797855139, -0.1643181741, 0.0391896218, -0.3566978276, -0.267706722, -0.0797546506, 0.1459317207, 0.1702949852, 0.1213660911, -0.0884901211, 0.0574843995, 0.2507759929, 0.1139540076, 0.4480936825, 0.0888855085, -0.0909257457, 0.0955571383, 0.2637129426, 0.1925384253, -0.0199966133, 0.0608910061, 0.1707048267, -0.2056466192, 0.2166097313, -0.0390899144, 0.5442740321, -0.4371445477, -0.3980946839, 0.3282664716, -0.5851675272, 0.073432751, 0.1095120385, 0.4647296965, -0.0218742229, 0.159107998, 0.2288997471, 0.0017636142, -0.2170955241, -0.3298824728, -0.0325272717, 0.124877885, 0.0135930022, 0.0792468712, -0.0938061029, -0.1105457097, 0.018960651, -0.168766126, 0.0570335686, -0.4175058603, -0.0315142497, -0.2017416507, -0.2151170373, 0.0476764962, 0.0230270941, 0.091301389, 0.0626818389, 0.2338237464, -0.1088443324, -0.0194760691, 0.2328734845, -0.4418898821, -0.1168155521, 0.0209348034, -0.3718618751, 0.0700107664, 0.051176466, 0.1008899361, 0.0117204608, 0.0647247881, 0.0112041207, -0.1178452075, -0.6016007066, 0.0955599248, 0.2137633562, 0.5098162293, -0.2983198464, -0.2831718326, 0.0214246009, -0.2185605317, 0.1330841035, 0.3510251641, -0.1074053422, 0.4740377963, -0.1680227965, 0.0771276131, 0.4050400257, -0.0754854903, -0.4074356556, 0.2993322015, -0.1043751538, -0.0264380332, -0.2313580066, -0.3312266469, -0.2108637393, -0.0910305455, -0.4682710171, 0.0834767371, 0.0042563523, 0.0229094103, -0.3265225291, -0.2786826193, 0.2017013431, 0.1292589903, 0.0848952904, -0.1155645475, 0.0439048745, 0.5326941609, 0.0079245986, -0.159925431, -0.0717028752, 0.2296440452, 0.3724676371, 0.0957859531, 0.0016299618, -0.0008598257, -0.3926900029, 0.1919946969, -0.1509629488, 0.3499164879, -0.0339806825, 0.1316321045, -0.3984311223, 0.2384351641, -0.3872939646, -0.2096569389, 0.0423253141, 0.1670192182, -0.1135270074, -0.0217389315, -0.0022786774, 0.2230875939, -0.3238987327, 0.1648086011, -0.1945524812, 0.2180783302, -0.1290381998, -0.1867524832, -0.0920873359, 0.2005739063, 0.1242626086, -0.247216031, -0.0812024027, 0.5033462644, -0.4497035444, 0.3622525036, 0.1256985962, 0.2714713812, -0.1072641984, -0.7133017182, -0.1491653174, 0.0605794378, 0.0442921482, 0.0842486992, 0.2721659243, 0.0209644865, 0.3687013388, 0.1002800167, 0.0422447771, -0.1372861862, 0.0769411102, -0.1270651519, -0.3090757728, -0.0567716584, 0.1960812807, 0.097505644, -0.0979715362, 0.0925750881, -0.3171669543, -0.1859456003, 0.5001755953, -0.3895014822, 0.1055525541, 0.19409208, 0.2213134915, 0.0158278905, -0.0167705305, -0.3721934557, 0.4321250319, -0.1188455224, -0.0447105654, 0.2925681174, -0.234923467, 0.3068990707, 0.2109820843, 0.2268822193, -0.0990800187, 0.2470542043, 0.1511302292, 0.1275758147, -0.283547461, 0.1347998679, -0.0292089488, 0.3193384409, -0.3493128121, 0.3340670466, -0.2501597106, 0.0029523971, -0.0844354331, 0.1695371717, -0.232777223, -0.117502816, -0.07774584, 0.3478624225, 0.2846854329, 0.2375228852, 0.1363136321, 0.2873689532, 0.3123163879, 0.0504828244, 0.0776462927, 0.0606766194, -0.3715507388, -0.1625667065, 0.2789062262, -0.0084199095, 0.1755382568, -0.0387268402, -0.2875963449, -0.1948438138, -0.2629096508, 0.436643064, -0.2573682666, 0.3862487972, 0.2549957335, 0.323866874, 0.0508053191, -0.2321356684, 0.3769731522, -0.0804985762, -0.1112753376, 0.1476732939, 0.0080181286, 0.0012474948, -0.1322031617, -0.1545512825, -0.003123306, -0.2535024881, 0.3643814325, -0.1252319515, -0.0454623513, 0.1597647071, 0.0816028714, 0.0978147164, 0.0324480422, 0.0944974869, -0.2424069345, 0.0712936819, 0.1028507277, 0.1708685309, -0.1095625237, 0.0842223242, 0.1628802568, 0.4006050825, 0.0270044655, -0.5209592581, -0.0805878565, -0.0152729861, -0.2542365491, -0.0713414252, 0.1167050004, 0.3368330598, 0.0828819126, 0.1637865007, 0.113112472, -0.0577148609, 0.362665534, 0.1209021658, 0.4364431202, 0.1704383492, 0.6243661046, 0.0359676816, 0.4471468031, 0.2275728285, -0.0947056785, 0.3119548559, 0.093693532, 0.0500961728, -0.0640042201, -0.2120325416, 0.0056939111, -0.1506774426, -0.1362486184, 0.3213933408, -0.1273610294, -0.0524927452, -0.2199125737, 0.3802466691, -0.2665280402, -0.3836389184, -0.1950198114, 0.4791101515, 0.4469767809, -0.2117849886, -0.1293499321, 0.021055432, 0.1487209797, 0.2695375383, 0.0164812319, 0.0836110935, -0.0299993213, 0.1247652248, -0.1271419525, -0.3214205205, 0.220269233, 0.0824960917, 0.3695673943, -0.2289722711, -0.0523839742, 0.2229159623, -0.0894600824, 0.3142280877, -0.1110013723, 0.0958874896, -0.0223503876, -0.3808890283, -0.0712857246, -0.170749411, -0.2458641827, -0.0534695312, 0.1116186306, 0.1962756068, -0.7227669358, -0.1465536505, 0.6654102802, 0.0148797659, -0.2597119808, -0.0307938419, -0.4269812703, -0.4244687855, -0.3164511919, 0.0260617044, 0.189884752, -0.0228523258, -0.1808920652, 0.1003894582, 0.1215848774, -0.3787503242, 0.1677026749, 0.2431924492, -0.0777747855, -0.2946284711, -0.1419633329, 0.1522612721, -0.242896691, -0.2091579139, 0.3184257746, 0.231577307, -0.359194994, 0.3091991842, 0.1930265725, 0.1260816604, 0.4352580905, -0.237452805, 0.0241908673, -0.393363148, 0.1062250882, -0.0747988746, 0.189696461, 0.6916983724, 0.1641765386, -0.3732662797, 0.1904458106, 0.4620966911, -0.1921071559, 0.0380772538, 0.2201417089, 0.3627294302, -0.1466460824, 0.2382564098, -0.1088860035, 1.2690070868, 0.0817548931, -0.1839941144, 0.3657687008, 0.1786312312, 0.2574060857, -0.2753505111, 0.2142231464, -0.2846077085, -0.2586663067, -0.0980638787, -0.0324809775, -0.0331734754, -0.1119144112, -0.467831105, 0.3271197975, 0.1595579088, -0.1385072023, 0.2032444328, 0.2743907571, 0.0084878849, -0.0066027828, -0.2490340918, -0.0122614019, -0.0838417709, 0.5479548573, -0.4007767439, -0.0408158489, 0.1884877384, 0.069105655, -0.5751296282, 0.1962982416, -0.2301561683, 0.0088636819, 0.1688931733, -0.1305912882, 0.3103166819, 0.1113414094, 0.3887816668, 0.1505531222, -0.3223507404, 0.0906870961, -0.2385721952, -0.1092514247, -0.1439512819, 0.2629017234, 0.063634105, -0.1279808879, -0.4963577688, 0.1836185902, -0.0275695194, -0.1637549847, 0.0390905067, -0.486797452, -0.1143439785, -0.4812121689, -0.0499083102, 0.0644626543, -0.332257092, -0.191034779, -0.0241218153, -0.0708207712, -0.4919299185, -0.0446482748, 0.135320738, -0.3358822465, -0.032794714, 0.2914808989, -0.4647303224, 0.4955452383, 0.517592907, 0.4059621692, 0.03450232, -0.1226495653, -0.4105332196, -0.1057097614, -0.7558621168, 0.1090188622, -0.0462946296, -0.1276708245, 0.0046855821, 0.6766908169, 0.1893716604, 0.0832461715, 0.0375352763, -0.029181052, -0.1648816317, 0.2903733253, 0.0359389521, 0.3929034173, 0.0263908412, 0.667896986, -0.1816685349, -0.2087008506, -0.1348352581, -0.1140431985, -0.5952382088, 0.0431541428, 0.6293119192, -0.496810317, 0.2551212907, 0.2187539786, 0.047092475, 0.3650164008, -0.1530411988, -0.0085512372, 0.0009553024, 0.2152925134, 0.1432793289, -0.2293221056, -0.0499963351, 0.0648232773, 0.1181972176, 0.0223328471, 0.1977397949, -0.0345473289, 0.1043086648, 0.166860044, 0.4337747693, 0.0893756747, -0.3285417259, -0.0826572627, 0.1569118202, 0.3206036985, 0.4231342375, 0.1758079082, -0.0221180115, -0.1343771219, -0.0098299785, 0.2518423796, 0.5083556771, -0.0776100904, 0.3535530269, -0.2344878018, -0.1737599522, -0.2526758909, 0.4068443179, 0.4358223081, -0.3030585349, -0.0776447207, -0.0429383926, -0.017499892, -0.1370072514, 0.0602758788, 0.2170643955, -0.0761532634, -0.1653427929, 0.5258347392, 0.0706920028, 0.0977591649, 0.3721159399, 0.266556859, 0.2728871107, -0.1531065702, -0.0537604429, 0.2709612548, -0.3218217492, 0.2332796007, 0.0879886746, -0.0149973994, 0.3673680127, -0.1052373573, -0.1762791872, -0.0077569797, -0.6213700175, 0.5529289842, 0.0994611979, -0.411948204, -0.1608333588, 0.0955715254, 0.2579676509, 0.1640248746, -0.1661911011, 0.3881982267, 0.0901011527, -0.3478379548, -0.4924355149, 0.5627105236, -0.1220691577, -0.3420289159, 0.1224457249, 0.0005515256, -0.4981299639, 0.2230650783, -0.15280734, -0.3076919019, -0.1538957804, 0.1734645665, -0.1786794066, -0.2412707806, -0.3105519414, 0.1349077374, 0.0829803348, -0.1681080014, 0.3439383507, 0.2536004484, -0.23037301, -0.250780344, 0.4816983044, 0.0894158334, -0.076877065, -0.2228054553, 0.200296104, 0.018481886, 0.1735890806, 0.1793343723, -0.0232882686, -0.0084644342, 0.2301131189, 0.2180698365, -0.0970743522, -0.0307916179, -0.0214373004, -0.0897680223, 0.1906959862, -0.535397172, 0.0491416678, -0.1127960756, 0.0020702039, -0.426614821, 0.2310675085, -0.4342005551, 0.2886887491, 0.2736754119, 0.0018204502, 0.0686450675, 0.155002296, -0.0375969224, -0.1003341675, 0.3217398822, 0.4034508467, 0.049166549, -0.3347397745, -0.2030800432, -0.2273230553, 0.3524523377, 0.017470466, 0.3788678944, 0.34898296, 0.0774128214, -0.1255188882, 0.2282454669, 0.1392573416, 0.2732208669, -0.1463271528, 0.2943370044, -0.159306109, -0.2022356838, -0.3895687163, -0.0320484526, -0.0684847161, -0.1479367614, 0.152860716, -0.0483462587, -0.0999762565, 0.0195354838, -0.4915774465, -0.3992328346, -0.1382071227, 0.0471326858, 0.2893936336, -0.0539370999, -0.1106615737, -0.1935110837, -0.1631004214, -0.3601305187, -0.1371569335, 0.1329977661, -0.2041322142, 0.1272542775, -0.0116049247, 0.3329963386, -0.3921409547, -0.0241246521, 0.2137950361, -0.1817459762, -0.3372460008, -0.0258330759, -0.2492693216, -0.0717045292, 0.1051631123, 0.2207346261, 0.1219840869, 0.038379848, -0.4720089436, 0.0056415154, 0.6514028311, -0.0394013487, -0.1021968871, 0.0251279604, 0.0307155717, 0.3078188598, -0.1596794724, -0.5445813537, 0.0636715293, -0.0219521336, 0.0791896209, -0.2491620034, 0.1685010493, 0.1020447388, -0.0360070877, 0.1172408313, 0.3234375417, 0.2480835319, 0.0809632465, 0.3928502798, -0.0464748591 ]
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.1825483739, -0.7557111382, 0.0836405382, 0.5567312837, 0.3312152624, -0.0441039875, 0.2286124229, 0.2201019526, -0.3796161115, 0.3128045797, -0.010040815, -0.4250835776, 0.0028814189, 0.5060403943, -0.228791967, -0.4332331419, -0.071047537, 0.3094233871, -0.3874347508, 0.1011396125, -0.226445958, 0.4186718464, -0.2191980183, 0.1852835417, 0.0081758434, 0.1957096905, -0.0577185452, -0.0667140037, -0.3531188071, -0.346853286, 0.0182196181, -0.2039837539, 0.0581338592, 0.3137000501, -0.0001306237, -0.0284279473, 0.2318884581, -0.0366354994, -0.0024559903, 0.1110140383, -0.0404464267, 0.0954326615, -0.043240875, 0.057170853, -0.0214734692, -0.2490233928, 0.1340973079, 0.0824280828, 0.4000379145, 0.1778145432, 0.0598793924, 0.070828177, 0.5268981457, 0.101187706, 0.1303854734, -0.1859423667, -0.2451242208, -0.0544140786, -0.0872221291, 0.2543928921, 0.2519204617, 0.0127647528, 0.234361127, -0.1039734781, -0.15829961, -0.1667216718, 0.4694924057, -0.3594507873, 0.3739230633, 0.5036095381, 0.4249297082, -0.1596077085, -0.2389924824, 0.1978805959, -0.0463760421, -0.7821179628, 0.0214623194, 0.1177389175, -0.0314021967, 0.3177410066, -0.1956368089, 0.0250428468, -0.3913386762, -0.0535503998, -0.3420303464, 0.1048158333, -0.1563072503, 0.2693474889, 0.3107014596, -0.0123634422, -0.3689584136, 0.4468305409, -0.2233466059, 0.0046291719, -0.3167671561, -0.2840055525, -0.0876740143, 0.0885874778, 0.3425699174, 0.0983417407, 0.0299791787, -0.0441863872, 0.3686287701, -0.0731782168, 0.44844684, 0.0698964521, -0.1750060916, -0.0474614874, -0.0304172337, 0.2391154468, -0.0833928511, 0.0399035402, 0.0878182277, -0.386467576, 0.0334503017, -0.0612448305, 0.5407345891, -0.4030385911, -0.3742883503, 0.5508589149, -0.5646087527, 0.1382817328, -0.0152639896, 0.3928343058, 0.0368887559, 0.3064095676, 0.1208621413, -0.0254709292, -0.1815388948, -0.4603444934, -0.0324586593, 0.0571847074, 0.0687047765, -0.0381939821, -0.2290017605, -0.1918752491, 0.0274248514, -0.1162858978, 0.2301359177, -0.4824360907, -0.0526086427, -0.386057198, -0.1272220761, 0.0582953505, 0.1070082113, -0.0941503495, 0.0039940751, 0.1228219122, -0.1368776411, 0.1021425799, 0.2030081749, -0.3419501185, -0.2019579411, 0.0443181582, -0.2757990956, 0.2491313219, 0.0974387378, 0.267670244, 0.070139423, 0.128598541, 0.0375480913, -0.2970993817, -0.5591108799, 0.0333801359, 0.210963726, 0.3538913429, -0.4521016181, -0.11013145, 0.1289374828, -0.1627076268, 0.2067389041, 0.3624172509, 0.065941751, 0.291163981, -0.2080686539, 0.1842983514, 0.3846416175, 0.004162116, -0.4475168586, 0.4741541445, -0.1718916744, 0.0268616341, -0.0815854222, -0.5575348139, -0.0763309821, 0.0625406876, -0.3875138462, 0.0609402172, -0.050427895, -0.1020275503, -0.378696233, -0.334883213, 0.2869662642, 0.0521849655, 0.0931095555, -0.264441371, -0.0289086923, 0.34709692, 0.1054541469, -0.116480343, -0.0546408668, 0.2943661809, 0.1599953324, -0.0123671228, 0.0500188731, -0.0715427771, -0.0598855615, 0.1266558021, -0.1815430075, 0.2302285135, 0.1811086833, 0.0477649681, -0.4110558033, 0.2406521887, -0.1958538443, -0.1214051768, 0.0813282728, 0.0905067325, 0.0031742763, 0.0335055441, 0.0377166495, 0.0373363458, -0.2790011466, 0.1965819895, -0.1421754658, 0.06883654, -0.2133824974, -0.1122261062, 0.0000703821, 0.2261545062, 0.0785465688, -0.132674396, -0.135835439, 0.407790035, -0.1459800601, 0.1788314283, -0.0823333412, 0.0799967498, -0.1061849967, -0.6050516963, 0.0727639869, 0.0006517902, -0.07936313, 0.0802317485, 0.4008989334, 0.0033714816, 0.4482319057, 0.1287203133, 0.0407875404, -0.2953244746, 0.0407611057, -0.0307980366, -0.2658251226, -0.1130767092, 0.2272974253, 0.0492020324, 0.0264590513, 0.0901863202, -0.3722547591, 0.0433301702, 0.5868804455, -0.3244766593, -0.0204519238, 0.3520977199, 0.1912363321, -0.0975402445, -0.1523132175, -0.2997418344, 0.289899826, -0.0278741494, 0.1170781478, 0.2232638448, -0.1730559617, 0.1739895344, 0.2037850022, 0.206352666, -0.0424581468, 0.3433316946, 0.1607791185, 0.0747346878, -0.1942744255, 0.1378560364, -0.0842173398, 0.2802477181, -0.2942640185, 0.2067052424, -0.346475631, -0.1027300656, -0.0360144973, 0.2028558105, -0.1097784489, -0.0775027499, -0.012180252, 0.1491120011, 0.2092546523, 0.0943253189, 0.0159659106, 0.3456902504, 0.301530093, 0.3043165207, 0.1930471063, 0.2721778452, -0.3297427297, -0.0792557746, 0.2436172664, -0.0994974747, 0.1018212214, -0.0045346655, -0.2779573202, 0.0478784591, -0.3190452456, 0.3975231349, -0.2260152996, 0.4261747599, 0.2910576463, 0.3495921791, 0.1624095142, -0.1286508292, 0.2713697255, 0.131009683, -0.2149522603, 0.118975468, 0.0433746204, 0.1060264111, -0.1928849965, 0.0047684, 0.0756090209, -0.3440091014, 0.5978236794, 0.0725696757, 0.0980790704, 0.1002421826, 0.264318496, 0.19800964, 0.1320690513, 0.22369425, -0.3274867535, -0.0945419222, 0.0702341422, 0.0601465926, -0.1019028127, 0.0203385968, 0.1251719445, 0.5520700812, 0.0094987676, -0.6542895436, -0.0641241819, -0.0393793657, -0.3225174844, -0.054801859, 0.0118519543, 0.2194900066, -0.0144388368, 0.1663329154, 0.1242133677, 0.0081101405, 0.2320035845, 0.1027007923, 0.3276296556, 0.1301311404, 0.6841676831, 0.1434122175, 0.4717111886, 0.3242793381, 0.0999209806, 0.229210645, -0.0142610036, 0.1526380032, -0.1874092966, 0.0287795439, 0.201057151, -0.1487112045, -0.2289174497, 0.3736219406, -0.1404169798, -0.0357157774, -0.0309775285, 0.2981757224, -0.174961105, -0.306198746, -0.0185547303, 0.4317143857, 0.1991916895, -0.3637694716, 0.0199158788, 0.0947429985, 0.1148885563, 0.1037392691, -0.1432927996, 0.0509277433, 0.1069003642, 0.1287240088, -0.2539615929, -0.453119427, 0.2327686995, 0.1363758296, 0.2795757651, -0.2190573215, -0.1029561013, 0.2003330439, -0.1413599551, 0.2534676194, -0.0616669133, 0.0041802139, 0.087019138, -0.2812108696, -0.0106084906, -0.1489332467, -0.1682470739, -0.0887436047, 0.0999074653, 0.0629591346, -0.6216031909, -0.0018598206, 0.6708573699, 0.0052205035, -0.1165490374, 0.1024373099, -0.3825122118, -0.440628022, -0.2710042298, 0.0987985209, 0.3051101267, 0.1490621269, -0.1904391646, -0.0208012536, 0.0858973339, -0.3469174504, 0.203547433, 0.2855480909, -0.0550696999, -0.2784849703, -0.090960525, 0.0618516207, -0.2808577716, -0.0092506306, 0.3237591982, 0.1873804331, -0.4014208317, 0.3799909651, 0.1589247435, 0.2553517222, 0.5518909693, -0.1993994117, 0.1199703068, -0.3612649739, 0.3271136284, -0.2000965923, 0.3403960168, 0.6970121264, -0.0088741519, -0.2793237567, 0.1268751174, 0.3541105986, -0.308373034, 0.1861292869, 0.2749053538, 0.4879738092, -0.1317800879, 0.2013568282, -0.0295755025, 1.3459968567, 0.1415598691, -0.2212048024, 0.3623625636, 0.0220963396, 0.0692188069, -0.3213458955, 0.2226081938, -0.2752582133, -0.2632493675, -0.0801573098, -0.0565180667, -0.0217669737, -0.196566835, -0.5029946566, 0.1471654922, 0.1461596787, -0.2665554285, 0.0257625356, 0.2183861285, -0.0723986477, 0.0217419546, -0.0787744373, 0.0044370661, -0.1270933449, 0.2550246716, -0.2989116311, 0.0173456501, 0.0929536894, -0.0203151219, -0.7395153642, 0.1649554372, -0.3972653151, -0.2317931354, 0.0192547068, -0.2671797574, 0.2511184812, 0.1190085188, 0.2909443676, 0.2553222477, -0.3112869561, 0.056603197, -0.2090292126, -0.2243221104, 0.011705705, 0.1983578503, 0.0477386974, -0.1979282647, -0.3976751566, 0.1828245819, 0.1018942371, 0.0594496578, 0.1003049091, -0.5291591287, -0.0906658545, -0.5466356874, -0.0517877191, -0.1237380877, -0.1631927937, -0.183369413, -0.022483049, -0.0587468483, -0.4974467456, -0.2320778966, 0.1272785962, -0.3527325094, -0.0955882594, 0.1552882046, -0.2879286706, 0.5394786, 0.4464951158, 0.3756779134, 0.0185433272, -0.0896206051, -0.2411794066, -0.1186505407, -0.5672414899, 0.1138517633, -0.1296154708, -0.1808696836, -0.1257191896, 0.4178600013, 0.2591120899, 0.0729355067, 0.0418939181, -0.0680545792, -0.2588286996, 0.2252997011, -0.0678903908, 0.4425282478, -0.0162385572, 0.6142120957, -0.1967767775, -0.0419653282, -0.1338168383, 0.0241283365, -0.4663617313, -0.0486498587, 0.4135291874, -0.5600551367, 0.06436757, 0.1984221339, 0.0650205687, 0.5820106864, -0.1316850781, -0.0346596651, -0.0889135003, 0.177110523, 0.0784015357, -0.259367317, 0.0305793881, 0.1024134383, -0.0138138477, 0.022782106, 0.1982652247, -0.1138100997, 0.1905842125, 0.0753317773, 0.4522087574, 0.0531573631, -0.229777053, -0.0633599982, 0.2922236919, 0.5698917508, 0.4143063724, 0.2580899596, -0.047365807, -0.1122659445, 0.0235163923, 0.3457762599, 0.4345479906, -0.2133329213, 0.3456012607, -0.221512869, -0.1793735176, -0.1741839051, 0.3166129291, 0.4049059451, -0.3494210243, -0.0612708814, -0.0223753862, -0.0171979964, -0.12059737, 0.0780511349, 0.2076965272, -0.1472242177, -0.19904387, 0.4944215119, 0.0151158329, 0.0951930359, 0.2049709111, 0.2440080643, 0.0434976257, -0.0081222272, -0.1455042511, 0.3248818219, -0.3696916103, 0.1776640415, 0.0745545328, 0.0668808892, 0.5588194728, 0.0386204347, -0.2440876812, -0.0359906405, -0.5670961738, 0.5346630812, 0.1142035201, -0.3848811984, -0.2093839496, 0.2809017599, 0.0738079324, 0.2291563898, -0.0532869846, 0.3404660821, 0.2014730424, -0.4261125922, -0.5190358758, 0.4846899211, -0.2030850798, -0.3480958343, 0.1934644431, 0.030553693, -0.589163065, 0.3082304895, -0.0769737139, -0.248485595, -0.2079978138, 0.0530773327, -0.1518978626, -0.0550666042, -0.2682465613, 0.0707605109, 0.1284527183, -0.3370708823, 0.4778939486, 0.4300206602, -0.1742852479, -0.1102565303, 0.4660419226, 0.2497322112, -0.0895265415, -0.2848264873, 0.0940388069, 0.1176965162, 0.0793226063, 0.0723171905, -0.0033885587, 0.1967159957, 0.4727393687, 0.3561048508, -0.0767648369, -0.0420947075, -0.0304098837, 0.0197085179, 0.1798906326, -0.6338069439, -0.0884627923, -0.1270016581, 0.066770725, -0.3211508393, 0.0748251453, -0.5564796925, 0.2530537546, 0.1631412506, -0.0004769187, 0.0540476106, 0.1432606727, -0.032744702, -0.0677552149, 0.2711185813, 0.4403899312, 0.0064047263, -0.2855246663, -0.2524415553, -0.1323000789, 0.3613682687, -0.2400722355, 0.1405516714, 0.3154826462, 0.1597658396, -0.1240987554, 0.1682176292, 0.2631751299, 0.3169572353, -0.0629001185, 0.3524360359, -0.1335165054, -0.2348482758, -0.3311815858, -0.1356593966, -0.0208175927, -0.1364220828, 0.2971142232, -0.0657788068, -0.1463048756, 0.095892556, -0.255074054, -0.3955488205, -0.2489902824, 0.0886134654, 0.2972624898, -0.092504479, -0.1601974517, -0.2199966758, -0.2032060772, -0.2314457148, -0.2321933508, 0.2132410705, -0.1535037905, 0.1309257299, -0.0800578222, 0.1188632622, -0.2190868407, 0.0467713699, 0.2452975214, -0.0743781403, -0.3315638304, -0.021746207, -0.2387634665, -0.0298106838, 0.2515650094, 0.2170668393, 0.147957921, -0.0192638915, -0.3196558058, -0.0805417821, 0.5513910651, 0.0214871429, -0.0822736546, 0.0524178185, 0.0193323977, 0.3917850256, -0.1135358661, -0.6487383246, 0.1016551331, 0.0261531062, 0.1344753504, -0.2566711009, 0.267762512, -0.1109555066, -0.0772485659, 0.0469754711, 0.3199749887, 0.2324952036, 0.0502794273, 0.3381661773, -0.1106574237 ]
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.4354713857, 0.2950848937, 0.0567215495, -0.2441310883, -0.0972464755, -0.2072376013, 0.3331261873, 0.1758842766, 0.2980455458, 0.3277401328, 0.503434062, 0.2391880155, -0.0176375974, 0.1306848377, -0.0111618098, -0.1541547924, -0.1673547626, 0.3164185286, 0.0948441774, 0.0943591446, -0.1742428243, 0.228941381, -0.2351752222, -0.3131572306, -0.0942863822, 0.1758474857, 0.0615476519, -0.1762808561, 0.0486641228, -0.2417837977, 0.0536901951, 0.4617236257, -0.2017271668, -0.0629811883, -0.0001233125, -0.151917249, 0.1834260076, -0.1822314262, -0.6022983193, -0.1147578284, -0.3729271293, -0.291446209, -0.0992285311, -0.2274686396, 0.062269114, 0.3424102664, -0.0458788015, -0.4362996221, 0.2800566852, 0.3078562319, 0.0495161153, 0.1074071601, -0.5713553429, -0.0663226321, 0.5268214345, 0.2910936773, -0.0629603043, 0.0548023693, 0.0162092075, 0.0578810796, -0.4066483676, 0.3086513579, -0.3627742231, -0.2398992181, 0.3153907359, 0.0333260074, -0.1040526107, 0.0191558115, 0.1258227825, 0.6455950141, 0.60443151, -0.5228233933, -0.1811378896, -0.537461102, 0.3158693612, -0.2599709928, 0.0773755312, 0.0897541568, -0.4800503254, 0.1028655767, -0.3286265135, -0.5799757838, -0.2724968195, 0.0282562878, 0.0515559129, 0.0071638133, 0.0852805078, -0.1294995099, 0.2139757872, 0.2667275369, -0.1155732051, -0.3966218829, -0.1672591716, -0.0120493807, 0.1866080463, -0.1383512616, -0.1339077652, 0.0295249838, 0.2464732677, 0.1903959364, 0.2343107313, -0.07289318, 0.1659850478, -0.0096087949, -0.1466227472, 0.001083507, 0.6396603584, -0.1263293475, 0.3962597251, -0.0598770119, 0.2541896999, -0.0147518525, 0.3621480763, -0.0553385727, 0.2506430745, 0.2168619037, 0.5353252888, 0.0507847108, -0.101528883, -0.0084514432, 0.1577018201, -0.2738271058, 0.0231102537, 0.023177512, 0.2529733777, 0.2497904003, 0.0939323306, 0.3397792876, -0.0245640334, -0.4520848691, -0.0115848389, -0.0739063919, 0.0690934286, 0.4735102654, 0.4798799157, -0.1322537363, 0.0188572314, 0.3098444343, -0.3272877336, 0.2125816047, -0.2599174976, 0.010739468, -0.0624033622, 0.0897313356, 0.050296139, -0.0514475517, -0.2781387866, 0.1292172968, -0.1442713737, 0.3982302845, -0.2081496119, -0.2423781455, -0.0120957661, 0.1186781004, -0.1746380627, -0.1164850295, -0.1190118343, 0.3408356309, 0.2329738289, -0.2190412432, 0.3950002193, -0.0677531511, -0.4148362577, -0.1905249804, 0.1208386347, 0.6844408512, -0.5018537641, -0.3941884935, -0.244678542, -0.1617777348, 0.1972192824, -0.0845851302, -0.2083404809, 0.3146696091, -0.0943589285, 0.4131856263, 0.5370361209, 0.2126028389, -0.2113256454, 0.4115028679, 0.1002036333, -0.0268502664, 0.302057296, 0.1166806594, 0.4532319903, 0.0867430344, -0.3238539696, 0.5056156516, 0.1082095355, 0.2016530633, 0.0791892856, -0.1329990029, 0.3330932558, 0.1691438705, -0.1261502206, -0.0380362011, -0.0463946387, -0.0436889045, 0.1735133678, -0.1540233046, 0.0981509462, -0.057063587, 0.1134193316, 0.2344142199, -0.0318810977, -0.0984188169, -0.5309472084, -0.1450163275, 0.1449736357, -0.1053952947, -0.2306467444, -0.3572913408, 0.1532922238, 0.0899950117, 0.0845070854, 0.381942451, -0.0544855595, 0.0762403607, -0.4913654029, 0.1855788827, -0.2050106227, 0.1258591115, -0.0596175529, 0.2973452806, -0.0412375182, 0.1600447297, 0.4320733547, -0.1415889263, -0.0284115374, 0.2037592828, 0.0357374288, 0.0757633001, -0.1862322241, 0.5891008377, 0.2256731391, 0.3013255298, -0.3549937308, -0.314919889, -0.0073472336, 0.0785843432, 0.0901807472, 0.0804408044, -0.1342436969, -0.1915706694, -0.2021721303, 0.3526657224, -0.1503382921, 0.3353112042, -0.1181825623, -0.1217779815, -0.24941127, -0.3147170544, -0.2909690738, -0.4226795733, 0.201898545, -0.1425284296, 0.3798125088, 0.2567831576, -0.0651082993, -0.0855783522, 0.5796650052, -0.1368783414, 0.3069622815, 0.323811233, 0.0211424176, -0.1402038336, 0.1488455087, 0.2698789537, 0.3828231096, 0.2634970844, -0.1487601697, 0.066809997, -0.0059782462, -0.3844345212, 0.2802660763, 0.2170624584, -0.0857427195, 0.3734264672, 0.0165436454, -0.1488482803, -0.3234376907, -0.023939129, 0.0210029241, -0.0865443349, -0.3517746925, -0.1167267263, -0.2842798233, -0.2587320805, -0.1788251847, -0.2389431, -0.3589535356, -0.2414559871, 0.1967182457, -0.1388001144, -0.3496545851, 0.1834883541, -0.262919426, 0.7408046722, -0.1833309233, -0.5621784329, 0.0269696731, -0.1942999363, 0.0812377185, -0.0659784004, -0.0138454754, 0.1965547204, 0.2640573084, -0.0036520239, 0.0909797922, -0.0697481185, 0.1031589657, 0.0497972555, 0.0387121923, -0.2021921128, 0.4928570688, 0.1726311594, 0.3285780251, -0.2593167126, -0.179303363, -0.2124926895, 0.0418997966, 0.1382411718, 0.1157144383, -0.077010937, -0.3744925559, -0.1818037778, 0.0186164659, -0.2738804519, -0.0273665767, -0.4108986557, 0.0061277114, 0.2384627312, 0.0889582485, 0.0378395133, -0.0128536746, -0.0526319668, 0.0465870872, 0.1360523403, 0.3777828813, 0.0184195135, 0.150437668, -0.0623602495, -0.0568682328, 0.0013303026, 0.3807697892, -0.4775210619, 0.2629412115, -0.1200352684, 0.4952282906, -0.1220983639, -0.0351204425, 0.3664514124, 0.1364006251, 0.081517987, -0.2246570885, -0.0147725819, 0.2787933946, -0.3612315655, 0.0486784093, 0.2344338894, 0.5663762689, -0.0025379926, 0.3888107538, -0.0068310564, 0.1409279108, 0.2664132416, -0.1572482586, 0.3855632842, 0.3046707213, -0.2800632417, -0.315149188, 0.0795115158, 0.0812318698, 0.2062060833, 0.0704422668, 0.0193445329, -0.1236399412, -0.4614206851, 0.239813894, -0.5338417888, 0.1624888331, -0.0830805302, 0.2392725796, -0.135408625, 0.2915026546, -0.2403938621, -0.3213285804, -0.0137794716, 0.3209162354, 0.3365843594, -0.072371617, -0.2709951997, 0.3177297413, -0.2754436731, 0.1121077538, 0.1583700478, -0.0539844334, 0.0672315359, -0.1683014035, -0.0166093502, 0.2334417403, 0.5474970341, -0.1255035549, -0.3826481402, -0.1610996425, 0.2949236631, -0.0890731514, -0.0021832122, 0.1107507795, 0.2331683636, 0.2805107832, -0.0554787554, -0.2624711394, -0.0135301603, 0.2837167978, 0.1578983814, -0.0368036143, -0.6033735871, -0.0771298781, 0.0821997821, -0.0916733742, 0.0179503132, -0.028876001, 0.0184796862, -0.2994560599, 0.1300359964, 0.3077909052, -0.3788070083, 0.3649576008, -0.0937259421, 0.1118698791, -0.0028546394, -0.0436352231, -0.217523396, -0.1295162439, -0.0625526235, 0.271780163, -0.2432943881, -0.3551976681, -0.4424706399, -0.4403401911, 0.6828675866, 0.2383653522, -0.2397621274, 0.296623677, -0.0111268507, 0.0083186636, -0.0566014014, -0.045577921, -0.1543449014, -0.5080238581, -0.1981164813, -0.4083795846, 0.3745974004, -0.0850753039, -0.1184438691, 0.0197539516, -0.0309662744, -0.4312165976, 0.1509431601, -0.1620284021, 0.7613746524, 0.438947171, 0.233931303, -0.0483151339, -0.0530290902, 0.4091445804, 0.2154637426, 0.0468548015, -0.1680983901, 0.1603153944, -0.1227327362, -0.0489166826, 0.201766476, 0.0660160333, -0.4209388793, 0.1925767809, 0.1253012568, 0.0905523971, -0.1094527319, 0.3929075599, -0.5889465213, -0.4246121943, 0.1515377164, -0.0910884142, -0.1265281439, 0.0108972816, 0.2151645571, -0.1984630376, 0.4758719206, -0.269028455, -0.3731586933, 0.109119378, -0.127702117, -0.1077001914, -0.0946270227, -0.1670501977, 0.3970531523, 0.4145121276, 0.1724784076, 0.3433481157, -0.1255666018, 0.0487632416, -0.2599711716, 0.1427633762, -0.0769662783, 0.1011257693, 0.2524691224, -0.0155113619, -0.3237217665, 0.0645442158, 0.2027999312, -0.4637386203, -0.2452298254, -0.3908306658, 0.2647169232, -0.4940483868, -0.0714088306, -0.0571232997, 0.3570422232, -0.1817009598, -0.0178062506, 0.0578142218, 0.3217686117, 0.0182357989, -0.2762845457, -0.1267781556, -0.1952647269, 0.32642138, -0.0292978026, 0.0016730971, 0.4528478682, 0.2491424084, -0.1543954164, -0.2483579814, 0.0330741331, -0.0227092877, -0.679912746, 0.2017115057, 0.1961641312, 0.1710074246, -0.0467553735, 0.2048946172, -0.2973153889, 0.2577688992, 0.0099282498, -0.2536349595, 0.0011223278, -0.0372333638, 0.255960077, 0.4014253318, 0.2199048698, -0.1678388268, 0.0035414146, 0.0085901897, -0.1561027318, -0.0239542257, 0.4870347679, -0.1765924096, 0.0112179201, 0.209370628, -0.0970265493, -0.2056295425, -0.1125249267, 0.0031666593, 0.0437211879, -0.0393632874, -0.3089467287, 0.2235018909, -0.1048403829, 0.0451109633, -0.1107984185, -0.00854252, 0.1096315384, -0.1315191239, 0.320810318, 0.1152766645, -0.2157722414, 0.3483761251, 0.1890639514, 0.3747317791, -0.2061554492, 0.096938163, -0.3119314313, 0.2090505958, -0.0529517159, 0.2815996706, -0.07820265, 0.0784907788, -0.1537644267, 0.1794763058, 0.5239456296, 0.1282904148, 0.0408468731, -0.0844518319, -0.2382965982, 0.0513688326, -0.0489970557, 0.0801127777, -0.4318628609, 0.0219558217, 0.1042870134, 0.0863746107, -0.2357272059, -0.0589278229, 0.0660034716, -0.011379634, 0.1313071251, 0.2672939003, 0.0319643132, -0.1237803102, 0.1912896335, -0.140900135, 0.4049848318, 0.237860769, 0.1618034393, 0.5519502163, -0.0044508125, -0.0477991663, -0.1967973709, 0.3016055822, 0.0184471495, -0.0318386033, -0.0680062771, 0.3881103396, 0.199178502, 0.0285222083, -0.1200756282, -0.3986969888, 0.19488585, 0.2730500698, -0.2493603975, 0.2182580233, 0.1928060055, 0.2495423257, 0.0528859235, 0.0230409168, -0.2613328993, 0.2050992697, -0.066204153, -0.1579677165, -0.5553824902, -0.02185883, -0.1779493093, -0.0033022715, 0.0341414586, -0.0601882003, -0.0307574999, 0.1199646071, 0.0815439522, -0.0037848668, 0.3470275104, -0.3495809436, 0.2278905809, -0.3045915961, -0.1719605774, -0.1140138134, 0.3842437267, 0.5464940667, -0.0421134233, 0.1087836772, 0.1423358917, 0.263182044, -0.0332071744, -0.1873615682, -0.005222796, 0.0934944004, 0.2236048728, 0.1216043681, 0.5366201997, 0.3224512935, -0.0000480222, 0.0238542669, 0.496155858, 0.1896337569, -0.0232981518, -0.4056718647, 0.4001928866, 0.4818980396, -0.169130832, -0.4080251455, 0.0576712713, 0.1050149575, -0.2676213384, 0.264718622, -0.0559795275, -0.1701760441, -0.2995612025, 0.020115152, 0.0405170731, 0.1210688949, 0.3503685594, 0.0009223607, -0.110689722, -0.0419923663, -0.2783929408, -0.2308304161, -0.0526417531, -0.0632620677, 0.2438690513, -0.2401642799, 0.062630035, 0.1671018004, -0.3163397312, 0.3353953063, -0.3051982224, -0.3688961864, -0.1019047275, -0.0181720722, 0.1649080813, -0.0723792911, -0.1675794423, -0.084036909, 0.0713460222, -0.1059038341, -0.1353933662, -0.1731178761, 0.2033347338, 0.3793599308, 0.3174945712, -0.116692692, -0.1601062864, 0.1857251227, -0.1130655929, 0.1530614793, 0.0698582157, 0.2486238927, -0.2387925237, -0.0182065833, 0.2196346521, 0.2118973434, 0.028792236, -0.0389986187, 0.0500124842, 0.5180227757, -0.0331455506, 0.1850026995, -0.1818420738, 0.0306759439, -0.1150215864, 0.0227193516, -0.1071350202, -0.2259224802, -0.182999447, 0.1417905241, 0.0761198327, -0.1698004007, 0.2956994176, -0.23869358, 0.0191463251, -0.3457775116, 0.441811502, 0.2836982906, 0.0435622968, -0.7789452672, -0.1735750288, 0.3784146607, -0.0504152998, 0.0143382736, 0.5416886806, 0.1780782938, 0.2196511477, -0.0907409713, 0.2851371169, -0.0125171114, -0.3764243126, -0.1094918475, -0.3844893873 ]
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.0789996162, -0.0689799711, -0.0829852298, 0.0613857135, -0.0888233036, 0.094061628, -0.0122486288, 0.2985755503, 0.0025456205, 0.0863161907, -0.5969398022, -0.0512049347, -0.2450726628, 0.0754725039, 0.1506561786, -0.3321435153, 0.0520218983, -0.1897599548, -0.2447093278, -0.2940577269, -0.1997527629, 0.1900048703, 0.1084448248, -0.0705984905, 0.2079500109, -0.2153773457, -0.4340273738, -0.1118401289, -0.1303547025, -0.1936030537, -0.0030158858, 0.2002113611, 0.2905132771, 0.6354882121, -0.0000960657, -0.105705671, -0.0594701618, -0.2390715778, 0.0947270542, -0.1166666523, 0.2534609437, -0.0826731101, -0.1983727366, -0.3360139132, -0.4045936167, -0.3702589273, -0.0277562775, -0.4808141291, 0.1629257798, 0.1797288209, 0.2806834579, -0.2271095961, -0.1751102805, -0.2170570642, -0.0248894934, -0.2869289815, -0.3192921579, 0.0610995367, 0.5420655608, -0.0749459937, 0.0386709422, 0.3806000054, 0.1031533182, -0.2377462536, -0.117909275, -0.0452903993, 0.0805146769, -0.3604674339, 0.1537547261, 0.3372954428, 0.0197726041, -0.3421412706, -0.3169184923, -0.1763938665, -0.0491280034, -0.0205627847, -0.2518904805, 0.3864116669, 0.0364639983, 0.2546267509, 0.2060189545, -0.2413934618, -0.1193950474, 0.1010258198, 0.0317342281, 0.5971213579, 0.080175899, -0.123755537, -0.0247246288, 0.0153800212, -0.0398107283, -0.0067008166, 0.0270718243, 0.1904659867, -0.3079115748, -0.3250466585, 0.2066057026, -0.1593378186, 0.4159705639, -0.1509890854, 0.2482503057, 0.1740215719, -0.1795058846, 0.1214327291, 0.2831608653, -0.089935787, -0.1744021922, -0.1156538501, 0.0723324046, -0.4601123631, 0.0820821971, 0.174363777, -0.1357316077, 0.1313312352, -0.2064629793, 0.0541560911, -0.0775344819, -0.0458715297, 0.0806470364, -0.0537389927, -0.2299367487, 0.0137936668, -0.0986442268, 0.0768382922, -0.0258920267, 0.0120433876, -0.0909741595, 0.0679468364, -0.1071034595, -0.2761721313, -0.2034254521, 0.2176356912, -0.3801769018, 0.1288456768, 0.1727492809, 0.0190115105, 0.0119643286, -0.2340984195, 0.2328409553, 0.2133852988, 0.3611578047, -0.320294708, 0.1609595269, -0.1494006962, 0.2117093205, -0.2598240972, 0.0502513871, -0.2192110717, -0.471473664, -0.0295627378, 0.0450573564, -0.3023354113, -0.1582365334, 0.2464544028, -0.2315225303, -0.1368898302, -0.2449244857, 0.7459754348, 0.0073854374, 0.124761343, -0.0491995774, -0.0011199266, -0.3634639382, -0.0202039797, 0.0891347453, 0.2649676502, 0.1860183626, -0.0088049807, 0.0476064123, 0.1841080934, 0.1200440079, 0.3375631571, -0.1249202192, -0.1493848711, 0.0020367291, 0.1753961444, 0.2010472119, -0.250919342, 0.0566660091, 0.0413588695, 0.0060924618, -0.0718066692, 0.1888000369, -0.1069103628, 0.364887774, -0.3289221525, 0.1453192532, 0.6325169802, -0.2468335778, 0.1829524785, -0.2372280508, -0.0358666405, -0.0515487827, 0.2669640779, 0.3047319055, -0.3177726567, 0.1110947505, -0.3176098466, 0.1368641555, -0.1907481253, 0.2715632915, -0.0199099015, 0.1988721639, 0.0542280674, 0.2405930758, -0.4054970145, -0.0055576582, 0.0321985818, -0.0676579103, 0.5373082161, -0.0850453079, -0.3493943214, -0.1995298713, -0.2065917403, -0.03813418, -0.0213452615, 0.2677494884, 0.3026919663, 0.0885429084, 0.0233812761, -0.1373602003, -0.0861660391, -0.1342483312, -0.3086871207, -0.0033675623, 0.3649311066, -0.0922914445, -0.0811055824, 0.2129442096, 0.4055529833, -0.1997702569, -0.2372058183, 0.1052785814, 0.1152988374, -0.1646991968, 0.0917296112, 0.506190598, 0.3447549641, 0.1893039793, -0.5001248121, 0.1349045187, 0.1144303456, 0.1833436191, -0.0649385974, -0.1615115851, 0.296672374, 0.1831853986, -0.0219673347, 0.2072993964, -0.0891565233, 0.371212095, -0.0440206267, -0.0954974741, -0.0847255588, 0.0343358479, -0.0143097583, 0.0468292907, 0.1122887954, -0.5806651115, 0.1995319873, 0.5494887233, 0.0785555169, 0.3099136353, 0.1553823799, -0.0023567455, -0.1778403372, -0.0857952684, 0.0435630865, 0.114114359, 0.3094470799, 0.3973642886, 0.0615206286, 0.1920934618, -0.0087895896, 0.1732657999, -0.1201452389, 0.2182254344, 0.2752733529, 0.2165375352, 0.0397535488, -0.2015641481, -0.16706568, 0.0866318643, 0.10498669, 0.3335333169, 0.1044119522, 0.1620947421, -0.2809585631, -0.2595307827, -0.1624913663, -0.102666758, -0.0025335921, 0.2718780339, -0.2838677764, -0.1953326762, 0.25302881, -0.0899115205, 0.3012339175, -0.1137073413, -0.0297509972, 0.1293423772, -0.4761377871, -0.096370928, 0.2489106655, 0.2857629955, 0.0243882369, 0.4065279067, 0.1019363478, -0.0001939933, -0.0554573871, -0.4803338945, 0.1979083568, -0.2193891406, -0.1993475258, -0.0839121193, -0.3282856643, -0.0089862384, -0.2560660839, 0.1163565889, -0.1906365454, -0.1358749568, -0.0239539649, -0.1252662241, -0.0306450129, -0.1082519665, -0.6249160171, -0.5535082817, -0.3931677341, 0.1162366346, -0.0869349018, 0.1905636042, -0.222254023, -0.2236909717, -0.05321851, 0.2386678755, 0.1823454201, -0.2849721611, -0.0559281372, 0.2615026534, -0.386819154, -0.2336462885, -0.2682063282, -0.3120084405, 0.2669035792, 0.1276142895, -0.0902530029, 0.0230466947, -0.0722817034, -0.3246202469, 0.2294095308, -0.0798893198, 0.2951597869, 0.2661080658, -0.2085751742, -0.068394579, -0.0480040498, 0.0669266358, 0.1893722117, -0.03522484, -0.0691744536, 0.2103769481, 0.2413161844, 0.3895182014, -0.0755582303, 0.1789117903, 0.3257671893, 0.3153469861, 0.0676872581, -0.0875458121, -0.2006428093, 0.1844977438, 0.185775429, 0.0273675341, 0.5681688786, 0.2440770417, -0.7737676501, -0.2368361354, -0.0665208399, -0.2774052322, -0.2823316753, 0.2267482579, -0.0064303768, 0.167270124, -0.0694508404, -0.3338107169, -0.2970199883, -0.086769402, 0.1868285388, 0.01795852, -0.0448423587, 0.1390143633, -0.1333761215, 0.169353053, -0.3628246188, 0.1929846853, 0.2051901221, -0.0744498149, -0.0547927544, -0.1376659572, 0.0149120921, -0.0647610128, -0.0724486038, -0.3927127123, -0.0003970672, 0.1283618361, -0.3000940979, 0.0754092038, 0.015313454, -0.282461971, 0.0676110536, 0.390035212, -0.0661962181, -0.4734050035, -0.2287933379, 0.1623783708, -0.009826283, -0.0981699675, -0.1904399991, -0.0223836936, -0.4972300529, -0.0557000376, 0.1005583927, 0.1771859974, 0.1592844874, 0.0268541761, -0.0268480703, -0.1146924794, -0.0503914729, 0.3639602065, 0.1062972546, -0.1620108038, 0.354857564, 0.1845196337, -0.1037702337, 0.2475249618, 0.2776953876, 0.3752758503, -0.2040378898, -0.2674692571, 0.2303124815, -0.4009723067, 0.3091103137, 0.0440562665, 0.3894360065, 0.2537853122, -0.1759383678, -0.05484391, -0.1668066233, -0.0964003056, -0.02525823, 0.2476738393, -0.437276572, -0.6188765764, 0.3124138117, 0.1915922016, -0.2940199971, 0.3257554471, 0.1227360666, -0.4092985392, 0.6036090851, -0.0085067237, 1.0068215132, -0.206482023, 0.0192679409, -0.0757429227, 0.2425939292, 0.1657003313, -0.3214389086, -0.0249561183, -0.0408601798, -0.1627238095, 0.1012694612, 0.179309234, 0.0055644368, 0.1615141332, -0.2621531487, 0.092974022, 0.0894045606, -0.0839614794, 0.0868635997, 0.398065716, 0.0476872474, -0.3139053583, -0.2840449214, 0.2409486324, -0.003706956, -0.0164634436, 0.0375617854, -0.1747714281, -0.0627153069, 0.3782949448, -0.4576458037, 0.0030912657, 0.2986184657, 0.0420785546, -0.131815061, -0.2317119837, 0.5097087622, 0.0554343052, 0.4480834007, -0.1488119215, -0.0856936723, 0.0614238977, -0.1998294145, -0.1961731315, 0.105941765, -0.1727457643, 0.4053301513, -0.0920225009, -0.3007206023, 0.293148458, 0.3604837954, -0.1609972864, -0.2587649822, -0.0515531637, 0.0858495384, 0.0663369521, 0.1887255609, 0.3918242455, -0.302421093, -0.0377420709, 0.2599421442, 0.2304694802, -0.2249954194, 0.1714369506, -0.0128719481, -0.1304265112, -0.0046185907, -0.0113622807, 0.5888925195, -0.1910802871, 0.028340051, 0.2820192575, -0.0597929284, -0.2995472848, -0.2678391337, 0.1736904383, 0.0272034537, -0.0603510402, -0.1044183448, -0.2405277044, 0.1992272586, -0.0005386607, 0.252237916, 0.1426199526, -0.0704540238, 0.0334542766, 0.1015532166, 0.1490963697, -0.032287553, 0.0185113791, -0.1188639253, 0.0478744283, 0.0688778609, 0.3429550827, -0.5057382584, 0.0078537697, -0.2016776651, 0.2185337991, 0.0528444536, -0.0939104185, -0.0618634783, 0.1001632735, 0.117612727, -0.0188256316, -0.1256080568, -0.2954028249, -0.1370367855, 0.0935642049, -0.0899440646, 0.2373555452, 0.1993774921, -0.061828278, -0.1603847593, -0.3016292453, 0.1719176918, 0.1017068475, 0.0034258242, 0.0895932764, 0.3138924539, -0.1009607613, -0.0453008972, -0.0164863728, 0.0591558702, 0.1452390105, -0.0343683138, 0.163966924, 0.0371304266, -0.2268974185, 0.1959363073, 0.2424286604, 0.0517468788, 0.1004217789, 0.2397505343, 0.2974245548, 0.1709430069, 0.3149259686, 0.1969354153, -0.1982325315, 0.0142866792, -0.0125678405, 0.0564444996, 0.317278266, -0.3726845682, 0.0981691629, 0.127009511, 0.0227460843, 0.3888133466, 0.3959034681, 0.2513136268, 0.104005143, 0.0570985265, -0.0961457565, 0.24205634, 0.0094871391, 0.2537920475, -0.1055885255, 0.1361369342, -0.0255207401, 0.1322354972, -0.0362822115, 0.4412901402, 0.1181590855, -0.1980966479, 0.4327000082, 0.3672032952, 0.0002730547, 0.1847952455, -0.0257601105, 0.1654512882, 0.2912636399, 0.2248009592, 0.1123096943, 0.0766999647, 0.4137377441, 0.1545704454, 0.0604717284, -0.1232115179, 0.3448938429, 0.1426743269, 0.1009163558, -0.2385987788, -0.1853680611, -0.3306391835, -0.0049491464, -0.108682178, -0.1603017449, 0.2862165272, 0.0123146912, 0.1106622294, -0.0545542054, -0.0300407354, 0.0132003976, 0.3707944751, -0.1473267972, 0.2632620037, 0.3792475164, -0.3474476039, -0.1610163301, 0.4022833109, -0.0734458342, 0.0082245469, -0.3307333291, 0.377104938, -0.0165935773, -0.0604394488, 0.0015691998, 0.1722233593, 0.1657083482, -0.1233997941, 0.1630358994, 0.1844745576, -0.1700633019, -0.0438159257, 0.1857717037, -0.1476701945, 0.1212134436, 0.2190966308, 0.2101527452, 0.1303414553, -0.1294062287, 0.0292534158, -0.5958347321, -0.2451605052, 0.2990207672, -0.0082033025, 0.0123210419, -0.1301582158, 0.1210964844, 0.2004071325, 0.4456833005, 0.1922938377, 0.2045444399, -0.0138143906, -0.346065104, -0.3378744125, 0.2569004297, -0.1420870423, 0.0148800174, -0.2077053189, 0.2883599997, 0.4104832411, 0.320003897, -0.3424782157, 0.3709460497, 0.0179373249, 0.0065470967, -0.5773762465, 0.1793446392, -0.0044494099, 0.1575573534, 0.0918135047, -0.0819356069, -0.1166494936, -0.1669201851, 0.216065079, -0.2341344506, -0.1001129523, 0.0029198411, 0.1120486036, 0.1357709318, 0.0802975297, 0.2219415754, -0.0308196582, -0.0328294858, 0.0714033321, -0.3288222253, -0.1540770233, 0.3053358495, 0.1469469517, -0.1198243573, -0.2654129863, -0.3528785706, 0.2071140558, 0.2779453695, -0.1227900535, 0.0493452363, -0.2114327401, -0.0391653441, 0.0466240682, -0.1417348981, -0.1302028596, 0.3917129338, -0.0472891815, -0.0689288378, -0.0754262283, -0.2966423035, 0.2450674325, -0.102734372, -0.3108024299, -0.3666955531, 0.0727659091, 0.2543422282, 0.275960058, -0.2505301237, 0.267518878, 0.2665630579, 0.295396626, -0.0816419646, 0.1215065941, 0.0683362111, -0.2200340033, -0.253470242, -0.1043633893, -0.0112960376, -0.2040100545, -0.3458048105, -0.2720399797 ]
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.2681196332, 0.1308587939, 0.0091980901, 0.172247842, 0.2753850818, 0.0738353804, 0.2072006166, 0.1833840609, 0.1529002637, -0.1035957262, -0.2849371731, -0.1424153447, -0.1180941314, -0.3181896508, 0.0306982324, 0.1511704177, 0.2635428309, 0.3381053507, -0.3553361893, -0.2657530308, -0.2365349531, 0.1956793517, 0.0699341595, 0.038372498, -0.3075054586, 0.1586766839, -0.1923209727, 0.3546023369, -0.0874144286, -0.3079352379, 0.3128030002, 0.0767816827, 0.2757259607, 0.7110570669, -0.0001215231, 0.1625318527, 0.1903070211, -0.0628712326, -0.4191225767, -0.3236560225, -0.0890153125, -0.3284657598, 0.1100218892, -0.1870280504, 0.1990172863, -0.2734277248, 0.0801438913, -0.2908488512, 0.4990461469, 0.3661043048, 0.1287854612, 0.3562701344, 0.1586526036, -0.0425905846, 0.148410812, 0.4451638162, -0.0781542584, -0.0663884878, -0.0085935201, -0.1054823473, 0.2778815627, 0.0019221193, -0.182976529, 0.0140807498, 0.4155779481, -0.0752486885, 0.0377338007, -0.3184425533, 0.0598811507, 0.2000166178, 0.7275674939, -0.4121955931, -0.755250752, -0.1253419966, -0.1917924285, -0.1638841778, 0.2845663726, -0.082617946, 0.0983771458, 0.2858669758, 0.0040535908, -0.3440299034, -0.166103363, 0.3062964082, -0.077549547, 0.1118349805, 0.0083073331, 0.024855854, 0.252110064, -0.1896157116, 0.3435189724, -0.341134727, 0.0948805287, 0.3831881285, -0.3209576607, -0.0606262982, 0.0867931172, 0.1025327072, -0.0663275719, 0.0996712744, -0.4005198777, -0.0226230733, -0.2901918292, 0.1602173299, 0.1484985501, 0.2043939233, -0.0641829222, 0.352540046, 0.2106775045, -0.1175973117, 0.1762676835, -0.0752194673, -0.2436424941, -0.2041594088, 0.0367049985, -0.0733524486, 0.1752853245, -0.3583664298, -0.0762616992, 0.0499929339, -0.000914411, 0.0625436902, -0.0196597334, 0.3692307472, -0.0863493085, 0.177912727, 0.1272706091, 0.3368773162, -0.2937978804, 0.1131296605, -0.1551246494, 0.3129036427, -0.2285295427, 0.0236861836, 0.2922726274, -0.0684458464, 0.2617127597, -0.1203663722, 0.3084437549, 0.2467839569, 0.0894457921, -0.2138561755, 0.0618059076, 0.600042522, -0.2023257017, 0.4967268109, 0.3052877784, -0.259016484, -0.190897271, -0.0503733866, -0.1729454845, -0.2369496077, -0.1975757182, 0.0900825933, -0.420404911, 0.059986975, -0.1369485557, -0.4408089221, 0.2870690227, -0.2488071918, -0.0929095671, -0.2748690248, 0.2901174724, -0.1786624044, 0.1630425006, 0.7134698033, -0.4537550509, -0.0906331465, -0.4043834507, -0.0830353424, -0.1028403342, 0.3096980155, -0.1342532188, 0.1072891131, -0.2472749949, -0.1418413818, 0.2915895581, -0.4425392449, -0.3745619059, -0.0354104899, 0.0048856982, 0.0591549687, 0.1987729669, -0.0395493843, 0.1241698936, -0.217582643, -0.1797389835, 0.2130535543, 0.0306546371, -0.1623439044, -0.1035054699, -0.2806380093, 0.0464730486, 0.3110309541, 0.4101850092, 0.046224352, 0.0579211451, 0.1423962265, -0.0716321915, -0.0558815077, 0.1470707208, 0.5463574529, 0.4187243283, 0.2150308788, 0.1226577684, -0.0435192324, -0.2793138325, 0.3250387609, 0.0944103226, -0.0312896706, -0.3206385672, 0.0869083554, -0.1255264878, 0.0822431445, -0.2658862472, -0.061287716, 0.0229207519, 0.0132838236, 0.0429529287, 0.0041291453, -0.1376990825, 0.5887190104, 0.0841865018, 0.298594296, -0.3340807855, 0.497620821, -0.2197430581, -0.0243328158, -0.2272532284, 0.2132327408, 0.0356287397, -0.0958870351, -0.1653892696, 0.2277172953, 0.0509413294, 0.0403989628, -0.0894365609, 0.4067901075, 0.1685875505, -0.3530106246, 0.3245935738, 0.218859911, 0.0722006857, 0.0125811705, -0.1360513717, -0.1728674322, -0.1118314415, 0.2684085369, 0.0629778653, 0.0753319189, 0.1597497612, -0.0182623789, -0.0926280841, -0.2973414958, 0.2764793932, 0.1400917172, 0.5950936675, 0.0195133165, 0.2839187086, -0.0588102527, 0.064878121, -0.0461956449, 0.0504945405, 0.0296055265, -0.2449671924, 0.0941411853, 0.239305377, 0.3468306363, 0.5564562082, 0.1072778627, -0.1874959022, 0.1047867239, -0.1752253175, 0.0151931262, 0.0236834511, 0.1832285672, 0.1447095126, 0.1225249916, -0.1115245223, 0.0541962869, -0.1200408116, -0.5026333928, 0.0624661818, 0.3078271151, -0.5334969759, 0.2141971439, -0.363202095, -0.1724312156, -0.1712998301, -0.0200895909, -0.2282010019, -0.3269524574, -0.1747832596, 0.1958211511, -0.0569678843, 0.1376821399, -0.0231504478, -0.1850918233, -0.1616014689, -0.501103282, -0.1654450446, -0.1189041734, -0.0615780316, -0.0852290913, 0.1452156305, -0.0186591726, 0.1159549132, -0.1061145589, 0.1091467738, -0.317658186, -0.3510709703, 0.052558288, 0.0505926758, 0.3023044169, 0.1253056377, 0.2575558424, 0.1992649138, -0.2578473985, 0.1370525956, 0.0607145764, -0.0799541622, 0.0862371996, 0.0300321672, -0.328006506, -0.1532604098, -0.1224602684, -0.4666889906, -0.4357229471, -0.2288572639, 0.0394917056, 0.070154205, 0.6503174305, 0.2038675994, 0.1293325871, 0.1087793931, -0.0912210271, -0.0634966865, -0.0144538293, 0.5791631341, -0.2120684832, -0.2635466158, 0.012133467, -0.1841265857, 0.2727895677, 0.1857422143, -0.2984972, -0.0178074054, -0.1328409612, 0.1384145766, 0.0182920955, 0.39561674, 0.4145407379, 0.1749926656, 0.0981789306, -0.2287124693, 0.0139993429, -0.1211023703, 0.1775334626, 0.347345084, -0.1626524776, 0.3198259473, -0.2939311564, 0.8454337716, 0.0806803331, 0.0163489059, 0.4163775146, 0.1902273148, 0.7380412817, -0.0096347183, -0.4733699262, -0.0255541708, -0.0094589451, -0.2399979383, -0.001080415, -0.0055482509, -0.1845033169, -0.1395787597, 0.1722682714, -0.1525452286, -0.1586580127, -0.0561994202, -0.0725017115, 0.1048397496, 0.1237605065, 0.0919110999, -0.2340692431, -0.0683835894, 0.1189660057, 0.5389800668, -0.1123923212, 0.2590025663, -0.4309726954, -0.311548382, -0.1010301039, 0.1086871326, -0.1497284025, 0.3363616467, -0.1191824228, 0.1415852457, -0.1787702143, 0.1255777031, 0.4687942564, -0.2233208567, -0.313699007, 0.2532339692, -0.0265998095, -0.5515053272, -0.2780079246, 0.0786728561, 0.1461155862, -0.0212886799, 0.1174366847, -0.3697506487, -0.2067417353, -0.0211543497, 0.4966007769, -0.1066759154, -0.1665022075, -0.1915778816, -0.263602823, -0.3931652308, -0.3731766641, -0.0536195487, -0.0174945202, 0.0427428298, 0.2692254186, -0.0728072599, -0.0048156576, 0.39097175, 0.0288443156, 0.3221440613, -0.1840129644, 0.2099014521, 0.2420088202, -0.1991630793, 0.3177755773, 0.5349609256, -0.2972731888, -0.3691245317, 0.129019931, 0.0433834493, 0.1929125041, 0.1176798418, -0.0890939981, -0.1491368264, -0.0108163292, -0.0472199135, 0.06858024, 0.0497184582, 0.0365894027, 0.1812492609, -0.1543533355, -0.3426198661, 0.4528336227, 0.1937424839, 0.0721445456, 0.3791003525, 0.3884418309, -0.1684701741, 0.4540008903, -0.0736418068, 0.8807654381, -0.0257000141, 0.109243229, 0.1145273447, -0.1691685021, 0.5640379786, -0.3705221415, -0.0792408511, -0.3676967025, -0.1644213647, -0.1051589474, -0.2876474261, 0.391151309, 0.2009358555, -0.1806270182, 0.3654469848, -0.0542883053, 0.0644486248, 0.0157218073, 0.2018321753, 0.0514673404, -0.4242672324, -0.0983052477, 0.1415805519, -0.0429062285, 0.5573289394, -0.1223058999, 0.1680157036, -0.3432843685, -0.1380122751, -0.2611137331, 0.1359822303, -0.142785579, 0.4621760845, 0.1932134181, -0.273778379, 0.261238873, 0.2018596232, 0.5882260203, 0.2044986635, -0.2599532604, 0.0772635415, -0.166391179, 0.016581839, 0.0612668656, -0.0391544253, 0.4917528033, 0.0534948707, -0.2163823098, 0.0601257533, -0.268537581, -0.1303708553, 0.2257763147, -0.213546291, 0.0380447879, -0.1937052757, -0.2546373904, 0.1674423963, 0.0846446529, 0.0727842301, 0.0500446334, 0.1630937904, 0.0611613803, 0.3679527342, -0.1991781145, -0.1089952886, -0.2001005262, 0.399002552, -0.1630835384, -0.0530777052, 0.5511956215, 0.0485678315, -0.2752059698, -0.0091851605, -0.0508706607, 0.0294105895, -0.4710204005, -0.2380773872, -0.1888130903, -0.3708631992, 0.0413849801, -0.2812018096, 0.3264868855, -0.1140055731, -0.1113220528, -0.390650183, -0.2503590584, 0.2954974473, -0.1786900014, 0.1940515041, -0.0487760492, -0.0523171686, 0.1656802744, -0.1656511426, -0.2181093842, -0.0774856284, -0.2516183257, -0.0239508394, 0.2636092305, -0.084435299, 0.0436903313, -0.3919888437, 0.004298042, -0.1659095287, -0.3986682594, -0.0611191802, -0.1735191345, 0.197119087, 0.1214754358, -0.1493662596, 0.22293365, -0.1989723444, 0.0006003667, -0.2565850616, -0.0021221458, 0.1197713837, -0.1184917465, 0.117644012, 0.1455774903, -0.1439985335, -0.3486427963, 0.2148782462, 0.1121494099, 0.1845346391, 0.0702417418, 0.2187033296, 0.0399331041, -0.043969702, -0.5120844245, 0.098144725, -0.2063383013, -0.0965812579, 0.3869279623, -0.3597469032, 0.2260467708, 0.2410665452, 0.2113782763, 0.3813198805, -0.1031669676, 0.1548475474, 0.4258761704, 0.0828903243, -0.2561053038, -0.2185856402, 0.1594655663, 0.0705733895, 0.0581144169, 0.3408959806, 0.1401669234, -0.1198267415, 0.7606739402, 0.2311881334, 0.6941431761, -0.110095419, 0.2643289268, 0.383780688, -0.0834086239, 0.1918819398, 0.2336907834, 0.0849547163, 0.2238954157, 0.3608664572, -0.2763063312, 0.1486975998, -0.0203119498, 0.1499191374, 0.0451035462, -0.5368811488, 0.0119822426, -0.2342729867, 0.222898379, -0.0501375571, -0.0394918323, 0.0400026329, -0.3863474727, 0.0247563198, -0.0632810295, 0.2031029165, -0.033480864, 0.1203932911, 0.4617056847, 0.0134360986, -0.0666047186, -0.1801100522, 0.0200308263, -0.4102992415, 0.1239863858, 0.0687172338, -0.1802634299, -0.2426963449, 0.2413450032, 0.1321544796, -0.0655996725, -0.2045086473, 0.1677087992, 0.1210536063, -0.1471865773, -0.1756991595, 0.4764434695, 0.4472571015, 0.3650381565, 0.0347523428, 0.0656480566, 0.0429316722, -0.0583046563, 0.156766817, 0.0065881498, -0.3767539859, 0.2104240954, 0.2244566232, 0.0903663561, -0.0939448699, -0.3274738789, -0.1402048916, -0.0610645972, -0.2975257933, 0.3151407838, 0.0074529047, -0.1436064988, -0.0054718349, -0.0202253032, -0.4903227985, 0.0424957573, 0.4755942225, 0.02372301, -0.0282772761, -0.039907787, -0.0054831896, 0.010930337, 0.3377833366, 0.5781382918, 0.2742247581, -0.4089940488, 0.0974650383, -0.8250724077, -0.0210971273, -0.2424009293, -0.1300934553, 0.1927951872, 0.065798156, 0.0001378967, 0.0886072963, 0.2619174719, 0.1530327648, -0.0672082454, -0.0717523992, -0.3299863338, -0.2705996633, 0.0108856065, -0.0221075658, -0.0670914054, -0.3362778425, 0.0149739543, 0.1458161473, -0.0369930193, -0.129405871, -0.0858347863, 0.2077594399, -0.1571018547, 0.4208464324, -0.1390827149, 0.3130939603, 0.1830291003, -0.1593531966, -0.2420646101, -0.2784920335, -0.0913386494, -0.0075333151, 0.0356718488, 0.5254506469, -0.42021662, -0.3511502445, -0.3888190687, 0.0676921085, 0.207189694, -0.0218451098, -0.1191694438, 0.3861372769, -0.2201075852, 0.3155393898, 0.2222314775, 0.0527676567, -0.029280901, 0.3702810109, -0.2489837855, -0.34442994, 0.4452054501, -0.1271151602, -0.1187380999, -0.1291194558, 0.2647627294, -0.0421512984, -0.2734031975, -0.4115770459, 0.0109538008, 0.1472512484, -0.0865052938, -0.3207423091, 0.0393427312, 0.1452871561, 0.0905793756, -0.0591903925, 0.4109856188, -0.1266405135, -0.0084436871, 0.1631887704, 0.1122633591 ]
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.3053484559, 0.2343732715, -0.079227142, 0.1706800461, 0.360565573, 0.1738085747, 0.5607902408, 0.2436561435, -0.1719247848, 0.0751597509, -0.1179394275, 0.0767753795, -0.2897081971, -0.0377530158, -0.0130564943, -0.0291595478, -0.2127257735, 0.1067627445, -0.1973430067, 0.029163748, -0.1067140177, 0.0961274728, -0.1522007734, -0.0697497055, -0.2929644287, -0.1320365667, 0.036386691, 0.1792992949, -0.3712779284, -0.3521043062, 0.3593552113, -0.0825213119, 0.1873484999, 0.4354528487, -0.0001112958, 0.2995792329, 0.363894701, -0.0500407517, -0.4619031847, -0.4736375213, -0.1796995103, -0.1351321191, 0.0417742617, -0.2966792881, -0.0017575305, 0.0122686569, -0.0355195664, 0.1481752545, 0.3508042395, 0.6557962298, 0.2708094418, 0.4034879804, 0.3544585705, -0.1669904739, -0.2214083225, 0.1594426781, -0.0742192417, 0.5186957121, -0.4013255537, 0.1032767147, 0.2056569755, 0.1207841113, -0.1278407127, 0.1728736311, 0.0507544689, 0.0189498737, 0.1369117349, -0.4564376771, 0.1248681694, 0.2598639727, 0.4185577035, -0.2014635801, -0.2431451827, 0.1196373776, 0.143407166, -0.2662437856, 0.147292003, 0.3098780513, -0.1643135697, 0.0582005419, -0.2776975036, 0.0111329956, -0.2915740907, 0.4140602648, -0.2303672135, 0.1816995144, 0.0403025225, 0.0740699321, 0.2228646725, -0.1520415694, 0.4015413225, -0.2636483312, 0.2471813112, 0.0726075545, -0.0523370467, -0.1367856115, 0.05456331, -0.2483978868, 0.0137199434, 0.013428567, -0.1899160147, -0.248066783, 0.0034491299, 0.0725215748, -0.0031762966, 0.0848952681, -0.2378147691, 0.6527372599, 0.1373991966, 0.4710146487, -0.1147682443, 0.0423019454, -0.2318074554, -0.1314212084, 0.134249419, 0.177354455, 0.5618004203, -0.1913484931, -0.4141944647, 0.2526678443, -0.534270525, 0.001065596, 0.1967066377, 0.3225840032, -0.1696945876, 0.0354946218, 0.0004756849, 0.1084767729, 0.0281691831, 0.0804798156, -0.26930511, 0.2859300077, -0.1196612194, -0.097422801, 0.3719030321, -0.3562032878, 0.17968826, -0.0228086784, 0.1048486307, -0.1313498765, 0.1455950141, -0.2708338797, -0.1464376897, 0.4110407829, -0.1056434959, 0.1318192333, 0.0854267776, 0.0459011719, -0.1711771786, 0.1168937832, -0.0236164909, -0.3991506696, 0.0757408887, 0.2404703498, -0.0782735571, -0.3346491456, 0.196733892, -0.2113053203, -0.0441894457, 0.0090284552, -0.1316434592, -0.2747359574, -0.048887115, -0.1960802674, 0.3570639193, 0.6024296284, -0.4387530386, 0.0300039649, -0.1770685315, -0.2216210663, 0.1865836531, 0.2859835625, -0.3314292133, 0.2865729034, -0.0801037773, -0.2004275471, 0.441174984, -0.408732146, -0.5403163433, 0.2019560933, -0.0457448587, 0.074740611, -0.0577663295, 0.0530315638, 0.0841370299, 0.0774071887, 0.095381476, 0.4915383756, -0.1939902008, -0.027715873, -0.1510463953, -0.3296214044, 0.1893855035, 0.3296568394, 0.4307676852, 0.1475798637, -0.0082080821, 0.1020929888, 0.1281473935, 0.0709250644, -0.0517409965, 0.1613206118, 0.3219524026, -0.0353382491, -0.1970407814, -0.076401718, -0.391507566, 0.1054193527, 0.1194400638, 0.1985473037, -0.0941804722, -0.0577523261, -0.480858475, -0.1143846363, -0.2268016934, 0.0408288054, 0.2129353881, 0.2092736959, 0.1277358234, 0.0437878221, -0.2601550519, 0.3888754845, -0.0502967946, 0.2067391425, -0.1509430707, 0.4017491639, -0.2926220596, -0.0586009547, 0.065887332, 0.047781948, 0.252795428, -0.1254138499, -0.1062386632, 0.1132925004, 0.0106235174, -0.1269104779, -0.0642560199, -0.0739663169, 0.0886372998, -0.1603422314, 0.0321266577, 0.318097204, 0.0794669241, 0.0362757891, -0.0129774148, 0.2884826958, 0.1633597165, -0.0426494181, 0.1151298806, 0.1497043073, 0.2333556116, -0.2054044157, 0.0016972759, -0.074169457, 0.2501133382, -0.0294037089, 0.3837206364, -0.1167592108, -0.322762996, -0.2946909666, 0.2018496394, -0.2236113995, -0.0194853526, 0.0601011701, -0.1977684349, 0.1045863032, -0.2133274376, 0.323772043, 0.4441052973, 0.0796770081, 0.0288690217, 0.1061182916, -0.2178812772, -0.1060988829, 0.1595470458, 0.2282203734, 0.1528196335, 0.1916666776, -0.0428628102, 0.2319727242, -0.2976655066, -0.434520781, 0.2509977818, 0.4884727597, -0.3115289807, -0.0291261785, -0.3028719127, -0.1064911708, -0.1622151881, -0.4730814993, -0.0811017752, -0.2360573709, -0.1359014213, 0.2614667416, 0.0638848171, 0.0723205954, -0.3064319491, -0.1044544727, 0.1325636357, -0.322935164, -0.0856681913, 0.0551764406, -0.0396368764, 0.1476236582, 0.399528414, -0.0969781876, 0.3422371745, -0.0154318307, -0.1305361092, -0.2630586624, -0.1927986443, -0.0004329373, 0.0221685562, 0.2420885563, 0.1672895849, 0.4309621155, 0.0226660911, -0.193605274, 0.1404919624, 0.0584448874, -0.0268690642, 0.2278826535, -0.2574727237, -0.105704248, -0.0101710474, -0.4860122502, -0.5390892029, -0.3269207776, -0.1599418819, -0.0482900813, 0.1959892958, 0.423708111, 0.1160523891, 0.1385359019, -0.1566383839, 0.0500072129, -0.1222570688, -0.1248523816, 0.4896660149, -0.374142617, -0.3817528784, 0.104995206, -0.174542889, 0.2857013941, -0.0893123597, -0.4778813422, -0.2060611695, -0.1840455383, -0.0779385641, -0.1294920892, -0.223821789, 0.1238590777, -0.0531835072, -0.0448056124, 0.1214573756, -0.117009975, -0.0215034578, 0.15819332, 0.0776542798, -0.1886183619, 0.5733033419, 0.0269379541, 0.6518710256, 0.202956602, -0.2608669102, 0.3176008165, -0.078814432, 0.2220962346, -0.0406570248, -0.4731610119, -0.0460525118, 0.2134992629, 0.0348069705, -0.0596523769, -0.2256637663, -0.3095944524, -0.2722097635, -0.1301362664, -0.308151722, -0.2545178533, 0.0712790862, 0.1031402946, 0.2053649127, 0.0995041579, 0.1914158762, 0.0591029711, -0.1681023538, -0.0150372917, 0.4313993752, 0.0771581605, 0.063386105, 0.1295622289, -0.0592792109, -0.3305476606, 0.0920392051, -0.0928847045, 0.3071430326, -0.0619965233, 0.1866852194, -0.0089114225, -0.0765375644, 0.2313295007, 0.0687434301, 0.1700017601, 0.2777779102, -0.1218909398, -0.3610592782, -0.2361999601, -0.3534476459, 0.0337868221, 0.2101771832, 0.1839335561, -0.3156816363, -0.0661933646, 0.6153857708, 0.1403865665, -0.0556863025, -0.3950105906, -0.2080631852, -0.3233414888, -0.4916279316, 0.0996388346, -0.1292093694, 0.2446274161, 0.06658905, -0.1874729991, -0.0348470062, 0.0217928644, 0.1887642443, 0.0004604036, 0.122971043, 0.0819307566, 0.393582195, 0.1386469752, -0.099741891, 0.4361152351, 0.4650557637, 0.0479854643, -0.4144470692, -0.0882199928, 0.141715914, -0.13683258, 0.1666579396, -0.2181943208, -0.2737382948, 0.2523177564, 0.2460315377, 0.1622440964, 0.1378745437, 0.46102193, -0.243056044, -0.5729038119, -0.3615536094, 0.1896253824, -0.1797268391, 0.1413584352, 0.1366214752, -0.2497364432, 0.0172257349, 0.0104194405, -0.0525606833, 0.7789850831, 0.1548535079, 0.0441102833, 0.4680348039, -0.0037564188, 0.3014907837, -0.0559007637, 0.0838300064, -0.3072824776, -0.2321267873, -0.1228300631, -0.2282548696, 0.1536598951, 0.2682594359, -0.2145918459, 0.3666177094, -0.0568440445, 0.1451288164, 0.0025311976, 0.3421613276, -0.0584321655, 0.0655459985, -0.062657699, 0.2040622234, -0.1444291621, 0.409722507, -0.1356845498, -0.1490050405, -0.0768996477, -0.2596900165, -0.2632802725, 0.158194229, -0.3894185126, 0.3009174764, 0.0940064266, -0.0541632734, -0.0775870979, -0.0720011294, 0.0379504636, 0.0387829281, -0.1752782464, 0.0844964385, -0.1288582534, -0.2365466803, -0.0595173389, -0.1094138175, 0.4144063592, -0.2647614181, -0.2428982109, 0.0964697525, 0.0492813587, -0.2107222825, 0.1066631898, 0.0112679452, 0.2041611373, -0.3407526016, -0.2518102229, -0.032780569, -0.1775391847, -0.1255307198, 0.1862042397, 0.0360447578, -0.0364983119, 0.2830501795, -0.0620820932, -0.1947600543, -0.1506979614, 0.3512089252, -0.1067587286, -0.1233870089, 0.4347916245, 0.0720544085, -0.3199331164, -0.2920496762, 0.0793826282, -0.0465266779, -0.4147840142, 0.0896517709, 0.0486423858, 0.3403028548, 0.0655377582, 0.1039591655, 0.1910346299, 0.0446516909, -0.026322851, -0.5710037947, -0.2213811278, -0.0354621783, 0.035441149, 0.2289006263, -0.0949720144, 0.3262063563, 0.2034395933, -0.0655391291, -0.3433676064, 0.1364939809, -0.0954215229, -0.0452933162, 0.1359446049, -0.1490376443, 0.4430602789, 0.100904122, 0.1978886575, 0.0278638303, -0.1176836565, -0.2749330699, -0.1282683015, 0.1190886945, 0.1679854095, -0.1261831224, 0.0420027785, -0.1996615976, -0.3425238132, 0.1667082906, 0.0233250093, 0.177788794, -0.0187483896, 0.0477433614, 0.15270558, 0.0576967373, -0.1524341255, 0.0197508, -0.093341209, 0.3424440324, 0.2201878875, 0.2526730001, 0.1092482656, -0.0283041894, -0.435336262, -0.0889778808, 0.0215210225, -0.1089894995, 0.3970861435, -0.2267068028, -0.084407784, 0.1168389171, 0.2218982428, 0.3427521288, -0.2445503324, 0.0473774187, 0.3164503872, 0.2502196133, -0.2942928076, -0.0744643733, 0.1661237776, 0.1107303202, 0.1122422367, 0.0778135434, -0.2546728253, 0.0717096105, 0.0237519573, 0.1373422444, 0.392136842, -0.0400036238, 0.1250550598, 0.3877007365, -0.1304769367, -0.006714859, 0.1958844662, -0.0121206306, 0.0708717853, 0.4315572083, -0.2908124328, -0.0119646154, -0.1729235798, -0.0734784082, 0.2268632352, -0.2598980665, -0.0039409664, 0.2269203216, -0.1188609749, 0.085306704, -0.0197697282, 0.1014453545, -0.0209626574, 0.1261386871, -0.4866472185, 0.3916065395, -0.0998361483, 0.302313149, -0.2309098244, -0.1329818815, -0.2292215526, 0.1452823281, 0.1043040976, -0.1691762358, 0.2273527533, 0.3998038173, -0.2776848972, -0.1550410986, 0.0752837956, 0.3108180463, -0.0813329071, -0.2761153579, 0.182285592, 0.3667348623, -0.0344138518, -0.0020702011, 0.4475149512, 0.3937963247, 0.282423526, 0.0474148802, 0.2371768057, 0.108374238, -0.1588352323, 0.0991287753, 0.1113986447, 0.2268318087, 0.3477747738, 0.3200223446, 0.2253325582, -0.2515419126, 0.0480179749, -0.093124181, -0.0826394483, -0.2318335027, 0.5614548326, 0.0496754833, 0.039759431, -0.2407839447, -0.0536698513, -0.4856570959, -0.0348077938, 0.3326092958, 0.1133720279, 0.0982406214, -0.1042845994, 0.0643890202, -0.0975297838, 0.3120363355, 0.3321330845, 0.2571237683, -0.6201800108, 0.0042885547, -0.633992672, 0.1701638699, -0.1985661834, 0.0743851066, -0.0166363772, 0.0412026569, -0.2311746776, 0.3115763664, 0.2193798572, 0.0395453535, 0.0116453581, 0.2519505024, -0.1994518936, -0.0294272806, 0.1661608815, -0.14328219, 0.0830326229, -0.424046725, 0.0994045511, -0.4774451554, 0.0173684191, -0.0443778746, -0.3066772521, -0.0353298709, 0.2529800534, 0.415470928, 0.0541494787, 0.7115376592, -0.080338724, -0.2179793715, -0.2073083073, -0.0156713463, -0.2390040457, 0.1551924646, 0.1466778666, 0.3737412989, -0.0241128579, -0.1898599267, -0.4175248742, 0.3508702815, -0.1077160388, -0.1765211374, -0.2167669237, -0.0179204233, -0.1924643666, 0.2424509525, 0.050991904, 0.0850015655, -0.0730700865, 0.179278329, -0.3576472402, -0.4977721572, 0.608987093, -0.2351762652, -0.2108119428, -0.2193454355, 0.1239556521, -0.1172370017, 0.1133624688, -0.4977307022, 0.3211050034, 0.3238479495, -0.0129207345, -0.1095671356, 0.2009023428, 0.2233958244, 0.2048541009, 0.0640876666, 0.3913771212, 0.1503725052, -0.3911636472, -0.0575920008, -0.2036332339 ]
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.3053484559, 0.2343732715, -0.079227142, 0.1706800461, 0.360565573, 0.1738085747, 0.5607902408, 0.2436561435, -0.1719247848, 0.0751597509, -0.1179394275, 0.0767753795, -0.2897081971, -0.0377530158, -0.0130564943, -0.0291595478, -0.2127257735, 0.1067627445, -0.1973430067, 0.029163748, -0.1067140177, 0.0961274728, -0.1522007734, -0.0697497055, -0.2929644287, -0.1320365667, 0.036386691, 0.1792992949, -0.3712779284, -0.3521043062, 0.3593552113, -0.0825213119, 0.1873484999, 0.4354528487, -0.0001112958, 0.2995792329, 0.363894701, -0.0500407517, -0.4619031847, -0.4736375213, -0.1796995103, -0.1351321191, 0.0417742617, -0.2966792881, -0.0017575305, 0.0122686569, -0.0355195664, 0.1481752545, 0.3508042395, 0.6557962298, 0.2708094418, 0.4034879804, 0.3544585705, -0.1669904739, -0.2214083225, 0.1594426781, -0.0742192417, 0.5186957121, -0.4013255537, 0.1032767147, 0.2056569755, 0.1207841113, -0.1278407127, 0.1728736311, 0.0507544689, 0.0189498737, 0.1369117349, -0.4564376771, 0.1248681694, 0.2598639727, 0.4185577035, -0.2014635801, -0.2431451827, 0.1196373776, 0.143407166, -0.2662437856, 0.147292003, 0.3098780513, -0.1643135697, 0.0582005419, -0.2776975036, 0.0111329956, -0.2915740907, 0.4140602648, -0.2303672135, 0.1816995144, 0.0403025225, 0.0740699321, 0.2228646725, -0.1520415694, 0.4015413225, -0.2636483312, 0.2471813112, 0.0726075545, -0.0523370467, -0.1367856115, 0.05456331, -0.2483978868, 0.0137199434, 0.013428567, -0.1899160147, -0.248066783, 0.0034491299, 0.0725215748, -0.0031762966, 0.0848952681, -0.2378147691, 0.6527372599, 0.1373991966, 0.4710146487, -0.1147682443, 0.0423019454, -0.2318074554, -0.1314212084, 0.134249419, 0.177354455, 0.5618004203, -0.1913484931, -0.4141944647, 0.2526678443, -0.534270525, 0.001065596, 0.1967066377, 0.3225840032, -0.1696945876, 0.0354946218, 0.0004756849, 0.1084767729, 0.0281691831, 0.0804798156, -0.26930511, 0.2859300077, -0.1196612194, -0.097422801, 0.3719030321, -0.3562032878, 0.17968826, -0.0228086784, 0.1048486307, -0.1313498765, 0.1455950141, -0.2708338797, -0.1464376897, 0.4110407829, -0.1056434959, 0.1318192333, 0.0854267776, 0.0459011719, -0.1711771786, 0.1168937832, -0.0236164909, -0.3991506696, 0.0757408887, 0.2404703498, -0.0782735571, -0.3346491456, 0.196733892, -0.2113053203, -0.0441894457, 0.0090284552, -0.1316434592, -0.2747359574, -0.048887115, -0.1960802674, 0.3570639193, 0.6024296284, -0.4387530386, 0.0300039649, -0.1770685315, -0.2216210663, 0.1865836531, 0.2859835625, -0.3314292133, 0.2865729034, -0.0801037773, -0.2004275471, 0.441174984, -0.408732146, -0.5403163433, 0.2019560933, -0.0457448587, 0.074740611, -0.0577663295, 0.0530315638, 0.0841370299, 0.0774071887, 0.095381476, 0.4915383756, -0.1939902008, -0.027715873, -0.1510463953, -0.3296214044, 0.1893855035, 0.3296568394, 0.4307676852, 0.1475798637, -0.0082080821, 0.1020929888, 0.1281473935, 0.0709250644, -0.0517409965, 0.1613206118, 0.3219524026, -0.0353382491, -0.1970407814, -0.076401718, -0.391507566, 0.1054193527, 0.1194400638, 0.1985473037, -0.0941804722, -0.0577523261, -0.480858475, -0.1143846363, -0.2268016934, 0.0408288054, 0.2129353881, 0.2092736959, 0.1277358234, 0.0437878221, -0.2601550519, 0.3888754845, -0.0502967946, 0.2067391425, -0.1509430707, 0.4017491639, -0.2926220596, -0.0586009547, 0.065887332, 0.047781948, 0.252795428, -0.1254138499, -0.1062386632, 0.1132925004, 0.0106235174, -0.1269104779, -0.0642560199, -0.0739663169, 0.0886372998, -0.1603422314, 0.0321266577, 0.318097204, 0.0794669241, 0.0362757891, -0.0129774148, 0.2884826958, 0.1633597165, -0.0426494181, 0.1151298806, 0.1497043073, 0.2333556116, -0.2054044157, 0.0016972759, -0.074169457, 0.2501133382, -0.0294037089, 0.3837206364, -0.1167592108, -0.322762996, -0.2946909666, 0.2018496394, -0.2236113995, -0.0194853526, 0.0601011701, -0.1977684349, 0.1045863032, -0.2133274376, 0.323772043, 0.4441052973, 0.0796770081, 0.0288690217, 0.1061182916, -0.2178812772, -0.1060988829, 0.1595470458, 0.2282203734, 0.1528196335, 0.1916666776, -0.0428628102, 0.2319727242, -0.2976655066, -0.434520781, 0.2509977818, 0.4884727597, -0.3115289807, -0.0291261785, -0.3028719127, -0.1064911708, -0.1622151881, -0.4730814993, -0.0811017752, -0.2360573709, -0.1359014213, 0.2614667416, 0.0638848171, 0.0723205954, -0.3064319491, -0.1044544727, 0.1325636357, -0.322935164, -0.0856681913, 0.0551764406, -0.0396368764, 0.1476236582, 0.399528414, -0.0969781876, 0.3422371745, -0.0154318307, -0.1305361092, -0.2630586624, -0.1927986443, -0.0004329373, 0.0221685562, 0.2420885563, 0.1672895849, 0.4309621155, 0.0226660911, -0.193605274, 0.1404919624, 0.0584448874, -0.0268690642, 0.2278826535, -0.2574727237, -0.105704248, -0.0101710474, -0.4860122502, -0.5390892029, -0.3269207776, -0.1599418819, -0.0482900813, 0.1959892958, 0.423708111, 0.1160523891, 0.1385359019, -0.1566383839, 0.0500072129, -0.1222570688, -0.1248523816, 0.4896660149, -0.374142617, -0.3817528784, 0.104995206, -0.174542889, 0.2857013941, -0.0893123597, -0.4778813422, -0.2060611695, -0.1840455383, -0.0779385641, -0.1294920892, -0.223821789, 0.1238590777, -0.0531835072, -0.0448056124, 0.1214573756, -0.117009975, -0.0215034578, 0.15819332, 0.0776542798, -0.1886183619, 0.5733033419, 0.0269379541, 0.6518710256, 0.202956602, -0.2608669102, 0.3176008165, -0.078814432, 0.2220962346, -0.0406570248, -0.4731610119, -0.0460525118, 0.2134992629, 0.0348069705, -0.0596523769, -0.2256637663, -0.3095944524, -0.2722097635, -0.1301362664, -0.308151722, -0.2545178533, 0.0712790862, 0.1031402946, 0.2053649127, 0.0995041579, 0.1914158762, 0.0591029711, -0.1681023538, -0.0150372917, 0.4313993752, 0.0771581605, 0.063386105, 0.1295622289, -0.0592792109, -0.3305476606, 0.0920392051, -0.0928847045, 0.3071430326, -0.0619965233, 0.1866852194, -0.0089114225, -0.0765375644, 0.2313295007, 0.0687434301, 0.1700017601, 0.2777779102, -0.1218909398, -0.3610592782, -0.2361999601, -0.3534476459, 0.0337868221, 0.2101771832, 0.1839335561, -0.3156816363, -0.0661933646, 0.6153857708, 0.1403865665, -0.0556863025, -0.3950105906, -0.2080631852, -0.3233414888, -0.4916279316, 0.0996388346, -0.1292093694, 0.2446274161, 0.06658905, -0.1874729991, -0.0348470062, 0.0217928644, 0.1887642443, 0.0004604036, 0.122971043, 0.0819307566, 0.393582195, 0.1386469752, -0.099741891, 0.4361152351, 0.4650557637, 0.0479854643, -0.4144470692, -0.0882199928, 0.141715914, -0.13683258, 0.1666579396, -0.2181943208, -0.2737382948, 0.2523177564, 0.2460315377, 0.1622440964, 0.1378745437, 0.46102193, -0.243056044, -0.5729038119, -0.3615536094, 0.1896253824, -0.1797268391, 0.1413584352, 0.1366214752, -0.2497364432, 0.0172257349, 0.0104194405, -0.0525606833, 0.7789850831, 0.1548535079, 0.0441102833, 0.4680348039, -0.0037564188, 0.3014907837, -0.0559007637, 0.0838300064, -0.3072824776, -0.2321267873, -0.1228300631, -0.2282548696, 0.1536598951, 0.2682594359, -0.2145918459, 0.3666177094, -0.0568440445, 0.1451288164, 0.0025311976, 0.3421613276, -0.0584321655, 0.0655459985, -0.062657699, 0.2040622234, -0.1444291621, 0.409722507, -0.1356845498, -0.1490050405, -0.0768996477, -0.2596900165, -0.2632802725, 0.158194229, -0.3894185126, 0.3009174764, 0.0940064266, -0.0541632734, -0.0775870979, -0.0720011294, 0.0379504636, 0.0387829281, -0.1752782464, 0.0844964385, -0.1288582534, -0.2365466803, -0.0595173389, -0.1094138175, 0.4144063592, -0.2647614181, -0.2428982109, 0.0964697525, 0.0492813587, -0.2107222825, 0.1066631898, 0.0112679452, 0.2041611373, -0.3407526016, -0.2518102229, -0.032780569, -0.1775391847, -0.1255307198, 0.1862042397, 0.0360447578, -0.0364983119, 0.2830501795, -0.0620820932, -0.1947600543, -0.1506979614, 0.3512089252, -0.1067587286, -0.1233870089, 0.4347916245, 0.0720544085, -0.3199331164, -0.2920496762, 0.0793826282, -0.0465266779, -0.4147840142, 0.0896517709, 0.0486423858, 0.3403028548, 0.0655377582, 0.1039591655, 0.1910346299, 0.0446516909, -0.026322851, -0.5710037947, -0.2213811278, -0.0354621783, 0.035441149, 0.2289006263, -0.0949720144, 0.3262063563, 0.2034395933, -0.0655391291, -0.3433676064, 0.1364939809, -0.0954215229, -0.0452933162, 0.1359446049, -0.1490376443, 0.4430602789, 0.100904122, 0.1978886575, 0.0278638303, -0.1176836565, -0.2749330699, -0.1282683015, 0.1190886945, 0.1679854095, -0.1261831224, 0.0420027785, -0.1996615976, -0.3425238132, 0.1667082906, 0.0233250093, 0.177788794, -0.0187483896, 0.0477433614, 0.15270558, 0.0576967373, -0.1524341255, 0.0197508, -0.093341209, 0.3424440324, 0.2201878875, 0.2526730001, 0.1092482656, -0.0283041894, -0.435336262, -0.0889778808, 0.0215210225, -0.1089894995, 0.3970861435, -0.2267068028, -0.084407784, 0.1168389171, 0.2218982428, 0.3427521288, -0.2445503324, 0.0473774187, 0.3164503872, 0.2502196133, -0.2942928076, -0.0744643733, 0.1661237776, 0.1107303202, 0.1122422367, 0.0778135434, -0.2546728253, 0.0717096105, 0.0237519573, 0.1373422444, 0.392136842, -0.0400036238, 0.1250550598, 0.3877007365, -0.1304769367, -0.006714859, 0.1958844662, -0.0121206306, 0.0708717853, 0.4315572083, -0.2908124328, -0.0119646154, -0.1729235798, -0.0734784082, 0.2268632352, -0.2598980665, -0.0039409664, 0.2269203216, -0.1188609749, 0.085306704, -0.0197697282, 0.1014453545, -0.0209626574, 0.1261386871, -0.4866472185, 0.3916065395, -0.0998361483, 0.302313149, -0.2309098244, -0.1329818815, -0.2292215526, 0.1452823281, 0.1043040976, -0.1691762358, 0.2273527533, 0.3998038173, -0.2776848972, -0.1550410986, 0.0752837956, 0.3108180463, -0.0813329071, -0.2761153579, 0.182285592, 0.3667348623, -0.0344138518, -0.0020702011, 0.4475149512, 0.3937963247, 0.282423526, 0.0474148802, 0.2371768057, 0.108374238, -0.1588352323, 0.0991287753, 0.1113986447, 0.2268318087, 0.3477747738, 0.3200223446, 0.2253325582, -0.2515419126, 0.0480179749, -0.093124181, -0.0826394483, -0.2318335027, 0.5614548326, 0.0496754833, 0.039759431, -0.2407839447, -0.0536698513, -0.4856570959, -0.0348077938, 0.3326092958, 0.1133720279, 0.0982406214, -0.1042845994, 0.0643890202, -0.0975297838, 0.3120363355, 0.3321330845, 0.2571237683, -0.6201800108, 0.0042885547, -0.633992672, 0.1701638699, -0.1985661834, 0.0743851066, -0.0166363772, 0.0412026569, -0.2311746776, 0.3115763664, 0.2193798572, 0.0395453535, 0.0116453581, 0.2519505024, -0.1994518936, -0.0294272806, 0.1661608815, -0.14328219, 0.0830326229, -0.424046725, 0.0994045511, -0.4774451554, 0.0173684191, -0.0443778746, -0.3066772521, -0.0353298709, 0.2529800534, 0.415470928, 0.0541494787, 0.7115376592, -0.080338724, -0.2179793715, -0.2073083073, -0.0156713463, -0.2390040457, 0.1551924646, 0.1466778666, 0.3737412989, -0.0241128579, -0.1898599267, -0.4175248742, 0.3508702815, -0.1077160388, -0.1765211374, -0.2167669237, -0.0179204233, -0.1924643666, 0.2424509525, 0.050991904, 0.0850015655, -0.0730700865, 0.179278329, -0.3576472402, -0.4977721572, 0.608987093, -0.2351762652, -0.2108119428, -0.2193454355, 0.1239556521, -0.1172370017, 0.1133624688, -0.4977307022, 0.3211050034, 0.3238479495, -0.0129207345, -0.1095671356, 0.2009023428, 0.2233958244, 0.2048541009, 0.0640876666, 0.3913771212, 0.1503725052, -0.3911636472, -0.0575920008, -0.2036332339 ]
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.3053484559, 0.2343732715, -0.079227142, 0.1706800461, 0.360565573, 0.1738085747, 0.5607902408, 0.2436561435, -0.1719247848, 0.0751597509, -0.1179394275, 0.0767753795, -0.2897081971, -0.0377530158, -0.0130564943, -0.0291595478, -0.2127257735, 0.1067627445, -0.1973430067, 0.029163748, -0.1067140177, 0.0961274728, -0.1522007734, -0.0697497055, -0.2929644287, -0.1320365667, 0.036386691, 0.1792992949, -0.3712779284, -0.3521043062, 0.3593552113, -0.0825213119, 0.1873484999, 0.4354528487, -0.0001112958, 0.2995792329, 0.363894701, -0.0500407517, -0.4619031847, -0.4736375213, -0.1796995103, -0.1351321191, 0.0417742617, -0.2966792881, -0.0017575305, 0.0122686569, -0.0355195664, 0.1481752545, 0.3508042395, 0.6557962298, 0.2708094418, 0.4034879804, 0.3544585705, -0.1669904739, -0.2214083225, 0.1594426781, -0.0742192417, 0.5186957121, -0.4013255537, 0.1032767147, 0.2056569755, 0.1207841113, -0.1278407127, 0.1728736311, 0.0507544689, 0.0189498737, 0.1369117349, -0.4564376771, 0.1248681694, 0.2598639727, 0.4185577035, -0.2014635801, -0.2431451827, 0.1196373776, 0.143407166, -0.2662437856, 0.147292003, 0.3098780513, -0.1643135697, 0.0582005419, -0.2776975036, 0.0111329956, -0.2915740907, 0.4140602648, -0.2303672135, 0.1816995144, 0.0403025225, 0.0740699321, 0.2228646725, -0.1520415694, 0.4015413225, -0.2636483312, 0.2471813112, 0.0726075545, -0.0523370467, -0.1367856115, 0.05456331, -0.2483978868, 0.0137199434, 0.013428567, -0.1899160147, -0.248066783, 0.0034491299, 0.0725215748, -0.0031762966, 0.0848952681, -0.2378147691, 0.6527372599, 0.1373991966, 0.4710146487, -0.1147682443, 0.0423019454, -0.2318074554, -0.1314212084, 0.134249419, 0.177354455, 0.5618004203, -0.1913484931, -0.4141944647, 0.2526678443, -0.534270525, 0.001065596, 0.1967066377, 0.3225840032, -0.1696945876, 0.0354946218, 0.0004756849, 0.1084767729, 0.0281691831, 0.0804798156, -0.26930511, 0.2859300077, -0.1196612194, -0.097422801, 0.3719030321, -0.3562032878, 0.17968826, -0.0228086784, 0.1048486307, -0.1313498765, 0.1455950141, -0.2708338797, -0.1464376897, 0.4110407829, -0.1056434959, 0.1318192333, 0.0854267776, 0.0459011719, -0.1711771786, 0.1168937832, -0.0236164909, -0.3991506696, 0.0757408887, 0.2404703498, -0.0782735571, -0.3346491456, 0.196733892, -0.2113053203, -0.0441894457, 0.0090284552, -0.1316434592, -0.2747359574, -0.048887115, -0.1960802674, 0.3570639193, 0.6024296284, -0.4387530386, 0.0300039649, -0.1770685315, -0.2216210663, 0.1865836531, 0.2859835625, -0.3314292133, 0.2865729034, -0.0801037773, -0.2004275471, 0.441174984, -0.408732146, -0.5403163433, 0.2019560933, -0.0457448587, 0.074740611, -0.0577663295, 0.0530315638, 0.0841370299, 0.0774071887, 0.095381476, 0.4915383756, -0.1939902008, -0.027715873, -0.1510463953, -0.3296214044, 0.1893855035, 0.3296568394, 0.4307676852, 0.1475798637, -0.0082080821, 0.1020929888, 0.1281473935, 0.0709250644, -0.0517409965, 0.1613206118, 0.3219524026, -0.0353382491, -0.1970407814, -0.076401718, -0.391507566, 0.1054193527, 0.1194400638, 0.1985473037, -0.0941804722, -0.0577523261, -0.480858475, -0.1143846363, -0.2268016934, 0.0408288054, 0.2129353881, 0.2092736959, 0.1277358234, 0.0437878221, -0.2601550519, 0.3888754845, -0.0502967946, 0.2067391425, -0.1509430707, 0.4017491639, -0.2926220596, -0.0586009547, 0.065887332, 0.047781948, 0.252795428, -0.1254138499, -0.1062386632, 0.1132925004, 0.0106235174, -0.1269104779, -0.0642560199, -0.0739663169, 0.0886372998, -0.1603422314, 0.0321266577, 0.318097204, 0.0794669241, 0.0362757891, -0.0129774148, 0.2884826958, 0.1633597165, -0.0426494181, 0.1151298806, 0.1497043073, 0.2333556116, -0.2054044157, 0.0016972759, -0.074169457, 0.2501133382, -0.0294037089, 0.3837206364, -0.1167592108, -0.322762996, -0.2946909666, 0.2018496394, -0.2236113995, -0.0194853526, 0.0601011701, -0.1977684349, 0.1045863032, -0.2133274376, 0.323772043, 0.4441052973, 0.0796770081, 0.0288690217, 0.1061182916, -0.2178812772, -0.1060988829, 0.1595470458, 0.2282203734, 0.1528196335, 0.1916666776, -0.0428628102, 0.2319727242, -0.2976655066, -0.434520781, 0.2509977818, 0.4884727597, -0.3115289807, -0.0291261785, -0.3028719127, -0.1064911708, -0.1622151881, -0.4730814993, -0.0811017752, -0.2360573709, -0.1359014213, 0.2614667416, 0.0638848171, 0.0723205954, -0.3064319491, -0.1044544727, 0.1325636357, -0.322935164, -0.0856681913, 0.0551764406, -0.0396368764, 0.1476236582, 0.399528414, -0.0969781876, 0.3422371745, -0.0154318307, -0.1305361092, -0.2630586624, -0.1927986443, -0.0004329373, 0.0221685562, 0.2420885563, 0.1672895849, 0.4309621155, 0.0226660911, -0.193605274, 0.1404919624, 0.0584448874, -0.0268690642, 0.2278826535, -0.2574727237, -0.105704248, -0.0101710474, -0.4860122502, -0.5390892029, -0.3269207776, -0.1599418819, -0.0482900813, 0.1959892958, 0.423708111, 0.1160523891, 0.1385359019, -0.1566383839, 0.0500072129, -0.1222570688, -0.1248523816, 0.4896660149, -0.374142617, -0.3817528784, 0.104995206, -0.174542889, 0.2857013941, -0.0893123597, -0.4778813422, -0.2060611695, -0.1840455383, -0.0779385641, -0.1294920892, -0.223821789, 0.1238590777, -0.0531835072, -0.0448056124, 0.1214573756, -0.117009975, -0.0215034578, 0.15819332, 0.0776542798, -0.1886183619, 0.5733033419, 0.0269379541, 0.6518710256, 0.202956602, -0.2608669102, 0.3176008165, -0.078814432, 0.2220962346, -0.0406570248, -0.4731610119, -0.0460525118, 0.2134992629, 0.0348069705, -0.0596523769, -0.2256637663, -0.3095944524, -0.2722097635, -0.1301362664, -0.308151722, -0.2545178533, 0.0712790862, 0.1031402946, 0.2053649127, 0.0995041579, 0.1914158762, 0.0591029711, -0.1681023538, -0.0150372917, 0.4313993752, 0.0771581605, 0.063386105, 0.1295622289, -0.0592792109, -0.3305476606, 0.0920392051, -0.0928847045, 0.3071430326, -0.0619965233, 0.1866852194, -0.0089114225, -0.0765375644, 0.2313295007, 0.0687434301, 0.1700017601, 0.2777779102, -0.1218909398, -0.3610592782, -0.2361999601, -0.3534476459, 0.0337868221, 0.2101771832, 0.1839335561, -0.3156816363, -0.0661933646, 0.6153857708, 0.1403865665, -0.0556863025, -0.3950105906, -0.2080631852, -0.3233414888, -0.4916279316, 0.0996388346, -0.1292093694, 0.2446274161, 0.06658905, -0.1874729991, -0.0348470062, 0.0217928644, 0.1887642443, 0.0004604036, 0.122971043, 0.0819307566, 0.393582195, 0.1386469752, -0.099741891, 0.4361152351, 0.4650557637, 0.0479854643, -0.4144470692, -0.0882199928, 0.141715914, -0.13683258, 0.1666579396, -0.2181943208, -0.2737382948, 0.2523177564, 0.2460315377, 0.1622440964, 0.1378745437, 0.46102193, -0.243056044, -0.5729038119, -0.3615536094, 0.1896253824, -0.1797268391, 0.1413584352, 0.1366214752, -0.2497364432, 0.0172257349, 0.0104194405, -0.0525606833, 0.7789850831, 0.1548535079, 0.0441102833, 0.4680348039, -0.0037564188, 0.3014907837, -0.0559007637, 0.0838300064, -0.3072824776, -0.2321267873, -0.1228300631, -0.2282548696, 0.1536598951, 0.2682594359, -0.2145918459, 0.3666177094, -0.0568440445, 0.1451288164, 0.0025311976, 0.3421613276, -0.0584321655, 0.0655459985, -0.062657699, 0.2040622234, -0.1444291621, 0.409722507, -0.1356845498, -0.1490050405, -0.0768996477, -0.2596900165, -0.2632802725, 0.158194229, -0.3894185126, 0.3009174764, 0.0940064266, -0.0541632734, -0.0775870979, -0.0720011294, 0.0379504636, 0.0387829281, -0.1752782464, 0.0844964385, -0.1288582534, -0.2365466803, -0.0595173389, -0.1094138175, 0.4144063592, -0.2647614181, -0.2428982109, 0.0964697525, 0.0492813587, -0.2107222825, 0.1066631898, 0.0112679452, 0.2041611373, -0.3407526016, -0.2518102229, -0.032780569, -0.1775391847, -0.1255307198, 0.1862042397, 0.0360447578, -0.0364983119, 0.2830501795, -0.0620820932, -0.1947600543, -0.1506979614, 0.3512089252, -0.1067587286, -0.1233870089, 0.4347916245, 0.0720544085, -0.3199331164, -0.2920496762, 0.0793826282, -0.0465266779, -0.4147840142, 0.0896517709, 0.0486423858, 0.3403028548, 0.0655377582, 0.1039591655, 0.1910346299, 0.0446516909, -0.026322851, -0.5710037947, -0.2213811278, -0.0354621783, 0.035441149, 0.2289006263, -0.0949720144, 0.3262063563, 0.2034395933, -0.0655391291, -0.3433676064, 0.1364939809, -0.0954215229, -0.0452933162, 0.1359446049, -0.1490376443, 0.4430602789, 0.100904122, 0.1978886575, 0.0278638303, -0.1176836565, -0.2749330699, -0.1282683015, 0.1190886945, 0.1679854095, -0.1261831224, 0.0420027785, -0.1996615976, -0.3425238132, 0.1667082906, 0.0233250093, 0.177788794, -0.0187483896, 0.0477433614, 0.15270558, 0.0576967373, -0.1524341255, 0.0197508, -0.093341209, 0.3424440324, 0.2201878875, 0.2526730001, 0.1092482656, -0.0283041894, -0.435336262, -0.0889778808, 0.0215210225, -0.1089894995, 0.3970861435, -0.2267068028, -0.084407784, 0.1168389171, 0.2218982428, 0.3427521288, -0.2445503324, 0.0473774187, 0.3164503872, 0.2502196133, -0.2942928076, -0.0744643733, 0.1661237776, 0.1107303202, 0.1122422367, 0.0778135434, -0.2546728253, 0.0717096105, 0.0237519573, 0.1373422444, 0.392136842, -0.0400036238, 0.1250550598, 0.3877007365, -0.1304769367, -0.006714859, 0.1958844662, -0.0121206306, 0.0708717853, 0.4315572083, -0.2908124328, -0.0119646154, -0.1729235798, -0.0734784082, 0.2268632352, -0.2598980665, -0.0039409664, 0.2269203216, -0.1188609749, 0.085306704, -0.0197697282, 0.1014453545, -0.0209626574, 0.1261386871, -0.4866472185, 0.3916065395, -0.0998361483, 0.302313149, -0.2309098244, -0.1329818815, -0.2292215526, 0.1452823281, 0.1043040976, -0.1691762358, 0.2273527533, 0.3998038173, -0.2776848972, -0.1550410986, 0.0752837956, 0.3108180463, -0.0813329071, -0.2761153579, 0.182285592, 0.3667348623, -0.0344138518, -0.0020702011, 0.4475149512, 0.3937963247, 0.282423526, 0.0474148802, 0.2371768057, 0.108374238, -0.1588352323, 0.0991287753, 0.1113986447, 0.2268318087, 0.3477747738, 0.3200223446, 0.2253325582, -0.2515419126, 0.0480179749, -0.093124181, -0.0826394483, -0.2318335027, 0.5614548326, 0.0496754833, 0.039759431, -0.2407839447, -0.0536698513, -0.4856570959, -0.0348077938, 0.3326092958, 0.1133720279, 0.0982406214, -0.1042845994, 0.0643890202, -0.0975297838, 0.3120363355, 0.3321330845, 0.2571237683, -0.6201800108, 0.0042885547, -0.633992672, 0.1701638699, -0.1985661834, 0.0743851066, -0.0166363772, 0.0412026569, -0.2311746776, 0.3115763664, 0.2193798572, 0.0395453535, 0.0116453581, 0.2519505024, -0.1994518936, -0.0294272806, 0.1661608815, -0.14328219, 0.0830326229, -0.424046725, 0.0994045511, -0.4774451554, 0.0173684191, -0.0443778746, -0.3066772521, -0.0353298709, 0.2529800534, 0.415470928, 0.0541494787, 0.7115376592, -0.080338724, -0.2179793715, -0.2073083073, -0.0156713463, -0.2390040457, 0.1551924646, 0.1466778666, 0.3737412989, -0.0241128579, -0.1898599267, -0.4175248742, 0.3508702815, -0.1077160388, -0.1765211374, -0.2167669237, -0.0179204233, -0.1924643666, 0.2424509525, 0.050991904, 0.0850015655, -0.0730700865, 0.179278329, -0.3576472402, -0.4977721572, 0.608987093, -0.2351762652, -0.2108119428, -0.2193454355, 0.1239556521, -0.1172370017, 0.1133624688, -0.4977307022, 0.3211050034, 0.3238479495, -0.0129207345, -0.1095671356, 0.2009023428, 0.2233958244, 0.2048541009, 0.0640876666, 0.3913771212, 0.1503725052, -0.3911636472, -0.0575920008, -0.2036332339 ]
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.1432340741, -0.3876415789, 0.1133137122, 0.3227744997, 0.592713356, -0.1981911212, 0.287423104, 0.3909299374, -0.3091714382, 0.1720578223, -0.0339281149, -0.1797882766, -0.3273913264, 0.1897951066, 0.1685712487, -0.0655539408, 0.1466005594, 0.1161786541, -0.0373178869, -0.2512278855, 0.0122301579, 0.0331542492, 0.2052443027, 0.2363263816, -0.5892037153, 0.116232954, -0.0976605117, 0.0225226283, -0.452216953, -0.0920314714, 0.0688619837, -0.3121909797, 0.1892008036, 0.5060114861, -0.000128655, -0.0801775157, 0.1424441636, -0.069575429, 0.02057028, 0.2090912908, 0.2144760787, -0.0632570758, -0.2133892179, 0.1053179204, 0.2152384222, -0.1143105179, -0.0709829032, -0.0340408161, 0.3668510318, 0.1840247065, 0.0656992346, 0.1355395168, 0.0148974881, 0.1036686674, 0.242966488, 0.339681834, -0.0371808857, -0.0100552272, 0.212291792, -0.1989564747, 0.0148401316, 0.1700541377, 0.0983984023, -0.1982289404, 0.3284578025, 0.211391449, -0.0749181807, -0.4113595188, 0.2120727301, 0.3883529305, -0.0406986661, -0.3539564908, -0.3082944751, -0.3972704709, 0.2411759943, -0.535173893, 0.0933330134, 0.1817521304, -0.1299931407, 0.0571897067, -0.275726527, -0.4147569537, -0.2204077244, -0.0975382254, -0.2143559009, 0.0497396477, -0.2284280658, -0.0945078731, -0.0247091483, -0.1514885724, -0.3679109216, -0.0261249971, -0.0072878301, 0.1992164403, -0.092865102, -0.3242728412, -0.112656258, -0.3281558454, 0.2717487216, -0.4419620037, -0.2412323803, -0.4030225277, -0.1295833141, -0.4189319313, 0.3993143141, 0.4595161378, -0.3760157526, 0.1799374074, 0.1299840212, 0.0144977989, -0.1388454437, -0.052760873, -0.1634541899, 0.1329074353, 0.0710657686, -0.4047500491, 0.0313028097, -0.2290521562, -0.1003041565, 0.4591178596, -0.3784505129, 0.2226312011, 0.0510773882, 0.3274950385, -0.0760807246, 0.1053190976, 0.0109073306, 0.0513465255, -0.4180240333, -0.0177941024, -0.0611290261, 0.0742201805, -0.2151129395, 0.1869873852, -0.0288435854, 0.1044515446, 0.0213531256, -0.0179805048, 0.3231277168, -0.0993404016, 0.0395010337, -0.2510477304, 0.1726968884, 0.1685136557, -0.2115902007, 0.4402740598, -0.0328699127, 0.0573068708, -0.0573337935, 0.0731932148, -0.2025126517, -0.4613577425, -0.0575417168, 0.0954975784, -0.0324034244, 0.3140632212, -0.0619527251, 0.3278665245, 0.4565289021, 0.0198551137, 0.025029093, -0.2284952849, -0.2265139371, 0.009115126, 0.3995690048, 0.3902238309, -0.4846359193, -0.1758753806, -0.2054724097, 0.3122826815, 0.3894993067, 0.5888673663, 0.0077837221, 0.5783091187, -0.2811872959, 0.2357924283, -0.2949524224, 0.2546404302, -0.4308694303, 0.3521904051, -0.0578790233, -0.0545476899, 0.0877299458, -0.058738932, 0.1824902892, 0.0208970401, 0.3823955655, 0.0333048962, -0.151723206, 0.0272625461, -0.3604697287, -0.4016646445, -0.2655522525, 0.0143590486, 0.1724795699, -0.1573000997, -0.3328549266, 0.5829167366, 0.1297851205, -0.1000101417, 0.1598346084, 0.3174713254, 0.0870405361, -0.0383152142, 0.0524266511, -0.0793228522, -0.1097155511, -0.0088052759, -0.3079407513, 0.2040724754, 0.1063895747, -0.271171838, -0.0457132533, 0.0320107862, 0.0785084665, -0.2064707577, -0.0180335511, -0.1957939863, -0.1108465791, 0.0106166583, -0.0733259246, -0.1052492037, -0.0842954218, 0.0720168501, -0.4379623532, -0.0457764827, -0.023143271, -0.1467809826, -0.0945442542, 0.3605754972, -0.1125403792, 0.0251171123, -0.0708720982, 0.1594515443, 0.1305895001, 0.0670297295, -0.0969279334, 0.2376998067, 0.2820762694, 0.0817725584, 0.1023696512, 0.1841622293, 0.0422056913, -0.0524389334, -0.1178932488, 0.2136942148, 0.2088423669, 0.1476615816, 0.2419486642, -0.2180726975, -0.1030556262, 0.1184765697, -0.0443922654, -0.2775183916, 0.3078269362, 0.0634440407, 0.289799124, 0.1936535388, -0.1992561519, -0.091534704, 0.2885440886, -0.1878990084, 0.0241266564, 0.4312773347, -0.3436956704, -0.1197065115, -0.1063296795, -0.2838625312, 0.2830734253, 0.0803632513, 0.123309873, 0.1092917398, 0.1420128793, -0.0746384561, 0.2112691998, 0.2753330469, -0.1940710545, 0.1610941142, 0.1346515268, 0.0592170618, -0.1989700049, 0.0861474946, -0.1964783221, 0.3385742903, -0.4070678651, 0.3386442363, 0.0577276349, 0.0137761012, -0.3941377997, -0.2747452557, -0.1809252799, 0.0264377464, 0.1926741004, -0.2345574498, -0.1110427678, -0.0526631959, 0.3810820282, 0.2989984155, 0.1577856094, 0.2653692961, 0.0186496153, 0.1821881533, -0.3386882842, -0.0294872764, 0.1913500577, -0.1869168729, 0.1518465132, 0.0983013883, -0.2298428416, -0.0564888008, -0.3236950636, 0.2155354768, -0.1799170822, 0.2794819176, 0.2024961561, 0.1363641322, -0.4355509579, 0.0946044028, 0.0197804756, -0.0027542298, -0.1579778343, -0.0141797736, -0.1234320775, 0.1277323961, -0.0837782249, -0.2641697824, -0.0601660833, 0.0195476003, 0.3254420757, -0.0098445034, 0.0360103063, 0.2116544992, 0.1585823447, 0.1004245803, -0.0514142103, -0.1972809583, -0.0010388434, -0.1854283959, 0.2126000673, 0.0062262234, -0.1962724924, -0.3562268615, -0.0531248786, 0.0255861804, -0.1569028199, -0.5457940698, 0.0518390499, -0.405036658, -0.3002314866, -0.2334708869, 0.3785061538, 0.1156734452, -0.1077698544, 0.0849828795, 0.0984226316, 0.1134191453, -0.0752597377, -0.2457757145, 0.2301740646, -0.4163116515, 0.3523647189, -0.0792582408, 0.8787888288, 0.3173366487, -0.0099725435, -0.0350921713, -0.0326419584, 0.3991866112, -0.4704628289, -0.198131606, 0.2872301936, -0.059222538, -0.3348690271, 0.3239845037, 0.1225906014, 0.4575769603, 0.213340044, 0.0612856112, 0.2808784544, -0.374542594, 0.4108825624, 0.1338765621, 0.1768821329, 0.0014607217, 0.1307319552, 0.0162940193, -0.3149762452, 0.0631070957, -0.0538524687, 0.2175049186, 0.0166282505, 0.0180322696, -0.3413487673, -0.6975659132, -0.0455710255, 0.132746011, 0.0729151145, 0.1507206708, -0.1237145364, 0.1899592578, 0.0468433723, 0.75788939, 0.2813235819, -0.1726808995, 0.0055503431, -0.0681674853, -0.1512738466, 0.0470160283, -0.3141691387, -0.0336300246, 0.5655534267, 0.6516926289, -0.3451510668, -0.0619591959, 0.1178141981, 0.3456678689, -0.1228974238, 0.0067763804, -0.42242226, 0.006446139, -0.2393391579, 0.2443730533, 0.0683157817, 0.0679181293, -0.0780402869, -0.0828616545, 0.0585739054, -0.083170563, 0.3588626385, 0.2406854928, 0.3210001588, -0.2953757048, 0.3806357086, -0.0379778519, 0.115573138, 0.3630250692, 0.1936298758, -0.1670265049, -0.2968226969, 0.2599285841, -0.1010311767, 0.3370375931, 0.5717672706, -0.0340761654, 0.1766499728, 0.1356077343, 0.4558725953, -0.473282963, 0.5112181902, 0.4902332723, 0.0128841503, -0.51754421, -0.2263821959, 0.3698658347, 0.0831364319, 0.1231707856, 0.1651781648, 0.3095341623, -0.3091197014, 0.2911878526, -0.0016349922, 1.1803641319, -0.1970946342, 0.5995184779, 0.1163961813, 0.2842218578, 0.585283339, -0.2833364308, 0.1925698668, -0.3745793998, -0.0622713082, 0.1641654074, 0.0342525579, -0.1442033052, 0.0297320466, -0.108128652, 0.1598675996, -0.1128821597, 0.259904772, -0.2608391047, 0.3257430792, 0.061367467, -0.3731705248, -0.2392235249, -0.0527996123, 0.0120130107, 0.0464322604, -0.154896602, 0.0905367285, -0.0296990536, -0.3042659163, -0.2594524324, -0.173194617, -0.0260344837, -0.0389915369, 0.1994984448, -0.3362630904, 0.3272384107, -0.0302607846, 0.2560785711, 0.659665525, -0.2298510373, 0.0539067574, -0.1808631271, 0.0355849043, -0.0185966399, -0.0847666785, 0.0327783339, 0.0537505969, 0.0708805546, -0.0461538434, 0.0136143202, 0.2896089554, -0.3708907068, -0.1865695417, 0.5945250392, -0.4801496565, 0.0140865091, -0.1068132594, -0.0510034412, -0.1402091682, 0.0055738119, 0.1723661423, -0.2537514269, 0.0729224533, 0.0433618277, -0.3664634228, -0.2403925359, 0.1738372445, 0.2803500593, -0.0036439796, 0.7379025817, 0.2823020816, -0.071955882, -0.0889391229, 0.4287669659, 0.5030835271, -0.4444898963, 0.2955846488, 0.1780549586, -0.0375429653, -0.000951061, 0.1282508224, 0.2379670739, -0.307436496, -0.1623657197, -0.0494091697, -0.4165503085, 0.0472996719, -0.0431373715, 0.1312135458, 0.1436968297, 0.3483476937, -0.0929585472, 0.1567377746, -0.1273816228, 0.0535810217, -0.0168822408, 0.0394773893, -0.2568356097, -0.0548394136, 0.1413848251, -0.1418828219, -0.0923595354, 0.2089786381, -0.019302519, -0.0735148638, -0.276278019, 0.1742603332, 0.0180753376, -0.0971493721, 0.1658904552, 0.131750226, -0.1845957786, -0.2557170093, 0.365485996, 0.1042429209, 0.1710371673, -0.2266410291, 0.12085253, -0.0682142898, -0.1481808722, 0.0164355133, 0.2539687753, 0.3333452642, 0.0642728359, 0.1704203635, 0.248998493, -0.0927022845, -0.0580301844, 0.2591569424, 0.2553393841, 0.0652257428, 0.1180908754, -0.2224536538, -0.071168378, 0.0400915667, 0.1688088626, 0.4920584261, -0.2982499599, -0.2490653247, 0.4635602832, 0.0708702579, -0.0373557284, -0.0772772133, -0.1433795542, -0.233622402, -0.2046159357, 0.3197960854, -0.0375345461, 0.0652029738, -0.1347514391, 0.1632536203, -0.1233685836, 0.1600246429, -0.0292368326, 0.5991113186, 0.0031000432, 0.1194953993, 0.2187778801, 0.1010295972, 0.2389774323, 0.6983106732, 0.178512603, 0.19252792, -0.3714151978, 0.1088146493, -0.1927823126, -0.4904715121, -0.4612638652, 0.1844991446, -0.1447879076, 0.2918328643, -0.1545112729, 0.5883191228, -0.0762196407, -0.249321878, -0.1546920687, -0.0103583811, -0.2898415923, -0.1191220507, 0.1923542917, -0.1257757545, 0.1729237288, 0.2596203685, -0.1238786131, 0.0102521023, -0.0933723301, 0.07947734, -0.1036148593, 0.0493973047, -0.1821001172, 0.1839228272, 0.1136897281, -0.2876954973, 0.2269538492, -0.0806933939, 0.0367098004, -0.2104426771, 0.2947307229, 0.475309521, 0.3873188794, -0.2240899354, 0.1699611843, 0.1405056119, 0.0864486918, -0.0693232343, 0.1638729274, 0.3289234936, 0.120653078, 0.0141668189, -0.084655121, -0.1228401363, -0.1579106599, 0.244687885, 0.101368621, -0.1489236504, 0.2284967452, -0.1582209617, -0.1319341958, -0.2944995463, 0.0270951316, -0.7009484172, 0.5352686644, 0.4764959812, 0.025295807, 0.1234513596, -0.0915326849, -0.0095246872, -0.1323713958, 0.5158677697, 0.4690686464, -0.0139557011, -0.3866826892, 0.0308354758, -0.2977654338, 0.2726367414, -0.2909190357, 0.314070344, -0.1308750957, -0.0755321681, 0.0208767764, -0.1394036412, -0.0827983171, -0.2343416959, -0.6251955628, 0.1800918877, -0.1407461315, -0.1719838679, -0.2263513803, 0.0863988698, -0.0605693199, -0.2572999299, 0.4457692802, -0.0461424701, -0.1705083102, 0.0293917693, 0.227955699, -0.2168889493, 0.1738211513, 0.2571803927, 0.2815204263, 0.0494484641, 0.0635212511, -0.2289597392, -0.2911762297, 0.1392114609, -0.0718203634, 0.1263864785, 0.2461521327, 0.2943047881, -0.314504236, -0.2648555934, -0.3899098635, 0.0929283649, 0.3281579018, -0.2242103815, -0.2443573177, 0.1015161946, -0.1149017662, 0.0344202146, 0.0135654034, 0.4777697921, -0.1209279224, -0.0470703617, -0.3605847359, -0.2439099699, 0.4634320438, -0.3155979812, -0.4158999026, -0.2619011402, 0.0782350004, 0.3039797843, -0.2966356874, -0.7923547626, 0.101565145, 0.1591157019, 0.0253926367, -0.4467418492, 0.1350895613, -0.1159247234, -0.1337083429, -0.1870729029, 0.7428531647, 0.0427238122, -0.1907565445, 0.4248635471, -0.2602862716 ]
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.2299050093, -0.3667339087, 0.1243237406, 0.2771855295, 0.603097856, -0.1695277691, 0.312145263, 0.3734355569, -0.2599174082, 0.1522066444, -0.0589236319, -0.1322189569, -0.2868516743, 0.2487873584, 0.1246002465, -0.1173475608, 0.1013760939, 0.1097861826, -0.0822898671, -0.2580445707, -0.0382410288, -0.0007750772, 0.2506647408, 0.2208163738, -0.5668442845, 0.062885575, -0.0407152325, 0.0689604655, -0.4490858316, -0.0693648532, 0.058191333, -0.2989962995, 0.2023250908, 0.5197609067, -0.0001248772, -0.0508773588, 0.1890179664, -0.0757155567, -0.0064584063, 0.1778803319, 0.1570468992, -0.0995640829, -0.1501622796, 0.0919622406, 0.228186205, -0.0761858299, -0.0426351167, -0.0638568401, 0.3386057913, 0.2224296182, 0.0923961252, 0.1321177334, 0.0814071223, 0.0844401345, 0.2095718682, 0.3288496435, -0.0522182547, 0.0145612089, 0.2090312541, -0.1524133831, -0.0214013197, 0.1811145842, 0.1139103845, -0.1699478626, 0.2978740633, 0.218270123, -0.1149850413, -0.4121503234, 0.1769649982, 0.4269202948, -0.0584464855, -0.3764878213, -0.3386249542, -0.4122276902, 0.2050079852, -0.5156777501, 0.049187094, 0.1984968632, -0.1357265264, 0.0747208968, -0.2738562822, -0.4056916535, -0.2355400622, -0.0613148659, -0.1954492629, 0.0406941772, -0.2122222334, -0.0865628645, 0.0166966058, -0.1147669405, -0.3613004684, -0.0058363061, -0.0146023007, 0.2444559634, -0.090294525, -0.3005382121, -0.0907192826, -0.3367120028, 0.2940712273, -0.5009039044, -0.1907382756, -0.3996058404, -0.1979434341, -0.3644932508, 0.3797661662, 0.4768547416, -0.3775409758, 0.2085642517, 0.163592577, 0.0616295673, -0.1025518999, -0.0461832136, -0.1070985422, 0.1027835086, 0.0321720317, -0.3345993459, 0.0909972936, -0.2671133876, -0.1278440803, 0.4031011462, -0.3146028519, 0.2281462401, 0.0411386676, 0.3260874748, -0.0870727897, 0.1651623845, 0.0686943978, 0.0581927374, -0.4440344274, -0.0256729927, -0.0942216739, 0.0886548385, -0.1856417954, 0.1809188128, 0.0117869191, 0.0643379167, 0.0366568752, 0.009292461, 0.2664727271, -0.0247750208, 0.0805952698, -0.252176404, 0.1330578774, 0.1691721976, -0.1863245815, 0.4540973902, 0.0054919911, 0.0517550707, -0.0362077169, 0.0453831516, -0.2103348374, -0.4931019545, -0.0973960683, 0.1252598912, -0.0389678814, 0.2960732579, -0.0794367343, 0.3503783643, 0.4486837685, 0.0162846278, 0.0150422323, -0.1929220408, -0.2002844214, -0.0125838034, 0.3824050725, 0.4193105698, -0.5442303419, -0.1573412865, -0.2385898232, 0.2531916797, 0.3889266253, 0.6155257821, -0.0056072767, 0.5517367125, -0.2353395969, 0.164278537, -0.2852045298, 0.2683778405, -0.4222471416, 0.3572132885, -0.0525044799, -0.0388306566, 0.106137082, -0.0538560413, 0.174445495, 0.012783247, 0.3944088519, 0.0238884781, -0.2038850337, 0.0473410524, -0.3813451827, -0.4033682346, -0.2660669386, 0.0800015703, 0.1581140012, -0.1353045553, -0.2735054493, 0.5514495969, 0.1155519634, -0.1455300301, 0.1355006248, 0.3262094259, 0.1113234982, -0.0687132776, 0.0193791315, -0.0532410927, -0.2125867754, 0.0344203934, -0.2865602672, 0.2489632368, 0.079381302, -0.2721632123, -0.0573519953, -0.0195422992, 0.0813331902, -0.206541568, 0.0124214087, -0.2158964425, -0.0915924907, 0.0311715622, -0.0479384139, -0.0457131639, -0.1029789895, 0.0488438159, -0.502892971, -0.0453932993, -0.0081498958, -0.1882384866, -0.0324203186, 0.3290525377, -0.0995146632, 0.0423071496, -0.1000380293, 0.1843879372, 0.1257511526, 0.0820542127, -0.0610666387, 0.2300112396, 0.2973825037, 0.1116478741, 0.093473725, 0.2055563331, 0.0610836893, -0.0517092273, -0.1138146818, 0.2268057019, 0.183156684, 0.1398506612, 0.2676386833, -0.2479644716, -0.0863998011, 0.1264739484, -0.0272575002, -0.2584271133, 0.3118123114, 0.0601297952, 0.30705446, 0.1462773979, -0.2055972219, -0.0656071603, 0.3099732399, -0.1693717092, 0.0509303585, 0.4050944149, -0.3019105196, -0.0469113477, -0.077937752, -0.2446384728, 0.3169589639, 0.10275653, 0.0909688473, 0.1304181069, 0.0760697275, -0.0873515606, 0.1489490867, 0.2738140225, -0.1550520062, 0.1503683627, 0.1463553458, -0.0123090474, -0.2240323722, 0.0660324246, -0.2190817297, 0.3789516985, -0.3892235458, 0.3302790225, 0.090871051, 0.0197702833, -0.4125822783, -0.2843482196, -0.2321338058, 0.0014970637, 0.1670886576, -0.1848985553, -0.126864329, -0.0684736967, 0.3420519233, 0.2327811122, 0.1725664437, 0.2960613966, -0.0134936534, 0.1116624698, -0.3305939138, 0.0019324151, 0.1982807368, -0.1490033269, 0.1594864428, 0.1008728966, -0.2657164931, -0.0178063847, -0.3181885183, 0.164290145, -0.198260501, 0.2966386974, 0.2247882038, 0.1824064255, -0.3565530777, 0.0378921777, 0.0556854829, -0.0080809314, -0.13186571, -0.0301741175, -0.1717737019, 0.1718927771, -0.0972637311, -0.304132551, -0.1180306375, -0.0744102299, 0.3672361374, -0.0105409743, 0.0147800604, 0.2039794177, 0.1889284998, 0.1171238348, 0.0248137284, -0.167904675, -0.0129317362, -0.1366127431, 0.2170596868, -0.0020625843, -0.2171527296, -0.3731193841, -0.0392455757, 0.0291200168, -0.1878813952, -0.50291574, 0.025523724, -0.4563643634, -0.2719498873, -0.2287574261, 0.4256256223, 0.0850239545, -0.1087955534, 0.0785251036, 0.0828619301, 0.1354739815, -0.033812806, -0.2376569808, 0.2106581181, -0.4013064206, 0.4056992829, -0.1035358086, 0.8882100582, 0.3483370245, -0.0970776156, -0.000767473, 0.0034506281, 0.3610593379, -0.4532394409, -0.2227278054, 0.2996629179, -0.0941920727, -0.326415509, 0.2661916018, 0.096223779, 0.4384839833, 0.1695131063, 0.0531374812, 0.2463842332, -0.3661046326, 0.400257498, 0.1699474454, 0.1683426648, -0.0398627147, 0.0964054614, -0.005764971, -0.3088211417, 0.0813733265, -0.0367562026, 0.1908277273, 0.0290937293, 0.1177982539, -0.3415733576, -0.7532610893, -0.0089538973, 0.1532115042, 0.0726141781, 0.1456367373, -0.1499407887, 0.132081598, 0.0780925527, 0.748029232, 0.2280014455, -0.1866868734, -0.0243705176, -0.0419676974, -0.1549029946, 0.0467049889, -0.3488086462, -0.0722112432, 0.6041032076, 0.649977982, -0.4103457332, -0.0432791151, 0.1184373796, 0.3192981482, -0.1154528335, 0.0178468116, -0.4534130394, -0.0270149987, -0.2239372134, 0.2107044309, 0.0687586218, 0.0523455106, -0.1507506222, -0.0843718126, 0.0828977376, -0.0923529416, 0.3055897653, 0.3103858531, 0.2941123545, -0.3023828566, 0.3669600487, -0.0416953079, 0.1407233626, 0.3650066853, 0.3272886872, -0.2009647638, -0.3620553315, 0.2555138469, -0.1160362512, 0.3236401379, 0.5161672831, 0.0053907814, 0.1600106955, 0.1557788849, 0.4575163424, -0.4653673768, 0.5355372429, 0.4863608479, -0.0177370142, -0.5349085927, -0.2112375647, 0.4121991098, 0.0721787438, 0.1378426999, 0.1906245649, 0.2771162093, -0.3334350288, 0.2811172009, 0.0121663939, 1.1012878418, -0.2145239413, 0.5295493603, 0.1170042455, 0.2662313282, 0.6018489599, -0.2290398777, 0.1664569676, -0.3895483017, -0.1080549657, 0.1780197173, 0.063572444, -0.1201994196, 0.022074813, -0.1803472489, 0.2107703984, -0.0939510465, 0.1979257762, -0.2349269837, 0.4142711759, 0.0643138289, -0.3886007965, -0.2565072477, -0.0330814719, -0.0308761261, 0.0132639073, -0.1502637267, 0.0457153879, -0.0300237536, -0.3175835013, -0.2670263946, -0.1795190722, -0.1207991093, -0.0250810403, 0.1849130541, -0.3685485423, 0.3284729123, -0.0686188415, 0.2967182696, 0.5942735672, -0.2410956323, 0.0316295773, -0.1764058769, 0.0335871615, -0.0160012171, -0.0686834529, 0.0461449027, 0.0572197139, 0.0298613086, -0.0124809528, -0.0008999985, 0.3430386186, -0.3757946491, -0.2448648065, 0.4503361881, -0.510702014, 0.0249905214, -0.1506493539, -0.061249502, -0.1385047585, 0.0316618048, 0.1808363646, -0.2773391306, 0.0250357743, 0.0220242478, -0.3429324031, -0.263274163, 0.1784668714, 0.2554320991, 0.0376853496, 0.6541039348, 0.3423448503, -0.0658518672, -0.0643089786, 0.3937629461, 0.5364495516, -0.5111445785, 0.2903212011, 0.1936579943, -0.050479386, 0.0055526029, 0.1892942041, 0.2149127871, -0.2882865071, -0.1783060133, -0.0321889296, -0.4261374176, 0.0959349275, -0.066463843, 0.1580211073, 0.1405063123, 0.355332911, -0.0714857429, 0.2126517743, -0.1578660905, 0.0235699825, -0.0105700186, 0.0625283197, -0.1994099319, -0.0494637303, 0.1744730771, -0.1104821116, -0.0572031438, 0.2021810263, -0.0392469466, -0.1036097854, -0.2420642823, 0.1450628936, 0.0128967362, -0.0629803613, 0.1344012171, 0.1039875448, -0.1612372994, -0.2328153402, 0.407618314, 0.078185834, 0.1133874506, -0.1191850007, 0.0942143723, -0.0924133286, -0.0830873996, 0.0063904319, 0.1768652946, 0.3059253395, 0.0771720856, 0.172028482, 0.2513034344, -0.0841100663, 0.016457526, 0.2219177783, 0.195911333, 0.1082604527, 0.1113377586, -0.2297805995, -0.0865422711, 0.0216387995, 0.2315418869, 0.4675865471, -0.2486833781, -0.2054346502, 0.4337887764, 0.1126068383, -0.0412767231, -0.0754644945, -0.1049241275, -0.2165249586, -0.0906258449, 0.3524933159, -0.0557723977, 0.0519346893, -0.1145401001, 0.1457202435, -0.123884894, 0.1627277285, -0.0535480939, 0.6416903734, -0.0037559376, 0.0996097773, 0.210696578, 0.05253442, 0.2626218498, 0.6772087812, 0.1848813444, 0.1508555412, -0.4215519428, 0.0804425329, -0.1494596899, -0.5071746111, -0.4876217246, 0.103902936, -0.171859324, 0.3066626191, -0.1484481692, 0.583176136, -0.0919555053, -0.2220140845, -0.1316652596, -0.0354406722, -0.2864599526, -0.0965773836, 0.1660564989, -0.133531332, 0.1358462423, 0.2186133265, -0.1328594387, 0.0446252376, -0.0361389071, 0.0860941485, -0.0728240162, 0.0552887209, -0.2137136012, 0.1781378835, 0.1519746333, -0.2392746061, 0.2329529673, 0.00165993, -0.0107985521, -0.2549523115, 0.3191345036, 0.4827315807, 0.38587749, -0.2447328269, 0.2269488573, 0.1933884025, 0.0481452383, -0.0690272897, 0.1335731447, 0.3105466664, 0.1057750434, 0.0640176013, -0.0337167606, -0.1393622756, -0.1620502621, 0.1474626362, 0.0871485919, -0.1255706549, 0.2617917657, -0.1687383652, -0.1373265237, -0.2753394842, 0.0100976871, -0.7297047377, 0.5182318091, 0.4826720357, -0.0365396254, 0.1011707112, -0.0945147648, 0.0048824009, -0.1210668534, 0.5459296703, 0.4561138153, 0.043830812, -0.4208499789, 0.022986386, -0.2733937204, 0.2850802541, -0.3483307958, 0.2294563651, -0.1512728482, -0.0749796778, 0.0398243777, -0.0809345171, -0.0586804859, -0.2328860611, -0.635017395, 0.2164500505, -0.1353759319, -0.2508299649, -0.3114381135, -0.0002751876, -0.0719833151, -0.2702165544, 0.4331165552, 0.0030057919, -0.1167683005, 0.0144517915, 0.2491115928, -0.1884378195, 0.1153704226, 0.2229569554, 0.3003045321, 0.0588103645, 0.002534691, -0.2231753469, -0.2673763931, 0.1154299006, -0.1128508225, 0.1092518494, 0.2529753149, 0.3821109831, -0.2819198072, -0.2846086621, -0.4440238178, 0.1605672538, 0.3504858017, -0.1855474114, -0.2507894635, 0.1337048113, -0.1008121967, -0.0683624372, 0.0340646505, 0.4943030775, -0.082492426, -0.0416542515, -0.3408873677, -0.2351448238, 0.4602754414, -0.3019510806, -0.3991840184, -0.2378970832, 0.066984728, 0.2551594377, -0.2525522411, -0.8035455942, 0.1077651307, 0.1308983564, -0.0097480817, -0.4651968181, 0.1387011111, -0.0748906806, -0.1406368464, -0.1919125468, 0.668140471, 0.0604234822, -0.1583123356, 0.4259204865, -0.2587261796 ]
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.2449232936, -0.4394874573, 0.1173569039, 0.3189444244, 0.5710245967, -0.1765768677, 0.2565916777, 0.4291754961, -0.3390788436, 0.1573357582, -0.0675727352, -0.2011723667, -0.308722645, 0.1915092468, 0.1266336888, -0.1478894055, 0.0698193461, 0.1731738597, -0.1252351403, -0.2214689702, -0.0003156409, 0.0349697955, 0.2422268838, 0.1785005033, -0.5778364539, 0.0762563571, -0.071581021, 0.0110264188, -0.3461947441, -0.0348514318, 0.0994134545, -0.286582768, 0.201067403, 0.5267561674, -0.0001265749, -0.0411316156, 0.1517600119, -0.0826686844, 0.0461403914, 0.1951689273, 0.1975021362, -0.08568196, -0.16362077, 0.0772056729, 0.1840526164, -0.0889650211, -0.0251296535, -0.0035941757, 0.3703836501, 0.2273513824, 0.0814755037, 0.2212547362, -0.0237426069, 0.0711171478, 0.2784282863, 0.2887703478, -0.0818406492, -0.0509201288, 0.2467285991, -0.2162994593, -0.0755180791, 0.1138719097, 0.0970573723, -0.1382567883, 0.2942584455, 0.2418758869, -0.0901601836, -0.4337412417, 0.2268632203, 0.444262892, -0.0038125017, -0.3651985228, -0.3235093355, -0.4126268923, 0.2002185732, -0.4695300162, 0.0931720585, 0.1572837681, -0.1708565056, 0.0714478716, -0.3042108715, -0.3376944065, -0.2605010271, -0.0602705143, -0.1891829818, 0.0072345468, -0.2047073692, -0.1297650337, 0.0258300416, -0.0898100659, -0.2813794017, 0.0086463206, -0.0054778648, 0.2329303771, -0.0875346437, -0.2953802943, -0.0820567831, -0.3209122419, 0.2784362733, -0.4808042049, -0.1911472231, -0.4234410524, -0.1217626259, -0.4122717977, 0.4198236763, 0.4721470475, -0.4405252934, 0.1479226947, 0.1813027412, 0.0140899224, -0.1194203049, -0.0408411436, -0.1277313828, 0.086828813, 0.0928285494, -0.4029770195, 0.0393002108, -0.235425517, -0.0472667851, 0.3343819678, -0.2421358228, 0.1646774858, -0.014944518, 0.3203733265, -0.0953858346, 0.2072836906, 0.0915634632, 0.0109715452, -0.4334857464, 0.0280756671, -0.0920761004, 0.0704810694, -0.2314603329, 0.1855053455, 0.0562621877, 0.0775648355, -0.0132143935, -0.0600129217, 0.3360009491, -0.0606564023, 0.0315352082, -0.2449946702, 0.1417848766, 0.2185818702, -0.1720947027, 0.3873315156, -0.0372593626, 0.1247835681, -0.0676250532, 0.1088970974, -0.1717200726, -0.5269574523, -0.0558349229, 0.0992496014, -0.0632846579, 0.2949821949, -0.1047983468, 0.3964323401, 0.4608322382, -0.0342459641, -0.033765018, -0.2015201449, -0.2432105988, -0.0263377205, 0.4121342301, 0.493814677, -0.5112317204, -0.1573763788, -0.2400309891, 0.2583683729, 0.3261887431, 0.6362032294, -0.0559865832, 0.6048204899, -0.2477885336, 0.1249573156, -0.3070096672, 0.2827397287, -0.4184558094, 0.374144733, -0.046100758, -0.0473693684, 0.1415733695, -0.0500430577, 0.2129480392, -0.0024275896, 0.3216818571, 0.0487090647, -0.2102933228, 0.1044703349, -0.3638080359, -0.4317644536, -0.2797996104, 0.0906478912, 0.1936856955, -0.1161679849, -0.3184918165, 0.6250888705, 0.0562415309, -0.1004454792, 0.161238879, 0.3503364921, 0.0153474445, -0.0499008223, 0.0480900556, -0.0607258491, -0.2662006319, 0.0175640564, -0.3042600751, 0.2425423861, 0.1202826723, -0.2763025463, -0.0203581676, -0.0617136322, 0.1419869512, -0.1604049504, 0.0006386958, -0.1866594553, -0.084015362, -0.0231115092, -0.0585226156, -0.0471777581, 0.0113554802, 0.0236853063, -0.4993107021, -0.014662954, 0.0077618626, -0.1825954914, -0.0356431343, 0.3575808704, -0.1342760921, 0.0389887393, -0.1232832447, 0.1663414538, 0.0892145559, 0.1377289295, -0.0722376332, 0.3133119047, 0.2954524457, 0.0509738326, 0.0841753706, 0.2468765825, 0.0595439076, -0.0747775137, -0.1448892355, 0.1593148857, 0.1643047929, 0.1164806858, 0.2938348353, -0.2498121113, -0.1497597694, 0.0634251162, -0.0376483388, -0.2155543566, 0.2923842371, 0.0413803309, 0.3077196479, 0.2018049657, -0.1722928882, -0.0777102262, 0.3362636268, -0.200277701, 0.0266962722, 0.4785178602, -0.2761449814, -0.0927358419, -0.140437007, -0.2291949242, 0.3158210814, 0.0973854959, 0.0808685049, 0.1155244932, 0.1317077279, -0.0829708278, 0.1752373278, 0.3304271102, -0.1765459925, 0.1896954626, 0.1255265921, 0.1003874615, -0.1847052127, 0.0316194557, -0.2409154326, 0.3497813642, -0.3809465766, 0.2891237438, 0.0935085639, 0.0197601039, -0.4174821973, -0.2146109939, -0.2094575167, 0.0536930189, 0.2030448765, -0.1845062673, -0.1346835941, -0.0525903143, 0.4098623395, 0.2963760495, 0.1396317035, 0.2047355324, -0.0346684828, 0.1242032647, -0.3263193965, -0.0076294648, 0.1608235836, -0.1400020421, 0.1128736287, 0.0829423368, -0.2021441311, 0.0533419326, -0.3232709169, 0.1798677593, -0.1953164786, 0.2358198762, 0.1865126044, 0.2158544362, -0.3509798646, 0.0346096009, -0.0180248804, -0.0835413858, -0.0908869803, 0.0012707023, -0.1416145712, 0.1193026081, -0.0918073654, -0.3632544577, -0.080645971, -0.0925013348, 0.3361850381, -0.0578351133, 0.0124794133, 0.1788607091, 0.2201023102, 0.1198033839, -0.0008886816, -0.1502714455, 0.0651717559, -0.0914852768, 0.2097013444, 0.0222968198, -0.2280714065, -0.388409853, -0.0495054349, 0.0034502014, -0.1507954746, -0.5319609046, 0.0428446755, -0.478092581, -0.2615788579, -0.2581434548, 0.4361437857, 0.1785498857, -0.0556229316, 0.0651729256, 0.0948268771, 0.0855287686, -0.0653802082, -0.2383456826, 0.165700227, -0.4090307951, 0.310411334, -0.1278924048, 0.8918739557, 0.2818318605, -0.0301536657, -0.0232942272, -0.0228210147, 0.379137218, -0.4229277968, -0.1471822709, 0.2681609988, -0.081339553, -0.3361057937, 0.3171370625, 0.135508284, 0.40414536, 0.1233597621, 0.0580149703, 0.2295852154, -0.3638525307, 0.4420794845, 0.1802276224, 0.1680266857, -0.0428525805, 0.0800590962, 0.0187664405, -0.322730124, 0.0402568132, -0.0541117005, 0.2084039599, 0.0055818046, 0.1433931738, -0.3114245534, -0.7348181605, -0.0694178715, 0.1514318287, 0.0041258791, 0.1298680604, -0.1483122408, 0.1331442744, 0.0591774285, 0.7799115181, 0.2442356646, -0.1808484495, -0.0171400979, -0.1189841703, -0.1900434941, 0.076574631, -0.3629523218, -0.109682776, 0.5771887898, 0.6488317847, -0.3822698593, -0.0597700663, 0.0983515233, 0.3369763196, -0.1064746305, -0.0028542988, -0.4241299629, -0.0482366756, -0.2051329762, 0.2068948448, 0.1253679544, 0.0427048653, -0.1501824558, -0.0668411925, 0.1060288474, -0.0546181947, 0.282944262, 0.3270209432, 0.2913771868, -0.3086839914, 0.3943772018, -0.0321289487, 0.0407231823, 0.3370810449, 0.2501645386, -0.2270705104, -0.3491239548, 0.2843481302, -0.0604729354, 0.2991707027, 0.5100066662, -0.0280364826, 0.1072086394, 0.1304300278, 0.4783919454, -0.4216319621, 0.4475496113, 0.4779141545, -0.0455982648, -0.4816350043, -0.2087475806, 0.4050305784, 0.0920077413, 0.1492943466, 0.1679894626, 0.2624351084, -0.3083887696, 0.3386711478, -0.0276183598, 1.1405236721, -0.2570122182, 0.6073175073, 0.1081263721, 0.2599501014, 0.6181566119, -0.2622877657, 0.1768556237, -0.3545400202, -0.1569012254, 0.1905536056, 0.0545932613, -0.1465179473, 0.0966971144, -0.2047158778, 0.2035127431, -0.0937367752, 0.1888561249, -0.2285884321, 0.3655283451, 0.1225676313, -0.4232100248, -0.2664298713, -0.0459931754, -0.0511841811, 0.0639955476, -0.1379389763, 0.0754687339, -0.0181391686, -0.2961390615, -0.2930020988, -0.1532241851, -0.073553443, -0.0920344293, 0.2486364096, -0.2898268104, 0.3593747914, 0.0114065101, 0.2215629518, 0.6132358909, -0.2659587562, 0.0643401593, -0.1660613418, 0.0261283368, -0.0231765602, -0.0207893513, 0.0484749191, 0.0487469509, 0.0214067604, -0.0409285575, -0.0156557988, 0.3132306337, -0.3416115046, -0.2126065195, 0.4788935184, -0.4908947051, 0.0345225073, -0.0967923924, -0.1015708596, -0.13028422, 0.0321828537, 0.1376828253, -0.2899418175, 0.0958395302, 0.0277610123, -0.3693692386, -0.2427587956, 0.2325759083, 0.2811687291, 0.0055730566, 0.6309415698, 0.3198367953, -0.0506041571, -0.0940012038, 0.3591879308, 0.4548472762, -0.5871474743, 0.3231057227, 0.1827060729, -0.0776100159, 0.0416633934, 0.1862032712, 0.2471880317, -0.2686734796, -0.1792811751, 0.0041798516, -0.4433617592, 0.0834013075, 0.0541785844, 0.163323462, 0.1913103908, 0.3379992247, 0.0115272598, 0.2028885037, -0.1476168036, 0.0184984095, -0.0158754606, 0.0565171912, -0.1889320314, -0.0843073353, 0.2142504007, -0.1100470051, -0.0787367746, 0.2463215888, -0.0365485847, -0.1003579572, -0.2585127056, 0.1644327044, 0.0116169779, -0.0932758749, 0.0746609867, 0.122426115, -0.185892567, -0.2925649583, 0.426533401, 0.1071492806, 0.1057101116, -0.1591506153, 0.1500169337, -0.1114600077, -0.1453636587, 0.0255760737, 0.2013661712, 0.2704307139, 0.0875747874, 0.1692486256, 0.2338258773, -0.1096138805, -0.0159219448, 0.2243999988, 0.2848624289, 0.155661568, 0.1020766795, -0.1707964689, -0.1029990688, -0.0018231133, 0.204233259, 0.4692017436, -0.2532435954, -0.2259340286, 0.4052749276, 0.0992898643, -0.052645769, -0.0993521959, -0.1344956756, -0.1887050569, -0.1091618612, 0.3316679001, -0.0864339918, 0.0454814322, -0.0495161414, 0.152903527, -0.0607314594, 0.1428848207, -0.0211199019, 0.6312288642, -0.0057856282, 0.0852713659, 0.1575893462, 0.0630872995, 0.2630429864, 0.6118050814, 0.2405248284, 0.1666039973, -0.4917713404, 0.0864615738, -0.1838754416, -0.5297771692, -0.4431779981, 0.1267944872, -0.1018826589, 0.3069050014, -0.1597958654, 0.5299900174, -0.0897260755, -0.2319506258, -0.1653167456, -0.0583478026, -0.2386587262, -0.1073423773, 0.3041740656, -0.0996705443, 0.1822092831, 0.2335485071, -0.1155673563, 0.0317354575, -0.0119836153, 0.125891611, -0.0749742091, 0.1250470132, -0.224140659, 0.1538321376, 0.138819173, -0.2075569481, 0.2348943353, -0.0260945726, 0.019563105, -0.2605030537, 0.3408121169, 0.4472008348, 0.3692031205, -0.2102328539, 0.2285749167, 0.1935970783, 0.0688950345, -0.0467611663, 0.1994189322, 0.2860608697, 0.1885346174, 0.0434783101, -0.0506953895, -0.1486738771, -0.118226327, 0.1432495117, 0.0785999522, -0.1758375913, 0.2510382533, -0.1143716499, -0.2028601468, -0.2750483453, 0.0261966866, -0.695609808, 0.5344957113, 0.4925585389, -0.0480544977, 0.1011136249, -0.0474880859, -0.0031143001, -0.0562913343, 0.5935716033, 0.4852707982, 0.0755331442, -0.3850585222, 0.0492329411, -0.2965463102, 0.2927153409, -0.3322425783, 0.3192036748, -0.0713099986, -0.1095998362, -0.0147678414, -0.0869967341, -0.0745085776, -0.2496878207, -0.6370696425, 0.1584710032, -0.1358512342, -0.2381407171, -0.2515374124, 0.0269775577, -0.0475629233, -0.3367348015, 0.3873046041, 0.0477775186, -0.1069089174, -0.0323374048, 0.2124532759, -0.1892138869, 0.1731823981, 0.1958434135, 0.2702772021, 0.0202768147, 0.0169232152, -0.1743378937, -0.3229991794, 0.134747088, -0.0919108689, 0.0575070232, 0.2862854302, 0.3036931753, -0.3394981623, -0.2640426457, -0.4243772626, 0.053735055, 0.3286547661, -0.1640016437, -0.1837848872, 0.056816984, -0.0863060802, -0.0345544443, 0.0583429635, 0.5320752859, -0.1458183378, -0.0805741698, -0.3762453794, -0.2100284398, 0.4452861249, -0.3400378823, -0.4382003248, -0.2218043655, 0.0361184627, 0.1998680532, -0.2338716537, -0.7568825483, 0.1211131141, 0.126661405, 0.0193043109, -0.4797682166, 0.1573763788, -0.1383928359, -0.1603678316, -0.1602217257, 0.7219980359, 0.0823604912, -0.174993977, 0.4088818133, -0.2712994516 ]
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.1584592611, -0.3227499723, 0.1142650545, 0.2783169448, 0.6050812006, -0.0893944949, 0.3665045202, 0.3757137656, -0.2504403591, 0.1644323021, -0.0610659346, -0.0809402689, -0.3737187386, 0.1472707242, 0.1473816931, 0.0324399546, 0.1391413808, 0.1354866326, -0.077372916, -0.2471378297, 0.0194768943, -0.0309277531, 0.2424668074, 0.1948523521, -0.5476977825, 0.0997933075, -0.0319241211, -0.0307262875, -0.4810983837, -0.1251823008, 0.1005676389, -0.2483759671, 0.12872383, 0.4240874648, -0.0001295393, -0.0181988869, 0.1412841976, -0.081444785, 0.0510074198, 0.1926466227, 0.0713471025, -0.0778830424, -0.1597842872, 0.0811403617, 0.2066454589, -0.1023948565, 0.0354036316, -0.0794182867, 0.3247148395, 0.144751817, 0.0638194606, 0.1143502519, -0.0348903425, 0.0747109279, 0.3187433779, 0.2770512998, -0.0755637586, 0.0055221561, 0.1870388985, -0.2282140255, -0.0746480823, 0.2356300354, 0.0775170922, -0.2015113682, 0.3477509618, 0.2555219531, -0.0118272491, -0.3913118839, 0.2150572687, 0.3343566656, -0.005938821, -0.3691895008, -0.2815509439, -0.4759232104, 0.1507345885, -0.3983702064, 0.0676337332, 0.1264642328, -0.0999669954, 0.1164509058, -0.3256667554, -0.4626318216, -0.2151948661, -0.0421485007, -0.1925978959, 0.0499014333, -0.2066258788, -0.116270721, -0.0609061532, -0.1237845793, -0.2689940333, -0.0728558451, 0.0181447901, 0.2470307946, 0.03554051, -0.3357771039, -0.0486235768, -0.4003135264, 0.3179068267, -0.5198050141, -0.1670585871, -0.3840144873, -0.2822939754, -0.3092982173, 0.4190122783, 0.4008269012, -0.3786327839, 0.2864236534, 0.1474357545, 0.0143899461, -0.0981879234, -0.0872359276, -0.1584562659, 0.1529669166, 0.0889033973, -0.3663331568, 0.0794738904, -0.24285236, -0.1194503009, 0.4220168293, -0.3422697783, 0.2382760346, 0.0211726744, 0.3271231055, -0.1095505282, 0.0815231577, -0.0186990872, 0.0428273194, -0.3623223901, 0.0696167052, -0.0575443767, -0.0081360526, -0.1674924791, 0.1830435395, -0.0043521277, 0.0869904831, 0.0923545882, -0.0637381598, 0.2453139424, -0.0269416943, 0.0749880001, -0.2383560389, 0.2199845016, 0.1590301394, -0.2199199051, 0.4460888803, -0.0356885754, 0.027039919, -0.0663378611, 0.1065039411, -0.2845109701, -0.5047079325, -0.0448395126, 0.0848668441, 0.0133941602, 0.2874852717, -0.1068298444, 0.3798871934, 0.4936858118, -0.0647110343, 0.0465577357, -0.1642077267, -0.3196151555, -0.0120979287, 0.36413607, 0.3811832368, -0.4837588072, -0.1946118921, -0.1694865674, 0.2451890409, 0.2841441929, 0.6231357455, -0.0581991263, 0.5801355839, -0.289765209, 0.2861116827, -0.2603820562, 0.2289152741, -0.4580261707, 0.301175952, -0.0231812131, -0.0101981703, 0.0377300195, -0.1035019904, 0.278075248, -0.0187086184, 0.4887705445, -0.0405676626, -0.1937264949, 0.0483902507, -0.3471645415, -0.3909623623, -0.2233015001, -0.0301922429, 0.1755294204, -0.1729309708, -0.2678878903, 0.5790898204, 0.1735109985, -0.0645667762, 0.2249487191, 0.3249580562, 0.1268682778, -0.0376044363, 0.0377347022, -0.1063975841, -0.1840965599, 0.0007460029, -0.2624852955, 0.1973668337, 0.0605289228, -0.3366334438, -0.0279030018, -0.0303603001, 0.0522276796, -0.1490053833, -0.0096158348, -0.2432947904, -0.1688454747, 0.1220778823, -0.0486758836, -0.1587258279, -0.0792645365, 0.0563903823, -0.3761588037, -0.0059621432, 0.0287976656, -0.1611763835, -0.096742861, 0.3295546472, -0.1723220348, -0.0049660648, -0.0797171295, 0.1359843314, 0.110342361, 0.1088261828, -0.164149031, 0.3137361705, 0.3106913269, 0.0941730291, 0.0482253283, 0.2186589539, 0.0120983496, -0.0983669758, -0.1908928901, 0.1803032756, 0.2087244093, 0.0652375817, 0.1750704348, -0.2777832747, -0.0779209509, 0.1187642589, -0.0812471583, -0.3290861547, 0.2585927248, 0.0474442504, 0.2946566939, 0.1983213574, -0.1492181718, -0.0754957944, 0.3165718317, -0.1617225856, 0.0371674523, 0.3789633811, -0.3250768781, -0.0943503603, -0.0045815432, -0.3105894923, 0.2905075252, 0.0462886356, 0.1345671415, 0.0940558016, 0.1150722802, -0.0617258102, 0.1856595278, 0.210660845, -0.126202628, 0.2095306069, 0.1920821071, -0.000927034, -0.2589700222, 0.1365606785, -0.1572659612, 0.2898987234, -0.3594794869, 0.2282145768, 0.075593397, 0.0265271217, -0.388518393, -0.2284082472, -0.152820453, 0.0331250541, 0.2542636096, -0.1518008709, -0.1518606246, -0.015899729, 0.3029641509, 0.3114876747, 0.2414970547, 0.2074393779, 0.0153079964, 0.1233327612, -0.2894179225, -0.0315884762, 0.1572478116, -0.2357093096, 0.1222895905, 0.1127196848, -0.2993733585, -0.0817450806, -0.2953288555, 0.2014804333, -0.1648564488, 0.1961042583, 0.2442872822, 0.125231564, -0.3874120712, 0.1048202291, 0.012836284, 0.0034778765, -0.1348336488, -0.1136595532, -0.0770547241, 0.1489091963, -0.0806213915, -0.2752305567, -0.0724576041, -0.0015944918, 0.3967808783, -0.0382248238, 0.0059396457, 0.1984381527, 0.2022282779, 0.0955074579, -0.0675061867, -0.196012035, -0.0069530169, -0.2221462727, 0.2693295479, -0.0200772285, -0.180351615, -0.3509809375, -0.0367722139, -0.0391581617, -0.143962875, -0.5498439074, 0.1042804345, -0.3475675881, -0.2124300599, -0.1869568229, 0.3236687779, 0.1621255875, -0.0278235804, 0.0954014584, 0.0770547614, 0.0741135105, -0.0460779518, -0.1530030221, 0.2259284407, -0.3670663834, 0.308463335, -0.0015538837, 0.8413869739, 0.2584564686, 0.0591782629, 0.0175117496, -0.0364138074, 0.4315397143, -0.4216061831, -0.1953714937, 0.2533492446, -0.1266724616, -0.3854461908, 0.300396055, 0.1515318304, 0.3678121269, 0.2488990426, 0.0220233761, 0.3477154672, -0.3686492741, 0.4326387644, 0.008607843, 0.120105572, 0.0394559838, 0.106580317, -0.0276055317, -0.3450222015, 0.121009402, -0.1188097596, 0.2471744716, -0.0138741834, 0.0747001469, -0.2114321142, -0.8055396676, -0.0793857574, 0.1710190624, 0.0181143116, 0.1024310663, -0.0702352747, 0.1438986659, 0.1094577089, 0.7522364855, 0.1485322118, -0.1466356665, -0.0731032416, -0.0320921429, -0.1479643881, -0.0073320172, -0.3175015152, -0.0080264583, 0.5544769168, 0.8051595092, -0.38374874, -0.0145992097, 0.0127894152, 0.2712610066, -0.1630631536, 0.0465954132, -0.3782888949, 0.0334826596, -0.1805645823, 0.1646661013, 0.150646314, 0.0484344549, -0.0364957377, -0.1383147985, 0.0361428559, -0.0462694839, 0.3272375762, 0.1801158935, 0.30792135, -0.269018203, 0.3792642355, 0.0227276199, 0.1455383599, 0.3632513881, 0.2782918513, -0.2656793892, -0.3319880664, 0.2026924789, -0.1705927253, 0.3661510348, 0.5202786922, -0.019919008, 0.1646701247, 0.1409870237, 0.3879474699, -0.50661093, 0.5397732258, 0.5001417994, -0.0155581366, -0.5173017979, -0.2605224848, 0.3242103159, 0.0890112221, 0.1086984798, 0.2183577269, 0.1754110307, -0.4198828042, 0.3800749481, 0.0582392029, 1.0927491188, -0.2820734382, 0.6457760334, 0.085693419, 0.3474425673, 0.6195512414, -0.3919828832, 0.166323185, -0.3371163607, -0.1650778055, 0.1239652708, 0.0879604146, -0.170842126, 0.0517649539, -0.14401263, 0.1905903369, -0.0315778516, 0.3619603813, -0.2650906444, 0.2576604486, 0.1245741099, -0.3357917964, -0.2187577039, -0.0675894693, 0.0815509185, 0.001255598, -0.1550393403, 0.066230759, 0.0139890257, -0.3324241638, -0.2732447386, -0.1858698279, -0.102310285, 0.0334132686, 0.2606479228, -0.219347924, 0.2665241659, 0.0149170486, 0.1957244426, 0.6118080616, -0.274798274, -0.0073969699, -0.1416103989, 0.0322247259, -0.0554134585, -0.10506697, 0.0278456639, 0.1215405613, 0.1015196964, 0.0101792989, -0.051777713, 0.2496400625, -0.4359846115, -0.1743821055, 0.5185424685, -0.5724602342, -0.0609519593, -0.1661487371, -0.0553824827, -0.1067351922, 0.0033899455, 0.1229849532, -0.2376909405, 0.0719603673, 0.0481564589, -0.3586069942, -0.1936806738, 0.3084659278, 0.1919232607, 0.0500714108, 0.6962025762, 0.1818850189, -0.0695301965, -0.0464628451, 0.4055940509, 0.5893695951, -0.3776430786, 0.2560919225, 0.1496011317, -0.0949785709, -0.1004094556, 0.1920967251, 0.2429115921, -0.2599297762, -0.17910631, -0.0494263731, -0.4665803313, 0.0721069053, 0.0032248436, 0.1664882004, 0.1396557391, 0.3237333298, -0.0666358024, 0.1534445584, -0.1248241365, 0.0931608081, -0.0238916725, 0.1016376093, -0.2898567915, 0.0022016636, 0.170915097, -0.1663366854, -0.0985279456, 0.2696664035, 0.0147395842, -0.0643741488, -0.2574066222, 0.171615541, 0.0513089858, -0.0414520688, 0.1521834135, 0.0773043558, -0.1261707991, -0.3096642196, 0.391438067, 0.1916747987, 0.1403508186, -0.2274480611, 0.1455267966, -0.0863010511, -0.1304277778, 0.0412222631, 0.1899663061, 0.3233480453, -0.0304892156, 0.1629436761, 0.1836391538, -0.0768370628, 0.0709081441, 0.2680516839, 0.2861493528, 0.0453734845, 0.1284095943, -0.2139100879, -0.0652393699, 0.0621735044, 0.2593595982, 0.4585359693, -0.3202503324, -0.2236280888, 0.4694554508, 0.0802866295, -0.0413803644, -0.1314870864, -0.0876241401, -0.150209412, -0.1225980967, 0.2824839652, -0.0133890295, -0.0183292124, -0.130537793, 0.1619993299, -0.1548790485, 0.1399542689, -0.0480197445, 0.5657490492, 0.0044325041, 0.0701994076, 0.2165225446, 0.0875185803, 0.2833935022, 0.6908547282, 0.2469200194, 0.154418841, -0.30742082, 0.0846030489, -0.2320080251, -0.480897218, -0.3943102658, 0.2658728659, -0.1199414656, 0.3273167014, -0.1321467906, 0.5771369934, -0.0481404848, -0.2353114039, -0.1017272398, 0.0392378755, -0.3232100606, -0.1748598218, 0.245392099, -0.1198593825, 0.1695701927, 0.2694950402, -0.1514984965, 0.0249418542, 0.0607269667, 0.0578388199, -0.0696150139, 0.0819530264, -0.1515663266, 0.1433771998, 0.172461316, -0.2777451575, 0.2601989508, -0.1849161685, 0.0236283746, -0.2479349226, 0.3573226333, 0.4614422917, 0.4569041133, -0.2203868181, 0.1961307377, 0.1398973167, 0.0503160618, -0.06493707, 0.2028534263, 0.306643039, 0.0474391878, 0.0513348319, -0.0806986913, -0.1091974378, -0.0626923218, 0.2326475829, 0.0353197269, -0.0747034252, 0.1730511934, -0.1069740951, -0.1755282283, -0.1765589565, -0.0238730293, -0.656195581, 0.4798914194, 0.5330017805, -0.0657742992, 0.2312939912, -0.0600781552, -0.0091699632, -0.1038944721, 0.4950031638, 0.4832198024, -0.0837987438, -0.4275383055, 0.025752414, -0.2784150541, 0.3173956275, -0.3863588572, 0.2983149886, -0.1307024807, -0.0844772831, 0.0218281094, -0.1150519103, -0.1574870646, -0.2555809319, -0.653503716, 0.1622952521, -0.1024791375, -0.2134436369, -0.2421799898, 0.0815433711, -0.0284334738, -0.3112557232, 0.4596818089, -0.0351954065, -0.1514106542, 0.0133029539, 0.3289441764, -0.2615919709, 0.1339919418, 0.2557196021, 0.250148654, 0.0000682448, 0.0081563015, -0.1990965754, -0.2667861581, 0.0887239501, -0.0846686065, 0.1275191009, 0.2306879461, 0.2665814459, -0.3857629597, -0.2505605817, -0.4074323177, 0.1125190184, 0.3654773831, -0.1307973266, -0.2475527078, 0.1453558654, -0.1500488222, -0.0236989334, -0.0205410458, 0.4520381689, -0.1429158598, -0.0449984223, -0.2473855764, -0.2518767118, 0.4671110213, -0.3677016795, -0.4063570797, -0.2025920451, 0.0299033169, 0.3852638006, -0.2789248228, -0.8607034087, 0.1042309031, 0.2206312269, 0.0156904478, -0.5150167942, 0.0325451903, -0.020475477, -0.1085937023, -0.2627114654, 0.8137915134, 0.0751592368, -0.1930021346, 0.4323779643, -0.3210274279 ]
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.2022947371, -0.292021662, 0.1189169437, 0.2300963253, 0.6037492156, -0.1722532958, 0.3156900108, 0.389885366, -0.2658644915, 0.1825165749, -0.0329228416, -0.1477787942, -0.3427738249, 0.2524910867, 0.1107930467, -0.0713135824, 0.1064803898, 0.1568872184, -0.0434263609, -0.2282029986, 0.054199338, 0.0182769056, 0.2426916808, 0.2236170471, -0.5773250461, 0.0931168273, -0.0897390917, 0.0289623719, -0.4984020591, -0.1051622629, 0.0200684965, -0.2774220109, 0.2171358019, 0.4887033105, -0.0001255141, -0.0723907351, 0.139011547, -0.0683197677, 0.0042036995, 0.1563263088, 0.2038098127, -0.096301645, -0.143672362, 0.1250667572, 0.2383716702, -0.1081831306, -0.0434216075, -0.0000367568, 0.3469853401, 0.1695786715, 0.0850070864, 0.1917714328, 0.0978403538, 0.0513316616, 0.2168007046, 0.2441501319, -0.0491974242, 0.0492717512, 0.2134054005, -0.2436896712, -0.0475989357, 0.176649794, 0.1195393577, -0.1437063962, 0.3066149354, 0.1922548413, -0.0794913694, -0.4115471542, 0.1700012088, 0.4091200531, -0.0398112312, -0.3814208806, -0.2852914035, -0.3907469511, 0.2280960828, -0.5098488927, 0.0361434668, 0.1651210785, -0.115321666, 0.0947939008, -0.2568559647, -0.3915159702, -0.2216070592, -0.0695686117, -0.2767576277, 0.0675150082, -0.2188894898, -0.0988882855, -0.0032570327, -0.0955053717, -0.3700413406, 0.0121712219, -0.049817346, 0.1920450181, -0.1057281047, -0.3005862236, -0.0935105383, -0.3335510492, 0.2913613915, -0.4924597442, -0.2083919942, -0.4083324969, -0.1743305624, -0.3648549318, 0.4070279598, 0.491343528, -0.407366991, 0.1588035971, 0.1524098217, 0.0369437858, -0.163415432, -0.0812349841, -0.1595999449, 0.1207199693, 0.016142955, -0.3720577359, 0.0639487877, -0.2456080317, -0.1266844869, 0.383903712, -0.3510909975, 0.2377407998, 0.0550512448, 0.3134866059, -0.065064542, 0.1613827795, 0.0347573757, 0.0411059223, -0.4139358401, -0.0494076237, -0.071632266, 0.0595840625, -0.1605285704, 0.1914116144, -0.0187103767, 0.1006063893, 0.0448964164, -0.0284893308, 0.34212026, -0.0739848539, 0.0721719414, -0.2557466626, 0.1020972505, 0.1747197956, -0.173989132, 0.4763529599, 0.0112039233, 0.0109734042, -0.0122266244, 0.0318185203, -0.1611828506, -0.5222710371, -0.095311664, 0.1208964437, -0.0136678144, 0.2884064913, -0.0481703691, 0.3760944903, 0.3958168924, 0.0022842723, -0.0270233322, -0.2176159322, -0.1882953495, -0.0019311454, 0.4034154713, 0.3783379793, -0.5633428097, -0.1548844725, -0.2199614048, 0.2848353684, 0.3699564934, 0.6364402771, -0.0472259559, 0.5527012944, -0.2490291446, 0.2100595236, -0.3150475919, 0.2535912693, -0.4138020575, 0.3480507135, -0.1281872988, -0.0720966458, 0.0379307978, -0.0920354724, 0.2472736239, 0.0253309719, 0.4554363787, 0.0424425229, -0.1859481335, 0.0485508852, -0.3573646247, -0.3754620552, -0.2417559922, 0.0276659485, 0.1375679076, -0.143408373, -0.2986961901, 0.5591657162, 0.122440666, -0.1235058978, 0.171239987, 0.3022283614, 0.1504051089, -0.0457572564, 0.0347058699, -0.0240929499, -0.1081378907, -0.0064383168, -0.2265456319, 0.255484134, 0.0755125135, -0.3105171323, -0.087899372, -0.009651674, 0.1022603884, -0.1911882013, 0.0169623345, -0.2215737253, -0.1310765743, 0.0813741311, -0.082646586, -0.121753253, -0.1119902804, 0.0957404375, -0.4077610075, -0.0668906868, -0.0375664309, -0.1556824595, -0.0447245464, 0.3314082026, -0.1087690517, 0.0229350869, -0.0908818915, 0.2122029364, 0.0596888363, 0.0822514445, -0.0839941427, 0.2329187244, 0.2856227756, 0.1345305443, 0.1035178453, 0.1799338609, 0.0648086146, -0.0836118311, -0.0658560023, 0.2375003994, 0.2314718366, 0.1127713546, 0.2546750605, -0.2077409625, -0.051037956, 0.1223886386, -0.0303191654, -0.2649427652, 0.2836705446, 0.0495791622, 0.2589973509, 0.1513909101, -0.1905858964, -0.0424954705, 0.2515276372, -0.1678775549, 0.0247897021, 0.3735732734, -0.3690002263, -0.0784586221, -0.0579494238, -0.2319735736, 0.2978201807, 0.0852162614, 0.1362767816, 0.1201530099, 0.0970116407, -0.0916479751, 0.1554720849, 0.2827509046, -0.1316685826, 0.162089631, 0.222550571, 0.0028686502, -0.2590221167, 0.029704107, -0.2065398693, 0.3683235943, -0.3679234385, 0.2950267196, 0.0566737428, 0.0482111312, -0.3758401275, -0.2766400278, -0.2192477435, 0.0057148961, 0.2062771469, -0.1668456942, -0.1179318726, -0.0931926072, 0.3834415972, 0.2632870972, 0.1543857157, 0.3253234625, 0.034731593, 0.0900793225, -0.3657517731, -0.0053996989, 0.1525135338, -0.1867828071, 0.1173915043, 0.1443029195, -0.27736637, -0.0515351929, -0.3002152145, 0.1842241287, -0.1805006713, 0.256688118, 0.2256779373, 0.1575407833, -0.4216120541, 0.0344794132, 0.0324530154, -0.0248778742, -0.1283336282, -0.0536395349, -0.1409128308, 0.157362029, -0.0745355934, -0.2841412127, -0.1479463875, -0.0517503098, 0.3619459867, -0.0264671613, -0.029690966, 0.1829233021, 0.1623689979, 0.0922784731, 0.0150934262, -0.2145968378, 0.0251059234, -0.1410415471, 0.1920465976, 0.013445125, -0.1889303029, -0.3331332505, -0.0168803018, 0.0008045261, -0.1568013132, -0.5277710557, 0.0539354794, -0.4343662858, -0.2976067066, -0.2196920961, 0.347622931, 0.0865405127, -0.0860693753, 0.0464070737, 0.1269993037, 0.1192755476, -0.0778974816, -0.2258179188, 0.2165210694, -0.4335951507, 0.429258287, -0.0345523879, 0.8483142257, 0.226730153, -0.0550653972, 0.010446961, -0.0209991802, 0.3937902451, -0.4736236036, -0.2124665678, 0.3288613558, -0.123209402, -0.3801845014, 0.2800569236, 0.1227311417, 0.4507927895, 0.1759642214, 0.048179131, 0.2780033052, -0.3748354018, 0.3768452704, 0.1353832185, 0.1944559813, 0.0062739239, 0.072359629, 0.0427690335, -0.3326545954, 0.0735128149, -0.0231748335, 0.1662966609, -0.0096784364, 0.0337760597, -0.2803364098, -0.7721146345, -0.0122384066, 0.089705959, 0.0998129547, 0.173117578, -0.1408753991, 0.1640353352, 0.0309020039, 0.8085676432, 0.3027651012, -0.1947131157, -0.0275231209, -0.0687404796, -0.1778627336, 0.016813457, -0.3545092046, -0.0358800702, 0.5801973939, 0.6342157125, -0.3662619591, -0.0494975299, 0.1119948998, 0.3816508949, -0.1101432964, 0.0391920097, -0.3996423781, -0.0195070561, -0.242299065, 0.2102529407, 0.0761092603, 0.0797602609, -0.1154865921, -0.0831391737, 0.1009417549, -0.1210440397, 0.3523437977, 0.2720103562, 0.3041642308, -0.2905329764, 0.3746732771, -0.042687647, 0.1138565019, 0.3892745674, 0.1802375317, -0.1690206081, -0.3310917616, 0.2556260526, -0.0677466094, 0.3350263238, 0.5346249938, -0.0161223561, 0.2118690908, 0.0786076188, 0.4518141747, -0.4136649072, 0.5587219596, 0.4952726066, -0.0402749293, -0.5326895118, -0.1620938182, 0.3384356201, 0.0738517866, 0.1286018342, 0.1966751814, 0.2628085315, -0.302144289, 0.3217560053, -0.0430061445, 1.1316549778, -0.2781012654, 0.5939574838, 0.0634623468, 0.2603402138, 0.6253473163, -0.3204677701, 0.1985352635, -0.3777294159, -0.1113149449, 0.1610723138, 0.0844927728, -0.1474875361, 0.0647374094, -0.1699178368, 0.1965811104, -0.1071453914, 0.2627726495, -0.2470769286, 0.3641862869, 0.0357589498, -0.3776304126, -0.2614324689, -0.0329855606, 0.000642248, 0.0289849155, -0.1743230969, 0.0873857737, 0.0621007271, -0.2995586693, -0.2748019993, -0.196110025, -0.0826535746, -0.0117113516, 0.2052904516, -0.3377435505, 0.2742103338, -0.0674556196, 0.2621943057, 0.6511216164, -0.2098903805, 0.0959375203, -0.1948788166, 0.0624821559, -0.0203916095, -0.0850730017, 0.002480502, 0.0770365149, 0.0503249057, 0.0032794233, -0.012032236, 0.2906377912, -0.399199158, -0.1737020463, 0.5477031469, -0.4731481969, 0.0558955185, -0.0999969468, -0.0465256386, -0.1736384779, 0.0261043031, 0.1446434259, -0.2854095697, 0.0365472585, 0.039233394, -0.3762051463, -0.2354311049, 0.2242616415, 0.217813611, 0.0336711146, 0.6945819259, 0.3077146113, -0.0296191555, -0.0777298734, 0.3860267401, 0.5473818779, -0.4338844419, 0.3099579513, 0.182585746, -0.0441235863, 0.0502265058, 0.206112355, 0.2624818087, -0.300070256, -0.1796598136, -0.072470665, -0.4185903668, 0.0641855672, -0.0437605828, 0.141715467, 0.197852999, 0.4324566424, -0.1058505103, 0.1831017733, -0.1512869745, 0.0984665453, -0.0487738699, 0.0988993123, -0.2720243633, -0.063588433, 0.1578978896, -0.1114621535, -0.0566093475, 0.2550337017, 0.0044629108, -0.1042548493, -0.2301461399, 0.1626788974, 0.0316880681, -0.0372919105, 0.1404597312, 0.1088924929, -0.1670830846, -0.2456860542, 0.3883178234, 0.144298777, 0.1313138306, -0.2201204151, 0.1369383931, -0.0715000257, -0.0951591283, -0.0318622924, 0.2092141062, 0.2916567922, 0.1146195531, 0.1534418315, 0.261418134, -0.0702032894, -0.0123669012, 0.2207601219, 0.2243564874, 0.0791243389, 0.0622731522, -0.1821437627, -0.1318073124, -0.0142755918, 0.2707622945, 0.4881925583, -0.2587162554, -0.2257805765, 0.5012190342, 0.1117136404, -0.0246023387, -0.0911834463, -0.1167160422, -0.2040235549, -0.1240225956, 0.3177523613, -0.0207637772, 0.0352480263, -0.1154171973, 0.1799303442, -0.086919263, 0.1717034429, -0.051152695, 0.5434494615, -0.0404457413, 0.0851745307, 0.1827305704, 0.0224990007, 0.2841390669, 0.6910938621, 0.1807807982, 0.1545211375, -0.3504060507, 0.1210543811, -0.1919402182, -0.5043106079, -0.4453710914, 0.1366316825, -0.0886422843, 0.2801232636, -0.14453049, 0.5805772543, -0.1093653291, -0.2709634602, -0.1186144426, 0.0088292938, -0.2598237097, -0.1174583584, 0.1925291568, -0.1576171219, 0.1352836341, 0.264431119, -0.099041976, 0.0462279245, -0.0953778997, 0.0562905297, -0.0968346894, -0.0287596136, -0.2080893219, 0.1780242473, 0.1250553876, -0.2428966165, 0.2051359117, -0.071096234, 0.0525448062, -0.2004518509, 0.3062068224, 0.4847802818, 0.4154981971, -0.2384960353, 0.195475474, 0.1275566518, 0.0669916049, -0.0642052144, 0.1136272252, 0.324719727, 0.1053208038, 0.0340533964, -0.0433576889, -0.1434880197, -0.1536743045, 0.2062390149, 0.075668402, -0.1636306345, 0.1970092952, -0.1018453836, -0.1498574913, -0.2699941993, 0.0260947645, -0.7529441714, 0.534099102, 0.4614877105, -0.0610113032, 0.1280626655, -0.0869826749, 0.0034485364, -0.1110580191, 0.474529177, 0.484503746, -0.0024141429, -0.410284996, -0.0407223441, -0.303380847, 0.2930367291, -0.3688575029, 0.2744472027, -0.1734833568, -0.0822602659, 0.0568437763, -0.1173159629, -0.0912354216, -0.1900199056, -0.7031128407, 0.1316701323, -0.1559222937, -0.1953703314, -0.23844181, 0.0313236415, -0.0565429069, -0.2429546714, 0.4389217794, 0.0333598107, -0.1227194667, -0.0055753863, 0.2359010577, -0.2267875969, 0.1096856147, 0.2416953295, 0.2818454206, 0.0293616652, 0.0556325167, -0.1980585754, -0.2926266193, 0.0976224169, -0.1160408854, 0.1269224733, 0.2477739453, 0.2843006253, -0.2559835315, -0.2809933424, -0.4314662218, 0.1640502214, 0.3631733656, -0.1304228604, -0.2610966265, 0.122545667, -0.1037977412, -0.0157276224, 0.0005374078, 0.5165204406, -0.1023201421, -0.0567013361, -0.364394486, -0.2662370205, 0.4903410971, -0.3295806348, -0.4211164415, -0.2379919589, 0.0514784493, 0.3020359278, -0.2552239597, -0.7636173964, 0.0847052783, 0.1540555507, 0.0148217678, -0.5005556941, 0.1322122514, -0.0590820983, -0.1500607282, -0.2053282857, 0.6773768663, 0.0786699355, -0.204011187, 0.3991597593, -0.2519072294 ]
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.1276513636, -0.4218365848, 0.1068673581, 0.2943579555, 0.6427577734, -0.1283719391, 0.3398815095, 0.4012147784, -0.2470449209, 0.1549628228, -0.0381341912, -0.1218296364, -0.2987715006, 0.2704770267, 0.1444564909, -0.084858492, 0.0800592378, 0.1567350328, -0.0432324149, -0.3624186218, 0.0178010073, 0.0119266966, 0.2649849951, 0.2487944812, -0.5399374366, 0.1164366603, -0.089040935, 0.0878878608, -0.477891773, -0.0461201034, 0.0388474874, -0.3701863289, 0.1601383984, 0.5560234189, -0.0001261977, -0.0579313375, 0.1979996264, -0.1043425351, 0.0430377945, 0.1906139702, 0.0401333608, 0.0164480582, -0.1522933245, 0.1174181551, 0.1633697152, -0.0749805197, -0.0505144745, -0.0368020758, 0.3213075697, 0.2368450612, 0.0880091563, 0.0191162303, 0.0510081463, 0.0527157933, 0.2443503141, 0.2661502659, -0.0326643325, 0.0410111733, 0.1123429909, -0.0585211292, 0.0381149277, 0.1659112275, 0.1789551526, -0.0714266524, 0.3485541344, 0.2815019786, -0.0626597032, -0.4381535053, 0.1757109016, 0.4649780691, -0.0341455489, -0.3490567803, -0.3314693272, -0.3132906556, 0.2559036911, -0.5074097514, 0.0019556293, 0.3379586935, -0.0914494097, 0.0786473602, -0.2632104456, -0.4374253154, -0.2496213317, -0.1110475808, -0.2281240523, -0.0159759875, -0.2338902205, -0.0931957364, -0.0396676585, -0.0589145347, -0.4165323675, -0.0705714822, -0.0816852078, 0.2201216817, -0.0319721773, -0.2654675245, -0.1090489104, -0.2294502705, 0.240988642, -0.5617983341, -0.0786129534, -0.456605047, -0.256095618, -0.3459121287, 0.3546562493, 0.4483873248, -0.457965821, 0.1858587861, 0.1445352584, 0.0826459453, -0.2117664069, -0.0605406649, -0.1389766634, 0.1224851236, 0.0102629578, -0.4655171931, 0.0591998659, -0.2968018651, -0.1397831291, 0.3230865896, -0.3538084924, 0.2023715228, 0.0499950387, 0.3438808918, -0.1023269668, 0.0419260189, 0.0515125841, 0.0887675807, -0.4091445804, -0.0151634449, -0.1164164543, 0.118116349, -0.1676014364, 0.205782488, -0.0578264892, -0.0049613481, 0.0498312488, 0.008466226, 0.2533488274, -0.0428123586, 0.0828226209, -0.2464299947, 0.2176023871, 0.1504775882, -0.1683320254, 0.4425064325, -0.03804994, 0.1225011647, -0.0019263639, 0.1240712479, -0.2061241716, -0.4667066634, -0.0831880346, 0.1185636073, -0.0553818233, 0.2808893919, -0.031733226, 0.3154497147, 0.4504306316, -0.0002373883, 0.0170977041, -0.177650556, -0.2350565493, -0.0263186004, 0.3950236738, 0.3266686201, -0.5285286307, -0.148388803, -0.2407323122, 0.2778954506, 0.4014594853, 0.6155526042, -0.0071391906, 0.5933490992, -0.2661557794, 0.1274460703, -0.3081241548, 0.2741971612, -0.3772037625, 0.3744084239, -0.0902812257, -0.0957927778, 0.0843487978, -0.0470152199, 0.0716259032, 0.0765352771, 0.3944899142, 0.0010765918, -0.142658323, -0.0059019271, -0.3934574425, -0.372503221, -0.3202275336, -0.0293922219, 0.1224966049, -0.0589129552, -0.2856299877, 0.5653201342, 0.158231169, -0.1308507621, 0.1914218068, 0.2992984653, 0.1277527213, -0.0898281783, -0.0050906348, 0.0295595955, -0.0824712142, 0.0331871845, -0.4174711108, 0.1905742437, 0.1240223646, -0.253105849, -0.0447309501, -0.0687904432, 0.0282638688, -0.2317641377, -0.0192760434, -0.1546550393, -0.0446010157, 0.0154299922, -0.0248279013, -0.125290066, -0.0736534223, 0.0106473751, -0.5096873045, -0.0241763573, 0.0002805247, -0.1650914401, -0.0397444181, 0.3676857054, -0.1405471712, 0.0562488399, -0.0805532932, 0.1306503266, 0.1284163743, 0.074859187, -0.0634477884, 0.1455749571, 0.3039919734, 0.1224542782, 0.1135457009, 0.2218717188, 0.1184035838, -0.0786924586, -0.191105023, 0.2072174996, 0.2488702834, 0.0800249502, 0.2820251286, -0.2214491069, -0.0894833952, 0.09871535, -0.0532892942, -0.2998575568, 0.2517931759, 0.1236834675, 0.2842864692, 0.1805295497, -0.1856545806, -0.1370197833, 0.3239433765, -0.1951678097, -0.0396152847, 0.4245701134, -0.3088124692, -0.0758594573, -0.0875333026, -0.2740563154, 0.3153855205, 0.1101149842, 0.1338967979, 0.118767634, 0.1388583779, -0.0974703282, 0.1322101057, 0.2498320043, -0.1262380928, 0.1747723073, 0.2392379791, -0.0798345432, -0.1743389219, 0.1291182637, -0.1983763874, 0.3336580396, -0.4030174017, 0.3130135536, 0.1204988509, 0.1127063632, -0.4343588054, -0.2917585075, -0.1530720443, 0.0325137153, 0.1591103673, -0.2382528186, -0.0750623867, -0.1352493465, 0.3465171158, 0.1934903264, 0.1789178699, 0.2643799186, 0.0568551756, 0.1604308635, -0.367519021, 0.0146150757, 0.1229767352, -0.1204924658, 0.1066780835, 0.0952568799, -0.2957553566, -0.0349999368, -0.2590642273, 0.1933891922, -0.2113824934, 0.2909785509, 0.1516252011, 0.1146211922, -0.368178755, 0.0680633113, 0.0882990137, -0.0322858654, -0.1498580426, -0.0441933013, -0.1486748308, 0.2281103432, -0.087472491, -0.3000986278, -0.0941370204, -0.0312906839, 0.4148479998, 0.083784163, -0.0100267418, 0.2177240402, 0.1786603779, 0.1272262484, 0.0197738018, -0.1597073227, -0.0354677066, -0.1911405027, 0.1912486553, -0.0144754481, -0.2573114336, -0.3347415924, -0.1144602448, 0.1040078625, -0.2010481805, -0.5380889177, 0.0351849422, -0.4793238342, -0.2589476705, -0.2166305184, 0.3814694881, 0.034493167, -0.1614194959, 0.0466760769, 0.0747111514, 0.140839234, -0.0054685073, -0.2377617955, 0.2027300149, -0.4108914137, 0.3287278712, -0.1822105497, 0.8339401484, 0.3465126157, -0.0555106029, -0.0644271076, -0.0809495896, 0.4020641446, -0.4588723183, -0.1653170288, 0.3064308763, -0.1217418686, -0.3759495616, 0.2950262725, 0.1579596698, 0.4908569455, 0.1650065035, 0.1103342399, 0.2498966157, -0.3243837953, 0.3450453281, 0.1185863018, 0.1294509768, -0.0090001216, 0.0719853938, 0.0478031412, -0.3362256289, 0.0543729477, -0.0476698205, 0.2388567626, 0.0033360601, 0.1545104682, -0.3303190172, -0.6893528104, -0.0198043752, 0.1392311454, -0.0248525422, 0.1453486681, -0.1320494562, 0.2101354152, 0.0516631864, 0.7545101047, 0.2475428879, -0.0989422947, 0.0239299349, -0.0505446158, -0.1498228163, 0.0122498609, -0.378752619, -0.0279885065, 0.5659732223, 0.5356940031, -0.3186968267, -0.0022770984, 0.1669673324, 0.3624537289, -0.1111405492, -0.0095175011, -0.4973681867, -0.0270319283, -0.1853750348, 0.1172209531, 0.0561153479, 0.0575087368, -0.1731965989, -0.1451405734, 0.0887660384, -0.0695767999, 0.3130294681, 0.2091910988, 0.3291222453, -0.228529796, 0.3800686002, -0.0179797225, 0.124559164, 0.3865332305, 0.3226421475, -0.1884766966, -0.2584010959, 0.1959349811, -0.2028001398, 0.3252986073, 0.4745910764, -0.0183884781, 0.1406527162, 0.1705866009, 0.4246021211, -0.394739747, 0.487722367, 0.5528473854, -0.0566165335, -0.5213480592, -0.2778936625, 0.4880213737, 0.1094362512, 0.1318005323, 0.2507800162, 0.2139130384, -0.2760673761, 0.2151191235, -0.0630096793, 1.0572490692, -0.1979906857, 0.5809545517, 0.1332602501, 0.244315818, 0.5600248575, -0.1634088904, 0.1860709935, -0.3717609048, -0.0683659464, 0.1798360646, 0.0233998746, -0.151453495, 0.0723548606, -0.2003832757, 0.1706085801, -0.1733765602, 0.2452856749, -0.2034245878, 0.344935447, 0.1053251103, -0.291941613, -0.2884558737, -0.0556591116, 0.0399786085, 0.0736346617, -0.1359113306, 0.0102360696, -0.045181632, -0.2965847254, -0.228573218, -0.1514568031, -0.0616069175, -0.0180228073, 0.1356382221, -0.4155598879, 0.2852835655, -0.0061041843, 0.2018769532, 0.6037316918, -0.255243063, 0.0815708339, -0.1647107899, 0.0555004217, -0.0609477498, -0.0629587471, 0.0183577333, 0.0395534933, -0.0112470556, 0.0081245452, -0.0311512221, 0.3303087652, -0.3478432596, -0.141848594, 0.4647268355, -0.4978819191, -0.0072215376, -0.0802577734, -0.1155119762, -0.1249566823, 0.0196051113, 0.154474467, -0.3114492297, 0.0475625508, 0.1161857694, -0.4666773975, -0.2527614832, 0.2053711414, 0.3127785325, 0.1111270711, 0.7269279957, 0.2397603542, -0.0011835038, -0.0601238422, 0.3727791309, 0.5438685417, -0.437143743, 0.3184969425, 0.262196064, 0.0488700904, 0.029110454, 0.1672332883, 0.2023545504, -0.2320086807, -0.1916528791, -0.011576267, -0.3460532427, 0.028033169, -0.0723965913, 0.1560410857, 0.1169245839, 0.4359509349, 0.0357435606, 0.1918996871, -0.1414848268, 0.0700053126, -0.004682044, 0.0214005969, -0.2310764641, -0.0026919106, 0.1514338404, -0.0814433694, -0.0647878498, 0.1667023897, 0.0020319477, -0.0980186686, -0.2285379916, 0.1536141932, 0.0398370735, -0.0385810286, 0.168036595, 0.1496418864, -0.1911125779, -0.2004625648, 0.3976660371, 0.1427761614, 0.1690919548, -0.1483493, 0.1470239758, -0.1166024059, -0.0988807306, -0.0595460348, 0.1867140681, 0.3183194995, 0.0611322448, 0.1301338822, 0.3052385747, -0.0736709833, -0.0272995923, 0.1290048808, 0.1368472725, 0.112855725, 0.0538336486, -0.2543919384, -0.0048862132, -0.0355649926, 0.2974038422, 0.4269481897, -0.23302944, -0.1478859484, 0.3677383661, 0.0927940309, -0.0772647932, -0.0211795606, -0.1828505844, -0.2182418853, -0.1203054115, 0.322465986, -0.0430026613, 0.0732129365, -0.1927618831, 0.1227886528, -0.1977943331, 0.1827682704, -0.0105106616, 0.6458749771, -0.0254400503, 0.120138973, 0.2480579466, 0.0898621976, 0.2171668857, 0.6840232611, 0.2106299102, 0.1559528112, -0.4127488732, 0.0459774137, -0.1476394087, -0.5137032866, -0.4766754508, 0.1807594001, -0.1385581195, 0.2510445714, -0.1436318904, 0.585108757, -0.0925025493, -0.228613764, -0.1587092131, -0.02250221, -0.2247793376, -0.120985806, 0.1957601309, -0.1729847193, 0.1710039526, 0.2518328428, -0.0850014165, 0.1018372849, -0.0150036421, 0.0656474158, -0.0919590667, 0.0620728806, -0.1243013665, 0.152681753, 0.0915936306, -0.2555819154, 0.2083452195, -0.0374241993, 0.0623655096, -0.1423091888, 0.3047381639, 0.504411459, 0.4020273685, -0.1960879564, 0.1983144134, 0.1214168072, 0.0320374258, -0.0764960945, 0.1660143137, 0.3422461748, 0.0307877138, 0.0574716777, -0.0357736982, -0.1374778599, -0.0107414797, 0.2075414062, 0.159354046, -0.2030372769, 0.3092694283, -0.1445061564, -0.136631906, -0.332480222, 0.0277770236, -0.780836761, 0.6018409133, 0.3939926028, -0.0382939726, 0.0751706362, -0.0575839058, -0.005817425, -0.1773790419, 0.5535488725, 0.4052789509, 0.0527980551, -0.4022138715, 0.0409855694, -0.2695579827, 0.2878915966, -0.4112736583, 0.2815778852, -0.2419728786, -0.0198100321, -0.00625232, -0.1268977076, -0.0319106989, -0.2795473337, -0.7357227206, 0.1375218183, -0.1183147505, -0.2483349144, -0.2567408681, 0.082760267, -0.0633306056, -0.2646410763, 0.3999220729, -0.0384018458, -0.1106514409, 0.0319811106, 0.178847149, -0.2364383936, 0.1792991608, 0.2317089587, 0.3124321103, 0.1329687834, -0.0105364472, -0.2296810597, -0.2905625105, 0.0933329016, -0.1113019213, 0.1991878152, 0.2345941663, 0.3189928532, -0.2172693312, -0.3325838745, -0.4254435301, 0.2387922406, 0.3529761732, -0.1453870535, -0.2179759294, 0.0919541642, -0.0755622834, -0.0770611614, 0.0453811474, 0.466825068, -0.170696646, -0.1004318073, -0.3269616961, -0.2557925582, 0.5335486531, -0.3489525318, -0.3766442537, -0.2509150505, 0.062616162, 0.2268564105, -0.3144401908, -0.7230036855, 0.1928253621, 0.2091497481, -0.030504046, -0.4149521291, 0.0981284082, -0.1121781841, -0.1236163005, -0.1959386915, 0.6790008545, 0.0530065596, -0.2023357451, 0.3828849196, -0.2743702531 ]
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.2338341177, -0.3642717302, 0.1098739579, 0.3271674216, 0.5802887678, -0.1227115989, 0.2948493063, 0.4052776396, -0.1822133213, 0.1775165796, -0.0482909121, -0.1247081012, -0.3384364843, 0.2299036682, 0.0976039469, -0.0641688034, 0.1237756759, 0.153372094, -0.1044933945, -0.2381586134, 0.0190758854, 0.0444056354, 0.2407268882, 0.2485655546, -0.5509334803, 0.0961138681, -0.053044688, 0.0657119378, -0.4600454867, -0.0649347156, 0.0930358469, -0.3468027115, 0.2184777707, 0.5662023425, -0.0001273608, -0.0424783751, 0.1586661339, -0.0371261686, -0.0362691842, 0.1515889615, 0.1211320907, -0.0592242964, -0.156009391, 0.1039411202, 0.2607800364, -0.0881413147, -0.0348144323, -0.0693407208, 0.3328701556, 0.254679352, 0.0841449797, 0.1687069982, 0.0530855916, 0.0208147727, 0.2235208154, 0.2778953612, -0.0392045006, 0.0236582682, 0.1884798706, -0.1935085207, -0.0342080407, 0.2210818529, 0.1108084321, -0.1128801331, 0.3315670192, 0.193432048, -0.0573362783, -0.3944151998, 0.241011411, 0.3753352761, 0.0406103656, -0.4069217145, -0.2597792745, -0.4071704149, 0.2153963, -0.4601973593, 0.0786266178, 0.1565640569, -0.1745777875, 0.0869323537, -0.2822418511, -0.4332431555, -0.2624082267, -0.0644184425, -0.1952351481, -0.0204993077, -0.2531408966, -0.0878002644, 0.0316851251, -0.0513358079, -0.3014714718, 0.0018024392, -0.0131000755, 0.1772997379, -0.0929568559, -0.281067282, -0.0840082765, -0.3132233322, 0.2787924409, -0.5234854221, -0.1843096763, -0.4352833033, -0.2017563581, -0.35466519, 0.4170536697, 0.4720202982, -0.3960174918, 0.1702490598, 0.1665722877, 0.0548954234, -0.1536716819, -0.07587374, -0.1547507942, 0.0704371259, 0.070722416, -0.438120544, 0.1299616843, -0.2795092463, -0.1710015684, 0.3896249235, -0.2968330979, 0.2034120709, 0.0244192686, 0.3456145525, -0.0571386069, 0.1504269689, 0.0753572881, 0.0295036417, -0.4357021749, -0.0140296845, -0.0874338001, 0.0690610409, -0.1871558875, 0.1723109037, -0.0044258661, 0.0444653407, 0.097516112, -0.0309927072, 0.2879884541, -0.0614806972, 0.0658553839, -0.2731788754, 0.1098375767, 0.194920212, -0.1669238508, 0.4897103608, -0.0056192875, 0.0467576794, 0.0041759703, 0.0890714228, -0.2138065249, -0.5087087154, -0.133437261, 0.1073391587, -0.0225376654, 0.2703318894, -0.1141863391, 0.3702566922, 0.4396835268, -0.0440381691, -0.0226353258, -0.194494471, -0.2229562849, -0.012611025, 0.3754177988, 0.4236916602, -0.557384789, -0.1374474764, -0.2831022739, 0.2760493159, 0.3170407414, 0.6052903533, -0.0366576053, 0.5938887, -0.2680999637, 0.1369594485, -0.2820636928, 0.2830560803, -0.4317549467, 0.3631531, -0.0558018982, -0.0812833831, 0.0675941035, -0.0509307906, 0.1601728648, 0.0494953729, 0.4206694961, 0.0105384635, -0.191023767, 0.0278292987, -0.3491927981, -0.3933972716, -0.3029135168, 0.0391488746, 0.2074752599, -0.1426801831, -0.2428856492, 0.5842378736, 0.1493230462, -0.1176011041, 0.1443624198, 0.4034584165, 0.1061512455, -0.0489934757, 0.0309902895, -0.1546380967, -0.1521954536, 0.017760234, -0.2466838956, 0.1808102876, 0.0917118713, -0.236106649, -0.0985660329, -0.0183472596, 0.0784695372, -0.1859896481, -0.0025022216, -0.1868595928, -0.1341240555, 0.0562629141, -0.0534957498, -0.0828901902, -0.1111691669, 0.0557697751, -0.4824640751, -0.0216358081, -0.0438357145, -0.1878068298, -0.0588854365, 0.3047099411, -0.1567815989, 0.0496466234, -0.107647799, 0.2003514767, 0.065524891, 0.0901457444, -0.0104250703, 0.184932217, 0.2647393942, 0.0936754495, 0.1331101209, 0.1993817091, 0.0828021467, -0.067843467, -0.1416809112, 0.1253063679, 0.1942509413, 0.1309910864, 0.2353685498, -0.238740325, -0.096901305, 0.1526819617, -0.006746558, -0.2505145073, 0.287101835, 0.0482299626, 0.2550385296, 0.157713294, -0.1824489385, -0.0940708295, 0.3434637785, -0.1666008979, 0.0557356626, 0.4261438549, -0.3578203321, -0.0915522501, -0.0463072918, -0.1888590008, 0.3729064167, 0.0803319663, 0.1341006607, 0.1067788973, 0.064471446, -0.067261219, 0.149930343, 0.2874513865, -0.1175792143, 0.1728916168, 0.1884486824, -0.0295738596, -0.2551503181, 0.0547021851, -0.2172522694, 0.3717316985, -0.3848313093, 0.3306093514, 0.0946650207, 0.0327259637, -0.4031645358, -0.2052150816, -0.1755548567, 0.0127514191, 0.1642495692, -0.1578896493, -0.0829309076, -0.0999552831, 0.3912379146, 0.2013756633, 0.1962988526, 0.3108695745, 0.0330978781, 0.1383016855, -0.3434258103, -0.0045560873, 0.1663038731, -0.1632997841, 0.1363899261, 0.1126273572, -0.2667166591, -0.0624264255, -0.2402977794, 0.1260367185, -0.1923040897, 0.2783960998, 0.2113269717, 0.2293053418, -0.382812202, 0.0926503837, 0.0435232781, -0.0196590442, -0.1070589498, -0.0421101004, -0.1186990812, 0.1387943923, -0.093244046, -0.3279580474, -0.1222922429, -0.0531821586, 0.3685312569, -0.0001864742, -0.0081700413, 0.2316596359, 0.2695369422, 0.1328945011, 0.019614175, -0.1554874927, 0.0083820298, -0.1846471429, 0.1803586483, 0.0460975021, -0.1881257594, -0.2821442187, 0.0419534482, -0.0011369393, -0.1777225435, -0.5618310571, 0.0184510183, -0.4612646699, -0.2686641812, -0.2251046002, 0.4086784422, 0.1059863046, -0.0596174821, 0.059523955, 0.0867205784, 0.0746406838, -0.0934038907, -0.2141726166, 0.2236483544, -0.4218248427, 0.4128444791, -0.037665002, 0.8130556941, 0.3064289093, -0.068814002, -0.0068478249, -0.0082489178, 0.4584793746, -0.4559735954, -0.2210279107, 0.2777839303, -0.1431833655, -0.3980737031, 0.2701794803, 0.1300347, 0.4550915062, 0.1515550315, 0.0478061177, 0.2745587528, -0.3100079298, 0.3527383506, 0.1191461682, 0.1723788083, 0.0011768844, 0.0965539664, 0.0363406129, -0.29528898, 0.0445202552, -0.0182023961, 0.165315032, 0.0148820505, 0.0854096785, -0.3076309562, -0.7416741848, -0.0337137282, 0.0653303042, 0.0161202662, 0.1323535591, -0.0856468156, 0.1822296232, 0.0500865169, 0.784026444, 0.2417460382, -0.1469584405, -0.0631197467, -0.0090910196, -0.2243029922, 0.0502408296, -0.3604031801, -0.007772774, 0.526722014, 0.6359655261, -0.3379250467, -0.0449703708, 0.1372142732, 0.3818018138, -0.1095815524, 0.0351184495, -0.4170680046, -0.071457468, -0.2245296091, 0.1731091142, 0.082572639, 0.0398779623, -0.1176660657, -0.1058454439, 0.1136167049, -0.0607748404, 0.3254384398, 0.2567198873, 0.3178473413, -0.3010823429, 0.3417424858, -0.0462817103, 0.1264616102, 0.3970064223, 0.27151981, -0.2576495707, -0.2769012451, 0.2349772006, -0.1083864123, 0.3079812825, 0.5227629542, -0.0646283701, 0.1311265975, 0.1553812772, 0.4302622974, -0.4125353396, 0.5151010156, 0.5527089834, 0.0177976806, -0.4765746593, -0.246936053, 0.4360093772, 0.1092833951, 0.1275291443, 0.2105268389, 0.2606105804, -0.3030821979, 0.2701165378, -0.0946195871, 1.0859624147, -0.2421153635, 0.5881171227, 0.121281907, 0.2371955067, 0.5970579386, -0.2419919074, 0.156325385, -0.3379870653, -0.1313242763, 0.1505069882, 0.0553211235, -0.1317778677, 0.0399058498, -0.1674170345, 0.2230981886, -0.080075711, 0.1945082545, -0.2192200869, 0.3541292548, 0.0505176187, -0.3207403123, -0.2754777074, -0.0320474096, -0.0303048734, 0.0507147349, -0.1687883139, 0.0587947294, 0.0405654497, -0.299140811, -0.3170066476, -0.1916313469, -0.0658526272, 0.0150365224, 0.1493943334, -0.3508225977, 0.2959384322, 0.0511825867, 0.2471512407, 0.6219083071, -0.2682356536, 0.0588833801, -0.2696532607, 0.0439973027, -0.0632774904, -0.0463333465, -0.0081133349, 0.0676459, 0.0005965482, 0.0085470974, -0.0352825001, 0.2803080976, -0.3483646214, -0.1616435051, 0.4436450303, -0.4676162601, -0.0234427862, -0.1549752355, -0.1121088415, -0.1517966986, 0.0233199187, 0.1797082722, -0.2624879181, 0.0978793278, 0.0117118601, -0.3891355395, -0.2371120006, 0.2602457702, 0.2394697368, 0.0908641368, 0.6803624034, 0.3069347739, -0.0432923436, -0.0754632354, 0.3743822575, 0.4730663002, -0.4497232735, 0.3170528114, 0.1860167086, -0.0346311554, 0.0334120616, 0.1253685355, 0.2458350509, -0.3215657771, -0.1962846518, -0.042849645, -0.4025847912, 0.0923332125, -0.0428918563, 0.1559309959, 0.1785845459, 0.2970408797, -0.0137361977, 0.1401787698, -0.1373618096, 0.1233334467, -0.0231052414, 0.0687612146, -0.1933575273, -0.0587358363, 0.2272242308, -0.1636864692, -0.0683895424, 0.2042645961, 0.0142690977, -0.1004518121, -0.1986789703, 0.1495774239, 0.0027417403, -0.0232981835, 0.1306258738, 0.0538231209, -0.1501659155, -0.2443068177, 0.4213885665, 0.1724332869, 0.1414135844, -0.1392629743, 0.1098976135, -0.1006515399, -0.0634013489, -0.0140845794, 0.1469548792, 0.2605260015, 0.0540862195, 0.1588279456, 0.315770179, -0.0877614245, -0.1094086021, 0.1993462592, 0.1971241087, 0.1085844263, 0.0951880217, -0.2654798031, -0.0809264779, 0.0378720835, 0.2864856422, 0.4713864326, -0.2842045128, -0.1716523319, 0.3851938546, 0.1027001739, -0.0477529056, -0.1189642623, -0.1335845292, -0.2094620615, -0.1395511478, 0.2914471924, -0.0526711643, 0.0205771588, -0.1172218621, 0.1852545887, -0.106366083, 0.1524032354, -0.0206126105, 0.6539321542, 0.0152210752, 0.0670526996, 0.1786475331, 0.068859458, 0.2759256661, 0.8238028288, 0.1972070783, 0.1680948883, -0.3683772981, 0.0733842924, -0.2112162411, -0.4943949282, -0.4449978471, 0.1355960518, -0.1487524211, 0.280988425, -0.1661432087, 0.5747612715, -0.1352190822, -0.2540165186, -0.1453140974, -0.0783657208, -0.2735461593, -0.1423631459, 0.2345377207, -0.1449484229, 0.1949322373, 0.2462967038, -0.1218231693, 0.0105040791, -0.0223569106, 0.0733818412, -0.1523847729, 0.0285171755, -0.1688953787, 0.1849361211, 0.0798941627, -0.2207341641, 0.2122033089, -0.0599284247, 0.0100177871, -0.2495433986, 0.335771203, 0.4979708791, 0.3848266006, -0.2373090982, 0.2271019965, 0.1799068004, 0.0169183146, -0.0835808963, 0.0812608525, 0.2790589035, 0.1057370305, 0.0313190185, -0.0387335941, -0.1393173486, -0.0649554133, 0.1780900955, 0.129725486, -0.2238085717, 0.2088001668, -0.1784383804, -0.1754205525, -0.249566406, 0.0288151875, -0.7493741512, 0.5085183978, 0.5131713152, -0.0313963853, 0.1146011427, -0.0797063857, -0.0068543563, -0.1509417146, 0.5040616989, 0.464061141, -0.010310784, -0.3956052661, 0.0211505573, -0.3162699938, 0.2524132729, -0.3745409548, 0.3190288246, -0.1406808943, -0.0834926739, -0.0082903104, -0.1462577283, -0.0114826793, -0.2426194698, -0.6652166247, 0.1791586429, -0.1702089757, -0.2547817826, -0.2493761927, 0.0223901458, -0.0184741523, -0.2822555602, 0.4183262289, -0.0032186299, -0.1322530955, -0.0118235145, 0.2694912255, -0.2186586112, 0.1853107512, 0.2665772438, 0.2303337455, 0.0351794846, 0.0351753421, -0.2640856504, -0.306171, 0.1012732163, -0.0681264624, 0.15140751, 0.2569338679, 0.3529637456, -0.3432303369, -0.2458407134, -0.3924255967, 0.162088424, 0.3589940071, -0.131667316, -0.2357919365, 0.0762177706, -0.1069594994, -0.0141405286, 0.0605247803, 0.4861752093, -0.128447935, -0.080544509, -0.3727778494, -0.2169010788, 0.4692784846, -0.2248282135, -0.4343773425, -0.23054111, 0.0410190858, 0.2724100947, -0.2714160979, -0.8018814921, 0.1316689402, 0.1668116003, -0.0057345242, -0.5056574941, 0.1350082457, -0.0870554522, -0.1299731433, -0.1699073762, 0.742105484, 0.0822324529, -0.2132929564, 0.4542504251, -0.2582866549 ]
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.444955796, -0.422475934, -0.0815042406, 0.4179416001, 0.5046889186, 0.1244978011, 0.128145501, 0.213996619, 0.2786701918, 0.0013543622, 0.0727131665, -0.1104613468, -0.2351616621, 0.0972074568, 0.2837480903, -0.040581163, -0.123862505, -0.0028828436, -0.4859333932, 0.0390386805, -0.2367140204, 0.1167635545, -0.1118449569, -0.0652595162, -0.3488697708, -0.0671072528, -0.1394527107, 0.0584428981, -0.3605147302, -0.2884310782, 0.3591672778, 0.0484930612, 0.2195618898, 0.4216262698, -0.0001045874, -0.0344252549, 0.2609169483, -0.110332109, -0.1643059105, -0.3919685185, -0.3435015678, -0.1982591897, -0.0863412768, -0.0891986042, -0.0184501708, -0.1176215559, -0.1129943058, -0.342515707, 0.2524400055, 0.354021579, 0.3467803299, 0.2697255611, 0.3545667529, -0.1914295703, 0.1382766068, 0.1699798852, 0.0555041172, 0.1284030676, -0.0070464844, -0.1400783807, 0.1166839004, 0.1394857615, -0.0372346826, 0.2416530401, 0.1042876989, -0.1586449593, 0.0307699665, -0.2549282908, 0.2687596977, 0.139204964, 0.3950155973, -0.1157426834, -0.1314076334, 0.1513415277, 0.0650623664, -0.5738539696, 0.2200946212, 0.5009623766, -0.1863728911, 0.1921612322, -0.271476686, -0.0870953351, 0.0238120221, 0.1413063705, -0.2197029144, 0.2921699584, -0.2135500014, 0.0183896907, 0.1849010587, -0.1017094776, 0.0880926922, -0.0139019471, 0.1450838298, 0.2526479959, -0.2700490355, 0.1261819005, -0.1145767197, 0.1292573959, 0.0806543529, 0.0086125452, -0.2520153522, -0.1507218927, 0.2881469429, -0.0259476081, 0.0269002281, 0.1888409108, -0.2194878608, 0.0834904164, 0.0834250152, 0.1954321116, -0.0369621813, -0.0546254143, -0.3145233989, -0.2925896943, 0.0326478556, -0.0937114656, 0.1151881367, 0.0685740262, -0.2826320827, 0.0161391161, 0.0049900436, -0.1779202223, 0.0023905498, 0.3310003579, -0.2150158286, 0.1485759169, 0.2978155613, 0.0600116774, -0.0970929116, -0.1061486602, -0.2628638148, -0.0803783983, -0.1983226538, -0.0564075895, 0.305149436, -0.0921545327, 0.376110673, 0.0229628645, -0.1797792912, -0.1802679151, 0.0199735388, -0.1830588728, 0.1112452596, 0.4338181019, 0.0693689585, 0.2375739664, 0.071880579, 0.2547795177, -0.0013333596, 0.2246186435, -0.0462480709, -0.458791405, 0.1238832697, 0.3703134358, -0.1037133709, -0.1154195741, 0.0248288773, -0.1448108554, 0.0704497322, 0.2599557638, -0.1440332532, -0.2033017278, -0.1653171182, -0.2190620601, 0.5277349949, 0.3939634562, 0.0342417657, -0.0421030819, -0.4067509472, -0.2453194857, 0.3608447313, 0.2823581696, 0.0014633811, 0.1401391625, -0.3047562838, 0.0974315107, 0.2519399524, -0.2148153931, -0.2565931678, 0.2118156552, -0.2131187767, -0.0246801134, -0.0519018918, 0.0910042226, 0.0106452685, 0.0145031307, 0.2670853138, 0.1857901812, -0.3312120438, 0.0249923058, -0.1970982403, -0.3113334477, 0.4462006688, 0.2143394351, 0.2483338118, -0.0707217604, 0.0157012697, 0.1144669726, 0.3708968461, 0.2580590248, 0.0792703852, -0.0338329338, 0.2125308365, 0.0079511832, -0.2015177161, -0.1089141592, -0.2836966217, 0.1032906771, 0.2451007813, -0.0778650865, 0.0508960895, -0.0072361077, -0.4273626804, 0.0413815007, -0.1689582914, -0.1493411809, 0.1657439172, -0.0761238113, 0.1448944509, -0.049294997, -0.0764246657, -0.051881697, -0.2385362834, 0.0705095455, 0.1058795452, -0.0204060134, -0.3056635261, -0.0091244727, 0.2450970113, -0.0581193753, 0.1331100017, -0.037236765, -0.1354188919, 0.2523601353, 0.1233304217, 0.252803266, -0.0802925602, 0.0251824837, 0.1523815244, -0.4525060654, 0.0430598333, 0.0419444256, 0.104407154, -0.1576235741, 0.2183500081, -0.0314420164, -0.0910327658, 0.0418949239, 0.1744563282, 0.1563684493, 0.1477836668, -0.024936229, 0.0901830792, -0.1331830919, 0.3215937912, -0.0938106105, 0.252617836, -0.0654187724, -0.0649181753, -0.1171572283, 0.4020732641, 0.1520849615, 0.0896183699, 0.0442311056, -0.3025978804, 0.0285022091, -0.2157821059, 0.3114796281, 0.4959138632, 0.1446498185, 0.163953498, 0.1199491397, 0.1569378674, -0.2816538811, 0.431047678, -0.0401026234, 0.2351524234, 0.2522004843, -0.1961639374, -0.0563998967, -0.2167148441, 0.2778973281, 0.0175765492, 0.207811445, -0.1578263044, -0.2426184416, -0.2548193336, -0.0673512965, -0.4623292685, -0.5436559916, -0.2178744227, -0.132128641, -0.238299638, 0.0240339357, -0.0367043018, 0.1426421702, -0.0420636944, -0.1025993526, 0.0817945376, 0.1268721521, 0.0026956676, -0.05342751, -0.0635397881, 0.1841251105, 0.2524006069, -0.3535847068, 0.5754957199, -0.3072551191, 0.0299869347, -0.2428166419, -0.1333232373, -0.0243882202, -0.0370056741, 0.086750038, 0.370372653, 0.3781492114, 0.258934617, -0.035577409, 0.3693836331, -0.2827511728, -0.0627757981, -0.1214669421, 0.122573562, 0.0374439657, -0.2173155695, -0.5624726415, -0.4598293602, -0.4110196233, -0.091702804, 0.0304595437, 0.1562967747, 0.1512022465, 0.0725564882, 0.0382239521, 0.1439448297, -0.0554898381, -0.327763468, -0.3739010096, 0.3905155361, -0.2670379281, -0.4456061721, 0.298694998, 0.0598830953, 0.4613805711, 0.2046915144, -0.4112803936, 0.3908862472, -0.1190446019, -0.0669099689, 0.0473833717, 0.1677641422, 0.1566011012, -0.041988574, -0.1558275819, -0.1271509677, -0.1122653112, -0.191848129, -0.198319301, 0.5375467539, -0.1967828572, 0.3370720744, 0.0668314472, 0.713924408, 0.1417643428, -0.1678291559, 0.2005021721, -0.1050598249, 0.1060319096, 0.1251529306, -0.4757870138, 0.100927107, -0.1338581443, 0.1713407338, 0.1957197189, 0.0078041498, 0.1225349754, -0.2567453384, 0.0096982466, -0.2643204927, -0.2460105717, 0.0622867607, 0.0964219421, 0.4988242984, 0.1776274741, 0.0379241854, -0.0200699419, -0.0173670389, -0.0130746467, 0.3110690415, 0.1599544138, 0.1306658387, 0.126027897, -0.0890350789, -0.3551561534, 0.0651445538, -0.0090180188, 0.4483256042, -0.0488913096, -0.1861806214, -0.0250150524, -0.0229499359, 0.5050634742, 0.1352037787, 0.2418664247, -0.0990693346, -0.1132145822, -0.3881945908, -0.0088245329, -0.0477997735, -0.0792358667, 0.1792105883, 0.0337591544, -0.2113888711, -0.1805662364, 0.3363737166, 0.1965858638, -0.2405357957, -0.3452708423, -0.2148286849, -0.3769048154, -0.3758882582, -0.0632986054, 0.0156026315, 0.2370369881, -0.2710612714, -0.0545757599, 0.0127764363, -0.0314766057, 0.0812896788, -0.0627887473, 0.2074972987, 0.017050419, 0.3276122212, 0.2472559959, 0.2483446449, 0.3023763001, 0.449973911, -0.0790660009, 0.0300897211, -0.0450308658, -0.0318384767, 0.1685842127, 0.0883090198, -0.1288236827, 0.0313172825, 0.3365076482, 0.1797915548, -0.5687052608, 0.1187113151, 0.4142958522, -0.0442775972, -0.2248914838, -0.2964837849, 0.1844127327, 0.0234357491, 0.1980578899, 0.224012509, 0.0846088901, -0.1026004106, -0.3729057014, 0.0741109475, 0.7303834558, 0.0040985397, -0.0063373647, 0.0541395433, -0.245798856, 0.0493164957, 0.1965431124, 0.0595953278, -0.2025649995, 0.0823459998, 0.0715469792, -0.1753579974, 0.0899460763, 0.1638876051, -0.2038239837, 0.1945637465, -0.0903946012, 0.3699929714, 0.1237478778, 0.2732432187, -0.2995001674, -0.0765025467, -0.1843225211, 0.2496201247, -0.1579499245, 0.5097189546, -0.2337877154, -0.0218786784, 0.2522152066, -0.3380150199, -0.33483693, -0.0194521416, -0.6515513062, 0.1543285251, -0.2069598138, 0.054442551, 0.2665857971, 0.0717396289, 0.0452234671, 0.3972820938, -0.1099757329, 0.1481290907, -0.2182463557, -0.1837649941, -0.1499443203, 0.1043706685, 0.0388211086, -0.2055921108, -0.242231667, -0.0304814093, -0.0293190926, 0.1018592268, 0.1618237197, -0.0849091709, 0.2629013956, -0.1588940024, -0.1314070374, -0.0529143997, -0.0808757022, -0.1313953102, 0.239168033, 0.0814330801, -0.1059007123, 0.3598031998, 0.1204868481, -0.0357931554, -0.1756919324, 0.41828987, -0.1213940457, 0.0133033376, 0.400534153, 0.281683594, -0.1847718209, -0.4077315331, 0.0011175431, -0.2280673981, -0.2547612488, 0.2138407528, 0.1572360396, 0.2700096071, -0.0490146726, 0.1123870015, 0.2817121446, -0.2257378697, 0.1532506794, -0.4374893904, -0.3613285422, -0.0451178104, -0.0801633, 0.1647504717, -0.0839296207, 0.3007492125, 0.1840865761, 0.314989686, -0.3982215226, 0.1844785959, -0.0554510057, 0.0410331078, 0.4086414874, -0.1523311138, 0.2701259851, -0.0001028967, 0.2006691843, 0.0359569751, -0.3535064757, -0.2827749252, -0.178945601, 0.0797091648, 0.0645151362, -0.3131314814, 0.231557548, -0.2747567594, -0.1528651714, 0.1786976308, 0.047385782, 0.1009495258, -0.0488115773, 0.1522327214, 0.0410712659, 0.0885962471, -0.2128448188, 0.0700736046, -0.0519009531, 0.3334439099, 0.0832396895, -0.0684861094, 0.302578032, -0.1539804339, -0.0999628976, -0.2193926275, 0.1600323468, -0.2081462741, 0.3932883143, -0.18479985, -0.0114570074, 0.1140618399, 0.3009462059, 0.3354035914, -0.0449946523, 0.1436928958, 0.1372202635, 0.351652652, -0.4080492556, 0.1773457378, -0.1444799751, 0.0148588642, -0.0702790171, 0.0008020314, 0.0222214274, 0.037115857, -0.1540630162, 0.2090329975, 0.4429769218, -0.2516424358, 0.1013132259, 0.2070240974, -0.1443167031, 0.1512599736, 0.0537342131, 0.0145271998, 0.0511469953, 0.3569309413, -0.3507202268, 0.3197164834, -0.1200648993, 0.0391066223, 0.1024586931, -0.2943321466, -0.0493200794, 0.2626116276, -0.2538186312, -0.0398403406, -0.156964764, 0.2941785753, -0.117847912, 0.0144356145, -0.1574143618, 0.2634152174, -0.0796029419, -0.026671363, -0.2245195657, -0.1667222083, -0.2416516691, -0.008191295, 0.1487243474, -0.1794107556, 0.2924162745, 0.2659937739, -0.021894617, -0.5418662429, -0.1938092709, 0.1615172178, -0.06607081, -0.3661062717, 0.0962021127, 0.4262841344, -0.1073655412, 0.1673747748, 0.4767375886, 0.3966048956, 0.3219348788, -0.1423859, 0.0870660022, 0.057688009, -0.1005892307, -0.1879336983, 0.2051907182, 0.0790676773, -0.0485190228, 0.2097939104, 0.2723873556, -0.23740758, -0.1949217319, 0.0235633105, -0.1338631511, -0.0635163188, 0.2793864608, -0.13691248, 0.0430594645, -0.4318422079, 0.2305634916, -0.2953836918, 0.3097437024, 0.5763671398, -0.051644627, 0.1679922193, -0.2874497771, 0.1143856421, -0.0044967569, 0.6133635044, 0.2889219224, 0.0559177473, -0.4034257233, -0.4311851859, -0.7414612174, 0.0106797153, 0.0747841895, 0.0936223343, -0.1725308001, 0.0881133676, -0.0538027883, 0.0651676878, 0.2490346134, 0.0820932686, 0.1977205873, 0.0279188268, -0.0566338934, -0.0552847423, -0.2002749145, -0.0143971173, 0.1361456215, -0.3531440794, 0.1582951099, -0.3870319724, 0.1298183054, -0.4399925172, 0.2706381381, -0.0487776324, 0.2809253037, 0.2876271605, 0.1505338401, 0.3705018759, -0.0907473043, -0.0546107292, -0.1950241774, -0.0690792128, -0.1504271477, 0.1500718594, 0.2182560414, 0.17057845, -0.0018085666, -0.3095671833, -0.449508369, 0.0844905972, 0.0031598527, -0.0372305512, -0.1925239563, 0.0436136276, -0.1081487685, -0.1006140858, 0.3356009424, 0.2299156934, -0.1436968893, 0.0228844788, -0.3451316655, -0.3848655522, 0.446046412, -0.155934602, -0.2160532922, -0.2820883691, 0.0934077054, -0.0535831079, -0.0098092547, -0.4851158261, 0.3032739758, 0.2533227503, -0.0807626843, -0.2000132948, 0.4165594876, -0.1124196574, -0.0350136608, 0.0745052174, 0.4259935617, 0.0531243086, -0.2661992908, -0.2081851214, -0.1793358624 ]
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.444955796, -0.422475934, -0.0815042406, 0.4179416001, 0.5046889186, 0.1244978011, 0.128145501, 0.213996619, 0.2786701918, 0.0013543622, 0.0727131665, -0.1104613468, -0.2351616621, 0.0972074568, 0.2837480903, -0.040581163, -0.123862505, -0.0028828436, -0.4859333932, 0.0390386805, -0.2367140204, 0.1167635545, -0.1118449569, -0.0652595162, -0.3488697708, -0.0671072528, -0.1394527107, 0.0584428981, -0.3605147302, -0.2884310782, 0.3591672778, 0.0484930612, 0.2195618898, 0.4216262698, -0.0001045874, -0.0344252549, 0.2609169483, -0.110332109, -0.1643059105, -0.3919685185, -0.3435015678, -0.1982591897, -0.0863412768, -0.0891986042, -0.0184501708, -0.1176215559, -0.1129943058, -0.342515707, 0.2524400055, 0.354021579, 0.3467803299, 0.2697255611, 0.3545667529, -0.1914295703, 0.1382766068, 0.1699798852, 0.0555041172, 0.1284030676, -0.0070464844, -0.1400783807, 0.1166839004, 0.1394857615, -0.0372346826, 0.2416530401, 0.1042876989, -0.1586449593, 0.0307699665, -0.2549282908, 0.2687596977, 0.139204964, 0.3950155973, -0.1157426834, -0.1314076334, 0.1513415277, 0.0650623664, -0.5738539696, 0.2200946212, 0.5009623766, -0.1863728911, 0.1921612322, -0.271476686, -0.0870953351, 0.0238120221, 0.1413063705, -0.2197029144, 0.2921699584, -0.2135500014, 0.0183896907, 0.1849010587, -0.1017094776, 0.0880926922, -0.0139019471, 0.1450838298, 0.2526479959, -0.2700490355, 0.1261819005, -0.1145767197, 0.1292573959, 0.0806543529, 0.0086125452, -0.2520153522, -0.1507218927, 0.2881469429, -0.0259476081, 0.0269002281, 0.1888409108, -0.2194878608, 0.0834904164, 0.0834250152, 0.1954321116, -0.0369621813, -0.0546254143, -0.3145233989, -0.2925896943, 0.0326478556, -0.0937114656, 0.1151881367, 0.0685740262, -0.2826320827, 0.0161391161, 0.0049900436, -0.1779202223, 0.0023905498, 0.3310003579, -0.2150158286, 0.1485759169, 0.2978155613, 0.0600116774, -0.0970929116, -0.1061486602, -0.2628638148, -0.0803783983, -0.1983226538, -0.0564075895, 0.305149436, -0.0921545327, 0.376110673, 0.0229628645, -0.1797792912, -0.1802679151, 0.0199735388, -0.1830588728, 0.1112452596, 0.4338181019, 0.0693689585, 0.2375739664, 0.071880579, 0.2547795177, -0.0013333596, 0.2246186435, -0.0462480709, -0.458791405, 0.1238832697, 0.3703134358, -0.1037133709, -0.1154195741, 0.0248288773, -0.1448108554, 0.0704497322, 0.2599557638, -0.1440332532, -0.2033017278, -0.1653171182, -0.2190620601, 0.5277349949, 0.3939634562, 0.0342417657, -0.0421030819, -0.4067509472, -0.2453194857, 0.3608447313, 0.2823581696, 0.0014633811, 0.1401391625, -0.3047562838, 0.0974315107, 0.2519399524, -0.2148153931, -0.2565931678, 0.2118156552, -0.2131187767, -0.0246801134, -0.0519018918, 0.0910042226, 0.0106452685, 0.0145031307, 0.2670853138, 0.1857901812, -0.3312120438, 0.0249923058, -0.1970982403, -0.3113334477, 0.4462006688, 0.2143394351, 0.2483338118, -0.0707217604, 0.0157012697, 0.1144669726, 0.3708968461, 0.2580590248, 0.0792703852, -0.0338329338, 0.2125308365, 0.0079511832, -0.2015177161, -0.1089141592, -0.2836966217, 0.1032906771, 0.2451007813, -0.0778650865, 0.0508960895, -0.0072361077, -0.4273626804, 0.0413815007, -0.1689582914, -0.1493411809, 0.1657439172, -0.0761238113, 0.1448944509, -0.049294997, -0.0764246657, -0.051881697, -0.2385362834, 0.0705095455, 0.1058795452, -0.0204060134, -0.3056635261, -0.0091244727, 0.2450970113, -0.0581193753, 0.1331100017, -0.037236765, -0.1354188919, 0.2523601353, 0.1233304217, 0.252803266, -0.0802925602, 0.0251824837, 0.1523815244, -0.4525060654, 0.0430598333, 0.0419444256, 0.104407154, -0.1576235741, 0.2183500081, -0.0314420164, -0.0910327658, 0.0418949239, 0.1744563282, 0.1563684493, 0.1477836668, -0.024936229, 0.0901830792, -0.1331830919, 0.3215937912, -0.0938106105, 0.252617836, -0.0654187724, -0.0649181753, -0.1171572283, 0.4020732641, 0.1520849615, 0.0896183699, 0.0442311056, -0.3025978804, 0.0285022091, -0.2157821059, 0.3114796281, 0.4959138632, 0.1446498185, 0.163953498, 0.1199491397, 0.1569378674, -0.2816538811, 0.431047678, -0.0401026234, 0.2351524234, 0.2522004843, -0.1961639374, -0.0563998967, -0.2167148441, 0.2778973281, 0.0175765492, 0.207811445, -0.1578263044, -0.2426184416, -0.2548193336, -0.0673512965, -0.4623292685, -0.5436559916, -0.2178744227, -0.132128641, -0.238299638, 0.0240339357, -0.0367043018, 0.1426421702, -0.0420636944, -0.1025993526, 0.0817945376, 0.1268721521, 0.0026956676, -0.05342751, -0.0635397881, 0.1841251105, 0.2524006069, -0.3535847068, 0.5754957199, -0.3072551191, 0.0299869347, -0.2428166419, -0.1333232373, -0.0243882202, -0.0370056741, 0.086750038, 0.370372653, 0.3781492114, 0.258934617, -0.035577409, 0.3693836331, -0.2827511728, -0.0627757981, -0.1214669421, 0.122573562, 0.0374439657, -0.2173155695, -0.5624726415, -0.4598293602, -0.4110196233, -0.091702804, 0.0304595437, 0.1562967747, 0.1512022465, 0.0725564882, 0.0382239521, 0.1439448297, -0.0554898381, -0.327763468, -0.3739010096, 0.3905155361, -0.2670379281, -0.4456061721, 0.298694998, 0.0598830953, 0.4613805711, 0.2046915144, -0.4112803936, 0.3908862472, -0.1190446019, -0.0669099689, 0.0473833717, 0.1677641422, 0.1566011012, -0.041988574, -0.1558275819, -0.1271509677, -0.1122653112, -0.191848129, -0.198319301, 0.5375467539, -0.1967828572, 0.3370720744, 0.0668314472, 0.713924408, 0.1417643428, -0.1678291559, 0.2005021721, -0.1050598249, 0.1060319096, 0.1251529306, -0.4757870138, 0.100927107, -0.1338581443, 0.1713407338, 0.1957197189, 0.0078041498, 0.1225349754, -0.2567453384, 0.0096982466, -0.2643204927, -0.2460105717, 0.0622867607, 0.0964219421, 0.4988242984, 0.1776274741, 0.0379241854, -0.0200699419, -0.0173670389, -0.0130746467, 0.3110690415, 0.1599544138, 0.1306658387, 0.126027897, -0.0890350789, -0.3551561534, 0.0651445538, -0.0090180188, 0.4483256042, -0.0488913096, -0.1861806214, -0.0250150524, -0.0229499359, 0.5050634742, 0.1352037787, 0.2418664247, -0.0990693346, -0.1132145822, -0.3881945908, -0.0088245329, -0.0477997735, -0.0792358667, 0.1792105883, 0.0337591544, -0.2113888711, -0.1805662364, 0.3363737166, 0.1965858638, -0.2405357957, -0.3452708423, -0.2148286849, -0.3769048154, -0.3758882582, -0.0632986054, 0.0156026315, 0.2370369881, -0.2710612714, -0.0545757599, 0.0127764363, -0.0314766057, 0.0812896788, -0.0627887473, 0.2074972987, 0.017050419, 0.3276122212, 0.2472559959, 0.2483446449, 0.3023763001, 0.449973911, -0.0790660009, 0.0300897211, -0.0450308658, -0.0318384767, 0.1685842127, 0.0883090198, -0.1288236827, 0.0313172825, 0.3365076482, 0.1797915548, -0.5687052608, 0.1187113151, 0.4142958522, -0.0442775972, -0.2248914838, -0.2964837849, 0.1844127327, 0.0234357491, 0.1980578899, 0.224012509, 0.0846088901, -0.1026004106, -0.3729057014, 0.0741109475, 0.7303834558, 0.0040985397, -0.0063373647, 0.0541395433, -0.245798856, 0.0493164957, 0.1965431124, 0.0595953278, -0.2025649995, 0.0823459998, 0.0715469792, -0.1753579974, 0.0899460763, 0.1638876051, -0.2038239837, 0.1945637465, -0.0903946012, 0.3699929714, 0.1237478778, 0.2732432187, -0.2995001674, -0.0765025467, -0.1843225211, 0.2496201247, -0.1579499245, 0.5097189546, -0.2337877154, -0.0218786784, 0.2522152066, -0.3380150199, -0.33483693, -0.0194521416, -0.6515513062, 0.1543285251, -0.2069598138, 0.054442551, 0.2665857971, 0.0717396289, 0.0452234671, 0.3972820938, -0.1099757329, 0.1481290907, -0.2182463557, -0.1837649941, -0.1499443203, 0.1043706685, 0.0388211086, -0.2055921108, -0.242231667, -0.0304814093, -0.0293190926, 0.1018592268, 0.1618237197, -0.0849091709, 0.2629013956, -0.1588940024, -0.1314070374, -0.0529143997, -0.0808757022, -0.1313953102, 0.239168033, 0.0814330801, -0.1059007123, 0.3598031998, 0.1204868481, -0.0357931554, -0.1756919324, 0.41828987, -0.1213940457, 0.0133033376, 0.400534153, 0.281683594, -0.1847718209, -0.4077315331, 0.0011175431, -0.2280673981, -0.2547612488, 0.2138407528, 0.1572360396, 0.2700096071, -0.0490146726, 0.1123870015, 0.2817121446, -0.2257378697, 0.1532506794, -0.4374893904, -0.3613285422, -0.0451178104, -0.0801633, 0.1647504717, -0.0839296207, 0.3007492125, 0.1840865761, 0.314989686, -0.3982215226, 0.1844785959, -0.0554510057, 0.0410331078, 0.4086414874, -0.1523311138, 0.2701259851, -0.0001028967, 0.2006691843, 0.0359569751, -0.3535064757, -0.2827749252, -0.178945601, 0.0797091648, 0.0645151362, -0.3131314814, 0.231557548, -0.2747567594, -0.1528651714, 0.1786976308, 0.047385782, 0.1009495258, -0.0488115773, 0.1522327214, 0.0410712659, 0.0885962471, -0.2128448188, 0.0700736046, -0.0519009531, 0.3334439099, 0.0832396895, -0.0684861094, 0.302578032, -0.1539804339, -0.0999628976, -0.2193926275, 0.1600323468, -0.2081462741, 0.3932883143, -0.18479985, -0.0114570074, 0.1140618399, 0.3009462059, 0.3354035914, -0.0449946523, 0.1436928958, 0.1372202635, 0.351652652, -0.4080492556, 0.1773457378, -0.1444799751, 0.0148588642, -0.0702790171, 0.0008020314, 0.0222214274, 0.037115857, -0.1540630162, 0.2090329975, 0.4429769218, -0.2516424358, 0.1013132259, 0.2070240974, -0.1443167031, 0.1512599736, 0.0537342131, 0.0145271998, 0.0511469953, 0.3569309413, -0.3507202268, 0.3197164834, -0.1200648993, 0.0391066223, 0.1024586931, -0.2943321466, -0.0493200794, 0.2626116276, -0.2538186312, -0.0398403406, -0.156964764, 0.2941785753, -0.117847912, 0.0144356145, -0.1574143618, 0.2634152174, -0.0796029419, -0.026671363, -0.2245195657, -0.1667222083, -0.2416516691, -0.008191295, 0.1487243474, -0.1794107556, 0.2924162745, 0.2659937739, -0.021894617, -0.5418662429, -0.1938092709, 0.1615172178, -0.06607081, -0.3661062717, 0.0962021127, 0.4262841344, -0.1073655412, 0.1673747748, 0.4767375886, 0.3966048956, 0.3219348788, -0.1423859, 0.0870660022, 0.057688009, -0.1005892307, -0.1879336983, 0.2051907182, 0.0790676773, -0.0485190228, 0.2097939104, 0.2723873556, -0.23740758, -0.1949217319, 0.0235633105, -0.1338631511, -0.0635163188, 0.2793864608, -0.13691248, 0.0430594645, -0.4318422079, 0.2305634916, -0.2953836918, 0.3097437024, 0.5763671398, -0.051644627, 0.1679922193, -0.2874497771, 0.1143856421, -0.0044967569, 0.6133635044, 0.2889219224, 0.0559177473, -0.4034257233, -0.4311851859, -0.7414612174, 0.0106797153, 0.0747841895, 0.0936223343, -0.1725308001, 0.0881133676, -0.0538027883, 0.0651676878, 0.2490346134, 0.0820932686, 0.1977205873, 0.0279188268, -0.0566338934, -0.0552847423, -0.2002749145, -0.0143971173, 0.1361456215, -0.3531440794, 0.1582951099, -0.3870319724, 0.1298183054, -0.4399925172, 0.2706381381, -0.0487776324, 0.2809253037, 0.2876271605, 0.1505338401, 0.3705018759, -0.0907473043, -0.0546107292, -0.1950241774, -0.0690792128, -0.1504271477, 0.1500718594, 0.2182560414, 0.17057845, -0.0018085666, -0.3095671833, -0.449508369, 0.0844905972, 0.0031598527, -0.0372305512, -0.1925239563, 0.0436136276, -0.1081487685, -0.1006140858, 0.3356009424, 0.2299156934, -0.1436968893, 0.0228844788, -0.3451316655, -0.3848655522, 0.446046412, -0.155934602, -0.2160532922, -0.2820883691, 0.0934077054, -0.0535831079, -0.0098092547, -0.4851158261, 0.3032739758, 0.2533227503, -0.0807626843, -0.2000132948, 0.4165594876, -0.1124196574, -0.0350136608, 0.0745052174, 0.4259935617, 0.0531243086, -0.2661992908, -0.2081851214, -0.1793358624 ]
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.444955796, -0.422475934, -0.0815042406, 0.4179416001, 0.5046889186, 0.1244978011, 0.128145501, 0.213996619, 0.2786701918, 0.0013543622, 0.0727131665, -0.1104613468, -0.2351616621, 0.0972074568, 0.2837480903, -0.040581163, -0.123862505, -0.0028828436, -0.4859333932, 0.0390386805, -0.2367140204, 0.1167635545, -0.1118449569, -0.0652595162, -0.3488697708, -0.0671072528, -0.1394527107, 0.0584428981, -0.3605147302, -0.2884310782, 0.3591672778, 0.0484930612, 0.2195618898, 0.4216262698, -0.0001045874, -0.0344252549, 0.2609169483, -0.110332109, -0.1643059105, -0.3919685185, -0.3435015678, -0.1982591897, -0.0863412768, -0.0891986042, -0.0184501708, -0.1176215559, -0.1129943058, -0.342515707, 0.2524400055, 0.354021579, 0.3467803299, 0.2697255611, 0.3545667529, -0.1914295703, 0.1382766068, 0.1699798852, 0.0555041172, 0.1284030676, -0.0070464844, -0.1400783807, 0.1166839004, 0.1394857615, -0.0372346826, 0.2416530401, 0.1042876989, -0.1586449593, 0.0307699665, -0.2549282908, 0.2687596977, 0.139204964, 0.3950155973, -0.1157426834, -0.1314076334, 0.1513415277, 0.0650623664, -0.5738539696, 0.2200946212, 0.5009623766, -0.1863728911, 0.1921612322, -0.271476686, -0.0870953351, 0.0238120221, 0.1413063705, -0.2197029144, 0.2921699584, -0.2135500014, 0.0183896907, 0.1849010587, -0.1017094776, 0.0880926922, -0.0139019471, 0.1450838298, 0.2526479959, -0.2700490355, 0.1261819005, -0.1145767197, 0.1292573959, 0.0806543529, 0.0086125452, -0.2520153522, -0.1507218927, 0.2881469429, -0.0259476081, 0.0269002281, 0.1888409108, -0.2194878608, 0.0834904164, 0.0834250152, 0.1954321116, -0.0369621813, -0.0546254143, -0.3145233989, -0.2925896943, 0.0326478556, -0.0937114656, 0.1151881367, 0.0685740262, -0.2826320827, 0.0161391161, 0.0049900436, -0.1779202223, 0.0023905498, 0.3310003579, -0.2150158286, 0.1485759169, 0.2978155613, 0.0600116774, -0.0970929116, -0.1061486602, -0.2628638148, -0.0803783983, -0.1983226538, -0.0564075895, 0.305149436, -0.0921545327, 0.376110673, 0.0229628645, -0.1797792912, -0.1802679151, 0.0199735388, -0.1830588728, 0.1112452596, 0.4338181019, 0.0693689585, 0.2375739664, 0.071880579, 0.2547795177, -0.0013333596, 0.2246186435, -0.0462480709, -0.458791405, 0.1238832697, 0.3703134358, -0.1037133709, -0.1154195741, 0.0248288773, -0.1448108554, 0.0704497322, 0.2599557638, -0.1440332532, -0.2033017278, -0.1653171182, -0.2190620601, 0.5277349949, 0.3939634562, 0.0342417657, -0.0421030819, -0.4067509472, -0.2453194857, 0.3608447313, 0.2823581696, 0.0014633811, 0.1401391625, -0.3047562838, 0.0974315107, 0.2519399524, -0.2148153931, -0.2565931678, 0.2118156552, -0.2131187767, -0.0246801134, -0.0519018918, 0.0910042226, 0.0106452685, 0.0145031307, 0.2670853138, 0.1857901812, -0.3312120438, 0.0249923058, -0.1970982403, -0.3113334477, 0.4462006688, 0.2143394351, 0.2483338118, -0.0707217604, 0.0157012697, 0.1144669726, 0.3708968461, 0.2580590248, 0.0792703852, -0.0338329338, 0.2125308365, 0.0079511832, -0.2015177161, -0.1089141592, -0.2836966217, 0.1032906771, 0.2451007813, -0.0778650865, 0.0508960895, -0.0072361077, -0.4273626804, 0.0413815007, -0.1689582914, -0.1493411809, 0.1657439172, -0.0761238113, 0.1448944509, -0.049294997, -0.0764246657, -0.051881697, -0.2385362834, 0.0705095455, 0.1058795452, -0.0204060134, -0.3056635261, -0.0091244727, 0.2450970113, -0.0581193753, 0.1331100017, -0.037236765, -0.1354188919, 0.2523601353, 0.1233304217, 0.252803266, -0.0802925602, 0.0251824837, 0.1523815244, -0.4525060654, 0.0430598333, 0.0419444256, 0.104407154, -0.1576235741, 0.2183500081, -0.0314420164, -0.0910327658, 0.0418949239, 0.1744563282, 0.1563684493, 0.1477836668, -0.024936229, 0.0901830792, -0.1331830919, 0.3215937912, -0.0938106105, 0.252617836, -0.0654187724, -0.0649181753, -0.1171572283, 0.4020732641, 0.1520849615, 0.0896183699, 0.0442311056, -0.3025978804, 0.0285022091, -0.2157821059, 0.3114796281, 0.4959138632, 0.1446498185, 0.163953498, 0.1199491397, 0.1569378674, -0.2816538811, 0.431047678, -0.0401026234, 0.2351524234, 0.2522004843, -0.1961639374, -0.0563998967, -0.2167148441, 0.2778973281, 0.0175765492, 0.207811445, -0.1578263044, -0.2426184416, -0.2548193336, -0.0673512965, -0.4623292685, -0.5436559916, -0.2178744227, -0.132128641, -0.238299638, 0.0240339357, -0.0367043018, 0.1426421702, -0.0420636944, -0.1025993526, 0.0817945376, 0.1268721521, 0.0026956676, -0.05342751, -0.0635397881, 0.1841251105, 0.2524006069, -0.3535847068, 0.5754957199, -0.3072551191, 0.0299869347, -0.2428166419, -0.1333232373, -0.0243882202, -0.0370056741, 0.086750038, 0.370372653, 0.3781492114, 0.258934617, -0.035577409, 0.3693836331, -0.2827511728, -0.0627757981, -0.1214669421, 0.122573562, 0.0374439657, -0.2173155695, -0.5624726415, -0.4598293602, -0.4110196233, -0.091702804, 0.0304595437, 0.1562967747, 0.1512022465, 0.0725564882, 0.0382239521, 0.1439448297, -0.0554898381, -0.327763468, -0.3739010096, 0.3905155361, -0.2670379281, -0.4456061721, 0.298694998, 0.0598830953, 0.4613805711, 0.2046915144, -0.4112803936, 0.3908862472, -0.1190446019, -0.0669099689, 0.0473833717, 0.1677641422, 0.1566011012, -0.041988574, -0.1558275819, -0.1271509677, -0.1122653112, -0.191848129, -0.198319301, 0.5375467539, -0.1967828572, 0.3370720744, 0.0668314472, 0.713924408, 0.1417643428, -0.1678291559, 0.2005021721, -0.1050598249, 0.1060319096, 0.1251529306, -0.4757870138, 0.100927107, -0.1338581443, 0.1713407338, 0.1957197189, 0.0078041498, 0.1225349754, -0.2567453384, 0.0096982466, -0.2643204927, -0.2460105717, 0.0622867607, 0.0964219421, 0.4988242984, 0.1776274741, 0.0379241854, -0.0200699419, -0.0173670389, -0.0130746467, 0.3110690415, 0.1599544138, 0.1306658387, 0.126027897, -0.0890350789, -0.3551561534, 0.0651445538, -0.0090180188, 0.4483256042, -0.0488913096, -0.1861806214, -0.0250150524, -0.0229499359, 0.5050634742, 0.1352037787, 0.2418664247, -0.0990693346, -0.1132145822, -0.3881945908, -0.0088245329, -0.0477997735, -0.0792358667, 0.1792105883, 0.0337591544, -0.2113888711, -0.1805662364, 0.3363737166, 0.1965858638, -0.2405357957, -0.3452708423, -0.2148286849, -0.3769048154, -0.3758882582, -0.0632986054, 0.0156026315, 0.2370369881, -0.2710612714, -0.0545757599, 0.0127764363, -0.0314766057, 0.0812896788, -0.0627887473, 0.2074972987, 0.017050419, 0.3276122212, 0.2472559959, 0.2483446449, 0.3023763001, 0.449973911, -0.0790660009, 0.0300897211, -0.0450308658, -0.0318384767, 0.1685842127, 0.0883090198, -0.1288236827, 0.0313172825, 0.3365076482, 0.1797915548, -0.5687052608, 0.1187113151, 0.4142958522, -0.0442775972, -0.2248914838, -0.2964837849, 0.1844127327, 0.0234357491, 0.1980578899, 0.224012509, 0.0846088901, -0.1026004106, -0.3729057014, 0.0741109475, 0.7303834558, 0.0040985397, -0.0063373647, 0.0541395433, -0.245798856, 0.0493164957, 0.1965431124, 0.0595953278, -0.2025649995, 0.0823459998, 0.0715469792, -0.1753579974, 0.0899460763, 0.1638876051, -0.2038239837, 0.1945637465, -0.0903946012, 0.3699929714, 0.1237478778, 0.2732432187, -0.2995001674, -0.0765025467, -0.1843225211, 0.2496201247, -0.1579499245, 0.5097189546, -0.2337877154, -0.0218786784, 0.2522152066, -0.3380150199, -0.33483693, -0.0194521416, -0.6515513062, 0.1543285251, -0.2069598138, 0.054442551, 0.2665857971, 0.0717396289, 0.0452234671, 0.3972820938, -0.1099757329, 0.1481290907, -0.2182463557, -0.1837649941, -0.1499443203, 0.1043706685, 0.0388211086, -0.2055921108, -0.242231667, -0.0304814093, -0.0293190926, 0.1018592268, 0.1618237197, -0.0849091709, 0.2629013956, -0.1588940024, -0.1314070374, -0.0529143997, -0.0808757022, -0.1313953102, 0.239168033, 0.0814330801, -0.1059007123, 0.3598031998, 0.1204868481, -0.0357931554, -0.1756919324, 0.41828987, -0.1213940457, 0.0133033376, 0.400534153, 0.281683594, -0.1847718209, -0.4077315331, 0.0011175431, -0.2280673981, -0.2547612488, 0.2138407528, 0.1572360396, 0.2700096071, -0.0490146726, 0.1123870015, 0.2817121446, -0.2257378697, 0.1532506794, -0.4374893904, -0.3613285422, -0.0451178104, -0.0801633, 0.1647504717, -0.0839296207, 0.3007492125, 0.1840865761, 0.314989686, -0.3982215226, 0.1844785959, -0.0554510057, 0.0410331078, 0.4086414874, -0.1523311138, 0.2701259851, -0.0001028967, 0.2006691843, 0.0359569751, -0.3535064757, -0.2827749252, -0.178945601, 0.0797091648, 0.0645151362, -0.3131314814, 0.231557548, -0.2747567594, -0.1528651714, 0.1786976308, 0.047385782, 0.1009495258, -0.0488115773, 0.1522327214, 0.0410712659, 0.0885962471, -0.2128448188, 0.0700736046, -0.0519009531, 0.3334439099, 0.0832396895, -0.0684861094, 0.302578032, -0.1539804339, -0.0999628976, -0.2193926275, 0.1600323468, -0.2081462741, 0.3932883143, -0.18479985, -0.0114570074, 0.1140618399, 0.3009462059, 0.3354035914, -0.0449946523, 0.1436928958, 0.1372202635, 0.351652652, -0.4080492556, 0.1773457378, -0.1444799751, 0.0148588642, -0.0702790171, 0.0008020314, 0.0222214274, 0.037115857, -0.1540630162, 0.2090329975, 0.4429769218, -0.2516424358, 0.1013132259, 0.2070240974, -0.1443167031, 0.1512599736, 0.0537342131, 0.0145271998, 0.0511469953, 0.3569309413, -0.3507202268, 0.3197164834, -0.1200648993, 0.0391066223, 0.1024586931, -0.2943321466, -0.0493200794, 0.2626116276, -0.2538186312, -0.0398403406, -0.156964764, 0.2941785753, -0.117847912, 0.0144356145, -0.1574143618, 0.2634152174, -0.0796029419, -0.026671363, -0.2245195657, -0.1667222083, -0.2416516691, -0.008191295, 0.1487243474, -0.1794107556, 0.2924162745, 0.2659937739, -0.021894617, -0.5418662429, -0.1938092709, 0.1615172178, -0.06607081, -0.3661062717, 0.0962021127, 0.4262841344, -0.1073655412, 0.1673747748, 0.4767375886, 0.3966048956, 0.3219348788, -0.1423859, 0.0870660022, 0.057688009, -0.1005892307, -0.1879336983, 0.2051907182, 0.0790676773, -0.0485190228, 0.2097939104, 0.2723873556, -0.23740758, -0.1949217319, 0.0235633105, -0.1338631511, -0.0635163188, 0.2793864608, -0.13691248, 0.0430594645, -0.4318422079, 0.2305634916, -0.2953836918, 0.3097437024, 0.5763671398, -0.051644627, 0.1679922193, -0.2874497771, 0.1143856421, -0.0044967569, 0.6133635044, 0.2889219224, 0.0559177473, -0.4034257233, -0.4311851859, -0.7414612174, 0.0106797153, 0.0747841895, 0.0936223343, -0.1725308001, 0.0881133676, -0.0538027883, 0.0651676878, 0.2490346134, 0.0820932686, 0.1977205873, 0.0279188268, -0.0566338934, -0.0552847423, -0.2002749145, -0.0143971173, 0.1361456215, -0.3531440794, 0.1582951099, -0.3870319724, 0.1298183054, -0.4399925172, 0.2706381381, -0.0487776324, 0.2809253037, 0.2876271605, 0.1505338401, 0.3705018759, -0.0907473043, -0.0546107292, -0.1950241774, -0.0690792128, -0.1504271477, 0.1500718594, 0.2182560414, 0.17057845, -0.0018085666, -0.3095671833, -0.449508369, 0.0844905972, 0.0031598527, -0.0372305512, -0.1925239563, 0.0436136276, -0.1081487685, -0.1006140858, 0.3356009424, 0.2299156934, -0.1436968893, 0.0228844788, -0.3451316655, -0.3848655522, 0.446046412, -0.155934602, -0.2160532922, -0.2820883691, 0.0934077054, -0.0535831079, -0.0098092547, -0.4851158261, 0.3032739758, 0.2533227503, -0.0807626843, -0.2000132948, 0.4165594876, -0.1124196574, -0.0350136608, 0.0745052174, 0.4259935617, 0.0531243086, -0.2661992908, -0.2081851214, -0.1793358624 ]
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.444955796, -0.422475934, -0.0815042406, 0.4179416001, 0.5046889186, 0.1244978011, 0.128145501, 0.213996619, 0.2786701918, 0.0013543622, 0.0727131665, -0.1104613468, -0.2351616621, 0.0972074568, 0.2837480903, -0.040581163, -0.123862505, -0.0028828436, -0.4859333932, 0.0390386805, -0.2367140204, 0.1167635545, -0.1118449569, -0.0652595162, -0.3488697708, -0.0671072528, -0.1394527107, 0.0584428981, -0.3605147302, -0.2884310782, 0.3591672778, 0.0484930612, 0.2195618898, 0.4216262698, -0.0001045874, -0.0344252549, 0.2609169483, -0.110332109, -0.1643059105, -0.3919685185, -0.3435015678, -0.1982591897, -0.0863412768, -0.0891986042, -0.0184501708, -0.1176215559, -0.1129943058, -0.342515707, 0.2524400055, 0.354021579, 0.3467803299, 0.2697255611, 0.3545667529, -0.1914295703, 0.1382766068, 0.1699798852, 0.0555041172, 0.1284030676, -0.0070464844, -0.1400783807, 0.1166839004, 0.1394857615, -0.0372346826, 0.2416530401, 0.1042876989, -0.1586449593, 0.0307699665, -0.2549282908, 0.2687596977, 0.139204964, 0.3950155973, -0.1157426834, -0.1314076334, 0.1513415277, 0.0650623664, -0.5738539696, 0.2200946212, 0.5009623766, -0.1863728911, 0.1921612322, -0.271476686, -0.0870953351, 0.0238120221, 0.1413063705, -0.2197029144, 0.2921699584, -0.2135500014, 0.0183896907, 0.1849010587, -0.1017094776, 0.0880926922, -0.0139019471, 0.1450838298, 0.2526479959, -0.2700490355, 0.1261819005, -0.1145767197, 0.1292573959, 0.0806543529, 0.0086125452, -0.2520153522, -0.1507218927, 0.2881469429, -0.0259476081, 0.0269002281, 0.1888409108, -0.2194878608, 0.0834904164, 0.0834250152, 0.1954321116, -0.0369621813, -0.0546254143, -0.3145233989, -0.2925896943, 0.0326478556, -0.0937114656, 0.1151881367, 0.0685740262, -0.2826320827, 0.0161391161, 0.0049900436, -0.1779202223, 0.0023905498, 0.3310003579, -0.2150158286, 0.1485759169, 0.2978155613, 0.0600116774, -0.0970929116, -0.1061486602, -0.2628638148, -0.0803783983, -0.1983226538, -0.0564075895, 0.305149436, -0.0921545327, 0.376110673, 0.0229628645, -0.1797792912, -0.1802679151, 0.0199735388, -0.1830588728, 0.1112452596, 0.4338181019, 0.0693689585, 0.2375739664, 0.071880579, 0.2547795177, -0.0013333596, 0.2246186435, -0.0462480709, -0.458791405, 0.1238832697, 0.3703134358, -0.1037133709, -0.1154195741, 0.0248288773, -0.1448108554, 0.0704497322, 0.2599557638, -0.1440332532, -0.2033017278, -0.1653171182, -0.2190620601, 0.5277349949, 0.3939634562, 0.0342417657, -0.0421030819, -0.4067509472, -0.2453194857, 0.3608447313, 0.2823581696, 0.0014633811, 0.1401391625, -0.3047562838, 0.0974315107, 0.2519399524, -0.2148153931, -0.2565931678, 0.2118156552, -0.2131187767, -0.0246801134, -0.0519018918, 0.0910042226, 0.0106452685, 0.0145031307, 0.2670853138, 0.1857901812, -0.3312120438, 0.0249923058, -0.1970982403, -0.3113334477, 0.4462006688, 0.2143394351, 0.2483338118, -0.0707217604, 0.0157012697, 0.1144669726, 0.3708968461, 0.2580590248, 0.0792703852, -0.0338329338, 0.2125308365, 0.0079511832, -0.2015177161, -0.1089141592, -0.2836966217, 0.1032906771, 0.2451007813, -0.0778650865, 0.0508960895, -0.0072361077, -0.4273626804, 0.0413815007, -0.1689582914, -0.1493411809, 0.1657439172, -0.0761238113, 0.1448944509, -0.049294997, -0.0764246657, -0.051881697, -0.2385362834, 0.0705095455, 0.1058795452, -0.0204060134, -0.3056635261, -0.0091244727, 0.2450970113, -0.0581193753, 0.1331100017, -0.037236765, -0.1354188919, 0.2523601353, 0.1233304217, 0.252803266, -0.0802925602, 0.0251824837, 0.1523815244, -0.4525060654, 0.0430598333, 0.0419444256, 0.104407154, -0.1576235741, 0.2183500081, -0.0314420164, -0.0910327658, 0.0418949239, 0.1744563282, 0.1563684493, 0.1477836668, -0.024936229, 0.0901830792, -0.1331830919, 0.3215937912, -0.0938106105, 0.252617836, -0.0654187724, -0.0649181753, -0.1171572283, 0.4020732641, 0.1520849615, 0.0896183699, 0.0442311056, -0.3025978804, 0.0285022091, -0.2157821059, 0.3114796281, 0.4959138632, 0.1446498185, 0.163953498, 0.1199491397, 0.1569378674, -0.2816538811, 0.431047678, -0.0401026234, 0.2351524234, 0.2522004843, -0.1961639374, -0.0563998967, -0.2167148441, 0.2778973281, 0.0175765492, 0.207811445, -0.1578263044, -0.2426184416, -0.2548193336, -0.0673512965, -0.4623292685, -0.5436559916, -0.2178744227, -0.132128641, -0.238299638, 0.0240339357, -0.0367043018, 0.1426421702, -0.0420636944, -0.1025993526, 0.0817945376, 0.1268721521, 0.0026956676, -0.05342751, -0.0635397881, 0.1841251105, 0.2524006069, -0.3535847068, 0.5754957199, -0.3072551191, 0.0299869347, -0.2428166419, -0.1333232373, -0.0243882202, -0.0370056741, 0.086750038, 0.370372653, 0.3781492114, 0.258934617, -0.035577409, 0.3693836331, -0.2827511728, -0.0627757981, -0.1214669421, 0.122573562, 0.0374439657, -0.2173155695, -0.5624726415, -0.4598293602, -0.4110196233, -0.091702804, 0.0304595437, 0.1562967747, 0.1512022465, 0.0725564882, 0.0382239521, 0.1439448297, -0.0554898381, -0.327763468, -0.3739010096, 0.3905155361, -0.2670379281, -0.4456061721, 0.298694998, 0.0598830953, 0.4613805711, 0.2046915144, -0.4112803936, 0.3908862472, -0.1190446019, -0.0669099689, 0.0473833717, 0.1677641422, 0.1566011012, -0.041988574, -0.1558275819, -0.1271509677, -0.1122653112, -0.191848129, -0.198319301, 0.5375467539, -0.1967828572, 0.3370720744, 0.0668314472, 0.713924408, 0.1417643428, -0.1678291559, 0.2005021721, -0.1050598249, 0.1060319096, 0.1251529306, -0.4757870138, 0.100927107, -0.1338581443, 0.1713407338, 0.1957197189, 0.0078041498, 0.1225349754, -0.2567453384, 0.0096982466, -0.2643204927, -0.2460105717, 0.0622867607, 0.0964219421, 0.4988242984, 0.1776274741, 0.0379241854, -0.0200699419, -0.0173670389, -0.0130746467, 0.3110690415, 0.1599544138, 0.1306658387, 0.126027897, -0.0890350789, -0.3551561534, 0.0651445538, -0.0090180188, 0.4483256042, -0.0488913096, -0.1861806214, -0.0250150524, -0.0229499359, 0.5050634742, 0.1352037787, 0.2418664247, -0.0990693346, -0.1132145822, -0.3881945908, -0.0088245329, -0.0477997735, -0.0792358667, 0.1792105883, 0.0337591544, -0.2113888711, -0.1805662364, 0.3363737166, 0.1965858638, -0.2405357957, -0.3452708423, -0.2148286849, -0.3769048154, -0.3758882582, -0.0632986054, 0.0156026315, 0.2370369881, -0.2710612714, -0.0545757599, 0.0127764363, -0.0314766057, 0.0812896788, -0.0627887473, 0.2074972987, 0.017050419, 0.3276122212, 0.2472559959, 0.2483446449, 0.3023763001, 0.449973911, -0.0790660009, 0.0300897211, -0.0450308658, -0.0318384767, 0.1685842127, 0.0883090198, -0.1288236827, 0.0313172825, 0.3365076482, 0.1797915548, -0.5687052608, 0.1187113151, 0.4142958522, -0.0442775972, -0.2248914838, -0.2964837849, 0.1844127327, 0.0234357491, 0.1980578899, 0.224012509, 0.0846088901, -0.1026004106, -0.3729057014, 0.0741109475, 0.7303834558, 0.0040985397, -0.0063373647, 0.0541395433, -0.245798856, 0.0493164957, 0.1965431124, 0.0595953278, -0.2025649995, 0.0823459998, 0.0715469792, -0.1753579974, 0.0899460763, 0.1638876051, -0.2038239837, 0.1945637465, -0.0903946012, 0.3699929714, 0.1237478778, 0.2732432187, -0.2995001674, -0.0765025467, -0.1843225211, 0.2496201247, -0.1579499245, 0.5097189546, -0.2337877154, -0.0218786784, 0.2522152066, -0.3380150199, -0.33483693, -0.0194521416, -0.6515513062, 0.1543285251, -0.2069598138, 0.054442551, 0.2665857971, 0.0717396289, 0.0452234671, 0.3972820938, -0.1099757329, 0.1481290907, -0.2182463557, -0.1837649941, -0.1499443203, 0.1043706685, 0.0388211086, -0.2055921108, -0.242231667, -0.0304814093, -0.0293190926, 0.1018592268, 0.1618237197, -0.0849091709, 0.2629013956, -0.1588940024, -0.1314070374, -0.0529143997, -0.0808757022, -0.1313953102, 0.239168033, 0.0814330801, -0.1059007123, 0.3598031998, 0.1204868481, -0.0357931554, -0.1756919324, 0.41828987, -0.1213940457, 0.0133033376, 0.400534153, 0.281683594, -0.1847718209, -0.4077315331, 0.0011175431, -0.2280673981, -0.2547612488, 0.2138407528, 0.1572360396, 0.2700096071, -0.0490146726, 0.1123870015, 0.2817121446, -0.2257378697, 0.1532506794, -0.4374893904, -0.3613285422, -0.0451178104, -0.0801633, 0.1647504717, -0.0839296207, 0.3007492125, 0.1840865761, 0.314989686, -0.3982215226, 0.1844785959, -0.0554510057, 0.0410331078, 0.4086414874, -0.1523311138, 0.2701259851, -0.0001028967, 0.2006691843, 0.0359569751, -0.3535064757, -0.2827749252, -0.178945601, 0.0797091648, 0.0645151362, -0.3131314814, 0.231557548, -0.2747567594, -0.1528651714, 0.1786976308, 0.047385782, 0.1009495258, -0.0488115773, 0.1522327214, 0.0410712659, 0.0885962471, -0.2128448188, 0.0700736046, -0.0519009531, 0.3334439099, 0.0832396895, -0.0684861094, 0.302578032, -0.1539804339, -0.0999628976, -0.2193926275, 0.1600323468, -0.2081462741, 0.3932883143, -0.18479985, -0.0114570074, 0.1140618399, 0.3009462059, 0.3354035914, -0.0449946523, 0.1436928958, 0.1372202635, 0.351652652, -0.4080492556, 0.1773457378, -0.1444799751, 0.0148588642, -0.0702790171, 0.0008020314, 0.0222214274, 0.037115857, -0.1540630162, 0.2090329975, 0.4429769218, -0.2516424358, 0.1013132259, 0.2070240974, -0.1443167031, 0.1512599736, 0.0537342131, 0.0145271998, 0.0511469953, 0.3569309413, -0.3507202268, 0.3197164834, -0.1200648993, 0.0391066223, 0.1024586931, -0.2943321466, -0.0493200794, 0.2626116276, -0.2538186312, -0.0398403406, -0.156964764, 0.2941785753, -0.117847912, 0.0144356145, -0.1574143618, 0.2634152174, -0.0796029419, -0.026671363, -0.2245195657, -0.1667222083, -0.2416516691, -0.008191295, 0.1487243474, -0.1794107556, 0.2924162745, 0.2659937739, -0.021894617, -0.5418662429, -0.1938092709, 0.1615172178, -0.06607081, -0.3661062717, 0.0962021127, 0.4262841344, -0.1073655412, 0.1673747748, 0.4767375886, 0.3966048956, 0.3219348788, -0.1423859, 0.0870660022, 0.057688009, -0.1005892307, -0.1879336983, 0.2051907182, 0.0790676773, -0.0485190228, 0.2097939104, 0.2723873556, -0.23740758, -0.1949217319, 0.0235633105, -0.1338631511, -0.0635163188, 0.2793864608, -0.13691248, 0.0430594645, -0.4318422079, 0.2305634916, -0.2953836918, 0.3097437024, 0.5763671398, -0.051644627, 0.1679922193, -0.2874497771, 0.1143856421, -0.0044967569, 0.6133635044, 0.2889219224, 0.0559177473, -0.4034257233, -0.4311851859, -0.7414612174, 0.0106797153, 0.0747841895, 0.0936223343, -0.1725308001, 0.0881133676, -0.0538027883, 0.0651676878, 0.2490346134, 0.0820932686, 0.1977205873, 0.0279188268, -0.0566338934, -0.0552847423, -0.2002749145, -0.0143971173, 0.1361456215, -0.3531440794, 0.1582951099, -0.3870319724, 0.1298183054, -0.4399925172, 0.2706381381, -0.0487776324, 0.2809253037, 0.2876271605, 0.1505338401, 0.3705018759, -0.0907473043, -0.0546107292, -0.1950241774, -0.0690792128, -0.1504271477, 0.1500718594, 0.2182560414, 0.17057845, -0.0018085666, -0.3095671833, -0.449508369, 0.0844905972, 0.0031598527, -0.0372305512, -0.1925239563, 0.0436136276, -0.1081487685, -0.1006140858, 0.3356009424, 0.2299156934, -0.1436968893, 0.0228844788, -0.3451316655, -0.3848655522, 0.446046412, -0.155934602, -0.2160532922, -0.2820883691, 0.0934077054, -0.0535831079, -0.0098092547, -0.4851158261, 0.3032739758, 0.2533227503, -0.0807626843, -0.2000132948, 0.4165594876, -0.1124196574, -0.0350136608, 0.0745052174, 0.4259935617, 0.0531243086, -0.2661992908, -0.2081851214, -0.1793358624 ]
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.444955796, -0.422475934, -0.0815042406, 0.4179416001, 0.5046889186, 0.1244978011, 0.128145501, 0.213996619, 0.2786701918, 0.0013543622, 0.0727131665, -0.1104613468, -0.2351616621, 0.0972074568, 0.2837480903, -0.040581163, -0.123862505, -0.0028828436, -0.4859333932, 0.0390386805, -0.2367140204, 0.1167635545, -0.1118449569, -0.0652595162, -0.3488697708, -0.0671072528, -0.1394527107, 0.0584428981, -0.3605147302, -0.2884310782, 0.3591672778, 0.0484930612, 0.2195618898, 0.4216262698, -0.0001045874, -0.0344252549, 0.2609169483, -0.110332109, -0.1643059105, -0.3919685185, -0.3435015678, -0.1982591897, -0.0863412768, -0.0891986042, -0.0184501708, -0.1176215559, -0.1129943058, -0.342515707, 0.2524400055, 0.354021579, 0.3467803299, 0.2697255611, 0.3545667529, -0.1914295703, 0.1382766068, 0.1699798852, 0.0555041172, 0.1284030676, -0.0070464844, -0.1400783807, 0.1166839004, 0.1394857615, -0.0372346826, 0.2416530401, 0.1042876989, -0.1586449593, 0.0307699665, -0.2549282908, 0.2687596977, 0.139204964, 0.3950155973, -0.1157426834, -0.1314076334, 0.1513415277, 0.0650623664, -0.5738539696, 0.2200946212, 0.5009623766, -0.1863728911, 0.1921612322, -0.271476686, -0.0870953351, 0.0238120221, 0.1413063705, -0.2197029144, 0.2921699584, -0.2135500014, 0.0183896907, 0.1849010587, -0.1017094776, 0.0880926922, -0.0139019471, 0.1450838298, 0.2526479959, -0.2700490355, 0.1261819005, -0.1145767197, 0.1292573959, 0.0806543529, 0.0086125452, -0.2520153522, -0.1507218927, 0.2881469429, -0.0259476081, 0.0269002281, 0.1888409108, -0.2194878608, 0.0834904164, 0.0834250152, 0.1954321116, -0.0369621813, -0.0546254143, -0.3145233989, -0.2925896943, 0.0326478556, -0.0937114656, 0.1151881367, 0.0685740262, -0.2826320827, 0.0161391161, 0.0049900436, -0.1779202223, 0.0023905498, 0.3310003579, -0.2150158286, 0.1485759169, 0.2978155613, 0.0600116774, -0.0970929116, -0.1061486602, -0.2628638148, -0.0803783983, -0.1983226538, -0.0564075895, 0.305149436, -0.0921545327, 0.376110673, 0.0229628645, -0.1797792912, -0.1802679151, 0.0199735388, -0.1830588728, 0.1112452596, 0.4338181019, 0.0693689585, 0.2375739664, 0.071880579, 0.2547795177, -0.0013333596, 0.2246186435, -0.0462480709, -0.458791405, 0.1238832697, 0.3703134358, -0.1037133709, -0.1154195741, 0.0248288773, -0.1448108554, 0.0704497322, 0.2599557638, -0.1440332532, -0.2033017278, -0.1653171182, -0.2190620601, 0.5277349949, 0.3939634562, 0.0342417657, -0.0421030819, -0.4067509472, -0.2453194857, 0.3608447313, 0.2823581696, 0.0014633811, 0.1401391625, -0.3047562838, 0.0974315107, 0.2519399524, -0.2148153931, -0.2565931678, 0.2118156552, -0.2131187767, -0.0246801134, -0.0519018918, 0.0910042226, 0.0106452685, 0.0145031307, 0.2670853138, 0.1857901812, -0.3312120438, 0.0249923058, -0.1970982403, -0.3113334477, 0.4462006688, 0.2143394351, 0.2483338118, -0.0707217604, 0.0157012697, 0.1144669726, 0.3708968461, 0.2580590248, 0.0792703852, -0.0338329338, 0.2125308365, 0.0079511832, -0.2015177161, -0.1089141592, -0.2836966217, 0.1032906771, 0.2451007813, -0.0778650865, 0.0508960895, -0.0072361077, -0.4273626804, 0.0413815007, -0.1689582914, -0.1493411809, 0.1657439172, -0.0761238113, 0.1448944509, -0.049294997, -0.0764246657, -0.051881697, -0.2385362834, 0.0705095455, 0.1058795452, -0.0204060134, -0.3056635261, -0.0091244727, 0.2450970113, -0.0581193753, 0.1331100017, -0.037236765, -0.1354188919, 0.2523601353, 0.1233304217, 0.252803266, -0.0802925602, 0.0251824837, 0.1523815244, -0.4525060654, 0.0430598333, 0.0419444256, 0.104407154, -0.1576235741, 0.2183500081, -0.0314420164, -0.0910327658, 0.0418949239, 0.1744563282, 0.1563684493, 0.1477836668, -0.024936229, 0.0901830792, -0.1331830919, 0.3215937912, -0.0938106105, 0.252617836, -0.0654187724, -0.0649181753, -0.1171572283, 0.4020732641, 0.1520849615, 0.0896183699, 0.0442311056, -0.3025978804, 0.0285022091, -0.2157821059, 0.3114796281, 0.4959138632, 0.1446498185, 0.163953498, 0.1199491397, 0.1569378674, -0.2816538811, 0.431047678, -0.0401026234, 0.2351524234, 0.2522004843, -0.1961639374, -0.0563998967, -0.2167148441, 0.2778973281, 0.0175765492, 0.207811445, -0.1578263044, -0.2426184416, -0.2548193336, -0.0673512965, -0.4623292685, -0.5436559916, -0.2178744227, -0.132128641, -0.238299638, 0.0240339357, -0.0367043018, 0.1426421702, -0.0420636944, -0.1025993526, 0.0817945376, 0.1268721521, 0.0026956676, -0.05342751, -0.0635397881, 0.1841251105, 0.2524006069, -0.3535847068, 0.5754957199, -0.3072551191, 0.0299869347, -0.2428166419, -0.1333232373, -0.0243882202, -0.0370056741, 0.086750038, 0.370372653, 0.3781492114, 0.258934617, -0.035577409, 0.3693836331, -0.2827511728, -0.0627757981, -0.1214669421, 0.122573562, 0.0374439657, -0.2173155695, -0.5624726415, -0.4598293602, -0.4110196233, -0.091702804, 0.0304595437, 0.1562967747, 0.1512022465, 0.0725564882, 0.0382239521, 0.1439448297, -0.0554898381, -0.327763468, -0.3739010096, 0.3905155361, -0.2670379281, -0.4456061721, 0.298694998, 0.0598830953, 0.4613805711, 0.2046915144, -0.4112803936, 0.3908862472, -0.1190446019, -0.0669099689, 0.0473833717, 0.1677641422, 0.1566011012, -0.041988574, -0.1558275819, -0.1271509677, -0.1122653112, -0.191848129, -0.198319301, 0.5375467539, -0.1967828572, 0.3370720744, 0.0668314472, 0.713924408, 0.1417643428, -0.1678291559, 0.2005021721, -0.1050598249, 0.1060319096, 0.1251529306, -0.4757870138, 0.100927107, -0.1338581443, 0.1713407338, 0.1957197189, 0.0078041498, 0.1225349754, -0.2567453384, 0.0096982466, -0.2643204927, -0.2460105717, 0.0622867607, 0.0964219421, 0.4988242984, 0.1776274741, 0.0379241854, -0.0200699419, -0.0173670389, -0.0130746467, 0.3110690415, 0.1599544138, 0.1306658387, 0.126027897, -0.0890350789, -0.3551561534, 0.0651445538, -0.0090180188, 0.4483256042, -0.0488913096, -0.1861806214, -0.0250150524, -0.0229499359, 0.5050634742, 0.1352037787, 0.2418664247, -0.0990693346, -0.1132145822, -0.3881945908, -0.0088245329, -0.0477997735, -0.0792358667, 0.1792105883, 0.0337591544, -0.2113888711, -0.1805662364, 0.3363737166, 0.1965858638, -0.2405357957, -0.3452708423, -0.2148286849, -0.3769048154, -0.3758882582, -0.0632986054, 0.0156026315, 0.2370369881, -0.2710612714, -0.0545757599, 0.0127764363, -0.0314766057, 0.0812896788, -0.0627887473, 0.2074972987, 0.017050419, 0.3276122212, 0.2472559959, 0.2483446449, 0.3023763001, 0.449973911, -0.0790660009, 0.0300897211, -0.0450308658, -0.0318384767, 0.1685842127, 0.0883090198, -0.1288236827, 0.0313172825, 0.3365076482, 0.1797915548, -0.5687052608, 0.1187113151, 0.4142958522, -0.0442775972, -0.2248914838, -0.2964837849, 0.1844127327, 0.0234357491, 0.1980578899, 0.224012509, 0.0846088901, -0.1026004106, -0.3729057014, 0.0741109475, 0.7303834558, 0.0040985397, -0.0063373647, 0.0541395433, -0.245798856, 0.0493164957, 0.1965431124, 0.0595953278, -0.2025649995, 0.0823459998, 0.0715469792, -0.1753579974, 0.0899460763, 0.1638876051, -0.2038239837, 0.1945637465, -0.0903946012, 0.3699929714, 0.1237478778, 0.2732432187, -0.2995001674, -0.0765025467, -0.1843225211, 0.2496201247, -0.1579499245, 0.5097189546, -0.2337877154, -0.0218786784, 0.2522152066, -0.3380150199, -0.33483693, -0.0194521416, -0.6515513062, 0.1543285251, -0.2069598138, 0.054442551, 0.2665857971, 0.0717396289, 0.0452234671, 0.3972820938, -0.1099757329, 0.1481290907, -0.2182463557, -0.1837649941, -0.1499443203, 0.1043706685, 0.0388211086, -0.2055921108, -0.242231667, -0.0304814093, -0.0293190926, 0.1018592268, 0.1618237197, -0.0849091709, 0.2629013956, -0.1588940024, -0.1314070374, -0.0529143997, -0.0808757022, -0.1313953102, 0.239168033, 0.0814330801, -0.1059007123, 0.3598031998, 0.1204868481, -0.0357931554, -0.1756919324, 0.41828987, -0.1213940457, 0.0133033376, 0.400534153, 0.281683594, -0.1847718209, -0.4077315331, 0.0011175431, -0.2280673981, -0.2547612488, 0.2138407528, 0.1572360396, 0.2700096071, -0.0490146726, 0.1123870015, 0.2817121446, -0.2257378697, 0.1532506794, -0.4374893904, -0.3613285422, -0.0451178104, -0.0801633, 0.1647504717, -0.0839296207, 0.3007492125, 0.1840865761, 0.314989686, -0.3982215226, 0.1844785959, -0.0554510057, 0.0410331078, 0.4086414874, -0.1523311138, 0.2701259851, -0.0001028967, 0.2006691843, 0.0359569751, -0.3535064757, -0.2827749252, -0.178945601, 0.0797091648, 0.0645151362, -0.3131314814, 0.231557548, -0.2747567594, -0.1528651714, 0.1786976308, 0.047385782, 0.1009495258, -0.0488115773, 0.1522327214, 0.0410712659, 0.0885962471, -0.2128448188, 0.0700736046, -0.0519009531, 0.3334439099, 0.0832396895, -0.0684861094, 0.302578032, -0.1539804339, -0.0999628976, -0.2193926275, 0.1600323468, -0.2081462741, 0.3932883143, -0.18479985, -0.0114570074, 0.1140618399, 0.3009462059, 0.3354035914, -0.0449946523, 0.1436928958, 0.1372202635, 0.351652652, -0.4080492556, 0.1773457378, -0.1444799751, 0.0148588642, -0.0702790171, 0.0008020314, 0.0222214274, 0.037115857, -0.1540630162, 0.2090329975, 0.4429769218, -0.2516424358, 0.1013132259, 0.2070240974, -0.1443167031, 0.1512599736, 0.0537342131, 0.0145271998, 0.0511469953, 0.3569309413, -0.3507202268, 0.3197164834, -0.1200648993, 0.0391066223, 0.1024586931, -0.2943321466, -0.0493200794, 0.2626116276, -0.2538186312, -0.0398403406, -0.156964764, 0.2941785753, -0.117847912, 0.0144356145, -0.1574143618, 0.2634152174, -0.0796029419, -0.026671363, -0.2245195657, -0.1667222083, -0.2416516691, -0.008191295, 0.1487243474, -0.1794107556, 0.2924162745, 0.2659937739, -0.021894617, -0.5418662429, -0.1938092709, 0.1615172178, -0.06607081, -0.3661062717, 0.0962021127, 0.4262841344, -0.1073655412, 0.1673747748, 0.4767375886, 0.3966048956, 0.3219348788, -0.1423859, 0.0870660022, 0.057688009, -0.1005892307, -0.1879336983, 0.2051907182, 0.0790676773, -0.0485190228, 0.2097939104, 0.2723873556, -0.23740758, -0.1949217319, 0.0235633105, -0.1338631511, -0.0635163188, 0.2793864608, -0.13691248, 0.0430594645, -0.4318422079, 0.2305634916, -0.2953836918, 0.3097437024, 0.5763671398, -0.051644627, 0.1679922193, -0.2874497771, 0.1143856421, -0.0044967569, 0.6133635044, 0.2889219224, 0.0559177473, -0.4034257233, -0.4311851859, -0.7414612174, 0.0106797153, 0.0747841895, 0.0936223343, -0.1725308001, 0.0881133676, -0.0538027883, 0.0651676878, 0.2490346134, 0.0820932686, 0.1977205873, 0.0279188268, -0.0566338934, -0.0552847423, -0.2002749145, -0.0143971173, 0.1361456215, -0.3531440794, 0.1582951099, -0.3870319724, 0.1298183054, -0.4399925172, 0.2706381381, -0.0487776324, 0.2809253037, 0.2876271605, 0.1505338401, 0.3705018759, -0.0907473043, -0.0546107292, -0.1950241774, -0.0690792128, -0.1504271477, 0.1500718594, 0.2182560414, 0.17057845, -0.0018085666, -0.3095671833, -0.449508369, 0.0844905972, 0.0031598527, -0.0372305512, -0.1925239563, 0.0436136276, -0.1081487685, -0.1006140858, 0.3356009424, 0.2299156934, -0.1436968893, 0.0228844788, -0.3451316655, -0.3848655522, 0.446046412, -0.155934602, -0.2160532922, -0.2820883691, 0.0934077054, -0.0535831079, -0.0098092547, -0.4851158261, 0.3032739758, 0.2533227503, -0.0807626843, -0.2000132948, 0.4165594876, -0.1124196574, -0.0350136608, 0.0745052174, 0.4259935617, 0.0531243086, -0.2661992908, -0.2081851214, -0.1793358624 ]
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.444955796, -0.422475934, -0.0815042406, 0.4179416001, 0.5046889186, 0.1244978011, 0.128145501, 0.213996619, 0.2786701918, 0.0013543622, 0.0727131665, -0.1104613468, -0.2351616621, 0.0972074568, 0.2837480903, -0.040581163, -0.123862505, -0.0028828436, -0.4859333932, 0.0390386805, -0.2367140204, 0.1167635545, -0.1118449569, -0.0652595162, -0.3488697708, -0.0671072528, -0.1394527107, 0.0584428981, -0.3605147302, -0.2884310782, 0.3591672778, 0.0484930612, 0.2195618898, 0.4216262698, -0.0001045874, -0.0344252549, 0.2609169483, -0.110332109, -0.1643059105, -0.3919685185, -0.3435015678, -0.1982591897, -0.0863412768, -0.0891986042, -0.0184501708, -0.1176215559, -0.1129943058, -0.342515707, 0.2524400055, 0.354021579, 0.3467803299, 0.2697255611, 0.3545667529, -0.1914295703, 0.1382766068, 0.1699798852, 0.0555041172, 0.1284030676, -0.0070464844, -0.1400783807, 0.1166839004, 0.1394857615, -0.0372346826, 0.2416530401, 0.1042876989, -0.1586449593, 0.0307699665, -0.2549282908, 0.2687596977, 0.139204964, 0.3950155973, -0.1157426834, -0.1314076334, 0.1513415277, 0.0650623664, -0.5738539696, 0.2200946212, 0.5009623766, -0.1863728911, 0.1921612322, -0.271476686, -0.0870953351, 0.0238120221, 0.1413063705, -0.2197029144, 0.2921699584, -0.2135500014, 0.0183896907, 0.1849010587, -0.1017094776, 0.0880926922, -0.0139019471, 0.1450838298, 0.2526479959, -0.2700490355, 0.1261819005, -0.1145767197, 0.1292573959, 0.0806543529, 0.0086125452, -0.2520153522, -0.1507218927, 0.2881469429, -0.0259476081, 0.0269002281, 0.1888409108, -0.2194878608, 0.0834904164, 0.0834250152, 0.1954321116, -0.0369621813, -0.0546254143, -0.3145233989, -0.2925896943, 0.0326478556, -0.0937114656, 0.1151881367, 0.0685740262, -0.2826320827, 0.0161391161, 0.0049900436, -0.1779202223, 0.0023905498, 0.3310003579, -0.2150158286, 0.1485759169, 0.2978155613, 0.0600116774, -0.0970929116, -0.1061486602, -0.2628638148, -0.0803783983, -0.1983226538, -0.0564075895, 0.305149436, -0.0921545327, 0.376110673, 0.0229628645, -0.1797792912, -0.1802679151, 0.0199735388, -0.1830588728, 0.1112452596, 0.4338181019, 0.0693689585, 0.2375739664, 0.071880579, 0.2547795177, -0.0013333596, 0.2246186435, -0.0462480709, -0.458791405, 0.1238832697, 0.3703134358, -0.1037133709, -0.1154195741, 0.0248288773, -0.1448108554, 0.0704497322, 0.2599557638, -0.1440332532, -0.2033017278, -0.1653171182, -0.2190620601, 0.5277349949, 0.3939634562, 0.0342417657, -0.0421030819, -0.4067509472, -0.2453194857, 0.3608447313, 0.2823581696, 0.0014633811, 0.1401391625, -0.3047562838, 0.0974315107, 0.2519399524, -0.2148153931, -0.2565931678, 0.2118156552, -0.2131187767, -0.0246801134, -0.0519018918, 0.0910042226, 0.0106452685, 0.0145031307, 0.2670853138, 0.1857901812, -0.3312120438, 0.0249923058, -0.1970982403, -0.3113334477, 0.4462006688, 0.2143394351, 0.2483338118, -0.0707217604, 0.0157012697, 0.1144669726, 0.3708968461, 0.2580590248, 0.0792703852, -0.0338329338, 0.2125308365, 0.0079511832, -0.2015177161, -0.1089141592, -0.2836966217, 0.1032906771, 0.2451007813, -0.0778650865, 0.0508960895, -0.0072361077, -0.4273626804, 0.0413815007, -0.1689582914, -0.1493411809, 0.1657439172, -0.0761238113, 0.1448944509, -0.049294997, -0.0764246657, -0.051881697, -0.2385362834, 0.0705095455, 0.1058795452, -0.0204060134, -0.3056635261, -0.0091244727, 0.2450970113, -0.0581193753, 0.1331100017, -0.037236765, -0.1354188919, 0.2523601353, 0.1233304217, 0.252803266, -0.0802925602, 0.0251824837, 0.1523815244, -0.4525060654, 0.0430598333, 0.0419444256, 0.104407154, -0.1576235741, 0.2183500081, -0.0314420164, -0.0910327658, 0.0418949239, 0.1744563282, 0.1563684493, 0.1477836668, -0.024936229, 0.0901830792, -0.1331830919, 0.3215937912, -0.0938106105, 0.252617836, -0.0654187724, -0.0649181753, -0.1171572283, 0.4020732641, 0.1520849615, 0.0896183699, 0.0442311056, -0.3025978804, 0.0285022091, -0.2157821059, 0.3114796281, 0.4959138632, 0.1446498185, 0.163953498, 0.1199491397, 0.1569378674, -0.2816538811, 0.431047678, -0.0401026234, 0.2351524234, 0.2522004843, -0.1961639374, -0.0563998967, -0.2167148441, 0.2778973281, 0.0175765492, 0.207811445, -0.1578263044, -0.2426184416, -0.2548193336, -0.0673512965, -0.4623292685, -0.5436559916, -0.2178744227, -0.132128641, -0.238299638, 0.0240339357, -0.0367043018, 0.1426421702, -0.0420636944, -0.1025993526, 0.0817945376, 0.1268721521, 0.0026956676, -0.05342751, -0.0635397881, 0.1841251105, 0.2524006069, -0.3535847068, 0.5754957199, -0.3072551191, 0.0299869347, -0.2428166419, -0.1333232373, -0.0243882202, -0.0370056741, 0.086750038, 0.370372653, 0.3781492114, 0.258934617, -0.035577409, 0.3693836331, -0.2827511728, -0.0627757981, -0.1214669421, 0.122573562, 0.0374439657, -0.2173155695, -0.5624726415, -0.4598293602, -0.4110196233, -0.091702804, 0.0304595437, 0.1562967747, 0.1512022465, 0.0725564882, 0.0382239521, 0.1439448297, -0.0554898381, -0.327763468, -0.3739010096, 0.3905155361, -0.2670379281, -0.4456061721, 0.298694998, 0.0598830953, 0.4613805711, 0.2046915144, -0.4112803936, 0.3908862472, -0.1190446019, -0.0669099689, 0.0473833717, 0.1677641422, 0.1566011012, -0.041988574, -0.1558275819, -0.1271509677, -0.1122653112, -0.191848129, -0.198319301, 0.5375467539, -0.1967828572, 0.3370720744, 0.0668314472, 0.713924408, 0.1417643428, -0.1678291559, 0.2005021721, -0.1050598249, 0.1060319096, 0.1251529306, -0.4757870138, 0.100927107, -0.1338581443, 0.1713407338, 0.1957197189, 0.0078041498, 0.1225349754, -0.2567453384, 0.0096982466, -0.2643204927, -0.2460105717, 0.0622867607, 0.0964219421, 0.4988242984, 0.1776274741, 0.0379241854, -0.0200699419, -0.0173670389, -0.0130746467, 0.3110690415, 0.1599544138, 0.1306658387, 0.126027897, -0.0890350789, -0.3551561534, 0.0651445538, -0.0090180188, 0.4483256042, -0.0488913096, -0.1861806214, -0.0250150524, -0.0229499359, 0.5050634742, 0.1352037787, 0.2418664247, -0.0990693346, -0.1132145822, -0.3881945908, -0.0088245329, -0.0477997735, -0.0792358667, 0.1792105883, 0.0337591544, -0.2113888711, -0.1805662364, 0.3363737166, 0.1965858638, -0.2405357957, -0.3452708423, -0.2148286849, -0.3769048154, -0.3758882582, -0.0632986054, 0.0156026315, 0.2370369881, -0.2710612714, -0.0545757599, 0.0127764363, -0.0314766057, 0.0812896788, -0.0627887473, 0.2074972987, 0.017050419, 0.3276122212, 0.2472559959, 0.2483446449, 0.3023763001, 0.449973911, -0.0790660009, 0.0300897211, -0.0450308658, -0.0318384767, 0.1685842127, 0.0883090198, -0.1288236827, 0.0313172825, 0.3365076482, 0.1797915548, -0.5687052608, 0.1187113151, 0.4142958522, -0.0442775972, -0.2248914838, -0.2964837849, 0.1844127327, 0.0234357491, 0.1980578899, 0.224012509, 0.0846088901, -0.1026004106, -0.3729057014, 0.0741109475, 0.7303834558, 0.0040985397, -0.0063373647, 0.0541395433, -0.245798856, 0.0493164957, 0.1965431124, 0.0595953278, -0.2025649995, 0.0823459998, 0.0715469792, -0.1753579974, 0.0899460763, 0.1638876051, -0.2038239837, 0.1945637465, -0.0903946012, 0.3699929714, 0.1237478778, 0.2732432187, -0.2995001674, -0.0765025467, -0.1843225211, 0.2496201247, -0.1579499245, 0.5097189546, -0.2337877154, -0.0218786784, 0.2522152066, -0.3380150199, -0.33483693, -0.0194521416, -0.6515513062, 0.1543285251, -0.2069598138, 0.054442551, 0.2665857971, 0.0717396289, 0.0452234671, 0.3972820938, -0.1099757329, 0.1481290907, -0.2182463557, -0.1837649941, -0.1499443203, 0.1043706685, 0.0388211086, -0.2055921108, -0.242231667, -0.0304814093, -0.0293190926, 0.1018592268, 0.1618237197, -0.0849091709, 0.2629013956, -0.1588940024, -0.1314070374, -0.0529143997, -0.0808757022, -0.1313953102, 0.239168033, 0.0814330801, -0.1059007123, 0.3598031998, 0.1204868481, -0.0357931554, -0.1756919324, 0.41828987, -0.1213940457, 0.0133033376, 0.400534153, 0.281683594, -0.1847718209, -0.4077315331, 0.0011175431, -0.2280673981, -0.2547612488, 0.2138407528, 0.1572360396, 0.2700096071, -0.0490146726, 0.1123870015, 0.2817121446, -0.2257378697, 0.1532506794, -0.4374893904, -0.3613285422, -0.0451178104, -0.0801633, 0.1647504717, -0.0839296207, 0.3007492125, 0.1840865761, 0.314989686, -0.3982215226, 0.1844785959, -0.0554510057, 0.0410331078, 0.4086414874, -0.1523311138, 0.2701259851, -0.0001028967, 0.2006691843, 0.0359569751, -0.3535064757, -0.2827749252, -0.178945601, 0.0797091648, 0.0645151362, -0.3131314814, 0.231557548, -0.2747567594, -0.1528651714, 0.1786976308, 0.047385782, 0.1009495258, -0.0488115773, 0.1522327214, 0.0410712659, 0.0885962471, -0.2128448188, 0.0700736046, -0.0519009531, 0.3334439099, 0.0832396895, -0.0684861094, 0.302578032, -0.1539804339, -0.0999628976, -0.2193926275, 0.1600323468, -0.2081462741, 0.3932883143, -0.18479985, -0.0114570074, 0.1140618399, 0.3009462059, 0.3354035914, -0.0449946523, 0.1436928958, 0.1372202635, 0.351652652, -0.4080492556, 0.1773457378, -0.1444799751, 0.0148588642, -0.0702790171, 0.0008020314, 0.0222214274, 0.037115857, -0.1540630162, 0.2090329975, 0.4429769218, -0.2516424358, 0.1013132259, 0.2070240974, -0.1443167031, 0.1512599736, 0.0537342131, 0.0145271998, 0.0511469953, 0.3569309413, -0.3507202268, 0.3197164834, -0.1200648993, 0.0391066223, 0.1024586931, -0.2943321466, -0.0493200794, 0.2626116276, -0.2538186312, -0.0398403406, -0.156964764, 0.2941785753, -0.117847912, 0.0144356145, -0.1574143618, 0.2634152174, -0.0796029419, -0.026671363, -0.2245195657, -0.1667222083, -0.2416516691, -0.008191295, 0.1487243474, -0.1794107556, 0.2924162745, 0.2659937739, -0.021894617, -0.5418662429, -0.1938092709, 0.1615172178, -0.06607081, -0.3661062717, 0.0962021127, 0.4262841344, -0.1073655412, 0.1673747748, 0.4767375886, 0.3966048956, 0.3219348788, -0.1423859, 0.0870660022, 0.057688009, -0.1005892307, -0.1879336983, 0.2051907182, 0.0790676773, -0.0485190228, 0.2097939104, 0.2723873556, -0.23740758, -0.1949217319, 0.0235633105, -0.1338631511, -0.0635163188, 0.2793864608, -0.13691248, 0.0430594645, -0.4318422079, 0.2305634916, -0.2953836918, 0.3097437024, 0.5763671398, -0.051644627, 0.1679922193, -0.2874497771, 0.1143856421, -0.0044967569, 0.6133635044, 0.2889219224, 0.0559177473, -0.4034257233, -0.4311851859, -0.7414612174, 0.0106797153, 0.0747841895, 0.0936223343, -0.1725308001, 0.0881133676, -0.0538027883, 0.0651676878, 0.2490346134, 0.0820932686, 0.1977205873, 0.0279188268, -0.0566338934, -0.0552847423, -0.2002749145, -0.0143971173, 0.1361456215, -0.3531440794, 0.1582951099, -0.3870319724, 0.1298183054, -0.4399925172, 0.2706381381, -0.0487776324, 0.2809253037, 0.2876271605, 0.1505338401, 0.3705018759, -0.0907473043, -0.0546107292, -0.1950241774, -0.0690792128, -0.1504271477, 0.1500718594, 0.2182560414, 0.17057845, -0.0018085666, -0.3095671833, -0.449508369, 0.0844905972, 0.0031598527, -0.0372305512, -0.1925239563, 0.0436136276, -0.1081487685, -0.1006140858, 0.3356009424, 0.2299156934, -0.1436968893, 0.0228844788, -0.3451316655, -0.3848655522, 0.446046412, -0.155934602, -0.2160532922, -0.2820883691, 0.0934077054, -0.0535831079, -0.0098092547, -0.4851158261, 0.3032739758, 0.2533227503, -0.0807626843, -0.2000132948, 0.4165594876, -0.1124196574, -0.0350136608, 0.0745052174, 0.4259935617, 0.0531243086, -0.2661992908, -0.2081851214, -0.1793358624 ]
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.444955796, -0.422475934, -0.0815042406, 0.4179416001, 0.5046889186, 0.1244978011, 0.128145501, 0.213996619, 0.2786701918, 0.0013543622, 0.0727131665, -0.1104613468, -0.2351616621, 0.0972074568, 0.2837480903, -0.040581163, -0.123862505, -0.0028828436, -0.4859333932, 0.0390386805, -0.2367140204, 0.1167635545, -0.1118449569, -0.0652595162, -0.3488697708, -0.0671072528, -0.1394527107, 0.0584428981, -0.3605147302, -0.2884310782, 0.3591672778, 0.0484930612, 0.2195618898, 0.4216262698, -0.0001045874, -0.0344252549, 0.2609169483, -0.110332109, -0.1643059105, -0.3919685185, -0.3435015678, -0.1982591897, -0.0863412768, -0.0891986042, -0.0184501708, -0.1176215559, -0.1129943058, -0.342515707, 0.2524400055, 0.354021579, 0.3467803299, 0.2697255611, 0.3545667529, -0.1914295703, 0.1382766068, 0.1699798852, 0.0555041172, 0.1284030676, -0.0070464844, -0.1400783807, 0.1166839004, 0.1394857615, -0.0372346826, 0.2416530401, 0.1042876989, -0.1586449593, 0.0307699665, -0.2549282908, 0.2687596977, 0.139204964, 0.3950155973, -0.1157426834, -0.1314076334, 0.1513415277, 0.0650623664, -0.5738539696, 0.2200946212, 0.5009623766, -0.1863728911, 0.1921612322, -0.271476686, -0.0870953351, 0.0238120221, 0.1413063705, -0.2197029144, 0.2921699584, -0.2135500014, 0.0183896907, 0.1849010587, -0.1017094776, 0.0880926922, -0.0139019471, 0.1450838298, 0.2526479959, -0.2700490355, 0.1261819005, -0.1145767197, 0.1292573959, 0.0806543529, 0.0086125452, -0.2520153522, -0.1507218927, 0.2881469429, -0.0259476081, 0.0269002281, 0.1888409108, -0.2194878608, 0.0834904164, 0.0834250152, 0.1954321116, -0.0369621813, -0.0546254143, -0.3145233989, -0.2925896943, 0.0326478556, -0.0937114656, 0.1151881367, 0.0685740262, -0.2826320827, 0.0161391161, 0.0049900436, -0.1779202223, 0.0023905498, 0.3310003579, -0.2150158286, 0.1485759169, 0.2978155613, 0.0600116774, -0.0970929116, -0.1061486602, -0.2628638148, -0.0803783983, -0.1983226538, -0.0564075895, 0.305149436, -0.0921545327, 0.376110673, 0.0229628645, -0.1797792912, -0.1802679151, 0.0199735388, -0.1830588728, 0.1112452596, 0.4338181019, 0.0693689585, 0.2375739664, 0.071880579, 0.2547795177, -0.0013333596, 0.2246186435, -0.0462480709, -0.458791405, 0.1238832697, 0.3703134358, -0.1037133709, -0.1154195741, 0.0248288773, -0.1448108554, 0.0704497322, 0.2599557638, -0.1440332532, -0.2033017278, -0.1653171182, -0.2190620601, 0.5277349949, 0.3939634562, 0.0342417657, -0.0421030819, -0.4067509472, -0.2453194857, 0.3608447313, 0.2823581696, 0.0014633811, 0.1401391625, -0.3047562838, 0.0974315107, 0.2519399524, -0.2148153931, -0.2565931678, 0.2118156552, -0.2131187767, -0.0246801134, -0.0519018918, 0.0910042226, 0.0106452685, 0.0145031307, 0.2670853138, 0.1857901812, -0.3312120438, 0.0249923058, -0.1970982403, -0.3113334477, 0.4462006688, 0.2143394351, 0.2483338118, -0.0707217604, 0.0157012697, 0.1144669726, 0.3708968461, 0.2580590248, 0.0792703852, -0.0338329338, 0.2125308365, 0.0079511832, -0.2015177161, -0.1089141592, -0.2836966217, 0.1032906771, 0.2451007813, -0.0778650865, 0.0508960895, -0.0072361077, -0.4273626804, 0.0413815007, -0.1689582914, -0.1493411809, 0.1657439172, -0.0761238113, 0.1448944509, -0.049294997, -0.0764246657, -0.051881697, -0.2385362834, 0.0705095455, 0.1058795452, -0.0204060134, -0.3056635261, -0.0091244727, 0.2450970113, -0.0581193753, 0.1331100017, -0.037236765, -0.1354188919, 0.2523601353, 0.1233304217, 0.252803266, -0.0802925602, 0.0251824837, 0.1523815244, -0.4525060654, 0.0430598333, 0.0419444256, 0.104407154, -0.1576235741, 0.2183500081, -0.0314420164, -0.0910327658, 0.0418949239, 0.1744563282, 0.1563684493, 0.1477836668, -0.024936229, 0.0901830792, -0.1331830919, 0.3215937912, -0.0938106105, 0.252617836, -0.0654187724, -0.0649181753, -0.1171572283, 0.4020732641, 0.1520849615, 0.0896183699, 0.0442311056, -0.3025978804, 0.0285022091, -0.2157821059, 0.3114796281, 0.4959138632, 0.1446498185, 0.163953498, 0.1199491397, 0.1569378674, -0.2816538811, 0.431047678, -0.0401026234, 0.2351524234, 0.2522004843, -0.1961639374, -0.0563998967, -0.2167148441, 0.2778973281, 0.0175765492, 0.207811445, -0.1578263044, -0.2426184416, -0.2548193336, -0.0673512965, -0.4623292685, -0.5436559916, -0.2178744227, -0.132128641, -0.238299638, 0.0240339357, -0.0367043018, 0.1426421702, -0.0420636944, -0.1025993526, 0.0817945376, 0.1268721521, 0.0026956676, -0.05342751, -0.0635397881, 0.1841251105, 0.2524006069, -0.3535847068, 0.5754957199, -0.3072551191, 0.0299869347, -0.2428166419, -0.1333232373, -0.0243882202, -0.0370056741, 0.086750038, 0.370372653, 0.3781492114, 0.258934617, -0.035577409, 0.3693836331, -0.2827511728, -0.0627757981, -0.1214669421, 0.122573562, 0.0374439657, -0.2173155695, -0.5624726415, -0.4598293602, -0.4110196233, -0.091702804, 0.0304595437, 0.1562967747, 0.1512022465, 0.0725564882, 0.0382239521, 0.1439448297, -0.0554898381, -0.327763468, -0.3739010096, 0.3905155361, -0.2670379281, -0.4456061721, 0.298694998, 0.0598830953, 0.4613805711, 0.2046915144, -0.4112803936, 0.3908862472, -0.1190446019, -0.0669099689, 0.0473833717, 0.1677641422, 0.1566011012, -0.041988574, -0.1558275819, -0.1271509677, -0.1122653112, -0.191848129, -0.198319301, 0.5375467539, -0.1967828572, 0.3370720744, 0.0668314472, 0.713924408, 0.1417643428, -0.1678291559, 0.2005021721, -0.1050598249, 0.1060319096, 0.1251529306, -0.4757870138, 0.100927107, -0.1338581443, 0.1713407338, 0.1957197189, 0.0078041498, 0.1225349754, -0.2567453384, 0.0096982466, -0.2643204927, -0.2460105717, 0.0622867607, 0.0964219421, 0.4988242984, 0.1776274741, 0.0379241854, -0.0200699419, -0.0173670389, -0.0130746467, 0.3110690415, 0.1599544138, 0.1306658387, 0.126027897, -0.0890350789, -0.3551561534, 0.0651445538, -0.0090180188, 0.4483256042, -0.0488913096, -0.1861806214, -0.0250150524, -0.0229499359, 0.5050634742, 0.1352037787, 0.2418664247, -0.0990693346, -0.1132145822, -0.3881945908, -0.0088245329, -0.0477997735, -0.0792358667, 0.1792105883, 0.0337591544, -0.2113888711, -0.1805662364, 0.3363737166, 0.1965858638, -0.2405357957, -0.3452708423, -0.2148286849, -0.3769048154, -0.3758882582, -0.0632986054, 0.0156026315, 0.2370369881, -0.2710612714, -0.0545757599, 0.0127764363, -0.0314766057, 0.0812896788, -0.0627887473, 0.2074972987, 0.017050419, 0.3276122212, 0.2472559959, 0.2483446449, 0.3023763001, 0.449973911, -0.0790660009, 0.0300897211, -0.0450308658, -0.0318384767, 0.1685842127, 0.0883090198, -0.1288236827, 0.0313172825, 0.3365076482, 0.1797915548, -0.5687052608, 0.1187113151, 0.4142958522, -0.0442775972, -0.2248914838, -0.2964837849, 0.1844127327, 0.0234357491, 0.1980578899, 0.224012509, 0.0846088901, -0.1026004106, -0.3729057014, 0.0741109475, 0.7303834558, 0.0040985397, -0.0063373647, 0.0541395433, -0.245798856, 0.0493164957, 0.1965431124, 0.0595953278, -0.2025649995, 0.0823459998, 0.0715469792, -0.1753579974, 0.0899460763, 0.1638876051, -0.2038239837, 0.1945637465, -0.0903946012, 0.3699929714, 0.1237478778, 0.2732432187, -0.2995001674, -0.0765025467, -0.1843225211, 0.2496201247, -0.1579499245, 0.5097189546, -0.2337877154, -0.0218786784, 0.2522152066, -0.3380150199, -0.33483693, -0.0194521416, -0.6515513062, 0.1543285251, -0.2069598138, 0.054442551, 0.2665857971, 0.0717396289, 0.0452234671, 0.3972820938, -0.1099757329, 0.1481290907, -0.2182463557, -0.1837649941, -0.1499443203, 0.1043706685, 0.0388211086, -0.2055921108, -0.242231667, -0.0304814093, -0.0293190926, 0.1018592268, 0.1618237197, -0.0849091709, 0.2629013956, -0.1588940024, -0.1314070374, -0.0529143997, -0.0808757022, -0.1313953102, 0.239168033, 0.0814330801, -0.1059007123, 0.3598031998, 0.1204868481, -0.0357931554, -0.1756919324, 0.41828987, -0.1213940457, 0.0133033376, 0.400534153, 0.281683594, -0.1847718209, -0.4077315331, 0.0011175431, -0.2280673981, -0.2547612488, 0.2138407528, 0.1572360396, 0.2700096071, -0.0490146726, 0.1123870015, 0.2817121446, -0.2257378697, 0.1532506794, -0.4374893904, -0.3613285422, -0.0451178104, -0.0801633, 0.1647504717, -0.0839296207, 0.3007492125, 0.1840865761, 0.314989686, -0.3982215226, 0.1844785959, -0.0554510057, 0.0410331078, 0.4086414874, -0.1523311138, 0.2701259851, -0.0001028967, 0.2006691843, 0.0359569751, -0.3535064757, -0.2827749252, -0.178945601, 0.0797091648, 0.0645151362, -0.3131314814, 0.231557548, -0.2747567594, -0.1528651714, 0.1786976308, 0.047385782, 0.1009495258, -0.0488115773, 0.1522327214, 0.0410712659, 0.0885962471, -0.2128448188, 0.0700736046, -0.0519009531, 0.3334439099, 0.0832396895, -0.0684861094, 0.302578032, -0.1539804339, -0.0999628976, -0.2193926275, 0.1600323468, -0.2081462741, 0.3932883143, -0.18479985, -0.0114570074, 0.1140618399, 0.3009462059, 0.3354035914, -0.0449946523, 0.1436928958, 0.1372202635, 0.351652652, -0.4080492556, 0.1773457378, -0.1444799751, 0.0148588642, -0.0702790171, 0.0008020314, 0.0222214274, 0.037115857, -0.1540630162, 0.2090329975, 0.4429769218, -0.2516424358, 0.1013132259, 0.2070240974, -0.1443167031, 0.1512599736, 0.0537342131, 0.0145271998, 0.0511469953, 0.3569309413, -0.3507202268, 0.3197164834, -0.1200648993, 0.0391066223, 0.1024586931, -0.2943321466, -0.0493200794, 0.2626116276, -0.2538186312, -0.0398403406, -0.156964764, 0.2941785753, -0.117847912, 0.0144356145, -0.1574143618, 0.2634152174, -0.0796029419, -0.026671363, -0.2245195657, -0.1667222083, -0.2416516691, -0.008191295, 0.1487243474, -0.1794107556, 0.2924162745, 0.2659937739, -0.021894617, -0.5418662429, -0.1938092709, 0.1615172178, -0.06607081, -0.3661062717, 0.0962021127, 0.4262841344, -0.1073655412, 0.1673747748, 0.4767375886, 0.3966048956, 0.3219348788, -0.1423859, 0.0870660022, 0.057688009, -0.1005892307, -0.1879336983, 0.2051907182, 0.0790676773, -0.0485190228, 0.2097939104, 0.2723873556, -0.23740758, -0.1949217319, 0.0235633105, -0.1338631511, -0.0635163188, 0.2793864608, -0.13691248, 0.0430594645, -0.4318422079, 0.2305634916, -0.2953836918, 0.3097437024, 0.5763671398, -0.051644627, 0.1679922193, -0.2874497771, 0.1143856421, -0.0044967569, 0.6133635044, 0.2889219224, 0.0559177473, -0.4034257233, -0.4311851859, -0.7414612174, 0.0106797153, 0.0747841895, 0.0936223343, -0.1725308001, 0.0881133676, -0.0538027883, 0.0651676878, 0.2490346134, 0.0820932686, 0.1977205873, 0.0279188268, -0.0566338934, -0.0552847423, -0.2002749145, -0.0143971173, 0.1361456215, -0.3531440794, 0.1582951099, -0.3870319724, 0.1298183054, -0.4399925172, 0.2706381381, -0.0487776324, 0.2809253037, 0.2876271605, 0.1505338401, 0.3705018759, -0.0907473043, -0.0546107292, -0.1950241774, -0.0690792128, -0.1504271477, 0.1500718594, 0.2182560414, 0.17057845, -0.0018085666, -0.3095671833, -0.449508369, 0.0844905972, 0.0031598527, -0.0372305512, -0.1925239563, 0.0436136276, -0.1081487685, -0.1006140858, 0.3356009424, 0.2299156934, -0.1436968893, 0.0228844788, -0.3451316655, -0.3848655522, 0.446046412, -0.155934602, -0.2160532922, -0.2820883691, 0.0934077054, -0.0535831079, -0.0098092547, -0.4851158261, 0.3032739758, 0.2533227503, -0.0807626843, -0.2000132948, 0.4165594876, -0.1124196574, -0.0350136608, 0.0745052174, 0.4259935617, 0.0531243086, -0.2661992908, -0.2081851214, -0.1793358624 ]
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.444955796, -0.422475934, -0.0815042406, 0.4179416001, 0.5046889186, 0.1244978011, 0.128145501, 0.213996619, 0.2786701918, 0.0013543622, 0.0727131665, -0.1104613468, -0.2351616621, 0.0972074568, 0.2837480903, -0.040581163, -0.123862505, -0.0028828436, -0.4859333932, 0.0390386805, -0.2367140204, 0.1167635545, -0.1118449569, -0.0652595162, -0.3488697708, -0.0671072528, -0.1394527107, 0.0584428981, -0.3605147302, -0.2884310782, 0.3591672778, 0.0484930612, 0.2195618898, 0.4216262698, -0.0001045874, -0.0344252549, 0.2609169483, -0.110332109, -0.1643059105, -0.3919685185, -0.3435015678, -0.1982591897, -0.0863412768, -0.0891986042, -0.0184501708, -0.1176215559, -0.1129943058, -0.342515707, 0.2524400055, 0.354021579, 0.3467803299, 0.2697255611, 0.3545667529, -0.1914295703, 0.1382766068, 0.1699798852, 0.0555041172, 0.1284030676, -0.0070464844, -0.1400783807, 0.1166839004, 0.1394857615, -0.0372346826, 0.2416530401, 0.1042876989, -0.1586449593, 0.0307699665, -0.2549282908, 0.2687596977, 0.139204964, 0.3950155973, -0.1157426834, -0.1314076334, 0.1513415277, 0.0650623664, -0.5738539696, 0.2200946212, 0.5009623766, -0.1863728911, 0.1921612322, -0.271476686, -0.0870953351, 0.0238120221, 0.1413063705, -0.2197029144, 0.2921699584, -0.2135500014, 0.0183896907, 0.1849010587, -0.1017094776, 0.0880926922, -0.0139019471, 0.1450838298, 0.2526479959, -0.2700490355, 0.1261819005, -0.1145767197, 0.1292573959, 0.0806543529, 0.0086125452, -0.2520153522, -0.1507218927, 0.2881469429, -0.0259476081, 0.0269002281, 0.1888409108, -0.2194878608, 0.0834904164, 0.0834250152, 0.1954321116, -0.0369621813, -0.0546254143, -0.3145233989, -0.2925896943, 0.0326478556, -0.0937114656, 0.1151881367, 0.0685740262, -0.2826320827, 0.0161391161, 0.0049900436, -0.1779202223, 0.0023905498, 0.3310003579, -0.2150158286, 0.1485759169, 0.2978155613, 0.0600116774, -0.0970929116, -0.1061486602, -0.2628638148, -0.0803783983, -0.1983226538, -0.0564075895, 0.305149436, -0.0921545327, 0.376110673, 0.0229628645, -0.1797792912, -0.1802679151, 0.0199735388, -0.1830588728, 0.1112452596, 0.4338181019, 0.0693689585, 0.2375739664, 0.071880579, 0.2547795177, -0.0013333596, 0.2246186435, -0.0462480709, -0.458791405, 0.1238832697, 0.3703134358, -0.1037133709, -0.1154195741, 0.0248288773, -0.1448108554, 0.0704497322, 0.2599557638, -0.1440332532, -0.2033017278, -0.1653171182, -0.2190620601, 0.5277349949, 0.3939634562, 0.0342417657, -0.0421030819, -0.4067509472, -0.2453194857, 0.3608447313, 0.2823581696, 0.0014633811, 0.1401391625, -0.3047562838, 0.0974315107, 0.2519399524, -0.2148153931, -0.2565931678, 0.2118156552, -0.2131187767, -0.0246801134, -0.0519018918, 0.0910042226, 0.0106452685, 0.0145031307, 0.2670853138, 0.1857901812, -0.3312120438, 0.0249923058, -0.1970982403, -0.3113334477, 0.4462006688, 0.2143394351, 0.2483338118, -0.0707217604, 0.0157012697, 0.1144669726, 0.3708968461, 0.2580590248, 0.0792703852, -0.0338329338, 0.2125308365, 0.0079511832, -0.2015177161, -0.1089141592, -0.2836966217, 0.1032906771, 0.2451007813, -0.0778650865, 0.0508960895, -0.0072361077, -0.4273626804, 0.0413815007, -0.1689582914, -0.1493411809, 0.1657439172, -0.0761238113, 0.1448944509, -0.049294997, -0.0764246657, -0.051881697, -0.2385362834, 0.0705095455, 0.1058795452, -0.0204060134, -0.3056635261, -0.0091244727, 0.2450970113, -0.0581193753, 0.1331100017, -0.037236765, -0.1354188919, 0.2523601353, 0.1233304217, 0.252803266, -0.0802925602, 0.0251824837, 0.1523815244, -0.4525060654, 0.0430598333, 0.0419444256, 0.104407154, -0.1576235741, 0.2183500081, -0.0314420164, -0.0910327658, 0.0418949239, 0.1744563282, 0.1563684493, 0.1477836668, -0.024936229, 0.0901830792, -0.1331830919, 0.3215937912, -0.0938106105, 0.252617836, -0.0654187724, -0.0649181753, -0.1171572283, 0.4020732641, 0.1520849615, 0.0896183699, 0.0442311056, -0.3025978804, 0.0285022091, -0.2157821059, 0.3114796281, 0.4959138632, 0.1446498185, 0.163953498, 0.1199491397, 0.1569378674, -0.2816538811, 0.431047678, -0.0401026234, 0.2351524234, 0.2522004843, -0.1961639374, -0.0563998967, -0.2167148441, 0.2778973281, 0.0175765492, 0.207811445, -0.1578263044, -0.2426184416, -0.2548193336, -0.0673512965, -0.4623292685, -0.5436559916, -0.2178744227, -0.132128641, -0.238299638, 0.0240339357, -0.0367043018, 0.1426421702, -0.0420636944, -0.1025993526, 0.0817945376, 0.1268721521, 0.0026956676, -0.05342751, -0.0635397881, 0.1841251105, 0.2524006069, -0.3535847068, 0.5754957199, -0.3072551191, 0.0299869347, -0.2428166419, -0.1333232373, -0.0243882202, -0.0370056741, 0.086750038, 0.370372653, 0.3781492114, 0.258934617, -0.035577409, 0.3693836331, -0.2827511728, -0.0627757981, -0.1214669421, 0.122573562, 0.0374439657, -0.2173155695, -0.5624726415, -0.4598293602, -0.4110196233, -0.091702804, 0.0304595437, 0.1562967747, 0.1512022465, 0.0725564882, 0.0382239521, 0.1439448297, -0.0554898381, -0.327763468, -0.3739010096, 0.3905155361, -0.2670379281, -0.4456061721, 0.298694998, 0.0598830953, 0.4613805711, 0.2046915144, -0.4112803936, 0.3908862472, -0.1190446019, -0.0669099689, 0.0473833717, 0.1677641422, 0.1566011012, -0.041988574, -0.1558275819, -0.1271509677, -0.1122653112, -0.191848129, -0.198319301, 0.5375467539, -0.1967828572, 0.3370720744, 0.0668314472, 0.713924408, 0.1417643428, -0.1678291559, 0.2005021721, -0.1050598249, 0.1060319096, 0.1251529306, -0.4757870138, 0.100927107, -0.1338581443, 0.1713407338, 0.1957197189, 0.0078041498, 0.1225349754, -0.2567453384, 0.0096982466, -0.2643204927, -0.2460105717, 0.0622867607, 0.0964219421, 0.4988242984, 0.1776274741, 0.0379241854, -0.0200699419, -0.0173670389, -0.0130746467, 0.3110690415, 0.1599544138, 0.1306658387, 0.126027897, -0.0890350789, -0.3551561534, 0.0651445538, -0.0090180188, 0.4483256042, -0.0488913096, -0.1861806214, -0.0250150524, -0.0229499359, 0.5050634742, 0.1352037787, 0.2418664247, -0.0990693346, -0.1132145822, -0.3881945908, -0.0088245329, -0.0477997735, -0.0792358667, 0.1792105883, 0.0337591544, -0.2113888711, -0.1805662364, 0.3363737166, 0.1965858638, -0.2405357957, -0.3452708423, -0.2148286849, -0.3769048154, -0.3758882582, -0.0632986054, 0.0156026315, 0.2370369881, -0.2710612714, -0.0545757599, 0.0127764363, -0.0314766057, 0.0812896788, -0.0627887473, 0.2074972987, 0.017050419, 0.3276122212, 0.2472559959, 0.2483446449, 0.3023763001, 0.449973911, -0.0790660009, 0.0300897211, -0.0450308658, -0.0318384767, 0.1685842127, 0.0883090198, -0.1288236827, 0.0313172825, 0.3365076482, 0.1797915548, -0.5687052608, 0.1187113151, 0.4142958522, -0.0442775972, -0.2248914838, -0.2964837849, 0.1844127327, 0.0234357491, 0.1980578899, 0.224012509, 0.0846088901, -0.1026004106, -0.3729057014, 0.0741109475, 0.7303834558, 0.0040985397, -0.0063373647, 0.0541395433, -0.245798856, 0.0493164957, 0.1965431124, 0.0595953278, -0.2025649995, 0.0823459998, 0.0715469792, -0.1753579974, 0.0899460763, 0.1638876051, -0.2038239837, 0.1945637465, -0.0903946012, 0.3699929714, 0.1237478778, 0.2732432187, -0.2995001674, -0.0765025467, -0.1843225211, 0.2496201247, -0.1579499245, 0.5097189546, -0.2337877154, -0.0218786784, 0.2522152066, -0.3380150199, -0.33483693, -0.0194521416, -0.6515513062, 0.1543285251, -0.2069598138, 0.054442551, 0.2665857971, 0.0717396289, 0.0452234671, 0.3972820938, -0.1099757329, 0.1481290907, -0.2182463557, -0.1837649941, -0.1499443203, 0.1043706685, 0.0388211086, -0.2055921108, -0.242231667, -0.0304814093, -0.0293190926, 0.1018592268, 0.1618237197, -0.0849091709, 0.2629013956, -0.1588940024, -0.1314070374, -0.0529143997, -0.0808757022, -0.1313953102, 0.239168033, 0.0814330801, -0.1059007123, 0.3598031998, 0.1204868481, -0.0357931554, -0.1756919324, 0.41828987, -0.1213940457, 0.0133033376, 0.400534153, 0.281683594, -0.1847718209, -0.4077315331, 0.0011175431, -0.2280673981, -0.2547612488, 0.2138407528, 0.1572360396, 0.2700096071, -0.0490146726, 0.1123870015, 0.2817121446, -0.2257378697, 0.1532506794, -0.4374893904, -0.3613285422, -0.0451178104, -0.0801633, 0.1647504717, -0.0839296207, 0.3007492125, 0.1840865761, 0.314989686, -0.3982215226, 0.1844785959, -0.0554510057, 0.0410331078, 0.4086414874, -0.1523311138, 0.2701259851, -0.0001028967, 0.2006691843, 0.0359569751, -0.3535064757, -0.2827749252, -0.178945601, 0.0797091648, 0.0645151362, -0.3131314814, 0.231557548, -0.2747567594, -0.1528651714, 0.1786976308, 0.047385782, 0.1009495258, -0.0488115773, 0.1522327214, 0.0410712659, 0.0885962471, -0.2128448188, 0.0700736046, -0.0519009531, 0.3334439099, 0.0832396895, -0.0684861094, 0.302578032, -0.1539804339, -0.0999628976, -0.2193926275, 0.1600323468, -0.2081462741, 0.3932883143, -0.18479985, -0.0114570074, 0.1140618399, 0.3009462059, 0.3354035914, -0.0449946523, 0.1436928958, 0.1372202635, 0.351652652, -0.4080492556, 0.1773457378, -0.1444799751, 0.0148588642, -0.0702790171, 0.0008020314, 0.0222214274, 0.037115857, -0.1540630162, 0.2090329975, 0.4429769218, -0.2516424358, 0.1013132259, 0.2070240974, -0.1443167031, 0.1512599736, 0.0537342131, 0.0145271998, 0.0511469953, 0.3569309413, -0.3507202268, 0.3197164834, -0.1200648993, 0.0391066223, 0.1024586931, -0.2943321466, -0.0493200794, 0.2626116276, -0.2538186312, -0.0398403406, -0.156964764, 0.2941785753, -0.117847912, 0.0144356145, -0.1574143618, 0.2634152174, -0.0796029419, -0.026671363, -0.2245195657, -0.1667222083, -0.2416516691, -0.008191295, 0.1487243474, -0.1794107556, 0.2924162745, 0.2659937739, -0.021894617, -0.5418662429, -0.1938092709, 0.1615172178, -0.06607081, -0.3661062717, 0.0962021127, 0.4262841344, -0.1073655412, 0.1673747748, 0.4767375886, 0.3966048956, 0.3219348788, -0.1423859, 0.0870660022, 0.057688009, -0.1005892307, -0.1879336983, 0.2051907182, 0.0790676773, -0.0485190228, 0.2097939104, 0.2723873556, -0.23740758, -0.1949217319, 0.0235633105, -0.1338631511, -0.0635163188, 0.2793864608, -0.13691248, 0.0430594645, -0.4318422079, 0.2305634916, -0.2953836918, 0.3097437024, 0.5763671398, -0.051644627, 0.1679922193, -0.2874497771, 0.1143856421, -0.0044967569, 0.6133635044, 0.2889219224, 0.0559177473, -0.4034257233, -0.4311851859, -0.7414612174, 0.0106797153, 0.0747841895, 0.0936223343, -0.1725308001, 0.0881133676, -0.0538027883, 0.0651676878, 0.2490346134, 0.0820932686, 0.1977205873, 0.0279188268, -0.0566338934, -0.0552847423, -0.2002749145, -0.0143971173, 0.1361456215, -0.3531440794, 0.1582951099, -0.3870319724, 0.1298183054, -0.4399925172, 0.2706381381, -0.0487776324, 0.2809253037, 0.2876271605, 0.1505338401, 0.3705018759, -0.0907473043, -0.0546107292, -0.1950241774, -0.0690792128, -0.1504271477, 0.1500718594, 0.2182560414, 0.17057845, -0.0018085666, -0.3095671833, -0.449508369, 0.0844905972, 0.0031598527, -0.0372305512, -0.1925239563, 0.0436136276, -0.1081487685, -0.1006140858, 0.3356009424, 0.2299156934, -0.1436968893, 0.0228844788, -0.3451316655, -0.3848655522, 0.446046412, -0.155934602, -0.2160532922, -0.2820883691, 0.0934077054, -0.0535831079, -0.0098092547, -0.4851158261, 0.3032739758, 0.2533227503, -0.0807626843, -0.2000132948, 0.4165594876, -0.1124196574, -0.0350136608, 0.0745052174, 0.4259935617, 0.0531243086, -0.2661992908, -0.2081851214, -0.1793358624 ]
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.4226087928, -0.0862601474, -0.154598996, 0.0781619847, 0.1073096544, 0.4110479057, 0.3115075529, 0.4648511708, 0.1183014438, 0.1705960035, -0.1758234203, 0.3464903533, -0.0750730559, 0.5408207178, -0.2195976228, -0.2845953107, 0.1583359689, 0.523165822, -0.5183836222, 0.0794192478, -0.436337024, -0.1140019745, -0.3252283335, -0.3519525528, -0.3305090964, 0.2272312045, -0.326325953, 0.0496898629, -0.2420315295, -0.2773000896, 0.1845788211, 0.1565623134, 0.1737535596, 0.1870677918, -0.0001018656, -0.0065458445, -0.0140743135, -0.0987925455, -0.2388121188, -0.2386987954, -0.4274656773, -0.5326146483, 0.0191352386, -0.1855816841, 0.0070861345, -0.5496054292, -0.1515819132, -0.1952262074, -0.0363271944, 0.2691267431, 0.2765329778, -0.0024137988, 0.1438422054, -0.220538348, -0.0327089503, 0.0477843024, -0.148868233, -0.2383366376, -0.1028847545, -0.030482091, 0.2678529322, 0.092481263, -0.0786667392, -0.0955473706, 0.0230151173, 0.2429492474, 0.3289213479, -0.4637416899, 0.2783742249, 0.3595762551, 0.5390443206, -0.1761266887, -0.3088949025, -0.0107762394, 0.2730107009, -0.2251131982, -0.1153180748, 0.1722412407, 0.1841142178, 0.1055814847, 0.0051623387, -0.0969096124, -0.2384501249, 0.3530942202, -0.1239477992, 0.5723180771, 0.0937582254, 0.1246290207, 0.1647107452, -0.2323433459, 0.2123435736, -0.2305597514, -0.0263888128, 0.3826237023, -0.5797166824, -0.0849746689, -0.1941431612, -0.240285635, 0.1860109121, 0.0934346765, 0.0127485991, -0.0230272636, -0.1148875281, 0.2161027193, 0.1035969332, 0.1430448294, 0.1178156063, 0.384524256, -0.1129865721, -0.2188608944, 0.3609624207, -0.0352089554, -0.307469517, -0.4276660681, -0.0928753763, -0.0125975907, 0.0828213468, 0.2491240203, 0.0911289603, -0.101413846, -0.1131043583, -0.0271374658, -0.0245385766, 0.0541521832, 0.1044033095, 0.7092759013, -0.0496407226, 0.2461360544, 0.2259806991, 0.0167849753, -0.200280115, 0.3086336255, 0.1093920693, -0.0477172323, 0.1133465916, -0.202474162, -0.0465145372, 0.351693064, 0.1328010261, 0.1754060984, 0.0056138253, -0.2470530123, 0.1815118939, 0.2198555619, 0.1323285401, -0.04526278, 0.1345879734, -0.1955262572, 0.01796728, 0.3099164367, -0.1724099219, -0.0889015794, -0.5252355337, 0.2082276791, -0.0423241295, -0.0700515658, -0.3134085238, 0.3623369336, -0.077149488, 0.0539493822, 0.1155348644, -0.0474661849, 0.0621785484, -0.1661248505, 0.2009576261, 0.111344099, -0.2669386268, 0.00802649, 0.153602913, -0.158944875, 0.1445998549, -0.0600146428, 0.1177264079, -0.2345391661, -0.0067722364, 0.0059620137, 0.3625380099, -0.3298889995, -0.0926985443, -0.0321077406, -0.1197829172, -0.0059564472, 0.2458174974, 0.0969634801, 0.1838969588, 0.2839228511, 0.2015565336, 0.0482031778, 0.0350066759, -0.009959735, 0.0151679777, -0.120455496, 0.4265733063, 0.2494771928, -0.0432004631, 0.2766702473, -0.0150049664, -0.4588458836, 0.3301059902, -0.3999518752, 0.2924722731, 0.1318641603, 0.126735121, -0.2035219371, 0.0067227315, -0.1177158356, -0.5746805668, 0.0519517176, 0.2862966657, 0.2127358168, 0.0785785615, -0.1286861151, -0.10281232, -0.1928752214, 0.0099846311, 0.0941526443, 0.1835021377, 0.0413178578, 0.0519455448, -0.2493306845, -0.3810608983, 0.3606595099, 0.0950971991, -0.0432976112, -0.1508484781, 0.2130993158, 0.1889885515, 0.0291417297, -0.0165353753, 0.271897316, 0.0943741575, -0.1173462346, 0.1646353602, 0.3794598877, -0.3452472985, 0.0082482919, 0.0471472107, 0.2545304, 0.1226962507, 0.2721697092, -0.1793633252, -0.3759016991, 0.1136747226, 0.0921136737, -0.0816453025, 0.4765715599, -0.2874644995, 0.2087195218, -0.0956579894, 0.1742874533, 0.2577314973, -0.046593219, -0.2239286602, -0.3543517292, -0.0163602345, 0.2291425616, -0.191659078, -0.0236565396, -0.0687827766, 0.1239472032, 0.2656054795, 0.0214643311, -0.1022832319, -0.0943583101, -0.1167925298, 0.124398455, 0.2267947197, 0.1167608351, 0.2644933462, 0.3999996483, -0.108604461, 0.2540386319, -0.2752259076, 0.0746817738, 0.0916334316, 0.0373175181, -0.0777113959, 0.4481419027, 0.2226287872, -0.0754355788, -0.0185633898, -0.2296895832, 0.1100941598, 0.5023940802, -0.094824113, -0.1374460459, -0.2418770939, -0.0132370582, 0.0900165588, -0.3467952311, 0.0228298008, -0.247899875, -0.1796191037, 0.1272638589, -0.1465993673, 0.3609492183, -0.3012220263, 0.1302005053, -0.0414411202, -0.0230276305, -0.0322711617, 0.0715343207, 0.1925759315, 0.1740305275, -0.1611604244, -0.0809798688, -0.0969504118, -0.1195516512, 0.2034371197, -0.1111140102, 0.029660657, 0.0209121723, -0.1271332502, -0.4854318798, 0.0185909774, 0.0776496381, -0.2564775944, -0.175820604, 0.1687880903, 0.3261310756, 0.0632402226, 0.1794681698, 0.0166821964, 0.0185160674, -0.1775397509, -0.2074852884, -0.2333163023, -0.4139030576, 0.155899033, 0.2039988041, 0.2865820527, -0.0389004201, 0.4930992424, -0.0612506121, 0.0392676145, -0.0590722971, -0.1255934089, -0.336705327, 0.487184763, -0.1394262016, -0.0531919263, 0.1305377632, -0.2593684196, 0.1299340278, 0.2810858786, 0.094988592, -0.2102488577, -0.0393764973, 0.149600774, -0.397459805, 0.2691260278, 0.425267458, 0.3284215629, -0.103090927, 0.018208731, -0.008902587, 0.0823037475, 0.2164366543, -0.2202181518, -0.2070926577, 0.1523667723, -0.0258812495, -0.1935557574, 0.4212954938, 0.0882196575, 0.1785869747, -0.2154989094, 0.3437778056, 0.0687642992, -0.2970073521, -0.2422594577, 0.0927130058, 0.4133452475, -0.1866028011, 0.055248037, 0.0985621288, -0.1663856208, 0.021599127, -0.1545240432, -0.0231146608, 0.2027696073, -0.3458366394, 0.290559411, -0.3137405217, -0.0285224076, -0.4044006169, 0.0856051892, -0.1631049961, 0.1187716797, -0.0330521092, -0.2274547815, -0.263012439, -0.2444105595, -0.4903452694, 0.3173393309, 0.1552319676, 0.2717687488, 0.2912924886, -0.0228431597, -0.2171895951, -0.0164475497, 0.686768353, -0.3689184785, -0.6013420224, 0.3722736239, -0.00727307, -0.526019454, 0.0412569195, -0.1601490229, 0.1185232624, -0.1868177354, 0.611479938, -0.1121609211, -0.1128566265, 0.538557291, 0.1910730302, -0.0030899695, -0.0647645891, -0.0275243632, 0.146508038, -0.0947302803, -0.3211617768, -0.1306190491, 0.5407403708, -0.1205690503, -0.1492384523, -0.2390724272, -0.3590197563, 0.1134655103, 0.1685438603, 0.1686151475, 0.3236900866, -0.0559847541, 0.1164251268, -0.2771924734, 0.314098984, 0.223312363, -0.1735615581, -0.4095316827, -0.0674380884, -0.1244137287, 0.3769437373, -0.1998217255, 0.0715271905, 0.2274821401, -0.2681816518, 0.0985783786, -0.1385200471, 0.0678734556, 0.242230922, 0.0868621767, -0.4898303449, -0.4183365703, 0.2966911793, 0.1976842135, 0.08943519, 0.4377854466, 0.1015224755, -0.2574074864, -0.000024149, -0.1051816046, 0.6077115536, 0.119321309, 0.0889271274, 0.0494117886, -0.1816972941, 0.4047293961, 0.0215205215, 0.3728576005, -0.1871740818, -0.2410687059, -0.1781830043, -0.015463572, 0.1891346127, 0.0828681141, -0.4538228214, 0.0597166866, -0.4398395717, 0.1877657324, -0.0441066213, 0.0964495912, -0.0235201661, -0.5262392163, -0.3846263289, 0.1481364518, 0.0433427356, -0.3731681406, -0.0681557432, 0.0462671779, -0.1016044915, 0.092185013, -0.1371252984, -0.0093369894, 0.1608574092, 0.0250583421, 0.1002052128, -0.342258364, -0.1159640029, 0.0210100729, 0.0521622226, 0.0165620968, -0.0197313447, -0.1912318617, -0.0184390489, 0.0611679852, -0.023227049, -0.1652083099, -0.0057611605, 0.2311610878, -0.3075410426, 0.3474166989, 0.1665046513, -0.3117281497, 0.0602800734, 0.1185575798, -0.1237674132, -0.178730756, -0.0517203137, 0.2353453487, 0.2143879831, -0.2692740858, 0.1917435229, 0.0625466779, -0.233319819, 0.0978006274, -0.1885359287, -0.276343137, -0.1605476588, 0.569891572, 0.0657671317, 0.1076140776, 0.2477425188, 0.1160034165, -0.09715873, -0.1662721038, 0.1173513681, 0.3057336807, -0.110313125, 0.1017767265, 0.1677980423, -0.1101812944, -0.1801378876, 0.1938297302, -0.0277391039, 0.4791871607, -0.1644945145, -0.2471839637, -0.4967108369, 0.1797675937, 0.3701281846, 0.1714560837, -0.0239218995, 0.1592521369, -0.1517135948, -0.0794299319, -0.3608300984, -0.1363078654, -0.0717431903, 0.0462657399, 0.2836577296, -0.0406300351, -0.0685033575, -0.075375922, 0.3054108918, -0.0074982755, -0.016317213, -0.3289113045, -0.1638775468, 0.0028935273, 0.1814592183, -0.2591573894, 0.0272619799, -0.0729450658, -0.4046713412, -0.2934728861, 0.0532368943, 0.4485884905, -0.2827629745, 0.0978390798, -0.0520512126, -0.1574316919, -0.0596137308, -0.0769665241, 0.0502068177, -0.1973653585, -0.0968632475, 0.2935681939, 0.0562768914, 0.0049740961, -0.1948280782, 0.1838006973, 0.0269652363, -0.0468934588, 0.0476154312, -0.0602114089, 0.0672948509, 0.2579360008, 0.3072111011, 0.1623547822, 0.0628554076, 0.2926854193, 0.2124692947, 0.3209312856, -0.2774733007, -0.3693933487, 0.0605045259, 0.3878196776, 0.4583671987, 0.1108508408, -0.3141111434, -0.2479772568, 0.0807526633, 0.0079258801, 0.0242101401, -0.0927615464, 0.3725392818, 0.5311439633, 0.0732624233, 0.0134726102, 0.0544656366, 0.169989869, 0.181345731, 0.1594896019, -0.0579941645, 0.0507519804, 0.396590203, -0.1946715117, -0.1240458861, -0.2143042237, 0.0232703909, 0.1107358262, -0.1414571255, 0.0860749707, 0.1904231608, -0.1014312208, -0.0167748276, 0.0004356688, -0.0118415989, 0.0746933147, -0.056102477, -0.1204988137, -0.0210177135, -0.2038310468, -0.0772635937, 0.0052640508, 0.1286932081, -0.2836011052, 0.492839098, -0.191394642, 0.0704562813, -0.1502915919, 0.4490298927, 0.3303476274, 0.0669885576, 0.0462755226, -0.0922058448, 0.3998713493, 0.0101638287, 0.0721113458, 0.2076399624, 0.3230279982, 0.1880319715, 0.2334594876, 0.0811585858, -0.1455550641, -0.1438239366, 0.0895119384, 0.0062915329, 0.082191214, -0.1205392703, 0.1235598028, 0.3070297241, -0.2196791321, 0.1558575928, -0.1300047338, 0.09158279, -0.59127599, 0.0805232823, 0.1916843802, -0.3469381034, 0.0281241853, 0.0422349982, -0.0697694421, -0.2851137817, 0.0619484112, 0.0495807417, -0.0367394984, 0.0849198848, 0.1784984171, 0.0829802528, 0.4064062536, -0.1365165412, -0.0137448292, -0.2608765662, -0.0508246981, -0.133262679, -0.1348144114, 0.0357732885, -0.1865978837, -0.1200977117, 0.1328770965, 0.0875828192, -0.0422038697, 0.3020153344, 0.2018318772, 0.10865964, 0.2069044411, -0.1476820409, 0.0071720635, 0.2105505764, -0.0537949167, 0.0318594202, -0.3354479671, 0.3440543711, 0.2687546909, 0.1323978454, 0.0037176646, 0.1429710984, -0.1260973066, -0.1846718192, 0.255779326, 0.1176211163, 0.1147158071, -0.2001405805, 0.3036078215, -0.3600518107, -0.1929204315, -0.3687104583, 0.3780512214, 0.1165055782, 0.2029488534, -0.3130410314, -0.1715019792, 0.11055246, -0.012434368, 0.0706337616, 0.2122297287, -0.1443945169, 0.4930891395, 0.2222591937, -0.21379444, -0.1979368776, -0.062532939, 0.0300313588, 0.0159358885, 0.0925038233, -0.2083310485, 0.0662317127, 0.0441695265, -0.4783136249, -0.2526845634, -0.0952867568, 0.3018610477, 0.0910617113, -0.0933061764, -0.0993991494, 0.2757210732, -0.0609044917, -0.3030005097, 0.3159588277, -0.2151514441, 0.0517356731, -0.0920516327, 0.0167080667, -0.0154433437, -0.1852018386, -0.083777383, -0.3880162537 ]
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.5632334352, 0.1566244513, -0.1052775979, -0.0830111057, 0.0874816477, 0.1624971479, 0.3028234243, 0.4194338918, -0.2249420285, 0.3868970871, -0.1537488997, 0.2858175635, -0.1336852908, 0.4265961349, -0.3774044812, -0.1137893796, 0.1690776944, 0.6831738353, -0.4871606231, -0.0461212806, -0.2769602239, 0.0618328378, -0.191371575, -0.3543601334, -0.5695505738, 0.2912065387, -0.1852044314, 0.1471565217, -0.3962180316, -0.1970463097, 0.2927449346, 0.3368049562, -0.0439012125, 0.1087512001, -0.0001123584, 0.0200278983, 0.0133765973, -0.1588650644, -0.223980993, -0.285912931, -0.4628486931, -0.3097323775, -0.0573882721, -0.0591023527, 0.1034685671, -0.1293450445, 0.0893110186, -0.2339221984, 0.0351497047, 0.1296930462, 0.1886484623, -0.0460461676, -0.149462074, -0.3029185832, 0.0352646261, 0.3872570992, -0.1596916169, -0.1119442582, 0.036842186, 0.0510121919, 0.1473966837, 0.1967142075, 0.0847491771, -0.1048689038, -0.0312237311, 0.1278537065, 0.2851850986, -0.5738028288, 0.1894938201, 0.4373263121, 0.3858179748, -0.2070236653, -0.23101376, -0.1063774303, 0.1256219298, -0.037894547, -0.0085133631, 0.2486874759, 0.000385141, 0.299811095, -0.1266185641, -0.3214492202, -0.3337571323, 0.21925354, 0.0035819947, 0.5095904469, 0.1821103543, 0.1283193678, 0.2479760498, -0.0896193534, 0.1514653713, -0.1121113896, -0.187259838, 0.3319087923, -0.3466579616, -0.1094931662, -0.4235308766, -0.3127009869, 0.3242363632, 0.3647495508, 0.2044356018, -0.0514716022, -0.2810691595, 0.2224724293, 0.1368424892, -0.0281805974, 0.2627061307, 0.2246280015, 0.1004933119, -0.4747579694, 0.4068495035, 0.1419351399, -0.2541023791, -0.6352846026, -0.3118083477, -0.0495491512, 0.0398107804, 0.1275723428, -0.0244059488, -0.2763108015, -0.0880287513, 0.0547674038, -0.1994533092, -0.0870600864, 0.1845136732, 0.5468422174, -0.0291947331, 0.1838521957, 0.1613675505, -0.2034960538, -0.122863993, 0.1137355044, 0.2657355368, 0.1090384275, 0.0932539701, -0.3103021979, -0.053434182, 0.1010305136, 0.4630504847, 0.2935287654, 0.0899409652, -0.1125792861, 0.1572800875, 0.2680850029, 0.1508651227, -0.106042102, 0.0711880028, -0.2159586698, -0.1277610064, 0.3148566186, -0.2388080806, -0.0789521188, -0.6027962565, 0.1250676215, -0.1908837557, -0.1287212968, -0.2735526562, 0.4014888108, -0.1088657454, 0.0152946645, 0.1486210078, 0.1504067779, 0.1207896546, -0.127471447, 0.1286764145, 0.1386977285, -0.2228637487, -0.1253660768, 0.1494994164, -0.3760163188, -0.0257566534, -0.0534551218, -0.0917768106, -0.3919665515, -0.1096220538, 0.2380184233, 0.5789765716, -0.3724958897, -0.0461450331, -0.0229793712, -0.3579955399, -0.1780029386, 0.3134599626, 0.2745228112, 0.1828154922, 0.0905678496, 0.0883898437, 0.2852326334, -0.1022024304, 0.0373513103, 0.0420039631, -0.2569618523, 0.2918095291, 0.2295568883, -0.0237758271, 0.1568796039, 0.2578099966, -0.531416297, 0.253136456, -0.4744189382, 0.1922057271, 0.0655760691, 0.4364446998, -0.4588053823, -0.0279832557, 0.0510559902, -0.4954919219, 0.0699070618, 0.1260802746, 0.2886123657, 0.1175459921, -0.3634769619, 0.0863489956, -0.1281973869, -0.033222273, 0.0490112118, 0.0638268441, -0.0172977671, -0.0022056457, -0.0952397287, -0.385086745, 0.4718654454, 0.1025448367, -0.0925957784, -0.1465742886, 0.2257515937, 0.0452565923, 0.1224839762, -0.0722058564, 0.2096062899, -0.067951709, -0.2650659084, 0.2195995748, 0.5704522729, -0.4314956963, 0.1467094272, 0.2623587847, 0.1093139723, 0.266836971, -0.1554703563, -0.1848707944, -0.5273684263, -0.0256929994, -0.0429723449, -0.01765511, 0.5327882767, -0.3147445023, 0.0307159536, 0.0439042188, 0.2274836898, 0.3138509691, -0.0138029018, -0.3958476484, -0.3787469566, -0.0729576424, 0.4171087444, 0.016072778, 0.1849323809, -0.1893028915, 0.1207718626, 0.3447670639, 0.0078028697, -0.0184841678, -0.0078627951, -0.1470703334, 0.1143818349, 0.2931674421, 0.0276503544, 0.3205235898, 0.3793958127, -0.1209534928, 0.1799790561, -0.2484187484, -0.0468228161, 0.1409377456, -0.0139974169, 0.2253265977, 0.3300788701, 0.3414488733, -0.0892065316, -0.2700638473, -0.3984600902, 0.0046032621, 0.2516727746, -0.1310019195, -0.2252403051, -0.2523096204, 0.0098992111, 0.0092803258, -0.2826527357, -0.2417199016, -0.2430528849, 0.1282057762, 0.1327525079, -0.050808467, 0.5702413321, -0.2493342459, 0.5388229489, -0.2218421847, -0.0355610363, -0.1266867667, 0.136090219, 0.2055342346, 0.0919157788, -0.118147105, -0.3078882992, 0.0967737958, -0.156749934, 0.2157622874, -0.2193119973, -0.2720018029, 0.0924663842, 0.098219499, -0.5494916439, 0.1595662087, 0.0025912242, -0.1303560138, -0.0801040754, 0.0279197097, 0.359270364, -0.2882343531, -0.0033156488, -0.2200145125, 0.026015006, -0.4219439328, 0.059749689, -0.2398126274, -0.3552931845, 0.2629977465, 0.3009651303, 0.2693173587, 0.1727237552, 0.5507330298, -0.1992108673, -0.0610372163, -0.1994945109, -0.0663794875, -0.4897854328, 0.5394612551, -0.0980458409, 0.0153267309, 0.0874519944, -0.1252421141, 0.077776514, 0.446855396, -0.0799490884, -0.3376494348, 0.1285666674, 0.3639609814, -0.3346348107, 0.117863521, 0.4186064303, 0.4637769759, -0.0478550456, -0.1099586263, 0.1922906488, 0.2692981064, 0.1375143975, -0.2730715573, -0.2173586339, -0.1211929023, 0.3359743357, 0.0764829218, 0.2960463166, -0.0274232365, 0.2046490163, -0.2270864546, 0.5847335458, 0.2745043635, -0.0230414588, -0.0014801265, 0.3178348839, 0.3991070092, -0.2302641869, 0.1185982302, 0.0865183771, -0.3438405395, 0.0654721409, -0.0959147662, -0.0179030001, 0.1758669168, -0.2882618904, 0.1732368022, -0.2750515938, -0.1769230515, -0.3953580558, 0.0536460988, -0.0832119212, 0.160079062, 0.0639590994, -0.105544731, -0.2958189547, -0.1693475395, -0.3520297706, 0.2836635411, 0.2666340768, 0.0805595517, 0.3079221845, -0.0387130678, -0.251889497, -0.0421438888, 0.8338664174, -0.3788590729, -0.4378485084, 0.2242661119, 0.11276602, -0.1577359885, 0.0970956609, 0.1057934761, 0.1632110626, -0.0759413913, 0.5961185098, -0.1054952815, -0.1591190249, 0.5606846809, -0.0316053256, -0.085404329, 0.0484696776, 0.0277898572, 0.0359925181, -0.1967296153, -0.4320862293, -0.055567231, 0.3386977911, -0.135834679, -0.1920320541, -0.3072980642, -0.3666204512, 0.0244278554, 0.2055244893, 0.1794954091, 0.0950462893, -0.0820068568, 0.0414194688, -0.2957615256, 0.5316929817, 0.3902163804, -0.1822922379, -0.5838051438, 0.0246764831, -0.1763226241, 0.4705667198, 0.1444323659, 0.0501423478, 0.0679473653, -0.1717261225, -0.0821687207, -0.0484123267, 0.1831496507, 0.0039009508, -0.1674987972, -0.5671281219, -0.1095213145, 0.3092727065, 0.2783622742, 0.0711729303, 0.4819402695, -0.0583445765, -0.3044939041, -0.1575210989, 0.0009393489, 0.8850589991, 0.1260222495, 0.3311331272, -0.2262190431, 0.0032259864, 0.5198000073, 0.04783329, 0.2047701776, -0.1481339633, -0.124193795, -0.2646897435, -0.171202451, 0.2445561141, 0.2108684182, -0.3462068141, -0.0158082545, -0.1570596248, 0.2430430353, -0.0885987729, 0.1055440009, -0.1538318545, -0.4903745055, -0.0216168817, 0.0488247722, -0.0245371629, -0.30438146, -0.146135807, -0.1761860251, -0.1279933006, -0.0854798257, -0.1804277748, 0.0423260629, -0.1056611612, 0.0711870044, 0.3174976707, -0.3614894748, -0.2543598115, 0.0293074381, 0.1480717212, -0.0064472877, -0.0709302574, 0.0422560647, 0.0623025224, 0.1289050728, 0.0310268253, -0.053744778, 0.1355313659, 0.1384453773, -0.0861515924, 0.209097296, 0.1216169745, -0.4662894905, -0.0472950786, 0.0197881144, -0.188557595, 0.3184704781, 0.0496443734, 0.2659668624, 0.0081748907, -0.2457351387, 0.0697664395, 0.161101371, -0.1090483442, -0.0136900637, -0.0945161507, -0.2226869166, -0.1102862507, 0.5008260012, -0.0163832083, -0.074642688, 0.0070936694, -0.029204797, -0.0497544557, -0.1372650415, 0.1912908703, 0.1772452593, -0.4085431397, 0.0378796756, 0.0131658567, -0.3252490163, -0.2265711725, 0.4109409451, 0.1060938314, 0.478081286, -0.0085216537, -0.239745602, -0.3905127347, 0.0692643225, 0.1329519153, 0.3109382391, -0.0479525663, 0.3263031244, -0.1558869779, -0.2524101436, -0.3186053932, -0.1857455373, 0.0501373969, -0.0410269499, -0.0346875712, 0.183931753, -0.115859516, -0.1639675945, 0.2049785554, 0.1577212065, -0.0985303894, -0.1968847811, -0.1340303421, 0.1485395432, 0.1073058993, -0.2840133905, 0.150067389, -0.0432475582, -0.4669207335, -0.2316420674, 0.0755483657, 0.321916461, -0.2924267054, -0.0770315081, -0.0338762067, -0.1470321715, 0.2508569956, -0.105220519, 0.1271603256, 0.2297833264, -0.1485432088, 0.3913186193, -0.0452922694, -0.0981236845, 0.0812677741, 0.1626681834, 0.1188081205, 0.1618903428, -0.1216425151, -0.1106600836, -0.0631340668, 0.0554227792, 0.4006838799, 0.0205763485, -0.1196004152, 0.2616110146, 0.2204763889, 0.2098540515, -0.1823878586, -0.381121248, 0.1406419873, 0.2541771233, 0.3422209322, 0.1612046361, -0.0517608076, -0.0710427761, 0.2106889486, 0.0698184595, 0.2964715362, -0.2202168703, 0.3369920552, 0.2586956024, 0.0071609532, 0.1303486973, -0.0890476555, 0.3342758417, 0.4624050856, -0.0069999299, -0.2291440368, 0.173494339, 0.4945875704, -0.1835907102, 0.112067908, -0.1738145202, 0.0264863577, 0.2452171892, 0.0525417663, 0.3209809661, 0.3081975579, -0.1144996434, -0.0815670341, -0.0159732457, 0.009527321, 0.1592115462, 0.0778548717, -0.0503285415, -0.213049069, -0.265389353, -0.2309089154, 0.0890116841, 0.1550231725, -0.3399497569, 0.5834515691, -0.0975016728, 0.1491423398, -0.1184299141, 0.5540006161, 0.1860550344, 0.0896641538, 0.0470760055, 0.0783337355, 0.3469667733, -0.2284467518, 0.2433457673, 0.4025324285, 0.2854545414, 0.2740370035, 0.2811914384, 0.0306156203, -0.1462977231, -0.2365974188, -0.0283688977, -0.1163262501, 0.197151199, -0.3016255796, 0.2150506377, 0.2173686177, -0.0716043338, 0.2614806592, -0.0788995475, -0.0456439331, -0.4272869229, -0.0193385575, 0.0338473208, -0.2840413451, 0.1452048272, -0.0406890139, -0.0088731162, -0.392297864, 0.1160332784, -0.079072468, -0.0983599648, 0.0247812252, 0.0787741765, 0.2413949668, 0.3060615659, -0.1230453774, 0.127881065, -0.0186884124, -0.1987860799, -0.2602223456, 0.0422801562, 0.0991182104, -0.1305371374, -0.1737663001, 0.1883452088, 0.2380332649, 0.0759844035, 0.4585736692, 0.2235713154, 0.3961392641, 0.1671212018, -0.1709624529, 0.0779601261, 0.4045491219, -0.2439548969, 0.058864139, -0.2913271189, 0.3434559405, 0.2600005865, 0.065687865, -0.0603653155, 0.033598911, -0.1045138985, -0.1272337884, 0.2658383846, 0.144014895, 0.0529981591, -0.3452483118, 0.1761558354, -0.1152971685, -0.2272214293, -0.465447396, 0.1702620834, 0.1033772081, 0.1734027565, -0.4425381124, -0.222348094, 0.0486697666, -0.131554693, 0.1597056538, 0.1992394626, -0.3781607151, 0.5593157411, -0.0075791399, -0.120511435, -0.2674337029, -0.2030241042, 0.1023360044, -0.0259288233, 0.0333862007, -0.2070141286, 0.1993542165, 0.0469622016, -0.2782863677, -0.167605713, -0.056025207, 0.4199962318, 0.2059338838, -0.1958512962, -0.0618322492, 0.3006954789, 0.1444234401, -0.2298731357, 0.4396010637, -0.1456957459, -0.0754336119, -0.123263061, 0.0433046557, -0.0170350131, -0.2158040851, -0.0351697542, -0.5163918734 ]
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.6200823188, 0.1132395416, -0.1497739553, 0.1142357886, 0.1257235706, 0.203242749, 0.3956645131, 0.395901531, -0.0039552553, 0.2456054986, -0.2038998008, 0.3826509118, -0.0755911693, 0.5006219149, -0.4717247784, -0.0797578841, 0.1835413128, 0.7113133073, -0.5424259305, -0.0117650954, -0.2366657108, 0.0113503085, -0.3396613598, -0.3187687993, -0.5360066891, 0.2311907113, -0.0610607155, 0.0987927169, -0.3007907271, -0.2530790269, 0.3102915883, 0.3644461036, 0.0571104251, 0.1387692541, -0.0001069398, 0.0727543682, -0.0874107033, -0.1837271601, -0.2688951492, -0.2693293393, -0.5620740056, -0.2944659591, -0.0757340491, -0.0576738156, -0.0406844616, -0.3894326389, 0.0240069553, -0.3615784943, -0.0405687205, 0.1573863178, 0.2330460995, -0.0190541297, -0.1294505, -0.218372643, -0.0201019123, 0.3183129132, -0.0768046901, -0.173031956, -0.1243905425, -0.0206792653, -0.0104136858, 0.187127769, 0.1481387913, -0.1268915236, 0.0444812588, 0.1418747902, 0.3391286135, -0.465982914, 0.1633164138, 0.4161895514, 0.4659197628, -0.1859806031, -0.2017849684, -0.0357136503, 0.0992439687, -0.1593412161, 0.0639982745, 0.2853877842, 0.1368728727, 0.3058354557, -0.0108418381, -0.1034042686, -0.315492928, 0.2407758087, -0.2459397465, 0.5976782441, 0.1353766918, 0.0929062515, 0.082934618, -0.2302640378, 0.1642211974, -0.1872150004, -0.1841835827, 0.3217138946, -0.5415161252, -0.1199428737, -0.3733863235, -0.1350853294, 0.3298959136, 0.2463192195, 0.2044765949, 0.0405513048, -0.192494005, 0.2452626228, 0.2398510277, 0.0245794933, 0.4051343203, 0.1368655413, 0.0434726924, -0.2887252867, 0.2190428972, 0.0950888693, -0.3077246547, -0.6520454884, -0.3247910738, 0.0252017193, 0.0389828905, 0.1931321472, -0.1030317321, -0.1435530335, -0.0916430056, 0.1084326357, 0.055991631, -0.0860116705, 0.2221773565, 0.7616556883, -0.0534542575, 0.1921384335, 0.1734065264, -0.2751090527, -0.1755377054, 0.1871214807, 0.1160214543, 0.0174794011, 0.1904695332, -0.1842019856, -0.044970911, 0.314483583, 0.3391456902, 0.1827118993, 0.1533745229, -0.2209473699, 0.2149470299, 0.2782846987, 0.0714070201, -0.0948674753, 0.0562413633, -0.1682217121, -0.0141856661, 0.3145473301, -0.1227613017, 0.0353897624, -0.4891706705, 0.2089893967, -0.2008128017, -0.046364747, -0.2499529719, 0.3336356282, -0.1040292308, -0.0500907637, 0.0291796569, -0.0175051987, 0.0748190656, -0.1127747819, 0.1682956815, 0.1064414531, -0.2814207077, -0.0691356733, 0.1847223043, -0.4150512516, -0.0711696595, -0.0134754684, -0.036035154, -0.315264523, -0.1420896053, 0.2441548556, 0.4369241297, -0.4175728261, -0.0972497091, -0.0296997614, -0.2238774598, -0.1285273284, 0.2407666296, 0.123224102, 0.1626571715, 0.1246634573, 0.1226341277, 0.1622514874, 0.0343249589, 0.0087950798, -0.0435843281, -0.2390635312, 0.381972611, 0.1639903486, -0.0783881024, 0.1224677563, 0.1311316937, -0.4837784469, 0.4867561162, -0.397892952, 0.2967704535, 0.1409303099, 0.2017505914, -0.4265710413, -0.0140510453, -0.0838255882, -0.5214067101, 0.0832033753, 0.0862971544, 0.2248170674, 0.0663843155, -0.2890556753, 0.0348981507, -0.2273229808, -0.060260538, 0.0564958118, 0.2055268288, -0.0045350511, -0.121668078, -0.1537705958, -0.351880461, 0.3766275048, 0.1587488353, -0.1154479235, -0.117099084, 0.2699811757, 0.176897943, 0.1353301108, -0.0552102029, 0.2202475667, -0.0084874425, -0.1499313414, 0.251857698, 0.5035153627, -0.2917838097, 0.0623999499, 0.2550007105, 0.207112208, 0.0982294828, 0.0081176786, -0.1666462719, -0.4425746799, 0.0584746301, 0.0448830277, -0.1063393354, 0.6201356649, -0.369985193, 0.0314685553, -0.0144054061, 0.1793006808, 0.3834829032, -0.0434763879, -0.4043264389, -0.3500224054, -0.0427922495, 0.3511185944, -0.1354759932, 0.2653810978, -0.1887798458, 0.1107139364, 0.2804255784, 0.0704486445, -0.0874780044, -0.2053278834, -0.2089478076, 0.1277800947, 0.3520625234, 0.1063212976, 0.3652785718, 0.3536134064, -0.1055597737, 0.1605370194, -0.2328376919, -0.036788635, 0.1600502133, -0.1095189601, 0.1294084042, 0.5694359541, 0.3345157504, -0.1547617167, -0.2027949095, -0.3446967602, 0.0545790717, 0.3210366666, -0.1644708812, -0.1237167567, -0.3376927674, -0.0289666466, -0.0205562469, -0.2282093018, -0.1973007768, -0.174750343, 0.0097845467, 0.1202019751, -0.0833289921, 0.5366842151, -0.2834309042, 0.3671419919, -0.1475297809, 0.0455882698, -0.0810190216, 0.1155287325, 0.1502857655, 0.1537220031, -0.0949315503, -0.0600871518, -0.0542417988, -0.1520799696, 0.1689739823, -0.2086489648, -0.0228293743, 0.0750805512, 0.0956626981, -0.4917036593, 0.1373926699, 0.0581363365, -0.1652501523, -0.0315137282, 0.118532151, 0.4089569151, -0.1036079675, -0.0026435037, -0.1406345069, 0.1124784052, -0.3971732557, -0.0300065782, -0.2158598602, -0.3724109828, 0.2106262892, 0.194696784, 0.2574152052, 0.1328767985, 0.4780388772, -0.1940966696, -0.0909744874, -0.1697711945, -0.0309558846, -0.4245988727, 0.4616804719, -0.0298401434, -0.0371076316, 0.160721913, -0.1619767547, 0.1664905399, 0.4515378475, 0.0763074905, -0.2016095817, 0.1102220491, 0.2375045568, -0.3646522164, 0.0101897577, 0.3265556991, 0.3919830322, -0.0877715498, -0.1209306717, 0.1506009698, 0.302724272, 0.0087930243, -0.2549481392, -0.245911479, -0.1872359663, 0.2631952465, -0.1249642372, 0.327734381, -0.108265087, 0.1255530566, -0.1994956434, 0.4069365859, 0.3109948635, -0.0276982356, -0.1179935783, 0.2570595443, 0.3770460188, -0.0890035853, 0.1365220994, 0.1633623391, -0.2239508331, 0.0821330473, -0.1582342684, -0.1031017303, 0.1620392054, -0.3506245017, 0.2318836302, -0.2672049105, -0.119649075, -0.2770113945, 0.1028711349, -0.1344165057, 0.2083797753, 0.022684034, -0.1044850349, -0.2123043984, -0.1270283163, -0.2655829489, 0.2473721504, 0.1132123694, 0.2012474537, 0.3306746781, -0.0520224124, -0.2196620107, -0.0646095797, 0.8043141365, -0.1964744478, -0.2649792731, 0.2764644325, 0.1832421273, -0.2816005051, 0.0588714071, -0.0003238427, 0.1411296576, -0.1500122249, 0.6463132501, -0.1053606719, -0.2349707931, 0.3337990642, 0.035672877, -0.026949754, 0.0496500656, 0.0313545689, 0.0973664969, -0.1070192531, -0.359657824, 0.0260894652, 0.426648885, -0.2164449692, -0.1124902591, -0.2984730005, -0.3305152655, 0.092070058, 0.2017969936, 0.2636722922, 0.0238039624, -0.1854527295, 0.0843252018, -0.108509779, 0.5909474492, 0.2734283507, -0.0902700201, -0.5555425286, 0.0161081962, -0.2124793231, 0.3017392755, 0.0445834734, -0.0492894202, 0.0913477167, -0.2318297774, -0.08637546, -0.0627542287, 0.221253559, 0.0731514245, -0.0394285694, -0.5384454727, -0.1915698946, 0.2679325342, 0.2278107703, -0.0005600526, 0.3381003737, -0.0664311945, -0.3769416213, -0.0578934662, 0.0016405511, 0.7042247653, 0.1960828602, 0.2802121341, -0.0452647023, -0.0734536201, 0.4230073094, -0.1159622148, 0.3017451167, -0.3229176104, -0.171275124, -0.2338219434, -0.11164698, 0.278731674, 0.3182134628, -0.3091919124, -0.0227292869, -0.3546569347, 0.2063694596, -0.0992074013, 0.0684023723, -0.1414732933, -0.3997261822, -0.2292435914, 0.0932907909, -0.0462398119, -0.3588960767, -0.2243016213, -0.1141458303, -0.0944371074, 0.0363020897, -0.1164588854, -0.0166977346, -0.0416435152, 0.0535577945, 0.1420467794, -0.2721471488, -0.1693539917, 0.1830169111, -0.0191533472, -0.0161073711, -0.0831820592, -0.036256291, 0.0723042488, 0.161673665, -0.0199308842, -0.0701222494, 0.0358036682, 0.1406972557, -0.1232457832, 0.0843950361, 0.116562821, -0.2221610844, 0.0868037492, 0.130159393, -0.2665665448, 0.0771871731, 0.0197353624, 0.0916164741, 0.1281282157, -0.1698985994, 0.1342814267, 0.1671475917, -0.1286482364, -0.0165016614, -0.1649948657, -0.2615964413, -0.1177314669, 0.6089307666, 0.0195698813, -0.0570773296, 0.0621193461, 0.0503903925, -0.1109853014, -0.2298909426, 0.2489141822, 0.2228280455, -0.3753673732, 0.1541318148, 0.1678533256, -0.20250009, -0.1807568371, 0.331397444, 0.0607087724, 0.466771096, 0.0213508289, -0.3434013426, -0.3806179464, 0.1042640582, 0.115520671, 0.2782459855, -0.027832007, 0.222575292, -0.1813858598, -0.3636706173, -0.3565866351, -0.0849395171, -0.0004003671, -0.012431778, 0.0026946708, 0.1050575674, -0.1492238641, -0.0949684009, 0.279611975, 0.0400898196, -0.1153400689, -0.2759157121, -0.0686291382, 0.081515111, 0.1414376944, -0.2460022718, 0.142093733, 0.0204801615, -0.4042542577, -0.3431594968, 0.0698392615, 0.4484347105, -0.231834203, 0.1061021686, 0.0223235525, -0.0160912126, 0.097461015, -0.114871338, 0.1849146783, -0.120010145, -0.1341989934, 0.3616339862, -0.0978327468, -0.0388588794, -0.0022238304, 0.1870062053, 0.0968812257, 0.0798410401, -0.0928241536, -0.0740219578, -0.0172479656, 0.1759511232, 0.4340109825, 0.153368026, -0.0640263632, 0.2420131862, 0.1094630212, 0.3031439483, -0.2127269506, -0.353236407, 0.222048685, 0.3588957489, 0.3141607642, 0.0558181293, -0.0908033326, -0.2506697476, 0.0678111091, 0.050198365, 0.2047774494, -0.1698722094, 0.3834699392, 0.4358230829, -0.0294314176, 0.1261445135, -0.0136494553, 0.2723966539, 0.4389004707, 0.3103131354, -0.1143632606, 0.1330091506, 0.5196547508, -0.21226044, -0.1784766018, -0.2729003727, -0.0640007034, 0.2034417838, -0.0655437782, 0.0750014633, 0.2460419685, -0.1240103692, -0.0699604377, -0.0658296943, 0.0619356558, 0.063964434, -0.0822218359, -0.1166549772, -0.2260522097, -0.2981688678, -0.1549361497, -0.0022588531, 0.0914165154, -0.1644557863, 0.4076095819, -0.1368979514, 0.0725943074, -0.1749767661, 0.5676487684, 0.3037235439, 0.0145082893, 0.0808503777, -0.0271640103, 0.4270550311, -0.066324532, 0.3073721826, 0.2212706506, 0.2742753327, 0.2930246592, 0.2621852756, -0.1128536537, -0.2860123515, -0.1186677441, -0.119019568, -0.1276036203, 0.1903666407, -0.2001358718, 0.2976948619, 0.2840932906, -0.136968106, 0.1918233186, -0.1167659611, 0.0572094284, -0.4939646721, -0.0611631908, 0.0196014717, -0.3098632097, 0.1819343716, -0.0679013655, 0.0519444644, -0.4709716141, 0.0641250089, 0.114700295, 0.0574923158, 0.0310805775, 0.1373213828, 0.1497324854, 0.2665429711, -0.1925778687, 0.0749788284, -0.1077987179, -0.15719226, -0.3030641675, -0.0121721728, 0.1811228395, -0.1273794919, -0.2198210508, 0.1420226246, 0.1640562415, -0.0186319016, 0.3867000639, 0.3028850257, 0.4080854058, 0.1749008894, -0.2060693949, 0.0816558525, 0.2137493491, -0.1575514227, 0.0261630211, -0.330925554, 0.2674061954, 0.3030886352, 0.1588626355, 0.0156213036, 0.0574565493, -0.0373788774, -0.2359871566, 0.1922113597, 0.1937491447, 0.1685364693, -0.234207958, 0.2491451204, -0.2890504599, -0.1645460576, -0.4667682648, 0.2209826559, 0.0836228803, 0.2395304739, -0.3569458723, -0.1498154402, 0.0817292333, -0.1276066899, 0.0964067206, 0.3045402169, -0.3017324805, 0.5580817461, 0.1114962399, -0.1556446105, -0.2687894702, -0.1030102521, 0.0534993224, -0.0644027814, 0.0059629441, -0.1904580444, 0.1649000794, 0.0615108088, -0.3933856189, -0.2425926328, 0.0094967708, 0.2682800293, 0.1611190885, -0.0859817937, -0.1158315316, 0.3000069559, 0.072887741, -0.3006668985, 0.1787550747, -0.209493354, -0.0793692544, -0.1268154383, 0.0100364834, 0.0115270074, -0.2517705858, -0.1031507626, -0.4564324915 ]
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.3484050333, -0.0351736099, -0.1219938993, 0.0604967214, 0.1725976467, 0.0918550342, 0.3840518296, 0.3609428108, 0.0169329289, 0.3619816005, 0.0030050878, 0.4973300993, -0.1567095369, 0.5172731876, -0.3565700352, -0.1661899537, 0.1776000112, 0.7238047123, -0.4239692092, 0.0119395582, -0.2513479292, 0.0003017671, -0.4031875432, -0.1789038479, -0.3692487478, 0.2398509532, -0.0626368001, -0.1479698569, -0.1530627161, -0.3112289906, 0.3284269571, 0.0878707692, 0.1952239126, 0.0122890398, -0.0001191998, -0.0108592408, 0.0415534675, -0.1125790402, -0.2453656942, -0.3221569359, -0.4053148925, -0.497977525, 0.2271567136, -0.037843857, -0.039066162, -0.5209643245, -0.1310440302, -0.4387721121, -0.0303989444, 0.2519804835, 0.1772931963, -0.0298094135, -0.0708884895, -0.0822864175, 0.0069345459, 0.2928185165, -0.2658261657, -0.2799834907, -0.1053103581, -0.1982266754, 0.1226945221, 0.2715044022, 0.1151820794, -0.0590899624, 0.1243962497, 0.1927007437, 0.4056870043, -0.5003892183, 0.1288586259, 0.3248576224, 0.5749334693, -0.2733678818, -0.1551249623, -0.0996266082, 0.4653522372, -0.0741727948, -0.0730668679, 0.1629957855, 0.0500216335, 0.1906057, 0.1351309419, -0.1057222188, -0.3829078078, 0.3393298686, -0.0798393637, 0.5351188183, 0.0546735898, 0.1881547719, 0.2290107161, -0.100535959, 0.2734646201, -0.0220017955, -0.0882297456, 0.4876590371, -0.7353639007, -0.0565520637, -0.1842577606, -0.1495025307, 0.0795144439, 0.242155686, 0.2245167792, 0.0926509425, 0.0213930886, 0.0912516788, 0.2350981981, 0.2246276885, 0.3509422541, 0.3787028193, -0.0325111523, -0.2437982261, 0.3597438037, 0.0425396152, -0.3643558919, -0.5424801111, 0.01701154, 0.0181892943, 0.2261970937, 0.122650899, 0.0239372663, -0.2209314704, -0.1189647913, 0.0870718285, 0.0508956984, 0.0251881555, 0.1460366994, 0.9004566669, 0.0120816212, 0.3414287865, 0.229505375, 0.0137567949, -0.1139786243, 0.056917388, 0.1438237578, -0.0556243993, 0.2048874795, -0.0913903043, -0.2196102589, 0.3884478807, 0.2302770317, 0.0550047979, 0.149192512, -0.2047066838, 0.3219254613, 0.2805395126, -0.0968059972, -0.1261661649, 0.205571413, 0.0623705722, -0.0557905994, 0.4711824954, -0.2314357609, -0.1000724509, -0.4651689231, 0.0941775739, -0.1046972275, 0.0153279426, -0.1906227171, 0.2959981561, -0.185953021, -0.0435082316, 0.1876230091, -0.0357851759, 0.2972154319, -0.1553348303, 0.1612838805, 0.0049319472, -0.3409699202, -0.1471391618, 0.0910135061, -0.3876316249, 0.0534614511, -0.2109614462, -0.1383633316, -0.3526223898, 0.0315906852, 0.0757281408, 0.5826777816, -0.344673872, -0.0554097593, -0.086099565, -0.2328720242, -0.1188209504, 0.251083225, 0.0848357081, 0.1563538164, 0.3511502445, 0.0567252636, 0.1157440618, 0.154999584, 0.0601841807, -0.0310866535, -0.2949574292, 0.3611494005, 0.0845940039, -0.1838752627, 0.187229827, 0.1451584399, -0.6566545963, 0.4483215809, -0.2873116434, 0.2504685223, 0.0672573745, 0.2859599292, -0.3821873963, 0.1760791689, 0.0115002654, -0.510351181, 0.0093305362, 0.0709225088, 0.0939123333, -0.1279548705, -0.1896887422, 0.0881058946, -0.0501626655, -0.0020471846, 0.1332370341, 0.0746655017, -0.1537557393, -0.0137523618, -0.0632732436, -0.514172852, 0.2657356262, 0.0369734541, -0.0585437343, 0.0747814402, 0.1293304563, 0.3989733458, 0.0104728471, -0.0507493019, 0.2513029873, -0.0305067841, 0.0026415267, 0.1037913859, 0.4819200039, -0.2660455704, 0.0595246106, 0.0792402625, 0.1076504514, -0.0076673343, 0.1580848694, -0.0221198667, -0.4409919083, 0.1242803633, 0.0762316957, -0.0412998497, 0.6403236389, -0.3575991392, 0.3346844316, -0.1100430712, 0.1808682233, 0.1615354866, 0.0231889021, -0.4258247316, -0.408821255, -0.0126212854, 0.0484393537, -0.0436071344, 0.055850029, -0.1431514174, 0.1709881723, 0.1125745252, 0.1262000054, 0.0519078895, 0.0012858828, -0.1522818804, 0.1239791736, 0.3801655173, 0.1782368273, 0.3607853651, 0.2986898422, -0.2555091679, 0.0794028193, -0.2633960545, 0.0075090644, 0.1795021147, -0.1009884402, 0.1762391925, 0.4263387918, 0.3166390359, -0.2478161156, -0.0401936136, -0.2858069241, -0.080619894, 0.3229049444, -0.1934483647, -0.0563694537, -0.2910395563, 0.0493003279, -0.050006561, -0.2946994901, -0.0211713128, -0.1120549217, -0.1554310769, -0.0364157483, -0.0193310939, 0.3741750419, -0.493070811, 0.355917424, -0.2469775677, -0.1339384764, -0.1379536986, 0.0090173976, 0.1622430235, 0.0472505689, -0.372303158, -0.0139806326, -0.1844156533, 0.1461014897, 0.3058329225, -0.0948383138, 0.1029906124, 0.0089050606, 0.0370653644, -0.5876758695, 0.1067020223, 0.0269411784, -0.2069619894, -0.040931046, 0.1177265719, 0.2338815928, 0.1125556678, 0.2097987235, -0.0109645016, 0.1404884607, -0.2592791021, 0.0035888872, -0.2987800241, -0.2682061791, 0.2431945503, 0.1682781279, 0.2570117116, -0.0250567961, 0.5799673796, -0.0892567486, -0.1376329958, -0.1850082278, -0.0082031665, -0.2557286918, 0.4852347672, 0.1104867756, 0.1025685817, 0.0995438024, -0.0862704664, 0.0467194729, 0.4133327603, 0.0534079187, -0.1445581317, 0.0527913459, 0.2172710001, -0.513222754, 0.1616336554, 0.4702358246, 0.5106546879, -0.0310233273, -0.043308951, 0.1809469163, 0.2171827108, 0.0877059251, -0.2157237679, -0.1919554472, -0.0750130489, 0.0424115174, -0.1768641174, 0.3741517365, 0.0440555401, 0.1584656984, -0.2632227242, 0.400131762, 0.2265397757, -0.1207540482, -0.2325463444, 0.1497762054, 0.4359630942, -0.2546739578, 0.0710949823, -0.0624024644, -0.2544449866, -0.0384760015, -0.0993880555, -0.036938943, 0.2689316869, -0.4602845907, 0.310015738, -0.369374305, 0.0572333187, -0.3677943051, 0.0736622661, -0.1651510447, 0.0835069865, -0.0003400225, -0.1691706926, -0.0650746077, -0.3578389883, -0.3593355715, 0.2574384511, 0.0695170686, 0.3801532984, 0.3835256994, -0.1553501934, -0.0204755459, -0.0836836994, 0.571402669, -0.156204924, -0.4705402553, 0.2725017965, 0.2294002324, -0.3887182176, 0.0548178889, -0.0953000337, 0.1669646651, -0.5454440117, 0.5598386526, -0.0703087673, -0.2177533805, 0.4023015499, 0.1158302799, 0.0991186053, 0.0258434415, -0.0698377863, 0.3210977316, -0.0830855072, -0.2661032975, -0.1717464179, 0.3820980191, -0.1190673783, -0.0910447091, -0.3985783756, -0.4091424048, -0.088482663, 0.2239568681, 0.3877211213, -0.0640557781, -0.2556831241, 0.2702805102, -0.3332702816, 0.3518732488, 0.1304448843, 0.0350075364, -0.5236519575, -0.0468705632, -0.1196567193, 0.4337211251, -0.022080576, -0.2208115458, 0.2770231068, -0.2694505453, 0.1267732829, 0.0521561541, -0.1338441223, 0.1665180475, -0.0097456798, -0.4315811694, -0.2191573828, 0.3486343622, 0.1353697777, 0.0084241647, 0.6973348856, 0.0833864734, -0.2565926313, -0.0252845027, -0.0733767301, 0.7857355475, 0.3151417673, 0.1289800704, 0.1136045009, -0.1776081026, 0.335288316, -0.0529931299, 0.3411027491, -0.2741166353, 0.0570813492, -0.2420926392, -0.0834376588, 0.402131021, 0.1842038035, -0.3846099675, -0.0006985241, -0.470416218, 0.0434356071, -0.0910092369, -0.0349008851, -0.0610844567, -0.4337598979, -0.3539849222, 0.0192391556, -0.0836381018, -0.2131684721, -0.1475098729, -0.0658610538, -0.098174423, 0.0158096738, -0.1265792549, 0.0224881005, -0.1242731735, 0.0267803073, 0.2064048201, -0.4968129396, -0.1666461378, 0.0748852566, -0.1950946301, -0.0776572227, -0.1020541042, -0.1442985833, 0.218164742, 0.15472579, 0.0675877482, -0.1068941653, -0.0902713612, 0.1711310148, -0.4106579423, 0.2953501642, 0.0785986409, -0.356329143, 0.2157660574, 0.1351615191, -0.2114055157, 0.0175466277, -0.0476078428, 0.1775497347, 0.1961910427, -0.1308623552, 0.1119000688, 0.245672226, -0.0513117798, 0.0592195354, -0.0775819495, -0.4195981622, -0.1293431073, 0.5261605382, 0.0439897627, 0.0712044612, 0.1582731903, -0.0439690761, -0.1154846624, -0.199578017, 0.2184595168, 0.3122900128, -0.4885492027, 0.1014291644, 0.3493882418, -0.1719634086, -0.1115617603, 0.2508732378, -0.1002790704, 0.5149900913, -0.3174566031, -0.3425139785, -0.2884970903, 0.1409843862, 0.2614493668, 0.141651541, -0.1929022968, 0.0557605661, -0.0528505333, -0.3349051178, -0.2467560768, -0.2235088795, 0.1084795147, 0.0367373899, -0.0551150292, 0.170183748, -0.0315224156, -0.132148385, 0.2110213786, -0.0566481054, 0.0468340702, -0.2108979672, -0.0269655474, 0.1197662503, 0.0379404277, -0.1967041194, -0.0256896764, -0.211413458, -0.4215813875, -0.3005754352, -0.0577733777, 0.3900690973, -0.2933139503, 0.19272995, 0.0073894546, -0.1262218058, 0.0584376715, -0.1333050728, 0.1063781232, -0.2697786391, -0.1290734857, 0.311558187, -0.0146955345, -0.0239920374, -0.1153494641, 0.1420281082, -0.0804170817, 0.150846675, -0.1009420529, -0.0178987738, 0.1060811132, 0.0043391553, 0.2145279646, 0.1985800266, 0.0695897862, 0.1378552765, 0.1196548268, 0.1944484562, -0.255089879, -0.3299838603, -0.1221534014, 0.471221, 0.2662368417, 0.0889462829, -0.3071504831, -0.1714678258, 0.2530726492, -0.03500304, -0.0061067441, -0.3235417008, 0.3857972622, 0.5572220683, 0.1179559305, 0.059588708, 0.0396980979, 0.1406225264, 0.3361614048, 0.1338007897, -0.1947598904, 0.0111883627, 0.6011149883, -0.1956801265, -0.324470669, -0.2275512367, -0.1771328449, 0.0576401502, -0.3520770371, 0.0259017367, 0.2534101307, 0.0475107282, 0.0037973032, 0.0382116064, 0.0047172843, -0.0491012372, -0.0333117507, -0.1532092392, -0.1339407563, -0.1807447225, -0.0390093327, -0.1634121239, -0.0081549967, -0.0364504978, 0.5291032791, -0.0122988587, 0.1284840256, -0.2611065507, 0.637209475, 0.402497232, 0.2966768146, 0.1472109854, -0.0721086413, 0.2510965765, 0.1226371825, 0.1405625045, 0.1009419411, 0.2281176746, 0.3508399725, 0.1949284822, -0.0105886869, -0.1840800047, -0.152350843, 0.1153997406, -0.0542163514, 0.2688621581, -0.1554083526, 0.0373205915, 0.2149942815, -0.1238100529, 0.1923078448, -0.2610240877, 0.0407704115, -0.5898840427, 0.2387279719, 0.0548740514, -0.3407075107, 0.0447937176, 0.1309804916, 0.1003147513, -0.2478526533, 0.1044543311, 0.1209601536, -0.2225829959, -0.0895206705, 0.0841976032, 0.115096271, 0.300142467, -0.3738718629, 0.191010505, -0.1773017794, -0.0435480252, -0.1761846244, -0.1203372404, 0.0298219267, -0.2808217704, -0.0348401107, 0.156649068, 0.1548452675, -0.0142833767, 0.4911925197, 0.3564314842, 0.2708082199, 0.1197313741, -0.1729992181, 0.1104136333, 0.1908466816, 0.0002533086, 0.0117305629, -0.4289303422, 0.3420016766, 0.2795121968, 0.0535212308, 0.0645615011, 0.0777077004, 0.0041041085, -0.1786302477, 0.41604352, -0.0091127073, 0.0227228533, -0.0563519858, 0.3888106942, -0.3106724024, -0.1244542748, -0.2836522162, 0.3805930614, 0.1252901405, 0.077666834, -0.3122364283, -0.1756629646, 0.068474859, -0.1056554019, 0.0410509333, 0.3822817504, -0.0377191901, 0.5629079342, 0.2832455039, -0.1616648436, -0.3342677355, -0.2283575982, 0.1190135702, -0.0508761592, 0.0048649334, -0.1859397441, 0.0442820042, 0.0811176375, -0.4008436799, -0.0934761018, 0.1942816377, 0.2948790193, 0.0456388518, -0.3090930581, -0.1178348958, 0.2098562866, 0.1142396629, -0.2594253421, 0.1607901007, -0.1314876527, 0.1261089295, -0.0699983314, 0.1405728757, -0.0546758398, 0.071230799, -0.1971195638, -0.4769252539 ]
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.5330204964, 0.3033459485, -0.0301636867, 0.0675024912, -0.0625750422, -0.0582221225, 0.2094468921, 0.4255704284, -0.0745845661, 0.1827807128, -0.1869084686, 0.7275899649, -0.1599381715, 0.572449863, -0.2195646316, -0.2587186992, 0.1644585133, 0.6102406979, -0.5832623839, 0.2564370036, -0.2590902746, -0.1035274863, -0.3908790052, -0.2035315335, -0.4795861244, 0.2016779035, -0.2737202644, -0.049015373, -0.2796462774, -0.325338304, 0.3125084043, 0.2397162467, 0.1502657384, 0.2005508244, -0.0001199671, 0.1369436532, -0.1574163586, -0.1425994635, -0.2051130384, -0.3425647914, -0.2079405189, -0.4237654507, 0.1109851971, 0.0214355998, 0.050926201, -0.3994390666, 0.0115840174, -0.2094818652, -0.0847178251, 0.0106310695, 0.1065383479, 0.2030961066, 0.1404251158, -0.0321108699, 0.1800278127, 0.2532159686, -0.27826038, -0.0167417154, 0.1530689895, -0.2789543867, -0.0680211931, 0.0427839868, 0.078021042, -0.1596899033, -0.1154882088, 0.2264121026, -0.0171626043, -0.4759059548, 0.0099782674, 0.320173353, 0.5716279149, -0.4608496726, -0.3677832484, -0.2338828146, 0.2534553409, -0.2218376249, 0.00012722, 0.3750633001, 0.0167705677, 0.2371691316, 0.1775351167, -0.0572860539, -0.3395475745, 0.2411714494, -0.019035697, 0.4345145226, 0.191094175, 0.2638529539, 0.2380314916, 0.0664342567, 0.1477769166, -0.0472185761, 0.0093138143, 0.3843117654, -0.5604681969, -0.0574879646, -0.0918808207, -0.233123228, 0.3174954355, 0.3900788724, 0.1542619914, 0.1787299514, -0.2172388881, 0.1800463051, 0.3443222046, 0.080648534, 0.1206248254, 0.1088649407, 0.0886457413, -0.3576654494, 0.2269133329, 0.1656295061, -0.2526624203, -0.4635508955, -0.1971272081, 0.0083355159, 0.0876554325, 0.3238951862, 0.0359359942, -0.1849304587, -0.1439827681, -0.0253476053, -0.0368296653, -0.0154863708, 0.0473192781, 0.6687632203, -0.0877526328, 0.3547268212, 0.058144398, -0.2263709456, 0.0241897218, 0.1549755931, -0.1172147691, 0.0183611549, 0.282097578, -0.2173438817, -0.1762046069, 0.3253813088, 0.2179028839, 0.3356546164, 0.1447254717, -0.3521078229, 0.2080586106, 0.2606722116, 0.0259194095, -0.239060849, 0.1745026708, -0.2554290891, -0.1124655828, 0.507558465, -0.080998756, -0.1647181064, -0.5950245261, -0.0452265069, -0.2724873424, 0.0383550376, -0.4368534386, 0.411459744, -0.1237176508, -0.1192980856, -0.0507043712, -0.0770142451, 0.1889914423, -0.3673183024, 0.1948675066, 0.1620832235, -0.4798494875, 0.066773124, 0.2755305171, -0.2665071785, 0.161333099, -0.0931986943, -0.1369090825, -0.1783188879, -0.0251090564, 0.4001129866, 0.3169252872, -0.1422623843, -0.1286441684, -0.2277920693, -0.1653326452, 0.098372981, 0.2961517572, 0.1404905617, 0.0227770954, 0.2862356901, 0.0302666537, 0.199199304, 0.0826273039, 0.0302404054, -0.0266127344, -0.2715085149, 0.4335520864, 0.2305368185, -0.0026217587, 0.016592769, 0.2031265795, -0.8441977501, 0.4641340971, -0.3334347606, 0.3690649271, -0.1239213347, 0.2949066758, -0.2296961695, -0.0010065917, -0.2239661813, -0.5165888667, 0.2283263057, 0.0090549225, 0.3067690134, -0.0804104581, -0.2215371579, 0.2335235775, -0.0019998064, -0.0799393132, 0.0808481872, -0.0164997708, -0.0548755042, 0.1699635088, -0.1656709611, -0.4816544354, 0.2382018417, 0.1083153412, -0.071528703, -0.077339232, 0.3713352382, 0.1570250541, -0.0870871171, -0.1743693203, 0.3615192175, -0.0181470141, -0.0206052009, 0.3296246231, 0.4635334015, -0.1377494037, -0.1679189801, 0.1001983583, 0.1087242737, -0.0209428761, 0.0529411845, -0.0277977269, -0.6245054603, 0.1870195717, 0.050229229, 0.0945489705, 0.712330699, -0.3065619469, 0.0765166432, 0.0154874194, 0.0544217043, 0.2053553462, 0.0487106517, -0.2358561456, -0.20406802, -0.0640039742, 0.4038103521, -0.1281860769, 0.1696960628, -0.5598101616, 0.1875689924, 0.3318055868, 0.0576812886, 0.060553275, -0.0258671623, -0.062616758, -0.0101344455, 0.2175337374, -0.0440560319, 0.4475497305, 0.2890943885, -0.0274711829, 0.0343548506, -0.3288682103, 0.0302778408, 0.1246182621, -0.1124886349, 0.1410585344, 0.4801804721, 0.3467619121, -0.0932762623, -0.0006992163, -0.2700634599, 0.1327153295, 0.2761547565, -0.2611797452, -0.1646777093, -0.5461025834, 0.1018721536, -0.1480002403, -0.4510301948, -0.0060999263, -0.0652494654, -0.0083424728, 0.1660648286, -0.1294542551, 0.3992394805, -0.3121033907, 0.3103449643, -0.4550035, 0.0091783321, -0.138647601, -0.0753175989, 0.0793842077, 0.0230256319, 0.0066540032, -0.1259336323, -0.1095998436, 0.0941341519, 0.100910306, -0.1167372465, -0.0924801305, 0.0472542495, -0.1176144779, -0.2593384683, 0.1583617926, -0.0850254074, -0.1846012175, -0.1618712246, 0.0596691668, 0.289907217, -0.1702335775, 0.1635431647, -0.0480609238, 0.1415768862, -0.26361233, -0.1541387737, -0.32442379, -0.2585851848, 0.4762245119, 0.081650421, 0.2547366321, 0.029735839, 0.4941405058, -0.0699384734, 0.0058189747, -0.0565870889, 0.0685967505, -0.248099789, 0.4400026798, -0.0790255144, -0.1334137321, 0.0509740338, -0.2691562474, 0.0301826224, 0.396905452, 0.0643417835, -0.0442863367, -0.0039544008, 0.5810075998, -0.2796829641, 0.2266358584, 0.4895676374, 0.5526220202, 0.0019504098, -0.0365977101, -0.0019032055, 0.1531605422, 0.2148160636, -0.3528676033, -0.0444394425, -0.2058767825, 0.2725042105, 0.2232830077, 0.0741395578, -0.055319, 0.4579608142, -0.2235923707, 0.4109124541, 0.1331112236, -0.1093589664, -0.1176005304, -0.1932199448, 0.4728287756, -0.2240553349, 0.0294254031, -0.0382612906, -0.2882138491, 0.0738228932, -0.3293465972, 0.0006597082, 0.387414515, -0.2322068959, 0.1698437482, -0.2407620698, -0.149923563, -0.3715639412, 0.118047744, -0.2668704987, 0.0060680313, 0.1096710786, -0.209991917, -0.186821878, -0.413724035, -0.4379822016, 0.2904356122, 0.2337205857, 0.1537480205, 0.4324121475, -0.2906362712, -0.0364419259, -0.1638886184, 0.8776164055, -0.0471250042, -0.4652527571, 0.3030637801, 0.0765907615, -0.3506368697, 0.0472700931, 0.048173897, 0.3198087215, -0.346221745, 0.3192035556, -0.2881579697, -0.2275658697, 0.3936284482, 0.1990341693, 0.0815922618, 0.08937186, -0.1340240091, 0.0799695626, -0.058495976, -0.268522799, -0.0878795162, 0.4243325591, -0.3054557145, -0.0423196182, -0.3029095531, -0.225166291, -0.0679944232, 0.2495988458, 0.3446759284, 0.0142230289, 0.0559497438, -0.0384296328, -0.0930849388, 0.5758818388, 0.3656631708, -0.1264255792, -0.3438641727, -0.0423654094, -0.0791726783, 0.4678762555, -0.1007188931, 0.0841258839, 0.3410399854, -0.288405925, -0.0456497669, -0.1305135041, -0.0745451823, 0.0298495479, -0.0139245531, -0.4618701637, -0.2557640076, 0.3674502075, 0.1260501593, -0.0256795213, 0.4639908075, 0.082980521, -0.1904275715, 0.0207841061, 0.0098595126, 0.8966765404, 0.0596233085, 0.2757003009, 0.2567474842, -0.2981206179, 0.3558063209, -0.1812599599, 0.3097743094, -0.3066487312, -0.029555589, -0.2604187429, -0.1996923983, 0.3407329619, 0.224989906, -0.3719779551, -0.0644297004, -0.3056954741, -0.2230792642, 0.0173066482, 0.0808955655, -0.0234189704, -0.4417957366, -0.1849947274, -0.0637985319, -0.106013976, -0.3592421412, -0.1693647057, -0.0410866104, -0.1509800404, 0.0985205472, -0.2436624616, 0.0995114595, -0.0247102845, 0.1652134955, 0.3316886425, -0.3736481369, 0.0339354239, 0.2207984477, -0.2576708794, -0.224319905, -0.0132427281, -0.09695407, 0.1727022678, 0.1069506183, 0.1969633549, -0.1576109231, 0.201495856, 0.1474809647, -0.4610095024, 0.177836448, -0.0069199447, -0.4613772333, 0.1420337111, 0.2087974548, -0.0012903454, 0.0477045663, -0.0021937636, 0.3976417184, 0.239709422, -0.263053149, 0.0156451613, 0.3175116181, -0.0865340084, 0.2900562584, -0.3261568844, -0.2962748408, -0.1808794737, 0.4714466333, 0.0306735951, 0.3516025245, 0.2016856223, 0.2436851859, -0.1698749661, -0.1079995856, 0.0497926883, 0.305542022, -0.3950816095, -0.0473997407, 0.2083683759, -0.0649426058, -0.1075999737, 0.2953145504, -0.0114642475, 0.4027720392, -0.2436485738, -0.2460117936, -0.3364083767, 0.2480017096, 0.3166215122, 0.1127135381, 0.2214524746, 0.2741636634, 0.1236606538, -0.06522163, -0.2084727287, -0.042141322, 0.0053929291, 0.0677641034, 0.0958333388, 0.1007972062, -0.1477749646, -0.1431109309, 0.1375610828, -0.0252180211, 0.0167366471, -0.1208439916, -0.1074448898, 0.1239082888, 0.0908659175, -0.2139454335, -0.0985749364, -0.1487617046, -0.3023737371, -0.3175999224, 0.0574124902, 0.4234735072, -0.3227652907, 0.1867679507, 0.1893169582, 0.0101108737, -0.0515125282, 0.0707519576, 0.1303388178, -0.1048759669, -0.0562454201, 0.4097557068, -0.0604097322, -0.0842280313, -0.1349344701, 0.0976626128, 0.0329356156, -0.0573481172, 0.0110329548, -0.1591788232, -0.1203738526, -0.1842469722, 0.388413161, 0.1567457467, 0.2498008162, 0.1956638098, 0.3727383912, 0.1325202584, -0.3204218447, -0.298363328, 0.0081935981, 0.2753520906, 0.2538131773, 0.0434177294, -0.1207038686, 0.0566852018, -0.0781914815, -0.0479850881, -0.0221239477, 0.0359258987, 0.2558052838, 0.3084740639, 0.0704801679, 0.0720237568, 0.0009227989, 0.1066492572, 0.2689948976, -0.068648003, -0.2647779584, 0.2673965991, 0.2540497184, -0.2251475453, -0.1445079297, -0.35737589, -0.002507461, 0.2004942596, 0.041318126, 0.0645492077, 0.1455632597, 0.4730019867, -0.0086357556, -0.1192495748, 0.0373826064, 0.2118677795, 0.013072039, -0.1205486283, -0.3114870787, -0.3096059859, 0.0150653096, 0.0557752401, -0.0459840633, -0.1940570921, 0.6483001113, -0.0610021763, 0.0668935776, -0.2883140147, 0.5695883036, 0.3132675886, 0.1505685896, 0.0833425671, -0.0736341402, 0.3232872486, -0.126806438, -0.017682327, 0.1162418872, 0.4105458856, 0.2340722084, 0.071700342, -0.1317364872, -0.1633090824, -0.0918437764, -0.1385730505, -0.0635720789, 0.1402384192, -0.052546028, 0.3271527588, 0.1570773721, -0.017753439, -0.0164920203, 0.1322991997, 0.3111963868, -0.549384892, -0.0683371946, 0.1063669398, -0.4318337142, 0.3776524365, 0.0480142199, 0.0639222935, -0.144248575, 0.1444069892, 0.0125831766, -0.1712984294, -0.0671481937, 0.0333337933, 0.311939925, 0.3572602272, -0.0917432234, 0.2588998079, -0.2507968545, -0.0364117399, -0.2457786202, -0.058323741, 0.0326447785, -0.3628958762, -0.1146351248, 0.1966530383, 0.3155170977, 0.0640330315, 0.231762141, 0.2420224696, 0.34509027, 0.4110002518, -0.2325463891, 0.1246384904, 0.1620648056, -0.069684729, -0.036164064, -0.3552900255, 0.3243926167, 0.4109688103, -0.0147688445, -0.1718633175, 0.133003056, 0.1479055136, 0.0294811949, 0.5030776858, 0.079961665, 0.2476210743, -0.1521262228, 0.1969070435, -0.3423463106, -0.1439631432, -0.3880271018, 0.2662150562, 0.0031731871, 0.103807494, -0.3213909566, 0.0565838218, 0.0116900848, -0.011398281, 0.0905899331, 0.5292708874, 0.0320645012, 0.2856718302, 0.2315210849, -0.3014599681, -0.204268977, -0.0537181608, 0.0942551941, -0.0446445905, -0.1167250425, -0.0606504604, 0.0480543412, -0.0629004166, -0.3654368222, -0.2624560893, -0.0996064842, 0.0968551487, 0.0432378985, -0.287728548, -0.167168811, 0.2455512285, 0.1739558578, -0.2317969352, 0.2170876116, -0.1821330637, -0.0675743148, -0.2149738967, 0.283804059, -0.1606428772, -0.2283731252, -0.1463680863, -0.5240386724 ]
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.265938133, -0.0951727778, -0.0820606425, 0.0408309437, -0.2382575423, 0.1075186804, 0.293002367, 0.2532635033, 0.0705211014, 0.1636557728, -0.0048819561, 0.3495404124, -0.0274939276, 0.5060871243, -0.0220798366, -0.0006613379, 0.2938613892, 0.5536049008, -0.2584513128, 0.0008194151, -0.5191209912, 0.061234273, -0.4006460607, -0.2011350691, -0.1511585414, 0.1710900813, -0.4236633778, -0.0922794342, -0.3538228273, -0.086845994, 0.3892121613, 0.1871357858, 0.024768129, 0.2834430933, -0.0001184696, -0.0120506193, 0.008737294, -0.1222004369, 0.0314646065, -0.2648958266, -0.4881327152, -0.5036522746, 0.0892499983, -0.1769722551, 0.1351443082, -0.4490817785, 0.113892749, -0.309261471, 0.0400509574, 0.1761847138, 0.1028397083, -0.2188606709, 0.0002189776, -0.1063740104, 0.0210726503, 0.3390489817, -0.0424189307, -0.2795721889, 0.1721028835, 0.1112676114, 0.0802450553, 0.012746729, 0.1822035909, -0.0479207262, 0.1250527054, 0.1816171408, 0.0806789696, -0.4402335286, 0.1858933866, 0.2143526822, 0.7385678887, -0.1596599072, -0.19482328, 0.1284781247, 0.3589209318, -0.0335202403, -0.1378206909, 0.3503241539, 0.0804885626, 0.0162477903, -0.1092109457, -0.3514395952, -0.2742883861, 0.4549542069, -0.248998493, 0.4160045087, 0.0517960563, 0.2449575067, -0.1435269564, -0.2731948793, 0.1568624824, -0.2587733269, -0.0133944787, 0.3934818208, -0.7762804627, -0.0654551238, -0.0358735025, -0.1721754372, 0.3520604074, 0.2876515687, 0.243745178, 0.0126423771, -0.1284729987, 0.1759791523, 0.185031727, 0.1046385169, 0.3357357681, 0.1796386838, 0.0372425988, -0.0798573717, 0.3408164382, 0.1116783917, -0.354567945, -0.2287241817, -0.2912502587, -0.0033481843, 0.1097573936, 0.2196155488, -0.0571821034, -0.1750199646, -0.4987611473, -0.2761737108, -0.0422032252, -0.2724591196, 0.3980245888, 0.7039448023, 0.0774435773, 0.1547517329, 0.4607475102, -0.0260796659, -0.1366768181, 0.3382979929, 0.0647642165, 0.1297105998, 0.1435090303, -0.3264353871, -0.1615810692, 0.3666672111, 0.2250951529, -0.0098877661, 0.2446803004, -0.2090382129, -0.0238484703, 0.2617449164, 0.1008510366, -0.2530787587, 0.0368565768, -0.1425591558, -0.1416335702, 0.5437417626, -0.4550886154, -0.0620338656, -0.3632274568, 0.094786793, 0.1142200753, 0.0765896961, -0.3987360299, 0.5860469937, 0.0410759039, -0.061406102, 0.2056019902, 0.0656830594, 0.2846109271, -0.2194782048, 0.1627061069, 0.1127550676, -0.3627957106, -0.0764593408, -0.071154356, -0.1191041321, 0.0906974524, 0.1103573814, -0.3048974872, -0.0153971575, -0.1455278248, 0.3676787019, 0.7453737855, -0.5776741505, 0.0677256286, -0.0179838464, -0.1502816677, -0.2375479341, 0.3531584144, -0.0343221836, 0.2178150862, 0.2114300579, 0.4623907804, -0.0348026939, -0.1017917022, -0.1677044928, 0.1560549438, -0.4027187526, 0.2917553484, 0.0737125576, -0.0802058876, 0.0935095698, 0.1063219905, -0.571372211, 0.3373346031, -0.2997712791, 0.1135537699, -0.1664854884, 0.1833058, -0.4257710278, -0.004594781, -0.0861032754, -0.7237886786, -0.1307582408, 0.0530544668, 0.2005596161, 0.2188661397, -0.2594641745, 0.0517686382, -0.2207980752, 0.0086277565, 0.2065583318, 0.0500661433, 0.1679952741, -0.0919818431, -0.2912177145, -0.5517222285, 0.288982749, 0.0675500259, 0.0585339926, -0.2895832956, 0.2176003754, 0.2340444475, 0.109614931, -0.0363401137, 0.1233328134, 0.0766647756, -0.2965346873, 0.3771731853, 0.4547507465, -0.2495808452, -0.1006749719, 0.2262954414, 0.2702127397, 0.2350304574, 0.4021556079, 0.0361059867, -0.6281511188, 0.2069535106, -0.1773710996, -0.0195847601, 0.2576204836, -0.1827197671, 0.0336572491, -0.1127597317, 0.009082092, 0.1381786466, 0.1589878649, -0.4199896753, -0.2442215979, 0.063569583, 0.4059891701, -0.0317370296, 0.0387629867, -0.246780172, 0.0434404872, 0.5327417254, -0.1416108608, -0.0219513085, 0.1453936547, 0.0774853975, -0.1550805122, 0.2595832944, 0.1713086963, 0.567329824, 0.169022873, -0.1723486632, 0.0535902381, 0.0660694316, -0.0508411229, 0.14771384, 0.0979554728, 0.125769183, 0.2814124227, 0.4114007354, -0.103770338, -0.0634789765, -0.3552221954, 0.3785518706, 0.1729940176, 0.0084069716, -0.1615497917, -0.2478621751, 0.0271673072, -0.1061722636, -0.34472242, -0.0536140539, -0.2709855139, -0.1538495868, -0.2257502824, 0.018999014, 0.4302060604, -0.3312757909, 0.547753334, -0.3603268564, -0.067831479, -0.0629120767, 0.2237071693, 0.1445548236, 0.033075545, -0.282863766, -0.2202088684, 0.1612608731, -0.2060234547, 0.3179125488, -0.1629029512, -0.1811392009, 0.1974109262, -0.1518642902, -0.5007158518, 0.3635140359, -0.0827939436, -0.1428016424, -0.154132247, 0.0581264123, 0.3354326487, -0.1542832106, -0.0468132608, -0.0196098927, 0.12233565, -0.3268172741, -0.180426836, -0.2262935489, -0.2809429765, 0.2300110459, 0.1176000759, 0.2725905776, -0.1568999588, -0.0127173765, -0.000702535, 0.1691475511, -0.1735596359, -0.177926898, -0.4013751149, 0.2534332871, 0.0225356128, -0.0000551742, 0.0847218484, 0.0013698059, 0.1821197867, 0.5443743467, 0.0448849797, -0.5154662728, 0.0607242435, 0.4005957842, -0.1820837259, 0.0526584797, 0.642696321, 0.3233399391, -0.0403669961, -0.0673003197, -0.2063939422, 0.2793901265, 0.4032503366, -0.3642904162, 0.2013048977, 0.2751311064, 0.0929684713, 0.062256258, 0.5054625869, 0.0393628143, 0.2922311425, -0.0776179507, 0.1992052943, 0.1672183275, -0.1365302056, -0.151912719, 0.1184374839, 0.3083664179, -0.0467521995, -0.0385845676, -0.0922698006, -0.3269472718, 0.1583941877, -0.2337285727, 0.0420067757, 0.1047856584, -0.4960412681, 0.4481528401, -0.2991624475, -0.1178073585, -0.3616156578, 0.1685627103, -0.2411238402, 0.343428582, 0.0083740801, -0.1559027135, -0.1463200152, -0.2115324885, -0.5169848204, 0.6049102545, 0.1331948787, 0.4692653716, 0.2555134892, 0.0806022659, -0.0036341448, -0.2486980557, 0.6828724742, -0.1374825537, -0.7627073526, 0.188239336, 0.1565135568, 0.076253444, 0.0738659427, -0.0890095234, 0.2012542039, 0.0860767514, 0.5689386129, -0.4552725255, -0.1842133254, 0.3902850449, -0.0937497765, 0.1354745328, -0.0241968092, 0.0389217325, -0.2280538231, -0.0203227121, -0.5453964472, -0.0347625539, 0.3650997281, 0.0949465856, -0.006566654, -0.0906304494, -0.3901822865, 0.0862176269, 0.0129138008, 0.0156074809, 0.1319616586, -0.1676281393, -0.0249618683, -0.1880123317, 0.5055999756, 0.3024643362, -0.0728700012, -0.581980288, 0.0669582114, -0.3535188138, 0.3753160238, -0.0340743884, 0.0915388465, 0.4277946353, -0.2331533581, -0.0033340466, -0.0182281528, -0.0767422542, 0.3826945722, -0.0469356291, -0.5235780478, -0.4147224426, 0.2101318091, 0.2485019863, -0.0165551696, 0.4987652004, 0.2634551525, -0.3296017945, -0.2017480731, -0.0129099181, 0.9365926981, 0.1939227283, 0.1809414476, -0.0044175568, -0.3974727094, 0.5606544018, -0.2324372232, 0.3922207057, -0.1786492318, 0.0300494172, -0.3281524479, -0.1885457486, 0.4826351106, 0.1770558953, -0.4571589231, 0.1632851064, -0.2388966382, 0.1845561266, -0.0881116018, -0.0314201787, -0.0060569053, -0.441726476, -0.332988143, 0.0666844696, -0.2873602509, -0.3360756338, -0.304171294, -0.0794162378, -0.0443296432, -0.0642535463, -0.3397367001, -0.1388219595, 0.1110101715, 0.1522615105, 0.1347538531, -0.6152997017, -0.0619006343, -0.0827059522, -0.1349836141, -0.272752583, 0.1539122462, -0.1507541835, 0.0338160507, 0.090977177, -0.0046527283, -0.2258450985, 0.2538470924, 0.088265419, -0.1879056096, 0.3396717012, 0.1121066064, -0.4694489837, -0.1654670835, 0.3670763373, -0.1243228838, -0.0913396701, -0.0802338794, 0.4779289663, 0.2731668949, -0.1057238057, 0.0286958124, 0.3009191453, -0.0024811998, 0.2158419192, -0.3237310946, -0.1305433959, -0.09941376, 0.3208957911, 0.1321803927, -0.1705535054, 0.1659008712, -0.044068329, -0.116954729, -0.0541420542, 0.313801229, 0.2610625923, -0.3240880966, 0.0037104911, 0.0574518479, -0.0841066241, 0.0361732468, 0.3860148787, -0.0811920539, 0.485761553, -0.0453150198, -0.2722172439, -0.1927320808, 0.1752652675, 0.2161035687, 0.1199378446, 0.0992686078, 0.0257991794, 0.0873119906, -0.0903911218, -0.2035097182, -0.1518660486, -0.2255323082, 0.0990370363, 0.034471456, 0.1019618213, -0.1322097778, 0.0433805622, 0.117601946, -0.030901555, -0.0362749808, -0.0832625702, 0.0134007102, 0.1989130974, 0.271892488, -0.0829384774, 0.1289586574, -0.1453686208, -0.4257693887, -0.1130373403, 0.1239676327, 0.1796738654, -0.2157674879, 0.1030601487, 0.1339568645, -0.0609334819, -0.1370378882, 0.0208138265, 0.3245595098, 0.070751287, -0.2378292233, 0.3518878818, 0.0294490326, -0.0522336774, -0.2871176004, 0.3617913425, 0.2377806157, 0.1915773153, -0.0393922664, -0.1410293728, 0.1022870541, -0.0410291813, 0.2688398957, 0.3218466341, -0.1569658369, 0.1806855202, -0.0366641991, 0.0841389, -0.1616768092, -0.3302040696, 0.1116534621, 0.4873653054, 0.1295971423, 0.1054628715, -0.3884119391, -0.0021564269, 0.0917223692, 0.0052392422, 0.2883103192, -0.2763766646, 0.3092473745, 0.1430707574, -0.0911044702, 0.1455272585, 0.1306860149, 0.3028081954, 0.0655438229, 0.0291541629, -0.0292406715, 0.0241993945, 0.6329191327, -0.3214020729, 0.330799073, -0.1272874475, -0.0666886568, 0.2555525899, -0.0257829744, 0.1582734734, 0.3990779519, -0.1910303235, -0.0708010793, 0.0098813418, -0.0617144257, 0.1584406495, -0.090868175, 0.0154386787, -0.1980739385, -0.1592761576, -0.0526960678, -0.0575689301, 0.0449733809, 0.0679869279, 0.4651589692, -0.0106763206, 0.0533906855, -0.1582463235, 0.418879658, 0.0925084651, 0.1602163762, 0.0117972689, 0.1006488055, 0.4103654623, -0.1588494331, 0.2722024918, 0.1824037582, 0.0696905702, 0.1628679037, 0.4065343142, 0.0344984978, -0.2243824899, -0.0364554264, 0.0498357229, 0.0103010219, 0.1431875378, -0.2174360454, 0.0759619176, 0.1773576438, -0.000471013, 0.495723635, -0.007762928, -0.0601392314, -0.7930126786, 0.4609390199, -0.2092259526, -0.409526974, 0.2161486894, 0.16525428, -0.0257310886, -0.1591012031, -0.095244132, 0.1630514711, -0.085913755, -0.136668101, 0.0605926514, 0.0856021196, 0.2372972071, -0.1111216843, 0.1397965997, -0.105789192, -0.2706929147, -0.1531240046, -0.1015587226, 0.2189242989, -0.3876805007, -0.1370244771, 0.139480114, 0.3020132482, -0.1061062664, 0.2027365118, 0.1105293557, 0.0659360215, 0.1947052181, -0.0948868543, 0.073305659, 0.3137879074, -0.1603404135, 0.0028228224, -0.2452965081, 0.2166263908, 0.2222868204, -0.0723542273, -0.2109269202, 0.0426267199, 0.236608386, -0.3100654781, 0.1615151614, 0.132905364, 0.1775907725, -0.2898871005, 0.2474561781, -0.0665619746, -0.0518047027, -0.5047513247, 0.385579586, -0.2173954844, 0.0169954207, -0.2887918949, -0.1012291312, 0.142781958, -0.0787408501, -0.0539639555, 0.2523757517, -0.1317421943, 0.3597703278, 0.0979177058, -0.446711719, 0.0543238334, 0.0797114745, 0.1406458169, -0.0075272331, -0.0072463537, -0.0595962778, 0.0752684325, -0.0499708429, -0.2651263475, -0.264754504, 0.0607160553, 0.0697256178, -0.0122640571, -0.282173425, -0.3014072776, 0.4539089203, 0.0419738963, -0.4050903916, 0.3852287829, -0.0289436672, -0.2723312676, -0.2589526474, 0.1456723362, -0.021031484, -0.1197112724, -0.1088757142, -0.2165898979 ]
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.3482718766, 0.0645765066, -0.0892974809, 0.1464073956, -0.004705885, 0.068712309, 0.1781942695, 0.4301660061, -0.0550013371, 0.1688196063, -0.0407027975, 0.5322627425, -0.1796880364, 0.4457179308, -0.1766490489, -0.1298692077, 0.2669723332, 0.6772674322, -0.5987275243, 0.1521147192, -0.2508706748, 0.0997435898, -0.3959635198, -0.3213894367, -0.248877123, 0.1981461048, -0.3766763806, -0.186278373, -0.389216572, -0.2522885203, 0.4810887277, 0.4199804962, 0.1927007586, 0.2435197532, -0.0001130875, 0.1142904088, -0.1581036896, -0.1443049908, -0.1761362851, -0.4564717412, -0.3388725519, -0.4732193351, 0.0550093204, -0.0381947123, -0.007904374, -0.4393770397, -0.0983280465, -0.4240880907, -0.1667993665, 0.0678177699, 0.1913836002, -0.1983625293, -0.0467880405, -0.1468116641, 0.0341698788, 0.2906015515, -0.2897629738, -0.3481407464, 0.0273524579, -0.0086381976, 0.1154630929, -0.0258335769, -0.0689703822, -0.1557123214, 0.270619601, 0.0808820575, 0.1776649356, -0.4447630942, 0.0939611048, 0.3437198102, 0.6369027495, -0.4048181474, -0.222925514, -0.0605254062, 0.2747725248, -0.1232589632, -0.0366239175, 0.2869488597, 0.2061855942, 0.1165091395, 0.0360163376, -0.1216587201, -0.4184625149, 0.4105970562, -0.065176785, 0.5333596468, 0.0679955408, 0.1643005461, 0.2092803568, -0.1621573269, 0.1780516058, -0.305097878, -0.1483658403, 0.4382911921, -0.598508358, -0.0461570062, 0.0286519621, -0.1468937397, 0.2212026417, 0.2496875823, 0.2240440547, 0.0773976818, -0.2034948915, 0.1244927868, 0.3155554831, 0.2442364544, 0.3259382546, 0.1582867056, 0.0588028729, -0.0576617382, 0.4282643199, 0.0426717661, -0.3903122544, -0.266499728, -0.3373596072, -0.0756570548, 0.2000364661, 0.1580792665, 0.0427091084, -0.0701211691, -0.1635322124, 0.0718540773, 0.1799080819, -0.0388045236, 0.1471804976, 0.8159398437, 0.1902588457, 0.1429036707, 0.2227550298, -0.0496829785, -0.0719223619, 0.2015488297, 0.053433951, -0.0156575646, 0.2549006343, -0.2117114216, -0.2964210212, 0.3922961056, 0.3107228875, 0.2015919834, 0.1524661034, -0.2357828915, 0.272908777, 0.2159262151, -0.0233636349, -0.1713619232, 0.1085501611, -0.1895641983, -0.1724312305, 0.5275694728, -0.1246685535, -0.0434621088, -0.4908123314, 0.0946802348, -0.2702820897, 0.1111801192, -0.3244781792, 0.5614660978, -0.2449732423, -0.1677210778, 0.0688398927, 0.0336235128, 0.1603232324, -0.1857773364, 0.2226324528, 0.1458014995, -0.3933650851, -0.0158849228, 0.2394767106, -0.2605885565, -0.0569060631, -0.1669491678, -0.1067139059, -0.104421854, -0.0215457305, 0.1586322486, 0.3899708092, -0.273312062, -0.1256056279, -0.0999527797, -0.1640659869, 0.0103301508, 0.1373245716, 0.1862508059, 0.2845200002, 0.1511423737, 0.2225960791, 0.1819189936, 0.0488866977, 0.0880409554, -0.0409181714, -0.2720240355, 0.4463221729, 0.1754125804, -0.2321841419, 0.1784433424, 0.0155667244, -0.4601064026, 0.3236853182, -0.3310922682, 0.242971167, -0.0784445927, 0.2711413503, -0.3207567334, 0.0282503776, -0.0709440783, -0.565290153, 0.0586757436, 0.0997293293, 0.3890401721, 0.1061434522, -0.2458086908, 0.3670020998, -0.0809096843, -0.0522160754, 0.2115103304, 0.1009578481, -0.1020019799, 0.0345255397, -0.155528903, -0.4602505565, 0.3170196414, 0.0911790058, 0.0120879142, -0.3484278023, 0.2383429706, 0.2912607789, 0.122279726, -0.0443319045, 0.3409976661, -0.0028972977, -0.1761048436, 0.2134356052, 0.4273330569, -0.2389494628, -0.1755454987, 0.0812279582, 0.4070701301, 0.1399202496, 0.32546556, 0.0133524369, -0.6059425473, 0.1656653881, -0.0052504851, 0.0453850888, 0.7022058368, -0.3599382043, 0.1289959252, 0.0048016156, 0.1523851156, 0.2226156294, 0.1210526153, -0.4440000355, -0.3551976383, 0.024179494, 0.381852448, -0.3455274999, 0.0015525288, -0.1329491436, 0.1672096848, 0.2806378305, -0.0364351273, 0.0220142677, -0.0107343541, 0.0183309056, 0.0007225515, 0.3417837322, 0.1739908159, 0.4883176684, 0.253115356, -0.1698944718, 0.1381900162, -0.2280163914, 0.034570083, 0.2451858222, 0.0025362549, -0.0327580348, 0.1938691139, 0.2984042466, -0.051704254, 0.0257179532, -0.5200485587, 0.0546143763, 0.4540601969, -0.1175140589, -0.1232592911, -0.4112273157, -0.0146780545, 0.0131856147, -0.5087952018, -0.0605511889, -0.1007203907, -0.0289615057, -0.0368107222, -0.1229568571, 0.338732779, -0.2723271549, 0.4934959114, -0.5590955019, -0.025525786, -0.0199107975, 0.0346747786, 0.1099818051, 0.0477815755, -0.0314340033, 0.0257087704, 0.030616466, -0.0037530549, 0.2519110441, 0.0522177443, -0.1747589111, 0.1148418188, -0.0004917057, -0.5256100297, 0.1732513607, -0.0341614895, -0.1092924178, -0.0681302696, 0.0508960895, 0.1972896457, -0.0247644689, 0.173822999, -0.2129165381, -0.1244229749, -0.4129619598, 0.0100569427, -0.1492167264, -0.2941405177, 0.3062923551, 0.2049195319, 0.2767918706, -0.0660551786, 0.3649313748, 0.0285791028, 0.1179983318, 0.0248038657, 0.0412423573, -0.3984265625, 0.3619606495, -0.0162214115, 0.0040751765, 0.1638404429, -0.1292437911, 0.2317788005, 0.3739017844, -0.0349323079, -0.128705442, 0.0903959349, 0.3210228086, -0.2032411695, 0.1163642928, 0.5452890992, 0.4964993894, 0.0389782339, -0.0805067718, -0.1451351196, 0.2195562422, 0.113730289, -0.4097940922, -0.0398148037, 0.0830530599, 0.2609754801, -0.1843200177, 0.3280731142, -0.0582594611, 0.3487602174, -0.0385396518, 0.4031769335, 0.0968079939, -0.0685745999, -0.2857971191, 0.1226111278, 0.3362406194, -0.1062164977, 0.117751427, -0.193609193, -0.4214164913, 0.0606007576, -0.1784744859, -0.054693222, 0.212234959, -0.452472508, 0.1912065148, -0.3075188696, -0.0593355596, -0.4267513752, 0.0754698291, -0.2327071577, 0.272051394, -0.0361564532, -0.2596206367, -0.2545235753, -0.4336678386, -0.3955099583, 0.350153923, 0.1118818671, 0.4040617049, 0.4325250089, -0.0526389964, -0.1201396957, -0.2049403042, 0.4980343282, -0.0740168989, -0.5626012087, 0.307575047, 0.0144365486, -0.2854399681, 0.0122466562, 0.0523531549, 0.2708070278, -0.1133354083, 0.3593368232, -0.2529782653, -0.2239242345, 0.3291353285, 0.0782000795, 0.1901570708, -0.0362092182, -0.1000169069, 0.048382692, -0.0891675651, -0.4129236937, -0.1794502437, 0.4076737165, -0.1807341278, -0.1760280877, -0.17473194, -0.3464691639, 0.0735988691, 0.1782968193, 0.2868494093, 0.0454617888, -0.0356044956, 0.0390240885, -0.2527463436, 0.4640752375, 0.2757254243, 0.0017459447, -0.4743177295, 0.160303086, -0.1189006642, 0.1470321715, 0.0156091414, 0.0655274168, 0.3621344566, -0.2586048841, -0.0546792746, -0.0449765399, -0.1711927801, 0.0605065525, -0.0700812414, -0.6451610923, -0.4660744965, 0.2414062917, 0.1642181575, 0.0081460625, 0.7264254689, 0.0391054079, -0.326862514, -0.0575178787, 0.0129780862, 0.8818542361, 0.2684471011, 0.1046685949, 0.1382030398, -0.241641432, 0.413974911, -0.2139508724, 0.3939241767, -0.3427496254, -0.1126441583, -0.2992989123, -0.1103010774, 0.4037831128, 0.1506043971, -0.4877846539, -0.0114332214, -0.2502495646, 0.1278433204, -0.1170869768, 0.0348278098, -0.0709372386, -0.5233113766, -0.4722072184, 0.0572582334, -0.1092984453, -0.426068157, -0.3047959507, -0.0353247896, -0.0910701528, 0.0351723321, -0.2306586504, -0.0044143349, 0.0521643423, 0.0739052817, 0.2463568747, -0.2035378367, -0.0238774735, 0.0880610123, -0.0804824829, -0.1443760246, -0.1169089526, -0.1940744966, -0.0046437453, 0.147780776, 0.0605574287, -0.2075452507, 0.2673378289, 0.1429788172, -0.255579412, 0.1882782429, 0.1570277661, -0.3402674496, 0.1518251747, 0.1354853362, -0.0706056282, 0.0696973577, -0.0306594055, 0.4619455338, 0.2831304967, -0.095865719, 0.10219381, 0.4088978171, -0.168961823, 0.1002545357, -0.1308336258, -0.2835272253, -0.184432894, 0.4703077376, 0.1327185184, -0.0097242184, -0.0830394104, 0.1672369242, -0.1261291057, -0.1417265683, 0.2227784395, 0.3376010656, -0.3897212446, -0.0286748931, 0.1679210812, -0.1050636768, -0.0428480208, 0.2743608356, -0.1265007108, 0.4867374301, -0.1858574301, -0.2188508362, -0.1902681291, 0.1972331405, 0.2149623632, 0.2364253253, -0.0278678313, 0.1071330085, -0.0475700572, -0.2605209649, -0.2654897869, -0.21060808, 0.0451846495, -0.0754062384, -0.0286608096, 0.1914942414, -0.2067788243, -0.2142190039, 0.1541945189, -0.0128005669, -0.1399386674, -0.1516812295, -0.1325609237, 0.1478935331, 0.106486395, -0.1686022729, -0.1028904915, -0.2250375599, -0.516693294, -0.3138571382, 0.1047013029, 0.2757298946, -0.3435199559, 0.112544328, 0.1932653934, 0.0849786103, 0.0095062181, -0.0532585792, 0.2293923795, -0.0755908564, -0.0246026777, 0.2878011465, -0.1329401881, -0.055508282, -0.2768470347, 0.3551459014, -0.0233928058, 0.1009764522, 0.0635813326, -0.0852636918, 0.2157887071, 0.2338927686, 0.192227602, 0.1868180484, 0.2035007179, 0.1437076777, 0.1189694554, 0.1874695718, -0.0867771283, -0.3905168772, 0.1752240658, 0.4561105371, 0.2235665023, 0.0587786622, -0.2400042117, -0.0298410393, 0.0576094165, -0.0408130847, 0.1074296311, -0.1897708029, 0.5861268044, 0.2604874671, -0.0298043825, 0.1763006598, -0.1901127994, 0.0819440112, 0.2492518127, 0.1269637495, -0.210513711, 0.2456098795, 0.5388052464, -0.2231214941, -0.0810674876, -0.3095414937, -0.1911903173, 0.1502432972, -0.0186626613, 0.1290549487, 0.2990816236, -0.0238250252, -0.2618976235, -0.0179267637, -0.0979856998, 0.0311884899, -0.0290090479, 0.0915169716, -0.2588431835, -0.2457711548, -0.0579136536, -0.0626987144, 0.0663738921, 0.0114244102, 0.3781790733, -0.091990009, 0.0840891972, -0.3125249147, 0.6007607579, 0.2733028829, 0.1719357371, 0.1691137701, 0.0040531559, 0.3385773003, -0.0178986955, 0.0960209295, 0.0880057067, 0.1707541794, 0.4111483991, 0.245300293, -0.0034238701, -0.2591453195, -0.0920119286, -0.0122420341, 0.0898454189, 0.2527469993, -0.0472325571, 0.1304782331, 0.2112452239, -0.0388473123, 0.247996226, -0.0010520767, 0.1945608854, -0.5377141237, 0.3259519339, -0.0153194573, -0.247626394, 0.1876195222, -0.0025642421, 0.0135932975, -0.3884644806, 0.0154286865, -0.0024484277, -0.2050783187, -0.172472775, 0.0693038255, 0.2210494876, 0.1748831719, -0.2789320946, 0.2301526517, -0.1784121841, -0.1908658892, -0.1957605332, -0.1120240688, 0.1847128123, -0.1209948212, -0.1233277097, 0.1535859704, 0.2016486973, -0.055682037, 0.2447182536, 0.1807336211, 0.2482658029, 0.1856904924, -0.1890779585, 0.1793860346, 0.115691714, -0.1145535856, -0.0593517274, -0.2988680303, 0.0319711342, 0.1862417161, -0.004052016, -0.0816059411, 0.1817111224, -0.0542001016, -0.2327190489, 0.3671844602, 0.1295995265, 0.1132440642, -0.1426471323, 0.2120760828, -0.2643706799, -0.0600601956, -0.4451532364, 0.3055154681, -0.0275903419, 0.1804620028, -0.219771117, -0.1825063676, 0.1628465354, -0.1611247212, 0.1121727601, 0.5696962476, -0.2790897191, 0.4883998632, 0.1081144586, -0.1315838844, -0.2470439672, -0.0565737821, 0.2272877842, 0.0492838249, -0.0148371486, 0.0623116679, -0.0095032956, -0.0775154307, -0.262573123, -0.1371801943, -0.0412406176, 0.1345884651, -0.0638454407, -0.2394395024, -0.1974966824, 0.2346858978, 0.021534184, -0.2805651426, 0.2788970768, -0.1155551895, -0.004369162, -0.205677554, 0.1086842939, -0.0163391493, -0.2483726144, 0.00647488, -0.4142549932 ]
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.0789319128, -0.1892747879, -0.2111491859, 0.5182409286, 0.1775327623, 0.2812185884, 0.2807132006, 0.1095820293, 0.1075351685, -0.2891573906, -0.1656706333, 0.1336099952, 0.3731779754, 0.3808054924, 0.1173838153, -0.0786428526, -0.0114681209, 0.0120944893, -0.0104108602, 0.0372488759, -0.0519339815, 0.3416517675, -0.4777827263, -0.1001214385, 0.0012969719, -0.1514362544, 0.0161405168, 0.0154879224, -0.038507279, -0.3352608979, 0.2822165787, 0.1228942201, 0.2670378387, 0.4127135873, -0.000120029, -0.1779258996, 0.4665377736, -0.1020853892, -0.256084919, -0.2737344205, -0.2082237452, -0.3046475947, 0.4594643414, -0.3098635972, -0.0713828281, -0.5172997117, -0.3546373248, -0.2628711164, 0.3239260614, 0.2284375429, 0.1925453246, 0.1057265624, -0.0450250469, -0.1168597043, 0.0473392718, 0.2259965986, 0.1323074996, 0.1022474319, 0.2680183947, 0.151785329, -0.0303035975, 0.2312604338, 0.0532071032, 0.2929939926, 0.3227801323, -0.0937234238, -0.1626707762, -0.147443682, 0.4255654514, 0.2147621661, 1.3290975094, -0.2534139752, -0.2807648778, -0.1864215881, -0.2302004546, -0.1689094454, -0.0168692116, 0.3455490172, -0.0077271168, 0.0436372086, -0.2335566878, -0.2231647074, -0.1869319677, 0.3701874018, 0.0592785291, 0.0630655065, -0.3054241836, 0.138073951, -0.1763879508, -0.1328852326, 0.1571983099, -0.1911980659, 0.0317065082, 0.1797030121, -0.5834522843, 0.0873511434, 0.0808451101, 0.1540179104, 0.0633182749, 0.4426723421, 0.3057211041, 0.2691636682, -0.0215794984, 0.139339447, 0.5947415829, 0.2712327838, 0.3216515183, 0.0154351527, -0.0527831875, 0.3021752238, -0.0381991826, -0.1961116344, -0.0054874206, -0.1151608452, 0.0977822542, -0.2972750962, 0.237948969, -0.5695007443, -0.2049046457, -0.0927837715, -0.2847167552, -0.3555091023, 0.0098459888, 0.4803135395, -0.1018202156, 0.1047830433, 0.2056421041, 0.2912029624, -0.1113749072, -0.1213556305, -0.1241603643, -0.0199558008, -0.2060884982, 0.0916363075, -0.0304607227, -0.0041038687, 0.3585406244, 0.0954123512, -0.0014446207, -0.36148265, 0.3334645331, -0.1039520502, 0.0891808867, 0.0643302798, 0.4270686507, 0.2381877601, 0.1438615471, 0.1221376061, -0.203887701, 0.2703431249, -0.3434365988, -0.2165077031, -0.183988899, 0.1285466254, -0.3012283444, -0.300591141, -0.5243894458, 0.1205804497, 0.1504330337, -0.1128387749, -0.0485666655, 0.1281505972, -0.1047201231, -0.1302075684, 0.0923540071, 0.4687441289, -0.4306243956, -0.2646571696, -0.3125125766, -0.1004271135, 0.2145789266, 0.2239419669, -0.3063052297, 0.3549634516, -0.1731175929, 0.0351228826, 0.5592150092, -0.3355655372, -0.1034143195, 0.4995973706, 0.2164156288, -0.0355051197, 0.0961959213, -0.2372703999, -0.1126169041, 0.177727133, 0.1222919151, 0.2151845694, 0.3439026177, 0.1276103705, -0.2076401114, -0.2062738538, 0.2997554839, 0.1547667086, -0.1266523302, -0.0012366591, -0.0236075576, -0.1026688442, 0.3608758748, -0.0464176759, -0.1341622472, 0.3027932346, -0.0695767924, 0.2714538872, 0.1779066473, 0.1316057742, -0.4466254115, -0.0358646363, 0.0004685792, 0.1481633633, 0.1683010757, -0.1922743469, -0.5272638798, 0.0090982262, -0.1990994215, -0.161038816, 0.0777425915, 0.032080967, 0.041266907, -0.0335680656, -0.0199564416, -0.0856476128, 0.0163852163, 0.028304223, -0.4079388082, 0.1658411771, 0.0833526552, 0.0614559166, 0.2739594877, 0.0993569791, 0.2622645795, -0.011710735, -0.1645419002, 0.2622705102, 0.0659876615, 0.6024624705, 0.151269272, 0.3022493422, 0.0752670988, 0.055578474, 0.2502042353, 0.2778005302, 0.3070843518, -0.1422146261, -0.3737638891, 0.3783276379, 0.0334413685, 0.487541914, 0.1482855231, -0.1668079644, 0.2705939114, 0.01362764, -0.0556315035, -0.2422354817, 0.2620971203, 0.0789040402, 0.611176312, -0.1333586872, -0.1279365867, 0.2783306241, 0.1441030353, -0.0556798279, 0.0739198551, 0.0867315754, -0.2402979434, -0.4528821409, 0.5009838343, -0.0215047821, 0.216162622, 0.2434823215, 0.0983898714, 0.1076892465, 0.2769545019, -0.2266351432, 0.3021549881, 0.3179556429, 0.2120096385, -0.1057115421, 0.1732844561, -0.1669394374, -0.1414021105, -0.1537813693, 0.047122255, 0.2280320078, -0.5924047232, 0.0342508703, -0.3620115519, -0.4074657857, -0.3450545371, -0.131495893, 0.0816861466, -0.3198181391, -0.292068392, -0.0485500805, -0.0471301526, 0.0176138226, -0.138740927, 0.0507328659, -0.1904655397, 0.054074239, -0.2068432719, -0.2030699849, -0.1652271748, 0.0597147457, 0.4737496674, 0.2471574247, 0.3921638727, -0.197073251, 0.0926622525, 0.0477434769, -0.2660236657, 0.2005767971, 0.1971172243, 0.1751428246, -0.1349905878, 0.0559978709, 0.1437904984, 0.1499383897, 0.1842000932, 0.1199693084, 0.1417254061, -0.0464304239, -0.106311813, -0.150059998, 0.1808391809, -0.5233336687, -0.1948814392, -0.3031464219, -0.0537585244, 0.2007276863, 0.2991805077, -0.1856732368, -0.0715600178, 0.1559022665, 0.3398943543, 0.2962894738, -0.3032110631, -0.4763087928, 0.1613787562, -0.2892210186, -0.275064975, 0.1589957476, 0.3177676499, 0.2421741933, 0.0612028539, -0.2267963439, -0.0413052253, -0.0851614475, -0.1112037227, -0.0724884346, 0.1672210097, 0.261726886, 0.036403168, -0.105195798, 0.0054175146, -0.2416443825, -0.0716849118, -0.1896224171, 0.0281639062, -0.0354812406, 0.1203638613, -0.1563308388, 0.5662085414, 0.2551563084, -0.0545408949, 0.3984050155, -0.1034933999, 0.1799929887, -0.0499390885, -0.0158130229, -0.3308518529, -0.1166107729, 0.0042709368, 0.4625918865, 0.1697821319, -0.2965266407, -0.2413650453, -0.1513512284, -0.8929015994, -0.1086795554, 0.1384857744, -0.1324650049, 0.2511934638, 0.1188587099, 0.0773566514, -0.0727128908, -0.1014692336, -0.0233828798, 0.0885343999, -0.0062201186, -0.1664228588, -0.4538202882, -0.1015996113, -0.1419451982, 0.5074073672, -0.2162259072, 0.1196995452, 0.0532304868, -0.0910085663, 0.1657984257, -0.2087828964, 0.4329092205, -0.3500382304, -0.1027418748, 0.1852795035, 0.007839839, -0.3345585763, 0.0840521902, -0.2710382044, 0.4508852363, 0.1022004113, 0.0443188213, -0.1706228405, -0.2756690383, -0.1051069051, 0.3202065229, -0.2772404253, -0.2040270418, -0.066365324, -0.2064160258, -0.3689191341, -0.3099523187, -0.2958851159, 0.1530738026, -0.0443874411, -0.0725075826, -0.0855382159, 0.0618664473, 0.0961780325, 0.2213363796, 0.4586624801, -0.1938784868, -0.0772208273, 0.108120501, -0.130943045, 0.4480086565, 0.7521957159, -0.0088671362, -0.4299918711, -0.0108980499, -0.1588895768, 0.1221936047, 0.1990402341, 0.0710832924, 0.1092336103, 0.0085382629, -0.065176852, -0.1920918226, -0.2146839648, 0.1032842174, 0.1821847558, -0.1044164449, -0.6993982792, 0.6753962636, 0.0755907968, -0.1975607276, 0.2609323859, -0.0029875743, -0.2140883952, 0.2761698961, 0.0100665744, 1.109572649, 0.1581322253, -0.0145884538, 0.1266871989, -0.2598594725, 0.2006961852, -0.1367527097, -0.1212270185, -0.4516959786, 0.367331177, -0.0736473501, -0.1184357926, 0.1955991089, 0.2501859069, -0.1443832815, 0.3782751858, -0.291030407, -0.0442531109, -0.02051365, 0.4625368416, -0.0387587324, -0.2825291753, -0.6071413755, 0.0899347365, -0.0510192886, 0.1447154582, -0.277230233, 0.0890922025, -0.2481804043, -0.0913661122, -0.3456160128, 0.0245123021, -0.0853707194, 0.0931588635, -0.1741663814, -0.450879395, 0.1298786849, 0.3845651746, -0.2622558177, -0.0901252255, -0.4244485795, 0.1190182939, -0.0972175971, 0.0301195849, 0.0356650837, 0.0210343823, 0.3715479374, -0.1616903692, -0.3018019497, 0.0080000954, 0.0854747295, 0.0625400022, -0.168902114, 0.0588681959, -0.0031788973, -0.5724696517, -0.5873053074, 0.1221198142, 0.0422562659, -0.1212281808, 0.0923034772, 0.1828103364, -0.1142605618, 0.2109423429, 0.246310994, 0.0369303375, -0.0788509771, 0.4332987666, 0.3101986349, -0.0244962256, 0.4668743312, 0.295188725, -0.1460085362, -0.1963519156, 0.1923952401, 0.1957505792, -0.2520182133, 0.0509445481, -0.0368924662, 0.3241745234, -0.2070684284, 0.1904634237, 0.0188207217, 0.2794861197, -0.0220125802, -0.4668632448, 0.2508147359, 0.253747642, 0.1930426508, -0.0113746487, -0.1099509001, -0.3284418285, 0.1592361778, 0.0505201444, -0.2618048191, 0.3210796416, -0.0695697814, 0.078136839, 0.1321983188, 0.1443039775, 0.145175308, -0.2790774703, -0.0119592343, -0.1267287433, -0.110021472, -0.1981799453, -0.1354353875, 0.2127933651, 0.101597257, -0.2201017588, -0.0115803713, 0.0086083123, 0.116186291, -0.1793662012, 0.0562732629, -0.0937531143, 0.0999776646, 0.0836097673, 0.3907764852, 0.0669819936, -0.6115539074, 0.0721729249, -0.0410909057, 0.1988335103, 0.2410686314, -0.0440356284, 0.3422810137, -0.0221056044, -0.0257917717, -0.0306738019, 0.2908677161, 0.2202177942, 0.1947541237, -0.0818217024, 0.2536889017, 0.2407730669, 0.3208607733, 0.5258144736, -0.1758220196, 0.1646322608, -0.0215727706, 0.1428043693, -0.243815586, 0.0389110558, -0.1467023641, -0.2376059592, -0.1835078746, 0.0038753371, 0.1829791963, 0.3325916529, 0.1130229235, -0.1203250065, 0.4508987963, -0.2245202959, 0.4222688079, 0.0590376519, -0.1689964682, 0.1459180713, 0.1762694269, 0.1485864222, -0.0028412733, 0.0183642488, 0.0689572692, 0.5400496721, 0.4455857575, 0.1596894264, -0.2230797559, -0.527053833, 0.360337764, 0.1754485518, 0.319909066, 0.2928751111, 0.027170999, 0.4435746074, 0.14760077, 0.0913555548, -0.0670744404, 0.0020863183, -0.0573349334, -0.2027500272, -0.151611343, -0.2909404933, -0.1086124703, -0.1345992088, -0.2056635469, -0.4516632855, 0.0544150695, -0.1240045056, -0.1323196739, -0.5200738907, 0.0575004332, -0.0345600583, 0.1957111359, -0.1927079856, 0.0774273351, 0.1688812375, -0.019626122, 0.0776729584, 0.2913625538, 0.5396184921, 0.1511484981, -0.1022624522, -0.048647657, 0.077567257, -0.1285821199, 0.0892522559, 0.1390939653, 0.2173723727, 0.0814579651, 0.1464353502, 0.1171540916, -0.1644435972, 0.3667307496, 0.1373814642, -0.0216103606, -0.2827693224, 0.2542517781, -0.3644184768, -0.3706578612, -0.2655564547, -0.1761492491, -0.4030533731, -0.033116959, 0.2407070994, -0.1102060378, -0.1653464288, -0.1996424347, 0.0526959077, 0.0668965802, 0.6728178263, 0.0392680131, 0.3681769967, -0.0654768348, -0.0627873838, -0.6017757654, -0.0151451901, -0.0510745756, -0.1354793459, 0.1072409302, 0.1930963397, 0.1050081477, 0.261084944, 0.1738898307, -0.1343339384, 0.1025073901, 0.0447399616, -0.4506539702, 0.0176675282, 0.0192417242, 0.0695832521, -0.1925381124, -0.2314059436, 0.0460731909, -0.2032755017, -0.1023606285, -0.3747591078, -0.2316420823, 0.0956796333, 0.0854068175, 0.6618384719, -0.0471608862, 0.5717571378, -0.2162525356, -0.0034675992, -0.0478655547, -0.2418788821, -0.0051129726, 0.6518111229, 0.0552235693, 0.0082455436, -0.1022311226, -0.2083968669, -0.0936170593, 0.1019002423, -0.2653570473, -0.2419257313, -0.0490178391, -0.2247561067, -0.0065895091, -0.2708666325, 0.0671399459, 0.2326697111, -0.074113898, 0.0605397411, -0.146293804, -0.1081115082, 0.4086981714, -0.0487561524, -0.0113417711, 0.0078062015, 0.1532592475, 0.0871678367, -0.1802964509, -0.6323314905, 0.1697619408, 0.5076562762, -0.0154829808, 0.1548663676, 0.4629182518, 0.0157344919, 0.0307729561, -0.1776600331, 0.3021736741, 0.0158299729, -0.2255867571, -0.3437717557, -0.2972667217 ]
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.0911898687, -0.1483127028, -0.0447486341, 0.6809358597, 0.1068756282, 0.2218792588, 0.3129053414, 0.2291088849, -0.1234837919, 0.1246046498, -0.1083223149, 0.2736026645, -0.0816893578, -0.1234090701, -0.3013663292, -0.0974016786, 0.1984925866, 0.1485704184, -0.5059520602, -0.0316760615, -0.3506394625, 0.1602455825, -0.3358778656, 0.0398671292, -0.4097847641, 0.0492457412, -0.1317905933, 0.2761819959, -0.0312034227, -0.1838644296, 0.4585872293, -0.3488869667, 0.1864264607, 0.5364495516, -0.0001176378, 0.1700861752, 0.2740953267, -0.1723825932, -0.3783836663, -0.2567191124, -0.3621295989, -0.1004150659, -0.0029407085, -0.1234583557, 0.207650885, -0.1481204927, -0.2583858073, -0.5043874383, 0.3307149112, 0.2264486104, 0.1104795635, 0.3941425085, 0.0912052542, -0.098059997, 0.0378848463, 0.1533982307, 0.065945521, 0.4203858376, -0.1898588389, -0.061709255, 0.2108292133, 0.0670612156, -0.1246671081, 0.1450286955, 0.0780368671, 0.309910953, 0.1575995535, -0.3968756199, -0.125277698, 0.1079115793, 0.5253136158, -0.3321694732, -0.3178469241, -0.0861590654, 0.1388193369, -0.3995229602, 0.2178880125, 0.2979131341, -0.1470904946, 0.1174624413, -0.0907389969, 0.0771460682, -0.2191734612, 0.1846292615, -0.1806513965, 0.1145206988, -0.1610962749, 0.240701586, 0.1381710619, -0.0730409175, 0.5286440849, -0.357185781, -0.1269248575, 0.1591954678, -0.3422969878, 0.0321874544, -0.189621076, -0.7045968175, 0.0890095234, 0.0558211021, 0.103701435, -0.2204585969, 0.0773700327, 0.2818923295, 0.4017778933, 0.1492888629, -0.0373818912, 0.5497030616, -0.02027582, -0.061696887, 0.1993702352, 0.0090524359, -0.2867643833, -0.2114093006, 0.1154305115, -0.1646885872, 0.0836555213, -0.0013333915, -0.4971264899, -0.1518922448, -0.1278609037, -0.1404938102, 0.1965601742, 0.0301939566, 0.1238995939, 0.5308153033, 0.130738169, 0.4409759343, 0.2173486501, 0.0174211599, -0.2265089005, 0.0222141258, -0.0451167822, 0.2104355395, 0.1034140661, 0.0044444599, 0.0821223333, 0.1775869578, 0.1087559164, 0.006450613, 0.0768851489, -0.4948596656, 0.05832671, 0.3114701509, 0.0211648475, 0.075003542, 0.2738740146, -0.0503142439, -0.1439026445, 0.3170154095, -0.4437069595, -0.2742709816, -0.5135639906, 0.0968817919, 0.0989555866, 0.2329156399, -0.3203631341, -0.1113315076, 0.6928231716, 0.1045668572, -0.0683578178, -0.0662889704, -0.1984152049, -0.3195585012, 0.3204247355, 0.2007120252, -0.2164676189, -0.0330446661, -0.0184930377, -0.0677972063, 0.3604025841, 0.5054667592, -0.3153641522, 0.199200511, -0.385501802, -0.0331818238, 0.3084051609, -0.4366769791, -0.14022021, 0.2154022306, 0.003216017, -0.0735864192, 0.237611711, 0.0082836039, 0.1314234585, 0.1472159177, 0.8280866742, 0.3132547438, 0.0639007837, -0.1781873703, -0.0976124927, -0.1383357495, 0.2659769356, 0.1000100151, -0.2323939502, 0.0350792073, -0.1362987608, -0.4177925289, 0.3237216771, -0.1016949564, 0.0396769568, 0.3689121902, 0.0351550281, -0.3431804478, -0.1154859141, 0.0461801104, -0.1954734772, 0.0483525358, 0.0379619971, -0.0852144063, -0.2998000681, 0.0915437117, -0.1228937134, 0.0769217163, -0.0723356679, 0.0498542972, 0.0176122691, 0.2352780253, -0.1725987792, -0.248031944, -0.1653314233, 0.4237137139, -0.2777827382, -0.0269185696, -0.207360357, 0.5686873198, -0.0645173192, -0.0320978798, -0.1763461977, -0.0393738188, 0.0589342043, 0.116402179, -0.0541010797, 0.5149711967, 0.0520665422, -0.1684776545, 0.0259422734, -0.2057822496, 0.2290215045, -0.0772496983, 0.1399115175, -0.1201845482, 0.1309276074, -0.0969887748, 0.0723319799, 0.4227220118, -0.1323705018, 0.2828257382, -0.021570595, 0.0900895819, 0.1695280373, 0.1452978253, -0.0583258793, -0.4177128077, -0.0745222047, 0.167542249, 0.2188819945, 0.2504172027, -0.4655805826, -0.2347148806, 0.338825047, 0.0246769991, 0.0422086678, 0.1224695891, -0.3912705481, -0.0406100973, -0.0284233168, 0.3491853178, 0.7707190514, 0.127644226, 0.0334593132, -0.1203364134, -0.0359244794, 0.0076951729, 0.3499153554, 0.0637109131, 0.3463788927, 0.3114223182, -0.0173667856, 0.0689948946, -0.0166560579, -0.0879929811, 0.0875868723, 0.0622763187, -0.4036814272, 0.0528638698, -0.1899865419, -0.0543130413, -0.304048717, -0.2463193387, -0.1040120721, -0.2119144499, -0.4094065726, 0.2274121642, -0.0545446537, 0.1956344545, -0.1933860928, 0.0545213334, 0.1509281099, -0.0917486772, 0.000324842, 0.0094417436, -0.2065684795, -0.0326040797, 0.2210374922, -0.1053389981, 0.0362827741, -0.1857271194, 0.0301047694, -0.1180917695, 0.1154468656, 0.0138303675, -0.0758283883, 0.1963145435, 0.0516775288, 0.2055031508, -0.0473082811, -0.651698947, 0.1352371126, 0.5362841487, -0.2745608687, 0.3799956441, 0.1490534693, -0.0947604924, -0.1053226814, -0.2667205036, -0.4566354752, -0.3636386693, -0.0651498735, -0.1452126354, 0.2417423725, 0.2856629193, 0.2368691713, 0.0091702137, 0.1459451318, 0.1538189054, -0.0961045846, -0.2391645014, 0.4765643477, 0.0441288091, -0.1764594316, -0.1454287469, -0.0685134828, 0.2939201891, 0.2050094604, -0.3704074919, 0.1182420105, -0.083930023, 0.0721747801, -0.3724434376, 0.0816905722, 0.0955050737, 0.3071267009, -0.0495688282, -0.1056538373, -0.1409311593, 0.1213520765, 0.0509184189, 0.3641841114, -0.0269906577, 0.3982565999, -0.0897530392, 0.4547498524, 0.2624274492, -0.1617569923, 0.2130927294, 0.1749908924, 0.5188264847, 0.009832873, -0.4894421101, -0.3085486591, -0.1053093448, -0.0222778115, -0.1453581452, -0.1314473897, -0.2135681063, -0.1715723723, 0.1677533537, -0.2021041214, -0.0977447778, 0.0934712291, -0.4890370965, 0.2789091766, -0.2671627402, -0.0172278434, -0.2255420983, 0.2368052751, -0.3388526142, -0.0028135432, 0.1530740559, -0.1081693918, -0.075842008, -0.0532247536, -0.1671224385, 0.2889295518, 0.0708028227, 0.6286577582, 0.0871339068, -0.3619209528, -0.1413576305, 0.1061917916, 0.6050748825, 0.3731420636, -0.3529820144, 0.3440541327, 0.1444435865, -0.5278424621, -0.1323237121, -0.1430729777, 0.2472811043, -0.0800599679, 0.6192361116, -0.2810608149, -0.210286364, 0.0483550467, 0.356557399, -0.0551358312, -0.0701751634, -0.3375283182, -0.0948552266, -0.2657560408, -0.1750981957, -0.0085994331, 0.3727572858, -0.117762059, -0.0307828821, -0.1024163812, -0.2032845318, 0.0942053348, -0.0615634657, 0.5736796856, -0.1058079377, 0.3382009864, -0.0404295586, 0.2728074491, 0.7298620343, 0.3896467388, 0.0485649779, -0.2766023874, 0.2084404081, 0.0665280595, 0.3524954617, 0.0325587317, -0.0774382949, 0.0276742615, -0.139604792, 0.1097321734, -0.0665157437, 0.080047518, 0.3577903211, -0.0214201957, -0.6502229571, -0.2415116578, 0.3491679132, 0.2181301564, -0.0446064509, 0.4857553542, -0.1855888218, -0.4610421956, 0.1322817951, 0.0488302335, 0.917632997, 0.0788558125, 0.338803947, 0.1819432527, -0.2325961888, 0.221138522, 0.1656602472, 0.1669917554, -0.2519561946, -0.2050486505, -0.1160063371, -0.3928779066, -0.0402876846, 0.1229913086, -0.2947118878, 0.1419769973, -0.4592787027, 0.1178657934, -0.1265632659, -0.0132099474, -0.1652891487, -0.21604985, -0.1619819999, 0.0130734025, -0.0312649347, -0.1588721424, -0.0141595537, -0.2484312505, -0.31445086, -0.0913044289, -0.1530978084, 0.2241207659, -0.2308595181, 0.7114480734, -0.0641590133, -0.2984418571, -0.2077657431, 0.1909826845, 0.1160421893, -0.2021058351, 0.0624314472, -0.1067820191, -0.0023862, 0.0436081253, -0.0302293636, -0.1206147596, 0.1903318465, 0.1035235822, -0.2395178378, 0.1121623069, -0.0587249696, -0.3359274268, 0.0498032048, 0.3367277384, 0.0734799057, -0.1848012954, -0.1993737668, 0.204734832, 0.0342358127, -0.0893300623, 0.0972223729, 0.1633283049, -0.1373356581, 0.1153961793, -0.228745386, -0.3422147632, -0.0366116203, 0.5363500714, 0.3310489357, 0.1768987179, 0.5639306307, -0.2512997091, -0.0115107223, -0.121089898, 0.3575093746, -0.048455447, -0.1171176955, 0.2420295477, 0.0464919955, 0.0316429846, -0.1686172038, 0.0865353942, 0.4298747778, 0.2080881596, -0.1115063652, -0.3559652269, -0.5394127965, 0.3848753273, -0.1338527352, 0.229548648, -0.0943681076, 0.0188093688, -0.2178018689, -0.1428945214, -0.2319717109, 0.0040236921, -0.2592311502, 0.0460577868, 0.1432738304, -0.0542204604, 0.1375244558, -0.0019386639, 0.1171025485, -0.0530864224, -0.0559871681, -0.1022241563, 0.1451755166, 0.1476069093, 0.1074890569, -0.2296527922, -0.1094962656, -0.3554103374, -0.0964424238, -0.1427860856, -0.1945213526, 0.1473959684, -0.06960655, 0.0959886611, 0.0284258462, 0.1697634757, -0.0842253491, 0.1773675531, -0.0078185583, 0.1223413125, -0.1652568579, 0.3226855099, -0.1020188257, -0.1035025939, -0.5782651901, 0.008041691, -0.1138387099, -0.1187392101, 0.1946614683, -0.2355363965, -0.1824668646, -0.0658955351, 0.1693888009, 0.4238762259, -0.2421947867, 0.0538663082, 0.067114681, 0.115609318, -0.1454008818, -0.2378466129, -0.4377291203, -0.1679387689, -0.2898410559, 0.0179742035, 0.0264650099, 0.0214354526, -0.1476332098, 0.047171656, 0.2570029199, -0.0331267193, 0.3051679134, 0.461743474, 0.1223693565, 0.0497954115, 0.1322661787, 0.2484993041, 0.3821694553, 0.3037098646, -0.1484184861, 0.2287612855, 0.1643529981, -0.2151865214, 0.000315338, -0.2952018082, 0.0082637724, 0.2186151743, -0.1552512497, -0.119868435, -0.0192838348, 0.1178452224, -0.3018824756, -0.2792959213, -0.1589520574, 0.1722863913, -0.0979041532, -0.0384443104, -0.0908662826, -0.1682471335, -0.0577136576, -0.1306226701, 0.1583765149, -0.1463907212, 0.3186440468, 0.149968937, -0.2276843041, -0.1426094174, 0.2273938358, 0.6780183911, -0.0640059561, -0.353202194, 0.1663101315, 0.4771776199, 0.0767004192, 0.1096612662, 0.2268026769, 0.6265038252, 0.6114814878, 0.0625264943, -0.099754557, 0.2163281888, -0.1871848255, 0.1355877221, 0.167971909, 0.0278325826, -0.209084928, 0.2076057643, 0.1935126483, -0.0455948338, 0.1615619212, 0.1468858272, 0.2199600488, -0.3095569313, 0.194754526, -0.3178145885, -0.2008012682, 0.0813218206, 0.019271696, -0.356980741, 0.0497223251, 0.6105669141, 0.0852060169, 0.1231747195, 0.3197071254, 0.023706235, 0.0234230738, 0.3911932707, 0.4590095878, 0.140597418, -0.4542918801, -0.193188563, -0.3783896267, -0.053324461, 0.2400221378, 0.0984769017, -0.120651342, 0.283274591, 0.2563628256, -0.005638299, 0.1536627114, 0.2694150805, -0.0883773416, -0.0958837196, -0.4344920814, -0.1329516321, 0.1246933118, -0.0194769967, 0.022135552, -0.5010997057, 0.1718221009, 0.1736253649, 0.011649142, -0.0122560281, 0.2122924179, 0.2748072147, 0.5003049374, 0.3791129291, 0.1555562764, 0.4756857753, -0.0263231173, -0.1617091149, 0.0252981763, -0.6679953933, -0.1731609404, 0.1567953974, 0.0030104944, 0.2358825654, -0.332893163, -0.0505152009, -0.1813411117, 0.2213232666, -0.1184191182, -0.2370862663, -0.1663624793, -0.0157359671, 0.0436303765, -0.2296957225, 0.1340021193, 0.1197353974, 0.0235280301, 0.4017441571, -0.0975407064, -0.2917837203, 0.4567210972, -0.0764688477, -0.1883585453, -0.0190355536, 0.0982665271, 0.0895534456, 0.2853969932, -0.5559757352, -0.0551312864, 0.492731452, -0.1836725473, -0.4319853187, 0.0786193535, 0.081673488, 0.0435455404, -0.017398186, 0.6414546967, -0.2835341692, -0.5346692801, -0.0249202698, -0.2045635134 ]
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.0911898687, -0.1483127028, -0.0447486341, 0.6809358597, 0.1068756282, 0.2218792588, 0.3129053414, 0.2291088849, -0.1234837919, 0.1246046498, -0.1083223149, 0.2736026645, -0.0816893578, -0.1234090701, -0.3013663292, -0.0974016786, 0.1984925866, 0.1485704184, -0.5059520602, -0.0316760615, -0.3506394625, 0.1602455825, -0.3358778656, 0.0398671292, -0.4097847641, 0.0492457412, -0.1317905933, 0.2761819959, -0.0312034227, -0.1838644296, 0.4585872293, -0.3488869667, 0.1864264607, 0.5364495516, -0.0001176378, 0.1700861752, 0.2740953267, -0.1723825932, -0.3783836663, -0.2567191124, -0.3621295989, -0.1004150659, -0.0029407085, -0.1234583557, 0.207650885, -0.1481204927, -0.2583858073, -0.5043874383, 0.3307149112, 0.2264486104, 0.1104795635, 0.3941425085, 0.0912052542, -0.098059997, 0.0378848463, 0.1533982307, 0.065945521, 0.4203858376, -0.1898588389, -0.061709255, 0.2108292133, 0.0670612156, -0.1246671081, 0.1450286955, 0.0780368671, 0.309910953, 0.1575995535, -0.3968756199, -0.125277698, 0.1079115793, 0.5253136158, -0.3321694732, -0.3178469241, -0.0861590654, 0.1388193369, -0.3995229602, 0.2178880125, 0.2979131341, -0.1470904946, 0.1174624413, -0.0907389969, 0.0771460682, -0.2191734612, 0.1846292615, -0.1806513965, 0.1145206988, -0.1610962749, 0.240701586, 0.1381710619, -0.0730409175, 0.5286440849, -0.357185781, -0.1269248575, 0.1591954678, -0.3422969878, 0.0321874544, -0.189621076, -0.7045968175, 0.0890095234, 0.0558211021, 0.103701435, -0.2204585969, 0.0773700327, 0.2818923295, 0.4017778933, 0.1492888629, -0.0373818912, 0.5497030616, -0.02027582, -0.061696887, 0.1993702352, 0.0090524359, -0.2867643833, -0.2114093006, 0.1154305115, -0.1646885872, 0.0836555213, -0.0013333915, -0.4971264899, -0.1518922448, -0.1278609037, -0.1404938102, 0.1965601742, 0.0301939566, 0.1238995939, 0.5308153033, 0.130738169, 0.4409759343, 0.2173486501, 0.0174211599, -0.2265089005, 0.0222141258, -0.0451167822, 0.2104355395, 0.1034140661, 0.0044444599, 0.0821223333, 0.1775869578, 0.1087559164, 0.006450613, 0.0768851489, -0.4948596656, 0.05832671, 0.3114701509, 0.0211648475, 0.075003542, 0.2738740146, -0.0503142439, -0.1439026445, 0.3170154095, -0.4437069595, -0.2742709816, -0.5135639906, 0.0968817919, 0.0989555866, 0.2329156399, -0.3203631341, -0.1113315076, 0.6928231716, 0.1045668572, -0.0683578178, -0.0662889704, -0.1984152049, -0.3195585012, 0.3204247355, 0.2007120252, -0.2164676189, -0.0330446661, -0.0184930377, -0.0677972063, 0.3604025841, 0.5054667592, -0.3153641522, 0.199200511, -0.385501802, -0.0331818238, 0.3084051609, -0.4366769791, -0.14022021, 0.2154022306, 0.003216017, -0.0735864192, 0.237611711, 0.0082836039, 0.1314234585, 0.1472159177, 0.8280866742, 0.3132547438, 0.0639007837, -0.1781873703, -0.0976124927, -0.1383357495, 0.2659769356, 0.1000100151, -0.2323939502, 0.0350792073, -0.1362987608, -0.4177925289, 0.3237216771, -0.1016949564, 0.0396769568, 0.3689121902, 0.0351550281, -0.3431804478, -0.1154859141, 0.0461801104, -0.1954734772, 0.0483525358, 0.0379619971, -0.0852144063, -0.2998000681, 0.0915437117, -0.1228937134, 0.0769217163, -0.0723356679, 0.0498542972, 0.0176122691, 0.2352780253, -0.1725987792, -0.248031944, -0.1653314233, 0.4237137139, -0.2777827382, -0.0269185696, -0.207360357, 0.5686873198, -0.0645173192, -0.0320978798, -0.1763461977, -0.0393738188, 0.0589342043, 0.116402179, -0.0541010797, 0.5149711967, 0.0520665422, -0.1684776545, 0.0259422734, -0.2057822496, 0.2290215045, -0.0772496983, 0.1399115175, -0.1201845482, 0.1309276074, -0.0969887748, 0.0723319799, 0.4227220118, -0.1323705018, 0.2828257382, -0.021570595, 0.0900895819, 0.1695280373, 0.1452978253, -0.0583258793, -0.4177128077, -0.0745222047, 0.167542249, 0.2188819945, 0.2504172027, -0.4655805826, -0.2347148806, 0.338825047, 0.0246769991, 0.0422086678, 0.1224695891, -0.3912705481, -0.0406100973, -0.0284233168, 0.3491853178, 0.7707190514, 0.127644226, 0.0334593132, -0.1203364134, -0.0359244794, 0.0076951729, 0.3499153554, 0.0637109131, 0.3463788927, 0.3114223182, -0.0173667856, 0.0689948946, -0.0166560579, -0.0879929811, 0.0875868723, 0.0622763187, -0.4036814272, 0.0528638698, -0.1899865419, -0.0543130413, -0.304048717, -0.2463193387, -0.1040120721, -0.2119144499, -0.4094065726, 0.2274121642, -0.0545446537, 0.1956344545, -0.1933860928, 0.0545213334, 0.1509281099, -0.0917486772, 0.000324842, 0.0094417436, -0.2065684795, -0.0326040797, 0.2210374922, -0.1053389981, 0.0362827741, -0.1857271194, 0.0301047694, -0.1180917695, 0.1154468656, 0.0138303675, -0.0758283883, 0.1963145435, 0.0516775288, 0.2055031508, -0.0473082811, -0.651698947, 0.1352371126, 0.5362841487, -0.2745608687, 0.3799956441, 0.1490534693, -0.0947604924, -0.1053226814, -0.2667205036, -0.4566354752, -0.3636386693, -0.0651498735, -0.1452126354, 0.2417423725, 0.2856629193, 0.2368691713, 0.0091702137, 0.1459451318, 0.1538189054, -0.0961045846, -0.2391645014, 0.4765643477, 0.0441288091, -0.1764594316, -0.1454287469, -0.0685134828, 0.2939201891, 0.2050094604, -0.3704074919, 0.1182420105, -0.083930023, 0.0721747801, -0.3724434376, 0.0816905722, 0.0955050737, 0.3071267009, -0.0495688282, -0.1056538373, -0.1409311593, 0.1213520765, 0.0509184189, 0.3641841114, -0.0269906577, 0.3982565999, -0.0897530392, 0.4547498524, 0.2624274492, -0.1617569923, 0.2130927294, 0.1749908924, 0.5188264847, 0.009832873, -0.4894421101, -0.3085486591, -0.1053093448, -0.0222778115, -0.1453581452, -0.1314473897, -0.2135681063, -0.1715723723, 0.1677533537, -0.2021041214, -0.0977447778, 0.0934712291, -0.4890370965, 0.2789091766, -0.2671627402, -0.0172278434, -0.2255420983, 0.2368052751, -0.3388526142, -0.0028135432, 0.1530740559, -0.1081693918, -0.075842008, -0.0532247536, -0.1671224385, 0.2889295518, 0.0708028227, 0.6286577582, 0.0871339068, -0.3619209528, -0.1413576305, 0.1061917916, 0.6050748825, 0.3731420636, -0.3529820144, 0.3440541327, 0.1444435865, -0.5278424621, -0.1323237121, -0.1430729777, 0.2472811043, -0.0800599679, 0.6192361116, -0.2810608149, -0.210286364, 0.0483550467, 0.356557399, -0.0551358312, -0.0701751634, -0.3375283182, -0.0948552266, -0.2657560408, -0.1750981957, -0.0085994331, 0.3727572858, -0.117762059, -0.0307828821, -0.1024163812, -0.2032845318, 0.0942053348, -0.0615634657, 0.5736796856, -0.1058079377, 0.3382009864, -0.0404295586, 0.2728074491, 0.7298620343, 0.3896467388, 0.0485649779, -0.2766023874, 0.2084404081, 0.0665280595, 0.3524954617, 0.0325587317, -0.0774382949, 0.0276742615, -0.139604792, 0.1097321734, -0.0665157437, 0.080047518, 0.3577903211, -0.0214201957, -0.6502229571, -0.2415116578, 0.3491679132, 0.2181301564, -0.0446064509, 0.4857553542, -0.1855888218, -0.4610421956, 0.1322817951, 0.0488302335, 0.917632997, 0.0788558125, 0.338803947, 0.1819432527, -0.2325961888, 0.221138522, 0.1656602472, 0.1669917554, -0.2519561946, -0.2050486505, -0.1160063371, -0.3928779066, -0.0402876846, 0.1229913086, -0.2947118878, 0.1419769973, -0.4592787027, 0.1178657934, -0.1265632659, -0.0132099474, -0.1652891487, -0.21604985, -0.1619819999, 0.0130734025, -0.0312649347, -0.1588721424, -0.0141595537, -0.2484312505, -0.31445086, -0.0913044289, -0.1530978084, 0.2241207659, -0.2308595181, 0.7114480734, -0.0641590133, -0.2984418571, -0.2077657431, 0.1909826845, 0.1160421893, -0.2021058351, 0.0624314472, -0.1067820191, -0.0023862, 0.0436081253, -0.0302293636, -0.1206147596, 0.1903318465, 0.1035235822, -0.2395178378, 0.1121623069, -0.0587249696, -0.3359274268, 0.0498032048, 0.3367277384, 0.0734799057, -0.1848012954, -0.1993737668, 0.204734832, 0.0342358127, -0.0893300623, 0.0972223729, 0.1633283049, -0.1373356581, 0.1153961793, -0.228745386, -0.3422147632, -0.0366116203, 0.5363500714, 0.3310489357, 0.1768987179, 0.5639306307, -0.2512997091, -0.0115107223, -0.121089898, 0.3575093746, -0.048455447, -0.1171176955, 0.2420295477, 0.0464919955, 0.0316429846, -0.1686172038, 0.0865353942, 0.4298747778, 0.2080881596, -0.1115063652, -0.3559652269, -0.5394127965, 0.3848753273, -0.1338527352, 0.229548648, -0.0943681076, 0.0188093688, -0.2178018689, -0.1428945214, -0.2319717109, 0.0040236921, -0.2592311502, 0.0460577868, 0.1432738304, -0.0542204604, 0.1375244558, -0.0019386639, 0.1171025485, -0.0530864224, -0.0559871681, -0.1022241563, 0.1451755166, 0.1476069093, 0.1074890569, -0.2296527922, -0.1094962656, -0.3554103374, -0.0964424238, -0.1427860856, -0.1945213526, 0.1473959684, -0.06960655, 0.0959886611, 0.0284258462, 0.1697634757, -0.0842253491, 0.1773675531, -0.0078185583, 0.1223413125, -0.1652568579, 0.3226855099, -0.1020188257, -0.1035025939, -0.5782651901, 0.008041691, -0.1138387099, -0.1187392101, 0.1946614683, -0.2355363965, -0.1824668646, -0.0658955351, 0.1693888009, 0.4238762259, -0.2421947867, 0.0538663082, 0.067114681, 0.115609318, -0.1454008818, -0.2378466129, -0.4377291203, -0.1679387689, -0.2898410559, 0.0179742035, 0.0264650099, 0.0214354526, -0.1476332098, 0.047171656, 0.2570029199, -0.0331267193, 0.3051679134, 0.461743474, 0.1223693565, 0.0497954115, 0.1322661787, 0.2484993041, 0.3821694553, 0.3037098646, -0.1484184861, 0.2287612855, 0.1643529981, -0.2151865214, 0.000315338, -0.2952018082, 0.0082637724, 0.2186151743, -0.1552512497, -0.119868435, -0.0192838348, 0.1178452224, -0.3018824756, -0.2792959213, -0.1589520574, 0.1722863913, -0.0979041532, -0.0384443104, -0.0908662826, -0.1682471335, -0.0577136576, -0.1306226701, 0.1583765149, -0.1463907212, 0.3186440468, 0.149968937, -0.2276843041, -0.1426094174, 0.2273938358, 0.6780183911, -0.0640059561, -0.353202194, 0.1663101315, 0.4771776199, 0.0767004192, 0.1096612662, 0.2268026769, 0.6265038252, 0.6114814878, 0.0625264943, -0.099754557, 0.2163281888, -0.1871848255, 0.1355877221, 0.167971909, 0.0278325826, -0.209084928, 0.2076057643, 0.1935126483, -0.0455948338, 0.1615619212, 0.1468858272, 0.2199600488, -0.3095569313, 0.194754526, -0.3178145885, -0.2008012682, 0.0813218206, 0.019271696, -0.356980741, 0.0497223251, 0.6105669141, 0.0852060169, 0.1231747195, 0.3197071254, 0.023706235, 0.0234230738, 0.3911932707, 0.4590095878, 0.140597418, -0.4542918801, -0.193188563, -0.3783896267, -0.053324461, 0.2400221378, 0.0984769017, -0.120651342, 0.283274591, 0.2563628256, -0.005638299, 0.1536627114, 0.2694150805, -0.0883773416, -0.0958837196, -0.4344920814, -0.1329516321, 0.1246933118, -0.0194769967, 0.022135552, -0.5010997057, 0.1718221009, 0.1736253649, 0.011649142, -0.0122560281, 0.2122924179, 0.2748072147, 0.5003049374, 0.3791129291, 0.1555562764, 0.4756857753, -0.0263231173, -0.1617091149, 0.0252981763, -0.6679953933, -0.1731609404, 0.1567953974, 0.0030104944, 0.2358825654, -0.332893163, -0.0505152009, -0.1813411117, 0.2213232666, -0.1184191182, -0.2370862663, -0.1663624793, -0.0157359671, 0.0436303765, -0.2296957225, 0.1340021193, 0.1197353974, 0.0235280301, 0.4017441571, -0.0975407064, -0.2917837203, 0.4567210972, -0.0764688477, -0.1883585453, -0.0190355536, 0.0982665271, 0.0895534456, 0.2853969932, -0.5559757352, -0.0551312864, 0.492731452, -0.1836725473, -0.4319853187, 0.0786193535, 0.081673488, 0.0435455404, -0.017398186, 0.6414546967, -0.2835341692, -0.5346692801, -0.0249202698, -0.2045635134 ]
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.0911898687, -0.1483127028, -0.0447486341, 0.6809358597, 0.1068756282, 0.2218792588, 0.3129053414, 0.2291088849, -0.1234837919, 0.1246046498, -0.1083223149, 0.2736026645, -0.0816893578, -0.1234090701, -0.3013663292, -0.0974016786, 0.1984925866, 0.1485704184, -0.5059520602, -0.0316760615, -0.3506394625, 0.1602455825, -0.3358778656, 0.0398671292, -0.4097847641, 0.0492457412, -0.1317905933, 0.2761819959, -0.0312034227, -0.1838644296, 0.4585872293, -0.3488869667, 0.1864264607, 0.5364495516, -0.0001176378, 0.1700861752, 0.2740953267, -0.1723825932, -0.3783836663, -0.2567191124, -0.3621295989, -0.1004150659, -0.0029407085, -0.1234583557, 0.207650885, -0.1481204927, -0.2583858073, -0.5043874383, 0.3307149112, 0.2264486104, 0.1104795635, 0.3941425085, 0.0912052542, -0.098059997, 0.0378848463, 0.1533982307, 0.065945521, 0.4203858376, -0.1898588389, -0.061709255, 0.2108292133, 0.0670612156, -0.1246671081, 0.1450286955, 0.0780368671, 0.309910953, 0.1575995535, -0.3968756199, -0.125277698, 0.1079115793, 0.5253136158, -0.3321694732, -0.3178469241, -0.0861590654, 0.1388193369, -0.3995229602, 0.2178880125, 0.2979131341, -0.1470904946, 0.1174624413, -0.0907389969, 0.0771460682, -0.2191734612, 0.1846292615, -0.1806513965, 0.1145206988, -0.1610962749, 0.240701586, 0.1381710619, -0.0730409175, 0.5286440849, -0.357185781, -0.1269248575, 0.1591954678, -0.3422969878, 0.0321874544, -0.189621076, -0.7045968175, 0.0890095234, 0.0558211021, 0.103701435, -0.2204585969, 0.0773700327, 0.2818923295, 0.4017778933, 0.1492888629, -0.0373818912, 0.5497030616, -0.02027582, -0.061696887, 0.1993702352, 0.0090524359, -0.2867643833, -0.2114093006, 0.1154305115, -0.1646885872, 0.0836555213, -0.0013333915, -0.4971264899, -0.1518922448, -0.1278609037, -0.1404938102, 0.1965601742, 0.0301939566, 0.1238995939, 0.5308153033, 0.130738169, 0.4409759343, 0.2173486501, 0.0174211599, -0.2265089005, 0.0222141258, -0.0451167822, 0.2104355395, 0.1034140661, 0.0044444599, 0.0821223333, 0.1775869578, 0.1087559164, 0.006450613, 0.0768851489, -0.4948596656, 0.05832671, 0.3114701509, 0.0211648475, 0.075003542, 0.2738740146, -0.0503142439, -0.1439026445, 0.3170154095, -0.4437069595, -0.2742709816, -0.5135639906, 0.0968817919, 0.0989555866, 0.2329156399, -0.3203631341, -0.1113315076, 0.6928231716, 0.1045668572, -0.0683578178, -0.0662889704, -0.1984152049, -0.3195585012, 0.3204247355, 0.2007120252, -0.2164676189, -0.0330446661, -0.0184930377, -0.0677972063, 0.3604025841, 0.5054667592, -0.3153641522, 0.199200511, -0.385501802, -0.0331818238, 0.3084051609, -0.4366769791, -0.14022021, 0.2154022306, 0.003216017, -0.0735864192, 0.237611711, 0.0082836039, 0.1314234585, 0.1472159177, 0.8280866742, 0.3132547438, 0.0639007837, -0.1781873703, -0.0976124927, -0.1383357495, 0.2659769356, 0.1000100151, -0.2323939502, 0.0350792073, -0.1362987608, -0.4177925289, 0.3237216771, -0.1016949564, 0.0396769568, 0.3689121902, 0.0351550281, -0.3431804478, -0.1154859141, 0.0461801104, -0.1954734772, 0.0483525358, 0.0379619971, -0.0852144063, -0.2998000681, 0.0915437117, -0.1228937134, 0.0769217163, -0.0723356679, 0.0498542972, 0.0176122691, 0.2352780253, -0.1725987792, -0.248031944, -0.1653314233, 0.4237137139, -0.2777827382, -0.0269185696, -0.207360357, 0.5686873198, -0.0645173192, -0.0320978798, -0.1763461977, -0.0393738188, 0.0589342043, 0.116402179, -0.0541010797, 0.5149711967, 0.0520665422, -0.1684776545, 0.0259422734, -0.2057822496, 0.2290215045, -0.0772496983, 0.1399115175, -0.1201845482, 0.1309276074, -0.0969887748, 0.0723319799, 0.4227220118, -0.1323705018, 0.2828257382, -0.021570595, 0.0900895819, 0.1695280373, 0.1452978253, -0.0583258793, -0.4177128077, -0.0745222047, 0.167542249, 0.2188819945, 0.2504172027, -0.4655805826, -0.2347148806, 0.338825047, 0.0246769991, 0.0422086678, 0.1224695891, -0.3912705481, -0.0406100973, -0.0284233168, 0.3491853178, 0.7707190514, 0.127644226, 0.0334593132, -0.1203364134, -0.0359244794, 0.0076951729, 0.3499153554, 0.0637109131, 0.3463788927, 0.3114223182, -0.0173667856, 0.0689948946, -0.0166560579, -0.0879929811, 0.0875868723, 0.0622763187, -0.4036814272, 0.0528638698, -0.1899865419, -0.0543130413, -0.304048717, -0.2463193387, -0.1040120721, -0.2119144499, -0.4094065726, 0.2274121642, -0.0545446537, 0.1956344545, -0.1933860928, 0.0545213334, 0.1509281099, -0.0917486772, 0.000324842, 0.0094417436, -0.2065684795, -0.0326040797, 0.2210374922, -0.1053389981, 0.0362827741, -0.1857271194, 0.0301047694, -0.1180917695, 0.1154468656, 0.0138303675, -0.0758283883, 0.1963145435, 0.0516775288, 0.2055031508, -0.0473082811, -0.651698947, 0.1352371126, 0.5362841487, -0.2745608687, 0.3799956441, 0.1490534693, -0.0947604924, -0.1053226814, -0.2667205036, -0.4566354752, -0.3636386693, -0.0651498735, -0.1452126354, 0.2417423725, 0.2856629193, 0.2368691713, 0.0091702137, 0.1459451318, 0.1538189054, -0.0961045846, -0.2391645014, 0.4765643477, 0.0441288091, -0.1764594316, -0.1454287469, -0.0685134828, 0.2939201891, 0.2050094604, -0.3704074919, 0.1182420105, -0.083930023, 0.0721747801, -0.3724434376, 0.0816905722, 0.0955050737, 0.3071267009, -0.0495688282, -0.1056538373, -0.1409311593, 0.1213520765, 0.0509184189, 0.3641841114, -0.0269906577, 0.3982565999, -0.0897530392, 0.4547498524, 0.2624274492, -0.1617569923, 0.2130927294, 0.1749908924, 0.5188264847, 0.009832873, -0.4894421101, -0.3085486591, -0.1053093448, -0.0222778115, -0.1453581452, -0.1314473897, -0.2135681063, -0.1715723723, 0.1677533537, -0.2021041214, -0.0977447778, 0.0934712291, -0.4890370965, 0.2789091766, -0.2671627402, -0.0172278434, -0.2255420983, 0.2368052751, -0.3388526142, -0.0028135432, 0.1530740559, -0.1081693918, -0.075842008, -0.0532247536, -0.1671224385, 0.2889295518, 0.0708028227, 0.6286577582, 0.0871339068, -0.3619209528, -0.1413576305, 0.1061917916, 0.6050748825, 0.3731420636, -0.3529820144, 0.3440541327, 0.1444435865, -0.5278424621, -0.1323237121, -0.1430729777, 0.2472811043, -0.0800599679, 0.6192361116, -0.2810608149, -0.210286364, 0.0483550467, 0.356557399, -0.0551358312, -0.0701751634, -0.3375283182, -0.0948552266, -0.2657560408, -0.1750981957, -0.0085994331, 0.3727572858, -0.117762059, -0.0307828821, -0.1024163812, -0.2032845318, 0.0942053348, -0.0615634657, 0.5736796856, -0.1058079377, 0.3382009864, -0.0404295586, 0.2728074491, 0.7298620343, 0.3896467388, 0.0485649779, -0.2766023874, 0.2084404081, 0.0665280595, 0.3524954617, 0.0325587317, -0.0774382949, 0.0276742615, -0.139604792, 0.1097321734, -0.0665157437, 0.080047518, 0.3577903211, -0.0214201957, -0.6502229571, -0.2415116578, 0.3491679132, 0.2181301564, -0.0446064509, 0.4857553542, -0.1855888218, -0.4610421956, 0.1322817951, 0.0488302335, 0.917632997, 0.0788558125, 0.338803947, 0.1819432527, -0.2325961888, 0.221138522, 0.1656602472, 0.1669917554, -0.2519561946, -0.2050486505, -0.1160063371, -0.3928779066, -0.0402876846, 0.1229913086, -0.2947118878, 0.1419769973, -0.4592787027, 0.1178657934, -0.1265632659, -0.0132099474, -0.1652891487, -0.21604985, -0.1619819999, 0.0130734025, -0.0312649347, -0.1588721424, -0.0141595537, -0.2484312505, -0.31445086, -0.0913044289, -0.1530978084, 0.2241207659, -0.2308595181, 0.7114480734, -0.0641590133, -0.2984418571, -0.2077657431, 0.1909826845, 0.1160421893, -0.2021058351, 0.0624314472, -0.1067820191, -0.0023862, 0.0436081253, -0.0302293636, -0.1206147596, 0.1903318465, 0.1035235822, -0.2395178378, 0.1121623069, -0.0587249696, -0.3359274268, 0.0498032048, 0.3367277384, 0.0734799057, -0.1848012954, -0.1993737668, 0.204734832, 0.0342358127, -0.0893300623, 0.0972223729, 0.1633283049, -0.1373356581, 0.1153961793, -0.228745386, -0.3422147632, -0.0366116203, 0.5363500714, 0.3310489357, 0.1768987179, 0.5639306307, -0.2512997091, -0.0115107223, -0.121089898, 0.3575093746, -0.048455447, -0.1171176955, 0.2420295477, 0.0464919955, 0.0316429846, -0.1686172038, 0.0865353942, 0.4298747778, 0.2080881596, -0.1115063652, -0.3559652269, -0.5394127965, 0.3848753273, -0.1338527352, 0.229548648, -0.0943681076, 0.0188093688, -0.2178018689, -0.1428945214, -0.2319717109, 0.0040236921, -0.2592311502, 0.0460577868, 0.1432738304, -0.0542204604, 0.1375244558, -0.0019386639, 0.1171025485, -0.0530864224, -0.0559871681, -0.1022241563, 0.1451755166, 0.1476069093, 0.1074890569, -0.2296527922, -0.1094962656, -0.3554103374, -0.0964424238, -0.1427860856, -0.1945213526, 0.1473959684, -0.06960655, 0.0959886611, 0.0284258462, 0.1697634757, -0.0842253491, 0.1773675531, -0.0078185583, 0.1223413125, -0.1652568579, 0.3226855099, -0.1020188257, -0.1035025939, -0.5782651901, 0.008041691, -0.1138387099, -0.1187392101, 0.1946614683, -0.2355363965, -0.1824668646, -0.0658955351, 0.1693888009, 0.4238762259, -0.2421947867, 0.0538663082, 0.067114681, 0.115609318, -0.1454008818, -0.2378466129, -0.4377291203, -0.1679387689, -0.2898410559, 0.0179742035, 0.0264650099, 0.0214354526, -0.1476332098, 0.047171656, 0.2570029199, -0.0331267193, 0.3051679134, 0.461743474, 0.1223693565, 0.0497954115, 0.1322661787, 0.2484993041, 0.3821694553, 0.3037098646, -0.1484184861, 0.2287612855, 0.1643529981, -0.2151865214, 0.000315338, -0.2952018082, 0.0082637724, 0.2186151743, -0.1552512497, -0.119868435, -0.0192838348, 0.1178452224, -0.3018824756, -0.2792959213, -0.1589520574, 0.1722863913, -0.0979041532, -0.0384443104, -0.0908662826, -0.1682471335, -0.0577136576, -0.1306226701, 0.1583765149, -0.1463907212, 0.3186440468, 0.149968937, -0.2276843041, -0.1426094174, 0.2273938358, 0.6780183911, -0.0640059561, -0.353202194, 0.1663101315, 0.4771776199, 0.0767004192, 0.1096612662, 0.2268026769, 0.6265038252, 0.6114814878, 0.0625264943, -0.099754557, 0.2163281888, -0.1871848255, 0.1355877221, 0.167971909, 0.0278325826, -0.209084928, 0.2076057643, 0.1935126483, -0.0455948338, 0.1615619212, 0.1468858272, 0.2199600488, -0.3095569313, 0.194754526, -0.3178145885, -0.2008012682, 0.0813218206, 0.019271696, -0.356980741, 0.0497223251, 0.6105669141, 0.0852060169, 0.1231747195, 0.3197071254, 0.023706235, 0.0234230738, 0.3911932707, 0.4590095878, 0.140597418, -0.4542918801, -0.193188563, -0.3783896267, -0.053324461, 0.2400221378, 0.0984769017, -0.120651342, 0.283274591, 0.2563628256, -0.005638299, 0.1536627114, 0.2694150805, -0.0883773416, -0.0958837196, -0.4344920814, -0.1329516321, 0.1246933118, -0.0194769967, 0.022135552, -0.5010997057, 0.1718221009, 0.1736253649, 0.011649142, -0.0122560281, 0.2122924179, 0.2748072147, 0.5003049374, 0.3791129291, 0.1555562764, 0.4756857753, -0.0263231173, -0.1617091149, 0.0252981763, -0.6679953933, -0.1731609404, 0.1567953974, 0.0030104944, 0.2358825654, -0.332893163, -0.0505152009, -0.1813411117, 0.2213232666, -0.1184191182, -0.2370862663, -0.1663624793, -0.0157359671, 0.0436303765, -0.2296957225, 0.1340021193, 0.1197353974, 0.0235280301, 0.4017441571, -0.0975407064, -0.2917837203, 0.4567210972, -0.0764688477, -0.1883585453, -0.0190355536, 0.0982665271, 0.0895534456, 0.2853969932, -0.5559757352, -0.0551312864, 0.492731452, -0.1836725473, -0.4319853187, 0.0786193535, 0.081673488, 0.0435455404, -0.017398186, 0.6414546967, -0.2835341692, -0.5346692801, -0.0249202698, -0.2045635134 ]
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.3956994712, 0.0156291481, -0.1538685113, -0.1850298494, 0.1417974979, -0.0578565411, 0.5068991184, 0.3400262594, -0.0834039673, 0.1681768894, -0.0184274632, 0.3370631635, 0.0475012511, 0.0918334797, -0.2264436632, 0.1021468639, -0.0123606632, 0.0946919024, 0.1290111095, 0.0473636836, -0.1753094196, 0.1040760577, -0.2302507162, 0.2859587371, -0.4516964853, -0.285730958, -0.0163215697, -0.0623163804, -0.2643238604, -0.4696435034, -0.1491132379, 0.2851144075, -0.1861114055, 0.6030861735, -0.0001044558, 0.0936726332, 0.2627738118, 0.0446499921, -0.0541403815, -0.0300701931, 0.095131591, -0.0515860766, -0.0309998766, -0.403598249, -0.0044789063, -0.2674305439, 0.177913487, -0.4431346357, 0.2878314257, 0.3189613819, 0.2665319443, 0.565527916, -0.2092227638, -0.0047210273, -0.2012013048, -0.07836245, -0.0357207507, -0.1625541449, 0.2167163342, -0.2403006703, -0.3567934334, 0.2491745055, -0.0430283211, 0.1743141115, -0.3290867805, 0.0007867727, 0.277649045, -0.2374248952, 0.3172338009, 0.0792360678, 0.1507845372, -0.2674021423, -0.3465929329, -0.1820104569, -0.2675665617, -0.1380905658, -0.0896174088, 0.0866118297, -0.3090318441, 0.0237945914, -0.2314288914, 0.0673613101, -0.0069425646, -0.0971345901, -0.2097461224, 0.6421572566, 0.0204103217, 0.2258118838, -0.0584264994, 0.0421580113, 0.13218458, -0.1236514747, 0.1550005376, -0.0283195619, -0.1767595112, -0.1339013726, 0.1732696444, -0.3608182669, 0.1934938878, -0.0518139042, -0.2702675462, 0.1569520831, 0.1210899577, 0.1657908857, 0.1612781733, 0.0505132787, 0.1559106857, 0.279648602, 0.2925397754, -0.196995765, -0.3908064663, -0.0121858465, 0.0276294257, -0.2749151587, 0.1901083291, 0.1587807089, 0.1859904528, 0.0203872938, -0.3168945611, -0.0674286261, -0.1310207099, -0.0011093755, 0.0109486775, 0.4655703008, -0.062577039, 0.210119471, -0.1869859844, 0.2766138613, -0.1955182999, -0.133565262, -0.2674529552, 0.1599750221, -0.1052408293, -0.0912759304, 0.0864881501, 0.2284778208, 0.3958971798, 0.0574224517, 0.0732816681, -0.0852144957, 0.4325413406, -0.2196345031, 0.2467179298, 0.0557839833, 0.0686216354, 0.1359150559, 0.2674401104, -0.3098888397, -0.1797688901, -0.0748897418, 0.0085685346, -0.1883708686, -0.0060652345, 0.2934332192, 0.0234700907, 0.0294385049, -0.1553814858, 0.1325115114, 0.2363229245, 0.0417060442, 0.0084720766, -0.1836157441, -0.2125669569, -0.1611634195, 0.1659641564, 0.2332042903, -0.1246360317, -0.0227328259, 0.0209113918, -0.1451628804, 0.2747375071, 0.2273867726, -0.0913353488, 0.6480852962, -0.1730045527, 0.5878828764, 0.1861092895, -0.5310035944, -0.1901536137, 0.2092230618, -0.3177127838, -0.0111942841, 0.1317908019, -0.1686787307, 0.3851613104, 0.0802869946, 0.1898802966, 0.2464481294, -0.1104765758, 0.2880240977, -0.2860673964, -0.0096032247, 0.0849479139, -0.0719702542, 0.2393062264, -0.2704798579, -0.0424100906, -0.1621233523, 0.2372230738, -0.1482037306, 0.2230833918, -0.0443855859, 0.0625270978, 0.0818429366, -0.0392005593, -0.1215577275, 0.0788094476, 0.2157846689, 0.0433689058, 0.0418131873, -0.1905941069, -0.1984121054, -0.0963726044, 0.2760664225, -0.2941966355, -0.3430737555, 0.3505135775, 0.3571792543, -0.0198514611, -0.0224458892, -0.0754135177, 0.1201191843, 0.153082639, 0.006208472, 0.0715010539, -0.0785522759, -0.1991022229, -0.1974655986, -0.0115250284, 0.0726842955, 0.1600965559, 0.0034864775, -0.0784359276, 0.4022409916, 0.2385912985, 0.1009368673, 0.2098904103, -0.1776233912, -0.0964286402, 0.0071382714, -0.0728402883, 0.1115309894, 0.0388302952, -0.0264948476, 0.1444303393, 0.4932917058, 0.2365599126, 0.1932385117, 0.2239500731, -0.0101360837, 0.2388229966, -0.1069112271, -0.0609273165, -0.1341270804, 0.0577990972, 0.0031341636, 0.1119551361, -0.1359221041, -0.2041952312, 0.1788985878, 0.3149355352, -0.0856284201, 0.1352986544, -0.1058830619, -0.0881045833, -0.1929528713, 0.0814027637, 0.1926788986, 0.3943271637, 0.2004813254, 0.1856657416, -0.0386409871, -0.0774590373, -0.0734679177, 0.1406774074, 0.0299729649, 0.1926372796, 0.2765001059, 0.2475030422, -0.2172686309, -0.3548971415, -0.2435459048, 0.1768792719, 0.1148346961, -0.1390991807, 0.0299772415, -0.3175421953, 0.0918785185, -0.0323444456, -0.0665199682, 0.2071172148, -0.3488471806, 0.1094206497, 0.1852680147, -0.169418171, 0.3220190108, -0.1171385422, 0.0898976624, -0.0134831276, -0.0217512064, -0.0988095701, -0.1474419534, -0.1254175305, 0.1327667981, 0.1662159264, 0.1449764073, 0.4963170886, 0.001336284, -0.2189733833, -0.5480387211, -0.245171845, 0.0971293747, -0.1633995622, 0.1954907626, 0.2778953016, 0.0427566245, -0.0250690207, -0.3409391344, 0.300249517, -0.4462933242, -0.373233676, -0.2133506984, 0.0948980749, -0.1722040176, -0.0335691907, -0.3764521182, -0.3236233294, -0.1813364923, 0.352352351, -0.0931493863, 0.1716112942, -0.1554574519, -0.1054515764, 0.1455906928, -0.0203672256, 0.1121425256, -0.2187276632, -0.1448163092, -0.0194474142, -0.1510414928, -0.2830696106, -0.1560444683, -0.140906021, 0.4374366701, -0.1034078896, -0.1784179658, -0.0407505967, -0.161214292, 0.4367103279, 0.0242295507, -0.0490039699, 0.3442160189, 0.2696901262, -0.3481391668, -0.0873823538, -0.1605873704, 0.0496433452, -0.2982188165, -0.1103074476, -0.1856850386, 0.4214309454, 0.2078024745, 0.5972418189, 0.0285144038, -0.0613888018, 0.1324319839, -0.4377177656, -0.0172749367, -0.0337197706, -0.4259907305, 0.1626303047, -0.2667847276, -0.1014863104, 0.1350758672, -0.1677295715, -0.1150869802, 0.1514068097, 0.0009904391, -0.3835223615, -0.2099660188, 0.0377301201, -0.1925777942, 0.0860436112, 0.0603312366, 0.01410913, -0.4112587273, 0.2260724008, -0.072192736, -0.0218361951, -0.1237445027, -0.3398275673, -0.3464433253, 0.0175716691, -0.6085759401, 0.354456991, 0.1318602413, 0.4851483703, 0.1367793381, 0.0053000934, 0.0414655469, -0.2825487852, 0.6524983048, -0.2151973397, 0.0749009103, 0.1836810559, -0.3277134597, -0.2910265028, -0.0436598547, -0.3557529449, 0.4460594058, 0.3172531724, 0.4865557849, -0.1918329149, -0.3518018723, 0.1224314049, -0.0199515782, 0.0334756039, 0.0118678603, -0.2885978222, -0.3060875237, -0.4088720977, 0.3470338881, 0.0887138247, 0.1813629717, -0.069950901, -0.124586679, -0.1805431396, -0.0352943987, 0.1069819555, 0.1873822808, -0.0616822653, -0.1572833657, 0.1408729851, -0.0219114572, 0.2116454244, 0.2355050445, 0.0500610732, -0.0951047167, -0.1150437444, 0.0940205529, 0.0208326522, 0.4114657938, 0.2416522354, -0.1685582399, 0.3699744344, -0.1364516616, 0.2886339128, -0.1108365804, 0.4739769101, 0.554315865, 0.1899578422, -0.1046062708, -0.1071347594, 0.0384810343, 0.1415002346, -0.1566073745, 0.306224972, -0.2532047033, -0.2288147211, 0.1476330608, 0.1779161394, 0.5770246983, -0.0932504162, 0.0875760838, 0.0692828074, -0.0339658111, 0.0664257109, -0.3225959241, 0.1247426718, -0.288105309, -0.1223683879, 0.0637505949, -0.0489773564, 0.1619586498, 0.1876238286, -0.3256684542, 0.1354867518, 0.2791850865, 0.1854789704, 0.0244831126, 0.431650579, 0.0075261639, -0.2300828248, -0.023363702, 0.2279519588, 0.1796824187, -0.0562871322, -0.0279300772, 0.1004806235, -0.0691839978, -0.3762970865, -0.1939992905, 0.020872876, -0.4312960804, 0.3942314088, 0.0237803068, 0.0594657212, 0.0281338636, 0.1458711624, 0.1447971165, 0.2050362229, 0.0107790306, 0.1170281395, 0.0932479575, 0.0910389647, 0.0838552192, -0.2934492528, 0.2623491287, -0.1249916479, -0.4529617131, 0.056927003, -0.0704901963, -0.2504338324, 0.0244052727, 0.1059231982, 0.2930749953, -0.2247791439, 0.0423180163, -0.0464649349, -0.2383498847, -0.3965627551, 0.2039444447, -0.1147942767, -0.1983671635, 0.2978396416, -0.1070739925, -0.3055644929, -0.0280590001, 0.2836198509, 0.0299852509, 0.1521654278, 0.5996190906, -0.077330634, -0.1156411171, -0.4316453934, 0.0979602784, 0.3189346194, 0.1494751871, 0.2477398962, -0.1895443648, -0.2431793511, 0.0721191019, 0.1885506511, 0.0378919765, 0.1453276724, -0.2402582765, -0.2921875119, -0.4588642716, 0.0046022679, -0.1703902781, 0.2114722431, 0.1943896562, 0.4413280487, -0.135223791, 0.2366547585, -0.4279208481, -0.0372964107, -0.4685040712, 0.2483723015, -0.0478402488, -0.0903499573, 0.0450875461, 0.0513903387, 0.3058930039, 0.220881775, -0.0576611795, -0.3870591819, -0.0921495706, 0.0931528062, 0.1092804521, 0.0143302977, 0.1976387352, 0.2131324261, -0.2241608948, -0.2637849152, 0.1043586805, 0.1285093129, -0.0872337893, 0.0787764117, 0.18168284, 0.0326142833, -0.0256912354, -0.3361304402, -0.0561857112, 0.032077197, -0.0667605847, 0.3304433227, 0.0313247107, -0.0545087643, 0.0997805595, 0.0593810938, 0.2828299701, 0.2285245806, 0.0306529552, -0.103048414, -0.3491648436, -0.0028985147, 0.3846752644, 0.2440444231, -0.2425766289, -0.0939172953, 0.2190345675, 0.3167301416, -0.231925413, -0.072775051, 0.2596984804, -0.3800117075, 0.3790824115, 0.2261145115, 0.0072067077, 0.1852704138, 0.11054454, 0.0050975764, 0.2265834212, -0.3973683417, -0.0119795138, 0.0900443941, -0.1410696357, 0.1985624284, 0.4492414296, 0.0734670237, 0.2462898195, 0.3410063982, 0.0147558078, 0.5114741325, -0.124685891, 0.0724944472, 0.0589090027, -0.0415681638, 0.3311867118, -0.0005667167, -0.0347976461, 0.0089656441, -0.0880122557, 0.3054791093, -0.3336258233, -0.0528678894, -0.2124444097, 0.3687889278, -0.1914829761, -0.3856402338, -0.2380474359, -0.0818296447, -0.1413497478, -0.0785161778, -0.0190696511, 0.1973137259, 0.0451894552, -0.0820418522, 0.0131342448, -0.2212533504, -0.0192149896, -0.0783581585, 0.1308196336, -0.2626003921, 0.2001495212, 0.1314701885, 0.1404422522, -0.1671113968, 0.6095549464, 0.5709314346, 0.3046992719, -0.1988586634, -0.1260325164, -0.334471494, -0.1386541724, -0.200234741, 0.286362052, 0.0003164706, -0.1747993082, 0.2625157833, 0.2772243619, -0.2658776939, -0.1564967632, 0.4190353751, -0.1771446615, 0.1225865036, 0.1675085276, 0.1353609562, -0.2269662619, 0.0732963309, 0.1038701981, -0.3389840126, -0.0345565267, 0.2996354699, -0.2357952297, 0.3266509771, -0.1310752779, 0.1637847424, 0.0463034995, 0.4507511854, 0.0503231734, 0.1739299446, -0.3142851889, -0.1331527382, -0.5782247782, 0.2144249976, -0.1688655764, -0.3648040891, -0.1931367218, 0.1571836323, 0.1029491946, 0.1065550447, 0.2409303635, 0.0778951868, -0.1090171263, 0.2187099606, -0.3619212806, 0.0869542211, 0.1755947918, 0.051984787, 0.2043186277, -0.4335596561, 0.2095238566, -0.0014672402, 0.2383019179, -0.014497418, 0.0347770303, 0.1814200282, -0.3401249945, 0.2746292353, 0.1093129367, 0.525728941, -0.4383837581, 0.0910443738, -0.1269074231, 0.1606310159, -0.4419290125, 0.0574722104, 0.241409868, 0.1892358214, 0.0872845575, -0.031147413, -0.1315662265, 0.1188576147, 0.2362553179, -0.0922231153, -0.0139228348, 0.3029532135, 0.1060064882, 0.0748863816, -0.1064884886, 0.339972198, -0.0225498267, 0.2731781006, -0.4903123975, -0.4749884903, 0.3061770797, -0.5121245384, -0.4921656847, -0.3859885633, 0.2887361944, -0.0939688683, 0.0935925543, -0.3449761271, -0.0112366127, 0.2883770466, 0.1060351133, -0.5911825299, 0.1808961779, 0.0886601508, -0.0450419001, -0.0889837816, 0.3249361813, 0.0077152289, -0.1511939615, -0.0211813059, -0.1020610332 ]
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.3956994712, 0.0156291481, -0.1538685113, -0.1850298494, 0.1417974979, -0.0578565411, 0.5068991184, 0.3400262594, -0.0834039673, 0.1681768894, -0.0184274632, 0.3370631635, 0.0475012511, 0.0918334797, -0.2264436632, 0.1021468639, -0.0123606632, 0.0946919024, 0.1290111095, 0.0473636836, -0.1753094196, 0.1040760577, -0.2302507162, 0.2859587371, -0.4516964853, -0.285730958, -0.0163215697, -0.0623163804, -0.2643238604, -0.4696435034, -0.1491132379, 0.2851144075, -0.1861114055, 0.6030861735, -0.0001044558, 0.0936726332, 0.2627738118, 0.0446499921, -0.0541403815, -0.0300701931, 0.095131591, -0.0515860766, -0.0309998766, -0.403598249, -0.0044789063, -0.2674305439, 0.177913487, -0.4431346357, 0.2878314257, 0.3189613819, 0.2665319443, 0.565527916, -0.2092227638, -0.0047210273, -0.2012013048, -0.07836245, -0.0357207507, -0.1625541449, 0.2167163342, -0.2403006703, -0.3567934334, 0.2491745055, -0.0430283211, 0.1743141115, -0.3290867805, 0.0007867727, 0.277649045, -0.2374248952, 0.3172338009, 0.0792360678, 0.1507845372, -0.2674021423, -0.3465929329, -0.1820104569, -0.2675665617, -0.1380905658, -0.0896174088, 0.0866118297, -0.3090318441, 0.0237945914, -0.2314288914, 0.0673613101, -0.0069425646, -0.0971345901, -0.2097461224, 0.6421572566, 0.0204103217, 0.2258118838, -0.0584264994, 0.0421580113, 0.13218458, -0.1236514747, 0.1550005376, -0.0283195619, -0.1767595112, -0.1339013726, 0.1732696444, -0.3608182669, 0.1934938878, -0.0518139042, -0.2702675462, 0.1569520831, 0.1210899577, 0.1657908857, 0.1612781733, 0.0505132787, 0.1559106857, 0.279648602, 0.2925397754, -0.196995765, -0.3908064663, -0.0121858465, 0.0276294257, -0.2749151587, 0.1901083291, 0.1587807089, 0.1859904528, 0.0203872938, -0.3168945611, -0.0674286261, -0.1310207099, -0.0011093755, 0.0109486775, 0.4655703008, -0.062577039, 0.210119471, -0.1869859844, 0.2766138613, -0.1955182999, -0.133565262, -0.2674529552, 0.1599750221, -0.1052408293, -0.0912759304, 0.0864881501, 0.2284778208, 0.3958971798, 0.0574224517, 0.0732816681, -0.0852144957, 0.4325413406, -0.2196345031, 0.2467179298, 0.0557839833, 0.0686216354, 0.1359150559, 0.2674401104, -0.3098888397, -0.1797688901, -0.0748897418, 0.0085685346, -0.1883708686, -0.0060652345, 0.2934332192, 0.0234700907, 0.0294385049, -0.1553814858, 0.1325115114, 0.2363229245, 0.0417060442, 0.0084720766, -0.1836157441, -0.2125669569, -0.1611634195, 0.1659641564, 0.2332042903, -0.1246360317, -0.0227328259, 0.0209113918, -0.1451628804, 0.2747375071, 0.2273867726, -0.0913353488, 0.6480852962, -0.1730045527, 0.5878828764, 0.1861092895, -0.5310035944, -0.1901536137, 0.2092230618, -0.3177127838, -0.0111942841, 0.1317908019, -0.1686787307, 0.3851613104, 0.0802869946, 0.1898802966, 0.2464481294, -0.1104765758, 0.2880240977, -0.2860673964, -0.0096032247, 0.0849479139, -0.0719702542, 0.2393062264, -0.2704798579, -0.0424100906, -0.1621233523, 0.2372230738, -0.1482037306, 0.2230833918, -0.0443855859, 0.0625270978, 0.0818429366, -0.0392005593, -0.1215577275, 0.0788094476, 0.2157846689, 0.0433689058, 0.0418131873, -0.1905941069, -0.1984121054, -0.0963726044, 0.2760664225, -0.2941966355, -0.3430737555, 0.3505135775, 0.3571792543, -0.0198514611, -0.0224458892, -0.0754135177, 0.1201191843, 0.153082639, 0.006208472, 0.0715010539, -0.0785522759, -0.1991022229, -0.1974655986, -0.0115250284, 0.0726842955, 0.1600965559, 0.0034864775, -0.0784359276, 0.4022409916, 0.2385912985, 0.1009368673, 0.2098904103, -0.1776233912, -0.0964286402, 0.0071382714, -0.0728402883, 0.1115309894, 0.0388302952, -0.0264948476, 0.1444303393, 0.4932917058, 0.2365599126, 0.1932385117, 0.2239500731, -0.0101360837, 0.2388229966, -0.1069112271, -0.0609273165, -0.1341270804, 0.0577990972, 0.0031341636, 0.1119551361, -0.1359221041, -0.2041952312, 0.1788985878, 0.3149355352, -0.0856284201, 0.1352986544, -0.1058830619, -0.0881045833, -0.1929528713, 0.0814027637, 0.1926788986, 0.3943271637, 0.2004813254, 0.1856657416, -0.0386409871, -0.0774590373, -0.0734679177, 0.1406774074, 0.0299729649, 0.1926372796, 0.2765001059, 0.2475030422, -0.2172686309, -0.3548971415, -0.2435459048, 0.1768792719, 0.1148346961, -0.1390991807, 0.0299772415, -0.3175421953, 0.0918785185, -0.0323444456, -0.0665199682, 0.2071172148, -0.3488471806, 0.1094206497, 0.1852680147, -0.169418171, 0.3220190108, -0.1171385422, 0.0898976624, -0.0134831276, -0.0217512064, -0.0988095701, -0.1474419534, -0.1254175305, 0.1327667981, 0.1662159264, 0.1449764073, 0.4963170886, 0.001336284, -0.2189733833, -0.5480387211, -0.245171845, 0.0971293747, -0.1633995622, 0.1954907626, 0.2778953016, 0.0427566245, -0.0250690207, -0.3409391344, 0.300249517, -0.4462933242, -0.373233676, -0.2133506984, 0.0948980749, -0.1722040176, -0.0335691907, -0.3764521182, -0.3236233294, -0.1813364923, 0.352352351, -0.0931493863, 0.1716112942, -0.1554574519, -0.1054515764, 0.1455906928, -0.0203672256, 0.1121425256, -0.2187276632, -0.1448163092, -0.0194474142, -0.1510414928, -0.2830696106, -0.1560444683, -0.140906021, 0.4374366701, -0.1034078896, -0.1784179658, -0.0407505967, -0.161214292, 0.4367103279, 0.0242295507, -0.0490039699, 0.3442160189, 0.2696901262, -0.3481391668, -0.0873823538, -0.1605873704, 0.0496433452, -0.2982188165, -0.1103074476, -0.1856850386, 0.4214309454, 0.2078024745, 0.5972418189, 0.0285144038, -0.0613888018, 0.1324319839, -0.4377177656, -0.0172749367, -0.0337197706, -0.4259907305, 0.1626303047, -0.2667847276, -0.1014863104, 0.1350758672, -0.1677295715, -0.1150869802, 0.1514068097, 0.0009904391, -0.3835223615, -0.2099660188, 0.0377301201, -0.1925777942, 0.0860436112, 0.0603312366, 0.01410913, -0.4112587273, 0.2260724008, -0.072192736, -0.0218361951, -0.1237445027, -0.3398275673, -0.3464433253, 0.0175716691, -0.6085759401, 0.354456991, 0.1318602413, 0.4851483703, 0.1367793381, 0.0053000934, 0.0414655469, -0.2825487852, 0.6524983048, -0.2151973397, 0.0749009103, 0.1836810559, -0.3277134597, -0.2910265028, -0.0436598547, -0.3557529449, 0.4460594058, 0.3172531724, 0.4865557849, -0.1918329149, -0.3518018723, 0.1224314049, -0.0199515782, 0.0334756039, 0.0118678603, -0.2885978222, -0.3060875237, -0.4088720977, 0.3470338881, 0.0887138247, 0.1813629717, -0.069950901, -0.124586679, -0.1805431396, -0.0352943987, 0.1069819555, 0.1873822808, -0.0616822653, -0.1572833657, 0.1408729851, -0.0219114572, 0.2116454244, 0.2355050445, 0.0500610732, -0.0951047167, -0.1150437444, 0.0940205529, 0.0208326522, 0.4114657938, 0.2416522354, -0.1685582399, 0.3699744344, -0.1364516616, 0.2886339128, -0.1108365804, 0.4739769101, 0.554315865, 0.1899578422, -0.1046062708, -0.1071347594, 0.0384810343, 0.1415002346, -0.1566073745, 0.306224972, -0.2532047033, -0.2288147211, 0.1476330608, 0.1779161394, 0.5770246983, -0.0932504162, 0.0875760838, 0.0692828074, -0.0339658111, 0.0664257109, -0.3225959241, 0.1247426718, -0.288105309, -0.1223683879, 0.0637505949, -0.0489773564, 0.1619586498, 0.1876238286, -0.3256684542, 0.1354867518, 0.2791850865, 0.1854789704, 0.0244831126, 0.431650579, 0.0075261639, -0.2300828248, -0.023363702, 0.2279519588, 0.1796824187, -0.0562871322, -0.0279300772, 0.1004806235, -0.0691839978, -0.3762970865, -0.1939992905, 0.020872876, -0.4312960804, 0.3942314088, 0.0237803068, 0.0594657212, 0.0281338636, 0.1458711624, 0.1447971165, 0.2050362229, 0.0107790306, 0.1170281395, 0.0932479575, 0.0910389647, 0.0838552192, -0.2934492528, 0.2623491287, -0.1249916479, -0.4529617131, 0.056927003, -0.0704901963, -0.2504338324, 0.0244052727, 0.1059231982, 0.2930749953, -0.2247791439, 0.0423180163, -0.0464649349, -0.2383498847, -0.3965627551, 0.2039444447, -0.1147942767, -0.1983671635, 0.2978396416, -0.1070739925, -0.3055644929, -0.0280590001, 0.2836198509, 0.0299852509, 0.1521654278, 0.5996190906, -0.077330634, -0.1156411171, -0.4316453934, 0.0979602784, 0.3189346194, 0.1494751871, 0.2477398962, -0.1895443648, -0.2431793511, 0.0721191019, 0.1885506511, 0.0378919765, 0.1453276724, -0.2402582765, -0.2921875119, -0.4588642716, 0.0046022679, -0.1703902781, 0.2114722431, 0.1943896562, 0.4413280487, -0.135223791, 0.2366547585, -0.4279208481, -0.0372964107, -0.4685040712, 0.2483723015, -0.0478402488, -0.0903499573, 0.0450875461, 0.0513903387, 0.3058930039, 0.220881775, -0.0576611795, -0.3870591819, -0.0921495706, 0.0931528062, 0.1092804521, 0.0143302977, 0.1976387352, 0.2131324261, -0.2241608948, -0.2637849152, 0.1043586805, 0.1285093129, -0.0872337893, 0.0787764117, 0.18168284, 0.0326142833, -0.0256912354, -0.3361304402, -0.0561857112, 0.032077197, -0.0667605847, 0.3304433227, 0.0313247107, -0.0545087643, 0.0997805595, 0.0593810938, 0.2828299701, 0.2285245806, 0.0306529552, -0.103048414, -0.3491648436, -0.0028985147, 0.3846752644, 0.2440444231, -0.2425766289, -0.0939172953, 0.2190345675, 0.3167301416, -0.231925413, -0.072775051, 0.2596984804, -0.3800117075, 0.3790824115, 0.2261145115, 0.0072067077, 0.1852704138, 0.11054454, 0.0050975764, 0.2265834212, -0.3973683417, -0.0119795138, 0.0900443941, -0.1410696357, 0.1985624284, 0.4492414296, 0.0734670237, 0.2462898195, 0.3410063982, 0.0147558078, 0.5114741325, -0.124685891, 0.0724944472, 0.0589090027, -0.0415681638, 0.3311867118, -0.0005667167, -0.0347976461, 0.0089656441, -0.0880122557, 0.3054791093, -0.3336258233, -0.0528678894, -0.2124444097, 0.3687889278, -0.1914829761, -0.3856402338, -0.2380474359, -0.0818296447, -0.1413497478, -0.0785161778, -0.0190696511, 0.1973137259, 0.0451894552, -0.0820418522, 0.0131342448, -0.2212533504, -0.0192149896, -0.0783581585, 0.1308196336, -0.2626003921, 0.2001495212, 0.1314701885, 0.1404422522, -0.1671113968, 0.6095549464, 0.5709314346, 0.3046992719, -0.1988586634, -0.1260325164, -0.334471494, -0.1386541724, -0.200234741, 0.286362052, 0.0003164706, -0.1747993082, 0.2625157833, 0.2772243619, -0.2658776939, -0.1564967632, 0.4190353751, -0.1771446615, 0.1225865036, 0.1675085276, 0.1353609562, -0.2269662619, 0.0732963309, 0.1038701981, -0.3389840126, -0.0345565267, 0.2996354699, -0.2357952297, 0.3266509771, -0.1310752779, 0.1637847424, 0.0463034995, 0.4507511854, 0.0503231734, 0.1739299446, -0.3142851889, -0.1331527382, -0.5782247782, 0.2144249976, -0.1688655764, -0.3648040891, -0.1931367218, 0.1571836323, 0.1029491946, 0.1065550447, 0.2409303635, 0.0778951868, -0.1090171263, 0.2187099606, -0.3619212806, 0.0869542211, 0.1755947918, 0.051984787, 0.2043186277, -0.4335596561, 0.2095238566, -0.0014672402, 0.2383019179, -0.014497418, 0.0347770303, 0.1814200282, -0.3401249945, 0.2746292353, 0.1093129367, 0.525728941, -0.4383837581, 0.0910443738, -0.1269074231, 0.1606310159, -0.4419290125, 0.0574722104, 0.241409868, 0.1892358214, 0.0872845575, -0.031147413, -0.1315662265, 0.1188576147, 0.2362553179, -0.0922231153, -0.0139228348, 0.3029532135, 0.1060064882, 0.0748863816, -0.1064884886, 0.339972198, -0.0225498267, 0.2731781006, -0.4903123975, -0.4749884903, 0.3061770797, -0.5121245384, -0.4921656847, -0.3859885633, 0.2887361944, -0.0939688683, 0.0935925543, -0.3449761271, -0.0112366127, 0.2883770466, 0.1060351133, -0.5911825299, 0.1808961779, 0.0886601508, -0.0450419001, -0.0889837816, 0.3249361813, 0.0077152289, -0.1511939615, -0.0211813059, -0.1020610332 ]
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.3956994712, 0.0156291481, -0.1538685113, -0.1850298494, 0.1417974979, -0.0578565411, 0.5068991184, 0.3400262594, -0.0834039673, 0.1681768894, -0.0184274632, 0.3370631635, 0.0475012511, 0.0918334797, -0.2264436632, 0.1021468639, -0.0123606632, 0.0946919024, 0.1290111095, 0.0473636836, -0.1753094196, 0.1040760577, -0.2302507162, 0.2859587371, -0.4516964853, -0.285730958, -0.0163215697, -0.0623163804, -0.2643238604, -0.4696435034, -0.1491132379, 0.2851144075, -0.1861114055, 0.6030861735, -0.0001044558, 0.0936726332, 0.2627738118, 0.0446499921, -0.0541403815, -0.0300701931, 0.095131591, -0.0515860766, -0.0309998766, -0.403598249, -0.0044789063, -0.2674305439, 0.177913487, -0.4431346357, 0.2878314257, 0.3189613819, 0.2665319443, 0.565527916, -0.2092227638, -0.0047210273, -0.2012013048, -0.07836245, -0.0357207507, -0.1625541449, 0.2167163342, -0.2403006703, -0.3567934334, 0.2491745055, -0.0430283211, 0.1743141115, -0.3290867805, 0.0007867727, 0.277649045, -0.2374248952, 0.3172338009, 0.0792360678, 0.1507845372, -0.2674021423, -0.3465929329, -0.1820104569, -0.2675665617, -0.1380905658, -0.0896174088, 0.0866118297, -0.3090318441, 0.0237945914, -0.2314288914, 0.0673613101, -0.0069425646, -0.0971345901, -0.2097461224, 0.6421572566, 0.0204103217, 0.2258118838, -0.0584264994, 0.0421580113, 0.13218458, -0.1236514747, 0.1550005376, -0.0283195619, -0.1767595112, -0.1339013726, 0.1732696444, -0.3608182669, 0.1934938878, -0.0518139042, -0.2702675462, 0.1569520831, 0.1210899577, 0.1657908857, 0.1612781733, 0.0505132787, 0.1559106857, 0.279648602, 0.2925397754, -0.196995765, -0.3908064663, -0.0121858465, 0.0276294257, -0.2749151587, 0.1901083291, 0.1587807089, 0.1859904528, 0.0203872938, -0.3168945611, -0.0674286261, -0.1310207099, -0.0011093755, 0.0109486775, 0.4655703008, -0.062577039, 0.210119471, -0.1869859844, 0.2766138613, -0.1955182999, -0.133565262, -0.2674529552, 0.1599750221, -0.1052408293, -0.0912759304, 0.0864881501, 0.2284778208, 0.3958971798, 0.0574224517, 0.0732816681, -0.0852144957, 0.4325413406, -0.2196345031, 0.2467179298, 0.0557839833, 0.0686216354, 0.1359150559, 0.2674401104, -0.3098888397, -0.1797688901, -0.0748897418, 0.0085685346, -0.1883708686, -0.0060652345, 0.2934332192, 0.0234700907, 0.0294385049, -0.1553814858, 0.1325115114, 0.2363229245, 0.0417060442, 0.0084720766, -0.1836157441, -0.2125669569, -0.1611634195, 0.1659641564, 0.2332042903, -0.1246360317, -0.0227328259, 0.0209113918, -0.1451628804, 0.2747375071, 0.2273867726, -0.0913353488, 0.6480852962, -0.1730045527, 0.5878828764, 0.1861092895, -0.5310035944, -0.1901536137, 0.2092230618, -0.3177127838, -0.0111942841, 0.1317908019, -0.1686787307, 0.3851613104, 0.0802869946, 0.1898802966, 0.2464481294, -0.1104765758, 0.2880240977, -0.2860673964, -0.0096032247, 0.0849479139, -0.0719702542, 0.2393062264, -0.2704798579, -0.0424100906, -0.1621233523, 0.2372230738, -0.1482037306, 0.2230833918, -0.0443855859, 0.0625270978, 0.0818429366, -0.0392005593, -0.1215577275, 0.0788094476, 0.2157846689, 0.0433689058, 0.0418131873, -0.1905941069, -0.1984121054, -0.0963726044, 0.2760664225, -0.2941966355, -0.3430737555, 0.3505135775, 0.3571792543, -0.0198514611, -0.0224458892, -0.0754135177, 0.1201191843, 0.153082639, 0.006208472, 0.0715010539, -0.0785522759, -0.1991022229, -0.1974655986, -0.0115250284, 0.0726842955, 0.1600965559, 0.0034864775, -0.0784359276, 0.4022409916, 0.2385912985, 0.1009368673, 0.2098904103, -0.1776233912, -0.0964286402, 0.0071382714, -0.0728402883, 0.1115309894, 0.0388302952, -0.0264948476, 0.1444303393, 0.4932917058, 0.2365599126, 0.1932385117, 0.2239500731, -0.0101360837, 0.2388229966, -0.1069112271, -0.0609273165, -0.1341270804, 0.0577990972, 0.0031341636, 0.1119551361, -0.1359221041, -0.2041952312, 0.1788985878, 0.3149355352, -0.0856284201, 0.1352986544, -0.1058830619, -0.0881045833, -0.1929528713, 0.0814027637, 0.1926788986, 0.3943271637, 0.2004813254, 0.1856657416, -0.0386409871, -0.0774590373, -0.0734679177, 0.1406774074, 0.0299729649, 0.1926372796, 0.2765001059, 0.2475030422, -0.2172686309, -0.3548971415, -0.2435459048, 0.1768792719, 0.1148346961, -0.1390991807, 0.0299772415, -0.3175421953, 0.0918785185, -0.0323444456, -0.0665199682, 0.2071172148, -0.3488471806, 0.1094206497, 0.1852680147, -0.169418171, 0.3220190108, -0.1171385422, 0.0898976624, -0.0134831276, -0.0217512064, -0.0988095701, -0.1474419534, -0.1254175305, 0.1327667981, 0.1662159264, 0.1449764073, 0.4963170886, 0.001336284, -0.2189733833, -0.5480387211, -0.245171845, 0.0971293747, -0.1633995622, 0.1954907626, 0.2778953016, 0.0427566245, -0.0250690207, -0.3409391344, 0.300249517, -0.4462933242, -0.373233676, -0.2133506984, 0.0948980749, -0.1722040176, -0.0335691907, -0.3764521182, -0.3236233294, -0.1813364923, 0.352352351, -0.0931493863, 0.1716112942, -0.1554574519, -0.1054515764, 0.1455906928, -0.0203672256, 0.1121425256, -0.2187276632, -0.1448163092, -0.0194474142, -0.1510414928, -0.2830696106, -0.1560444683, -0.140906021, 0.4374366701, -0.1034078896, -0.1784179658, -0.0407505967, -0.161214292, 0.4367103279, 0.0242295507, -0.0490039699, 0.3442160189, 0.2696901262, -0.3481391668, -0.0873823538, -0.1605873704, 0.0496433452, -0.2982188165, -0.1103074476, -0.1856850386, 0.4214309454, 0.2078024745, 0.5972418189, 0.0285144038, -0.0613888018, 0.1324319839, -0.4377177656, -0.0172749367, -0.0337197706, -0.4259907305, 0.1626303047, -0.2667847276, -0.1014863104, 0.1350758672, -0.1677295715, -0.1150869802, 0.1514068097, 0.0009904391, -0.3835223615, -0.2099660188, 0.0377301201, -0.1925777942, 0.0860436112, 0.0603312366, 0.01410913, -0.4112587273, 0.2260724008, -0.072192736, -0.0218361951, -0.1237445027, -0.3398275673, -0.3464433253, 0.0175716691, -0.6085759401, 0.354456991, 0.1318602413, 0.4851483703, 0.1367793381, 0.0053000934, 0.0414655469, -0.2825487852, 0.6524983048, -0.2151973397, 0.0749009103, 0.1836810559, -0.3277134597, -0.2910265028, -0.0436598547, -0.3557529449, 0.4460594058, 0.3172531724, 0.4865557849, -0.1918329149, -0.3518018723, 0.1224314049, -0.0199515782, 0.0334756039, 0.0118678603, -0.2885978222, -0.3060875237, -0.4088720977, 0.3470338881, 0.0887138247, 0.1813629717, -0.069950901, -0.124586679, -0.1805431396, -0.0352943987, 0.1069819555, 0.1873822808, -0.0616822653, -0.1572833657, 0.1408729851, -0.0219114572, 0.2116454244, 0.2355050445, 0.0500610732, -0.0951047167, -0.1150437444, 0.0940205529, 0.0208326522, 0.4114657938, 0.2416522354, -0.1685582399, 0.3699744344, -0.1364516616, 0.2886339128, -0.1108365804, 0.4739769101, 0.554315865, 0.1899578422, -0.1046062708, -0.1071347594, 0.0384810343, 0.1415002346, -0.1566073745, 0.306224972, -0.2532047033, -0.2288147211, 0.1476330608, 0.1779161394, 0.5770246983, -0.0932504162, 0.0875760838, 0.0692828074, -0.0339658111, 0.0664257109, -0.3225959241, 0.1247426718, -0.288105309, -0.1223683879, 0.0637505949, -0.0489773564, 0.1619586498, 0.1876238286, -0.3256684542, 0.1354867518, 0.2791850865, 0.1854789704, 0.0244831126, 0.431650579, 0.0075261639, -0.2300828248, -0.023363702, 0.2279519588, 0.1796824187, -0.0562871322, -0.0279300772, 0.1004806235, -0.0691839978, -0.3762970865, -0.1939992905, 0.020872876, -0.4312960804, 0.3942314088, 0.0237803068, 0.0594657212, 0.0281338636, 0.1458711624, 0.1447971165, 0.2050362229, 0.0107790306, 0.1170281395, 0.0932479575, 0.0910389647, 0.0838552192, -0.2934492528, 0.2623491287, -0.1249916479, -0.4529617131, 0.056927003, -0.0704901963, -0.2504338324, 0.0244052727, 0.1059231982, 0.2930749953, -0.2247791439, 0.0423180163, -0.0464649349, -0.2383498847, -0.3965627551, 0.2039444447, -0.1147942767, -0.1983671635, 0.2978396416, -0.1070739925, -0.3055644929, -0.0280590001, 0.2836198509, 0.0299852509, 0.1521654278, 0.5996190906, -0.077330634, -0.1156411171, -0.4316453934, 0.0979602784, 0.3189346194, 0.1494751871, 0.2477398962, -0.1895443648, -0.2431793511, 0.0721191019, 0.1885506511, 0.0378919765, 0.1453276724, -0.2402582765, -0.2921875119, -0.4588642716, 0.0046022679, -0.1703902781, 0.2114722431, 0.1943896562, 0.4413280487, -0.135223791, 0.2366547585, -0.4279208481, -0.0372964107, -0.4685040712, 0.2483723015, -0.0478402488, -0.0903499573, 0.0450875461, 0.0513903387, 0.3058930039, 0.220881775, -0.0576611795, -0.3870591819, -0.0921495706, 0.0931528062, 0.1092804521, 0.0143302977, 0.1976387352, 0.2131324261, -0.2241608948, -0.2637849152, 0.1043586805, 0.1285093129, -0.0872337893, 0.0787764117, 0.18168284, 0.0326142833, -0.0256912354, -0.3361304402, -0.0561857112, 0.032077197, -0.0667605847, 0.3304433227, 0.0313247107, -0.0545087643, 0.0997805595, 0.0593810938, 0.2828299701, 0.2285245806, 0.0306529552, -0.103048414, -0.3491648436, -0.0028985147, 0.3846752644, 0.2440444231, -0.2425766289, -0.0939172953, 0.2190345675, 0.3167301416, -0.231925413, -0.072775051, 0.2596984804, -0.3800117075, 0.3790824115, 0.2261145115, 0.0072067077, 0.1852704138, 0.11054454, 0.0050975764, 0.2265834212, -0.3973683417, -0.0119795138, 0.0900443941, -0.1410696357, 0.1985624284, 0.4492414296, 0.0734670237, 0.2462898195, 0.3410063982, 0.0147558078, 0.5114741325, -0.124685891, 0.0724944472, 0.0589090027, -0.0415681638, 0.3311867118, -0.0005667167, -0.0347976461, 0.0089656441, -0.0880122557, 0.3054791093, -0.3336258233, -0.0528678894, -0.2124444097, 0.3687889278, -0.1914829761, -0.3856402338, -0.2380474359, -0.0818296447, -0.1413497478, -0.0785161778, -0.0190696511, 0.1973137259, 0.0451894552, -0.0820418522, 0.0131342448, -0.2212533504, -0.0192149896, -0.0783581585, 0.1308196336, -0.2626003921, 0.2001495212, 0.1314701885, 0.1404422522, -0.1671113968, 0.6095549464, 0.5709314346, 0.3046992719, -0.1988586634, -0.1260325164, -0.334471494, -0.1386541724, -0.200234741, 0.286362052, 0.0003164706, -0.1747993082, 0.2625157833, 0.2772243619, -0.2658776939, -0.1564967632, 0.4190353751, -0.1771446615, 0.1225865036, 0.1675085276, 0.1353609562, -0.2269662619, 0.0732963309, 0.1038701981, -0.3389840126, -0.0345565267, 0.2996354699, -0.2357952297, 0.3266509771, -0.1310752779, 0.1637847424, 0.0463034995, 0.4507511854, 0.0503231734, 0.1739299446, -0.3142851889, -0.1331527382, -0.5782247782, 0.2144249976, -0.1688655764, -0.3648040891, -0.1931367218, 0.1571836323, 0.1029491946, 0.1065550447, 0.2409303635, 0.0778951868, -0.1090171263, 0.2187099606, -0.3619212806, 0.0869542211, 0.1755947918, 0.051984787, 0.2043186277, -0.4335596561, 0.2095238566, -0.0014672402, 0.2383019179, -0.014497418, 0.0347770303, 0.1814200282, -0.3401249945, 0.2746292353, 0.1093129367, 0.525728941, -0.4383837581, 0.0910443738, -0.1269074231, 0.1606310159, -0.4419290125, 0.0574722104, 0.241409868, 0.1892358214, 0.0872845575, -0.031147413, -0.1315662265, 0.1188576147, 0.2362553179, -0.0922231153, -0.0139228348, 0.3029532135, 0.1060064882, 0.0748863816, -0.1064884886, 0.339972198, -0.0225498267, 0.2731781006, -0.4903123975, -0.4749884903, 0.3061770797, -0.5121245384, -0.4921656847, -0.3859885633, 0.2887361944, -0.0939688683, 0.0935925543, -0.3449761271, -0.0112366127, 0.2883770466, 0.1060351133, -0.5911825299, 0.1808961779, 0.0886601508, -0.0450419001, -0.0889837816, 0.3249361813, 0.0077152289, -0.1511939615, -0.0211813059, -0.1020610332 ]
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.3956994712, 0.0156291481, -0.1538685113, -0.1850298494, 0.1417974979, -0.0578565411, 0.5068991184, 0.3400262594, -0.0834039673, 0.1681768894, -0.0184274632, 0.3370631635, 0.0475012511, 0.0918334797, -0.2264436632, 0.1021468639, -0.0123606632, 0.0946919024, 0.1290111095, 0.0473636836, -0.1753094196, 0.1040760577, -0.2302507162, 0.2859587371, -0.4516964853, -0.285730958, -0.0163215697, -0.0623163804, -0.2643238604, -0.4696435034, -0.1491132379, 0.2851144075, -0.1861114055, 0.6030861735, -0.0001044558, 0.0936726332, 0.2627738118, 0.0446499921, -0.0541403815, -0.0300701931, 0.095131591, -0.0515860766, -0.0309998766, -0.403598249, -0.0044789063, -0.2674305439, 0.177913487, -0.4431346357, 0.2878314257, 0.3189613819, 0.2665319443, 0.565527916, -0.2092227638, -0.0047210273, -0.2012013048, -0.07836245, -0.0357207507, -0.1625541449, 0.2167163342, -0.2403006703, -0.3567934334, 0.2491745055, -0.0430283211, 0.1743141115, -0.3290867805, 0.0007867727, 0.277649045, -0.2374248952, 0.3172338009, 0.0792360678, 0.1507845372, -0.2674021423, -0.3465929329, -0.1820104569, -0.2675665617, -0.1380905658, -0.0896174088, 0.0866118297, -0.3090318441, 0.0237945914, -0.2314288914, 0.0673613101, -0.0069425646, -0.0971345901, -0.2097461224, 0.6421572566, 0.0204103217, 0.2258118838, -0.0584264994, 0.0421580113, 0.13218458, -0.1236514747, 0.1550005376, -0.0283195619, -0.1767595112, -0.1339013726, 0.1732696444, -0.3608182669, 0.1934938878, -0.0518139042, -0.2702675462, 0.1569520831, 0.1210899577, 0.1657908857, 0.1612781733, 0.0505132787, 0.1559106857, 0.279648602, 0.2925397754, -0.196995765, -0.3908064663, -0.0121858465, 0.0276294257, -0.2749151587, 0.1901083291, 0.1587807089, 0.1859904528, 0.0203872938, -0.3168945611, -0.0674286261, -0.1310207099, -0.0011093755, 0.0109486775, 0.4655703008, -0.062577039, 0.210119471, -0.1869859844, 0.2766138613, -0.1955182999, -0.133565262, -0.2674529552, 0.1599750221, -0.1052408293, -0.0912759304, 0.0864881501, 0.2284778208, 0.3958971798, 0.0574224517, 0.0732816681, -0.0852144957, 0.4325413406, -0.2196345031, 0.2467179298, 0.0557839833, 0.0686216354, 0.1359150559, 0.2674401104, -0.3098888397, -0.1797688901, -0.0748897418, 0.0085685346, -0.1883708686, -0.0060652345, 0.2934332192, 0.0234700907, 0.0294385049, -0.1553814858, 0.1325115114, 0.2363229245, 0.0417060442, 0.0084720766, -0.1836157441, -0.2125669569, -0.1611634195, 0.1659641564, 0.2332042903, -0.1246360317, -0.0227328259, 0.0209113918, -0.1451628804, 0.2747375071, 0.2273867726, -0.0913353488, 0.6480852962, -0.1730045527, 0.5878828764, 0.1861092895, -0.5310035944, -0.1901536137, 0.2092230618, -0.3177127838, -0.0111942841, 0.1317908019, -0.1686787307, 0.3851613104, 0.0802869946, 0.1898802966, 0.2464481294, -0.1104765758, 0.2880240977, -0.2860673964, -0.0096032247, 0.0849479139, -0.0719702542, 0.2393062264, -0.2704798579, -0.0424100906, -0.1621233523, 0.2372230738, -0.1482037306, 0.2230833918, -0.0443855859, 0.0625270978, 0.0818429366, -0.0392005593, -0.1215577275, 0.0788094476, 0.2157846689, 0.0433689058, 0.0418131873, -0.1905941069, -0.1984121054, -0.0963726044, 0.2760664225, -0.2941966355, -0.3430737555, 0.3505135775, 0.3571792543, -0.0198514611, -0.0224458892, -0.0754135177, 0.1201191843, 0.153082639, 0.006208472, 0.0715010539, -0.0785522759, -0.1991022229, -0.1974655986, -0.0115250284, 0.0726842955, 0.1600965559, 0.0034864775, -0.0784359276, 0.4022409916, 0.2385912985, 0.1009368673, 0.2098904103, -0.1776233912, -0.0964286402, 0.0071382714, -0.0728402883, 0.1115309894, 0.0388302952, -0.0264948476, 0.1444303393, 0.4932917058, 0.2365599126, 0.1932385117, 0.2239500731, -0.0101360837, 0.2388229966, -0.1069112271, -0.0609273165, -0.1341270804, 0.0577990972, 0.0031341636, 0.1119551361, -0.1359221041, -0.2041952312, 0.1788985878, 0.3149355352, -0.0856284201, 0.1352986544, -0.1058830619, -0.0881045833, -0.1929528713, 0.0814027637, 0.1926788986, 0.3943271637, 0.2004813254, 0.1856657416, -0.0386409871, -0.0774590373, -0.0734679177, 0.1406774074, 0.0299729649, 0.1926372796, 0.2765001059, 0.2475030422, -0.2172686309, -0.3548971415, -0.2435459048, 0.1768792719, 0.1148346961, -0.1390991807, 0.0299772415, -0.3175421953, 0.0918785185, -0.0323444456, -0.0665199682, 0.2071172148, -0.3488471806, 0.1094206497, 0.1852680147, -0.169418171, 0.3220190108, -0.1171385422, 0.0898976624, -0.0134831276, -0.0217512064, -0.0988095701, -0.1474419534, -0.1254175305, 0.1327667981, 0.1662159264, 0.1449764073, 0.4963170886, 0.001336284, -0.2189733833, -0.5480387211, -0.245171845, 0.0971293747, -0.1633995622, 0.1954907626, 0.2778953016, 0.0427566245, -0.0250690207, -0.3409391344, 0.300249517, -0.4462933242, -0.373233676, -0.2133506984, 0.0948980749, -0.1722040176, -0.0335691907, -0.3764521182, -0.3236233294, -0.1813364923, 0.352352351, -0.0931493863, 0.1716112942, -0.1554574519, -0.1054515764, 0.1455906928, -0.0203672256, 0.1121425256, -0.2187276632, -0.1448163092, -0.0194474142, -0.1510414928, -0.2830696106, -0.1560444683, -0.140906021, 0.4374366701, -0.1034078896, -0.1784179658, -0.0407505967, -0.161214292, 0.4367103279, 0.0242295507, -0.0490039699, 0.3442160189, 0.2696901262, -0.3481391668, -0.0873823538, -0.1605873704, 0.0496433452, -0.2982188165, -0.1103074476, -0.1856850386, 0.4214309454, 0.2078024745, 0.5972418189, 0.0285144038, -0.0613888018, 0.1324319839, -0.4377177656, -0.0172749367, -0.0337197706, -0.4259907305, 0.1626303047, -0.2667847276, -0.1014863104, 0.1350758672, -0.1677295715, -0.1150869802, 0.1514068097, 0.0009904391, -0.3835223615, -0.2099660188, 0.0377301201, -0.1925777942, 0.0860436112, 0.0603312366, 0.01410913, -0.4112587273, 0.2260724008, -0.072192736, -0.0218361951, -0.1237445027, -0.3398275673, -0.3464433253, 0.0175716691, -0.6085759401, 0.354456991, 0.1318602413, 0.4851483703, 0.1367793381, 0.0053000934, 0.0414655469, -0.2825487852, 0.6524983048, -0.2151973397, 0.0749009103, 0.1836810559, -0.3277134597, -0.2910265028, -0.0436598547, -0.3557529449, 0.4460594058, 0.3172531724, 0.4865557849, -0.1918329149, -0.3518018723, 0.1224314049, -0.0199515782, 0.0334756039, 0.0118678603, -0.2885978222, -0.3060875237, -0.4088720977, 0.3470338881, 0.0887138247, 0.1813629717, -0.069950901, -0.124586679, -0.1805431396, -0.0352943987, 0.1069819555, 0.1873822808, -0.0616822653, -0.1572833657, 0.1408729851, -0.0219114572, 0.2116454244, 0.2355050445, 0.0500610732, -0.0951047167, -0.1150437444, 0.0940205529, 0.0208326522, 0.4114657938, 0.2416522354, -0.1685582399, 0.3699744344, -0.1364516616, 0.2886339128, -0.1108365804, 0.4739769101, 0.554315865, 0.1899578422, -0.1046062708, -0.1071347594, 0.0384810343, 0.1415002346, -0.1566073745, 0.306224972, -0.2532047033, -0.2288147211, 0.1476330608, 0.1779161394, 0.5770246983, -0.0932504162, 0.0875760838, 0.0692828074, -0.0339658111, 0.0664257109, -0.3225959241, 0.1247426718, -0.288105309, -0.1223683879, 0.0637505949, -0.0489773564, 0.1619586498, 0.1876238286, -0.3256684542, 0.1354867518, 0.2791850865, 0.1854789704, 0.0244831126, 0.431650579, 0.0075261639, -0.2300828248, -0.023363702, 0.2279519588, 0.1796824187, -0.0562871322, -0.0279300772, 0.1004806235, -0.0691839978, -0.3762970865, -0.1939992905, 0.020872876, -0.4312960804, 0.3942314088, 0.0237803068, 0.0594657212, 0.0281338636, 0.1458711624, 0.1447971165, 0.2050362229, 0.0107790306, 0.1170281395, 0.0932479575, 0.0910389647, 0.0838552192, -0.2934492528, 0.2623491287, -0.1249916479, -0.4529617131, 0.056927003, -0.0704901963, -0.2504338324, 0.0244052727, 0.1059231982, 0.2930749953, -0.2247791439, 0.0423180163, -0.0464649349, -0.2383498847, -0.3965627551, 0.2039444447, -0.1147942767, -0.1983671635, 0.2978396416, -0.1070739925, -0.3055644929, -0.0280590001, 0.2836198509, 0.0299852509, 0.1521654278, 0.5996190906, -0.077330634, -0.1156411171, -0.4316453934, 0.0979602784, 0.3189346194, 0.1494751871, 0.2477398962, -0.1895443648, -0.2431793511, 0.0721191019, 0.1885506511, 0.0378919765, 0.1453276724, -0.2402582765, -0.2921875119, -0.4588642716, 0.0046022679, -0.1703902781, 0.2114722431, 0.1943896562, 0.4413280487, -0.135223791, 0.2366547585, -0.4279208481, -0.0372964107, -0.4685040712, 0.2483723015, -0.0478402488, -0.0903499573, 0.0450875461, 0.0513903387, 0.3058930039, 0.220881775, -0.0576611795, -0.3870591819, -0.0921495706, 0.0931528062, 0.1092804521, 0.0143302977, 0.1976387352, 0.2131324261, -0.2241608948, -0.2637849152, 0.1043586805, 0.1285093129, -0.0872337893, 0.0787764117, 0.18168284, 0.0326142833, -0.0256912354, -0.3361304402, -0.0561857112, 0.032077197, -0.0667605847, 0.3304433227, 0.0313247107, -0.0545087643, 0.0997805595, 0.0593810938, 0.2828299701, 0.2285245806, 0.0306529552, -0.103048414, -0.3491648436, -0.0028985147, 0.3846752644, 0.2440444231, -0.2425766289, -0.0939172953, 0.2190345675, 0.3167301416, -0.231925413, -0.072775051, 0.2596984804, -0.3800117075, 0.3790824115, 0.2261145115, 0.0072067077, 0.1852704138, 0.11054454, 0.0050975764, 0.2265834212, -0.3973683417, -0.0119795138, 0.0900443941, -0.1410696357, 0.1985624284, 0.4492414296, 0.0734670237, 0.2462898195, 0.3410063982, 0.0147558078, 0.5114741325, -0.124685891, 0.0724944472, 0.0589090027, -0.0415681638, 0.3311867118, -0.0005667167, -0.0347976461, 0.0089656441, -0.0880122557, 0.3054791093, -0.3336258233, -0.0528678894, -0.2124444097, 0.3687889278, -0.1914829761, -0.3856402338, -0.2380474359, -0.0818296447, -0.1413497478, -0.0785161778, -0.0190696511, 0.1973137259, 0.0451894552, -0.0820418522, 0.0131342448, -0.2212533504, -0.0192149896, -0.0783581585, 0.1308196336, -0.2626003921, 0.2001495212, 0.1314701885, 0.1404422522, -0.1671113968, 0.6095549464, 0.5709314346, 0.3046992719, -0.1988586634, -0.1260325164, -0.334471494, -0.1386541724, -0.200234741, 0.286362052, 0.0003164706, -0.1747993082, 0.2625157833, 0.2772243619, -0.2658776939, -0.1564967632, 0.4190353751, -0.1771446615, 0.1225865036, 0.1675085276, 0.1353609562, -0.2269662619, 0.0732963309, 0.1038701981, -0.3389840126, -0.0345565267, 0.2996354699, -0.2357952297, 0.3266509771, -0.1310752779, 0.1637847424, 0.0463034995, 0.4507511854, 0.0503231734, 0.1739299446, -0.3142851889, -0.1331527382, -0.5782247782, 0.2144249976, -0.1688655764, -0.3648040891, -0.1931367218, 0.1571836323, 0.1029491946, 0.1065550447, 0.2409303635, 0.0778951868, -0.1090171263, 0.2187099606, -0.3619212806, 0.0869542211, 0.1755947918, 0.051984787, 0.2043186277, -0.4335596561, 0.2095238566, -0.0014672402, 0.2383019179, -0.014497418, 0.0347770303, 0.1814200282, -0.3401249945, 0.2746292353, 0.1093129367, 0.525728941, -0.4383837581, 0.0910443738, -0.1269074231, 0.1606310159, -0.4419290125, 0.0574722104, 0.241409868, 0.1892358214, 0.0872845575, -0.031147413, -0.1315662265, 0.1188576147, 0.2362553179, -0.0922231153, -0.0139228348, 0.3029532135, 0.1060064882, 0.0748863816, -0.1064884886, 0.339972198, -0.0225498267, 0.2731781006, -0.4903123975, -0.4749884903, 0.3061770797, -0.5121245384, -0.4921656847, -0.3859885633, 0.2887361944, -0.0939688683, 0.0935925543, -0.3449761271, -0.0112366127, 0.2883770466, 0.1060351133, -0.5911825299, 0.1808961779, 0.0886601508, -0.0450419001, -0.0889837816, 0.3249361813, 0.0077152289, -0.1511939615, -0.0211813059, -0.1020610332 ]
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.3956994712, 0.0156291481, -0.1538685113, -0.1850298494, 0.1417974979, -0.0578565411, 0.5068991184, 0.3400262594, -0.0834039673, 0.1681768894, -0.0184274632, 0.3370631635, 0.0475012511, 0.0918334797, -0.2264436632, 0.1021468639, -0.0123606632, 0.0946919024, 0.1290111095, 0.0473636836, -0.1753094196, 0.1040760577, -0.2302507162, 0.2859587371, -0.4516964853, -0.285730958, -0.0163215697, -0.0623163804, -0.2643238604, -0.4696435034, -0.1491132379, 0.2851144075, -0.1861114055, 0.6030861735, -0.0001044558, 0.0936726332, 0.2627738118, 0.0446499921, -0.0541403815, -0.0300701931, 0.095131591, -0.0515860766, -0.0309998766, -0.403598249, -0.0044789063, -0.2674305439, 0.177913487, -0.4431346357, 0.2878314257, 0.3189613819, 0.2665319443, 0.565527916, -0.2092227638, -0.0047210273, -0.2012013048, -0.07836245, -0.0357207507, -0.1625541449, 0.2167163342, -0.2403006703, -0.3567934334, 0.2491745055, -0.0430283211, 0.1743141115, -0.3290867805, 0.0007867727, 0.277649045, -0.2374248952, 0.3172338009, 0.0792360678, 0.1507845372, -0.2674021423, -0.3465929329, -0.1820104569, -0.2675665617, -0.1380905658, -0.0896174088, 0.0866118297, -0.3090318441, 0.0237945914, -0.2314288914, 0.0673613101, -0.0069425646, -0.0971345901, -0.2097461224, 0.6421572566, 0.0204103217, 0.2258118838, -0.0584264994, 0.0421580113, 0.13218458, -0.1236514747, 0.1550005376, -0.0283195619, -0.1767595112, -0.1339013726, 0.1732696444, -0.3608182669, 0.1934938878, -0.0518139042, -0.2702675462, 0.1569520831, 0.1210899577, 0.1657908857, 0.1612781733, 0.0505132787, 0.1559106857, 0.279648602, 0.2925397754, -0.196995765, -0.3908064663, -0.0121858465, 0.0276294257, -0.2749151587, 0.1901083291, 0.1587807089, 0.1859904528, 0.0203872938, -0.3168945611, -0.0674286261, -0.1310207099, -0.0011093755, 0.0109486775, 0.4655703008, -0.062577039, 0.210119471, -0.1869859844, 0.2766138613, -0.1955182999, -0.133565262, -0.2674529552, 0.1599750221, -0.1052408293, -0.0912759304, 0.0864881501, 0.2284778208, 0.3958971798, 0.0574224517, 0.0732816681, -0.0852144957, 0.4325413406, -0.2196345031, 0.2467179298, 0.0557839833, 0.0686216354, 0.1359150559, 0.2674401104, -0.3098888397, -0.1797688901, -0.0748897418, 0.0085685346, -0.1883708686, -0.0060652345, 0.2934332192, 0.0234700907, 0.0294385049, -0.1553814858, 0.1325115114, 0.2363229245, 0.0417060442, 0.0084720766, -0.1836157441, -0.2125669569, -0.1611634195, 0.1659641564, 0.2332042903, -0.1246360317, -0.0227328259, 0.0209113918, -0.1451628804, 0.2747375071, 0.2273867726, -0.0913353488, 0.6480852962, -0.1730045527, 0.5878828764, 0.1861092895, -0.5310035944, -0.1901536137, 0.2092230618, -0.3177127838, -0.0111942841, 0.1317908019, -0.1686787307, 0.3851613104, 0.0802869946, 0.1898802966, 0.2464481294, -0.1104765758, 0.2880240977, -0.2860673964, -0.0096032247, 0.0849479139, -0.0719702542, 0.2393062264, -0.2704798579, -0.0424100906, -0.1621233523, 0.2372230738, -0.1482037306, 0.2230833918, -0.0443855859, 0.0625270978, 0.0818429366, -0.0392005593, -0.1215577275, 0.0788094476, 0.2157846689, 0.0433689058, 0.0418131873, -0.1905941069, -0.1984121054, -0.0963726044, 0.2760664225, -0.2941966355, -0.3430737555, 0.3505135775, 0.3571792543, -0.0198514611, -0.0224458892, -0.0754135177, 0.1201191843, 0.153082639, 0.006208472, 0.0715010539, -0.0785522759, -0.1991022229, -0.1974655986, -0.0115250284, 0.0726842955, 0.1600965559, 0.0034864775, -0.0784359276, 0.4022409916, 0.2385912985, 0.1009368673, 0.2098904103, -0.1776233912, -0.0964286402, 0.0071382714, -0.0728402883, 0.1115309894, 0.0388302952, -0.0264948476, 0.1444303393, 0.4932917058, 0.2365599126, 0.1932385117, 0.2239500731, -0.0101360837, 0.2388229966, -0.1069112271, -0.0609273165, -0.1341270804, 0.0577990972, 0.0031341636, 0.1119551361, -0.1359221041, -0.2041952312, 0.1788985878, 0.3149355352, -0.0856284201, 0.1352986544, -0.1058830619, -0.0881045833, -0.1929528713, 0.0814027637, 0.1926788986, 0.3943271637, 0.2004813254, 0.1856657416, -0.0386409871, -0.0774590373, -0.0734679177, 0.1406774074, 0.0299729649, 0.1926372796, 0.2765001059, 0.2475030422, -0.2172686309, -0.3548971415, -0.2435459048, 0.1768792719, 0.1148346961, -0.1390991807, 0.0299772415, -0.3175421953, 0.0918785185, -0.0323444456, -0.0665199682, 0.2071172148, -0.3488471806, 0.1094206497, 0.1852680147, -0.169418171, 0.3220190108, -0.1171385422, 0.0898976624, -0.0134831276, -0.0217512064, -0.0988095701, -0.1474419534, -0.1254175305, 0.1327667981, 0.1662159264, 0.1449764073, 0.4963170886, 0.001336284, -0.2189733833, -0.5480387211, -0.245171845, 0.0971293747, -0.1633995622, 0.1954907626, 0.2778953016, 0.0427566245, -0.0250690207, -0.3409391344, 0.300249517, -0.4462933242, -0.373233676, -0.2133506984, 0.0948980749, -0.1722040176, -0.0335691907, -0.3764521182, -0.3236233294, -0.1813364923, 0.352352351, -0.0931493863, 0.1716112942, -0.1554574519, -0.1054515764, 0.1455906928, -0.0203672256, 0.1121425256, -0.2187276632, -0.1448163092, -0.0194474142, -0.1510414928, -0.2830696106, -0.1560444683, -0.140906021, 0.4374366701, -0.1034078896, -0.1784179658, -0.0407505967, -0.161214292, 0.4367103279, 0.0242295507, -0.0490039699, 0.3442160189, 0.2696901262, -0.3481391668, -0.0873823538, -0.1605873704, 0.0496433452, -0.2982188165, -0.1103074476, -0.1856850386, 0.4214309454, 0.2078024745, 0.5972418189, 0.0285144038, -0.0613888018, 0.1324319839, -0.4377177656, -0.0172749367, -0.0337197706, -0.4259907305, 0.1626303047, -0.2667847276, -0.1014863104, 0.1350758672, -0.1677295715, -0.1150869802, 0.1514068097, 0.0009904391, -0.3835223615, -0.2099660188, 0.0377301201, -0.1925777942, 0.0860436112, 0.0603312366, 0.01410913, -0.4112587273, 0.2260724008, -0.072192736, -0.0218361951, -0.1237445027, -0.3398275673, -0.3464433253, 0.0175716691, -0.6085759401, 0.354456991, 0.1318602413, 0.4851483703, 0.1367793381, 0.0053000934, 0.0414655469, -0.2825487852, 0.6524983048, -0.2151973397, 0.0749009103, 0.1836810559, -0.3277134597, -0.2910265028, -0.0436598547, -0.3557529449, 0.4460594058, 0.3172531724, 0.4865557849, -0.1918329149, -0.3518018723, 0.1224314049, -0.0199515782, 0.0334756039, 0.0118678603, -0.2885978222, -0.3060875237, -0.4088720977, 0.3470338881, 0.0887138247, 0.1813629717, -0.069950901, -0.124586679, -0.1805431396, -0.0352943987, 0.1069819555, 0.1873822808, -0.0616822653, -0.1572833657, 0.1408729851, -0.0219114572, 0.2116454244, 0.2355050445, 0.0500610732, -0.0951047167, -0.1150437444, 0.0940205529, 0.0208326522, 0.4114657938, 0.2416522354, -0.1685582399, 0.3699744344, -0.1364516616, 0.2886339128, -0.1108365804, 0.4739769101, 0.554315865, 0.1899578422, -0.1046062708, -0.1071347594, 0.0384810343, 0.1415002346, -0.1566073745, 0.306224972, -0.2532047033, -0.2288147211, 0.1476330608, 0.1779161394, 0.5770246983, -0.0932504162, 0.0875760838, 0.0692828074, -0.0339658111, 0.0664257109, -0.3225959241, 0.1247426718, -0.288105309, -0.1223683879, 0.0637505949, -0.0489773564, 0.1619586498, 0.1876238286, -0.3256684542, 0.1354867518, 0.2791850865, 0.1854789704, 0.0244831126, 0.431650579, 0.0075261639, -0.2300828248, -0.023363702, 0.2279519588, 0.1796824187, -0.0562871322, -0.0279300772, 0.1004806235, -0.0691839978, -0.3762970865, -0.1939992905, 0.020872876, -0.4312960804, 0.3942314088, 0.0237803068, 0.0594657212, 0.0281338636, 0.1458711624, 0.1447971165, 0.2050362229, 0.0107790306, 0.1170281395, 0.0932479575, 0.0910389647, 0.0838552192, -0.2934492528, 0.2623491287, -0.1249916479, -0.4529617131, 0.056927003, -0.0704901963, -0.2504338324, 0.0244052727, 0.1059231982, 0.2930749953, -0.2247791439, 0.0423180163, -0.0464649349, -0.2383498847, -0.3965627551, 0.2039444447, -0.1147942767, -0.1983671635, 0.2978396416, -0.1070739925, -0.3055644929, -0.0280590001, 0.2836198509, 0.0299852509, 0.1521654278, 0.5996190906, -0.077330634, -0.1156411171, -0.4316453934, 0.0979602784, 0.3189346194, 0.1494751871, 0.2477398962, -0.1895443648, -0.2431793511, 0.0721191019, 0.1885506511, 0.0378919765, 0.1453276724, -0.2402582765, -0.2921875119, -0.4588642716, 0.0046022679, -0.1703902781, 0.2114722431, 0.1943896562, 0.4413280487, -0.135223791, 0.2366547585, -0.4279208481, -0.0372964107, -0.4685040712, 0.2483723015, -0.0478402488, -0.0903499573, 0.0450875461, 0.0513903387, 0.3058930039, 0.220881775, -0.0576611795, -0.3870591819, -0.0921495706, 0.0931528062, 0.1092804521, 0.0143302977, 0.1976387352, 0.2131324261, -0.2241608948, -0.2637849152, 0.1043586805, 0.1285093129, -0.0872337893, 0.0787764117, 0.18168284, 0.0326142833, -0.0256912354, -0.3361304402, -0.0561857112, 0.032077197, -0.0667605847, 0.3304433227, 0.0313247107, -0.0545087643, 0.0997805595, 0.0593810938, 0.2828299701, 0.2285245806, 0.0306529552, -0.103048414, -0.3491648436, -0.0028985147, 0.3846752644, 0.2440444231, -0.2425766289, -0.0939172953, 0.2190345675, 0.3167301416, -0.231925413, -0.072775051, 0.2596984804, -0.3800117075, 0.3790824115, 0.2261145115, 0.0072067077, 0.1852704138, 0.11054454, 0.0050975764, 0.2265834212, -0.3973683417, -0.0119795138, 0.0900443941, -0.1410696357, 0.1985624284, 0.4492414296, 0.0734670237, 0.2462898195, 0.3410063982, 0.0147558078, 0.5114741325, -0.124685891, 0.0724944472, 0.0589090027, -0.0415681638, 0.3311867118, -0.0005667167, -0.0347976461, 0.0089656441, -0.0880122557, 0.3054791093, -0.3336258233, -0.0528678894, -0.2124444097, 0.3687889278, -0.1914829761, -0.3856402338, -0.2380474359, -0.0818296447, -0.1413497478, -0.0785161778, -0.0190696511, 0.1973137259, 0.0451894552, -0.0820418522, 0.0131342448, -0.2212533504, -0.0192149896, -0.0783581585, 0.1308196336, -0.2626003921, 0.2001495212, 0.1314701885, 0.1404422522, -0.1671113968, 0.6095549464, 0.5709314346, 0.3046992719, -0.1988586634, -0.1260325164, -0.334471494, -0.1386541724, -0.200234741, 0.286362052, 0.0003164706, -0.1747993082, 0.2625157833, 0.2772243619, -0.2658776939, -0.1564967632, 0.4190353751, -0.1771446615, 0.1225865036, 0.1675085276, 0.1353609562, -0.2269662619, 0.0732963309, 0.1038701981, -0.3389840126, -0.0345565267, 0.2996354699, -0.2357952297, 0.3266509771, -0.1310752779, 0.1637847424, 0.0463034995, 0.4507511854, 0.0503231734, 0.1739299446, -0.3142851889, -0.1331527382, -0.5782247782, 0.2144249976, -0.1688655764, -0.3648040891, -0.1931367218, 0.1571836323, 0.1029491946, 0.1065550447, 0.2409303635, 0.0778951868, -0.1090171263, 0.2187099606, -0.3619212806, 0.0869542211, 0.1755947918, 0.051984787, 0.2043186277, -0.4335596561, 0.2095238566, -0.0014672402, 0.2383019179, -0.014497418, 0.0347770303, 0.1814200282, -0.3401249945, 0.2746292353, 0.1093129367, 0.525728941, -0.4383837581, 0.0910443738, -0.1269074231, 0.1606310159, -0.4419290125, 0.0574722104, 0.241409868, 0.1892358214, 0.0872845575, -0.031147413, -0.1315662265, 0.1188576147, 0.2362553179, -0.0922231153, -0.0139228348, 0.3029532135, 0.1060064882, 0.0748863816, -0.1064884886, 0.339972198, -0.0225498267, 0.2731781006, -0.4903123975, -0.4749884903, 0.3061770797, -0.5121245384, -0.4921656847, -0.3859885633, 0.2887361944, -0.0939688683, 0.0935925543, -0.3449761271, -0.0112366127, 0.2883770466, 0.1060351133, -0.5911825299, 0.1808961779, 0.0886601508, -0.0450419001, -0.0889837816, 0.3249361813, 0.0077152289, -0.1511939615, -0.0211813059, -0.1020610332 ]
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.3956994712, 0.0156291481, -0.1538685113, -0.1850298494, 0.1417974979, -0.0578565411, 0.5068991184, 0.3400262594, -0.0834039673, 0.1681768894, -0.0184274632, 0.3370631635, 0.0475012511, 0.0918334797, -0.2264436632, 0.1021468639, -0.0123606632, 0.0946919024, 0.1290111095, 0.0473636836, -0.1753094196, 0.1040760577, -0.2302507162, 0.2859587371, -0.4516964853, -0.285730958, -0.0163215697, -0.0623163804, -0.2643238604, -0.4696435034, -0.1491132379, 0.2851144075, -0.1861114055, 0.6030861735, -0.0001044558, 0.0936726332, 0.2627738118, 0.0446499921, -0.0541403815, -0.0300701931, 0.095131591, -0.0515860766, -0.0309998766, -0.403598249, -0.0044789063, -0.2674305439, 0.177913487, -0.4431346357, 0.2878314257, 0.3189613819, 0.2665319443, 0.565527916, -0.2092227638, -0.0047210273, -0.2012013048, -0.07836245, -0.0357207507, -0.1625541449, 0.2167163342, -0.2403006703, -0.3567934334, 0.2491745055, -0.0430283211, 0.1743141115, -0.3290867805, 0.0007867727, 0.277649045, -0.2374248952, 0.3172338009, 0.0792360678, 0.1507845372, -0.2674021423, -0.3465929329, -0.1820104569, -0.2675665617, -0.1380905658, -0.0896174088, 0.0866118297, -0.3090318441, 0.0237945914, -0.2314288914, 0.0673613101, -0.0069425646, -0.0971345901, -0.2097461224, 0.6421572566, 0.0204103217, 0.2258118838, -0.0584264994, 0.0421580113, 0.13218458, -0.1236514747, 0.1550005376, -0.0283195619, -0.1767595112, -0.1339013726, 0.1732696444, -0.3608182669, 0.1934938878, -0.0518139042, -0.2702675462, 0.1569520831, 0.1210899577, 0.1657908857, 0.1612781733, 0.0505132787, 0.1559106857, 0.279648602, 0.2925397754, -0.196995765, -0.3908064663, -0.0121858465, 0.0276294257, -0.2749151587, 0.1901083291, 0.1587807089, 0.1859904528, 0.0203872938, -0.3168945611, -0.0674286261, -0.1310207099, -0.0011093755, 0.0109486775, 0.4655703008, -0.062577039, 0.210119471, -0.1869859844, 0.2766138613, -0.1955182999, -0.133565262, -0.2674529552, 0.1599750221, -0.1052408293, -0.0912759304, 0.0864881501, 0.2284778208, 0.3958971798, 0.0574224517, 0.0732816681, -0.0852144957, 0.4325413406, -0.2196345031, 0.2467179298, 0.0557839833, 0.0686216354, 0.1359150559, 0.2674401104, -0.3098888397, -0.1797688901, -0.0748897418, 0.0085685346, -0.1883708686, -0.0060652345, 0.2934332192, 0.0234700907, 0.0294385049, -0.1553814858, 0.1325115114, 0.2363229245, 0.0417060442, 0.0084720766, -0.1836157441, -0.2125669569, -0.1611634195, 0.1659641564, 0.2332042903, -0.1246360317, -0.0227328259, 0.0209113918, -0.1451628804, 0.2747375071, 0.2273867726, -0.0913353488, 0.6480852962, -0.1730045527, 0.5878828764, 0.1861092895, -0.5310035944, -0.1901536137, 0.2092230618, -0.3177127838, -0.0111942841, 0.1317908019, -0.1686787307, 0.3851613104, 0.0802869946, 0.1898802966, 0.2464481294, -0.1104765758, 0.2880240977, -0.2860673964, -0.0096032247, 0.0849479139, -0.0719702542, 0.2393062264, -0.2704798579, -0.0424100906, -0.1621233523, 0.2372230738, -0.1482037306, 0.2230833918, -0.0443855859, 0.0625270978, 0.0818429366, -0.0392005593, -0.1215577275, 0.0788094476, 0.2157846689, 0.0433689058, 0.0418131873, -0.1905941069, -0.1984121054, -0.0963726044, 0.2760664225, -0.2941966355, -0.3430737555, 0.3505135775, 0.3571792543, -0.0198514611, -0.0224458892, -0.0754135177, 0.1201191843, 0.153082639, 0.006208472, 0.0715010539, -0.0785522759, -0.1991022229, -0.1974655986, -0.0115250284, 0.0726842955, 0.1600965559, 0.0034864775, -0.0784359276, 0.4022409916, 0.2385912985, 0.1009368673, 0.2098904103, -0.1776233912, -0.0964286402, 0.0071382714, -0.0728402883, 0.1115309894, 0.0388302952, -0.0264948476, 0.1444303393, 0.4932917058, 0.2365599126, 0.1932385117, 0.2239500731, -0.0101360837, 0.2388229966, -0.1069112271, -0.0609273165, -0.1341270804, 0.0577990972, 0.0031341636, 0.1119551361, -0.1359221041, -0.2041952312, 0.1788985878, 0.3149355352, -0.0856284201, 0.1352986544, -0.1058830619, -0.0881045833, -0.1929528713, 0.0814027637, 0.1926788986, 0.3943271637, 0.2004813254, 0.1856657416, -0.0386409871, -0.0774590373, -0.0734679177, 0.1406774074, 0.0299729649, 0.1926372796, 0.2765001059, 0.2475030422, -0.2172686309, -0.3548971415, -0.2435459048, 0.1768792719, 0.1148346961, -0.1390991807, 0.0299772415, -0.3175421953, 0.0918785185, -0.0323444456, -0.0665199682, 0.2071172148, -0.3488471806, 0.1094206497, 0.1852680147, -0.169418171, 0.3220190108, -0.1171385422, 0.0898976624, -0.0134831276, -0.0217512064, -0.0988095701, -0.1474419534, -0.1254175305, 0.1327667981, 0.1662159264, 0.1449764073, 0.4963170886, 0.001336284, -0.2189733833, -0.5480387211, -0.245171845, 0.0971293747, -0.1633995622, 0.1954907626, 0.2778953016, 0.0427566245, -0.0250690207, -0.3409391344, 0.300249517, -0.4462933242, -0.373233676, -0.2133506984, 0.0948980749, -0.1722040176, -0.0335691907, -0.3764521182, -0.3236233294, -0.1813364923, 0.352352351, -0.0931493863, 0.1716112942, -0.1554574519, -0.1054515764, 0.1455906928, -0.0203672256, 0.1121425256, -0.2187276632, -0.1448163092, -0.0194474142, -0.1510414928, -0.2830696106, -0.1560444683, -0.140906021, 0.4374366701, -0.1034078896, -0.1784179658, -0.0407505967, -0.161214292, 0.4367103279, 0.0242295507, -0.0490039699, 0.3442160189, 0.2696901262, -0.3481391668, -0.0873823538, -0.1605873704, 0.0496433452, -0.2982188165, -0.1103074476, -0.1856850386, 0.4214309454, 0.2078024745, 0.5972418189, 0.0285144038, -0.0613888018, 0.1324319839, -0.4377177656, -0.0172749367, -0.0337197706, -0.4259907305, 0.1626303047, -0.2667847276, -0.1014863104, 0.1350758672, -0.1677295715, -0.1150869802, 0.1514068097, 0.0009904391, -0.3835223615, -0.2099660188, 0.0377301201, -0.1925777942, 0.0860436112, 0.0603312366, 0.01410913, -0.4112587273, 0.2260724008, -0.072192736, -0.0218361951, -0.1237445027, -0.3398275673, -0.3464433253, 0.0175716691, -0.6085759401, 0.354456991, 0.1318602413, 0.4851483703, 0.1367793381, 0.0053000934, 0.0414655469, -0.2825487852, 0.6524983048, -0.2151973397, 0.0749009103, 0.1836810559, -0.3277134597, -0.2910265028, -0.0436598547, -0.3557529449, 0.4460594058, 0.3172531724, 0.4865557849, -0.1918329149, -0.3518018723, 0.1224314049, -0.0199515782, 0.0334756039, 0.0118678603, -0.2885978222, -0.3060875237, -0.4088720977, 0.3470338881, 0.0887138247, 0.1813629717, -0.069950901, -0.124586679, -0.1805431396, -0.0352943987, 0.1069819555, 0.1873822808, -0.0616822653, -0.1572833657, 0.1408729851, -0.0219114572, 0.2116454244, 0.2355050445, 0.0500610732, -0.0951047167, -0.1150437444, 0.0940205529, 0.0208326522, 0.4114657938, 0.2416522354, -0.1685582399, 0.3699744344, -0.1364516616, 0.2886339128, -0.1108365804, 0.4739769101, 0.554315865, 0.1899578422, -0.1046062708, -0.1071347594, 0.0384810343, 0.1415002346, -0.1566073745, 0.306224972, -0.2532047033, -0.2288147211, 0.1476330608, 0.1779161394, 0.5770246983, -0.0932504162, 0.0875760838, 0.0692828074, -0.0339658111, 0.0664257109, -0.3225959241, 0.1247426718, -0.288105309, -0.1223683879, 0.0637505949, -0.0489773564, 0.1619586498, 0.1876238286, -0.3256684542, 0.1354867518, 0.2791850865, 0.1854789704, 0.0244831126, 0.431650579, 0.0075261639, -0.2300828248, -0.023363702, 0.2279519588, 0.1796824187, -0.0562871322, -0.0279300772, 0.1004806235, -0.0691839978, -0.3762970865, -0.1939992905, 0.020872876, -0.4312960804, 0.3942314088, 0.0237803068, 0.0594657212, 0.0281338636, 0.1458711624, 0.1447971165, 0.2050362229, 0.0107790306, 0.1170281395, 0.0932479575, 0.0910389647, 0.0838552192, -0.2934492528, 0.2623491287, -0.1249916479, -0.4529617131, 0.056927003, -0.0704901963, -0.2504338324, 0.0244052727, 0.1059231982, 0.2930749953, -0.2247791439, 0.0423180163, -0.0464649349, -0.2383498847, -0.3965627551, 0.2039444447, -0.1147942767, -0.1983671635, 0.2978396416, -0.1070739925, -0.3055644929, -0.0280590001, 0.2836198509, 0.0299852509, 0.1521654278, 0.5996190906, -0.077330634, -0.1156411171, -0.4316453934, 0.0979602784, 0.3189346194, 0.1494751871, 0.2477398962, -0.1895443648, -0.2431793511, 0.0721191019, 0.1885506511, 0.0378919765, 0.1453276724, -0.2402582765, -0.2921875119, -0.4588642716, 0.0046022679, -0.1703902781, 0.2114722431, 0.1943896562, 0.4413280487, -0.135223791, 0.2366547585, -0.4279208481, -0.0372964107, -0.4685040712, 0.2483723015, -0.0478402488, -0.0903499573, 0.0450875461, 0.0513903387, 0.3058930039, 0.220881775, -0.0576611795, -0.3870591819, -0.0921495706, 0.0931528062, 0.1092804521, 0.0143302977, 0.1976387352, 0.2131324261, -0.2241608948, -0.2637849152, 0.1043586805, 0.1285093129, -0.0872337893, 0.0787764117, 0.18168284, 0.0326142833, -0.0256912354, -0.3361304402, -0.0561857112, 0.032077197, -0.0667605847, 0.3304433227, 0.0313247107, -0.0545087643, 0.0997805595, 0.0593810938, 0.2828299701, 0.2285245806, 0.0306529552, -0.103048414, -0.3491648436, -0.0028985147, 0.3846752644, 0.2440444231, -0.2425766289, -0.0939172953, 0.2190345675, 0.3167301416, -0.231925413, -0.072775051, 0.2596984804, -0.3800117075, 0.3790824115, 0.2261145115, 0.0072067077, 0.1852704138, 0.11054454, 0.0050975764, 0.2265834212, -0.3973683417, -0.0119795138, 0.0900443941, -0.1410696357, 0.1985624284, 0.4492414296, 0.0734670237, 0.2462898195, 0.3410063982, 0.0147558078, 0.5114741325, -0.124685891, 0.0724944472, 0.0589090027, -0.0415681638, 0.3311867118, -0.0005667167, -0.0347976461, 0.0089656441, -0.0880122557, 0.3054791093, -0.3336258233, -0.0528678894, -0.2124444097, 0.3687889278, -0.1914829761, -0.3856402338, -0.2380474359, -0.0818296447, -0.1413497478, -0.0785161778, -0.0190696511, 0.1973137259, 0.0451894552, -0.0820418522, 0.0131342448, -0.2212533504, -0.0192149896, -0.0783581585, 0.1308196336, -0.2626003921, 0.2001495212, 0.1314701885, 0.1404422522, -0.1671113968, 0.6095549464, 0.5709314346, 0.3046992719, -0.1988586634, -0.1260325164, -0.334471494, -0.1386541724, -0.200234741, 0.286362052, 0.0003164706, -0.1747993082, 0.2625157833, 0.2772243619, -0.2658776939, -0.1564967632, 0.4190353751, -0.1771446615, 0.1225865036, 0.1675085276, 0.1353609562, -0.2269662619, 0.0732963309, 0.1038701981, -0.3389840126, -0.0345565267, 0.2996354699, -0.2357952297, 0.3266509771, -0.1310752779, 0.1637847424, 0.0463034995, 0.4507511854, 0.0503231734, 0.1739299446, -0.3142851889, -0.1331527382, -0.5782247782, 0.2144249976, -0.1688655764, -0.3648040891, -0.1931367218, 0.1571836323, 0.1029491946, 0.1065550447, 0.2409303635, 0.0778951868, -0.1090171263, 0.2187099606, -0.3619212806, 0.0869542211, 0.1755947918, 0.051984787, 0.2043186277, -0.4335596561, 0.2095238566, -0.0014672402, 0.2383019179, -0.014497418, 0.0347770303, 0.1814200282, -0.3401249945, 0.2746292353, 0.1093129367, 0.525728941, -0.4383837581, 0.0910443738, -0.1269074231, 0.1606310159, -0.4419290125, 0.0574722104, 0.241409868, 0.1892358214, 0.0872845575, -0.031147413, -0.1315662265, 0.1188576147, 0.2362553179, -0.0922231153, -0.0139228348, 0.3029532135, 0.1060064882, 0.0748863816, -0.1064884886, 0.339972198, -0.0225498267, 0.2731781006, -0.4903123975, -0.4749884903, 0.3061770797, -0.5121245384, -0.4921656847, -0.3859885633, 0.2887361944, -0.0939688683, 0.0935925543, -0.3449761271, -0.0112366127, 0.2883770466, 0.1060351133, -0.5911825299, 0.1808961779, 0.0886601508, -0.0450419001, -0.0889837816, 0.3249361813, 0.0077152289, -0.1511939615, -0.0211813059, -0.1020610332 ]
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.3956994712, 0.0156291481, -0.1538685113, -0.1850298494, 0.1417974979, -0.0578565411, 0.5068991184, 0.3400262594, -0.0834039673, 0.1681768894, -0.0184274632, 0.3370631635, 0.0475012511, 0.0918334797, -0.2264436632, 0.1021468639, -0.0123606632, 0.0946919024, 0.1290111095, 0.0473636836, -0.1753094196, 0.1040760577, -0.2302507162, 0.2859587371, -0.4516964853, -0.285730958, -0.0163215697, -0.0623163804, -0.2643238604, -0.4696435034, -0.1491132379, 0.2851144075, -0.1861114055, 0.6030861735, -0.0001044558, 0.0936726332, 0.2627738118, 0.0446499921, -0.0541403815, -0.0300701931, 0.095131591, -0.0515860766, -0.0309998766, -0.403598249, -0.0044789063, -0.2674305439, 0.177913487, -0.4431346357, 0.2878314257, 0.3189613819, 0.2665319443, 0.565527916, -0.2092227638, -0.0047210273, -0.2012013048, -0.07836245, -0.0357207507, -0.1625541449, 0.2167163342, -0.2403006703, -0.3567934334, 0.2491745055, -0.0430283211, 0.1743141115, -0.3290867805, 0.0007867727, 0.277649045, -0.2374248952, 0.3172338009, 0.0792360678, 0.1507845372, -0.2674021423, -0.3465929329, -0.1820104569, -0.2675665617, -0.1380905658, -0.0896174088, 0.0866118297, -0.3090318441, 0.0237945914, -0.2314288914, 0.0673613101, -0.0069425646, -0.0971345901, -0.2097461224, 0.6421572566, 0.0204103217, 0.2258118838, -0.0584264994, 0.0421580113, 0.13218458, -0.1236514747, 0.1550005376, -0.0283195619, -0.1767595112, -0.1339013726, 0.1732696444, -0.3608182669, 0.1934938878, -0.0518139042, -0.2702675462, 0.1569520831, 0.1210899577, 0.1657908857, 0.1612781733, 0.0505132787, 0.1559106857, 0.279648602, 0.2925397754, -0.196995765, -0.3908064663, -0.0121858465, 0.0276294257, -0.2749151587, 0.1901083291, 0.1587807089, 0.1859904528, 0.0203872938, -0.3168945611, -0.0674286261, -0.1310207099, -0.0011093755, 0.0109486775, 0.4655703008, -0.062577039, 0.210119471, -0.1869859844, 0.2766138613, -0.1955182999, -0.133565262, -0.2674529552, 0.1599750221, -0.1052408293, -0.0912759304, 0.0864881501, 0.2284778208, 0.3958971798, 0.0574224517, 0.0732816681, -0.0852144957, 0.4325413406, -0.2196345031, 0.2467179298, 0.0557839833, 0.0686216354, 0.1359150559, 0.2674401104, -0.3098888397, -0.1797688901, -0.0748897418, 0.0085685346, -0.1883708686, -0.0060652345, 0.2934332192, 0.0234700907, 0.0294385049, -0.1553814858, 0.1325115114, 0.2363229245, 0.0417060442, 0.0084720766, -0.1836157441, -0.2125669569, -0.1611634195, 0.1659641564, 0.2332042903, -0.1246360317, -0.0227328259, 0.0209113918, -0.1451628804, 0.2747375071, 0.2273867726, -0.0913353488, 0.6480852962, -0.1730045527, 0.5878828764, 0.1861092895, -0.5310035944, -0.1901536137, 0.2092230618, -0.3177127838, -0.0111942841, 0.1317908019, -0.1686787307, 0.3851613104, 0.0802869946, 0.1898802966, 0.2464481294, -0.1104765758, 0.2880240977, -0.2860673964, -0.0096032247, 0.0849479139, -0.0719702542, 0.2393062264, -0.2704798579, -0.0424100906, -0.1621233523, 0.2372230738, -0.1482037306, 0.2230833918, -0.0443855859, 0.0625270978, 0.0818429366, -0.0392005593, -0.1215577275, 0.0788094476, 0.2157846689, 0.0433689058, 0.0418131873, -0.1905941069, -0.1984121054, -0.0963726044, 0.2760664225, -0.2941966355, -0.3430737555, 0.3505135775, 0.3571792543, -0.0198514611, -0.0224458892, -0.0754135177, 0.1201191843, 0.153082639, 0.006208472, 0.0715010539, -0.0785522759, -0.1991022229, -0.1974655986, -0.0115250284, 0.0726842955, 0.1600965559, 0.0034864775, -0.0784359276, 0.4022409916, 0.2385912985, 0.1009368673, 0.2098904103, -0.1776233912, -0.0964286402, 0.0071382714, -0.0728402883, 0.1115309894, 0.0388302952, -0.0264948476, 0.1444303393, 0.4932917058, 0.2365599126, 0.1932385117, 0.2239500731, -0.0101360837, 0.2388229966, -0.1069112271, -0.0609273165, -0.1341270804, 0.0577990972, 0.0031341636, 0.1119551361, -0.1359221041, -0.2041952312, 0.1788985878, 0.3149355352, -0.0856284201, 0.1352986544, -0.1058830619, -0.0881045833, -0.1929528713, 0.0814027637, 0.1926788986, 0.3943271637, 0.2004813254, 0.1856657416, -0.0386409871, -0.0774590373, -0.0734679177, 0.1406774074, 0.0299729649, 0.1926372796, 0.2765001059, 0.2475030422, -0.2172686309, -0.3548971415, -0.2435459048, 0.1768792719, 0.1148346961, -0.1390991807, 0.0299772415, -0.3175421953, 0.0918785185, -0.0323444456, -0.0665199682, 0.2071172148, -0.3488471806, 0.1094206497, 0.1852680147, -0.169418171, 0.3220190108, -0.1171385422, 0.0898976624, -0.0134831276, -0.0217512064, -0.0988095701, -0.1474419534, -0.1254175305, 0.1327667981, 0.1662159264, 0.1449764073, 0.4963170886, 0.001336284, -0.2189733833, -0.5480387211, -0.245171845, 0.0971293747, -0.1633995622, 0.1954907626, 0.2778953016, 0.0427566245, -0.0250690207, -0.3409391344, 0.300249517, -0.4462933242, -0.373233676, -0.2133506984, 0.0948980749, -0.1722040176, -0.0335691907, -0.3764521182, -0.3236233294, -0.1813364923, 0.352352351, -0.0931493863, 0.1716112942, -0.1554574519, -0.1054515764, 0.1455906928, -0.0203672256, 0.1121425256, -0.2187276632, -0.1448163092, -0.0194474142, -0.1510414928, -0.2830696106, -0.1560444683, -0.140906021, 0.4374366701, -0.1034078896, -0.1784179658, -0.0407505967, -0.161214292, 0.4367103279, 0.0242295507, -0.0490039699, 0.3442160189, 0.2696901262, -0.3481391668, -0.0873823538, -0.1605873704, 0.0496433452, -0.2982188165, -0.1103074476, -0.1856850386, 0.4214309454, 0.2078024745, 0.5972418189, 0.0285144038, -0.0613888018, 0.1324319839, -0.4377177656, -0.0172749367, -0.0337197706, -0.4259907305, 0.1626303047, -0.2667847276, -0.1014863104, 0.1350758672, -0.1677295715, -0.1150869802, 0.1514068097, 0.0009904391, -0.3835223615, -0.2099660188, 0.0377301201, -0.1925777942, 0.0860436112, 0.0603312366, 0.01410913, -0.4112587273, 0.2260724008, -0.072192736, -0.0218361951, -0.1237445027, -0.3398275673, -0.3464433253, 0.0175716691, -0.6085759401, 0.354456991, 0.1318602413, 0.4851483703, 0.1367793381, 0.0053000934, 0.0414655469, -0.2825487852, 0.6524983048, -0.2151973397, 0.0749009103, 0.1836810559, -0.3277134597, -0.2910265028, -0.0436598547, -0.3557529449, 0.4460594058, 0.3172531724, 0.4865557849, -0.1918329149, -0.3518018723, 0.1224314049, -0.0199515782, 0.0334756039, 0.0118678603, -0.2885978222, -0.3060875237, -0.4088720977, 0.3470338881, 0.0887138247, 0.1813629717, -0.069950901, -0.124586679, -0.1805431396, -0.0352943987, 0.1069819555, 0.1873822808, -0.0616822653, -0.1572833657, 0.1408729851, -0.0219114572, 0.2116454244, 0.2355050445, 0.0500610732, -0.0951047167, -0.1150437444, 0.0940205529, 0.0208326522, 0.4114657938, 0.2416522354, -0.1685582399, 0.3699744344, -0.1364516616, 0.2886339128, -0.1108365804, 0.4739769101, 0.554315865, 0.1899578422, -0.1046062708, -0.1071347594, 0.0384810343, 0.1415002346, -0.1566073745, 0.306224972, -0.2532047033, -0.2288147211, 0.1476330608, 0.1779161394, 0.5770246983, -0.0932504162, 0.0875760838, 0.0692828074, -0.0339658111, 0.0664257109, -0.3225959241, 0.1247426718, -0.288105309, -0.1223683879, 0.0637505949, -0.0489773564, 0.1619586498, 0.1876238286, -0.3256684542, 0.1354867518, 0.2791850865, 0.1854789704, 0.0244831126, 0.431650579, 0.0075261639, -0.2300828248, -0.023363702, 0.2279519588, 0.1796824187, -0.0562871322, -0.0279300772, 0.1004806235, -0.0691839978, -0.3762970865, -0.1939992905, 0.020872876, -0.4312960804, 0.3942314088, 0.0237803068, 0.0594657212, 0.0281338636, 0.1458711624, 0.1447971165, 0.2050362229, 0.0107790306, 0.1170281395, 0.0932479575, 0.0910389647, 0.0838552192, -0.2934492528, 0.2623491287, -0.1249916479, -0.4529617131, 0.056927003, -0.0704901963, -0.2504338324, 0.0244052727, 0.1059231982, 0.2930749953, -0.2247791439, 0.0423180163, -0.0464649349, -0.2383498847, -0.3965627551, 0.2039444447, -0.1147942767, -0.1983671635, 0.2978396416, -0.1070739925, -0.3055644929, -0.0280590001, 0.2836198509, 0.0299852509, 0.1521654278, 0.5996190906, -0.077330634, -0.1156411171, -0.4316453934, 0.0979602784, 0.3189346194, 0.1494751871, 0.2477398962, -0.1895443648, -0.2431793511, 0.0721191019, 0.1885506511, 0.0378919765, 0.1453276724, -0.2402582765, -0.2921875119, -0.4588642716, 0.0046022679, -0.1703902781, 0.2114722431, 0.1943896562, 0.4413280487, -0.135223791, 0.2366547585, -0.4279208481, -0.0372964107, -0.4685040712, 0.2483723015, -0.0478402488, -0.0903499573, 0.0450875461, 0.0513903387, 0.3058930039, 0.220881775, -0.0576611795, -0.3870591819, -0.0921495706, 0.0931528062, 0.1092804521, 0.0143302977, 0.1976387352, 0.2131324261, -0.2241608948, -0.2637849152, 0.1043586805, 0.1285093129, -0.0872337893, 0.0787764117, 0.18168284, 0.0326142833, -0.0256912354, -0.3361304402, -0.0561857112, 0.032077197, -0.0667605847, 0.3304433227, 0.0313247107, -0.0545087643, 0.0997805595, 0.0593810938, 0.2828299701, 0.2285245806, 0.0306529552, -0.103048414, -0.3491648436, -0.0028985147, 0.3846752644, 0.2440444231, -0.2425766289, -0.0939172953, 0.2190345675, 0.3167301416, -0.231925413, -0.072775051, 0.2596984804, -0.3800117075, 0.3790824115, 0.2261145115, 0.0072067077, 0.1852704138, 0.11054454, 0.0050975764, 0.2265834212, -0.3973683417, -0.0119795138, 0.0900443941, -0.1410696357, 0.1985624284, 0.4492414296, 0.0734670237, 0.2462898195, 0.3410063982, 0.0147558078, 0.5114741325, -0.124685891, 0.0724944472, 0.0589090027, -0.0415681638, 0.3311867118, -0.0005667167, -0.0347976461, 0.0089656441, -0.0880122557, 0.3054791093, -0.3336258233, -0.0528678894, -0.2124444097, 0.3687889278, -0.1914829761, -0.3856402338, -0.2380474359, -0.0818296447, -0.1413497478, -0.0785161778, -0.0190696511, 0.1973137259, 0.0451894552, -0.0820418522, 0.0131342448, -0.2212533504, -0.0192149896, -0.0783581585, 0.1308196336, -0.2626003921, 0.2001495212, 0.1314701885, 0.1404422522, -0.1671113968, 0.6095549464, 0.5709314346, 0.3046992719, -0.1988586634, -0.1260325164, -0.334471494, -0.1386541724, -0.200234741, 0.286362052, 0.0003164706, -0.1747993082, 0.2625157833, 0.2772243619, -0.2658776939, -0.1564967632, 0.4190353751, -0.1771446615, 0.1225865036, 0.1675085276, 0.1353609562, -0.2269662619, 0.0732963309, 0.1038701981, -0.3389840126, -0.0345565267, 0.2996354699, -0.2357952297, 0.3266509771, -0.1310752779, 0.1637847424, 0.0463034995, 0.4507511854, 0.0503231734, 0.1739299446, -0.3142851889, -0.1331527382, -0.5782247782, 0.2144249976, -0.1688655764, -0.3648040891, -0.1931367218, 0.1571836323, 0.1029491946, 0.1065550447, 0.2409303635, 0.0778951868, -0.1090171263, 0.2187099606, -0.3619212806, 0.0869542211, 0.1755947918, 0.051984787, 0.2043186277, -0.4335596561, 0.2095238566, -0.0014672402, 0.2383019179, -0.014497418, 0.0347770303, 0.1814200282, -0.3401249945, 0.2746292353, 0.1093129367, 0.525728941, -0.4383837581, 0.0910443738, -0.1269074231, 0.1606310159, -0.4419290125, 0.0574722104, 0.241409868, 0.1892358214, 0.0872845575, -0.031147413, -0.1315662265, 0.1188576147, 0.2362553179, -0.0922231153, -0.0139228348, 0.3029532135, 0.1060064882, 0.0748863816, -0.1064884886, 0.339972198, -0.0225498267, 0.2731781006, -0.4903123975, -0.4749884903, 0.3061770797, -0.5121245384, -0.4921656847, -0.3859885633, 0.2887361944, -0.0939688683, 0.0935925543, -0.3449761271, -0.0112366127, 0.2883770466, 0.1060351133, -0.5911825299, 0.1808961779, 0.0886601508, -0.0450419001, -0.0889837816, 0.3249361813, 0.0077152289, -0.1511939615, -0.0211813059, -0.1020610332 ]
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.3956994712, 0.0156291481, -0.1538685113, -0.1850298494, 0.1417974979, -0.0578565411, 0.5068991184, 0.3400262594, -0.0834039673, 0.1681768894, -0.0184274632, 0.3370631635, 0.0475012511, 0.0918334797, -0.2264436632, 0.1021468639, -0.0123606632, 0.0946919024, 0.1290111095, 0.0473636836, -0.1753094196, 0.1040760577, -0.2302507162, 0.2859587371, -0.4516964853, -0.285730958, -0.0163215697, -0.0623163804, -0.2643238604, -0.4696435034, -0.1491132379, 0.2851144075, -0.1861114055, 0.6030861735, -0.0001044558, 0.0936726332, 0.2627738118, 0.0446499921, -0.0541403815, -0.0300701931, 0.095131591, -0.0515860766, -0.0309998766, -0.403598249, -0.0044789063, -0.2674305439, 0.177913487, -0.4431346357, 0.2878314257, 0.3189613819, 0.2665319443, 0.565527916, -0.2092227638, -0.0047210273, -0.2012013048, -0.07836245, -0.0357207507, -0.1625541449, 0.2167163342, -0.2403006703, -0.3567934334, 0.2491745055, -0.0430283211, 0.1743141115, -0.3290867805, 0.0007867727, 0.277649045, -0.2374248952, 0.3172338009, 0.0792360678, 0.1507845372, -0.2674021423, -0.3465929329, -0.1820104569, -0.2675665617, -0.1380905658, -0.0896174088, 0.0866118297, -0.3090318441, 0.0237945914, -0.2314288914, 0.0673613101, -0.0069425646, -0.0971345901, -0.2097461224, 0.6421572566, 0.0204103217, 0.2258118838, -0.0584264994, 0.0421580113, 0.13218458, -0.1236514747, 0.1550005376, -0.0283195619, -0.1767595112, -0.1339013726, 0.1732696444, -0.3608182669, 0.1934938878, -0.0518139042, -0.2702675462, 0.1569520831, 0.1210899577, 0.1657908857, 0.1612781733, 0.0505132787, 0.1559106857, 0.279648602, 0.2925397754, -0.196995765, -0.3908064663, -0.0121858465, 0.0276294257, -0.2749151587, 0.1901083291, 0.1587807089, 0.1859904528, 0.0203872938, -0.3168945611, -0.0674286261, -0.1310207099, -0.0011093755, 0.0109486775, 0.4655703008, -0.062577039, 0.210119471, -0.1869859844, 0.2766138613, -0.1955182999, -0.133565262, -0.2674529552, 0.1599750221, -0.1052408293, -0.0912759304, 0.0864881501, 0.2284778208, 0.3958971798, 0.0574224517, 0.0732816681, -0.0852144957, 0.4325413406, -0.2196345031, 0.2467179298, 0.0557839833, 0.0686216354, 0.1359150559, 0.2674401104, -0.3098888397, -0.1797688901, -0.0748897418, 0.0085685346, -0.1883708686, -0.0060652345, 0.2934332192, 0.0234700907, 0.0294385049, -0.1553814858, 0.1325115114, 0.2363229245, 0.0417060442, 0.0084720766, -0.1836157441, -0.2125669569, -0.1611634195, 0.1659641564, 0.2332042903, -0.1246360317, -0.0227328259, 0.0209113918, -0.1451628804, 0.2747375071, 0.2273867726, -0.0913353488, 0.6480852962, -0.1730045527, 0.5878828764, 0.1861092895, -0.5310035944, -0.1901536137, 0.2092230618, -0.3177127838, -0.0111942841, 0.1317908019, -0.1686787307, 0.3851613104, 0.0802869946, 0.1898802966, 0.2464481294, -0.1104765758, 0.2880240977, -0.2860673964, -0.0096032247, 0.0849479139, -0.0719702542, 0.2393062264, -0.2704798579, -0.0424100906, -0.1621233523, 0.2372230738, -0.1482037306, 0.2230833918, -0.0443855859, 0.0625270978, 0.0818429366, -0.0392005593, -0.1215577275, 0.0788094476, 0.2157846689, 0.0433689058, 0.0418131873, -0.1905941069, -0.1984121054, -0.0963726044, 0.2760664225, -0.2941966355, -0.3430737555, 0.3505135775, 0.3571792543, -0.0198514611, -0.0224458892, -0.0754135177, 0.1201191843, 0.153082639, 0.006208472, 0.0715010539, -0.0785522759, -0.1991022229, -0.1974655986, -0.0115250284, 0.0726842955, 0.1600965559, 0.0034864775, -0.0784359276, 0.4022409916, 0.2385912985, 0.1009368673, 0.2098904103, -0.1776233912, -0.0964286402, 0.0071382714, -0.0728402883, 0.1115309894, 0.0388302952, -0.0264948476, 0.1444303393, 0.4932917058, 0.2365599126, 0.1932385117, 0.2239500731, -0.0101360837, 0.2388229966, -0.1069112271, -0.0609273165, -0.1341270804, 0.0577990972, 0.0031341636, 0.1119551361, -0.1359221041, -0.2041952312, 0.1788985878, 0.3149355352, -0.0856284201, 0.1352986544, -0.1058830619, -0.0881045833, -0.1929528713, 0.0814027637, 0.1926788986, 0.3943271637, 0.2004813254, 0.1856657416, -0.0386409871, -0.0774590373, -0.0734679177, 0.1406774074, 0.0299729649, 0.1926372796, 0.2765001059, 0.2475030422, -0.2172686309, -0.3548971415, -0.2435459048, 0.1768792719, 0.1148346961, -0.1390991807, 0.0299772415, -0.3175421953, 0.0918785185, -0.0323444456, -0.0665199682, 0.2071172148, -0.3488471806, 0.1094206497, 0.1852680147, -0.169418171, 0.3220190108, -0.1171385422, 0.0898976624, -0.0134831276, -0.0217512064, -0.0988095701, -0.1474419534, -0.1254175305, 0.1327667981, 0.1662159264, 0.1449764073, 0.4963170886, 0.001336284, -0.2189733833, -0.5480387211, -0.245171845, 0.0971293747, -0.1633995622, 0.1954907626, 0.2778953016, 0.0427566245, -0.0250690207, -0.3409391344, 0.300249517, -0.4462933242, -0.373233676, -0.2133506984, 0.0948980749, -0.1722040176, -0.0335691907, -0.3764521182, -0.3236233294, -0.1813364923, 0.352352351, -0.0931493863, 0.1716112942, -0.1554574519, -0.1054515764, 0.1455906928, -0.0203672256, 0.1121425256, -0.2187276632, -0.1448163092, -0.0194474142, -0.1510414928, -0.2830696106, -0.1560444683, -0.140906021, 0.4374366701, -0.1034078896, -0.1784179658, -0.0407505967, -0.161214292, 0.4367103279, 0.0242295507, -0.0490039699, 0.3442160189, 0.2696901262, -0.3481391668, -0.0873823538, -0.1605873704, 0.0496433452, -0.2982188165, -0.1103074476, -0.1856850386, 0.4214309454, 0.2078024745, 0.5972418189, 0.0285144038, -0.0613888018, 0.1324319839, -0.4377177656, -0.0172749367, -0.0337197706, -0.4259907305, 0.1626303047, -0.2667847276, -0.1014863104, 0.1350758672, -0.1677295715, -0.1150869802, 0.1514068097, 0.0009904391, -0.3835223615, -0.2099660188, 0.0377301201, -0.1925777942, 0.0860436112, 0.0603312366, 0.01410913, -0.4112587273, 0.2260724008, -0.072192736, -0.0218361951, -0.1237445027, -0.3398275673, -0.3464433253, 0.0175716691, -0.6085759401, 0.354456991, 0.1318602413, 0.4851483703, 0.1367793381, 0.0053000934, 0.0414655469, -0.2825487852, 0.6524983048, -0.2151973397, 0.0749009103, 0.1836810559, -0.3277134597, -0.2910265028, -0.0436598547, -0.3557529449, 0.4460594058, 0.3172531724, 0.4865557849, -0.1918329149, -0.3518018723, 0.1224314049, -0.0199515782, 0.0334756039, 0.0118678603, -0.2885978222, -0.3060875237, -0.4088720977, 0.3470338881, 0.0887138247, 0.1813629717, -0.069950901, -0.124586679, -0.1805431396, -0.0352943987, 0.1069819555, 0.1873822808, -0.0616822653, -0.1572833657, 0.1408729851, -0.0219114572, 0.2116454244, 0.2355050445, 0.0500610732, -0.0951047167, -0.1150437444, 0.0940205529, 0.0208326522, 0.4114657938, 0.2416522354, -0.1685582399, 0.3699744344, -0.1364516616, 0.2886339128, -0.1108365804, 0.4739769101, 0.554315865, 0.1899578422, -0.1046062708, -0.1071347594, 0.0384810343, 0.1415002346, -0.1566073745, 0.306224972, -0.2532047033, -0.2288147211, 0.1476330608, 0.1779161394, 0.5770246983, -0.0932504162, 0.0875760838, 0.0692828074, -0.0339658111, 0.0664257109, -0.3225959241, 0.1247426718, -0.288105309, -0.1223683879, 0.0637505949, -0.0489773564, 0.1619586498, 0.1876238286, -0.3256684542, 0.1354867518, 0.2791850865, 0.1854789704, 0.0244831126, 0.431650579, 0.0075261639, -0.2300828248, -0.023363702, 0.2279519588, 0.1796824187, -0.0562871322, -0.0279300772, 0.1004806235, -0.0691839978, -0.3762970865, -0.1939992905, 0.020872876, -0.4312960804, 0.3942314088, 0.0237803068, 0.0594657212, 0.0281338636, 0.1458711624, 0.1447971165, 0.2050362229, 0.0107790306, 0.1170281395, 0.0932479575, 0.0910389647, 0.0838552192, -0.2934492528, 0.2623491287, -0.1249916479, -0.4529617131, 0.056927003, -0.0704901963, -0.2504338324, 0.0244052727, 0.1059231982, 0.2930749953, -0.2247791439, 0.0423180163, -0.0464649349, -0.2383498847, -0.3965627551, 0.2039444447, -0.1147942767, -0.1983671635, 0.2978396416, -0.1070739925, -0.3055644929, -0.0280590001, 0.2836198509, 0.0299852509, 0.1521654278, 0.5996190906, -0.077330634, -0.1156411171, -0.4316453934, 0.0979602784, 0.3189346194, 0.1494751871, 0.2477398962, -0.1895443648, -0.2431793511, 0.0721191019, 0.1885506511, 0.0378919765, 0.1453276724, -0.2402582765, -0.2921875119, -0.4588642716, 0.0046022679, -0.1703902781, 0.2114722431, 0.1943896562, 0.4413280487, -0.135223791, 0.2366547585, -0.4279208481, -0.0372964107, -0.4685040712, 0.2483723015, -0.0478402488, -0.0903499573, 0.0450875461, 0.0513903387, 0.3058930039, 0.220881775, -0.0576611795, -0.3870591819, -0.0921495706, 0.0931528062, 0.1092804521, 0.0143302977, 0.1976387352, 0.2131324261, -0.2241608948, -0.2637849152, 0.1043586805, 0.1285093129, -0.0872337893, 0.0787764117, 0.18168284, 0.0326142833, -0.0256912354, -0.3361304402, -0.0561857112, 0.032077197, -0.0667605847, 0.3304433227, 0.0313247107, -0.0545087643, 0.0997805595, 0.0593810938, 0.2828299701, 0.2285245806, 0.0306529552, -0.103048414, -0.3491648436, -0.0028985147, 0.3846752644, 0.2440444231, -0.2425766289, -0.0939172953, 0.2190345675, 0.3167301416, -0.231925413, -0.072775051, 0.2596984804, -0.3800117075, 0.3790824115, 0.2261145115, 0.0072067077, 0.1852704138, 0.11054454, 0.0050975764, 0.2265834212, -0.3973683417, -0.0119795138, 0.0900443941, -0.1410696357, 0.1985624284, 0.4492414296, 0.0734670237, 0.2462898195, 0.3410063982, 0.0147558078, 0.5114741325, -0.124685891, 0.0724944472, 0.0589090027, -0.0415681638, 0.3311867118, -0.0005667167, -0.0347976461, 0.0089656441, -0.0880122557, 0.3054791093, -0.3336258233, -0.0528678894, -0.2124444097, 0.3687889278, -0.1914829761, -0.3856402338, -0.2380474359, -0.0818296447, -0.1413497478, -0.0785161778, -0.0190696511, 0.1973137259, 0.0451894552, -0.0820418522, 0.0131342448, -0.2212533504, -0.0192149896, -0.0783581585, 0.1308196336, -0.2626003921, 0.2001495212, 0.1314701885, 0.1404422522, -0.1671113968, 0.6095549464, 0.5709314346, 0.3046992719, -0.1988586634, -0.1260325164, -0.334471494, -0.1386541724, -0.200234741, 0.286362052, 0.0003164706, -0.1747993082, 0.2625157833, 0.2772243619, -0.2658776939, -0.1564967632, 0.4190353751, -0.1771446615, 0.1225865036, 0.1675085276, 0.1353609562, -0.2269662619, 0.0732963309, 0.1038701981, -0.3389840126, -0.0345565267, 0.2996354699, -0.2357952297, 0.3266509771, -0.1310752779, 0.1637847424, 0.0463034995, 0.4507511854, 0.0503231734, 0.1739299446, -0.3142851889, -0.1331527382, -0.5782247782, 0.2144249976, -0.1688655764, -0.3648040891, -0.1931367218, 0.1571836323, 0.1029491946, 0.1065550447, 0.2409303635, 0.0778951868, -0.1090171263, 0.2187099606, -0.3619212806, 0.0869542211, 0.1755947918, 0.051984787, 0.2043186277, -0.4335596561, 0.2095238566, -0.0014672402, 0.2383019179, -0.014497418, 0.0347770303, 0.1814200282, -0.3401249945, 0.2746292353, 0.1093129367, 0.525728941, -0.4383837581, 0.0910443738, -0.1269074231, 0.1606310159, -0.4419290125, 0.0574722104, 0.241409868, 0.1892358214, 0.0872845575, -0.031147413, -0.1315662265, 0.1188576147, 0.2362553179, -0.0922231153, -0.0139228348, 0.3029532135, 0.1060064882, 0.0748863816, -0.1064884886, 0.339972198, -0.0225498267, 0.2731781006, -0.4903123975, -0.4749884903, 0.3061770797, -0.5121245384, -0.4921656847, -0.3859885633, 0.2887361944, -0.0939688683, 0.0935925543, -0.3449761271, -0.0112366127, 0.2883770466, 0.1060351133, -0.5911825299, 0.1808961779, 0.0886601508, -0.0450419001, -0.0889837816, 0.3249361813, 0.0077152289, -0.1511939615, -0.0211813059, -0.1020610332 ]
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.2272991091, -0.0823318362, 0.0003385305, 0.1499358863, -0.4059507847, -0.034600202, 0.1919763833, 0.1057021022, 0.096178256, -0.1447628587, -0.0471815877, -0.1035465151, -0.263531208, 0.2344667763, 0.2132850885, -0.05957314, -0.1592914015, -0.1947901398, 0.1115607321, 0.0093254084, -0.0119552128, 0.0130747287, -0.2015614212, 0.0045056478, -0.5718674064, 0.0330754295, -0.2534199059, -0.1548035443, 0.0858292282, -0.3601928055, 0.2060382515, 0.6282490492, 0.1120475978, 0.5196277499, -0.0001165368, -0.3225642145, 0.1629252136, 0.0532237999, -0.2220108062, -0.0875664428, -0.2345131487, 0.0085835177, 0.0981310531, -0.1646175683, 0.002716115, 0.0003688217, -0.345066607, 0.0169514194, 0.2611085474, 0.1450028569, 0.1791541278, 0.2080793828, -0.1005196795, 0.0022977632, 0.2288695276, -0.0532465838, 0.0240707193, 0.5337881446, 0.1278331131, 0.0082167098, -0.3305612803, 0.2556034327, -0.0482341275, 0.0952404439, 0.0296692476, -0.2165823728, 0.207281962, -0.0248797871, -0.1847683787, 0.6821910739, 0.111319907, -0.135893926, -0.3626841307, -0.1780864596, 0.1415117979, 0.1910556406, 0.0108546074, 0.0837785825, -0.3718942404, 0.2523228228, -0.2055732012, -0.4319067299, -0.0509221926, 0.0619590208, 0.3457696736, 0.1788576692, -0.0137490546, 0.1511368603, 0.2833221257, 0.168557182, 0.1721879095, -0.3932560086, 0.1634168327, -0.0612805299, -0.2462203503, -0.3360616267, 0.3016603291, 0.4368488193, 0.329321444, 0.4084156454, 0.1978222281, 0.1490224004, -0.3179813325, 0.0085511431, 0.1067505255, -0.1359964311, -0.3658551872, -0.4572272003, 0.3480316103, 0.0410776176, 0.1714975983, 0.0878178924, 0.0892944112, 0.2867176533, -0.3137621284, 0.1096377224, 0.1290665418, -0.2129604667, -0.1475040317, 0.1170881614, -0.4780732989, -0.4129661918, 0.1277893633, -0.1038536578, -0.0501335375, 0.3127094209, 0.2355262786, 0.1694092304, 0.1646916866, -0.3821564615, -0.1032018065, 0.3580859601, -0.0851725861, 0.171932742, 0.2503606677, 0.1378547847, -0.1598969698, -0.0078857951, 0.2475170195, 0.1192437932, 0.158847928, -0.2928926945, -0.0950282142, -0.207349062, -0.2217974961, -0.0861622691, 0.0405205041, -0.1773963571, -0.0580105931, 0.1205496937, 0.1289974749, -0.2766110003, -0.0955957249, 0.113270469, -0.5047517419, -0.0760267004, -0.4323446453, 0.5820620656, -0.0895040184, 0.2344906479, -0.006996375, 0.1698769927, 0.02835894, -0.0424430333, 0.0730619729, 0.4558426738, 0.0693434179, -0.0632668063, -0.186106503, -0.0203271639, -0.1498076469, -0.141915217, -0.0407368802, 0.3462031186, -0.1862292439, 0.0748934001, 0.1125302464, -0.4129197598, -0.0766673908, 0.2678289413, -0.3645825386, 0.0779019818, 0.3461771309, 0.1696012318, 0.0150965285, -0.3515819013, -0.2433550209, 0.5789192915, -0.0191443935, 0.0034198812, -0.457888335, -0.0963019207, 0.0129373875, 0.2265041322, 0.0787473843, -0.3378921449, -0.0535276085, 0.3043081462, 0.3111548722, -0.0393293016, 0.2238330096, -0.0580615737, 0.2108478397, -0.6122571826, -0.0277997591, -0.195029363, -0.1623074412, -0.0837936699, 0.2959189713, 0.4300270379, 0.3091977835, -0.1348817199, -0.1295537353, -0.0997591093, -0.2761281729, -0.4181808233, 0.146483317, 0.3087130487, 0.1575442851, 0.0618326254, -0.0519815087, -0.0381781049, 0.0885734856, 0.0160050038, 0.1007433534, 0.4683503211, -0.0116548501, 0.0949854702, 0.0089577194, 0.3744882643, -0.1441874355, -0.2735953927, 0.0491675027, 0.431818217, -0.2593183517, -0.0692740828, 0.7123368382, 0.25893417, 0.3165450096, -0.4310325682, 0.2104399055, -0.0167119373, 0.1257604361, -0.1446498334, -0.2468674034, 0.3453982174, 0.1053262949, 0.1579198688, -0.0618477724, 0.1428497881, 0.0796140954, -0.1416088343, -0.288089484, -0.0173716862, 0.4400108755, 0.0126466332, 0.2279019505, -0.2999402583, -0.0706616268, 0.2726601362, -0.08128649, 0.0399396978, 0.2333286107, 0.161147669, -0.0433435962, -0.2864331603, -0.0294448901, 0.1646227837, 0.3358066082, 0.1740186661, 0.2849567533, -0.0659758747, 0.062930122, -0.0905712247, 0.2097533345, -0.1903971881, -0.2169684768, 0.043633949, 0.0624598525, 0.0254510567, -0.1361390948, -0.4984520376, 0.2366658151, 0.3610855639, -0.1582578123, -0.1105237603, -0.1688100398, -0.3075076938, -0.1922275722, -0.3418149054, -0.2188436091, -0.4317830503, 0.0095067043, 0.0510064475, 0.2749845088, 0.3618484437, 0.2475442737, 0.4854175448, -0.0482301004, 0.4010957181, -0.1088409722, -0.1563973874, -0.0341118947, 0.1446635872, 0.2256756127, 0.14142856, 0.4724613726, 0.073672533, 0.178383857, -0.2351920307, -0.3586515188, 0.2105641514, -0.0159763899, 0.2286699414, 0.2341109365, 0.0499630831, 0.2000393271, 0.2142780274, 0.1577645242, 0.0015248132, -0.1417130232, 0.1305214763, -0.1321742237, 0.0097814351, -0.1054690331, 0.1849377751, -0.2513542771, -0.115351662, 0.3771844506, 0.0288776141, -0.0870285258, 0.0213874448, -0.1146049798, 0.3248682022, -0.1924207658, 0.0294509251, -0.2875552475, -0.5863477588, -0.0235059801, -0.0817515403, -0.0255942177, -0.3916586041, -0.3142074943, 0.1521118432, -0.1375467628, -0.5253850222, -0.3399842083, 0.0022230328, 0.2595573068, 0.1521725059, 0.0431390107, 0.2412625551, -0.1067442894, -0.1025691181, 0.0414260179, 0.0672291219, 0.0882847458, -0.168374598, 0.3496380746, 0.2270534784, -0.1118772253, 0.5127786994, 0.4072455466, 0.106169343, 0.0639263988, 0.2201282084, -0.0686426684, 0.0777289122, 0.1895665973, -0.5597392321, 0.4821091294, -0.0318906792, -0.0508244969, -0.036995355, -0.131505087, 0.2448631972, -0.2971073389, 0.0702996701, -0.0670238584, -0.2937931418, 0.1264005005, -0.3778006434, 0.1239687428, 0.108937867, -0.3209061921, -0.1242936328, -0.2189759612, 0.1418033391, 0.294228971, 0.2277383953, -0.295414716, -0.0668759868, -0.0950345546, -0.3934735656, 0.3894404173, 0.0661577359, -0.0900330171, 0.1126884446, -0.004427914, -0.0039528739, 0.0922148675, 0.4180672169, -0.5143919587, 0.1353332102, 0.1167921349, 0.0336879566, -0.5341310501, 0.0339396149, -0.4302002788, -0.0627646521, 0.1773237288, 0.0435872599, -0.4558320343, -0.1331996769, 0.7585169077, 0.0448627695, 0.0005281037, -0.3360906839, 0.1109616458, 0.0661184639, -0.2460399717, 0.0561075993, -0.0099074468, 0.0208706111, -0.066102691, 0.034674339, 0.2253530622, 0.1161693111, 0.3921641707, 0.0235509444, -0.1376080066, 0.2696407735, 0.0850264132, -0.2122835517, -0.3036352694, 0.1736401021, 0.1538455486, -0.0102865715, -0.0846940503, 0.0796293467, -0.0378931686, 0.2571401894, 0.3785800636, 0.0597672462, 0.3685819209, 0.0722897127, 0.2682337463, -0.2171765268, 0.1767383218, -0.1100781038, 0.0010995301, 0.0037901681, -0.1943553686, 0.4577751458, 0.0886091888, -0.1785666645, -0.1837351471, -0.1082383394, -0.0236830153, -0.0018280535, 0.0532355011, 1.2627146244, 0.2454868853, -0.0133656422, 0.2612295449, 0.1888640225, 0.4842991531, -0.4983180761, -0.2737853229, -0.1867611706, -0.0294731222, -0.1651689857, -0.3271546662, -0.0046537337, 0.192664668, -0.3592127264, -0.1146058664, 0.1274694502, 0.021013774, 0.0443566963, 0.5635523796, -0.0875814259, -0.2835758328, 0.2453345507, 0.1694771498, -0.290967375, 0.0991520509, -0.1385644972, -0.1920528412, -0.1444830894, -0.205725953, -0.4938208461, -0.1306062192, -0.1088441461, 0.1145522967, -0.2344892323, -0.3886839449, -0.0501263775, -0.5567723513, 0.1295871139, 0.0299222302, -0.2018656731, -0.1130384803, -0.1547295451, -0.0867032558, 0.0413507335, -0.2835637629, 0.2741185725, 0.015172, -0.4493737519, 0.1459135115, 0.0339936465, -0.1373796165, 0.4455840886, -0.0426312126, 0.3611055017, 0.0761187971, 0.2114385217, 0.4344059825, -0.2108475864, -0.1954821646, 0.1394939125, 0.3742079437, -0.302074492, 0.1498738229, 0.078326799, 0.0474984013, -0.1404800415, 0.3055310547, 0.2763251662, -0.1267755628, 0.1218033805, 0.1743713766, -0.1480493695, -0.2686434388, 0.4009835422, 0.084023796, -0.4870324135, 0.0370537676, -0.1743947417, -0.1999872476, -0.2373298109, 0.2377752811, 0.4147132635, 0.4652636945, 0.0448790528, -0.5292448401, 0.0094290618, 0.2511825562, -0.3439133167, -0.0446375795, -0.5093989968, 0.6212289333, 0.2525546253, 0.2308319509, -0.3422258198, 0.2347230166, -0.1392383575, -0.1107174978, 0.4395374954, -0.2561743855, 0.126896143, 0.0996730253, 0.0984071046, 0.123512201, -0.1038624421, -0.1879124343, -0.2445528656, 0.1251426786, 0.0526083969, -0.0673977062, 0.163492173, 0.0472757034, -0.0400860012, -0.0242089629, -0.0984931067, -0.1040567234, 0.0353753418, 0.0872738287, -0.0539794825, -0.0468094163, -0.2468534559, -0.0526101738, 0.1595725119, 0.1853938401, 0.0085849604, 0.0589545146, -0.0294488277, -0.0878488123, -0.0607309639, 0.2267069668, 0.0259724203, 0.0632993951, -0.0865542963, -0.0082773026, -0.0700098127, 0.4451747835, 0.4849704504, 0.2325764447, -0.118917264, 0.1047341377, -0.1195659712, 0.1804615855, -0.3028203249, 0.2973515987, 0.1752166301, 0.1731589139, 0.1861557662, 0.4783846438, -0.0383911431, 0.0364908278, 0.1809015274, -0.0525318533, 0.235842526, -0.2555924952, -0.1147487536, -0.1154722273, -0.295388937, 0.1107538044, 0.2694615424, 0.1786247194, 0.1760026813, -0.1221669167, 0.0060345824, 0.0549356602, 0.0906939507, 0.0894461647, 0.2672557235, -0.2129652649, 0.4202226698, 0.2588843107, 0.0499809124, -0.0994194672, 0.085273996, 0.6111460924, -0.2340551168, -0.033997409, -0.360817641, 0.224564001, 0.0237091575, 0.1185410023, 0.0140387444, -0.2033747882, -0.3663740158, -0.3091670573, -0.0743286461, -0.1315100342, 0.440681994, 0.1155266017, 0.2183001935, -0.2886615694, -0.3951534033, 0.0844944194, 0.2169117182, -0.3521039188, 0.0441314057, 0.4230368137, 0.0523837432, 0.0111110937, 0.6570657492, 0.1866722852, -0.1337444037, -0.3192817271, 0.1201314852, -0.335785687, 0.0300089698, -0.0276110619, 0.1726448238, 0.5718489885, -0.0983299389, 0.1977618784, 0.0498351716, -0.2692709565, 0.4436636567, 0.2408140898, 0.0371604003, -0.5864855647, 0.0541565418, 0.038103465, 0.1615024358, -0.1707797796, -0.007886122, -0.3688825965, -0.142610535, 0.0498991013, -0.2634573877, -0.0825022236, -0.1683410406, 0.0525500514, -0.1341017783, 0.2285888791, 0.4410324693, -0.0096199196, -0.3868284822, -0.2921034396, -0.6059036255, 0.0989549309, 0.0267808493, -0.2023598701, -0.4342106879, 0.2664535046, 0.1798343062, 0.705899179, 0.180888325, -0.2668346167, 0.1424340308, 0.1624391824, -0.3843021989, 0.1687567234, 0.0906044394, -0.1243209243, 0.1892858297, 0.104880318, -0.0175447036, 0.3335635066, 0.0561725684, -0.0172392428, -0.5416665673, 0.3225411177, 0.2993497849, 0.3092267513, -0.0227933731, 0.4958722293, 0.0934570581, -0.1722733825, -0.0667197332, 0.0959020779, 0.1008072123, 0.5742009878, -0.0160354301, 0.1934215128, -0.0118905846, -0.0537695028, -0.0987725258, -0.2474555671, -0.096598655, 0.0109381722, -0.4421474934, 0.0059919045, -0.0498702563, 0.3267238438, 0.0018914212, 0.1454039812, -0.0550494827, 0.3461007774, -0.0550593622, -0.1985269487, 0.3473351598, 0.1576505005, -0.0048529943, -0.2775719762, 0.3810522556, -0.8294072747, -0.1915791333, -0.588586688, -0.31442222, 0.3645709455, 0.0971506387, -0.0741957277, 0.1580604166, -0.2104311436, 0.027230503, 0.0301883034, 0.3414422572, -0.1916600913, -0.1499208212, -0.0701010376, -0.0429635718 ]
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.2867435515, -0.2775808275, -0.08202371, 0.0229687002, -0.2790859044, -0.1241934896, 0.1645182967, 0.1147086918, 0.0981637388, 0.1487331837, -0.0963038281, 0.0598271005, -0.0950222015, 0.2981518805, 0.2122937143, -0.1031538621, -0.1313483566, -0.0484598055, -0.0788759589, 0.0388446786, 0.0336412713, 0.1323770285, -0.1098016053, -0.0514859036, -0.3951325417, -0.0116976593, -0.152868703, -0.1421921998, 0.1767663509, -0.3470918834, 0.0790033713, 0.4557310939, -0.0380146615, 0.3522498906, -0.0001060055, -0.1624503881, 0.1336013526, 0.0436686873, -0.2459265292, 0.0830908567, -0.0809476078, 0.0728996098, 0.1475114375, -0.0974188298, -0.1465436071, -0.0416965038, -0.2358897626, 0.1373573393, 0.3529118001, 0.1512062848, 0.2692034841, 0.3744874001, -0.0909699947, -0.1768823415, 0.1466147155, -0.1151667908, 0.0339637175, 0.4747837186, 0.0599789433, -0.0117558781, -0.4476828277, 0.4065052569, 0.0009206692, 0.1696485877, -0.1179279014, -0.1064522713, 0.1529269367, -0.0746432692, -0.0437301658, 0.6290507913, -0.1349584907, -0.1467762589, -0.326487273, -0.2491107583, 0.0428118855, 0.1343470067, 0.0443008207, 0.1490806639, -0.2735670507, 0.2022500932, -0.214932546, -0.0940119103, -0.0298704151, 0.0526228808, 0.2132792175, 0.1690588146, -0.1091084853, -0.0234357361, 0.3585717082, 0.1595169455, -0.0357538462, -0.2431965321, 0.168772012, -0.1860031486, -0.0606008135, -0.2975718081, 0.2898408473, 0.3649699092, 0.367105037, 0.3012627661, 0.265204519, 0.158250615, -0.2483095825, 0.0941537172, -0.0687468126, -0.0953087881, -0.2874858975, -0.5833560824, 0.3475053608, 0.2314160019, 0.1296989173, 0.0780096948, 0.1783206612, 0.2515961826, -0.3900650442, 0.0836940333, -0.1611855328, -0.1440847367, -0.1861332506, 0.1061965004, -0.3253612816, -0.1250448972, 0.0548867323, 0.0711382702, -0.1008188725, 0.3313429654, 0.1849272996, 0.0917671919, 0.0834687278, -0.3077299893, -0.2107057124, 0.3382162154, -0.0327009149, 0.1933871359, 0.2491162717, 0.0862498954, 0.1802136004, 0.1143540516, 0.2216905802, 0.0304587036, 0.1632223725, -0.2651653588, 0.0008841939, -0.070996277, -0.0951057225, -0.2264547497, 0.0763856098, -0.1893619448, -0.1272077411, -0.1004319191, 0.1026921421, -0.146536082, -0.1066595018, 0.2135046273, -0.3886556923, -0.191370219, -0.260602653, 0.4759401679, -0.1730582565, 0.2680045962, 0.0965696573, 0.2344008088, 0.1171851307, 0.0083589423, 0.1605291963, 0.3687471151, 0.1212783232, -0.2506895065, 0.0331292264, -0.0858479887, -0.1767145991, -0.0707864016, -0.0486028939, 0.2160956264, -0.2160632312, 0.1856980771, -0.0379078463, -0.3163790405, -0.11670921, 0.0720607936, -0.3015658557, 0.0878661051, 0.2680445611, 0.0802263021, 0.0543416142, -0.1052970886, -0.1661249101, 0.5198565125, 0.0967682749, 0.1907665581, -0.3441917896, -0.1677937806, -0.2322195619, 0.1796372682, -0.0135583095, -0.3202842474, 0.0118761119, 0.2393238246, 0.3109694123, -0.099088937, 0.133036986, 0.0712412, 0.1044495851, -0.4205800891, -0.1068931073, -0.2172249258, -0.0872853249, -0.115574047, 0.0521444678, 0.4067138433, 0.1621484756, -0.2223688811, -0.2138915956, -0.0603819154, -0.1263389587, -0.4186023474, 0.3150722682, 0.4057452083, 0.1784081906, 0.1347750574, 0.0722761452, -0.0547273569, 0.0883350819, 0.112036787, 0.1067317054, 0.2869186997, -0.0464474894, -0.0571550764, 0.2328544855, 0.2236230075, -0.1332375109, -0.208888635, 0.1052233204, 0.4635674059, -0.2398422509, 0.1055543423, 0.5500935316, 0.3264042437, 0.1726309359, -0.3131437302, 0.1095872447, 0.0789437965, 0.0664953813, 0.0865847543, -0.3467351496, 0.4270170033, 0.2828144431, 0.0556460284, 0.092959702, 0.126573205, 0.2059931457, -0.1193458512, -0.2036150098, -0.1794459969, 0.3633714914, -0.0255367514, 0.2383509576, -0.2011656165, -0.1728342772, 0.2690051794, 0.0963140577, 0.1139982566, 0.3939313889, 0.1579204053, -0.3027701676, -0.374329567, 0.0889572576, 0.0322209373, 0.0094886776, 0.293266356, 0.3736001849, -0.1231613234, -0.06324853, -0.2345935106, 0.2791766822, -0.2151178569, -0.2966947258, 0.1072226986, 0.1757372022, -0.0794860199, -0.4073746204, -0.4114882052, -0.0374748968, 0.0819429979, -0.0628041327, -0.0727672204, -0.1820838451, -0.3367844224, -0.1073108315, -0.205093205, -0.202873528, -0.3738684356, 0.165544942, 0.1847131848, 0.0796810389, 0.3150452971, 0.168298319, 0.5256703496, 0.0483975336, 0.4300486743, -0.1132221073, -0.1184879765, -0.0463091582, 0.2272657007, -0.0351150706, 0.1383320242, 0.4301140308, 0.0323062092, 0.1055170968, -0.1346318573, -0.3381767869, 0.3274392784, 0.0189790297, 0.0784659907, 0.2499458492, 0.0561924353, 0.2356974632, 0.1594019234, 0.1428955495, -0.1569970697, -0.1630940437, 0.1478887945, -0.1265546679, 0.0657547787, -0.2258960605, 0.1727431715, -0.131338194, -0.1951169819, 0.427638799, 0.0411096551, -0.0647481978, 0.1986628771, -0.0287465025, 0.3513507843, -0.3559434414, 0.2393334955, -0.266296953, -0.558060348, 0.0462880433, -0.2378891259, -0.0749974027, -0.4700531363, -0.3998804688, 0.1343477815, -0.1288476586, -0.472407937, -0.4922144413, -0.2050069124, 0.2339609265, 0.1317838728, 0.0074968082, 0.3199825883, -0.1177761629, -0.2865697145, -0.0135590313, 0.0779698715, 0.176371783, -0.2182679027, 0.1791595966, 0.0688349456, -0.1795094758, 0.5941287875, 0.3341061771, 0.0510025993, -0.0625781566, 0.2247598767, -0.161502406, 0.0383761525, 0.1382561177, -0.280980289, 0.2556062043, -0.0379053243, 0.1196629554, 0.1581822634, -0.1470267028, 0.2490227818, -0.2720156014, -0.0091463421, -0.1886364818, -0.3408611417, 0.0859106928, -0.1938692629, 0.1196766198, -0.0584905818, -0.2399739921, -0.0151594924, -0.1219426021, 0.2562094033, 0.1171789616, 0.167104587, -0.2866930366, -0.0003815707, -0.0684208646, -0.3204260468, 0.378792882, 0.118096076, -0.1601743847, 0.1036234722, -0.189984411, -0.0698332861, 0.022060765, 0.2806836963, -0.3590145707, 0.1685786694, -0.0736780986, -0.1262994111, -0.4930110574, 0.1724653989, -0.6214956045, -0.2309936434, 0.2284554839, 0.0947993621, -0.5830441117, -0.1353441626, 0.6615107656, -0.0321309716, 0.0462494493, -0.1048675478, 0.0395185761, 0.0320977718, -0.2198536843, 0.1494939476, -0.0236578435, -0.0890544504, -0.065377228, -0.0596347637, 0.1529758871, -0.0461466983, 0.1430098712, 0.2116667479, -0.0876232982, 0.2434212416, -0.1006887183, -0.2109388411, -0.1348454356, 0.0749133527, 0.0712185353, 0.083684437, -0.0305535514, -0.1203538105, 0.0264122169, 0.0588537566, 0.339148283, 0.0564361066, 0.4760083854, 0.0357457064, 0.3672850132, -0.22761558, 0.2897332013, -0.0722119883, -0.0454163104, 0.274401933, 0.0004258369, 0.5121608973, 0.0745409653, -0.1095567569, -0.2221310139, -0.0729918778, -0.1039228886, 0.0380487218, 0.1324605793, 1.1257491112, 0.3289625347, 0.0377921872, 0.3225511014, 0.1011456773, 0.4174520075, -0.3723427951, -0.0780908614, -0.1175962985, -0.1119006202, -0.0754864141, -0.1083521992, -0.0685053989, 0.0830524042, -0.4119776487, -0.0901864097, 0.0935385823, -0.0378628969, 0.0057591279, 0.3582374156, -0.2234947532, -0.3446009755, 0.0054322099, 0.2527287304, -0.2597343326, 0.1220236495, -0.0510408022, -0.115657784, -0.0420904458, -0.2122898996, -0.3557642102, -0.079142116, -0.115848884, 0.0163984429, -0.1187101379, -0.2603162527, -0.3931947052, -0.4722168446, 0.1464757472, 0.166883409, -0.2364414781, -0.0338363871, -0.2105513066, -0.1473635435, 0.0603978559, -0.1346815526, 0.1946254671, -0.0242950581, -0.3363331258, 0.0735561475, 0.0514821708, -0.0899576023, 0.4749715924, -0.1214458793, 0.107271187, 0.1345885694, 0.3538149595, 0.2668705881, -0.3107758164, -0.2847301066, 0.2133521736, 0.2541812062, -0.2631849349, 0.0771745294, 0.0967085138, -0.0011078034, -0.2568236887, 0.4368762076, -0.0553012267, -0.0261057708, 0.0106998151, 0.2215569317, -0.1990110278, -0.3756070137, 0.0922972858, 0.0463562794, -0.4406691492, 0.2439428121, -0.2361666411, -0.3502996862, -0.2419025153, 0.3663057685, 0.3758276403, 0.4089523256, -0.0247770175, -0.4372682869, -0.0649759173, 0.3385904133, -0.275291115, 0.090910241, -0.2320913076, 0.5329762697, 0.2194463462, 0.1724180281, -0.4702297151, 0.0667384639, -0.3435592353, -0.062515378, 0.2846619487, -0.3762761652, 0.2563639283, 0.2098732442, 0.2285182029, 0.1995832622, -0.0418578237, -0.3190549016, -0.2192120552, 0.041325517, -0.0831856653, 0.058252994, 0.1292322278, 0.2694724202, -0.0234932248, -0.1886212379, 0.111230731, -0.148851335, 0.0650068969, 0.1702755094, -0.1654926389, 0.0777488351, -0.0685703009, -0.2459520996, 0.0568085983, 0.0679345727, -0.0006954481, -0.0113129914, -0.1898343414, -0.1794883162, 0.0908634365, 0.3038333654, 0.1592200994, 0.0141774863, -0.0317452811, 0.1759509593, -0.2716870606, 0.3827174008, 0.4669645131, 0.1605249941, -0.0365921296, 0.0663272217, -0.1233653724, 0.3364461362, -0.3178907931, 0.2393036336, 0.0291430689, 0.0190666951, 0.4145537019, 0.4714473486, -0.0747157186, -0.1081274748, 0.2366815507, 0.066711016, 0.1551908702, -0.2402079403, -0.2382582724, -0.0876714885, -0.0859272555, 0.0475505963, 0.1945166737, 0.1122504473, 0.4746482372, -0.2354245484, 0.0376125611, 0.1002871767, 0.0405998267, 0.1428985894, 0.3279911578, -0.0409110673, 0.2567057908, 0.2584798932, 0.0455376208, -0.0206385553, 0.0381925143, 0.597851336, -0.1981191188, -0.0071807313, -0.4543907046, 0.281824261, 0.1027124152, -0.0286311619, -0.1455939561, -0.1928229332, -0.4093614817, -0.2367831171, 0.1066767424, 0.0303994138, 0.4083537161, 0.0520016812, 0.2306713611, -0.3958833516, -0.398217082, 0.1973352134, 0.2946583629, -0.311047852, 0.0026080979, 0.5717424154, 0.0518725477, -0.0503760837, 0.7172045112, 0.2138891965, -0.2227066606, -0.2931574881, 0.0956833214, -0.3083190918, -0.0713371858, -0.204650268, 0.0046787774, 0.4872710109, -0.0667356849, 0.278995961, 0.2149053365, -0.3893035948, 0.3618431687, -0.007520888, 0.0917416438, -0.3114089966, -0.0006605841, 0.1626612395, 0.2265348881, -0.2334201187, -0.0882823169, -0.4648961425, -0.1227077097, -0.1091861874, -0.2664311826, -0.0280843265, -0.1699663401, 0.12033768, -0.0369610153, 0.3108157814, 0.428360939, 0.0154273473, -0.1131108105, -0.3041282296, -0.37454319, 0.0971513391, 0.0803197697, -0.2185715437, -0.483201921, 0.3267867863, 0.0939991176, 0.5921643972, 0.0417668223, -0.241185382, 0.2161263227, 0.0370692834, -0.3163021207, 0.2047957629, 0.0088104699, -0.1555593759, 0.3016020656, 0.0475175492, 0.0113612143, 0.1880794168, 0.203001067, 0.1140047312, -0.353492409, 0.1826296151, 0.0313198157, 0.3012468219, 0.0594015978, 0.2661760747, -0.170560509, -0.243860811, -0.0775655136, 0.082490012, -0.0444261022, 0.3249352574, 0.0264936611, 0.2693073452, 0.1018017381, -0.0790500119, 0.0145309661, -0.0539231338, 0.1040878147, -0.0490861386, -0.2996730208, 0.0251365621, -0.0413084701, 0.1729386002, -0.0592395738, 0.2082289308, -0.0681930408, 0.1640979648, -0.0508984737, -0.5344403386, 0.1976065934, 0.1305537224, 0.0211023316, -0.2160776258, 0.4518179595, -0.6408715844, -0.1828154027, -0.4566703141, -0.1273538321, 0.2505473197, 0.1949225664, -0.1603250504, 0.1837489456, -0.1885822564, 0.0023345149, -0.0384716913, 0.3554103374, 0.1156805977, -0.1133874431, -0.1092246994, -0.126976788 ]
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.0237091891, 0.1297199577, 0.1280902922, 0.0422289073, 0.1812679023, -0.0610473789, 0.4962112606, 0.054329928, -0.0781160146, 0.1093735248, 0.0923892856, 0.2173015922, -0.2150027007, -0.0573221184, -0.3110678792, -0.2098555714, -0.1186008304, 0.254781574, 0.0980245471, -0.0632236078, -0.5826330185, 0.0948995352, -0.5061206818, -0.215433687, -0.3565765917, 0.0306725092, -0.1378584355, 0.0974578187, -0.1915954053, -0.4349972606, 0.3886696994, 0.2518527806, -0.0504472889, 0.4357789457, -0.0001216621, 0.010391593, 0.1038185433, -0.213018164, 0.0852770805, -0.2657133043, -0.3200366199, 0.2057954073, -0.1055373177, -0.2700329125, -0.0187032055, -0.0896987021, -0.3070334792, -0.2126887292, 0.2421084493, 0.428330332, 0.1078686416, 0.1945307553, -0.0735883564, -0.3550615311, 0.0813602582, -0.3017674685, -0.1456322521, 0.4351504445, -0.4142248631, 0.0377765968, -0.1057626456, 0.0243913531, 0.0382913202, 0.2849422991, 0.4474447966, 0.1052066535, 0.1581571996, 0.0385506377, 0.1076111719, 0.3610636294, -0.0474514812, -0.2185912579, -0.2287300527, 0.0338250473, 0.1287766993, -0.7086324096, 0.0648085624, -0.2146536857, -0.1373078674, 0.0183909312, -0.1703182012, -0.2219580561, -0.3350682557, 0.1999559551, 0.0099013671, -0.0556114092, -0.1081217006, -0.0112575954, 0.5676792264, -0.0950886682, 0.1574658751, -0.2250991315, 0.0535052381, 0.0574580356, -0.206204474, -0.1097375229, 0.120559819, 0.0120410006, 0.0549920127, -0.418651253, 0.2580142617, 0.027716551, -0.0427122526, 0.0072119576, 0.0113445381, 0.4146574438, 0.007568846, 0.0421951562, 0.0975385308, 0.1913097948, 0.0582840033, 0.042094674, 0.1064491645, -0.2987896502, 0.4436662495, 0.1426465213, 0.0499454513, -0.0650885254, -0.079733558, -0.0866106227, -0.3678120971, -0.1821783483, 0.1232520416, 0.1614996195, 0.1791385263, 0.3282144666, -0.2257362604, 0.3017470837, -0.0212726016, -0.0919406712, -0.1466500461, 0.1026794463, -0.4289889634, 0.2630153, 0.3088880777, -0.2318423092, 0.338822186, 0.3215658367, 0.3396802545, 0.0668377727, 0.0925776586, -0.2689786553, 0.1435695142, -0.1173265949, -0.0588500015, -0.1988248974, 0.1535757184, 0.2831667662, -0.1306263655, 0.1588045806, -0.2481676787, -0.2222670615, 0.204749018, 0.0787289664, -0.2645998597, -0.0504629984, -0.4324561357, 0.1234538108, 0.2307009548, -0.0401562862, -0.1669590324, -0.2125144154, -0.5594503284, -0.1909613758, 0.2443028241, 0.1580369174, -0.6430366635, 0.0087555498, -0.3277498484, 0.3320313692, -0.0049079126, 0.0230635311, -0.1867526472, 0.5240607858, -0.1446581036, 0.0781478956, 0.1206862926, -0.3428072035, -0.3460655212, -0.3002777696, 0.2792724967, -0.0698439553, -0.0094366511, -0.0923496559, 0.1101371124, -0.0958160609, 0.2726923525, -0.266500324, 0.2159829438, 0.0485861301, -0.1672809571, -0.1360289603, -0.0962840691, -0.048896689, 0.0996152312, -0.0844486505, -0.0817542821, 0.231912002, -0.2356775254, -0.2796456814, -0.0172304343, 0.1953893602, 0.1852337569, -0.3643394113, 0.2012472898, -0.0331852622, -0.0130387545, 0.2165408134, -0.0341510735, 0.3013234138, 0.1570086628, -0.0586365201, -0.4141345322, -0.1540225744, -0.1648741215, -0.1367589831, 0.0208741128, 0.0525808334, 0.0798623785, 0.0717613101, -0.2632437944, -0.616768539, -0.2063766718, -0.0747959167, -0.120535776, 0.1412699223, 0.0095125306, -0.1113905832, 0.232466206, 0.4710413814, 0.1814611554, 0.1329208314, -0.1492079794, 0.3699566126, 0.0696662664, -0.0689894408, 0.1675905436, 0.2383379638, -0.021452127, -0.3603652716, 0.1581873596, 0.0130307302, 0.0414631739, -0.0580949746, 0.037346378, 0.4591890872, 0.164927423, 0.2114328444, -0.1492763758, -0.0983437747, 0.0560316108, -0.0891302377, -0.0203595646, -0.4252585173, 0.0593473651, 0.0462409109, 0.1611884832, -0.0780131668, 0.1707075387, -0.1522734314, 0.6477607489, 0.2304108441, 0.3287090659, 0.2288497239, 0.0277481712, -0.1844196916, -0.2881703973, -0.2612561882, 0.6102735996, 0.1198471263, -0.1168619767, 0.3002786636, -0.0058483123, -0.1454412192, 0.1483455449, 0.2962327302, -0.1519877017, -0.0261056777, 0.2358248085, 0.0336828157, -0.0323417783, 0.0176372174, -0.0364516787, 0.2214456648, -0.4314708412, 0.1298577338, -0.3040902615, 0.1482009739, 0.0089214696, -0.4882217646, -0.0718788281, -0.2311621457, 0.0693007931, -0.0674944147, 0.092300266, 0.5150329471, 0.1193876565, 0.7285954952, 0.218092829, -0.0683992878, -0.0394958891, -0.3551559448, -0.0989580005, 0.0130846137, -0.2014216632, -0.1084745303, 0.2435634583, -0.1952929497, -0.1802339405, 0.1880682856, -0.3187429309, 0.0281641912, -0.0842721984, 0.3037751317, 0.5219172835, -0.1194940805, -0.1522707194, 0.1433846205, 0.2648014426, 0.0178209543, 0.2042802572, 0.0669970736, -0.2079894245, 0.0298558697, -0.0894269198, -0.2768169045, 0.3283346295, -0.1472152621, -0.1486425996, 0.016293155, -0.0162278824, -0.0395780317, 0.363763988, 0.2727851868, 0.1033838615, -0.2550579906, -0.1482808739, -0.6655893326, 0.4515167475, -0.29107517, -0.1359455585, 0.0890355259, -0.2381779701, 0.5470317602, 0.0908267498, -0.2057356089, -0.5882264376, 0.0714427307, 0.2592982352, -0.041843202, 0.0959583893, 0.1591811329, 0.0861905813, 0.0080002695, -0.1678431332, -0.1875740737, 0.1888469011, -0.3293328285, 0.1942366362, 0.1593275368, 0.2722424567, 0.1339791864, 0.8989213109, 0.272518158, -0.2730581462, 0.4387992322, -0.066901423, 0.3824103177, -0.394960165, -0.3603945971, -0.1386913061, 0.1852068156, 0.0897338688, 0.2308574617, -0.0889834911, 0.3890800178, -0.0727469921, -0.251427561, -0.0915352926, -0.3395074308, -0.0338159204, -0.0550407618, 0.5190787315, 0.0533271357, 0.3071938455, -0.3714312613, -0.208472833, -0.1186089814, -0.1633492559, 0.0669529513, -0.1605890393, 0.2298695892, 0.3610687554, -0.455414474, 0.4417240918, 0.0863184705, 0.1025703475, 0.068571955, 0.4200751185, -0.124619171, 0.0207339358, 0.2103982568, -0.4105677903, 0.0395163335, 0.0080106491, 0.1348179281, -0.4824218452, 0.1323266178, -0.059830457, 0.0011061046, 0.275439918, 0.6075909138, -0.1760205328, 0.0478162728, 0.3029843271, -0.1043115184, -0.0796755031, -0.2913921475, -0.337318629, -0.1893277913, -0.0420686714, -0.0433570631, 0.0202025566, 0.2483239323, -0.0108469138, 0.2280025035, 0.1602766812, -0.3473772109, 0.134012416, 0.2677553892, 0.1726616323, -0.1401163489, 0.1012679189, 0.1739386916, -0.6338844299, 0.5574400425, 0.2815366685, -0.3978592455, -0.6123654842, -0.0742357299, -0.0695872158, 0.3827636838, 0.1446545273, -0.2513593137, 0.0405857153, -0.2011116296, 0.0878573358, -0.1828407496, 0.3273385167, 0.4565601647, -0.1059442759, -0.1726163328, -0.5024928451, 0.4625491798, 0.0861485973, 0.0143513167, 0.0512880981, 0.2718206048, -0.3436956704, 0.2686667144, 0.0771057084, 0.5343256593, 0.3586905301, 0.0433404483, 0.2417574227, 0.2244489193, 0.2928490043, 0.2980546057, 0.0608592257, -0.1527868658, -0.0186555348, -0.021923149, -0.1315646917, 0.1438339353, 0.1072167978, -0.2754093409, 0.5928207636, -0.2126575261, -0.186146602, 0.0355651565, -0.1029085889, 0.1143586934, -0.2550801039, -0.0573829077, 0.0981799588, 0.01675242, -0.1190955043, -0.0321323313, 0.0632059053, 0.1672271192, -0.2652076781, -0.2593880594, 0.0015917619, 0.0619138703, -0.1357503384, 0.0750086978, 0.020769231, 0.3008499146, 0.1344205588, 0.6360821128, 0.2668305039, -0.1996302456, 0.1343500465, -0.1055971906, 0.054500334, 0.0288877077, 0.0366786532, -0.1749001145, -0.0665102005, -0.2871818244, 0.1855508536, 0.1030965298, -0.2627026439, -0.3800089061, -0.2893664837, 0.060256321, -0.1784205437, 0.1185603291, -0.1847490072, 0.1300378144, -0.2566100955, 0.0846287385, -0.1447119415, 0.0288332999, 0.1587759852, -0.3751530945, -0.2457478642, 0.0785040855, 0.3984597325, -0.1668804884, 0.1826785058, 0.5197715759, -0.1384221017, 0.0691487938, -0.0718601868, 0.1067755818, 0.0612332076, -0.1613894254, 0.3675587475, 0.2718499303, 0.2357187569, 0.1165109426, 0.7036589384, 0.0834742486, -0.2088407129, 0.1764169335, -0.1835191995, 0.121991232, -0.1745785922, 0.0451837927, 0.0757614374, 0.0343474038, 0.1804422438, -0.0717568398, 0.0012459153, -0.1992887557, 0.2200905383, -0.0626443774, -0.1084521338, -0.0790429935, -0.1588968784, 0.246967271, 0.0427797921, -0.0239220317, 0.3228084743, -0.233500272, -0.1334548146, -0.4277101755, 0.131418854, 0.0555310585, -0.1027386934, 0.0309670884, -0.0170362834, -0.2394920439, -0.1901257187, -0.0479830839, 0.4341010153, 0.019722851, 0.4265175164, 0.0594020784, 0.2494657338, 0.1284284741, -0.0400905013, 0.1799040288, 0.3275184631, 0.0259820763, 0.3166768253, -0.0752788261, -0.1005654484, -0.0495299064, 0.0780814067, 0.3835342526, -0.09282922, 0.1734529138, 0.0398062915, 0.012974239, 0.1488583684, 0.3509458899, 0.08707764, -0.4218039811, -0.3142794669, -0.0661009103, 0.0702044442, -0.4328537285, 0.0043685297, 0.017202938, 0.4553100169, 0.094394207, 0.2588644326, 0.1548330039, -0.1870606095, -0.0921340063, -0.0252042226, 0.1609390229, -0.2590943873, 0.2921089828, 0.0573969148, -0.1557393223, 0.1425219178, 0.5906168818, 0.1923964769, 0.2686830759, 0.6254932284, -0.1610742062, 0.5122528672, -0.283960849, -0.1504514813, -0.2018981427, -0.2113232613, 0.1975492537, 0.2666288614, 0.1487217546, 0.1288258433, -0.1132493913, 0.5228832364, -0.0128006134, -0.0169588849, -0.4258067906, -0.0685613081, 0.0128795328, -0.2093350142, -0.3719136417, -0.2758210599, 0.015103763, -0.0126640275, -0.0385219567, 0.0434074514, 0.1811031699, -0.0445865095, -0.059409, -0.084802404, -0.1212275103, 0.1452348381, 0.1957996488, -0.0145118544, 0.1591164023, 0.3156149983, 0.1271769106, 0.1770682633, 0.4339848757, 0.2479564548, 0.2180337757, -0.0452144817, -0.2701669633, -0.0540883988, 0.0116945021, 0.1586029083, 0.1665060222, 0.2535259724, 0.3010895252, 0.274816215, 0.0601845309, -0.1429127753, 0.5313389301, -0.155044809, 0.6881144643, -0.5048004985, 0.5134904981, 0.0508235507, 0.1847127527, 0.2451091707, 0.0496638976, -0.1778467894, 0.1560325027, 0.2319926769, 0.1972458214, -0.1477130651, -0.3273926377, 0.0459556133, -0.1239377931, 0.4184470177, 0.3465734422, -0.1592116803, -0.6492038369, -0.0326097719, -0.6483085155, 0.0520333759, -0.1140405536, 0.2721146345, 0.0522239655, -0.0635032952, -0.1088919044, 0.4449111223, 0.1597811133, -0.2190128118, -0.3276510239, 0.0375856385, -0.444509536, -0.0934091061, -0.2396305948, -0.4727941453, 0.19050093, -0.2825448215, -0.2204069346, -0.1620345712, 0.021777682, -0.0148910666, -0.1854910403, 0.3216649592, 0.3808984756, 0.4474570751, 0.1773629785, 0.3423070908, 0.0542102456, 0.0294938274, -0.0818479359, 0.0103958948, -0.1400310248, -0.0183122139, -0.0683731288, 0.0940098539, -0.3902923763, -0.2314220518, -0.3763726056, 0.139385581, 0.1452990025, -0.2436533123, -0.4069201946, 0.1513777226, 0.0800674185, -0.1785117686, -0.1112255901, 0.1306916773, -0.1412382424, 0.4892011881, -0.1556324214, 0.0389574282, 0.5096232295, -0.3619691133, -0.3078296781, -0.0988689661, 0.2756548524, -0.1014285982, -0.341237396, -0.7951287031, 0.1672400385, 0.5032973886, 0.1859318614, -0.1084080711, 0.1340211332, -0.2913137376, 0.1869580299, 0.0937095135, 0.2266323715, -0.0618694611, -0.2960380614, 0.0938286483, -0.1918130815 ]
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.0475403406, 0.1264258772, 0.1010242552, 0.0786018074, 0.1025783718, -0.112329483, 0.3708123267, 0.0062378836, -0.0859040916, 0.0965000167, 0.0731695071, 0.3271627724, -0.16986157, -0.0304797832, -0.3144401908, -0.2213499248, -0.0507827885, 0.2818050385, 0.0639782399, -0.0864623487, -0.5255196095, 0.1529729217, -0.421020329, -0.1924542934, -0.2500151694, 0.0579412915, -0.0525204204, 0.1060037985, -0.2861156166, -0.5162748098, 0.4373295009, 0.2641014159, -0.0446660072, 0.5172578096, -0.0001244289, -0.0098292669, 0.0957094952, -0.1925255358, 0.0883705392, -0.2875193655, -0.3482613564, 0.1504689306, -0.0692220777, -0.2116605639, -0.0044016829, -0.0118117305, -0.2781254649, -0.1751515269, 0.3080377877, 0.3524615169, 0.0874599963, 0.2012180835, 0.0653075427, -0.3420535326, 0.1931591332, -0.3299066722, -0.1392866671, 0.3961024284, -0.2709242105, 0.0564828552, -0.0680725649, 0.0319635496, 0.0056581008, 0.2695561647, 0.4815785587, 0.0913678184, 0.1096115634, -0.0055416296, 0.0920881033, 0.409194082, -0.0803008303, -0.2674736381, -0.3128249943, 0.0369418189, 0.0314070247, -0.641481936, 0.0790718645, -0.3048741519, -0.1437419355, -0.008726202, -0.1705690324, -0.2099006772, -0.3400880098, 0.2357412726, 0.0795746818, 0.0174180176, -0.104703635, -0.0014911728, 0.5478118062, -0.1566693485, 0.2536182106, -0.2071748674, 0.0818218589, 0.0793575868, -0.1765012741, -0.0984942093, 0.0903500989, 0.0529371053, 0.0696580037, -0.4432584047, 0.2492203861, 0.0312600322, -0.0459453836, 0.0243306942, -0.0558709018, 0.4640092552, 0.0278097112, 0.117042914, 0.0476970896, 0.2404186875, 0.1034623459, 0.070609495, 0.1022756994, -0.2756901383, 0.3526834548, 0.1294338107, -0.0083997082, -0.0959283412, -0.1331212819, -0.0568194836, -0.3427049518, -0.1830417365, 0.1160182431, 0.1568684876, 0.1579161733, 0.325753808, -0.2200784683, 0.3330321312, -0.0409306884, 0.0152141107, -0.0834591761, 0.1074833199, -0.3994548619, 0.1989300549, 0.3128275871, -0.2242771536, 0.3718512952, 0.2852112651, 0.3254769146, 0.172101438, 0.1374449283, -0.2168230116, 0.13654764, -0.1047821566, -0.0621744245, -0.1410235465, 0.164481774, 0.3025273085, -0.1387709081, 0.1754386723, -0.2223199159, -0.1910638958, 0.1717915535, 0.0680137724, -0.2613269389, -0.1120785624, -0.4240531623, 0.0528320074, 0.2243285477, -0.1529643834, -0.1727679074, -0.2411655784, -0.457637161, -0.1593731046, 0.2582949102, 0.1398144662, -0.628048718, 0.0148948766, -0.3402602971, 0.3336731195, 0.0314760208, 0.0371164605, -0.1415842474, 0.4862435758, -0.0757540762, 0.062522389, 0.1722271591, -0.4790653288, -0.4099450707, -0.2716498971, 0.3522039056, -0.0814557821, 0.0634876341, -0.1295196414, 0.1314167529, -0.0889099836, 0.2282760739, -0.2969483733, 0.2183340788, 0.0493386015, -0.2032235563, -0.2176336795, -0.194954142, -0.0615558848, 0.1458947957, -0.1838213056, -0.1019390523, 0.2684340179, -0.2421148419, -0.2514142096, -0.0068490859, 0.1727920771, 0.2394325286, -0.2319908142, 0.2060858905, -0.0433925912, -0.0264949724, 0.2278806269, -0.1440647244, 0.2700974643, 0.0971949995, -0.0890801623, -0.4775102139, -0.1666537374, -0.1690972, -0.1864433885, 0.0201113615, 0.0931876302, 0.1828803569, -0.0067807348, -0.2632794082, -0.6373127699, -0.1353190839, -0.0122357588, -0.180956915, 0.0817296803, -0.0653166547, -0.1508961469, 0.2251845747, 0.4985392988, 0.1647060961, 0.0932754949, -0.1004618034, 0.3833453953, 0.0325173438, -0.0487697087, 0.1908474416, 0.1934937984, -0.0505406521, -0.357932657, 0.155333519, 0.0782534853, 0.0530722365, 0.0505020544, -0.0071352962, 0.3536441326, 0.1620367616, 0.2635677457, -0.0527430512, -0.1715872586, 0.060125187, -0.0859343931, -0.040690437, -0.4568102658, 0.1455318332, 0.0303778797, 0.223042652, -0.103700228, 0.2699276507, -0.0982604101, 0.5954117179, 0.1917044073, 0.2943181098, 0.1994549781, 0.0498730578, -0.1664096862, -0.2326799929, -0.1959203184, 0.5780514479, 0.1562899053, -0.0870842785, 0.2507531345, -0.0461639166, -0.1074401364, 0.1028244197, 0.2760712206, -0.2259878665, 0.022333337, 0.2249091864, 0.074687019, 0.0045518591, 0.0407139324, -0.0784460232, 0.2430474311, -0.4302925467, 0.1707729995, -0.2852002978, 0.1154578477, -0.036521025, -0.59093678, -0.0689787194, -0.2016039938, 0.0984475389, -0.0695414767, 0.0940999761, 0.56272012, 0.1588648409, 0.6345850229, 0.1455807984, -0.1373711973, -0.007717791, -0.3456172347, -0.142493248, -0.0156794321, -0.1727606356, -0.0790929645, 0.2614364624, -0.2617177069, -0.2088696361, 0.2103562802, -0.4115684927, 0.0435675383, -0.0928407535, 0.3466618061, 0.5264644027, -0.134017691, -0.1735847294, 0.1042519659, 0.266713202, -0.0165021643, 0.1917166561, -0.0075535164, -0.2139125168, -0.0276624542, -0.0042329379, -0.3714000583, 0.3031691611, -0.1856302768, -0.1432872862, 0.0525253005, -0.0169997513, -0.1507219821, 0.3766863346, 0.3246973157, 0.0195615664, -0.1791639179, -0.0949537233, -0.6065405011, 0.4005813301, -0.2512532175, -0.1187707558, 0.0993176475, -0.2435001433, 0.54389745, 0.0890605822, -0.1721715927, -0.6287649274, 0.0189841259, 0.1671385169, 0.0131576275, 0.1537050456, 0.1817463636, 0.1393281668, 0.0057118386, -0.2012550384, -0.1687323898, 0.1920138597, -0.4219171107, 0.1910485327, 0.1683252752, 0.298252672, 0.082906194, 0.9984365106, 0.2949473262, -0.2306022048, 0.4176670015, -0.0261319261, 0.3826900423, -0.4130403101, -0.3121483028, -0.164131552, 0.2399425507, 0.1465795785, 0.2420162857, -0.061296355, 0.4389862418, -0.0926676989, -0.1720955372, -0.1663753539, -0.3272830844, -0.0104578538, 0.0201052465, 0.5321360826, 0.0834750086, 0.2833070755, -0.3268344104, -0.2500030696, -0.105801329, -0.1618319154, -0.0333573483, -0.074460648, 0.2539097965, 0.2720236182, -0.4521149993, 0.5129060745, 0.0967228115, 0.1286412328, 0.0144803785, 0.3394743204, -0.0900990292, -0.0172883384, 0.1277981997, -0.4057282507, 0.0249431208, -0.0481578633, 0.1609794199, -0.4846993685, 0.1215542406, -0.0886700973, -0.0307448898, 0.3386253417, 0.5947797894, -0.2976600528, 0.0695523843, 0.3657420576, -0.0862274468, -0.014919078, -0.2503314614, -0.3436201811, -0.1520918161, -0.1540435553, -0.1198302135, -0.004340101, 0.2229530513, 0.0521179773, 0.19286713, 0.1507240236, -0.3360340595, 0.1529763639, 0.3328761458, 0.1639513075, -0.149071604, 0.0832157806, 0.1456441432, -0.6445589662, 0.5847183466, 0.3334153295, -0.5383554101, -0.6002216339, -0.1116996408, -0.0357831158, 0.2527262568, 0.1809000373, -0.2176816314, 0.0380875915, -0.1042931303, 0.1029699445, -0.0830945745, 0.3479174674, 0.4639829993, -0.0874485821, -0.157549113, -0.5294522643, 0.4799643755, 0.1455227286, -0.0228850264, -0.0147878518, 0.3656586409, -0.3212708831, 0.323394984, 0.0711868778, 0.5845330954, 0.3510915637, 0.0616561994, 0.2266032696, 0.1807069629, 0.34897995, 0.3082765639, 0.0471380167, -0.1556599736, 0.0970691592, -0.0514415577, -0.0707826093, 0.1444445252, 0.0954973996, -0.313002944, 0.6615698934, -0.080157578, -0.1753312051, 0.0459350795, -0.1420894563, 0.0693012178, -0.2309722006, -0.0923206732, 0.0870450437, 0.1109675691, -0.0641195327, -0.0626292825, 0.077670455, 0.032369975, -0.3183480799, -0.3015076816, -0.0515706427, -0.0457400456, -0.1608879268, 0.1007054001, -0.1219305173, 0.24818784, 0.0742624998, 0.6118416786, 0.219663322, -0.2011514157, 0.1219270676, -0.0803490505, -0.0363660082, 0.041883111, 0.0539521053, -0.1873031408, -0.08470954, -0.1997783631, 0.1623311192, 0.074946098, -0.2091072202, -0.2846115232, -0.2393483967, 0.2234266102, -0.1772480309, 0.0648166239, -0.2225438356, 0.1136631221, -0.2210836262, 0.076035805, -0.1922016293, 0.0370545872, 0.1392561942, -0.3807073236, -0.2317741066, 0.0547253303, 0.373539865, -0.1737288386, 0.1404580623, 0.5156524777, -0.1712533832, 0.0694395155, -0.0331014991, 0.0473870672, 0.0579795986, -0.223015517, 0.2284888625, 0.2958234847, 0.1286982149, 0.166513741, 0.677121222, 0.1922249198, -0.2087529451, 0.1540136933, -0.2043346614, 0.1462815404, -0.1206802204, 0.0931999907, 0.080723539, 0.0545607321, 0.0711248815, -0.087437883, -0.0012555257, -0.1929501444, 0.1930587441, -0.012172401, -0.0783282667, -0.0290328637, -0.1146664098, 0.2602445781, 0.0055251741, -0.0417125784, 0.2775156498, -0.2428809702, -0.1258265227, -0.3876550794, 0.1283792853, 0.0745543018, -0.1210662648, -0.0004353708, 0.0485572778, -0.1436317861, -0.1750053614, -0.0119160432, 0.3709056973, 0.0360191986, 0.3890734613, 0.0001864186, 0.2678273916, 0.1356676221, -0.0006348584, 0.1431617439, 0.3406482935, 0.0472090766, 0.2938129008, -0.0505762212, -0.1108503416, 0.0956294388, 0.0604146868, 0.508589983, -0.0917665884, 0.137882635, 0.0066508139, 0.0412438475, 0.161800012, 0.3347968161, 0.2061111927, -0.388025254, -0.3362266421, 0.0433192775, 0.0623815618, -0.4144810736, -0.0175599921, -0.0311294906, 0.3678813577, 0.0829413831, 0.2416049689, 0.1816248149, -0.2028315216, -0.0254026987, 0.0475309826, 0.2192850411, -0.2425730228, 0.316814661, 0.1429434866, -0.1601439118, 0.1709579527, 0.5377204418, 0.1467389166, 0.3065434396, 0.5560677052, -0.1749819517, 0.5516893864, -0.3667332232, -0.0827363431, -0.2097263932, -0.22436665, 0.1176194698, 0.1864120364, 0.2387372702, 0.1637251675, -0.0089429971, 0.5908871293, -0.0506694578, 0.0171237737, -0.4279116392, -0.076276429, 0.0743648261, -0.2974324226, -0.3414063454, -0.2598404884, 0.0050448398, -0.018773213, -0.0942325145, 0.0429614037, 0.1572688222, -0.0256232377, -0.0984207019, -0.1696418226, -0.1914115846, 0.1319750249, 0.1011878699, 0.0063189673, 0.2313848436, 0.3034431636, 0.0641276687, 0.1433521509, 0.509114325, 0.3321653306, 0.2770749331, -0.0855097026, -0.2339012772, -0.1135616302, 0.0540757775, 0.098925069, 0.1439590305, 0.2108806372, 0.2965937853, 0.2634875476, 0.0378998406, -0.1765950918, 0.4662086368, -0.215225935, 0.618324101, -0.4149278104, 0.5195438862, -0.0124511421, 0.2282212675, 0.2758103311, 0.1006529778, -0.3554705381, 0.230142042, 0.1334054619, 0.2126859277, -0.120324716, -0.3135842085, 0.034755867, -0.123455599, 0.4652174413, 0.3406947851, -0.0994318575, -0.6055420041, -0.0359828174, -0.6710897684, -0.0210812502, -0.1803075224, 0.2058196068, -0.028907096, -0.1119680181, -0.1211825833, 0.476606518, 0.1699822843, -0.2435960025, -0.2885994613, 0.0912372917, -0.417441994, -0.0837604776, -0.1503178626, -0.4924097657, 0.2141639441, -0.2705976665, -0.2216984481, -0.1842905134, -0.0247656293, 0.0141559048, -0.2034019232, 0.3416084647, 0.2944447398, 0.4395037889, 0.2000733316, 0.4376271069, 0.0445015281, 0.0343796797, -0.0662429854, 0.0148657309, -0.1716548055, 0.0311929099, -0.0418828614, 0.0817328691, -0.4428391755, -0.3534299135, -0.3720619678, 0.1289666146, 0.1001347601, -0.2365226746, -0.3508347869, 0.141426459, 0.1127921492, -0.1639038622, -0.1411025226, 0.1018549129, -0.096940361, 0.4392124414, -0.2368866503, -0.0387352593, 0.5047756433, -0.3888805509, -0.2466631234, -0.1457579732, 0.2097214311, -0.0687886029, -0.3297352493, -0.8442142606, 0.24206613, 0.4301362634, 0.2046898454, -0.1272210181, 0.1177576482, -0.2999601066, 0.1608387679, 0.0565926395, 0.3699767888, -0.004196215, -0.2681497335, 0.086706616, -0.193945244 ]
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.0139923375, 0.0406958759, 0.0927704051, 0.0760170594, 0.1578615159, -0.0484315008, 0.4595751762, 0.0406526029, -0.0702816546, 0.0988220796, 0.0572407544, 0.2482234687, -0.2429826409, -0.0912587345, -0.313735038, -0.2044168264, -0.1234870255, 0.2484202385, 0.1250582933, -0.0682215542, -0.6134798527, 0.1149746403, -0.5267379284, -0.2245673388, -0.3061108291, -0.0073449691, -0.1297493428, 0.0940014496, -0.1675106883, -0.4430606067, 0.3566361964, 0.2593745887, -0.0273149349, 0.5043871999, -0.0001236519, 0.0151399542, 0.0650542602, -0.2212444991, 0.1006061509, -0.2754279673, -0.3003540039, 0.2056783736, -0.1089258045, -0.3084517121, -0.0567070134, -0.0974940136, -0.3291552365, -0.2222906351, 0.2909580767, 0.4247185588, 0.0997442976, 0.16781573, -0.070123978, -0.3143262565, 0.0707336515, -0.3041082323, -0.1328683943, 0.4761046171, -0.382227242, 0.0905166119, -0.0475987568, 0.0151075106, 0.0084915943, 0.2755853236, 0.4619064927, 0.061038509, 0.1685641557, 0.0290287472, 0.1067181677, 0.3407550156, -0.0626364648, -0.1964441091, -0.1896905899, 0.0891402736, 0.1015937552, -0.7081446052, 0.0732919276, -0.2468523085, -0.1026242077, 0.0150159532, -0.1463922709, -0.2310784012, -0.3840642869, 0.2057585418, 0.0964830592, -0.0224365089, -0.0936611965, -0.0103774089, 0.554122448, -0.1331994534, 0.2133923322, -0.2867099345, 0.0761622414, 0.0739564747, -0.2188488692, -0.0774902403, 0.1112974435, -0.0142224338, 0.0371261202, -0.4702759683, 0.2807562947, 0.0519439913, 0.0180909801, 0.0164007321, -0.0885799602, 0.4158305228, 0.0310365353, 0.0649343058, 0.0825007409, 0.2168206275, -0.0032395008, 0.056435205, 0.0582804121, -0.3148385286, 0.4590699971, 0.2077644467, 0.0701418668, -0.0728393421, -0.042989783, -0.1028401405, -0.4027308524, -0.1958096772, 0.1490713209, 0.1795997322, 0.1914664209, 0.312992543, -0.1987798512, 0.2753798664, -0.0125332586, -0.0601519831, -0.1233487055, 0.1453830004, -0.3849170208, 0.2618608177, 0.2926680744, -0.2601506114, 0.3255075514, 0.3089480102, 0.3424106836, -0.0041430579, 0.0734395087, -0.2821101248, 0.1013381481, -0.185738802, -0.0533384643, -0.2254091948, 0.1736965626, 0.298281908, -0.149862811, 0.1796701401, -0.2692433298, -0.2601079643, 0.2153955102, 0.0630153194, -0.2491663098, -0.0688861012, -0.4689851999, 0.1305701882, 0.2372387499, 0.0045831027, -0.168192938, -0.1690101773, -0.5841552019, -0.1867305338, 0.2247249633, 0.1487062871, -0.6226085424, 0.0103870295, -0.2680072784, 0.3499619067, 0.0292986594, 0.0206667595, -0.1841615289, 0.5567415357, -0.1364113092, 0.0483742133, 0.1785371751, -0.4073665142, -0.3432230949, -0.3021989763, 0.3096630275, -0.1078899652, 0.0489362814, -0.1057821214, 0.1185816079, -0.0633808151, 0.280225575, -0.2763058543, 0.2693378329, 0.0497647077, -0.1741133779, -0.1504567564, -0.103349559, -0.0555002242, 0.107278049, -0.0930511951, -0.0682107359, 0.2482919246, -0.243418768, -0.2698498964, -0.0465709679, 0.2116322517, 0.1940634698, -0.3016174734, 0.1966772825, 0.0066731982, -0.0459151156, 0.2049425691, -0.0856313705, 0.3094468117, 0.1192714721, -0.0633345544, -0.4761707783, -0.1659834236, -0.186174348, -0.1153101325, 0.0121975318, 0.0760250017, 0.1235741377, 0.0723397955, -0.2552818358, -0.6563643217, -0.2443367839, -0.0664543882, -0.114655748, 0.1561335474, -0.005522497, -0.1433349252, 0.2601358593, 0.4600879848, 0.2633831501, 0.0992788002, -0.1747127622, 0.3526403308, 0.0372514911, -0.0551031642, 0.1486089528, 0.2489783764, -0.025441885, -0.4127580822, 0.1762646884, 0.0228237566, 0.0518608503, -0.0410667211, 0.1139833629, 0.4497629106, 0.1684156209, 0.2445275337, -0.1405309141, -0.1373332739, 0.0315352567, -0.0921099856, 0.0284692589, -0.4044121802, 0.1003224477, 0.0690219924, 0.1901563108, -0.059213385, 0.2248274535, -0.1967794746, 0.7020142078, 0.2295794636, 0.3146530092, 0.2003008723, 0.0612428747, -0.1737087965, -0.3064576983, -0.275839597, 0.5699104071, 0.1226788089, -0.1319178343, 0.3084485829, 0.0509159341, -0.1044948325, 0.1528823227, 0.2951426208, -0.1105297506, 0.0119594391, 0.185352698, 0.0484520085, 0.0022555084, -0.0102939242, -0.0005141904, 0.2762990296, -0.4457086921, 0.1012325734, -0.28930825, 0.116095379, 0.0153841702, -0.4470410943, -0.0500863902, -0.21758838, 0.0222832114, -0.1053766459, 0.1690022796, 0.5220663548, 0.1414782554, 0.7223021388, 0.226603508, -0.1214422882, -0.0468003899, -0.3608559072, -0.0696483478, -0.0147932554, -0.1647162586, -0.0889836326, 0.2091377825, -0.2166953236, -0.1947316229, 0.2374857813, -0.3260770142, 0.033106368, -0.0415857695, 0.2737573981, 0.4932179153, -0.1144725382, -0.1439745426, 0.1149253845, 0.268317908, -0.0197641626, 0.2143015712, 0.0747959539, -0.2519963086, 0.0253388863, -0.0508961156, -0.3107785285, 0.3045137227, -0.1827805489, -0.1988591254, 0.0107531724, 0.0226687919, -0.0432985537, 0.3582718074, 0.3304137588, 0.1229669228, -0.2094842792, -0.1147250682, -0.6629090309, 0.4382676184, -0.2981933057, -0.113023378, 0.1229121536, -0.2544561625, 0.5852689743, 0.0390289053, -0.203691572, -0.6184419394, 0.0393269137, 0.2566469908, -0.0809666514, 0.0743936747, 0.0919255838, 0.077996552, 0.0086052604, -0.1452542245, -0.2045078129, 0.2225304991, -0.3108863235, 0.1650230885, 0.2436053753, 0.3170932233, 0.1539705098, 0.910338521, 0.2706151605, -0.2894462049, 0.4798105061, -0.0593985021, 0.3143593967, -0.355412662, -0.369122237, -0.1672534049, 0.2391474247, 0.1340109408, 0.2440322936, -0.1102439985, 0.4330883622, -0.0725062639, -0.3233256638, -0.1608930081, -0.3306832612, -0.0512795523, -0.0570973605, 0.5392923951, -0.0012504895, 0.2285223752, -0.3670796156, -0.201456368, -0.0900195837, -0.1214063987, 0.0307160001, -0.1189364567, 0.2083636969, 0.4051840305, -0.4139279425, 0.4988669753, 0.0669775307, 0.1079294905, 0.0214999989, 0.4737033844, -0.0893370584, 0.0336134434, 0.1686111093, -0.3760926723, 0.0861463621, 0.0106591182, 0.1086213812, -0.438044101, 0.1527947634, -0.0400890373, 0.0207402017, 0.3356538117, 0.6264061332, -0.1839398891, 0.0323595665, 0.2444846332, -0.1218849719, -0.1041046157, -0.3233883083, -0.3281167746, -0.2228061855, -0.0893909559, -0.0504234321, 0.0312821865, 0.3153293431, 0.0235157888, 0.1831659675, 0.1488301903, -0.4003753364, 0.161276415, 0.2591055036, 0.1627116352, -0.0894837379, 0.057794489, 0.1674822271, -0.6602143645, 0.515083611, 0.3028130531, -0.422943145, -0.660774827, -0.1209426299, -0.0545761026, 0.4059810638, 0.0957083106, -0.2597756684, 0.124748446, -0.1759488136, 0.0940785483, -0.0982142836, 0.314596355, 0.423168391, -0.1008178815, -0.1693932563, -0.5441929698, 0.4014715552, 0.0640226081, 0.0178907514, 0.034311194, 0.2680587769, -0.3483158946, 0.2627152801, 0.0803081542, 0.5774647593, 0.3167763054, -0.0194891822, 0.235392496, 0.2079371661, 0.3009338379, 0.3254625499, 0.0168542471, -0.1357759535, 0.0258886516, -0.0251998901, -0.1251007318, 0.1769698709, 0.1260727197, -0.3157386482, 0.6133506894, -0.2259569317, -0.2325955927, -0.0105407434, -0.0436597504, 0.149530679, -0.223509565, -0.1270402819, 0.0796343088, -0.0221544672, -0.0884339288, -0.0165915601, 0.0526659749, 0.1608526409, -0.2936871052, -0.2373051643, -0.0411998183, 0.0128374388, -0.1123122498, 0.0519579314, 0.0126611758, 0.3148289621, 0.1824474633, 0.606973052, 0.2493254244, -0.162272796, 0.0922042653, -0.1178654432, -0.0127974665, 0.0018349423, 0.0610977374, -0.2082541138, -0.0953392163, -0.3335287869, 0.2035053968, 0.1401429325, -0.294958204, -0.3115863502, -0.2978541851, 0.1001941487, -0.1511561126, 0.0581653975, -0.1985633075, 0.0589674376, -0.2253693938, 0.0792948604, -0.1527479291, -0.0013033927, 0.1458335072, -0.3612086475, -0.2589077353, 0.0928633809, 0.341571331, -0.1735963523, 0.201415658, 0.5621200204, -0.1293611228, 0.0718693957, -0.0616952814, 0.1020112187, 0.0135448473, -0.1509643793, 0.3395423293, 0.3096990287, 0.2640450001, 0.1182969809, 0.684689641, 0.1009588838, -0.1395334899, 0.1983098686, -0.1839977205, 0.0912182331, -0.2021651715, 0.0457406044, 0.0830531269, 0.020878626, 0.1670601815, -0.0462187231, 0.0603760108, -0.1836853623, 0.2324302793, -0.1228203177, -0.1392484605, -0.0423926488, -0.1706880182, 0.210124895, 0.0735419095, -0.0369078815, 0.296525985, -0.2218365073, -0.1250485629, -0.4624557495, 0.1367423534, 0.0681849718, -0.0925625339, 0.0059866165, -0.0382078253, -0.2127821743, -0.1412304193, -0.0843903422, 0.4205980301, 0.0277718902, 0.466368407, 0.0805814564, 0.2660740912, 0.0592219792, -0.0173182394, 0.137607649, 0.3475303054, 0.0743342564, 0.2801558375, -0.0333190262, -0.1043334603, -0.1088934913, 0.0123446016, 0.4550781548, -0.1400424689, 0.1288692057, 0.0833877251, 0.028017737, 0.1437486261, 0.259742707, 0.0604501478, -0.4357892573, -0.2595278919, -0.056242425, 0.0386526212, -0.4195455313, -0.0001195144, -0.0074304109, 0.3897434473, 0.0865792409, 0.2663346231, 0.1477301866, -0.1425555646, -0.1165729761, -0.0469069555, 0.1650985181, -0.2278247029, 0.3007048666, 0.0460493416, -0.1321205497, 0.1493013948, 0.562695682, 0.2178753912, 0.2259548604, 0.5427418351, -0.2035478652, 0.5215117931, -0.3308876157, -0.1211788803, -0.1570495367, -0.2285767794, 0.1866051704, 0.2842149436, 0.1555815786, 0.1448968798, -0.1207381338, 0.5115415454, 0.040926069, 0.0316462293, -0.3718785048, -0.020367045, 0.0784444362, -0.2142840177, -0.3626483083, -0.2173564881, -0.020614868, -0.0337140933, -0.0153517369, 0.0180400684, 0.1275292188, 0.0207716506, -0.0563840382, -0.0406955816, -0.1477532685, 0.1801727414, 0.2092845887, -0.013768388, 0.177089259, 0.3263333738, 0.1509557962, 0.1939722747, 0.4427269995, 0.2295704335, 0.2412534058, -0.0601648204, -0.2420246899, -0.0385428369, 0.0249767993, 0.165706113, 0.1447428614, 0.2192073166, 0.3229822814, 0.2372629195, 0.0401303582, -0.1470801234, 0.5082958341, -0.1372559369, 0.6505018473, -0.4317146838, 0.5439694524, 0.0632282123, 0.1906373501, 0.2060280442, 0.1321188509, -0.2425416857, 0.138061747, 0.2112996429, 0.2143060863, -0.1341810673, -0.3158296645, 0.0322322771, -0.1516744345, 0.4194205701, 0.3295185864, -0.0575855263, -0.6801502705, -0.0239644405, -0.6489643455, 0.0207916945, -0.0896082297, 0.1807383299, 0.0731624439, -0.0933545977, -0.1565406919, 0.4147490263, 0.1558230519, -0.2584226429, -0.2880346477, 0.0568970107, -0.4772020578, -0.0626389086, -0.2028371543, -0.4374268055, 0.1991523504, -0.2851336598, -0.2248175144, -0.1306182742, -0.0007865375, -0.0512961484, -0.1994532794, 0.3091572523, 0.4073771834, 0.4424704909, 0.1255678982, 0.3649844527, 0.0341825932, 0.054356683, -0.0113635436, 0.016851807, -0.1058608741, -0.0111445049, -0.0192589946, 0.0463858955, -0.41782552, -0.2572527826, -0.3420441151, 0.1045595556, 0.0824925452, -0.3039463162, -0.3829141259, 0.1456277519, 0.0989881381, -0.17602925, -0.0864816755, 0.1349319816, -0.12080051, 0.4523110986, -0.2053820491, 0.0930544138, 0.5157272816, -0.3611710668, -0.3002432585, -0.0522411093, 0.3067156076, -0.1005391777, -0.3011501431, -0.7532253265, 0.1969094425, 0.5441914797, 0.1701502502, -0.0642262846, 0.1828491241, -0.269427985, 0.228734985, 0.0970769376, 0.1186893731, -0.083960399, -0.245670259, 0.0267212912, -0.1984725296 ]
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.0653989017, 0.1055710688, 0.1252273917, 0.0791327208, 0.1758201867, -0.1042810902, 0.4214694798, 0.0186610036, -0.0667725429, 0.1184604913, 0.030669257, 0.2369850576, -0.1979216486, 0.0304783043, -0.3029206395, -0.2030735612, -0.1065387353, 0.2290029377, 0.0602316037, -0.0018441741, -0.5456944704, 0.1240423024, -0.4763627648, -0.1773429215, -0.3232957721, 0.0166040026, -0.0931779295, 0.0963592902, -0.1938425153, -0.4644754529, 0.3707921803, 0.2937928736, -0.078343153, 0.4273879528, -0.0001202581, -0.0173141267, 0.0906592011, -0.1919967383, 0.0823990107, -0.3026835024, -0.3079278767, 0.2507736683, -0.07567586, -0.1881366968, -0.0568039194, -0.0254874192, -0.2771306932, -0.2293010056, 0.2610581815, 0.3748824596, 0.1189195216, 0.248761192, -0.0141955093, -0.3966115415, 0.1391547918, -0.2856467664, -0.1170236394, 0.4653153419, -0.4163215756, 0.0323893689, -0.1525929719, 0.0655751526, 0.0691506937, 0.2131878734, 0.4943489432, 0.1090633795, 0.0412163064, 0.0574481152, 0.128471747, 0.3740672767, -0.0500688367, -0.2580926716, -0.268222183, -0.0349042788, 0.1512616575, -0.6960834861, 0.0881269574, -0.29889521, -0.054467231, 0.0102440966, -0.2133375406, -0.1494620442, -0.3620053828, 0.1846594959, 0.0540707782, -0.1190560833, -0.173760727, -0.0061602104, 0.6393912435, -0.1262260228, 0.0312470607, -0.1602531821, -0.0081801293, 0.0703402385, -0.2226917297, -0.1142825186, 0.1105877608, -0.0201597251, 0.0919511765, -0.3600735962, 0.27251333, 0.0309919752, -0.0768299401, 0.0010993144, 0.0304139964, 0.4342125952, 0.0872667283, -0.0564136207, 0.1268500388, 0.2700208724, 0.1153943688, 0.0258652512, 0.0955618098, -0.2423226982, 0.3633948267, 0.1154834554, 0.0006461537, -0.1070114598, -0.1145094112, -0.048915837, -0.2870643437, -0.1943377703, 0.1714108735, 0.2480598241, 0.1765978038, 0.2997086048, -0.2521531582, 0.2725553513, 0.0030375808, -0.0681249425, -0.1418929845, 0.0871895552, -0.3522243202, 0.296947062, 0.3173727989, -0.2396326214, 0.3552743793, 0.2791147232, 0.3951642811, 0.0837466121, 0.0532856397, -0.2689549327, 0.151926443, -0.1623136848, -0.0842927322, -0.2084584087, 0.1395537704, 0.2767302394, -0.1474154145, 0.1042364463, -0.2027215213, -0.2549834847, 0.2148386091, 0.0910432413, -0.2995551527, -0.090089798, -0.4372725189, 0.1694345027, 0.135877192, -0.0942050442, -0.1295929551, -0.1712069958, -0.5282449126, -0.1445283592, 0.3029253781, 0.2183142453, -0.5863316655, -0.0307365209, -0.2681740522, 0.2509889901, -0.0577307343, 0.0461672209, -0.1169252321, 0.4635563195, -0.0958910286, 0.0920361429, 0.0361051001, -0.328422755, -0.3902490139, -0.3276282549, 0.3103570044, -0.0577137992, 0.0274140444, -0.0931737572, 0.0315854028, -0.0997008681, 0.2024670392, -0.2675183713, 0.1949840933, 0.0600164868, -0.1490325183, -0.1651210189, -0.1675138474, -0.0138968099, 0.0807848722, -0.1848623157, -0.0777184665, 0.3040075898, -0.2377137691, -0.2887171507, -0.0250665471, 0.1667807698, 0.1623035222, -0.2954122424, 0.1781115234, -0.0408694409, -0.0651673451, 0.2309503704, -0.0847038999, 0.2836992443, 0.1728592664, -0.0925020501, -0.4605922401, -0.1143951267, -0.162815541, -0.154478386, 0.0337181948, 0.02030682, 0.14307414, 0.1113383994, -0.2873969674, -0.6143474579, -0.2077050805, -0.0551248454, -0.1873969585, 0.0940351859, 0.0287738536, -0.12541233, 0.268602252, 0.5271700025, 0.1975512952, 0.1344728917, -0.1280669421, 0.4088065922, 0.0464212857, -0.0431451909, 0.1315711588, 0.2197875232, 0.0151623199, -0.344604522, 0.082456328, 0.0367511846, 0.0169553235, 0.0046333647, -0.0471121408, 0.4674700201, 0.0854474679, 0.2155938745, -0.0656199232, -0.1301859468, 0.0143376337, -0.0257110968, -0.0032303354, -0.446957469, 0.1062190533, -0.0156323612, 0.1746185869, -0.1073336974, 0.1675825417, -0.1494368613, 0.5737679005, 0.1685098112, 0.3206824362, 0.2710585296, 0.0261101108, -0.2036245465, -0.2102163285, -0.3017739654, 0.5065487027, 0.1265647858, -0.1132988557, 0.298645854, 0.008594987, -0.1254892498, 0.1335161477, 0.2480135709, -0.1131372899, -0.0160018075, 0.215700984, 0.0475164652, -0.0509589016, 0.0090919835, -0.1127002686, 0.2533240318, -0.4297866523, 0.1104355827, -0.3132548034, 0.0675636381, -0.0020467148, -0.4873188436, -0.1534597874, -0.2266824692, 0.110982351, -0.0218973719, 0.0506070815, 0.4909878373, 0.1721702069, 0.6954312921, 0.1758469045, -0.0201315694, -0.0392876342, -0.4039441645, -0.0806414858, 0.0235445183, -0.1637842357, -0.1326149851, 0.293667078, -0.2023092508, -0.208441332, 0.1652980447, -0.3238095939, 0.0610867701, -0.0988680944, 0.3026756644, 0.5101533532, -0.1756212413, -0.248159796, 0.1170612201, 0.274900794, -0.0380745977, 0.2095594108, 0.0698154196, -0.2160652578, 0.0669874847, -0.0378152728, -0.2673088312, 0.3557491302, -0.1256710589, 0.0374211073, 0.0129873995, 0.0083141206, 0.0341929011, 0.3668736815, 0.3727360964, 0.0499800518, -0.166234225, -0.1761745811, -0.6425842643, 0.3792099953, -0.3096800745, -0.171401754, 0.0285002645, -0.1941157132, 0.4604351819, 0.0138922902, -0.1628638953, -0.6429675221, 0.0338855386, 0.220170185, -0.0202885047, 0.1086328402, 0.1279479861, 0.0701922998, -0.0310324878, -0.1362999827, -0.1708540916, 0.2175342292, -0.4094263613, 0.1471412927, 0.1625184566, 0.2354808748, 0.1228955686, 0.8513761163, 0.2858026326, -0.1723718643, 0.4137635231, -0.0692915022, 0.4069245458, -0.4315742552, -0.3084431291, -0.0779514909, 0.1519484371, 0.1701080203, 0.2565907538, -0.072066918, 0.4978998303, -0.0773520544, -0.2730081677, -0.0725355521, -0.3479659855, -0.0067148139, 0.0119996713, 0.4621518552, 0.0531113483, 0.3101489544, -0.3184792697, -0.2585996389, -0.0800904632, -0.1923871189, 0.0593600124, -0.1621023118, 0.2538947165, 0.3043077886, -0.537689507, 0.4907962978, 0.1324538738, 0.0841786936, 0.0115160411, 0.3476767838, -0.1114817932, -0.0016952889, 0.1612252742, -0.3205762208, 0.0519812405, 0.0078488225, 0.0893842056, -0.4751473665, 0.1958336979, -0.0915481746, -0.0450602993, 0.284635365, 0.614407897, -0.2590410411, 0.0209019911, 0.3384503126, -0.0882211328, -0.0520394221, -0.2890388966, -0.3144124746, -0.1584338844, -0.085742265, -0.0695385635, 0.0334754139, 0.259465307, 0.0098923864, 0.2843876481, 0.1427079886, -0.3517611325, 0.187532708, 0.3193560541, 0.191038847, -0.0949843824, 0.0976453871, 0.2399769425, -0.6102175117, 0.5049681067, 0.3000902534, -0.4140458107, -0.608289063, -0.0720817298, -0.0237804931, 0.3444720507, 0.1610895991, -0.2345910221, 0.0968233794, -0.1430869848, 0.1310021132, -0.240666911, 0.3252991438, 0.4248117507, -0.1367213726, -0.1481280774, -0.4227298796, 0.5183259845, 0.1018854007, 0.0071887067, -0.0038974672, 0.3827878237, -0.318210125, 0.279196322, 0.0846855566, 0.4901054204, 0.2753661573, 0.0245344192, 0.2900431454, 0.1830846369, 0.3743006587, 0.3055670857, 0.0335655697, -0.1801934689, -0.0225128494, 0.0362516306, -0.0294742901, 0.1254560649, 0.0717084929, -0.2818483114, 0.6017315388, -0.1307421178, -0.1639168859, -0.0053629372, -0.065017052, 0.0758871883, -0.3066628277, -0.1337853074, 0.1088935658, 0.0349915475, -0.113053523, -0.003209593, 0.1066665202, 0.1519922614, -0.2874349356, -0.2890520692, -0.0212418959, 0.070057936, -0.1893225461, 0.1021172404, -0.0341686085, 0.305436492, 0.1074923724, 0.6377581954, 0.2460401505, -0.2074766308, 0.1262592673, -0.1689180583, 0.033898972, 0.0147839952, 0.0716975406, -0.1978403181, -0.0963172019, -0.2559718192, 0.1424473077, 0.1260789782, -0.1926222146, -0.312489748, -0.3262650371, 0.0765810758, -0.1488460153, 0.1370484233, -0.2489933074, 0.1425113976, -0.2460163981, 0.0948802605, -0.148251608, 0.0463662408, 0.0553114004, -0.3352033794, -0.208728537, 0.058032658, 0.425016582, -0.2554202676, 0.146924451, 0.498308748, -0.08734373, 0.0471858606, -0.0636234656, 0.1186026633, 0.1683364809, -0.2462572157, 0.299798727, 0.3104070425, 0.1527511179, 0.0915718228, 0.7438471913, 0.1266753227, -0.2194365412, 0.2081771493, -0.171068877, 0.0963264331, -0.1248529106, 0.1101641804, 0.0800839067, 0.0851044878, 0.1306932271, -0.112517722, 0.0472442284, -0.2121936232, 0.2070272118, -0.1134936512, -0.1501971483, -0.0465594754, -0.1763797402, 0.2995875776, 0.0289715882, -0.0031543432, 0.3445774913, -0.2078130543, -0.1346687824, -0.439357549, 0.1065452397, 0.0074746222, -0.094700031, -0.009529436, 0.0501481667, -0.2235759199, -0.2341235578, -0.0193778183, 0.413385421, 0.0612048358, 0.4334384799, 0.026465334, 0.2277651876, 0.1173272878, -0.047347784, 0.2234375328, 0.3463306129, -0.0125477416, 0.2922858894, -0.1184533089, -0.114523232, 0.0115733771, 0.1152789518, 0.4361110032, -0.1534218341, 0.1395266354, 0.0549853817, -0.0531128049, 0.1615714431, 0.3761325479, 0.0671466812, -0.3552521169, -0.3730354011, -0.0390148461, 0.0675004125, -0.4121430516, 0.014147263, -0.0619881749, 0.3827050924, 0.0940740705, 0.2849514186, 0.1263643354, -0.152402088, -0.0832100883, -0.0063981395, 0.1320808381, -0.1703869402, 0.2363164574, 0.0356840529, -0.1092457548, 0.1019776687, 0.5675435662, 0.1736684591, 0.3719375432, 0.4825728238, -0.2171817273, 0.4797876477, -0.4271301329, -0.0366537534, -0.1633065045, -0.2361467928, 0.1992263645, 0.2894113958, 0.1696047038, 0.0940024108, -0.1354034245, 0.6976354122, -0.0564676672, -0.041311115, -0.3993127048, -0.0470609851, 0.0599519312, -0.2644566596, -0.3217133284, -0.276230067, -0.0094794808, -0.000055035, -0.0773516223, 0.0037152134, 0.1688002348, -0.0301579125, -0.0176367704, -0.1436502784, -0.1962631941, 0.1265270412, 0.2020414323, 0.0204990096, 0.1888605356, 0.3693975508, 0.1587787122, 0.2183807641, 0.4889178872, 0.2557508945, 0.1460048556, -0.0246485341, -0.1974699795, -0.1207057685, 0.0464286841, 0.1615692526, 0.1537140906, 0.2954895794, 0.2286319584, 0.3217763007, 0.0555732697, -0.140909031, 0.4595599771, -0.1289283037, 0.6855305433, -0.49200809, 0.4960344136, 0.0206033345, 0.2143353075, 0.2529295981, 0.0248403512, -0.2106890827, 0.2555238008, 0.1016035601, 0.2023914605, -0.1319219023, -0.2983577549, 0.0570166521, -0.0494174287, 0.4805617332, 0.2433167994, -0.1569369435, -0.6128855944, -0.0559755489, -0.7017795444, 0.0165388882, -0.0322361216, 0.2955348194, 0.0617187023, -0.1260980517, -0.1343749464, 0.4902205765, 0.138662532, -0.2364029437, -0.3039497435, 0.0087614777, -0.3811794817, -0.0606720336, -0.1999619007, -0.4957593381, 0.1941894591, -0.2205462158, -0.1901515275, -0.1369559616, -0.0039148969, -0.0027139427, -0.1556369662, 0.1915476173, 0.3085133731, 0.4104910195, 0.1946674734, 0.3023008108, 0.0211829785, 0.0073804348, -0.0617017969, -0.0012755449, -0.1275004447, -0.0074599246, -0.0871499479, 0.0897250846, -0.3511870801, -0.2627789378, -0.3653206229, 0.1832741648, 0.1086653993, -0.2378019691, -0.4509291649, 0.1449365169, 0.1193902418, -0.2026018202, -0.1660805196, 0.13672629, -0.1208843365, 0.5144053102, -0.1965548694, 0.021710597, 0.5324780941, -0.4166593552, -0.227554366, -0.0542859025, 0.2549732625, -0.0397064611, -0.3813864589, -0.8497498035, 0.2573445737, 0.4507561326, 0.2204395384, -0.1265245229, 0.085190475, -0.3977725506, 0.1467457116, 0.0594752841, 0.3238847852, 0.0100372871, -0.2801129222, 0.1192415878, -0.1822181046 ]
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.3369054496, -0.3196842968, -0.1686350852, -0.0785501525, -0.1322285384, 0.0334653482, 0.0507948473, -0.0447822921, 0.238920331, 0.2358292937, 0.254430145, 0.5422919393, -0.157851994, 0.3227919042, 0.0088176606, -0.4016122818, 0.0359967761, -0.0369439833, -0.0063833212, 0.2683169842, -0.0824367702, 0.0330715552, -0.3741095066, 0.042058602, -0.0999500826, -0.1551183313, -0.1367377192, -0.0298172254, -0.0436847359, -0.295848906, -0.2203303725, 0.3011388481, 0.0312906094, 0.3520685136, -0.0001225286, 0.0020047405, 0.2021494806, 0.1364620328, 0.2638631165, -0.2030465752, -0.2922289968, -0.1116601974, 0.2072141618, -0.1412633359, -0.0572503284, 0.1294001639, 0.2296902686, -0.4878688455, 0.0606239811, -0.1914958656, 0.0673571825, 0.3336285353, 0.0711796656, 0.2239814103, -0.522539258, 0.167617172, -0.0575986318, -0.101825662, 0.6528368592, -0.3768672943, -0.1162376925, -0.0478889756, 0.050526116, 0.148144722, 0.0178733356, -0.2197744399, 0.5481133461, -0.6776027083, -0.1363919675, 0.1981159002, -0.0967675149, 0.0911057591, -0.2966387272, -0.0853983685, -0.3229728341, -0.2332478017, -0.1775845736, -0.000121379, 0.0031388849, -0.1174952164, -0.566278398, -0.4102547765, 0.0705285892, 0.2957289815, 0.1834558547, 0.621111095, 0.2272427231, 0.2678334415, 0.3702203929, 0.132614702, 0.0390930958, 0.0203599408, 0.3610495329, 0.250099659, -0.3338702321, 0.0637048259, 0.0589843169, -0.1692201644, -0.2133905143, -0.2581842244, 0.2163921595, 0.2993527055, -0.2664532959, 0.4457846284, 0.1577317119, -0.1810768396, 0.0875635222, 0.361533761, 0.1224436015, -0.2412856966, -0.0981193036, 0.0740633011, -0.0364697054, -0.4829168022, -0.4006953537, 0.3822459579, -0.3058330119, 0.385247767, 0.3548589051, -0.3782687187, -0.1410488486, -0.2402353436, 0.3023349941, -0.2119238228, 0.4422477484, 0.3982141912, 0.0631740615, 0.2084145248, -0.1993978024, -0.2483130097, 0.0638077557, -0.0258910228, -0.1408360451, 0.1586968899, -0.0259822179, 0.015085252, 0.0209519621, -0.1133031175, 0.1074200571, -0.0729568377, 0.4114917815, 0.0906188861, 0.0863065943, 0.3343427181, 0.0364170372, -0.0127970017, 0.0399882197, 0.6484880447, -0.1837860197, 0.2720237672, -0.459177345, -0.3027994037, 0.2662401795, -0.0613082349, 0.2564393878, 0.0969896913, -0.3469531536, 0.1863732934, 0.3003368974, -0.2851764858, 0.2693241835, -0.1820215881, -0.624484241, -0.1700148582, 0.3108029664, 0.0200386513, 0.1818707138, -0.0237725098, -0.1502298862, -0.065791592, 0.2736565173, 0.0446195155, -0.295527339, 0.15071477, 0.1166545972, 0.3167731464, 0.0656706691, -0.3526520133, 0.4236590266, 0.3865173459, -0.3203392625, 0.0235284828, -0.204775542, 0.0141238505, -0.1535023898, 0.1601707041, -0.0434376821, 0.2964769304, -0.0211055391, 0.0839056075, -0.115380317, -0.2237193286, 0.1503989995, 0.0188090764, 0.2296514958, 0.1636523455, -0.0292276721, -0.4754527807, 0.3516525328, -0.0050844657, 0.3887658715, 0.0353225507, -0.2026082724, 0.1578771919, -0.1569876969, -0.2968686223, 0.274240911, 0.2267601937, -0.3845553398, -0.2667267323, 0.1944012493, -0.028135458, 0.6583571434, -0.0203726385, 0.0132352151, -0.0133067416, 0.0218380708, -0.1558616757, -0.1386220604, -0.2770650387, -0.1314103007, 0.1661049575, 0.165321067, -0.0123664932, -0.1140141413, 0.2490858585, 0.0076227188, 0.104249306, -0.37743783, 0.01149326, 0.0409494564, -0.093470417, 0.0581272319, 0.2879987061, 0.1392397434, 0.3358105719, 0.2157696933, 0.3359017074, 0.3863935769, -0.1082799137, -0.0061823088, -0.1044883132, -0.1360841393, -0.2529004514, 0.4667631984, 0.2141508013, -0.042163901, 0.263661027, 0.0598159507, 0.1984928697, -0.0791039392, 0.1946502477, -0.126008451, 0.1594272405, 0.1235278621, 0.0014312323, -0.1964189708, -0.1850949675, -0.2523139417, -0.0365093723, -0.191624552, 0.0773272291, -0.1236758083, -0.1794439107, 0.0905998945, 0.1549217999, 0.2646667361, -0.2878611684, 0.2626061141, -0.1082956865, 0.3512684703, 0.0805041641, 0.060042236, -0.055646956, -0.0219645053, 0.1413631141, 0.4599146545, -0.1237832755, 0.0615022667, -0.0394492075, 0.1551723778, -0.1666534543, 0.3832468987, -0.1452601552, -0.0825025886, 0.3208310306, -0.2554080486, 0.011731443, 0.0800675973, -0.4001927376, 0.0283890143, 0.0566957742, 0.0959388539, 0.2010513544, -0.1413588375, 0.2351785302, 0.2716403902, 0.1544081271, -0.1668894589, -0.297288537, 0.1566224098, -0.0717364103, 0.3108201623, -0.0209001731, 0.0974183455, 0.0560164787, -0.1543949097, 0.3162543476, -0.1721546948, -0.1625141054, -0.1071024239, -0.1085600853, 0.1113180667, -0.127081275, -0.0457956754, -0.1687178612, 0.0315192416, -0.1978414655, 0.1965869665, -0.2807554007, -0.077525124, -0.1319007725, 0.0424579382, -0.3148796558, -0.2894261777, -0.0161798242, -0.3274707198, -0.2385781854, 0.5306857824, -0.1135024503, 0.2678407431, -0.3076746464, 0.0607951805, -0.2777212858, -0.2799749374, -0.2050078809, 0.3062931299, -0.4266135991, 0.077946119, -0.2861331999, 0.0420378111, 0.0888575315, 0.1036921367, 0.3386371434, 0.4227597415, 0.1103587523, 0.2011971474, 0.1311053336, 0.1691945791, 0.0740517154, 0.0106886812, 0.4992429316, 0.004892766, 0.1549524218, 0.0984937102, 0.1453434378, 0.2018729001, 0.3149352074, -0.0234792139, 0.3149957061, -0.0544725582, 0.0026228081, 0.6437372565, 0.1863559633, -0.0420932099, 0.1919637769, 0.0683293194, -0.3384122252, 0.1102451161, -0.1958668381, -0.0822982192, -0.2924410701, -0.2481646836, 0.0276503973, -0.0030349081, -0.499877423, -0.292127043, 0.056371849, -0.3272605538, 0.0083569484, -0.1388544142, -0.2200657278, 0.7672844529, -0.2289755195, -0.3485981524, -0.2488139719, 0.3278869689, -0.2051017284, 0.1145919785, 0.4850685596, -0.121566765, -0.2425574064, -0.2685332894, -0.1603893936, 0.1594322771, 0.2481432706, 0.230303973, -0.1444821805, 0.0974029154, 0.2635605633, -0.0855029821, 0.345456183, -0.4574621618, -0.2319711149, -0.0245314036, -0.5518500209, 0.1544320583, -0.0578173921, 0.1378307343, 0.4147221446, 0.497122407, 0.0621999316, 0.1970852613, -0.0779509172, -0.2383118272, -0.3341006935, -0.0130306799, -0.2394773811, -0.1139990538, 0.1875663847, 0.0187089685, 0.1372366995, 0.0922418907, 0.044406902, -0.0825209469, -0.0536532626, 0.2551804781, 0.0913650393, -0.1172084734, 0.0785813853, -0.2555149198, -0.1166598722, -0.0385084935, 0.3323031068, -0.2792899907, 0.2440061867, -0.0023079163, -0.2696370184, 0.118604064, 0.0186826028, 0.0575736426, 0.547956109, -0.0063473228, 0.0025869349, 0.2468773872, 0.3662621677, -0.0753516629, -0.4279348254, -0.1515332609, 0.2849559784, 0.1896312684, -0.0807339624, -0.1994791925, 0.2332257479, 0.3173644841, -0.1335044652, 0.559089601, -0.7157695293, -0.1514614224, -0.0580994375, 0.1186356321, 0.4146731198, -0.3008106649, -0.18214643, -0.5093063712, -0.0542032905, 0.0405048393, -0.6150126457, 0.4420185983, -0.009268132, -0.1447691172, -0.101830177, -0.0206127297, 0.504596293, 0.5729452372, -0.0295715947, 0.100184381, 0.3352404833, -0.4507003427, -0.1239357665, 0.094495289, 0.5542975068, -0.1666268259, 0.5189484358, -0.0140088461, 0.1069430485, 0.1352590322, -0.0473030321, -0.1290604174, 0.1321746558, 0.0707652196, -0.2802151442, -0.2274743468, -0.2805257738, 0.0318156816, 0.0266726743, 0.2813254297, 0.4023771286, 0.4176655412, -0.1105029434, -0.0568221584, -0.1543669701, -0.1712692082, 0.2499727905, -0.1161380261, -0.4350856841, -0.1170087755, -0.2085592896, -0.0701495782, -0.3550238013, -0.0110201994, -0.0848321989, -0.5259230733, -0.2172741592, 0.4013303518, 0.1704332232, 0.543936193, 0.0414079912, 0.3589697778, -0.0272844769, 0.0484288074, 0.0243726559, 0.2353882939, -0.3888370395, 0.4202179611, -0.4228858352, -0.1100678146, 0.1594162583, 0.2093491256, 0.0689663365, 0.0010663302, -0.3470280766, 0.4052500725, -0.166787982, -0.0888366178, -0.3233778179, -0.129602313, 0.6013834476, 0.0267299619, 0.3127378523, -0.0706744716, 0.1087550968, -0.1204051003, -0.122247912, 0.3277975023, -0.2691645324, -0.2020102441, -0.1639290154, 0.0102071613, -0.4468431175, 0.0389557518, 0.2557691336, 0.1791649461, 0.3046800196, 0.5270444751, -0.1095569134, 0.0972324386, 0.1379774064, 0.1390129626, 0.2224269956, 0.0652058199, -0.2121951878, 0.0151990904, -0.0929200575, 0.0756125674, -0.0860994682, -0.0377707779, 0.2506554425, 0.1767220199, 0.1925656796, -0.1069152355, 0.390373975, -0.1686284244, -0.2094803452, -0.1731236577, -0.0312539004, 0.0309492536, -0.1018216982, 0.201851666, 0.2333865166, -0.0485740043, -0.3915390968, 0.352850318, 0.1057594121, -0.1072906852, -0.1105401143, 0.1556723863, 0.2883763909, -0.1442368329, -0.085094355, -0.2678102255, 0.2005626112, -0.0508219823, 0.3649410903, 0.1507486403, -0.0474669747, -0.4286775887, 0.3698691726, 0.1183610111, 0.0610655732, 0.3107891679, -0.0347311907, 0.0024827262, -0.0003458773, -0.0497612432, 0.3888869584, 0.221327588, 0.2612663805, 0.2090933919, 0.4744569659, 0.1417669803, -0.1024059355, 0.1506479383, -0.230234459, -0.3846207261, 0.1483997107, -0.0840586796, 0.1118761152, 0.0653530583, 0.1206891984, 0.1489320844, -0.1694587022, -0.0262508858, 0.0463696718, 0.614007175, 0.4706125855, -0.0234556422, 0.2348859161, -0.2129798234, -0.3037588596, -0.0854920521, 0.0686822906, 0.2077355832, -0.1716062129, 0.2382113338, -0.2456058562, -0.375975877, -0.0106183849, 0.4144325554, -0.1419715881, -0.188161701, -0.3213081956, 0.0009073126, -0.0316229314, -0.1063455641, 0.1898762435, 0.151759088, 1.0623277426, 0.0633840561, 0.0991478339, -0.0641375482, 0.0515117347, -0.0943849906, 0.2204997391, -0.0740342662, 0.2023748159, -0.2133173496, -0.3748238683, -0.1249231398, 0.1434618384, 0.0070965234, 0.1084009409, -0.1320801228, 0.1315677464, -0.2157432884, 0.1091263592, 0.0746297911, 0.2510554492, 0.1244945303, -0.0163332913, -0.0062668934, -0.0468385033, -0.0448911488, 0.2159853429, 0.0012290709, 0.567650795, -0.046030432, 0.2820243239, 0.0842243806, 0.0618719757, 0.1470470577, 0.0061162305, -0.2501155734, 0.1226874068, 0.211470902, -0.4649178088, -0.2161208242, -0.0205479078, -0.0445127711, -0.1639261395, 0.2474397272, 0.3628327549, 0.1625465751, -0.2349158823, -0.2758198977, -0.1981354505, 0.0529947318, -0.3341675699, 0.1772064716, -0.1068425179, 0.0287184846, 0.0604202449, 0.1646990925, 0.2909303606, -0.6244516373, -0.010123698, 0.6283125877, -0.0689731464, 0.3195915818, -0.1501969248, 0.0043784091, 0.2291319966, -0.0275656283, 0.2200337946, 0.1052829549, -0.1801230311, -0.0374856479, -0.0583972968, 0.0808417648, -0.0990722105, 0.1811192036, 0.0638209134, 0.2293648422, -0.1535031348, 0.2600838244, -0.1809125692, 0.0871977061, -0.1413408667, 0.0614009835, -0.1681455225, 0.2067476958, -0.5416622758, -0.2201776057, -0.1180702522, -0.2511604428, -0.2717538476, -0.2261433601, -0.1266875714, -0.1736240834, -0.1696579605, 0.0124383708, 0.2903867066, 0.3010909855, 0.150791958, -0.2055590898, -0.2148835212, 0.0619839057, -0.112036854, -0.4172699451, 0.0203559473, -0.5614668727, -0.122895509, 0.063672699, 0.2879080176, -0.2366264164, -0.4211458862, 0.2118505836, 0.0256062802, -0.0919336751, 0.2861262262, -0.3022789359, -0.232625097, -0.2141353935, 0.0205482133, 0.0349207744, 0.1182154268, -0.1045978814, -0.2701589167 ]
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.1548725963, -0.2376585603, -0.0935402066, 0.2473086715, 0.3116976619, 0.0938447416, 0.202871412, 0.0549307056, 0.4361796081, -0.1159730181, 0.0571259595, -0.0696767271, 0.4684702754, -0.0135198068, 0.0379944183, -0.0326448567, -0.1300400794, -0.1004903615, 0.0436399393, -0.1173637733, -0.067843169, 0.0512397066, 0.098734051, -0.1973600835, -0.5170299411, -0.036662247, 0.0695868954, 0.0257128496, 0.1279809028, -0.3292091787, 0.4963111877, 0.1519473195, 0.3188911974, 0.3908818662, -0.0001227586, 0.0331632607, 0.0301485453, -0.0086722393, -0.2577647269, -0.2175232768, -0.0583400726, -0.0221797749, 0.2983061969, -0.3426146507, -0.3325791955, 0.1016701907, 0.1009473354, -0.5310963988, 0.5326622128, 0.0265150554, 0.0990964547, -0.2245466709, 0.1964671612, -0.1530516297, -0.1416292489, 0.1641682237, 0.002109593, 0.1725653112, 0.1944152415, -0.035139177, 0.2406745702, 0.0909058526, -0.0575651526, 0.2920190394, 0.4881070554, -0.0410384052, 0.1593192965, -0.4436326027, -0.00566216, 0.1268527955, 0.7601927519, -0.1796581, -0.0926001444, -0.1281970739, -0.2547181845, -0.2147122175, -0.0247812942, 0.059849117, -0.293677479, 0.1041670963, -0.0512806401, -0.3261173368, -0.1129009724, 0.3657035232, 0.0524878539, 0.0805806592, 0.2111365646, 0.2992269397, 0.1300239116, 0.0384744033, 0.1402246505, -0.2005084008, 0.1321433187, -0.0326064266, -0.4005510807, 0.0403879806, 0.0198649801, -0.0198085085, 0.0059410227, 0.435616672, -0.0049162046, 0.1558226645, 0.0689678118, 0.0348822623, -0.1209749803, 0.097931385, 0.0121460184, 0.067926079, 0.2295106053, 0.0980924517, -0.3003792763, -0.1996248364, 0.2148041427, -0.0826330408, -0.1759485006, 0.0458416939, 0.271212101, -0.1657319814, -0.0148509368, 0.0250691231, -0.1129282713, -0.0103004277, -0.040802259, 0.3777106702, -0.1183995456, 0.2515929937, 0.3486974835, 0.0073921108, -0.2008041888, -0.1518077403, -0.0998890474, -0.0000954299, -0.1795949638, 0.2472521812, 0.3716268241, -0.0290510952, 0.1782625318, -0.0607330874, 0.1072967574, -0.1576453596, 0.5114759207, -0.2132518888, 0.1165531501, -0.0030916382, 0.1830015779, 0.4008690715, 0.2319139689, 0.0943758413, 0.0228221491, 0.0235883985, -0.2802009881, -0.3750859499, 0.0085784066, 0.1051452756, 0.1237072945, 0.1330552101, 0.03968703, -0.1955208182, 0.3279147148, -0.2095109075, -0.000752794, -0.0024344486, -0.416903913, -0.2892303765, 0.2441188842, 0.5860952139, -0.4188295305, 0.010705797, 0.1581712216, 0.115776673, 0.1240286455, 0.6433212161, -0.3510301709, 0.1319204122, -0.1617868096, -0.1739808321, 0.2686307728, -0.5118985772, -0.3102938831, 0.1303104609, -0.0157407206, 0.174318254, 0.0765926614, 0.2913173437, 0.078338787, 0.068162553, 0.1149009839, 0.4836630821, -0.0171199758, -0.218382448, -0.1767851263, -0.2592070699, 0.3600459099, -0.10000512, 0.1763042063, 0.1300792843, 0.0545265079, 0.199559018, 0.2683361769, -0.1596238464, 0.2831756473, 0.2313870341, 0.173390761, 0.2606772482, 0.0332906395, 0.0171750858, -0.4030639231, 0.3302546442, -0.2461273372, 0.0058931927, -0.2333051264, -0.3232367039, -0.1935281157, -0.2746439576, -0.0030135689, -0.0217539147, 0.0367823355, 0.2466292083, 0.2087598294, 0.1449092776, 0.2628290057, 0.4253353477, -0.2703689039, 0.0457908437, -0.3987373114, 0.3691845238, -0.2255245447, 0.0189246498, -0.202083081, -0.0271258373, 0.3046055138, 0.0082263993, 0.2096116692, 0.0491677225, -0.14071697, 0.3016268909, 0.0209529102, 0.1291456074, 0.3272279203, -0.3400675356, 0.0546226948, 0.3461520672, 0.3550491929, -0.3573243022, -0.1212392747, 0.0814285874, 0.2531200051, 0.1774753034, -0.0738472492, 0.0116526922, 0.1081962213, -0.0070218574, 0.15954943, -0.0215571895, 0.1896749288, 0.4042564034, -0.2426963001, -0.0646576211, -0.209824875, 0.2700272501, 0.056083113, 0.1939550787, 0.0376005806, -0.1223335639, 0.0595592074, -0.2091468871, 0.3500082493, -0.3235580325, -0.0773913637, 0.0955943167, 0.3279130757, 0.1028086767, -0.1100911945, -0.1628507227, -0.0124460375, -0.181611523, 0.2727847993, -0.0513617061, 0.0133195175, -0.0920112953, 0.043361824, -0.0553812087, 0.3955431283, 0.1600079834, -0.3600956202, 0.1393886209, -0.3536380529, -0.4845446646, 0.1353782564, -0.172681272, -0.0969465077, -0.3000204861, -0.1184426397, 0.5529574752, 0.2341262102, 0.2936708033, -0.0186399128, 0.2825277448, 0.2466647327, -0.2299641371, -0.2326806635, -0.3672701418, 0.069064714, 0.0263997186, 0.3404128253, 0.199618876, 0.2153252661, -0.130952239, -0.2550795376, -0.4913636744, -0.0855567157, -0.0909785777, 0.1733046174, 0.1972343028, -0.3326896727, 0.3490032554, -0.0626112297, -0.2103337497, 0.1982863843, -0.0772249177, 0.0963688865, -0.2657541037, -0.2588168681, 0.1132065505, -0.0567033552, -0.346736908, -0.399166733, -0.3085107207, -0.0470423959, 0.1668825448, 0.0726271868, -0.0683816895, 0.178662762, 0.0022527606, 0.1858487576, 0.2069577128, -0.3619477451, -0.3047583103, 0.243356362, -0.1396145076, -0.3152445853, 0.175656721, 0.1172588617, -0.0212442353, 0.4711763263, -0.4773332775, -0.3291169107, -0.0574132353, 0.3427009583, 0.024376018, -0.1468641758, 0.3705313504, -0.3419769406, -0.0292726755, 0.087609075, 0.0092929667, 0.0055176029, -0.3076898158, 0.4178674817, 0.101443246, 0.3604357541, 0.0691399053, 0.945153296, 0.1241176054, -0.2306540459, 0.3185610473, -0.1047408208, 0.2298140228, -0.1036172956, -0.156147033, 0.074423559, -0.3390267789, 0.2327616364, -0.3644366562, -0.1278513968, -0.2709170878, -0.3345793784, 0.1986708045, -0.3212337196, -0.4758191109, -0.1383145005, -0.2197272331, 0.3825995326, 0.368640095, -0.0122796707, -0.2355508506, -0.1893036664, 0.0968702659, 0.1850921065, 0.140893206, 0.1471267492, -0.4159780145, 0.2112641931, -0.3479143083, 0.4394699633, 0.0835310444, 0.1060067415, -0.175696671, 0.059475638, 0.1006443202, -0.1219908446, 0.7283742428, -0.3127953112, 0.1315126568, 0.2071664482, -0.2820922136, -0.4684231281, 0.2966367304, 0.0124672381, 0.117165409, 0.3558493257, -0.0800432414, -0.2030176818, -0.0769135058, -0.3034852147, 0.2625686526, -0.2390353382, 0.1314581782, 0.0752763376, -0.2807821929, -0.6343673468, -0.0619316027, -0.0307715572, 0.2057969868, -0.0782398954, -0.0400365032, -0.292501986, 0.4315605462, 0.0750033259, -0.0184841119, 0.2736265063, 0.0548879355, 0.2037202269, 0.0949676037, 0.1674259156, 0.1388573796, 0.2600414157, 0.2361795008, -0.0487388261, 0.0585300885, 0.1607571095, -0.4420761466, 0.404396534, 0.1165125594, 0.3205904067, 0.1022848934, -0.0798602104, -0.2230347395, 0.1919569224, -0.052936893, 0.2260251343, -0.3468129635, -0.6021742225, 0.073771745, 0.1368920803, -0.1481117457, 0.4638575315, 0.1307068467, -0.1034083962, -0.0100933351, 0.1330153346, 1.1369924545, -0.1097072884, 0.2494179457, 0.0549144223, 0.0543843955, 0.7935968637, -0.3770441115, 0.324208051, -0.2323519289, 0.1488589644, -0.1180851609, -0.1100876927, 0.132455796, -0.1406785548, -0.0485837497, 0.1924431771, 0.1312216222, 0.0881237388, -0.1138619557, 0.3052191138, -0.0495613627, -0.1473944038, 0.2064675689, 0.0588751622, -0.034537293, 0.3890480697, -0.3410149515, 0.2255519629, 0.1073003337, -0.142910406, -0.1898394227, 0.065127492, -0.3222647309, 0.5679986477, -0.4035389721, -0.5870122313, 0.077837579, 0.2357514352, 0.2954042554, 0.0649521649, -0.3694159687, 0.0318312496, -0.3367699981, -0.2194247246, -0.2801854312, -0.1022371426, 0.2282087356, -0.0931408182, -0.4943188429, 0.4344153106, 0.1626360863, -0.3901791275, -0.1335012466, 0.0061759511, -0.3375340402, -0.0612425059, -0.2839342356, 0.2013019472, -0.1708078384, -0.1155109182, 0.0372128263, -0.0539515428, -0.1507026851, 0.0140876696, 0.1188191399, -0.167608127, 0.0437566228, 0.6288121343, 0.3283686638, -0.1268276125, 0.4865684509, 0.3852147758, -0.3451160192, -0.089715302, -0.5433740616, -0.2771344781, -0.4499160647, -0.1004410237, -0.0599111915, 0.2556524873, -0.0710730925, -0.1618795097, 0.111694172, 0.1838757545, 0.2296095788, -0.4139640033, -0.2296735942, 0.1353533119, -0.2252460867, 0.2251092494, 0.3666958809, -0.0668025836, 0.1139816567, 0.1445025951, -0.229346469, 0.3229383528, -0.1981836706, 0.259937048, -0.0411985181, -0.2617836595, -0.025721699, -0.1522384137, -0.1032205448, 0.1068647951, -0.2564248145, -0.1204988435, -0.0193759911, 0.1683195531, 0.0862179473, -0.3023170233, 0.0452376157, -0.5413496494, 0.1897810996, -0.0564398654, 0.328328073, 0.2563536465, -0.0059873164, -0.0656557232, 0.146081537, 0.0260094777, -0.4261063039, 0.2824684978, 0.1789685786, 0.0737885311, 0.2832485139, 0.1818430275, 0.0182468574, 0.0927435532, -0.3297596872, 0.0606946871, 0.3552809656, -0.1543042064, 0.3506971002, -0.1640051603, -0.1087646112, -0.0174387284, 0.1831088513, 0.0715588778, -0.1704184115, 0.2969175875, 0.0039576925, 0.0945934579, -0.2185351253, 0.1525516212, 0.2713686824, -0.1579952836, 0.0503197126, 0.1134211123, 0.4863120019, 0.0114197815, 0.2574236989, 0.177130118, 0.3620301783, -0.251676172, 0.2153890133, -0.1647553444, 0.0180757511, -0.1410149485, 0.1426826119, 0.4029869735, 0.0652771145, 0.1033286154, -0.1458616257, 0.3220048249, -0.1225007325, 0.3613240421, -0.1696135253, -0.4061293006, -0.0881188363, 0.0352234915, -0.2489658594, -0.0163801145, -0.2956751585, -0.130460307, 0.173795417, -0.22612831, -0.0401271433, 0.4048241675, -0.2687306106, -0.2827671766, -0.3352330029, -0.3463445902, 0.1784397215, -0.0429823585, 0.2153524607, -0.3309489787, 0.244225353, 0.0466658883, -0.4038802683, -0.3088328838, 0.3640610278, -0.0036339276, 0.1083945632, -0.0482484847, 0.0521886609, 0.1386572272, -0.2849010825, -0.0889848545, 0.3052851856, 0.4353724122, 0.0898912996, -0.1928081661, 0.5962464809, 0.1944004893, 0.0021678105, -0.1304046363, 0.0647218153, 0.4124221504, -0.020402614, 0.2085272819, 0.1300186813, -0.0924625322, -0.042147208, 0.1148764044, 0.4866256714, -0.3733815253, 0.2650319338, -0.179862991, -0.0689878017, -0.0901721939, 0.2335719764, -0.2867178619, 0.2885175347, 0.6113153696, -0.0639149919, 0.1486179382, -0.1438119859, 0.0186847392, -0.2901237607, 0.4194192886, 0.1110552028, 0.3019728065, -0.3612965941, -0.1454018503, -0.4733639359, 0.2039212883, -0.4668930173, 0.0593986027, -0.0580024682, 0.4289112687, 0.0649043173, 0.1286661327, -0.1016302034, -0.0497973189, 0.1085102484, 0.107200399, -0.2101535499, -0.2865600884, -0.3860233426, -0.0287038349, -0.0604816303, -0.4726718366, 0.0891436636, 0.0631995425, -0.0475050807, -0.0783386156, -0.1557792127, 0.1945839822, 0.2042073607, 0.4846564829, 0.1691206545, 0.6330028176, 0.2342400253, 0.0923512429, -0.2478437871, -0.3968436122, 0.074107334, 0.1058295891, 0.186803028, 0.0478782915, -0.5410244465, -0.2097577006, -0.2871948779, 0.3450891674, -0.0004357264, -0.1266294867, -0.0814173147, -0.2556200922, -0.1839201599, 0.2147220671, 0.1197057217, 0.3353787959, 0.0070097032, 0.2591790259, -0.2700031102, -0.190476492, 0.7102392912, -0.1347924769, -0.1052474305, -0.3297402561, 0.0763672367, 0.1047490239, -0.0031941768, -0.3488744497, 0.0254380051, 0.2682201564, -0.1837806851, -0.1111018658, 0.0281185582, -0.2183410823, 0.1376703382, -0.2694945931, 0.0691195726, 0.018213015, -0.2271559238, -0.352317065, -0.2803574204 ]
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.2411834002, -0.319865644, -0.0681557357, 0.4316073358, 0.3625251949, 0.019154856, 0.5210206509, 0.4377133548, 0.2949125767, 0.0327751897, 0.0169625934, -0.1187047064, 0.0905916989, 0.1802895069, 0.0350660197, 0.113009423, 0.0730285496, 0.3988213837, 0.0317205191, 0.0699725002, -0.2188607603, 0.1208696142, 0.0058676414, 0.0575147867, -0.1244225949, 0.0723637715, -0.0082087917, 0.1169142276, -0.2343513817, -0.4013207853, 0.4197232723, 0.0784542486, 0.3328507245, 0.5207663774, -0.0001169051, 0.1564733982, 0.2654487193, -0.1856259704, -0.044199653, -0.5195807815, 0.0301296115, -0.5329569578, 0.2776662707, -0.1672024876, -0.0144888004, -0.1786804944, -0.1109990403, -0.0358059406, 0.301412493, 0.317545265, 0.1804958731, -0.2607496381, 0.0598920323, -0.0100190183, 0.2052919865, 0.0371791944, -0.0156857315, 0.4175470173, 0.1173956841, -0.1267607808, -0.0487308055, -0.1936671287, -0.2392430753, 0.358199358, 0.3196350634, 0.139939934, 0.0709673837, -0.1089671329, 0.2680704892, 0.1055050865, 0.6067356467, -0.3076421916, -0.1485475451, -0.0154003575, -0.0202966537, -0.4886515439, 0.2558158338, 0.404494673, -0.1521600783, 0.1173331663, -0.212212652, 0.2484469414, -0.2663930953, 0.202861771, -0.0673471689, -0.3531900346, -0.2522074878, 0.269318223, 0.2523402274, 0.0737476349, 0.333640039, -0.0937500149, 0.0268539954, 0.1806967556, -0.5556492805, 0.2796491385, -0.1176611185, -0.0904366001, 0.1637404859, 0.0962190926, 0.401421994, 0.1370621324, 0.0423450619, 0.1946977526, 0.3191300333, 0.1861325204, -0.0428145975, 0.0691048428, 0.0273854919, 0.3462177217, -0.2297834903, -0.233858332, -0.3881369233, -0.5049576759, 0.2381423116, -0.1538380235, 0.2674440145, -0.2704332173, -0.2479329109, -0.0960199684, -0.0361328907, -0.0094233667, -0.0528345108, 0.5738204122, 0.2158341259, 0.3802046776, -0.0542099625, 0.2572089732, -0.2112759054, -0.0986546725, -0.0803524852, 0.0201157909, -0.0576022975, 0.0522915013, 0.3777482212, -0.2166886479, 0.1214606985, 0.1762957573, -0.0435165651, -0.293874532, -0.1455052197, -0.4177227914, 0.0367244333, 0.2833079994, 0.2024738491, 0.0979529321, 0.2341530919, -0.281209439, -0.0606878959, 0.3805411458, -0.2301195264, -0.1685690582, 0.0972644836, 0.0963022336, -0.0661172718, 0.1656785458, -0.3956312239, 0.1563511789, 0.3519503474, -0.4384941161, 0.0334674604, -0.213484481, -0.2411233336, -0.3524810076, 0.2018902898, 0.2790595591, -0.7854660749, 0.3429476619, 0.0539065413, -0.031748578, 0.1149987057, 0.4237152934, -0.1483170092, 0.0611785613, -0.2709868252, 0.0921525285, 0.1406240612, 0.007542714, -0.6293671727, 0.330756247, -0.0460275225, 0.0895456001, 0.3120643497, 0.0645526275, 0.0512151979, 0.0891773179, -0.1080221236, 0.0185540132, 0.0231345557, 0.0440056249, -0.2607476413, -0.1291926205, 0.3187508881, 0.1426242292, -0.0647737607, -0.0676729903, 0.2388889194, -0.4087389708, 0.2025449872, -0.018087266, 0.1416162699, 0.1752467453, 0.1791316569, -0.1968237907, 0.0349739455, 0.0104333302, -0.449349463, 0.1433821619, 0.2848807275, -0.168701157, -0.2159445286, -0.0797309726, -0.3841182888, -0.029701205, -0.2681600451, -0.1242000088, -0.0246527623, 0.0725155771, 0.0595198162, -0.1440532357, -0.1857402772, 0.1161196902, -0.2237769067, -0.0112761781, -0.0158439651, 0.1422189623, 0.058799319, -0.1249886751, 0.1064723954, -0.0629007816, 0.2071678936, -0.0483337827, -0.2763524354, 0.2495909631, 0.1456866562, 0.0456151813, -0.2857955694, -0.1747877598, 0.0830198526, -0.2415059507, -0.087201193, 0.0237382054, 0.366371572, -0.1825467646, -0.3392809331, 0.2706233561, -0.1567005068, 0.3015140295, 0.1879755259, -0.3580714464, 0.3065019846, 0.0167202782, 0.1781936288, 0.0704916492, 0.1380853206, 0.0736546293, 0.4947432876, 0.2995414734, -0.0968419164, -0.1562504321, 0.5009903312, -0.0470439643, -0.2185633034, 0.3112596571, -0.1181774959, -0.1945350319, 0.0684309453, 0.0887454152, 0.3798215091, 0.1293765157, -0.1915310621, 0.0146641536, 0.1435026377, -0.2500293553, 0.1204059273, -0.2204346508, 0.147361815, 0.3965646327, 0.1270097345, -0.1272859275, -0.1951440573, 0.0377439708, 0.0875855684, 0.3257237077, -0.4119556546, -0.0675453171, -0.0734538212, -0.0052058506, -0.1802845597, 0.0986032933, -0.0555796176, 0.0971230492, -0.399611026, 0.3328242004, 0.2897825539, -0.0790662915, -0.2431261986, 0.0886343941, 0.2158127427, -0.3370556533, -0.0034608012, -0.0489907339, -0.2919397652, -0.0261764806, 0.3307100832, 0.1098189428, -0.0008769907, -0.0217666477, 0.0280251335, -0.0548452698, -0.0925328285, -0.0439247675, -0.0732299536, 0.0209217742, -0.0511662625, 0.4193310142, 0.0076078898, -0.1446308196, 0.4017486572, -0.2536608279, -0.0489245988, 0.3501355648, 0.063693583, -0.0958797336, -0.1087074727, -0.3498902321, -0.1398877352, -0.4293369949, 0.3910627663, 0.0847560912, 0.0419317596, 0.0926316753, 0.4331049323, -0.0260847062, 0.3013547361, -0.0312164519, -0.0848051086, -0.2977058589, 0.364574194, -0.0561165623, -0.4676564336, 0.0119416304, 0.0828355849, 0.3591904938, 0.1638269424, -0.4252472818, 0.3267477155, -0.1509072334, 0.1628202051, 0.001105045, -0.0242281388, 0.0609547198, -0.087227501, -0.02182349, 0.0364302173, -0.2417159528, -0.0141800055, -0.0320446305, 0.147583738, 0.0513689332, 0.4584293067, -0.0371928811, 0.6513357759, 0.0874643251, -0.0882314295, 0.4855556488, -0.3082398772, 0.3818776608, -0.2096710205, -0.3737451136, -0.0855747014, -0.3519817889, -0.1924464554, 0.2677484155, -0.0335836522, -0.0334149785, -0.1257757396, 0.0035178557, -0.4046861529, -0.0377029404, 0.1836318821, 0.030697152, -0.0148299858, -0.1005958244, -0.0133009916, -0.0116458982, -0.2373631299, -0.1942585856, 0.273964107, -0.1513423473, 0.0633874387, -0.2242484838, -0.0615805015, -0.3029372096, 0.3292051852, -0.0136234276, 0.3102865219, 0.0106145442, -0.0176949576, 0.0972969681, -0.1252224296, 0.7449790835, 0.1892859787, -0.1550699919, 0.1278290898, -0.0241139401, -0.441583544, -0.1217611507, 0.1906312406, 0.3073362112, 0.0744618401, 0.3548654914, -0.0703260079, -0.0096938089, -0.1443435401, 0.3546779752, 0.0432527438, -0.3951281309, -0.5194917321, -0.2349791378, -0.3830536604, -0.2121352851, -0.0898667276, 0.2882787287, -0.3244076669, -0.14238666, 0.1183613986, -0.2990534604, 0.0601568706, 0.1533811539, 0.2973895967, -0.1129140556, 0.1448959559, 0.0468353443, 0.0698047876, 0.3769119084, 0.7987186313, -0.0785761774, -0.6220771074, 0.0848433003, -0.2050264031, 0.3853482604, 0.0478198975, -0.2032052726, 0.1289870441, 0.0907348841, 0.0620337725, 0.0379482694, 0.0144372974, 0.303686589, 0.0496552214, -0.3454541564, -0.5439228415, 0.4874185622, -0.1259078681, 0.210259065, 0.3020802736, -0.2119996995, -0.1099810973, 0.1555224657, -0.3346247673, 0.6592135429, -0.4218298197, 0.1938304007, 0.3073365986, 0.056335818, 0.2584291697, -0.4451969862, 0.1323072761, -0.3919681609, -0.2109033316, -0.1043124199, -0.0712032095, 0.2393862456, 0.4321897328, -0.1212456822, 0.3118638098, -0.0741499662, 0.3325560093, 0.1131341308, 0.2438254505, -0.1005161256, -0.0864685029, -0.3010208607, 0.010423678, -0.143080771, -0.034952037, 0.0289588366, 0.0544645712, -0.180567503, -0.2016452998, -0.2461121678, 0.2200246155, -0.2911674976, 0.1154050231, -0.1109545827, -0.4686650634, 0.1963640451, 0.2380673289, -0.2087022215, -0.0851790532, -0.1240851358, 0.1550537646, 0.1596343368, -0.040175464, -0.2083746195, -0.0536956713, -0.0158853624, 0.0761262551, -0.2351238132, 0.1545511335, -0.1222788915, -0.0956744775, 0.2780734897, 0.2376573682, -0.0848070979, -0.5452089906, -0.5326194763, -0.4284161925, 0.0759812519, -0.1957319677, 0.0651981682, -0.0420787223, 0.0983416811, -0.1616349667, 0.185935244, -0.4688695073, -0.1020268127, 0.3918127716, -0.1116865277, 0.0939545557, 0.5907299519, 0.2193500102, -0.0168928299, -0.1411525458, 0.0642407387, 0.3081053793, -0.3531884253, 0.1170663685, 0.114149414, 0.3159500659, 0.1392528564, 0.2917453945, 0.1565803289, -0.0776725337, 0.0744548291, -0.5115903616, -0.3249695003, -0.0165289473, -0.001531433, 0.2479579449, 0.1672193259, 0.0818667188, 0.1726779193, 0.2032966465, -0.1562302709, 0.100462012, 0.1059290171, -0.0869574994, 0.2106328309, 0.1420165747, -0.1338726133, -0.1038192064, 0.0934976861, 0.1776404679, -0.0534451902, -0.1887510121, -0.079856135, 0.1501001269, 0.0983607396, 0.0232860073, -0.2034451962, -0.2526888549, -0.149706021, -0.1928057969, 0.0664087087, 0.0297824889, -0.0981118232, 0.0717604533, -0.2987650335, -0.0846543238, -0.5091864467, 0.0271217674, -0.5075390935, 0.223132357, 0.2992692292, 0.0485824421, 0.1217575222, 0.2004557103, -0.1724264324, -0.031158587, 0.1516267508, -0.136618793, 0.3009468615, -0.401475668, 0.2035068125, -0.0510654114, 0.3403372467, 0.4848609567, -0.2076414526, 0.2197109014, 0.0375867598, 0.134115085, -0.3825283945, 0.2754767835, 0.1172315702, -0.061629951, -0.0274847038, 0.1696753055, 0.1992114484, -0.2083074003, -0.0957768112, 0.0069103646, 0.4759891629, -0.0078226738, -0.0339508392, 0.4135628939, 0.0027144591, 0.1789696366, 0.2403351516, 0.1356374025, 0.0196202025, 0.7002615929, -0.2602290213, -0.00396503, -0.2352683246, 0.3014819026, -0.3278698027, -0.7641029358, 0.1616646349, 0.2355503887, -0.3533102274, -0.1676513106, 0.1258981079, 0.6017507315, -0.0233747624, 0.0114932545, -0.1145934314, -0.0448352583, 0.0140551915, 0.0483896546, -0.0662138537, -0.2536707222, -0.0708235875, 0.1856832057, -0.0595556833, 0.0145597989, 0.2749816477, 0.18766433, -0.1494832188, -0.4457592368, 0.065775238, 0.1728488207, 0.0665427595, -0.274838984, 0.3666119874, 0.2653485239, -0.08599177, 0.1805056036, -0.0413447432, 0.6402475834, 0.5041918159, 0.0924117267, -0.0617403314, -0.1215719059, -0.1139908507, -0.1794183552, 0.1778169423, 0.3488176465, 0.4212687314, 0.1485439092, 0.1135985553, -0.0401849225, 0.3160889447, 0.2067888379, 0.0996007398, -0.5459766984, -0.1189197525, -0.2083116919, -0.2577385902, -0.2266331911, 0.0241517965, -0.2890596986, 0.0209433828, 0.4277472794, 0.0739153922, 0.2772267759, -0.026822459, 0.0345674902, 0.0743340254, 0.3142198622, 0.2397757024, 0.4022898674, -0.4218082428, -0.0354187526, -0.7509753108, 0.1165278926, -0.3764894903, 0.0095928973, -0.0318588093, 0.1585378796, 0.1377413869, 0.0838608071, 0.1591724306, 0.2994238734, 0.1167234331, 0.2220780253, -0.056184765, -0.1846200824, -0.3380705714, 0.0264859702, -0.1750926226, -0.4655137062, 0.2213603109, -0.127932623, 0.0092109898, -0.2251860201, 0.2239884883, 0.2559673786, -0.0059870519, 0.4777292609, -0.1120112687, 0.6255967021, -0.0850183666, 0.3190014064, -0.3009390235, -0.0801897869, -0.1928056329, 0.5200990438, 0.2061499059, 0.2713998556, -0.1779932082, -0.10791637, -0.2153045684, 0.1574101299, -0.0065484298, -0.0705470294, 0.0667272955, -0.1510604024, -0.0018242069, -0.0584901869, 0.1522312462, 0.0920480266, -0.2229385823, -0.078172937, -0.1745536625, -0.1801850349, 0.1810827255, -0.4043288827, -0.341103524, 0.1487177908, 0.1261259913, 0.1018664911, 0.1396923214, -0.4524213374, 0.1217894629, 0.424474895, -0.1280170381, -0.4174261987, 0.1340314001, -0.2116188854, 0.1005704775, -0.1218525395, 0.4765019715, 0.1411092728, -0.3705091178, -0.1615716815, -0.3583215475 ]
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.2411834002, -0.319865644, -0.0681557357, 0.4316073358, 0.3625251949, 0.019154856, 0.5210206509, 0.4377133548, 0.2949125767, 0.0327751897, 0.0169625934, -0.1187047064, 0.0905916989, 0.1802895069, 0.0350660197, 0.113009423, 0.0730285496, 0.3988213837, 0.0317205191, 0.0699725002, -0.2188607603, 0.1208696142, 0.0058676414, 0.0575147867, -0.1244225949, 0.0723637715, -0.0082087917, 0.1169142276, -0.2343513817, -0.4013207853, 0.4197232723, 0.0784542486, 0.3328507245, 0.5207663774, -0.0001169051, 0.1564733982, 0.2654487193, -0.1856259704, -0.044199653, -0.5195807815, 0.0301296115, -0.5329569578, 0.2776662707, -0.1672024876, -0.0144888004, -0.1786804944, -0.1109990403, -0.0358059406, 0.301412493, 0.317545265, 0.1804958731, -0.2607496381, 0.0598920323, -0.0100190183, 0.2052919865, 0.0371791944, -0.0156857315, 0.4175470173, 0.1173956841, -0.1267607808, -0.0487308055, -0.1936671287, -0.2392430753, 0.358199358, 0.3196350634, 0.139939934, 0.0709673837, -0.1089671329, 0.2680704892, 0.1055050865, 0.6067356467, -0.3076421916, -0.1485475451, -0.0154003575, -0.0202966537, -0.4886515439, 0.2558158338, 0.404494673, -0.1521600783, 0.1173331663, -0.212212652, 0.2484469414, -0.2663930953, 0.202861771, -0.0673471689, -0.3531900346, -0.2522074878, 0.269318223, 0.2523402274, 0.0737476349, 0.333640039, -0.0937500149, 0.0268539954, 0.1806967556, -0.5556492805, 0.2796491385, -0.1176611185, -0.0904366001, 0.1637404859, 0.0962190926, 0.401421994, 0.1370621324, 0.0423450619, 0.1946977526, 0.3191300333, 0.1861325204, -0.0428145975, 0.0691048428, 0.0273854919, 0.3462177217, -0.2297834903, -0.233858332, -0.3881369233, -0.5049576759, 0.2381423116, -0.1538380235, 0.2674440145, -0.2704332173, -0.2479329109, -0.0960199684, -0.0361328907, -0.0094233667, -0.0528345108, 0.5738204122, 0.2158341259, 0.3802046776, -0.0542099625, 0.2572089732, -0.2112759054, -0.0986546725, -0.0803524852, 0.0201157909, -0.0576022975, 0.0522915013, 0.3777482212, -0.2166886479, 0.1214606985, 0.1762957573, -0.0435165651, -0.293874532, -0.1455052197, -0.4177227914, 0.0367244333, 0.2833079994, 0.2024738491, 0.0979529321, 0.2341530919, -0.281209439, -0.0606878959, 0.3805411458, -0.2301195264, -0.1685690582, 0.0972644836, 0.0963022336, -0.0661172718, 0.1656785458, -0.3956312239, 0.1563511789, 0.3519503474, -0.4384941161, 0.0334674604, -0.213484481, -0.2411233336, -0.3524810076, 0.2018902898, 0.2790595591, -0.7854660749, 0.3429476619, 0.0539065413, -0.031748578, 0.1149987057, 0.4237152934, -0.1483170092, 0.0611785613, -0.2709868252, 0.0921525285, 0.1406240612, 0.007542714, -0.6293671727, 0.330756247, -0.0460275225, 0.0895456001, 0.3120643497, 0.0645526275, 0.0512151979, 0.0891773179, -0.1080221236, 0.0185540132, 0.0231345557, 0.0440056249, -0.2607476413, -0.1291926205, 0.3187508881, 0.1426242292, -0.0647737607, -0.0676729903, 0.2388889194, -0.4087389708, 0.2025449872, -0.018087266, 0.1416162699, 0.1752467453, 0.1791316569, -0.1968237907, 0.0349739455, 0.0104333302, -0.449349463, 0.1433821619, 0.2848807275, -0.168701157, -0.2159445286, -0.0797309726, -0.3841182888, -0.029701205, -0.2681600451, -0.1242000088, -0.0246527623, 0.0725155771, 0.0595198162, -0.1440532357, -0.1857402772, 0.1161196902, -0.2237769067, -0.0112761781, -0.0158439651, 0.1422189623, 0.058799319, -0.1249886751, 0.1064723954, -0.0629007816, 0.2071678936, -0.0483337827, -0.2763524354, 0.2495909631, 0.1456866562, 0.0456151813, -0.2857955694, -0.1747877598, 0.0830198526, -0.2415059507, -0.087201193, 0.0237382054, 0.366371572, -0.1825467646, -0.3392809331, 0.2706233561, -0.1567005068, 0.3015140295, 0.1879755259, -0.3580714464, 0.3065019846, 0.0167202782, 0.1781936288, 0.0704916492, 0.1380853206, 0.0736546293, 0.4947432876, 0.2995414734, -0.0968419164, -0.1562504321, 0.5009903312, -0.0470439643, -0.2185633034, 0.3112596571, -0.1181774959, -0.1945350319, 0.0684309453, 0.0887454152, 0.3798215091, 0.1293765157, -0.1915310621, 0.0146641536, 0.1435026377, -0.2500293553, 0.1204059273, -0.2204346508, 0.147361815, 0.3965646327, 0.1270097345, -0.1272859275, -0.1951440573, 0.0377439708, 0.0875855684, 0.3257237077, -0.4119556546, -0.0675453171, -0.0734538212, -0.0052058506, -0.1802845597, 0.0986032933, -0.0555796176, 0.0971230492, -0.399611026, 0.3328242004, 0.2897825539, -0.0790662915, -0.2431261986, 0.0886343941, 0.2158127427, -0.3370556533, -0.0034608012, -0.0489907339, -0.2919397652, -0.0261764806, 0.3307100832, 0.1098189428, -0.0008769907, -0.0217666477, 0.0280251335, -0.0548452698, -0.0925328285, -0.0439247675, -0.0732299536, 0.0209217742, -0.0511662625, 0.4193310142, 0.0076078898, -0.1446308196, 0.4017486572, -0.2536608279, -0.0489245988, 0.3501355648, 0.063693583, -0.0958797336, -0.1087074727, -0.3498902321, -0.1398877352, -0.4293369949, 0.3910627663, 0.0847560912, 0.0419317596, 0.0926316753, 0.4331049323, -0.0260847062, 0.3013547361, -0.0312164519, -0.0848051086, -0.2977058589, 0.364574194, -0.0561165623, -0.4676564336, 0.0119416304, 0.0828355849, 0.3591904938, 0.1638269424, -0.4252472818, 0.3267477155, -0.1509072334, 0.1628202051, 0.001105045, -0.0242281388, 0.0609547198, -0.087227501, -0.02182349, 0.0364302173, -0.2417159528, -0.0141800055, -0.0320446305, 0.147583738, 0.0513689332, 0.4584293067, -0.0371928811, 0.6513357759, 0.0874643251, -0.0882314295, 0.4855556488, -0.3082398772, 0.3818776608, -0.2096710205, -0.3737451136, -0.0855747014, -0.3519817889, -0.1924464554, 0.2677484155, -0.0335836522, -0.0334149785, -0.1257757396, 0.0035178557, -0.4046861529, -0.0377029404, 0.1836318821, 0.030697152, -0.0148299858, -0.1005958244, -0.0133009916, -0.0116458982, -0.2373631299, -0.1942585856, 0.273964107, -0.1513423473, 0.0633874387, -0.2242484838, -0.0615805015, -0.3029372096, 0.3292051852, -0.0136234276, 0.3102865219, 0.0106145442, -0.0176949576, 0.0972969681, -0.1252224296, 0.7449790835, 0.1892859787, -0.1550699919, 0.1278290898, -0.0241139401, -0.441583544, -0.1217611507, 0.1906312406, 0.3073362112, 0.0744618401, 0.3548654914, -0.0703260079, -0.0096938089, -0.1443435401, 0.3546779752, 0.0432527438, -0.3951281309, -0.5194917321, -0.2349791378, -0.3830536604, -0.2121352851, -0.0898667276, 0.2882787287, -0.3244076669, -0.14238666, 0.1183613986, -0.2990534604, 0.0601568706, 0.1533811539, 0.2973895967, -0.1129140556, 0.1448959559, 0.0468353443, 0.0698047876, 0.3769119084, 0.7987186313, -0.0785761774, -0.6220771074, 0.0848433003, -0.2050264031, 0.3853482604, 0.0478198975, -0.2032052726, 0.1289870441, 0.0907348841, 0.0620337725, 0.0379482694, 0.0144372974, 0.303686589, 0.0496552214, -0.3454541564, -0.5439228415, 0.4874185622, -0.1259078681, 0.210259065, 0.3020802736, -0.2119996995, -0.1099810973, 0.1555224657, -0.3346247673, 0.6592135429, -0.4218298197, 0.1938304007, 0.3073365986, 0.056335818, 0.2584291697, -0.4451969862, 0.1323072761, -0.3919681609, -0.2109033316, -0.1043124199, -0.0712032095, 0.2393862456, 0.4321897328, -0.1212456822, 0.3118638098, -0.0741499662, 0.3325560093, 0.1131341308, 0.2438254505, -0.1005161256, -0.0864685029, -0.3010208607, 0.010423678, -0.143080771, -0.034952037, 0.0289588366, 0.0544645712, -0.180567503, -0.2016452998, -0.2461121678, 0.2200246155, -0.2911674976, 0.1154050231, -0.1109545827, -0.4686650634, 0.1963640451, 0.2380673289, -0.2087022215, -0.0851790532, -0.1240851358, 0.1550537646, 0.1596343368, -0.040175464, -0.2083746195, -0.0536956713, -0.0158853624, 0.0761262551, -0.2351238132, 0.1545511335, -0.1222788915, -0.0956744775, 0.2780734897, 0.2376573682, -0.0848070979, -0.5452089906, -0.5326194763, -0.4284161925, 0.0759812519, -0.1957319677, 0.0651981682, -0.0420787223, 0.0983416811, -0.1616349667, 0.185935244, -0.4688695073, -0.1020268127, 0.3918127716, -0.1116865277, 0.0939545557, 0.5907299519, 0.2193500102, -0.0168928299, -0.1411525458, 0.0642407387, 0.3081053793, -0.3531884253, 0.1170663685, 0.114149414, 0.3159500659, 0.1392528564, 0.2917453945, 0.1565803289, -0.0776725337, 0.0744548291, -0.5115903616, -0.3249695003, -0.0165289473, -0.001531433, 0.2479579449, 0.1672193259, 0.0818667188, 0.1726779193, 0.2032966465, -0.1562302709, 0.100462012, 0.1059290171, -0.0869574994, 0.2106328309, 0.1420165747, -0.1338726133, -0.1038192064, 0.0934976861, 0.1776404679, -0.0534451902, -0.1887510121, -0.079856135, 0.1501001269, 0.0983607396, 0.0232860073, -0.2034451962, -0.2526888549, -0.149706021, -0.1928057969, 0.0664087087, 0.0297824889, -0.0981118232, 0.0717604533, -0.2987650335, -0.0846543238, -0.5091864467, 0.0271217674, -0.5075390935, 0.223132357, 0.2992692292, 0.0485824421, 0.1217575222, 0.2004557103, -0.1724264324, -0.031158587, 0.1516267508, -0.136618793, 0.3009468615, -0.401475668, 0.2035068125, -0.0510654114, 0.3403372467, 0.4848609567, -0.2076414526, 0.2197109014, 0.0375867598, 0.134115085, -0.3825283945, 0.2754767835, 0.1172315702, -0.061629951, -0.0274847038, 0.1696753055, 0.1992114484, -0.2083074003, -0.0957768112, 0.0069103646, 0.4759891629, -0.0078226738, -0.0339508392, 0.4135628939, 0.0027144591, 0.1789696366, 0.2403351516, 0.1356374025, 0.0196202025, 0.7002615929, -0.2602290213, -0.00396503, -0.2352683246, 0.3014819026, -0.3278698027, -0.7641029358, 0.1616646349, 0.2355503887, -0.3533102274, -0.1676513106, 0.1258981079, 0.6017507315, -0.0233747624, 0.0114932545, -0.1145934314, -0.0448352583, 0.0140551915, 0.0483896546, -0.0662138537, -0.2536707222, -0.0708235875, 0.1856832057, -0.0595556833, 0.0145597989, 0.2749816477, 0.18766433, -0.1494832188, -0.4457592368, 0.065775238, 0.1728488207, 0.0665427595, -0.274838984, 0.3666119874, 0.2653485239, -0.08599177, 0.1805056036, -0.0413447432, 0.6402475834, 0.5041918159, 0.0924117267, -0.0617403314, -0.1215719059, -0.1139908507, -0.1794183552, 0.1778169423, 0.3488176465, 0.4212687314, 0.1485439092, 0.1135985553, -0.0401849225, 0.3160889447, 0.2067888379, 0.0996007398, -0.5459766984, -0.1189197525, -0.2083116919, -0.2577385902, -0.2266331911, 0.0241517965, -0.2890596986, 0.0209433828, 0.4277472794, 0.0739153922, 0.2772267759, -0.026822459, 0.0345674902, 0.0743340254, 0.3142198622, 0.2397757024, 0.4022898674, -0.4218082428, -0.0354187526, -0.7509753108, 0.1165278926, -0.3764894903, 0.0095928973, -0.0318588093, 0.1585378796, 0.1377413869, 0.0838608071, 0.1591724306, 0.2994238734, 0.1167234331, 0.2220780253, -0.056184765, -0.1846200824, -0.3380705714, 0.0264859702, -0.1750926226, -0.4655137062, 0.2213603109, -0.127932623, 0.0092109898, -0.2251860201, 0.2239884883, 0.2559673786, -0.0059870519, 0.4777292609, -0.1120112687, 0.6255967021, -0.0850183666, 0.3190014064, -0.3009390235, -0.0801897869, -0.1928056329, 0.5200990438, 0.2061499059, 0.2713998556, -0.1779932082, -0.10791637, -0.2153045684, 0.1574101299, -0.0065484298, -0.0705470294, 0.0667272955, -0.1510604024, -0.0018242069, -0.0584901869, 0.1522312462, 0.0920480266, -0.2229385823, -0.078172937, -0.1745536625, -0.1801850349, 0.1810827255, -0.4043288827, -0.341103524, 0.1487177908, 0.1261259913, 0.1018664911, 0.1396923214, -0.4524213374, 0.1217894629, 0.424474895, -0.1280170381, -0.4174261987, 0.1340314001, -0.2116188854, 0.1005704775, -0.1218525395, 0.4765019715, 0.1411092728, -0.3705091178, -0.1615716815, -0.3583215475 ]
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.2411834002, -0.319865644, -0.0681557357, 0.4316073358, 0.3625251949, 0.019154856, 0.5210206509, 0.4377133548, 0.2949125767, 0.0327751897, 0.0169625934, -0.1187047064, 0.0905916989, 0.1802895069, 0.0350660197, 0.113009423, 0.0730285496, 0.3988213837, 0.0317205191, 0.0699725002, -0.2188607603, 0.1208696142, 0.0058676414, 0.0575147867, -0.1244225949, 0.0723637715, -0.0082087917, 0.1169142276, -0.2343513817, -0.4013207853, 0.4197232723, 0.0784542486, 0.3328507245, 0.5207663774, -0.0001169051, 0.1564733982, 0.2654487193, -0.1856259704, -0.044199653, -0.5195807815, 0.0301296115, -0.5329569578, 0.2776662707, -0.1672024876, -0.0144888004, -0.1786804944, -0.1109990403, -0.0358059406, 0.301412493, 0.317545265, 0.1804958731, -0.2607496381, 0.0598920323, -0.0100190183, 0.2052919865, 0.0371791944, -0.0156857315, 0.4175470173, 0.1173956841, -0.1267607808, -0.0487308055, -0.1936671287, -0.2392430753, 0.358199358, 0.3196350634, 0.139939934, 0.0709673837, -0.1089671329, 0.2680704892, 0.1055050865, 0.6067356467, -0.3076421916, -0.1485475451, -0.0154003575, -0.0202966537, -0.4886515439, 0.2558158338, 0.404494673, -0.1521600783, 0.1173331663, -0.212212652, 0.2484469414, -0.2663930953, 0.202861771, -0.0673471689, -0.3531900346, -0.2522074878, 0.269318223, 0.2523402274, 0.0737476349, 0.333640039, -0.0937500149, 0.0268539954, 0.1806967556, -0.5556492805, 0.2796491385, -0.1176611185, -0.0904366001, 0.1637404859, 0.0962190926, 0.401421994, 0.1370621324, 0.0423450619, 0.1946977526, 0.3191300333, 0.1861325204, -0.0428145975, 0.0691048428, 0.0273854919, 0.3462177217, -0.2297834903, -0.233858332, -0.3881369233, -0.5049576759, 0.2381423116, -0.1538380235, 0.2674440145, -0.2704332173, -0.2479329109, -0.0960199684, -0.0361328907, -0.0094233667, -0.0528345108, 0.5738204122, 0.2158341259, 0.3802046776, -0.0542099625, 0.2572089732, -0.2112759054, -0.0986546725, -0.0803524852, 0.0201157909, -0.0576022975, 0.0522915013, 0.3777482212, -0.2166886479, 0.1214606985, 0.1762957573, -0.0435165651, -0.293874532, -0.1455052197, -0.4177227914, 0.0367244333, 0.2833079994, 0.2024738491, 0.0979529321, 0.2341530919, -0.281209439, -0.0606878959, 0.3805411458, -0.2301195264, -0.1685690582, 0.0972644836, 0.0963022336, -0.0661172718, 0.1656785458, -0.3956312239, 0.1563511789, 0.3519503474, -0.4384941161, 0.0334674604, -0.213484481, -0.2411233336, -0.3524810076, 0.2018902898, 0.2790595591, -0.7854660749, 0.3429476619, 0.0539065413, -0.031748578, 0.1149987057, 0.4237152934, -0.1483170092, 0.0611785613, -0.2709868252, 0.0921525285, 0.1406240612, 0.007542714, -0.6293671727, 0.330756247, -0.0460275225, 0.0895456001, 0.3120643497, 0.0645526275, 0.0512151979, 0.0891773179, -0.1080221236, 0.0185540132, 0.0231345557, 0.0440056249, -0.2607476413, -0.1291926205, 0.3187508881, 0.1426242292, -0.0647737607, -0.0676729903, 0.2388889194, -0.4087389708, 0.2025449872, -0.018087266, 0.1416162699, 0.1752467453, 0.1791316569, -0.1968237907, 0.0349739455, 0.0104333302, -0.449349463, 0.1433821619, 0.2848807275, -0.168701157, -0.2159445286, -0.0797309726, -0.3841182888, -0.029701205, -0.2681600451, -0.1242000088, -0.0246527623, 0.0725155771, 0.0595198162, -0.1440532357, -0.1857402772, 0.1161196902, -0.2237769067, -0.0112761781, -0.0158439651, 0.1422189623, 0.058799319, -0.1249886751, 0.1064723954, -0.0629007816, 0.2071678936, -0.0483337827, -0.2763524354, 0.2495909631, 0.1456866562, 0.0456151813, -0.2857955694, -0.1747877598, 0.0830198526, -0.2415059507, -0.087201193, 0.0237382054, 0.366371572, -0.1825467646, -0.3392809331, 0.2706233561, -0.1567005068, 0.3015140295, 0.1879755259, -0.3580714464, 0.3065019846, 0.0167202782, 0.1781936288, 0.0704916492, 0.1380853206, 0.0736546293, 0.4947432876, 0.2995414734, -0.0968419164, -0.1562504321, 0.5009903312, -0.0470439643, -0.2185633034, 0.3112596571, -0.1181774959, -0.1945350319, 0.0684309453, 0.0887454152, 0.3798215091, 0.1293765157, -0.1915310621, 0.0146641536, 0.1435026377, -0.2500293553, 0.1204059273, -0.2204346508, 0.147361815, 0.3965646327, 0.1270097345, -0.1272859275, -0.1951440573, 0.0377439708, 0.0875855684, 0.3257237077, -0.4119556546, -0.0675453171, -0.0734538212, -0.0052058506, -0.1802845597, 0.0986032933, -0.0555796176, 0.0971230492, -0.399611026, 0.3328242004, 0.2897825539, -0.0790662915, -0.2431261986, 0.0886343941, 0.2158127427, -0.3370556533, -0.0034608012, -0.0489907339, -0.2919397652, -0.0261764806, 0.3307100832, 0.1098189428, -0.0008769907, -0.0217666477, 0.0280251335, -0.0548452698, -0.0925328285, -0.0439247675, -0.0732299536, 0.0209217742, -0.0511662625, 0.4193310142, 0.0076078898, -0.1446308196, 0.4017486572, -0.2536608279, -0.0489245988, 0.3501355648, 0.063693583, -0.0958797336, -0.1087074727, -0.3498902321, -0.1398877352, -0.4293369949, 0.3910627663, 0.0847560912, 0.0419317596, 0.0926316753, 0.4331049323, -0.0260847062, 0.3013547361, -0.0312164519, -0.0848051086, -0.2977058589, 0.364574194, -0.0561165623, -0.4676564336, 0.0119416304, 0.0828355849, 0.3591904938, 0.1638269424, -0.4252472818, 0.3267477155, -0.1509072334, 0.1628202051, 0.001105045, -0.0242281388, 0.0609547198, -0.087227501, -0.02182349, 0.0364302173, -0.2417159528, -0.0141800055, -0.0320446305, 0.147583738, 0.0513689332, 0.4584293067, -0.0371928811, 0.6513357759, 0.0874643251, -0.0882314295, 0.4855556488, -0.3082398772, 0.3818776608, -0.2096710205, -0.3737451136, -0.0855747014, -0.3519817889, -0.1924464554, 0.2677484155, -0.0335836522, -0.0334149785, -0.1257757396, 0.0035178557, -0.4046861529, -0.0377029404, 0.1836318821, 0.030697152, -0.0148299858, -0.1005958244, -0.0133009916, -0.0116458982, -0.2373631299, -0.1942585856, 0.273964107, -0.1513423473, 0.0633874387, -0.2242484838, -0.0615805015, -0.3029372096, 0.3292051852, -0.0136234276, 0.3102865219, 0.0106145442, -0.0176949576, 0.0972969681, -0.1252224296, 0.7449790835, 0.1892859787, -0.1550699919, 0.1278290898, -0.0241139401, -0.441583544, -0.1217611507, 0.1906312406, 0.3073362112, 0.0744618401, 0.3548654914, -0.0703260079, -0.0096938089, -0.1443435401, 0.3546779752, 0.0432527438, -0.3951281309, -0.5194917321, -0.2349791378, -0.3830536604, -0.2121352851, -0.0898667276, 0.2882787287, -0.3244076669, -0.14238666, 0.1183613986, -0.2990534604, 0.0601568706, 0.1533811539, 0.2973895967, -0.1129140556, 0.1448959559, 0.0468353443, 0.0698047876, 0.3769119084, 0.7987186313, -0.0785761774, -0.6220771074, 0.0848433003, -0.2050264031, 0.3853482604, 0.0478198975, -0.2032052726, 0.1289870441, 0.0907348841, 0.0620337725, 0.0379482694, 0.0144372974, 0.303686589, 0.0496552214, -0.3454541564, -0.5439228415, 0.4874185622, -0.1259078681, 0.210259065, 0.3020802736, -0.2119996995, -0.1099810973, 0.1555224657, -0.3346247673, 0.6592135429, -0.4218298197, 0.1938304007, 0.3073365986, 0.056335818, 0.2584291697, -0.4451969862, 0.1323072761, -0.3919681609, -0.2109033316, -0.1043124199, -0.0712032095, 0.2393862456, 0.4321897328, -0.1212456822, 0.3118638098, -0.0741499662, 0.3325560093, 0.1131341308, 0.2438254505, -0.1005161256, -0.0864685029, -0.3010208607, 0.010423678, -0.143080771, -0.034952037, 0.0289588366, 0.0544645712, -0.180567503, -0.2016452998, -0.2461121678, 0.2200246155, -0.2911674976, 0.1154050231, -0.1109545827, -0.4686650634, 0.1963640451, 0.2380673289, -0.2087022215, -0.0851790532, -0.1240851358, 0.1550537646, 0.1596343368, -0.040175464, -0.2083746195, -0.0536956713, -0.0158853624, 0.0761262551, -0.2351238132, 0.1545511335, -0.1222788915, -0.0956744775, 0.2780734897, 0.2376573682, -0.0848070979, -0.5452089906, -0.5326194763, -0.4284161925, 0.0759812519, -0.1957319677, 0.0651981682, -0.0420787223, 0.0983416811, -0.1616349667, 0.185935244, -0.4688695073, -0.1020268127, 0.3918127716, -0.1116865277, 0.0939545557, 0.5907299519, 0.2193500102, -0.0168928299, -0.1411525458, 0.0642407387, 0.3081053793, -0.3531884253, 0.1170663685, 0.114149414, 0.3159500659, 0.1392528564, 0.2917453945, 0.1565803289, -0.0776725337, 0.0744548291, -0.5115903616, -0.3249695003, -0.0165289473, -0.001531433, 0.2479579449, 0.1672193259, 0.0818667188, 0.1726779193, 0.2032966465, -0.1562302709, 0.100462012, 0.1059290171, -0.0869574994, 0.2106328309, 0.1420165747, -0.1338726133, -0.1038192064, 0.0934976861, 0.1776404679, -0.0534451902, -0.1887510121, -0.079856135, 0.1501001269, 0.0983607396, 0.0232860073, -0.2034451962, -0.2526888549, -0.149706021, -0.1928057969, 0.0664087087, 0.0297824889, -0.0981118232, 0.0717604533, -0.2987650335, -0.0846543238, -0.5091864467, 0.0271217674, -0.5075390935, 0.223132357, 0.2992692292, 0.0485824421, 0.1217575222, 0.2004557103, -0.1724264324, -0.031158587, 0.1516267508, -0.136618793, 0.3009468615, -0.401475668, 0.2035068125, -0.0510654114, 0.3403372467, 0.4848609567, -0.2076414526, 0.2197109014, 0.0375867598, 0.134115085, -0.3825283945, 0.2754767835, 0.1172315702, -0.061629951, -0.0274847038, 0.1696753055, 0.1992114484, -0.2083074003, -0.0957768112, 0.0069103646, 0.4759891629, -0.0078226738, -0.0339508392, 0.4135628939, 0.0027144591, 0.1789696366, 0.2403351516, 0.1356374025, 0.0196202025, 0.7002615929, -0.2602290213, -0.00396503, -0.2352683246, 0.3014819026, -0.3278698027, -0.7641029358, 0.1616646349, 0.2355503887, -0.3533102274, -0.1676513106, 0.1258981079, 0.6017507315, -0.0233747624, 0.0114932545, -0.1145934314, -0.0448352583, 0.0140551915, 0.0483896546, -0.0662138537, -0.2536707222, -0.0708235875, 0.1856832057, -0.0595556833, 0.0145597989, 0.2749816477, 0.18766433, -0.1494832188, -0.4457592368, 0.065775238, 0.1728488207, 0.0665427595, -0.274838984, 0.3666119874, 0.2653485239, -0.08599177, 0.1805056036, -0.0413447432, 0.6402475834, 0.5041918159, 0.0924117267, -0.0617403314, -0.1215719059, -0.1139908507, -0.1794183552, 0.1778169423, 0.3488176465, 0.4212687314, 0.1485439092, 0.1135985553, -0.0401849225, 0.3160889447, 0.2067888379, 0.0996007398, -0.5459766984, -0.1189197525, -0.2083116919, -0.2577385902, -0.2266331911, 0.0241517965, -0.2890596986, 0.0209433828, 0.4277472794, 0.0739153922, 0.2772267759, -0.026822459, 0.0345674902, 0.0743340254, 0.3142198622, 0.2397757024, 0.4022898674, -0.4218082428, -0.0354187526, -0.7509753108, 0.1165278926, -0.3764894903, 0.0095928973, -0.0318588093, 0.1585378796, 0.1377413869, 0.0838608071, 0.1591724306, 0.2994238734, 0.1167234331, 0.2220780253, -0.056184765, -0.1846200824, -0.3380705714, 0.0264859702, -0.1750926226, -0.4655137062, 0.2213603109, -0.127932623, 0.0092109898, -0.2251860201, 0.2239884883, 0.2559673786, -0.0059870519, 0.4777292609, -0.1120112687, 0.6255967021, -0.0850183666, 0.3190014064, -0.3009390235, -0.0801897869, -0.1928056329, 0.5200990438, 0.2061499059, 0.2713998556, -0.1779932082, -0.10791637, -0.2153045684, 0.1574101299, -0.0065484298, -0.0705470294, 0.0667272955, -0.1510604024, -0.0018242069, -0.0584901869, 0.1522312462, 0.0920480266, -0.2229385823, -0.078172937, -0.1745536625, -0.1801850349, 0.1810827255, -0.4043288827, -0.341103524, 0.1487177908, 0.1261259913, 0.1018664911, 0.1396923214, -0.4524213374, 0.1217894629, 0.424474895, -0.1280170381, -0.4174261987, 0.1340314001, -0.2116188854, 0.1005704775, -0.1218525395, 0.4765019715, 0.1411092728, -0.3705091178, -0.1615716815, -0.3583215475 ]
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.2411834002, -0.319865644, -0.0681557357, 0.4316073358, 0.3625251949, 0.019154856, 0.5210206509, 0.4377133548, 0.2949125767, 0.0327751897, 0.0169625934, -0.1187047064, 0.0905916989, 0.1802895069, 0.0350660197, 0.113009423, 0.0730285496, 0.3988213837, 0.0317205191, 0.0699725002, -0.2188607603, 0.1208696142, 0.0058676414, 0.0575147867, -0.1244225949, 0.0723637715, -0.0082087917, 0.1169142276, -0.2343513817, -0.4013207853, 0.4197232723, 0.0784542486, 0.3328507245, 0.5207663774, -0.0001169051, 0.1564733982, 0.2654487193, -0.1856259704, -0.044199653, -0.5195807815, 0.0301296115, -0.5329569578, 0.2776662707, -0.1672024876, -0.0144888004, -0.1786804944, -0.1109990403, -0.0358059406, 0.301412493, 0.317545265, 0.1804958731, -0.2607496381, 0.0598920323, -0.0100190183, 0.2052919865, 0.0371791944, -0.0156857315, 0.4175470173, 0.1173956841, -0.1267607808, -0.0487308055, -0.1936671287, -0.2392430753, 0.358199358, 0.3196350634, 0.139939934, 0.0709673837, -0.1089671329, 0.2680704892, 0.1055050865, 0.6067356467, -0.3076421916, -0.1485475451, -0.0154003575, -0.0202966537, -0.4886515439, 0.2558158338, 0.404494673, -0.1521600783, 0.1173331663, -0.212212652, 0.2484469414, -0.2663930953, 0.202861771, -0.0673471689, -0.3531900346, -0.2522074878, 0.269318223, 0.2523402274, 0.0737476349, 0.333640039, -0.0937500149, 0.0268539954, 0.1806967556, -0.5556492805, 0.2796491385, -0.1176611185, -0.0904366001, 0.1637404859, 0.0962190926, 0.401421994, 0.1370621324, 0.0423450619, 0.1946977526, 0.3191300333, 0.1861325204, -0.0428145975, 0.0691048428, 0.0273854919, 0.3462177217, -0.2297834903, -0.233858332, -0.3881369233, -0.5049576759, 0.2381423116, -0.1538380235, 0.2674440145, -0.2704332173, -0.2479329109, -0.0960199684, -0.0361328907, -0.0094233667, -0.0528345108, 0.5738204122, 0.2158341259, 0.3802046776, -0.0542099625, 0.2572089732, -0.2112759054, -0.0986546725, -0.0803524852, 0.0201157909, -0.0576022975, 0.0522915013, 0.3777482212, -0.2166886479, 0.1214606985, 0.1762957573, -0.0435165651, -0.293874532, -0.1455052197, -0.4177227914, 0.0367244333, 0.2833079994, 0.2024738491, 0.0979529321, 0.2341530919, -0.281209439, -0.0606878959, 0.3805411458, -0.2301195264, -0.1685690582, 0.0972644836, 0.0963022336, -0.0661172718, 0.1656785458, -0.3956312239, 0.1563511789, 0.3519503474, -0.4384941161, 0.0334674604, -0.213484481, -0.2411233336, -0.3524810076, 0.2018902898, 0.2790595591, -0.7854660749, 0.3429476619, 0.0539065413, -0.031748578, 0.1149987057, 0.4237152934, -0.1483170092, 0.0611785613, -0.2709868252, 0.0921525285, 0.1406240612, 0.007542714, -0.6293671727, 0.330756247, -0.0460275225, 0.0895456001, 0.3120643497, 0.0645526275, 0.0512151979, 0.0891773179, -0.1080221236, 0.0185540132, 0.0231345557, 0.0440056249, -0.2607476413, -0.1291926205, 0.3187508881, 0.1426242292, -0.0647737607, -0.0676729903, 0.2388889194, -0.4087389708, 0.2025449872, -0.018087266, 0.1416162699, 0.1752467453, 0.1791316569, -0.1968237907, 0.0349739455, 0.0104333302, -0.449349463, 0.1433821619, 0.2848807275, -0.168701157, -0.2159445286, -0.0797309726, -0.3841182888, -0.029701205, -0.2681600451, -0.1242000088, -0.0246527623, 0.0725155771, 0.0595198162, -0.1440532357, -0.1857402772, 0.1161196902, -0.2237769067, -0.0112761781, -0.0158439651, 0.1422189623, 0.058799319, -0.1249886751, 0.1064723954, -0.0629007816, 0.2071678936, -0.0483337827, -0.2763524354, 0.2495909631, 0.1456866562, 0.0456151813, -0.2857955694, -0.1747877598, 0.0830198526, -0.2415059507, -0.087201193, 0.0237382054, 0.366371572, -0.1825467646, -0.3392809331, 0.2706233561, -0.1567005068, 0.3015140295, 0.1879755259, -0.3580714464, 0.3065019846, 0.0167202782, 0.1781936288, 0.0704916492, 0.1380853206, 0.0736546293, 0.4947432876, 0.2995414734, -0.0968419164, -0.1562504321, 0.5009903312, -0.0470439643, -0.2185633034, 0.3112596571, -0.1181774959, -0.1945350319, 0.0684309453, 0.0887454152, 0.3798215091, 0.1293765157, -0.1915310621, 0.0146641536, 0.1435026377, -0.2500293553, 0.1204059273, -0.2204346508, 0.147361815, 0.3965646327, 0.1270097345, -0.1272859275, -0.1951440573, 0.0377439708, 0.0875855684, 0.3257237077, -0.4119556546, -0.0675453171, -0.0734538212, -0.0052058506, -0.1802845597, 0.0986032933, -0.0555796176, 0.0971230492, -0.399611026, 0.3328242004, 0.2897825539, -0.0790662915, -0.2431261986, 0.0886343941, 0.2158127427, -0.3370556533, -0.0034608012, -0.0489907339, -0.2919397652, -0.0261764806, 0.3307100832, 0.1098189428, -0.0008769907, -0.0217666477, 0.0280251335, -0.0548452698, -0.0925328285, -0.0439247675, -0.0732299536, 0.0209217742, -0.0511662625, 0.4193310142, 0.0076078898, -0.1446308196, 0.4017486572, -0.2536608279, -0.0489245988, 0.3501355648, 0.063693583, -0.0958797336, -0.1087074727, -0.3498902321, -0.1398877352, -0.4293369949, 0.3910627663, 0.0847560912, 0.0419317596, 0.0926316753, 0.4331049323, -0.0260847062, 0.3013547361, -0.0312164519, -0.0848051086, -0.2977058589, 0.364574194, -0.0561165623, -0.4676564336, 0.0119416304, 0.0828355849, 0.3591904938, 0.1638269424, -0.4252472818, 0.3267477155, -0.1509072334, 0.1628202051, 0.001105045, -0.0242281388, 0.0609547198, -0.087227501, -0.02182349, 0.0364302173, -0.2417159528, -0.0141800055, -0.0320446305, 0.147583738, 0.0513689332, 0.4584293067, -0.0371928811, 0.6513357759, 0.0874643251, -0.0882314295, 0.4855556488, -0.3082398772, 0.3818776608, -0.2096710205, -0.3737451136, -0.0855747014, -0.3519817889, -0.1924464554, 0.2677484155, -0.0335836522, -0.0334149785, -0.1257757396, 0.0035178557, -0.4046861529, -0.0377029404, 0.1836318821, 0.030697152, -0.0148299858, -0.1005958244, -0.0133009916, -0.0116458982, -0.2373631299, -0.1942585856, 0.273964107, -0.1513423473, 0.0633874387, -0.2242484838, -0.0615805015, -0.3029372096, 0.3292051852, -0.0136234276, 0.3102865219, 0.0106145442, -0.0176949576, 0.0972969681, -0.1252224296, 0.7449790835, 0.1892859787, -0.1550699919, 0.1278290898, -0.0241139401, -0.441583544, -0.1217611507, 0.1906312406, 0.3073362112, 0.0744618401, 0.3548654914, -0.0703260079, -0.0096938089, -0.1443435401, 0.3546779752, 0.0432527438, -0.3951281309, -0.5194917321, -0.2349791378, -0.3830536604, -0.2121352851, -0.0898667276, 0.2882787287, -0.3244076669, -0.14238666, 0.1183613986, -0.2990534604, 0.0601568706, 0.1533811539, 0.2973895967, -0.1129140556, 0.1448959559, 0.0468353443, 0.0698047876, 0.3769119084, 0.7987186313, -0.0785761774, -0.6220771074, 0.0848433003, -0.2050264031, 0.3853482604, 0.0478198975, -0.2032052726, 0.1289870441, 0.0907348841, 0.0620337725, 0.0379482694, 0.0144372974, 0.303686589, 0.0496552214, -0.3454541564, -0.5439228415, 0.4874185622, -0.1259078681, 0.210259065, 0.3020802736, -0.2119996995, -0.1099810973, 0.1555224657, -0.3346247673, 0.6592135429, -0.4218298197, 0.1938304007, 0.3073365986, 0.056335818, 0.2584291697, -0.4451969862, 0.1323072761, -0.3919681609, -0.2109033316, -0.1043124199, -0.0712032095, 0.2393862456, 0.4321897328, -0.1212456822, 0.3118638098, -0.0741499662, 0.3325560093, 0.1131341308, 0.2438254505, -0.1005161256, -0.0864685029, -0.3010208607, 0.010423678, -0.143080771, -0.034952037, 0.0289588366, 0.0544645712, -0.180567503, -0.2016452998, -0.2461121678, 0.2200246155, -0.2911674976, 0.1154050231, -0.1109545827, -0.4686650634, 0.1963640451, 0.2380673289, -0.2087022215, -0.0851790532, -0.1240851358, 0.1550537646, 0.1596343368, -0.040175464, -0.2083746195, -0.0536956713, -0.0158853624, 0.0761262551, -0.2351238132, 0.1545511335, -0.1222788915, -0.0956744775, 0.2780734897, 0.2376573682, -0.0848070979, -0.5452089906, -0.5326194763, -0.4284161925, 0.0759812519, -0.1957319677, 0.0651981682, -0.0420787223, 0.0983416811, -0.1616349667, 0.185935244, -0.4688695073, -0.1020268127, 0.3918127716, -0.1116865277, 0.0939545557, 0.5907299519, 0.2193500102, -0.0168928299, -0.1411525458, 0.0642407387, 0.3081053793, -0.3531884253, 0.1170663685, 0.114149414, 0.3159500659, 0.1392528564, 0.2917453945, 0.1565803289, -0.0776725337, 0.0744548291, -0.5115903616, -0.3249695003, -0.0165289473, -0.001531433, 0.2479579449, 0.1672193259, 0.0818667188, 0.1726779193, 0.2032966465, -0.1562302709, 0.100462012, 0.1059290171, -0.0869574994, 0.2106328309, 0.1420165747, -0.1338726133, -0.1038192064, 0.0934976861, 0.1776404679, -0.0534451902, -0.1887510121, -0.079856135, 0.1501001269, 0.0983607396, 0.0232860073, -0.2034451962, -0.2526888549, -0.149706021, -0.1928057969, 0.0664087087, 0.0297824889, -0.0981118232, 0.0717604533, -0.2987650335, -0.0846543238, -0.5091864467, 0.0271217674, -0.5075390935, 0.223132357, 0.2992692292, 0.0485824421, 0.1217575222, 0.2004557103, -0.1724264324, -0.031158587, 0.1516267508, -0.136618793, 0.3009468615, -0.401475668, 0.2035068125, -0.0510654114, 0.3403372467, 0.4848609567, -0.2076414526, 0.2197109014, 0.0375867598, 0.134115085, -0.3825283945, 0.2754767835, 0.1172315702, -0.061629951, -0.0274847038, 0.1696753055, 0.1992114484, -0.2083074003, -0.0957768112, 0.0069103646, 0.4759891629, -0.0078226738, -0.0339508392, 0.4135628939, 0.0027144591, 0.1789696366, 0.2403351516, 0.1356374025, 0.0196202025, 0.7002615929, -0.2602290213, -0.00396503, -0.2352683246, 0.3014819026, -0.3278698027, -0.7641029358, 0.1616646349, 0.2355503887, -0.3533102274, -0.1676513106, 0.1258981079, 0.6017507315, -0.0233747624, 0.0114932545, -0.1145934314, -0.0448352583, 0.0140551915, 0.0483896546, -0.0662138537, -0.2536707222, -0.0708235875, 0.1856832057, -0.0595556833, 0.0145597989, 0.2749816477, 0.18766433, -0.1494832188, -0.4457592368, 0.065775238, 0.1728488207, 0.0665427595, -0.274838984, 0.3666119874, 0.2653485239, -0.08599177, 0.1805056036, -0.0413447432, 0.6402475834, 0.5041918159, 0.0924117267, -0.0617403314, -0.1215719059, -0.1139908507, -0.1794183552, 0.1778169423, 0.3488176465, 0.4212687314, 0.1485439092, 0.1135985553, -0.0401849225, 0.3160889447, 0.2067888379, 0.0996007398, -0.5459766984, -0.1189197525, -0.2083116919, -0.2577385902, -0.2266331911, 0.0241517965, -0.2890596986, 0.0209433828, 0.4277472794, 0.0739153922, 0.2772267759, -0.026822459, 0.0345674902, 0.0743340254, 0.3142198622, 0.2397757024, 0.4022898674, -0.4218082428, -0.0354187526, -0.7509753108, 0.1165278926, -0.3764894903, 0.0095928973, -0.0318588093, 0.1585378796, 0.1377413869, 0.0838608071, 0.1591724306, 0.2994238734, 0.1167234331, 0.2220780253, -0.056184765, -0.1846200824, -0.3380705714, 0.0264859702, -0.1750926226, -0.4655137062, 0.2213603109, -0.127932623, 0.0092109898, -0.2251860201, 0.2239884883, 0.2559673786, -0.0059870519, 0.4777292609, -0.1120112687, 0.6255967021, -0.0850183666, 0.3190014064, -0.3009390235, -0.0801897869, -0.1928056329, 0.5200990438, 0.2061499059, 0.2713998556, -0.1779932082, -0.10791637, -0.2153045684, 0.1574101299, -0.0065484298, -0.0705470294, 0.0667272955, -0.1510604024, -0.0018242069, -0.0584901869, 0.1522312462, 0.0920480266, -0.2229385823, -0.078172937, -0.1745536625, -0.1801850349, 0.1810827255, -0.4043288827, -0.341103524, 0.1487177908, 0.1261259913, 0.1018664911, 0.1396923214, -0.4524213374, 0.1217894629, 0.424474895, -0.1280170381, -0.4174261987, 0.1340314001, -0.2116188854, 0.1005704775, -0.1218525395, 0.4765019715, 0.1411092728, -0.3705091178, -0.1615716815, -0.3583215475 ]
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.2411834002, -0.319865644, -0.0681557357, 0.4316073358, 0.3625251949, 0.019154856, 0.5210206509, 0.4377133548, 0.2949125767, 0.0327751897, 0.0169625934, -0.1187047064, 0.0905916989, 0.1802895069, 0.0350660197, 0.113009423, 0.0730285496, 0.3988213837, 0.0317205191, 0.0699725002, -0.2188607603, 0.1208696142, 0.0058676414, 0.0575147867, -0.1244225949, 0.0723637715, -0.0082087917, 0.1169142276, -0.2343513817, -0.4013207853, 0.4197232723, 0.0784542486, 0.3328507245, 0.5207663774, -0.0001169051, 0.1564733982, 0.2654487193, -0.1856259704, -0.044199653, -0.5195807815, 0.0301296115, -0.5329569578, 0.2776662707, -0.1672024876, -0.0144888004, -0.1786804944, -0.1109990403, -0.0358059406, 0.301412493, 0.317545265, 0.1804958731, -0.2607496381, 0.0598920323, -0.0100190183, 0.2052919865, 0.0371791944, -0.0156857315, 0.4175470173, 0.1173956841, -0.1267607808, -0.0487308055, -0.1936671287, -0.2392430753, 0.358199358, 0.3196350634, 0.139939934, 0.0709673837, -0.1089671329, 0.2680704892, 0.1055050865, 0.6067356467, -0.3076421916, -0.1485475451, -0.0154003575, -0.0202966537, -0.4886515439, 0.2558158338, 0.404494673, -0.1521600783, 0.1173331663, -0.212212652, 0.2484469414, -0.2663930953, 0.202861771, -0.0673471689, -0.3531900346, -0.2522074878, 0.269318223, 0.2523402274, 0.0737476349, 0.333640039, -0.0937500149, 0.0268539954, 0.1806967556, -0.5556492805, 0.2796491385, -0.1176611185, -0.0904366001, 0.1637404859, 0.0962190926, 0.401421994, 0.1370621324, 0.0423450619, 0.1946977526, 0.3191300333, 0.1861325204, -0.0428145975, 0.0691048428, 0.0273854919, 0.3462177217, -0.2297834903, -0.233858332, -0.3881369233, -0.5049576759, 0.2381423116, -0.1538380235, 0.2674440145, -0.2704332173, -0.2479329109, -0.0960199684, -0.0361328907, -0.0094233667, -0.0528345108, 0.5738204122, 0.2158341259, 0.3802046776, -0.0542099625, 0.2572089732, -0.2112759054, -0.0986546725, -0.0803524852, 0.0201157909, -0.0576022975, 0.0522915013, 0.3777482212, -0.2166886479, 0.1214606985, 0.1762957573, -0.0435165651, -0.293874532, -0.1455052197, -0.4177227914, 0.0367244333, 0.2833079994, 0.2024738491, 0.0979529321, 0.2341530919, -0.281209439, -0.0606878959, 0.3805411458, -0.2301195264, -0.1685690582, 0.0972644836, 0.0963022336, -0.0661172718, 0.1656785458, -0.3956312239, 0.1563511789, 0.3519503474, -0.4384941161, 0.0334674604, -0.213484481, -0.2411233336, -0.3524810076, 0.2018902898, 0.2790595591, -0.7854660749, 0.3429476619, 0.0539065413, -0.031748578, 0.1149987057, 0.4237152934, -0.1483170092, 0.0611785613, -0.2709868252, 0.0921525285, 0.1406240612, 0.007542714, -0.6293671727, 0.330756247, -0.0460275225, 0.0895456001, 0.3120643497, 0.0645526275, 0.0512151979, 0.0891773179, -0.1080221236, 0.0185540132, 0.0231345557, 0.0440056249, -0.2607476413, -0.1291926205, 0.3187508881, 0.1426242292, -0.0647737607, -0.0676729903, 0.2388889194, -0.4087389708, 0.2025449872, -0.018087266, 0.1416162699, 0.1752467453, 0.1791316569, -0.1968237907, 0.0349739455, 0.0104333302, -0.449349463, 0.1433821619, 0.2848807275, -0.168701157, -0.2159445286, -0.0797309726, -0.3841182888, -0.029701205, -0.2681600451, -0.1242000088, -0.0246527623, 0.0725155771, 0.0595198162, -0.1440532357, -0.1857402772, 0.1161196902, -0.2237769067, -0.0112761781, -0.0158439651, 0.1422189623, 0.058799319, -0.1249886751, 0.1064723954, -0.0629007816, 0.2071678936, -0.0483337827, -0.2763524354, 0.2495909631, 0.1456866562, 0.0456151813, -0.2857955694, -0.1747877598, 0.0830198526, -0.2415059507, -0.087201193, 0.0237382054, 0.366371572, -0.1825467646, -0.3392809331, 0.2706233561, -0.1567005068, 0.3015140295, 0.1879755259, -0.3580714464, 0.3065019846, 0.0167202782, 0.1781936288, 0.0704916492, 0.1380853206, 0.0736546293, 0.4947432876, 0.2995414734, -0.0968419164, -0.1562504321, 0.5009903312, -0.0470439643, -0.2185633034, 0.3112596571, -0.1181774959, -0.1945350319, 0.0684309453, 0.0887454152, 0.3798215091, 0.1293765157, -0.1915310621, 0.0146641536, 0.1435026377, -0.2500293553, 0.1204059273, -0.2204346508, 0.147361815, 0.3965646327, 0.1270097345, -0.1272859275, -0.1951440573, 0.0377439708, 0.0875855684, 0.3257237077, -0.4119556546, -0.0675453171, -0.0734538212, -0.0052058506, -0.1802845597, 0.0986032933, -0.0555796176, 0.0971230492, -0.399611026, 0.3328242004, 0.2897825539, -0.0790662915, -0.2431261986, 0.0886343941, 0.2158127427, -0.3370556533, -0.0034608012, -0.0489907339, -0.2919397652, -0.0261764806, 0.3307100832, 0.1098189428, -0.0008769907, -0.0217666477, 0.0280251335, -0.0548452698, -0.0925328285, -0.0439247675, -0.0732299536, 0.0209217742, -0.0511662625, 0.4193310142, 0.0076078898, -0.1446308196, 0.4017486572, -0.2536608279, -0.0489245988, 0.3501355648, 0.063693583, -0.0958797336, -0.1087074727, -0.3498902321, -0.1398877352, -0.4293369949, 0.3910627663, 0.0847560912, 0.0419317596, 0.0926316753, 0.4331049323, -0.0260847062, 0.3013547361, -0.0312164519, -0.0848051086, -0.2977058589, 0.364574194, -0.0561165623, -0.4676564336, 0.0119416304, 0.0828355849, 0.3591904938, 0.1638269424, -0.4252472818, 0.3267477155, -0.1509072334, 0.1628202051, 0.001105045, -0.0242281388, 0.0609547198, -0.087227501, -0.02182349, 0.0364302173, -0.2417159528, -0.0141800055, -0.0320446305, 0.147583738, 0.0513689332, 0.4584293067, -0.0371928811, 0.6513357759, 0.0874643251, -0.0882314295, 0.4855556488, -0.3082398772, 0.3818776608, -0.2096710205, -0.3737451136, -0.0855747014, -0.3519817889, -0.1924464554, 0.2677484155, -0.0335836522, -0.0334149785, -0.1257757396, 0.0035178557, -0.4046861529, -0.0377029404, 0.1836318821, 0.030697152, -0.0148299858, -0.1005958244, -0.0133009916, -0.0116458982, -0.2373631299, -0.1942585856, 0.273964107, -0.1513423473, 0.0633874387, -0.2242484838, -0.0615805015, -0.3029372096, 0.3292051852, -0.0136234276, 0.3102865219, 0.0106145442, -0.0176949576, 0.0972969681, -0.1252224296, 0.7449790835, 0.1892859787, -0.1550699919, 0.1278290898, -0.0241139401, -0.441583544, -0.1217611507, 0.1906312406, 0.3073362112, 0.0744618401, 0.3548654914, -0.0703260079, -0.0096938089, -0.1443435401, 0.3546779752, 0.0432527438, -0.3951281309, -0.5194917321, -0.2349791378, -0.3830536604, -0.2121352851, -0.0898667276, 0.2882787287, -0.3244076669, -0.14238666, 0.1183613986, -0.2990534604, 0.0601568706, 0.1533811539, 0.2973895967, -0.1129140556, 0.1448959559, 0.0468353443, 0.0698047876, 0.3769119084, 0.7987186313, -0.0785761774, -0.6220771074, 0.0848433003, -0.2050264031, 0.3853482604, 0.0478198975, -0.2032052726, 0.1289870441, 0.0907348841, 0.0620337725, 0.0379482694, 0.0144372974, 0.303686589, 0.0496552214, -0.3454541564, -0.5439228415, 0.4874185622, -0.1259078681, 0.210259065, 0.3020802736, -0.2119996995, -0.1099810973, 0.1555224657, -0.3346247673, 0.6592135429, -0.4218298197, 0.1938304007, 0.3073365986, 0.056335818, 0.2584291697, -0.4451969862, 0.1323072761, -0.3919681609, -0.2109033316, -0.1043124199, -0.0712032095, 0.2393862456, 0.4321897328, -0.1212456822, 0.3118638098, -0.0741499662, 0.3325560093, 0.1131341308, 0.2438254505, -0.1005161256, -0.0864685029, -0.3010208607, 0.010423678, -0.143080771, -0.034952037, 0.0289588366, 0.0544645712, -0.180567503, -0.2016452998, -0.2461121678, 0.2200246155, -0.2911674976, 0.1154050231, -0.1109545827, -0.4686650634, 0.1963640451, 0.2380673289, -0.2087022215, -0.0851790532, -0.1240851358, 0.1550537646, 0.1596343368, -0.040175464, -0.2083746195, -0.0536956713, -0.0158853624, 0.0761262551, -0.2351238132, 0.1545511335, -0.1222788915, -0.0956744775, 0.2780734897, 0.2376573682, -0.0848070979, -0.5452089906, -0.5326194763, -0.4284161925, 0.0759812519, -0.1957319677, 0.0651981682, -0.0420787223, 0.0983416811, -0.1616349667, 0.185935244, -0.4688695073, -0.1020268127, 0.3918127716, -0.1116865277, 0.0939545557, 0.5907299519, 0.2193500102, -0.0168928299, -0.1411525458, 0.0642407387, 0.3081053793, -0.3531884253, 0.1170663685, 0.114149414, 0.3159500659, 0.1392528564, 0.2917453945, 0.1565803289, -0.0776725337, 0.0744548291, -0.5115903616, -0.3249695003, -0.0165289473, -0.001531433, 0.2479579449, 0.1672193259, 0.0818667188, 0.1726779193, 0.2032966465, -0.1562302709, 0.100462012, 0.1059290171, -0.0869574994, 0.2106328309, 0.1420165747, -0.1338726133, -0.1038192064, 0.0934976861, 0.1776404679, -0.0534451902, -0.1887510121, -0.079856135, 0.1501001269, 0.0983607396, 0.0232860073, -0.2034451962, -0.2526888549, -0.149706021, -0.1928057969, 0.0664087087, 0.0297824889, -0.0981118232, 0.0717604533, -0.2987650335, -0.0846543238, -0.5091864467, 0.0271217674, -0.5075390935, 0.223132357, 0.2992692292, 0.0485824421, 0.1217575222, 0.2004557103, -0.1724264324, -0.031158587, 0.1516267508, -0.136618793, 0.3009468615, -0.401475668, 0.2035068125, -0.0510654114, 0.3403372467, 0.4848609567, -0.2076414526, 0.2197109014, 0.0375867598, 0.134115085, -0.3825283945, 0.2754767835, 0.1172315702, -0.061629951, -0.0274847038, 0.1696753055, 0.1992114484, -0.2083074003, -0.0957768112, 0.0069103646, 0.4759891629, -0.0078226738, -0.0339508392, 0.4135628939, 0.0027144591, 0.1789696366, 0.2403351516, 0.1356374025, 0.0196202025, 0.7002615929, -0.2602290213, -0.00396503, -0.2352683246, 0.3014819026, -0.3278698027, -0.7641029358, 0.1616646349, 0.2355503887, -0.3533102274, -0.1676513106, 0.1258981079, 0.6017507315, -0.0233747624, 0.0114932545, -0.1145934314, -0.0448352583, 0.0140551915, 0.0483896546, -0.0662138537, -0.2536707222, -0.0708235875, 0.1856832057, -0.0595556833, 0.0145597989, 0.2749816477, 0.18766433, -0.1494832188, -0.4457592368, 0.065775238, 0.1728488207, 0.0665427595, -0.274838984, 0.3666119874, 0.2653485239, -0.08599177, 0.1805056036, -0.0413447432, 0.6402475834, 0.5041918159, 0.0924117267, -0.0617403314, -0.1215719059, -0.1139908507, -0.1794183552, 0.1778169423, 0.3488176465, 0.4212687314, 0.1485439092, 0.1135985553, -0.0401849225, 0.3160889447, 0.2067888379, 0.0996007398, -0.5459766984, -0.1189197525, -0.2083116919, -0.2577385902, -0.2266331911, 0.0241517965, -0.2890596986, 0.0209433828, 0.4277472794, 0.0739153922, 0.2772267759, -0.026822459, 0.0345674902, 0.0743340254, 0.3142198622, 0.2397757024, 0.4022898674, -0.4218082428, -0.0354187526, -0.7509753108, 0.1165278926, -0.3764894903, 0.0095928973, -0.0318588093, 0.1585378796, 0.1377413869, 0.0838608071, 0.1591724306, 0.2994238734, 0.1167234331, 0.2220780253, -0.056184765, -0.1846200824, -0.3380705714, 0.0264859702, -0.1750926226, -0.4655137062, 0.2213603109, -0.127932623, 0.0092109898, -0.2251860201, 0.2239884883, 0.2559673786, -0.0059870519, 0.4777292609, -0.1120112687, 0.6255967021, -0.0850183666, 0.3190014064, -0.3009390235, -0.0801897869, -0.1928056329, 0.5200990438, 0.2061499059, 0.2713998556, -0.1779932082, -0.10791637, -0.2153045684, 0.1574101299, -0.0065484298, -0.0705470294, 0.0667272955, -0.1510604024, -0.0018242069, -0.0584901869, 0.1522312462, 0.0920480266, -0.2229385823, -0.078172937, -0.1745536625, -0.1801850349, 0.1810827255, -0.4043288827, -0.341103524, 0.1487177908, 0.1261259913, 0.1018664911, 0.1396923214, -0.4524213374, 0.1217894629, 0.424474895, -0.1280170381, -0.4174261987, 0.1340314001, -0.2116188854, 0.1005704775, -0.1218525395, 0.4765019715, 0.1411092728, -0.3705091178, -0.1615716815, -0.3583215475 ]
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.2411834002, -0.319865644, -0.0681557357, 0.4316073358, 0.3625251949, 0.019154856, 0.5210206509, 0.4377133548, 0.2949125767, 0.0327751897, 0.0169625934, -0.1187047064, 0.0905916989, 0.1802895069, 0.0350660197, 0.113009423, 0.0730285496, 0.3988213837, 0.0317205191, 0.0699725002, -0.2188607603, 0.1208696142, 0.0058676414, 0.0575147867, -0.1244225949, 0.0723637715, -0.0082087917, 0.1169142276, -0.2343513817, -0.4013207853, 0.4197232723, 0.0784542486, 0.3328507245, 0.5207663774, -0.0001169051, 0.1564733982, 0.2654487193, -0.1856259704, -0.044199653, -0.5195807815, 0.0301296115, -0.5329569578, 0.2776662707, -0.1672024876, -0.0144888004, -0.1786804944, -0.1109990403, -0.0358059406, 0.301412493, 0.317545265, 0.1804958731, -0.2607496381, 0.0598920323, -0.0100190183, 0.2052919865, 0.0371791944, -0.0156857315, 0.4175470173, 0.1173956841, -0.1267607808, -0.0487308055, -0.1936671287, -0.2392430753, 0.358199358, 0.3196350634, 0.139939934, 0.0709673837, -0.1089671329, 0.2680704892, 0.1055050865, 0.6067356467, -0.3076421916, -0.1485475451, -0.0154003575, -0.0202966537, -0.4886515439, 0.2558158338, 0.404494673, -0.1521600783, 0.1173331663, -0.212212652, 0.2484469414, -0.2663930953, 0.202861771, -0.0673471689, -0.3531900346, -0.2522074878, 0.269318223, 0.2523402274, 0.0737476349, 0.333640039, -0.0937500149, 0.0268539954, 0.1806967556, -0.5556492805, 0.2796491385, -0.1176611185, -0.0904366001, 0.1637404859, 0.0962190926, 0.401421994, 0.1370621324, 0.0423450619, 0.1946977526, 0.3191300333, 0.1861325204, -0.0428145975, 0.0691048428, 0.0273854919, 0.3462177217, -0.2297834903, -0.233858332, -0.3881369233, -0.5049576759, 0.2381423116, -0.1538380235, 0.2674440145, -0.2704332173, -0.2479329109, -0.0960199684, -0.0361328907, -0.0094233667, -0.0528345108, 0.5738204122, 0.2158341259, 0.3802046776, -0.0542099625, 0.2572089732, -0.2112759054, -0.0986546725, -0.0803524852, 0.0201157909, -0.0576022975, 0.0522915013, 0.3777482212, -0.2166886479, 0.1214606985, 0.1762957573, -0.0435165651, -0.293874532, -0.1455052197, -0.4177227914, 0.0367244333, 0.2833079994, 0.2024738491, 0.0979529321, 0.2341530919, -0.281209439, -0.0606878959, 0.3805411458, -0.2301195264, -0.1685690582, 0.0972644836, 0.0963022336, -0.0661172718, 0.1656785458, -0.3956312239, 0.1563511789, 0.3519503474, -0.4384941161, 0.0334674604, -0.213484481, -0.2411233336, -0.3524810076, 0.2018902898, 0.2790595591, -0.7854660749, 0.3429476619, 0.0539065413, -0.031748578, 0.1149987057, 0.4237152934, -0.1483170092, 0.0611785613, -0.2709868252, 0.0921525285, 0.1406240612, 0.007542714, -0.6293671727, 0.330756247, -0.0460275225, 0.0895456001, 0.3120643497, 0.0645526275, 0.0512151979, 0.0891773179, -0.1080221236, 0.0185540132, 0.0231345557, 0.0440056249, -0.2607476413, -0.1291926205, 0.3187508881, 0.1426242292, -0.0647737607, -0.0676729903, 0.2388889194, -0.4087389708, 0.2025449872, -0.018087266, 0.1416162699, 0.1752467453, 0.1791316569, -0.1968237907, 0.0349739455, 0.0104333302, -0.449349463, 0.1433821619, 0.2848807275, -0.168701157, -0.2159445286, -0.0797309726, -0.3841182888, -0.029701205, -0.2681600451, -0.1242000088, -0.0246527623, 0.0725155771, 0.0595198162, -0.1440532357, -0.1857402772, 0.1161196902, -0.2237769067, -0.0112761781, -0.0158439651, 0.1422189623, 0.058799319, -0.1249886751, 0.1064723954, -0.0629007816, 0.2071678936, -0.0483337827, -0.2763524354, 0.2495909631, 0.1456866562, 0.0456151813, -0.2857955694, -0.1747877598, 0.0830198526, -0.2415059507, -0.087201193, 0.0237382054, 0.366371572, -0.1825467646, -0.3392809331, 0.2706233561, -0.1567005068, 0.3015140295, 0.1879755259, -0.3580714464, 0.3065019846, 0.0167202782, 0.1781936288, 0.0704916492, 0.1380853206, 0.0736546293, 0.4947432876, 0.2995414734, -0.0968419164, -0.1562504321, 0.5009903312, -0.0470439643, -0.2185633034, 0.3112596571, -0.1181774959, -0.1945350319, 0.0684309453, 0.0887454152, 0.3798215091, 0.1293765157, -0.1915310621, 0.0146641536, 0.1435026377, -0.2500293553, 0.1204059273, -0.2204346508, 0.147361815, 0.3965646327, 0.1270097345, -0.1272859275, -0.1951440573, 0.0377439708, 0.0875855684, 0.3257237077, -0.4119556546, -0.0675453171, -0.0734538212, -0.0052058506, -0.1802845597, 0.0986032933, -0.0555796176, 0.0971230492, -0.399611026, 0.3328242004, 0.2897825539, -0.0790662915, -0.2431261986, 0.0886343941, 0.2158127427, -0.3370556533, -0.0034608012, -0.0489907339, -0.2919397652, -0.0261764806, 0.3307100832, 0.1098189428, -0.0008769907, -0.0217666477, 0.0280251335, -0.0548452698, -0.0925328285, -0.0439247675, -0.0732299536, 0.0209217742, -0.0511662625, 0.4193310142, 0.0076078898, -0.1446308196, 0.4017486572, -0.2536608279, -0.0489245988, 0.3501355648, 0.063693583, -0.0958797336, -0.1087074727, -0.3498902321, -0.1398877352, -0.4293369949, 0.3910627663, 0.0847560912, 0.0419317596, 0.0926316753, 0.4331049323, -0.0260847062, 0.3013547361, -0.0312164519, -0.0848051086, -0.2977058589, 0.364574194, -0.0561165623, -0.4676564336, 0.0119416304, 0.0828355849, 0.3591904938, 0.1638269424, -0.4252472818, 0.3267477155, -0.1509072334, 0.1628202051, 0.001105045, -0.0242281388, 0.0609547198, -0.087227501, -0.02182349, 0.0364302173, -0.2417159528, -0.0141800055, -0.0320446305, 0.147583738, 0.0513689332, 0.4584293067, -0.0371928811, 0.6513357759, 0.0874643251, -0.0882314295, 0.4855556488, -0.3082398772, 0.3818776608, -0.2096710205, -0.3737451136, -0.0855747014, -0.3519817889, -0.1924464554, 0.2677484155, -0.0335836522, -0.0334149785, -0.1257757396, 0.0035178557, -0.4046861529, -0.0377029404, 0.1836318821, 0.030697152, -0.0148299858, -0.1005958244, -0.0133009916, -0.0116458982, -0.2373631299, -0.1942585856, 0.273964107, -0.1513423473, 0.0633874387, -0.2242484838, -0.0615805015, -0.3029372096, 0.3292051852, -0.0136234276, 0.3102865219, 0.0106145442, -0.0176949576, 0.0972969681, -0.1252224296, 0.7449790835, 0.1892859787, -0.1550699919, 0.1278290898, -0.0241139401, -0.441583544, -0.1217611507, 0.1906312406, 0.3073362112, 0.0744618401, 0.3548654914, -0.0703260079, -0.0096938089, -0.1443435401, 0.3546779752, 0.0432527438, -0.3951281309, -0.5194917321, -0.2349791378, -0.3830536604, -0.2121352851, -0.0898667276, 0.2882787287, -0.3244076669, -0.14238666, 0.1183613986, -0.2990534604, 0.0601568706, 0.1533811539, 0.2973895967, -0.1129140556, 0.1448959559, 0.0468353443, 0.0698047876, 0.3769119084, 0.7987186313, -0.0785761774, -0.6220771074, 0.0848433003, -0.2050264031, 0.3853482604, 0.0478198975, -0.2032052726, 0.1289870441, 0.0907348841, 0.0620337725, 0.0379482694, 0.0144372974, 0.303686589, 0.0496552214, -0.3454541564, -0.5439228415, 0.4874185622, -0.1259078681, 0.210259065, 0.3020802736, -0.2119996995, -0.1099810973, 0.1555224657, -0.3346247673, 0.6592135429, -0.4218298197, 0.1938304007, 0.3073365986, 0.056335818, 0.2584291697, -0.4451969862, 0.1323072761, -0.3919681609, -0.2109033316, -0.1043124199, -0.0712032095, 0.2393862456, 0.4321897328, -0.1212456822, 0.3118638098, -0.0741499662, 0.3325560093, 0.1131341308, 0.2438254505, -0.1005161256, -0.0864685029, -0.3010208607, 0.010423678, -0.143080771, -0.034952037, 0.0289588366, 0.0544645712, -0.180567503, -0.2016452998, -0.2461121678, 0.2200246155, -0.2911674976, 0.1154050231, -0.1109545827, -0.4686650634, 0.1963640451, 0.2380673289, -0.2087022215, -0.0851790532, -0.1240851358, 0.1550537646, 0.1596343368, -0.040175464, -0.2083746195, -0.0536956713, -0.0158853624, 0.0761262551, -0.2351238132, 0.1545511335, -0.1222788915, -0.0956744775, 0.2780734897, 0.2376573682, -0.0848070979, -0.5452089906, -0.5326194763, -0.4284161925, 0.0759812519, -0.1957319677, 0.0651981682, -0.0420787223, 0.0983416811, -0.1616349667, 0.185935244, -0.4688695073, -0.1020268127, 0.3918127716, -0.1116865277, 0.0939545557, 0.5907299519, 0.2193500102, -0.0168928299, -0.1411525458, 0.0642407387, 0.3081053793, -0.3531884253, 0.1170663685, 0.114149414, 0.3159500659, 0.1392528564, 0.2917453945, 0.1565803289, -0.0776725337, 0.0744548291, -0.5115903616, -0.3249695003, -0.0165289473, -0.001531433, 0.2479579449, 0.1672193259, 0.0818667188, 0.1726779193, 0.2032966465, -0.1562302709, 0.100462012, 0.1059290171, -0.0869574994, 0.2106328309, 0.1420165747, -0.1338726133, -0.1038192064, 0.0934976861, 0.1776404679, -0.0534451902, -0.1887510121, -0.079856135, 0.1501001269, 0.0983607396, 0.0232860073, -0.2034451962, -0.2526888549, -0.149706021, -0.1928057969, 0.0664087087, 0.0297824889, -0.0981118232, 0.0717604533, -0.2987650335, -0.0846543238, -0.5091864467, 0.0271217674, -0.5075390935, 0.223132357, 0.2992692292, 0.0485824421, 0.1217575222, 0.2004557103, -0.1724264324, -0.031158587, 0.1516267508, -0.136618793, 0.3009468615, -0.401475668, 0.2035068125, -0.0510654114, 0.3403372467, 0.4848609567, -0.2076414526, 0.2197109014, 0.0375867598, 0.134115085, -0.3825283945, 0.2754767835, 0.1172315702, -0.061629951, -0.0274847038, 0.1696753055, 0.1992114484, -0.2083074003, -0.0957768112, 0.0069103646, 0.4759891629, -0.0078226738, -0.0339508392, 0.4135628939, 0.0027144591, 0.1789696366, 0.2403351516, 0.1356374025, 0.0196202025, 0.7002615929, -0.2602290213, -0.00396503, -0.2352683246, 0.3014819026, -0.3278698027, -0.7641029358, 0.1616646349, 0.2355503887, -0.3533102274, -0.1676513106, 0.1258981079, 0.6017507315, -0.0233747624, 0.0114932545, -0.1145934314, -0.0448352583, 0.0140551915, 0.0483896546, -0.0662138537, -0.2536707222, -0.0708235875, 0.1856832057, -0.0595556833, 0.0145597989, 0.2749816477, 0.18766433, -0.1494832188, -0.4457592368, 0.065775238, 0.1728488207, 0.0665427595, -0.274838984, 0.3666119874, 0.2653485239, -0.08599177, 0.1805056036, -0.0413447432, 0.6402475834, 0.5041918159, 0.0924117267, -0.0617403314, -0.1215719059, -0.1139908507, -0.1794183552, 0.1778169423, 0.3488176465, 0.4212687314, 0.1485439092, 0.1135985553, -0.0401849225, 0.3160889447, 0.2067888379, 0.0996007398, -0.5459766984, -0.1189197525, -0.2083116919, -0.2577385902, -0.2266331911, 0.0241517965, -0.2890596986, 0.0209433828, 0.4277472794, 0.0739153922, 0.2772267759, -0.026822459, 0.0345674902, 0.0743340254, 0.3142198622, 0.2397757024, 0.4022898674, -0.4218082428, -0.0354187526, -0.7509753108, 0.1165278926, -0.3764894903, 0.0095928973, -0.0318588093, 0.1585378796, 0.1377413869, 0.0838608071, 0.1591724306, 0.2994238734, 0.1167234331, 0.2220780253, -0.056184765, -0.1846200824, -0.3380705714, 0.0264859702, -0.1750926226, -0.4655137062, 0.2213603109, -0.127932623, 0.0092109898, -0.2251860201, 0.2239884883, 0.2559673786, -0.0059870519, 0.4777292609, -0.1120112687, 0.6255967021, -0.0850183666, 0.3190014064, -0.3009390235, -0.0801897869, -0.1928056329, 0.5200990438, 0.2061499059, 0.2713998556, -0.1779932082, -0.10791637, -0.2153045684, 0.1574101299, -0.0065484298, -0.0705470294, 0.0667272955, -0.1510604024, -0.0018242069, -0.0584901869, 0.1522312462, 0.0920480266, -0.2229385823, -0.078172937, -0.1745536625, -0.1801850349, 0.1810827255, -0.4043288827, -0.341103524, 0.1487177908, 0.1261259913, 0.1018664911, 0.1396923214, -0.4524213374, 0.1217894629, 0.424474895, -0.1280170381, -0.4174261987, 0.1340314001, -0.2116188854, 0.1005704775, -0.1218525395, 0.4765019715, 0.1411092728, -0.3705091178, -0.1615716815, -0.3583215475 ]
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) > ``` This did not work for me, I got `TypeError: __init__() got an unexpected keyword argument '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?
82
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) > ``` This did not work for me, I got `TypeError: __init__() got an unexpected keyword argument 'read_options'`
[ -0.2411834002, -0.319865644, -0.0681557357, 0.4316073358, 0.3625251949, 0.019154856, 0.5210206509, 0.4377133548, 0.2949125767, 0.0327751897, 0.0169625934, -0.1187047064, 0.0905916989, 0.1802895069, 0.0350660197, 0.113009423, 0.0730285496, 0.3988213837, 0.0317205191, 0.0699725002, -0.2188607603, 0.1208696142, 0.0058676414, 0.0575147867, -0.1244225949, 0.0723637715, -0.0082087917, 0.1169142276, -0.2343513817, -0.4013207853, 0.4197232723, 0.0784542486, 0.3328507245, 0.5207663774, -0.0001169051, 0.1564733982, 0.2654487193, -0.1856259704, -0.044199653, -0.5195807815, 0.0301296115, -0.5329569578, 0.2776662707, -0.1672024876, -0.0144888004, -0.1786804944, -0.1109990403, -0.0358059406, 0.301412493, 0.317545265, 0.1804958731, -0.2607496381, 0.0598920323, -0.0100190183, 0.2052919865, 0.0371791944, -0.0156857315, 0.4175470173, 0.1173956841, -0.1267607808, -0.0487308055, -0.1936671287, -0.2392430753, 0.358199358, 0.3196350634, 0.139939934, 0.0709673837, -0.1089671329, 0.2680704892, 0.1055050865, 0.6067356467, -0.3076421916, -0.1485475451, -0.0154003575, -0.0202966537, -0.4886515439, 0.2558158338, 0.404494673, -0.1521600783, 0.1173331663, -0.212212652, 0.2484469414, -0.2663930953, 0.202861771, -0.0673471689, -0.3531900346, -0.2522074878, 0.269318223, 0.2523402274, 0.0737476349, 0.333640039, -0.0937500149, 0.0268539954, 0.1806967556, -0.5556492805, 0.2796491385, -0.1176611185, -0.0904366001, 0.1637404859, 0.0962190926, 0.401421994, 0.1370621324, 0.0423450619, 0.1946977526, 0.3191300333, 0.1861325204, -0.0428145975, 0.0691048428, 0.0273854919, 0.3462177217, -0.2297834903, -0.233858332, -0.3881369233, -0.5049576759, 0.2381423116, -0.1538380235, 0.2674440145, -0.2704332173, -0.2479329109, -0.0960199684, -0.0361328907, -0.0094233667, -0.0528345108, 0.5738204122, 0.2158341259, 0.3802046776, -0.0542099625, 0.2572089732, -0.2112759054, -0.0986546725, -0.0803524852, 0.0201157909, -0.0576022975, 0.0522915013, 0.3777482212, -0.2166886479, 0.1214606985, 0.1762957573, -0.0435165651, -0.293874532, -0.1455052197, -0.4177227914, 0.0367244333, 0.2833079994, 0.2024738491, 0.0979529321, 0.2341530919, -0.281209439, -0.0606878959, 0.3805411458, -0.2301195264, -0.1685690582, 0.0972644836, 0.0963022336, -0.0661172718, 0.1656785458, -0.3956312239, 0.1563511789, 0.3519503474, -0.4384941161, 0.0334674604, -0.213484481, -0.2411233336, -0.3524810076, 0.2018902898, 0.2790595591, -0.7854660749, 0.3429476619, 0.0539065413, -0.031748578, 0.1149987057, 0.4237152934, -0.1483170092, 0.0611785613, -0.2709868252, 0.0921525285, 0.1406240612, 0.007542714, -0.6293671727, 0.330756247, -0.0460275225, 0.0895456001, 0.3120643497, 0.0645526275, 0.0512151979, 0.0891773179, -0.1080221236, 0.0185540132, 0.0231345557, 0.0440056249, -0.2607476413, -0.1291926205, 0.3187508881, 0.1426242292, -0.0647737607, -0.0676729903, 0.2388889194, -0.4087389708, 0.2025449872, -0.018087266, 0.1416162699, 0.1752467453, 0.1791316569, -0.1968237907, 0.0349739455, 0.0104333302, -0.449349463, 0.1433821619, 0.2848807275, -0.168701157, -0.2159445286, -0.0797309726, -0.3841182888, -0.029701205, -0.2681600451, -0.1242000088, -0.0246527623, 0.0725155771, 0.0595198162, -0.1440532357, -0.1857402772, 0.1161196902, -0.2237769067, -0.0112761781, -0.0158439651, 0.1422189623, 0.058799319, -0.1249886751, 0.1064723954, -0.0629007816, 0.2071678936, -0.0483337827, -0.2763524354, 0.2495909631, 0.1456866562, 0.0456151813, -0.2857955694, -0.1747877598, 0.0830198526, -0.2415059507, -0.087201193, 0.0237382054, 0.366371572, -0.1825467646, -0.3392809331, 0.2706233561, -0.1567005068, 0.3015140295, 0.1879755259, -0.3580714464, 0.3065019846, 0.0167202782, 0.1781936288, 0.0704916492, 0.1380853206, 0.0736546293, 0.4947432876, 0.2995414734, -0.0968419164, -0.1562504321, 0.5009903312, -0.0470439643, -0.2185633034, 0.3112596571, -0.1181774959, -0.1945350319, 0.0684309453, 0.0887454152, 0.3798215091, 0.1293765157, -0.1915310621, 0.0146641536, 0.1435026377, -0.2500293553, 0.1204059273, -0.2204346508, 0.147361815, 0.3965646327, 0.1270097345, -0.1272859275, -0.1951440573, 0.0377439708, 0.0875855684, 0.3257237077, -0.4119556546, -0.0675453171, -0.0734538212, -0.0052058506, -0.1802845597, 0.0986032933, -0.0555796176, 0.0971230492, -0.399611026, 0.3328242004, 0.2897825539, -0.0790662915, -0.2431261986, 0.0886343941, 0.2158127427, -0.3370556533, -0.0034608012, -0.0489907339, -0.2919397652, -0.0261764806, 0.3307100832, 0.1098189428, -0.0008769907, -0.0217666477, 0.0280251335, -0.0548452698, -0.0925328285, -0.0439247675, -0.0732299536, 0.0209217742, -0.0511662625, 0.4193310142, 0.0076078898, -0.1446308196, 0.4017486572, -0.2536608279, -0.0489245988, 0.3501355648, 0.063693583, -0.0958797336, -0.1087074727, -0.3498902321, -0.1398877352, -0.4293369949, 0.3910627663, 0.0847560912, 0.0419317596, 0.0926316753, 0.4331049323, -0.0260847062, 0.3013547361, -0.0312164519, -0.0848051086, -0.2977058589, 0.364574194, -0.0561165623, -0.4676564336, 0.0119416304, 0.0828355849, 0.3591904938, 0.1638269424, -0.4252472818, 0.3267477155, -0.1509072334, 0.1628202051, 0.001105045, -0.0242281388, 0.0609547198, -0.087227501, -0.02182349, 0.0364302173, -0.2417159528, -0.0141800055, -0.0320446305, 0.147583738, 0.0513689332, 0.4584293067, -0.0371928811, 0.6513357759, 0.0874643251, -0.0882314295, 0.4855556488, -0.3082398772, 0.3818776608, -0.2096710205, -0.3737451136, -0.0855747014, -0.3519817889, -0.1924464554, 0.2677484155, -0.0335836522, -0.0334149785, -0.1257757396, 0.0035178557, -0.4046861529, -0.0377029404, 0.1836318821, 0.030697152, -0.0148299858, -0.1005958244, -0.0133009916, -0.0116458982, -0.2373631299, -0.1942585856, 0.273964107, -0.1513423473, 0.0633874387, -0.2242484838, -0.0615805015, -0.3029372096, 0.3292051852, -0.0136234276, 0.3102865219, 0.0106145442, -0.0176949576, 0.0972969681, -0.1252224296, 0.7449790835, 0.1892859787, -0.1550699919, 0.1278290898, -0.0241139401, -0.441583544, -0.1217611507, 0.1906312406, 0.3073362112, 0.0744618401, 0.3548654914, -0.0703260079, -0.0096938089, -0.1443435401, 0.3546779752, 0.0432527438, -0.3951281309, -0.5194917321, -0.2349791378, -0.3830536604, -0.2121352851, -0.0898667276, 0.2882787287, -0.3244076669, -0.14238666, 0.1183613986, -0.2990534604, 0.0601568706, 0.1533811539, 0.2973895967, -0.1129140556, 0.1448959559, 0.0468353443, 0.0698047876, 0.3769119084, 0.7987186313, -0.0785761774, -0.6220771074, 0.0848433003, -0.2050264031, 0.3853482604, 0.0478198975, -0.2032052726, 0.1289870441, 0.0907348841, 0.0620337725, 0.0379482694, 0.0144372974, 0.303686589, 0.0496552214, -0.3454541564, -0.5439228415, 0.4874185622, -0.1259078681, 0.210259065, 0.3020802736, -0.2119996995, -0.1099810973, 0.1555224657, -0.3346247673, 0.6592135429, -0.4218298197, 0.1938304007, 0.3073365986, 0.056335818, 0.2584291697, -0.4451969862, 0.1323072761, -0.3919681609, -0.2109033316, -0.1043124199, -0.0712032095, 0.2393862456, 0.4321897328, -0.1212456822, 0.3118638098, -0.0741499662, 0.3325560093, 0.1131341308, 0.2438254505, -0.1005161256, -0.0864685029, -0.3010208607, 0.010423678, -0.143080771, -0.034952037, 0.0289588366, 0.0544645712, -0.180567503, -0.2016452998, -0.2461121678, 0.2200246155, -0.2911674976, 0.1154050231, -0.1109545827, -0.4686650634, 0.1963640451, 0.2380673289, -0.2087022215, -0.0851790532, -0.1240851358, 0.1550537646, 0.1596343368, -0.040175464, -0.2083746195, -0.0536956713, -0.0158853624, 0.0761262551, -0.2351238132, 0.1545511335, -0.1222788915, -0.0956744775, 0.2780734897, 0.2376573682, -0.0848070979, -0.5452089906, -0.5326194763, -0.4284161925, 0.0759812519, -0.1957319677, 0.0651981682, -0.0420787223, 0.0983416811, -0.1616349667, 0.185935244, -0.4688695073, -0.1020268127, 0.3918127716, -0.1116865277, 0.0939545557, 0.5907299519, 0.2193500102, -0.0168928299, -0.1411525458, 0.0642407387, 0.3081053793, -0.3531884253, 0.1170663685, 0.114149414, 0.3159500659, 0.1392528564, 0.2917453945, 0.1565803289, -0.0776725337, 0.0744548291, -0.5115903616, -0.3249695003, -0.0165289473, -0.001531433, 0.2479579449, 0.1672193259, 0.0818667188, 0.1726779193, 0.2032966465, -0.1562302709, 0.100462012, 0.1059290171, -0.0869574994, 0.2106328309, 0.1420165747, -0.1338726133, -0.1038192064, 0.0934976861, 0.1776404679, -0.0534451902, -0.1887510121, -0.079856135, 0.1501001269, 0.0983607396, 0.0232860073, -0.2034451962, -0.2526888549, -0.149706021, -0.1928057969, 0.0664087087, 0.0297824889, -0.0981118232, 0.0717604533, -0.2987650335, -0.0846543238, -0.5091864467, 0.0271217674, -0.5075390935, 0.223132357, 0.2992692292, 0.0485824421, 0.1217575222, 0.2004557103, -0.1724264324, -0.031158587, 0.1516267508, -0.136618793, 0.3009468615, -0.401475668, 0.2035068125, -0.0510654114, 0.3403372467, 0.4848609567, -0.2076414526, 0.2197109014, 0.0375867598, 0.134115085, -0.3825283945, 0.2754767835, 0.1172315702, -0.061629951, -0.0274847038, 0.1696753055, 0.1992114484, -0.2083074003, -0.0957768112, 0.0069103646, 0.4759891629, -0.0078226738, -0.0339508392, 0.4135628939, 0.0027144591, 0.1789696366, 0.2403351516, 0.1356374025, 0.0196202025, 0.7002615929, -0.2602290213, -0.00396503, -0.2352683246, 0.3014819026, -0.3278698027, -0.7641029358, 0.1616646349, 0.2355503887, -0.3533102274, -0.1676513106, 0.1258981079, 0.6017507315, -0.0233747624, 0.0114932545, -0.1145934314, -0.0448352583, 0.0140551915, 0.0483896546, -0.0662138537, -0.2536707222, -0.0708235875, 0.1856832057, -0.0595556833, 0.0145597989, 0.2749816477, 0.18766433, -0.1494832188, -0.4457592368, 0.065775238, 0.1728488207, 0.0665427595, -0.274838984, 0.3666119874, 0.2653485239, -0.08599177, 0.1805056036, -0.0413447432, 0.6402475834, 0.5041918159, 0.0924117267, -0.0617403314, -0.1215719059, -0.1139908507, -0.1794183552, 0.1778169423, 0.3488176465, 0.4212687314, 0.1485439092, 0.1135985553, -0.0401849225, 0.3160889447, 0.2067888379, 0.0996007398, -0.5459766984, -0.1189197525, -0.2083116919, -0.2577385902, -0.2266331911, 0.0241517965, -0.2890596986, 0.0209433828, 0.4277472794, 0.0739153922, 0.2772267759, -0.026822459, 0.0345674902, 0.0743340254, 0.3142198622, 0.2397757024, 0.4022898674, -0.4218082428, -0.0354187526, -0.7509753108, 0.1165278926, -0.3764894903, 0.0095928973, -0.0318588093, 0.1585378796, 0.1377413869, 0.0838608071, 0.1591724306, 0.2994238734, 0.1167234331, 0.2220780253, -0.056184765, -0.1846200824, -0.3380705714, 0.0264859702, -0.1750926226, -0.4655137062, 0.2213603109, -0.127932623, 0.0092109898, -0.2251860201, 0.2239884883, 0.2559673786, -0.0059870519, 0.4777292609, -0.1120112687, 0.6255967021, -0.0850183666, 0.3190014064, -0.3009390235, -0.0801897869, -0.1928056329, 0.5200990438, 0.2061499059, 0.2713998556, -0.1779932082, -0.10791637, -0.2153045684, 0.1574101299, -0.0065484298, -0.0705470294, 0.0667272955, -0.1510604024, -0.0018242069, -0.0584901869, 0.1522312462, 0.0920480266, -0.2229385823, -0.078172937, -0.1745536625, -0.1801850349, 0.1810827255, -0.4043288827, -0.341103524, 0.1487177908, 0.1261259913, 0.1018664911, 0.1396923214, -0.4524213374, 0.1217894629, 0.424474895, -0.1280170381, -0.4174261987, 0.1340314001, -0.2116188854, 0.1005704775, -0.1218525395, 0.4765019715, 0.1411092728, -0.3705091178, -0.1615716815, -0.3583215475 ]
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
Hi ! Yes because of issues with PyArrow's CSV reader we switched to using the Pandas CSV reader. In particular the `read_options` argument is not supported anymore, but you can pass any parameter of Pandas' `read_csv` function (see the list here in [Pandas documentation](https://pandas.pydata.org/docs/reference/api/pandas.read_csv.html))
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?
44
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? Hi ! Yes because of issues with PyArrow's CSV reader we switched to using the Pandas CSV reader. In particular the `read_options` argument is not supported anymore, but you can pass any parameter of Pandas' `read_csv` function (see the list here in [Pandas documentation](https://pandas.pydata.org/docs/reference/api/pandas.read_csv.html))
[ -0.2411834002, -0.319865644, -0.0681557357, 0.4316073358, 0.3625251949, 0.019154856, 0.5210206509, 0.4377133548, 0.2949125767, 0.0327751897, 0.0169625934, -0.1187047064, 0.0905916989, 0.1802895069, 0.0350660197, 0.113009423, 0.0730285496, 0.3988213837, 0.0317205191, 0.0699725002, -0.2188607603, 0.1208696142, 0.0058676414, 0.0575147867, -0.1244225949, 0.0723637715, -0.0082087917, 0.1169142276, -0.2343513817, -0.4013207853, 0.4197232723, 0.0784542486, 0.3328507245, 0.5207663774, -0.0001169051, 0.1564733982, 0.2654487193, -0.1856259704, -0.044199653, -0.5195807815, 0.0301296115, -0.5329569578, 0.2776662707, -0.1672024876, -0.0144888004, -0.1786804944, -0.1109990403, -0.0358059406, 0.301412493, 0.317545265, 0.1804958731, -0.2607496381, 0.0598920323, -0.0100190183, 0.2052919865, 0.0371791944, -0.0156857315, 0.4175470173, 0.1173956841, -0.1267607808, -0.0487308055, -0.1936671287, -0.2392430753, 0.358199358, 0.3196350634, 0.139939934, 0.0709673837, -0.1089671329, 0.2680704892, 0.1055050865, 0.6067356467, -0.3076421916, -0.1485475451, -0.0154003575, -0.0202966537, -0.4886515439, 0.2558158338, 0.404494673, -0.1521600783, 0.1173331663, -0.212212652, 0.2484469414, -0.2663930953, 0.202861771, -0.0673471689, -0.3531900346, -0.2522074878, 0.269318223, 0.2523402274, 0.0737476349, 0.333640039, -0.0937500149, 0.0268539954, 0.1806967556, -0.5556492805, 0.2796491385, -0.1176611185, -0.0904366001, 0.1637404859, 0.0962190926, 0.401421994, 0.1370621324, 0.0423450619, 0.1946977526, 0.3191300333, 0.1861325204, -0.0428145975, 0.0691048428, 0.0273854919, 0.3462177217, -0.2297834903, -0.233858332, -0.3881369233, -0.5049576759, 0.2381423116, -0.1538380235, 0.2674440145, -0.2704332173, -0.2479329109, -0.0960199684, -0.0361328907, -0.0094233667, -0.0528345108, 0.5738204122, 0.2158341259, 0.3802046776, -0.0542099625, 0.2572089732, -0.2112759054, -0.0986546725, -0.0803524852, 0.0201157909, -0.0576022975, 0.0522915013, 0.3777482212, -0.2166886479, 0.1214606985, 0.1762957573, -0.0435165651, -0.293874532, -0.1455052197, -0.4177227914, 0.0367244333, 0.2833079994, 0.2024738491, 0.0979529321, 0.2341530919, -0.281209439, -0.0606878959, 0.3805411458, -0.2301195264, -0.1685690582, 0.0972644836, 0.0963022336, -0.0661172718, 0.1656785458, -0.3956312239, 0.1563511789, 0.3519503474, -0.4384941161, 0.0334674604, -0.213484481, -0.2411233336, -0.3524810076, 0.2018902898, 0.2790595591, -0.7854660749, 0.3429476619, 0.0539065413, -0.031748578, 0.1149987057, 0.4237152934, -0.1483170092, 0.0611785613, -0.2709868252, 0.0921525285, 0.1406240612, 0.007542714, -0.6293671727, 0.330756247, -0.0460275225, 0.0895456001, 0.3120643497, 0.0645526275, 0.0512151979, 0.0891773179, -0.1080221236, 0.0185540132, 0.0231345557, 0.0440056249, -0.2607476413, -0.1291926205, 0.3187508881, 0.1426242292, -0.0647737607, -0.0676729903, 0.2388889194, -0.4087389708, 0.2025449872, -0.018087266, 0.1416162699, 0.1752467453, 0.1791316569, -0.1968237907, 0.0349739455, 0.0104333302, -0.449349463, 0.1433821619, 0.2848807275, -0.168701157, -0.2159445286, -0.0797309726, -0.3841182888, -0.029701205, -0.2681600451, -0.1242000088, -0.0246527623, 0.0725155771, 0.0595198162, -0.1440532357, -0.1857402772, 0.1161196902, -0.2237769067, -0.0112761781, -0.0158439651, 0.1422189623, 0.058799319, -0.1249886751, 0.1064723954, -0.0629007816, 0.2071678936, -0.0483337827, -0.2763524354, 0.2495909631, 0.1456866562, 0.0456151813, -0.2857955694, -0.1747877598, 0.0830198526, -0.2415059507, -0.087201193, 0.0237382054, 0.366371572, -0.1825467646, -0.3392809331, 0.2706233561, -0.1567005068, 0.3015140295, 0.1879755259, -0.3580714464, 0.3065019846, 0.0167202782, 0.1781936288, 0.0704916492, 0.1380853206, 0.0736546293, 0.4947432876, 0.2995414734, -0.0968419164, -0.1562504321, 0.5009903312, -0.0470439643, -0.2185633034, 0.3112596571, -0.1181774959, -0.1945350319, 0.0684309453, 0.0887454152, 0.3798215091, 0.1293765157, -0.1915310621, 0.0146641536, 0.1435026377, -0.2500293553, 0.1204059273, -0.2204346508, 0.147361815, 0.3965646327, 0.1270097345, -0.1272859275, -0.1951440573, 0.0377439708, 0.0875855684, 0.3257237077, -0.4119556546, -0.0675453171, -0.0734538212, -0.0052058506, -0.1802845597, 0.0986032933, -0.0555796176, 0.0971230492, -0.399611026, 0.3328242004, 0.2897825539, -0.0790662915, -0.2431261986, 0.0886343941, 0.2158127427, -0.3370556533, -0.0034608012, -0.0489907339, -0.2919397652, -0.0261764806, 0.3307100832, 0.1098189428, -0.0008769907, -0.0217666477, 0.0280251335, -0.0548452698, -0.0925328285, -0.0439247675, -0.0732299536, 0.0209217742, -0.0511662625, 0.4193310142, 0.0076078898, -0.1446308196, 0.4017486572, -0.2536608279, -0.0489245988, 0.3501355648, 0.063693583, -0.0958797336, -0.1087074727, -0.3498902321, -0.1398877352, -0.4293369949, 0.3910627663, 0.0847560912, 0.0419317596, 0.0926316753, 0.4331049323, -0.0260847062, 0.3013547361, -0.0312164519, -0.0848051086, -0.2977058589, 0.364574194, -0.0561165623, -0.4676564336, 0.0119416304, 0.0828355849, 0.3591904938, 0.1638269424, -0.4252472818, 0.3267477155, -0.1509072334, 0.1628202051, 0.001105045, -0.0242281388, 0.0609547198, -0.087227501, -0.02182349, 0.0364302173, -0.2417159528, -0.0141800055, -0.0320446305, 0.147583738, 0.0513689332, 0.4584293067, -0.0371928811, 0.6513357759, 0.0874643251, -0.0882314295, 0.4855556488, -0.3082398772, 0.3818776608, -0.2096710205, -0.3737451136, -0.0855747014, -0.3519817889, -0.1924464554, 0.2677484155, -0.0335836522, -0.0334149785, -0.1257757396, 0.0035178557, -0.4046861529, -0.0377029404, 0.1836318821, 0.030697152, -0.0148299858, -0.1005958244, -0.0133009916, -0.0116458982, -0.2373631299, -0.1942585856, 0.273964107, -0.1513423473, 0.0633874387, -0.2242484838, -0.0615805015, -0.3029372096, 0.3292051852, -0.0136234276, 0.3102865219, 0.0106145442, -0.0176949576, 0.0972969681, -0.1252224296, 0.7449790835, 0.1892859787, -0.1550699919, 0.1278290898, -0.0241139401, -0.441583544, -0.1217611507, 0.1906312406, 0.3073362112, 0.0744618401, 0.3548654914, -0.0703260079, -0.0096938089, -0.1443435401, 0.3546779752, 0.0432527438, -0.3951281309, -0.5194917321, -0.2349791378, -0.3830536604, -0.2121352851, -0.0898667276, 0.2882787287, -0.3244076669, -0.14238666, 0.1183613986, -0.2990534604, 0.0601568706, 0.1533811539, 0.2973895967, -0.1129140556, 0.1448959559, 0.0468353443, 0.0698047876, 0.3769119084, 0.7987186313, -0.0785761774, -0.6220771074, 0.0848433003, -0.2050264031, 0.3853482604, 0.0478198975, -0.2032052726, 0.1289870441, 0.0907348841, 0.0620337725, 0.0379482694, 0.0144372974, 0.303686589, 0.0496552214, -0.3454541564, -0.5439228415, 0.4874185622, -0.1259078681, 0.210259065, 0.3020802736, -0.2119996995, -0.1099810973, 0.1555224657, -0.3346247673, 0.6592135429, -0.4218298197, 0.1938304007, 0.3073365986, 0.056335818, 0.2584291697, -0.4451969862, 0.1323072761, -0.3919681609, -0.2109033316, -0.1043124199, -0.0712032095, 0.2393862456, 0.4321897328, -0.1212456822, 0.3118638098, -0.0741499662, 0.3325560093, 0.1131341308, 0.2438254505, -0.1005161256, -0.0864685029, -0.3010208607, 0.010423678, -0.143080771, -0.034952037, 0.0289588366, 0.0544645712, -0.180567503, -0.2016452998, -0.2461121678, 0.2200246155, -0.2911674976, 0.1154050231, -0.1109545827, -0.4686650634, 0.1963640451, 0.2380673289, -0.2087022215, -0.0851790532, -0.1240851358, 0.1550537646, 0.1596343368, -0.040175464, -0.2083746195, -0.0536956713, -0.0158853624, 0.0761262551, -0.2351238132, 0.1545511335, -0.1222788915, -0.0956744775, 0.2780734897, 0.2376573682, -0.0848070979, -0.5452089906, -0.5326194763, -0.4284161925, 0.0759812519, -0.1957319677, 0.0651981682, -0.0420787223, 0.0983416811, -0.1616349667, 0.185935244, -0.4688695073, -0.1020268127, 0.3918127716, -0.1116865277, 0.0939545557, 0.5907299519, 0.2193500102, -0.0168928299, -0.1411525458, 0.0642407387, 0.3081053793, -0.3531884253, 0.1170663685, 0.114149414, 0.3159500659, 0.1392528564, 0.2917453945, 0.1565803289, -0.0776725337, 0.0744548291, -0.5115903616, -0.3249695003, -0.0165289473, -0.001531433, 0.2479579449, 0.1672193259, 0.0818667188, 0.1726779193, 0.2032966465, -0.1562302709, 0.100462012, 0.1059290171, -0.0869574994, 0.2106328309, 0.1420165747, -0.1338726133, -0.1038192064, 0.0934976861, 0.1776404679, -0.0534451902, -0.1887510121, -0.079856135, 0.1501001269, 0.0983607396, 0.0232860073, -0.2034451962, -0.2526888549, -0.149706021, -0.1928057969, 0.0664087087, 0.0297824889, -0.0981118232, 0.0717604533, -0.2987650335, -0.0846543238, -0.5091864467, 0.0271217674, -0.5075390935, 0.223132357, 0.2992692292, 0.0485824421, 0.1217575222, 0.2004557103, -0.1724264324, -0.031158587, 0.1516267508, -0.136618793, 0.3009468615, -0.401475668, 0.2035068125, -0.0510654114, 0.3403372467, 0.4848609567, -0.2076414526, 0.2197109014, 0.0375867598, 0.134115085, -0.3825283945, 0.2754767835, 0.1172315702, -0.061629951, -0.0274847038, 0.1696753055, 0.1992114484, -0.2083074003, -0.0957768112, 0.0069103646, 0.4759891629, -0.0078226738, -0.0339508392, 0.4135628939, 0.0027144591, 0.1789696366, 0.2403351516, 0.1356374025, 0.0196202025, 0.7002615929, -0.2602290213, -0.00396503, -0.2352683246, 0.3014819026, -0.3278698027, -0.7641029358, 0.1616646349, 0.2355503887, -0.3533102274, -0.1676513106, 0.1258981079, 0.6017507315, -0.0233747624, 0.0114932545, -0.1145934314, -0.0448352583, 0.0140551915, 0.0483896546, -0.0662138537, -0.2536707222, -0.0708235875, 0.1856832057, -0.0595556833, 0.0145597989, 0.2749816477, 0.18766433, -0.1494832188, -0.4457592368, 0.065775238, 0.1728488207, 0.0665427595, -0.274838984, 0.3666119874, 0.2653485239, -0.08599177, 0.1805056036, -0.0413447432, 0.6402475834, 0.5041918159, 0.0924117267, -0.0617403314, -0.1215719059, -0.1139908507, -0.1794183552, 0.1778169423, 0.3488176465, 0.4212687314, 0.1485439092, 0.1135985553, -0.0401849225, 0.3160889447, 0.2067888379, 0.0996007398, -0.5459766984, -0.1189197525, -0.2083116919, -0.2577385902, -0.2266331911, 0.0241517965, -0.2890596986, 0.0209433828, 0.4277472794, 0.0739153922, 0.2772267759, -0.026822459, 0.0345674902, 0.0743340254, 0.3142198622, 0.2397757024, 0.4022898674, -0.4218082428, -0.0354187526, -0.7509753108, 0.1165278926, -0.3764894903, 0.0095928973, -0.0318588093, 0.1585378796, 0.1377413869, 0.0838608071, 0.1591724306, 0.2994238734, 0.1167234331, 0.2220780253, -0.056184765, -0.1846200824, -0.3380705714, 0.0264859702, -0.1750926226, -0.4655137062, 0.2213603109, -0.127932623, 0.0092109898, -0.2251860201, 0.2239884883, 0.2559673786, -0.0059870519, 0.4777292609, -0.1120112687, 0.6255967021, -0.0850183666, 0.3190014064, -0.3009390235, -0.0801897869, -0.1928056329, 0.5200990438, 0.2061499059, 0.2713998556, -0.1779932082, -0.10791637, -0.2153045684, 0.1574101299, -0.0065484298, -0.0705470294, 0.0667272955, -0.1510604024, -0.0018242069, -0.0584901869, 0.1522312462, 0.0920480266, -0.2229385823, -0.078172937, -0.1745536625, -0.1801850349, 0.1810827255, -0.4043288827, -0.341103524, 0.1487177908, 0.1261259913, 0.1018664911, 0.1396923214, -0.4524213374, 0.1217894629, 0.424474895, -0.1280170381, -0.4174261987, 0.1340314001, -0.2116188854, 0.1005704775, -0.1218525395, 0.4765019715, 0.1411092728, -0.3705091178, -0.1615716815, -0.3583215475 ]
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.0376304314, 0.116000846, -0.1909410059, 0.4500379562, 0.2954647541, -0.2197374851, 0.3712628484, 0.2625180185, -0.0028850581, 0.0670773014, 0.1637322903, 0.3684880733, 0.0403136909, -0.0634338334, -0.0525209792, -0.2800580263, 0.0010120387, 0.1088695079, -0.2758776844, -0.2141532451, -0.2710894942, 0.172482729, -0.270493418, 0.1990953535, -0.3585416079, 0.0835000053, 0.0380279422, -0.1664293706, -0.1340274811, 0.0589906387, -0.1230924875, -0.0113908229, -0.2323267311, 0.5959069729, -0.0001038565, 0.093801558, 0.2659808099, -0.1483358592, 0.1651004702, -0.2740634978, 0.0381586924, 0.1320968568, -0.0182746984, -0.4883698821, -0.1506609768, -0.0973140374, -0.102646783, -0.0080195013, 0.1642291099, 0.1089653447, 0.2779663205, -0.2608306706, 0.0990452394, -0.0815533921, 0.4071272612, -0.039158877, 0.0021227526, -0.0567934103, -0.1048757285, 0.0740148798, 0.0853270069, 0.4533438683, -0.0669129863, -0.1527016759, -0.0390596837, -0.0801411793, 0.1149630025, -0.229911983, 0.3598323762, 0.3970839381, 0.4823434055, -0.2370187342, -0.003317504, 0.1349337995, -0.0562789403, -0.0627482086, 0.1382211149, 0.2485170811, -0.2463992387, 0.1998827159, 0.1086130664, -0.0425024554, -0.157064721, 0.3849433661, -0.3486661017, 0.7615579963, -0.1470626146, 0.0890358612, -0.0713840127, -0.0618577451, -0.2655578554, 0.0647558346, 0.4067404866, 0.1151138544, 0.2293577641, 0.0623618402, 0.0952003524, -0.1879188567, -0.1581104398, -0.2297955304, -0.3073725998, -0.0305524338, -0.0009033647, 0.0312911309, 0.0951706544, -0.0677764714, -0.1882226765, 0.1448562443, 0.1271022111, 0.1956168413, -0.3205269277, 0.1341063082, -0.0726407245, -0.0588571168, -0.0109664509, 0.0493915305, 0.1880798042, -0.1510055214, -0.0501712561, 0.1197860539, -0.406135112, -0.1329091936, -0.2625002265, 0.3644146323, -0.3537259102, 0.3217245638, 0.133944422, -0.0410714746, 0.0427073725, 0.2019065917, -0.3462702036, 0.3184955418, -0.257484138, 0.0214953609, -0.0806173235, -0.1143918931, 0.3268627226, 0.0183948502, -0.0553095154, -0.317584455, -0.0900203064, -0.4657154083, 0.377373606, 0.1164556518, -0.1373098493, 0.0853679851, 0.1821398288, -0.4203642011, -0.0611056574, 0.0739956275, -0.0117768878, -0.0430926569, -0.1845546961, 0.2914004624, 0.1253381968, 0.1142193526, 0.2324087918, 0.3484160602, 0.3461155891, 0.1279001236, 0.2048686147, 0.0798774436, -0.2936297953, -0.1988721341, 0.360220015, 0.1398382187, -0.4822919071, -0.1239368692, 0.1542091817, 0.1174043342, 0.4012047052, 0.090257898, -0.0307215415, 0.5387799144, -0.0575561486, 0.2503635287, 0.0693086311, -0.1390766799, 0.0177725684, -0.0094977533, -0.0056564063, -0.0330239944, 0.2078620642, -0.05137771, 0.1935699731, 0.2120351493, 0.5239937901, 0.0795119107, 0.2428410202, 0.1865056157, -0.1770031303, -0.1695269346, 0.1912652552, -0.0131385261, 0.1784014404, -0.0867690817, -0.0657810569, 0.2785584927, 0.3917039931, -0.0177074932, 0.0336799175, 0.2748849094, -0.1571975797, -0.0402406454, 0.1508068442, -0.1868497431, 0.2586317956, -0.0947320759, 0.3009763658, 0.3739808798, -0.2793432474, -0.321506232, -0.442048341, -0.0306167528, -0.0859379768, -0.125920549, 0.3621973693, -0.0075940797, -0.1433635503, 0.1667319536, 0.147528097, -0.0481464937, -0.4452188313, -0.0623425692, -0.3474650383, 0.2008004636, -0.2842545807, -0.0703958943, -0.1780650318, 0.3738855124, 0.0864046812, 0.0987280458, 0.0366895348, 0.0681396276, 0.1614263058, 0.1951444, 0.0872018412, 0.1368026733, -0.135445118, -0.3788892627, 0.1041646451, 0.4465125501, 0.2120099068, -0.0876882672, -0.2107885331, 0.4056071043, 0.2071250528, -0.0240106843, 0.1008188128, -0.2186524272, 0.1274811625, 0.0669867471, -0.16061759, -0.340788722, -0.0228194464, 0.3535306752, -0.1206596196, 0.2333275825, -0.3192091286, 0.0747786388, 0.5386906862, 0.1343519688, 0.4133017659, -0.090170078, -0.5303305984, -0.1579623371, -0.0161014851, 0.1799587905, -0.105040662, 0.187538594, 0.1714819819, 0.0786533654, -0.0189092085, -0.1408508122, 0.3554646075, 0.2964960337, 0.4085937142, 0.271145463, 0.0359769799, 0.1682439744, -0.2518553138, -0.0341590717, -0.2095751315, 0.3795397878, -0.2574419081, 0.120554328, -0.1207624674, -0.071201466, -0.0884926096, -0.2095501125, -0.2182870656, -0.1373004466, -0.0413502567, -0.1236968264, 0.0427567102, 0.2243425101, -0.1203941107, -0.0427136309, 0.2501511276, -0.1579006314, -0.0263580419, -0.2779901326, -0.0228658132, 0.1925877333, -0.1925171465, 0.1851531267, 0.1140914783, -0.1133459061, -0.3316795826, 0.0247601196, -0.4591087103, 0.3076530397, -0.2841243148, 0.0178087112, 0.1315818131, 0.2630503178, -0.1862811595, -0.2981849909, 0.1260713339, -0.1022753716, -0.0718508363, -0.072920315, -0.2129735202, 0.1151740253, -0.0549498536, -0.606982708, -0.1843989789, -0.2522269785, 0.1753423661, 0.4133395553, 0.1765689105, 0.4491932392, 0.2899243832, 0.1499410272, 0.2895772457, 0.1858323365, -0.3690813482, -0.0820945799, 0.3819563985, 0.1831927896, -0.1003113165, -0.0403759554, -0.1214302853, -0.155510053, 0.0350314341, -0.328440696, -0.0780138373, 0.1545451432, 0.0099564195, 0.0603399836, 0.0701199472, 0.338159591, 0.0599646494, -0.2373806536, -0.0741835982, -0.0543027669, -0.0672507584, -0.1804210395, 0.1228023991, -0.2215512991, 0.1971709728, 0.0745374337, 0.5646958947, -0.0219043791, -0.0945554152, -0.1301513463, -0.1098459288, 0.0467868038, 0.0142611349, -0.1725401282, 0.1183862463, -0.0657222793, -0.1128839776, 0.2858284712, 0.0218981411, -0.3113709986, -0.0823390782, 0.2434461713, -0.5951215029, -0.2337568104, 0.0738852099, 0.2072139084, 0.3250173628, -0.2242445499, 0.01813999, -0.1529430002, -0.1985206455, -0.0743088126, 0.2720820308, -0.1294917166, -0.1800875664, -0.0039939927, 0.0455366597, -0.3112497628, 0.0897598416, 0.1063024253, -0.2374599427, 0.019400727, -0.3281232715, 0.184259519, -0.1281689554, 0.2043620646, -0.1640467197, -0.1016448587, 0.230640009, 0.0266484879, -0.2165662199, -0.0176097564, -0.3630178273, 0.1319011152, 0.5669858456, 0.4043783545, -0.4217734337, -0.1530514956, 0.5155637264, -0.09205845, -0.0368700959, -0.1138468087, -0.2131606489, -0.10642647, -0.2825683355, 0.2626234591, 0.0399502367, 0.128254503, -0.0002702465, -0.144147858, 0.3049252927, 0.3409053087, 0.1048149094, 0.1139116585, 0.1659891754, 0.1508630216, -0.2560136318, -0.2157398164, 0.0827039108, -0.3168409169, 0.1227054298, 0.096408695, -0.002328377, -0.0933878273, -0.4582930207, 0.142015025, 0.2253703475, -0.1954174638, 0.2062241733, 0.1236635223, 0.0487765782, 0.0111879921, 0.1006363854, 0.3577774763, -0.1785043776, -0.0160646811, -0.3824626505, 0.3698531091, -0.0442786403, -0.1138214916, 0.0079458626, -0.3191572428, -0.2880118191, 0.2350891083, -0.0233709943, 1.0900635719, 0.1916283369, 0.0601802431, 0.0798479989, 0.335788846, 0.4070529938, 0.050385192, -0.0357326791, -0.42939955, 0.1830918193, -0.1092213988, 0.1870463938, -0.0323117748, -0.0063555301, -0.3201173544, -0.0288609415, -0.2233070433, 0.0416370034, -0.0022938622, -0.2610444427, 0.2794053555, -0.0714469105, -0.1940619498, 0.1843517572, -0.0085485186, 0.0132441977, 0.0083969533, 0.115945369, -0.2418378592, -0.145535931, -0.3945601285, -0.0565448292, -0.3439756334, 0.2061206102, 0.1736730933, -0.4040264189, -0.1235064566, 0.0324685164, 0.129013285, 0.3851500154, -0.040192131, 0.1245265007, -0.0149953477, -0.1153456271, 0.1051421836, 0.1275208145, 0.3020905554, -0.0596369393, -0.3325281143, 0.0474284813, -0.0684778839, -0.284080267, -0.1140776277, -0.1202763021, 0.1880206764, -0.077580817, -0.0944026336, 0.2715236843, -0.1659890115, -0.3825521171, 0.2203661203, -0.1223528013, -0.2146440893, 0.1128941476, 0.2487443089, -0.4793299139, 0.070141077, 0.2678938806, 0.3993583024, 0.2682991326, 0.3634389341, 0.4402483702, -0.3178361058, -0.4193707407, -0.3453829288, -0.3443886936, -0.3034400344, -0.2273006737, 0.1275660992, -0.0442075543, 0.032274425, 0.2528117001, 0.1267941147, -0.0456001461, -0.1809590161, -0.4442614317, -0.1378888935, 0.1769991517, -0.0078208558, 0.106937848, 0.260169208, -0.0003514387, 0.1314748526, 0.0718084797, -0.4596363008, 0.0954610258, -0.4010989368, 0.2911191583, 0.2498661578, -0.2424764484, -0.1911942512, 0.007912931, 0.3404126167, -0.0843359306, -0.1227237657, -0.4186243415, -0.1275818497, 0.079198651, 0.0390140228, -0.2021332532, 0.144088611, 0.1327944845, -0.2354939431, -0.1377091855, -0.091609776, 0.1327191442, 0.1528631598, 0.2610369921, -0.0577551797, 0.3609780967, -0.2998996377, -0.2252099812, 0.0453316681, 0.2198768556, 0.087591514, 0.1392412037, 0.1141956225, -0.065739952, -0.3645975888, 0.0850180387, -0.0203926582, 0.3905951083, 0.3512126803, -0.0503476895, -0.0427764691, 0.3029696345, 0.2377182245, 0.2442758232, -0.2000592947, -0.0955426991, -0.0412151404, 0.3443332314, -0.338103205, 0.2190653831, 0.4438176453, -0.2796859741, 0.1534242481, 0.3051405549, 0.1139928848, 0.0646671206, 0.172295928, 0.1230760366, -0.0289413482, -0.3710556924, 0.1493564546, 0.0802776441, 0.144657895, 0.0820687115, 0.0083300257, 0.3275235295, 0.1921260506, 0.4157090783, 0.5534647703, 0.0458227135, 0.0485228896, 0.0934078246, -0.2124035507, -0.1737227291, 0.3782322109, 0.2508524954, -0.3872353733, -0.0425765067, 0.0690188408, -0.0957764834, 0.1958176941, 0.2206194103, -0.1258995682, 0.2072698772, -0.1061264798, -0.2802641988, -0.2669964135, -0.2162386775, -0.1254569143, -0.2240761071, 0.1985271275, 0.0819861814, 0.042858988, 0.0007928506, -0.1652703732, -0.3171617091, 0.1963715553, -0.3757811785, 0.3776467443, -0.2475773543, 0.1026296467, -0.1802185625, 0.2640244961, -0.3552978337, 0.4572232068, 0.1867237538, -0.0397555009, -0.3567964733, -0.1345351487, -0.1819650233, -0.1360784918, -0.1003684253, -0.0508692265, 0.4067138135, 0.0049411184, 0.1646076888, 0.2986799777, -0.3479201496, 0.0352784246, 0.3535928726, 0.033141084, 0.0874754712, -0.0871277004, 0.1985789686, -0.1533524692, -0.1870581061, 0.0449054204, -0.3499831557, 0.2425702959, 0.3185035884, 0.1421523392, 0.2089877427, -0.1796861291, 0.1499054581, 0.0874754936, 0.139352724, 0.4506242573, 0.1468861252, 0.0160897486, -0.1277970523, -0.2883233428, 0.3457966149, 0.0065063378, 0.0381306931, 0.0090684779, 0.3338779509, 0.2970460951, 0.1066391096, 0.0200610124, -0.2553941905, 0.0714398175, 0.0563792922, -0.1783147454, 0.08413288, -0.0173062012, -0.1360273659, -0.0498389937, -0.1777635664, -0.146518901, -0.2832274437, 0.3031677306, -0.0624724776, -0.3920106888, 0.0241401307, 0.1590517163, 0.3841208816, -0.1318282485, 0.1754274517, -0.3827269673, 0.0820534229, -0.0026537676, -0.0795920119, 0.0105237421, 0.5436720252, 0.1163987294, 0.11790023, 0.1743742526, -0.0268044062, -0.0146707036, 0.2737038434, -0.0396735519, -0.3405412436, -0.193830654, -0.0594836958, 0.0699940771, 0.068081215, -0.2632054389, 0.1269262284, -0.1516227126, 0.0331990793, -0.2077036649, -0.5855805874, 0.2162085921, -0.0780520439, -0.5391713381, -0.393699199, 0.1647265702, 0.0663963184, 0.4991380572, -0.4331307113, 0.1830518544, 0.3660573661, -0.1315494776, -0.338031739, -0.0578142665, -0.1394310445, 0.1607729048, -0.10687235, 0.0511505529, -0.2077845633, -0.1916948855, -0.2590873241, -0.3279492855 ]
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.2052895129, 0.319988668, 0.0722147971, 0.5395572782, 0.1300372481, 0.219380632, 0.1278001666, -0.1864243746, -0.0289536808, -0.0699261501, 0.2743755281, 0.0008882004, -0.4298545718, 0.2057962716, 0.30813393, -0.2922176123, 0.0054488541, -0.2033133954, 0.0205825884, -0.1820490956, -0.167391032, 0.4652559459, 0.1199145317, 0.0503366925, -0.4685993791, -0.0266564544, -0.2214189768, 0.4315161407, -0.0926344842, -0.195379436, -0.0345566943, 0.039644327, 0.1316579878, 0.4354021549, -0.0001247795, -0.1571823061, 0.2606932223, -0.208192572, -0.0927848369, -0.2235533148, -0.3300046623, -0.1996061653, -0.1916081458, -0.1280441284, 0.1759237796, 0.1283105463, -0.0804146975, 0.1652436554, -0.2902431786, 0.0426330529, 0.118495591, -0.0546920523, 0.1770837158, -0.0281242914, 0.3376814723, -0.2312233001, -0.0272023752, 0.5546999574, -0.0733492672, 0.1199263334, -0.1226691306, 0.414437145, -0.1018922031, -0.1896878183, 0.0083972998, 0.2109396309, 0.00178453, -0.0774431601, 0.1375342458, 0.2818036973, 0.8164929748, -0.2318717241, -0.0623928532, -0.1128105447, -0.1559917033, -0.1765374094, 0.4124319255, 0.1612805426, -0.0271766707, 0.0534949154, 0.0535366423, -0.5035980344, -0.1352060288, 0.2228762358, -0.020497255, 0.4011122882, 0.0653439611, 0.0235375855, 0.4362440109, 0.2480706573, -0.1870645285, -0.0965684354, -0.3789024651, 0.1565635204, 0.0187845025, -0.2509078085, 0.0238386486, 0.2325569391, 0.1142072752, -0.0979503393, 0.0392100289, 0.0481206886, -0.0954177454, 0.0808632299, 0.3494335711, 0.2302667052, -0.2853439748, -0.0323551558, 0.2578545213, -0.1746078432, 0.1903270483, -0.0247638859, -0.1124448627, -0.1519078612, -0.3518644571, -0.1581165791, -0.336640209, 0.1224363223, 0.0758733004, 0.10926193, -0.2249852568, -0.2128599882, 0.1006018072, 0.0871742517, 0.2883945405, -0.2428629547, -0.0612187088, 0.3998382688, 0.2928889394, 0.1777853668, 0.0584302768, 0.269464761, -0.0828702152, 0.2098587453, -0.188979879, 0.0846745819, 0.1240356788, -0.0854082182, -0.20841223, -0.1505700797, 0.0108845225, 0.066566281, -0.1833898276, 0.1558984667, 0.3799424469, 0.3868771195, 0.0069781058, -0.6324937344, -0.309687376, 0.1332538277, -0.1716111004, -0.306024909, -0.27275002, -0.0214119256, -0.2076000124, -0.3338615298, -0.282979995, 0.5032007694, 0.0978400484, -0.3781306148, 0.0974010676, 0.4258761406, 0.0381935686, -0.1741589457, -0.200480774, 0.3255684972, -0.2859551311, 0.0491208322, -0.2233881354, -0.0063548912, 0.360791713, 0.2327747941, -0.0493528843, 0.0860493854, -0.2695146203, 0.4979102015, 0.2523217499, -0.1120950952, -0.1419783384, 0.1514696032, -0.4574854076, 0.0134939346, 0.1928115487, 0.3532480597, -0.0707790703, -0.1276388764, -0.1220437437, 0.255014658, 0.1740980297, 0.0441156924, -0.3670467436, -0.4360995591, 0.2276997566, 0.1296115816, 0.2096011341, -0.1416706741, 0.3847235441, 0.3507202268, 0.2013376951, -0.2545937598, 0.1432923973, 0.1356198341, 0.2010867745, 0.0470835343, -0.0700955614, 0.0878501832, -0.4258348346, 0.0398112051, 0.4841698408, 0.4287415743, 0.2425024658, -0.0437105186, 0.1110677719, -0.0640630201, -0.2143350691, -0.1703341901, -0.0034961316, 0.39950791, -0.0788109675, 0.2376496643, -0.073241815, -0.2341188192, -0.2306237221, -0.1214824095, 0.0381958261, 0.3170724809, -0.1187931821, 0.0798899159, -0.1165800467, 0.2972483337, -0.2057972252, -0.047299467, -0.034514118, 0.1623505205, -0.1037028804, 0.361639291, 0.6724392772, 0.7141314149, 0.0822550133, -0.2385074645, 0.3458837569, -0.062714085, 0.2449797392, -0.1494482756, -0.0729832277, 0.2659508288, -0.0039397711, 0.0668013096, 0.0737564936, 0.2355247885, 0.2932622135, -0.0199250523, -0.04405839, -0.3305780292, 0.3704814613, 0.2180638611, -0.2417215109, 0.1267597973, -0.2977870107, 0.0076658716, 0.4142893255, -0.0502849743, 0.4785453975, 0.2185741514, -0.3042884469, -0.3060281873, -0.0249242876, 0.6103757024, 0.3237769306, 0.0808552429, 0.3784133196, 0.0617272146, 0.1076256558, -0.1882867813, 0.3658085167, 0.0872485042, -0.0782543421, 0.5172119737, -0.1013427675, -0.0657734722, -0.2807049155, 0.1297218055, 0.0327553265, 0.2047457397, -0.149987638, -0.0216752589, -0.0512135513, -0.1157660708, -0.1355132759, -0.779760778, -0.6879056096, -0.3252257705, 0.1452033222, -0.1766126007, -0.1035039276, 0.0233520307, 0.1382456571, 0.1964080632, -0.4809715748, -0.3989127278, -0.0877689272, -0.4259750247, -0.1295740753, -0.0361106768, 0.4199087322, -0.0313053131, 0.2916493714, 0.0192212965, 0.1689297855, -0.2439245135, -0.4900283515, 0.3283201754, -0.1685169786, 0.254186064, 0.0756703243, -0.118024528, 0.089889057, -0.4692750573, 0.186960429, 0.255725503, 0.1016538665, -0.0497034118, 0.0046754694, -0.0229754522, 0.045001477, 0.0411933064, -0.294365108, -0.2600291967, -0.0858576149, 0.0822589025, 0.1040049419, -0.2154652178, -0.0400588848, 0.2880845964, 0.0635911822, -0.1582784206, -0.3831862807, -0.137822479, 0.3207926154, -0.1182930097, -0.2465811074, 0.2720311284, -0.2453188896, 0.3434219956, -0.0815167278, -0.4744022489, -0.2974782288, 0.1456633657, -0.0116082253, 0.4878694713, 0.1211172566, 0.3266864121, 0.1165987924, -0.0131174447, -0.0340047628, -0.2883884013, 0.1065918282, 0.3647939563, 0.2817765176, 0.1308731437, 0.3322602212, 0.1952826232, 0.6535811424, -0.074608013, 0.2340201735, 0.2576475441, -0.2271134704, 0.3407438397, -0.0939053446, -0.1010735929, -0.0377458781, -0.1238513142, -0.4158321619, 0.3140842021, 0.2167857289, -0.5161980987, -0.089771688, 0.0016280578, -0.2928320467, -0.2946750522, 0.2758502662, 0.0945890024, 0.0241473708, -0.1234211624, -0.241308257, -0.0503905527, -0.2646073103, 0.1166992411, 0.8497216105, -0.2143952399, 0.0782411247, -0.3703141809, -0.251257658, -0.1082794592, 0.1750407815, 0.2574887872, -0.0486555994, -0.3461048007, -0.1142123491, 0.1585994512, -0.3126897514, 0.1028869823, -0.5930876732, -0.1834146529, 0.0585015006, -0.172930792, 0.4593808651, 0.2165707797, 0.0346568264, -0.2776298225, 0.562184453, -0.2314658016, -0.231191203, 0.0351759046, 0.255769819, 0.0068299687, -0.2277308553, 0.1719497442, -0.087982282, -0.4606228769, -0.487826407, -0.2078490704, -0.0419361144, 0.0494093336, 0.2344492823, 0.1014164388, 0.0381705128, -0.1455037892, 0.0297035985, -0.1796230972, 0.0404422693, 0.1885638386, -0.2332441956, 0.2494195849, 0.1618939638, -0.0151094142, 0.2166644186, 0.1174065247, 0.3896985054, 0.1741850376, -0.5150284171, 0.6288020611, 0.3609152436, 0.0863169283, -0.0762049481, 0.1040384695, -0.2789349854, -0.3891699612, 0.0016888093, 0.0844888464, 0.2216776013, -0.2243633866, -0.2750697136, 0.5395460129, 0.034562245, -0.2513056397, 0.1492882222, 0.2535793483, -0.4851568341, 0.0559554398, 0.1228713542, 1.2584296465, 0.1731720269, 0.2715180814, 0.1733862162, -0.1096207201, 0.0859107748, 0.0561418906, 0.1998311579, -0.355017066, 0.5552216768, -0.2270052433, 0.0451040603, -0.1872150302, -0.0858420283, -0.1615123302, -0.0376487151, -0.0489194915, 0.0934517458, -0.1644870788, 0.3035354614, -0.249130547, -0.2379186898, 0.0487552807, -0.0177876744, 0.2321207821, 0.2364141643, -0.123284407, -0.4004275501, -0.0926726609, -0.3229566216, -0.7480208278, -0.1462262422, 0.0164258853, -0.0247240309, -0.4567167461, -0.5324654579, -0.1003821418, 0.3304935098, -0.2378312349, -0.1338420659, -0.1963005811, 0.0218866915, -0.571880579, -0.054390341, 0.2409209758, -0.0025459395, 0.1420657486, -0.1023656279, 0.1303027868, 0.0192632731, 0.0046673128, -0.4703744948, -0.1594412625, -0.1892674863, 0.0361342281, 0.2455293834, -0.0258017238, 0.4970345497, -0.1906962246, -0.255615443, 0.0335375033, 0.0721829087, 0.1186014786, -0.0151516302, -0.0999378115, 0.0129910875, -0.1618508846, 0.260679245, -0.0799252763, -0.2677701116, 0.1365799755, 0.2739425898, -0.253998071, -0.1561608016, 0.049681101, 0.0289192703, -0.2983622551, -0.1093276739, 0.1146744639, -0.1720047444, -0.1853493452, 0.2532092333, 0.3053183556, 0.0092730895, -0.3213845491, -0.417422384, -0.1386594921, 0.3139128685, -0.1347521394, 0.3784937263, -0.7157739997, -0.3194902241, 0.2560018897, 0.0739574879, -0.1883509308, 0.0577644445, -0.1561155319, -0.1509696245, 0.6616245508, 0.1179492623, 0.3081755638, 0.1688102484, -0.0610069372, -0.4879082739, -0.1559154987, 0.0641435608, -0.1242698431, 0.2141110003, 0.4191162586, -0.0905526951, 0.03145013, -0.3898132145, -0.1337208897, 0.1204040945, 0.2108100355, -0.1571482271, -0.2858669758, 0.0173230954, -0.1569107473, 0.288187027, -0.1998728812, 0.0762178227, 0.1188788265, 0.5915830135, 0.1583918631, -0.0314162299, 0.0030106909, -0.0456664674, 0.4624195695, 0.4269459546, 0.189270556, 0.0728675351, 0.1712717116, 0.0155880544, 0.1197736934, 0.3151101172, 0.1932165176, 0.0145004289, -0.1390068084, -0.0433962792, 0.1849901974, 0.000518439, 0.0293463264, -0.3166525662, -0.2396707088, -0.1344019026, -0.0602647513, 0.2285086513, 0.4845855832, 0.0489017442, -0.1327944398, -0.1768655628, 0.5035763383, -0.2242107391, -0.1081033647, 0.1132532954, -0.4795016646, 0.523234129, 0.1773431152, 0.3323850632, 0.2191063315, 0.1033018529, -0.1309675127, 0.0549307913, 0.3881406784, 0.0142445741, -0.0708746538, -0.197772339, 0.0558008999, 0.2556618154, 0.3525900543, -0.0198867507, 0.0949009359, 0.0365248881, 0.2033002973, 0.4621014893, -0.2480407506, 0.2013393641, -0.0392638184, -0.0765958652, -0.2275439501, -0.2805991173, -0.3251708746, 0.4158676863, -0.222169891, -0.1813543588, 0.0556777082, -0.0235715769, 0.200522095, -0.1309475005, 0.2222487479, -0.0271432027, -0.3678204119, -0.2760505378, 0.0957403183, 0.1604190022, 0.1875728369, 0.0119547453, 0.0505949818, 0.188304469, 0.0912699923, -0.0713562295, -0.0708184391, -0.2897809148, 0.188542366, -0.1639314741, 0.5140029192, 0.1508894563, 0.0002554914, 0.128857404, -0.024011353, -0.0834448114, 0.1777040958, 0.364695847, -0.0815738365, 0.2900407314, 0.4989514649, -0.0069335504, 0.0616487414, -0.1075540334, 0.0119590592, -0.2995433211, -0.1839979589, 0.4080570936, -0.086174272, 0.1035354882, -0.0198867768, -0.0276099797, 0.2268508077, 0.3466987908, 0.1651630253, 0.2325506061, -0.1531083733, -0.1460167766, -0.5308956504, -0.0676825717, 0.3016184568, 0.0427079499, -0.1904174536, 0.1468812376, 0.2609977722, 0.3723933399, 0.1010963321, 0.2840653062, -0.0358071849, -0.0369495861, 0.0060531329, 0.2983294725, 0.2434143871, 0.1828006655, -0.2755828202, 0.0127728833, -0.0651870072, -0.1498204321, -0.0901639014, -0.2980969548, 0.1432214379, -0.3748911917, 0.1640303433, 0.3807446659, -0.1049274504, 0.5162322521, -0.2271387726, 0.0607257783, -0.3134494424, -0.063187696, -0.1761238873, -0.149234131, -0.0256731287, 0.0878192112, -0.2892701328, 0.401224643, -0.1729555577, -0.1698646843, -0.0885792971, 0.5634939075, -0.1865975857, 0.0859008655, 0.000458407, 0.0216976311, 0.4482543468, 0.2392437011, 0.1635233313, 0.0456233248, -0.2102028131, 0.0588911213, 0.0938395038, 0.0458029695, -0.0469338596, 0.0148058338, 0.1403073519, 0.3675570786, 0.15289101, -0.3563586771, -0.0993648693, 0.2028649002, 0.2868798673, -0.188630864, 0.1483281106, 0.2838775218, -0.312030077, 0.0277509894, -0.3410731852, -0.0503134057, -0.2796907127, -0.1944028288, -0.260997504 ]
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.2764140666, 0.0026881287, -0.1001023874, 0.3107096553, -0.1134150922, 0.1402345449, 0.010671787, 0.2736698985, -0.0497234054, 0.1425441206, -0.066612497, 0.2388452888, 0.0332167447, 0.3290539086, 0.1007776186, -0.5720510483, 0.0124260718, 0.0506395921, -0.1894690394, -0.0938585848, 0.049656231, 0.2917683721, -0.1541135162, 0.0344822854, -0.0742903873, 0.1673281044, -0.2920970023, -0.0621647239, 0.0580647439, -0.1694518775, -0.0494500101, 0.1079931408, 0.1147318631, 0.1120782271, -0.0000970769, -0.2357138991, 0.1173490584, -0.0934774727, -0.0832296833, -0.3354905844, 0.0568945073, -0.4867474437, -0.0898416564, -0.1527292579, -0.0286798161, -0.079935357, -0.0225387719, 0.3618358076, 0.1711871773, -0.0163236242, 0.3015849292, -0.2413649559, 0.1877076328, -0.0982504785, 0.0409794264, -0.3352950513, -0.1876966059, 0.1640688181, -0.0243240912, -0.0562595241, -0.2111864835, 0.5608843565, -0.0509361066, -0.2531588078, -0.2900616527, -0.0126949167, -0.1052727029, -0.0649603233, 0.1165638492, 0.484549731, 0.529859364, -0.1681497246, -0.2733718753, -0.011978467, -0.1028651297, -0.1336417049, -0.0689062476, 0.1995881647, 0.0682091638, 0.2821744978, 0.119772613, -0.2527921498, -0.1005488783, 0.2251767218, 0.1247843131, 0.4762440324, -0.0582082048, -0.0441962704, 0.2988864779, -0.1675045788, -0.5653133988, 0.1359977871, -0.107461825, 0.2373198122, -0.0855728015, -0.1235272586, 0.1528776735, 0.0799811184, 0.1966227144, -0.253302604, -0.1528315991, 0.4855703712, 0.0506212525, 0.1805728674, 0.2176920027, 0.1750591397, 0.0759464279, -0.0547259822, -0.0148446383, 0.1278162599, -0.0411524586, 0.0292951409, -0.0243417285, 0.0643675402, -0.2445610911, -0.0819883794, -0.4378207624, 0.0686351061, 0.2060536444, 0.2339699566, 0.1268784553, -0.1293236464, -0.158443287, 0.3530857563, 0.0957632512, 0.2372765988, -0.0781104863, 0.2695083618, -0.2140510529, -0.1261202097, -0.123630695, 0.2545530498, -0.1758842617, 0.1946146041, -0.1769746542, 0.0841228217, 0.2207690477, 0.0119755939, 0.2674369514, -0.1919908077, 0.0756380707, 0.0522562079, -0.0806918591, -0.2325186878, 0.2944806218, 0.0688741654, 0.253816098, -0.4139412045, -0.2517582476, -0.1296178102, -0.2286817133, -0.089984633, -0.340310216, 0.278521955, 0.0378573351, -0.242541641, -0.2779176533, 0.7183288932, 0.1214744076, -0.3903106153, 0.0970279723, 0.2184337527, -0.2372536063, 0.0262872577, 0.1079150215, 0.4262573719, -0.0857512355, -0.1368867755, -0.0094693964, -0.0878255814, 0.0817497745, 0.177185446, -0.0713144913, -0.1179262102, -0.1324967891, 0.42852512, 0.1194247156, -0.1509238929, -0.1736158878, 0.0201859195, -0.1053154394, 0.2885635197, -0.0036447383, 0.0764425918, 0.0263943039, -0.0283589903, 0.1301964074, 0.1024600863, 0.1560314894, 0.1353261024, -0.2220541686, -0.3277810216, 0.0901903585, 0.1936070323, 0.0324620903, -0.1908340603, 0.2195291817, 0.1991114765, 0.2937735915, -0.2792625427, 0.1236493513, 0.2130650878, -0.1529013813, 0.1465050578, 0.0546807274, -0.264177382, 0.0251859315, 0.11132323, 0.3206301332, 0.3576337099, 0.2289249599, -0.2382937968, -0.0464861281, -0.1705210209, -0.3059716821, -0.2131434381, 0.334074229, 0.120755747, 0.0298729651, 0.3504915237, 0.0571472719, -0.2722002268, -0.3950469494, -0.2795889676, -0.078868106, 0.0020739497, -0.1584922671, -0.0642239004, -0.0997120515, 0.3893686831, -0.2712368071, 0.0983207971, 0.0154334167, 0.1517491043, -0.0550841168, 0.4982586801, 0.4569424987, 0.2020402402, -0.0717086345, -0.5005129576, 0.1014635935, -0.1269534528, 0.0405574404, 0.014175158, 0.0026557043, 0.4599091411, 0.2683027089, 0.1284924746, 0.172893554, 0.0776900202, 0.4381744862, 0.0649109483, -0.1373220235, -0.3299253881, 0.3048832715, 0.0782762095, -0.4333217442, -0.1221103743, -0.1712438315, 0.1732613891, 0.5744445324, 0.1377803087, 0.5119508505, 0.2164383382, -0.0974676535, -0.2043814063, -0.0144239059, -0.0558190979, -0.1734179258, 0.2701701224, 0.3225536346, 0.1384957135, 0.1292924881, 0.0410368107, 0.2512615621, -0.085625127, 0.0452628583, 0.1973092407, 0.0913208947, -0.1187372953, -0.34448874, 0.0685832277, -0.2377657145, -0.0307471361, 0.1356808841, 0.1075926125, -0.0717531666, -0.0445474647, -0.1838493496, -0.3029926121, -0.2344038039, -0.1616501361, 0.2162355781, -0.2200760543, -0.2400591373, 0.128452912, 0.1167836934, -0.1129346937, -0.2529802024, -0.1024313793, -0.0138431005, -0.5788553357, -0.2555543482, 0.180148676, 0.0482320003, -0.0450078435, 0.3994950354, -0.4012572467, -0.1552134603, 0.0356058106, -0.644929111, 0.2720445693, -0.1622141451, 0.020053776, -0.0106309261, -0.0697961301, -0.3605293632, -0.3130760491, 0.3076895773, 0.0325359553, -0.0289601944, 0.1261403859, 0.0377023965, 0.0117119988, -0.0352808423, -0.5705174804, -0.1980739236, -0.4070941806, 0.3077454567, 0.0545627624, 0.1486678869, -0.3104326427, 0.2955929339, 0.190823555, -0.1759007573, 0.3428910673, -0.3420238793, -0.0923001319, 0.112093471, -0.1527301371, -0.3790642023, 0.0731660202, -0.2005583346, 0.3650988638, -0.1057619303, -0.2588934898, -0.1058171913, 0.1791159511, 0.0326340683, 0.1819612682, 0.2368080467, 0.2737872601, 0.1304392219, -0.2074815482, 0.072515592, 0.0377642401, -0.0318172537, -0.1206881627, 0.0855491608, -0.2100820243, 0.3565777242, 0.2325436622, 0.6987833381, 0.1690098792, 0.3995890021, 0.3031803966, -0.1493192613, 0.1214129627, -0.3727869987, -0.1183329374, -0.0667656884, -0.1618155092, -0.0017631893, 0.4374345243, 0.2114104629, -0.6284601092, -0.1920639127, -0.259423852, -0.4223433435, -0.2361971438, 0.3057608604, 0.0923372358, 0.3545750082, -0.1009265855, -0.2588641644, 0.0151338978, -0.1767123789, 0.1695002019, 0.3979318142, -0.2794199288, 0.1074102595, -0.4918292165, -0.1902908534, 0.0673839152, 0.1728888303, 0.4474496245, -0.0807951987, -0.2205436975, -0.130071789, -0.1302404255, -0.2977637351, -0.0314539596, -0.2745259106, -0.2566511929, -0.0925140902, -0.2993517816, 0.0558249578, 0.0835801363, -0.1684218794, -0.3951660097, 0.5567394495, 0.1419663727, -0.3097409606, 0.0260453112, 0.1145016998, 0.3811563253, -0.263333708, 0.2227110118, -0.2694182992, -0.1932816952, -0.5281088948, 0.1691384465, -0.039969258, 0.0465846322, 0.1690190881, 0.0321973823, 0.0884622708, 0.0804292709, -0.059489347, 0.0616305657, 0.2686177492, 0.1230268776, -0.1082792208, -0.040636532, -0.2364170998, -0.1076546684, 0.2783064246, 0.077539362, -0.1844500452, -0.3306639493, -0.2572508454, 0.3101325333, 0.0035284136, 0.2262661606, 0.0107805999, 0.1983654946, -0.1305653155, -0.3597177863, -0.0355611034, -0.0116043249, 0.3058978915, -0.1058427393, -0.4316603541, 0.4495398104, -0.1073317528, 0.0158915035, -0.0263432059, 0.2421525121, -0.2652864754, 0.230311498, 0.0778752267, 0.9278441668, 0.2354872823, 0.2578748763, 0.1034149751, 0.1018178314, 0.1726310253, 0.0618220344, 0.0204330292, -0.250228107, 0.2777407765, -0.003972101, 0.3077614009, -0.2442105711, -0.0057328739, -0.4587954283, 0.1628584862, -0.2138061672, -0.0694860518, -0.0357297063, 0.038915772, -0.3852996528, -0.2546163499, -0.0749212578, 0.2158121318, 0.1608700156, -0.1427342892, -0.0968833044, -0.1639653146, 0.0675174817, -0.1155511811, -0.575061202, 0.203764081, 0.3043478131, 0.0976550058, -0.2666791379, -0.1327325106, 0.0501241274, 0.3451719284, -0.1938078701, 0.0252292827, -0.0823957622, -0.0341518149, -0.4138202369, -0.1523549259, 0.1776978225, 0.0573249198, 0.2658067346, -0.1814178228, -0.2510644197, 0.0641667396, 0.1339983791, 0.0557068735, -0.2997832894, -0.1333727986, 0.3854407966, 0.1851490289, -0.0951647535, 0.4663965106, -0.2612830997, -0.3155133128, 0.2619304061, 0.0702880174, -0.2286220044, -0.1106294617, 0.1430113167, 0.0036536583, 0.0739963949, 0.2212087065, 0.2505517006, -0.3267934024, 0.2621975839, 0.3297331333, -0.2598976195, -0.3272094429, -0.2419424802, -0.1252947301, -0.3335347176, -0.1387811899, 0.074893795, -0.1159898639, -0.1452166289, 0.0949209183, 0.0313525088, 0.0480561815, -0.206257835, -0.2742919028, 0.0370926559, 0.3391432762, 0.12596488, 0.1663531214, -0.0384921357, -0.2375504524, -0.0325009339, 0.2613563836, -0.4619376063, -0.1443133056, -0.1348392814, -0.0458179489, 0.4608710408, 0.1276097, -0.0003696728, 0.199598968, 0.2001708448, -0.0017001383, -0.2089055926, -0.3422906101, -0.3116218746, 0.0522610322, 0.0538801998, 0.2088843435, 0.1513405889, -0.1388470083, 0.1814887226, -0.3803018034, 0.1357374638, -0.1391915381, -0.1668487042, 0.3987883627, -0.2156240493, 0.4115797877, -0.0930072367, -0.1541316062, 0.0210987758, 0.2426480949, 0.0362110697, -0.0763923749, 0.0233238265, -0.0944036171, 0.1507285088, 0.2031553835, 0.1740853637, 0.1767477095, 0.1257218719, 0.2538171113, 0.2154756188, 0.119965896, 0.2261167318, -0.0065142033, -0.1190210134, -0.115384236, 0.1623838246, 0.3639620245, -0.2695583403, -0.1094489098, -0.1899953634, -0.3089713156, 0.1934007704, 0.2468034029, 0.1579924077, -0.0653853714, 0.0884063169, -0.1375380009, -0.087968871, -0.3478446305, 0.1863392889, 0.1399738938, -0.0900237262, 0.1239618883, -0.1945771873, -0.0240202639, 0.2098166794, 0.181330964, -0.1363978386, 0.3350525796, 0.1722570807, 0.3454720974, -0.1401737332, 0.0112576531, 0.3753676116, 0.2206598669, 0.3333482742, 0.2926025093, 0.0376370214, 0.0302178189, 0.3496357799, 0.24691239, -0.1901768148, 0.3346484601, -0.106772162, -0.2746525705, -0.0019901609, -0.2964924574, -0.2400924712, 0.1327789277, 0.1189873964, 0.0631735474, 0.0843145698, 0.1264619976, 0.1882162094, -0.2465553433, 0.0711198375, 0.0024900346, 0.1469145268, -0.2575463653, -0.0039939363, 0.3881649673, -0.0150424959, -0.2881393135, 0.1652018875, 0.2157082409, 0.0387003273, -0.1121263206, 0.2215436548, -0.0579873957, 0.0988766551, -0.147516951, 0.0860491022, 0.1966523528, 0.2050226778, 0.1241287664, 0.2433704734, -0.3616890907, 0.0829413235, 0.2663657665, -0.0936808437, 0.007011964, 0.1793231666, 0.0499935895, 0.3326556683, -0.2442811877, 0.1301926523, -0.4037368596, -0.0927732885, 0.3473380804, 0.106314458, -0.0324112587, -0.1338116676, 0.1636234373, 0.3008711934, 0.2863395214, 0.2391319275, 0.1717405617, 0.0551128611, -0.146778807, -0.3187095225, 0.0749261901, 0.1380320936, 0.0064693862, 0.0353377126, 0.3323948681, 0.2515555024, 0.4170930386, -0.0292968359, -0.1962983608, -0.0174175818, 0.1513734609, -0.0338279456, 0.1229168698, 0.1477125585, 0.1513027698, 0.0509279594, -0.1168856099, -0.2503300309, -0.0786989704, 0.1806660593, -0.2451578826, -0.024823973, -0.1587810665, -0.3033138216, 0.2724944651, -0.0848017782, 0.2059206367, -0.3882678449, -0.071186386, 0.109319821, -0.2837796211, -0.0184020046, 0.3539359272, -0.049229227, 0.2133596987, -0.0602179244, 0.0124984095, 0.0551262796, -0.1149763167, 0.0985492542, 0.1641896665, -0.1521478444, -0.0104289465, 0.4137107432, -0.2293922901, -0.0354562365, 0.6886970401, 0.0779254511, -0.0594684556, -0.0233438499, -0.1827035099, -0.083753854, -0.1309295893, -0.270411998, 0.0565039068, 0.0346856788, 0.1069269553, -0.0441019349, -0.4928300679, 0.0725595206, 0.2490632683, 0.4061501622, -0.0792974159, 0.2087539583, 0.1567536443, -0.1536519527, -0.0504052565, -0.0800560489, 0.0436576717, -0.166424498, -0.0209543798, -0.3597685993 ]
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.0495597422, -0.1261753589, 0.0484425649, 0.5216320753, 0.0280472375, 0.2442049384, 0.225789696, -0.1295135468, -0.0764305741, -0.0352302305, -0.3937832713, 0.0283757411, -0.4157283604, 0.3712356985, 0.275316149, -0.4878650308, -0.0401313715, -0.1847280264, -0.0573809482, -0.0662162453, 0.0544464141, 0.2652643919, -0.0837496743, -0.0141651202, -0.7082767487, -0.2576464415, -0.2459637374, 0.5358037949, -0.0593676232, -0.2135650218, -0.1025887057, -0.0253923759, -0.1053595841, 0.4787704647, -0.0001166607, -0.2765085101, 0.2415371835, -0.0704953372, -0.1584601402, -0.1901421398, -0.3039592803, -0.101089254, -0.1578003019, 0.0485259183, -0.0672849715, 0.1110403687, -0.2357472777, 0.0720800832, 0.1161287725, 0.2136204839, 0.1436246485, 0.171384722, 0.2292739004, -0.1413155198, -0.0795615762, 0.1754793525, -0.1360079944, 0.1217539534, 0.1660673767, 0.1298540831, 0.1339412481, 0.2862459123, -0.2868771553, -0.33875826, 0.0378697328, -0.156573385, -0.1137381643, -0.2021169513, -0.1208337992, 0.6377717257, 0.782587409, -0.04603393, -0.4587582052, -0.1823883504, 0.166218251, 0.1890717298, -0.0151089411, 0.2074811608, -0.190239951, 0.0880811065, -0.4997956753, -0.3024017811, -0.1117862538, 0.1520486921, 0.1694428474, 0.4894138575, -0.0048374119, 0.1498208493, 0.0406989902, -0.0129359262, -0.6592087746, 0.0461833403, -0.1632294804, -0.0782558694, -0.5269981623, -0.2313212007, 0.0054969336, 0.2764652669, 0.2792699635, 0.2418642193, 0.1933353543, 0.0343860313, -0.4858170152, -0.0963606238, 0.3565448523, -0.035755232, 0.2355090678, -0.4836917222, -0.0768124536, -0.3012526929, 0.2371321768, 0.1238580719, -0.2489856035, 0.0568618663, -0.0454353802, -0.1912589818, 0.0778547525, 0.0098756989, 0.1015384942, -0.0046856152, -0.1881654263, -0.19040066, 0.3987605274, 0.3084577918, -0.2176785618, 0.0310234576, -0.2466753572, 0.5173609257, 0.2140965015, -0.27504462, -0.1006626934, 0.2084707469, -0.0185940806, 0.2577991188, 0.0416526012, -0.1372458041, 0.3089644015, 0.0768448114, 0.4037552774, 0.0251384787, 0.0357509926, 0.072368294, 0.0309203938, 0.061165493, 0.0265696105, 0.2006106526, 0.1279187948, 0.1385942549, -0.0259206686, 0.0555954129, -0.0541705079, -0.4240857959, -0.821996212, 0.0419632457, -0.3433515728, -0.4522158802, -0.0966315866, 0.2801696658, 0.075895153, -0.1119189262, 0.0898483321, 0.1927165091, -0.2006131411, -0.2603941858, 0.1181051135, 0.4660356641, -0.0739355534, 0.0199911389, -0.0051789847, 0.048932381, 0.1514675617, 0.2265946418, -0.2079221457, 0.0020899035, 0.0370475166, 0.5209832191, 0.0974763036, -0.1354452074, -0.0091419006, 0.1261936277, -0.1579442024, 0.4558427036, 0.2269839048, 0.4218330681, 0.0401254855, -0.0735232383, 0.2379350513, 0.2138477564, 0.0857972875, 0.0093415361, -0.1274503618, -0.2149721384, 0.3545293212, 0.1450643539, -0.1484978795, -0.2715402544, 0.0218773931, -0.0533042103, 0.3994188309, -0.0728085414, 0.214067772, 0.1887443513, -0.0459014364, 0.3278734684, 0.0064846985, -0.3588356674, -0.0401545838, 0.0463245027, 0.4060172439, 0.3642265201, 0.2133591622, -0.091345489, -0.0593797117, 0.0209012814, -0.197176829, -0.3014431596, -0.0209978726, 0.3040893674, 0.0192147195, -0.2110363096, -0.3215513825, 0.6143249869, 0.2347307503, -0.0238541178, -0.3885957003, 0.1535156816, 0.0642832667, -0.0954657122, -0.0493883416, 0.4657987356, -0.1018567234, -0.1015429944, 0.0256351959, 0.3633401096, -0.3810468614, -0.0191667303, 0.2527377903, 0.2115601599, 0.145554468, -0.0376938693, 0.3808534741, -0.3574174643, 0.0935362503, -0.1666322201, -0.03167741, 0.0237861443, 0.0688073561, -0.1138605922, -0.3425867856, 0.3334617317, 0.1323537081, -0.0600712672, -0.2378441691, -0.050198894, 0.2843130529, -0.3968088329, -0.2087935954, 0.0861882418, -0.5717889667, 0.2553269267, 0.2885808051, -0.268114239, 0.3120869696, -0.007546878, -0.2782263458, -0.2280252576, -0.0677190721, -0.2392432243, 0.1310910583, 0.3073766828, 0.0268666595, -0.2262409031, 0.0077415556, 0.0461378619, 0.1179579124, 0.1477185041, 0.1421058923, 0.2155926973, 0.1317404211, 0.1953990608, -0.0600350834, -0.1858833134, 0.0917342976, 0.0612706617, -0.2202704847, -0.3777099848, -0.2315760255, 0.0206584018, -0.0031800563, -0.8598553538, -0.37761724, 0.0210869741, 0.1854080707, -0.2086369395, 0.1864875853, 0.1409976929, 0.1710362881, 0.0905527547, -0.1613756567, -0.0967273191, -0.2473042607, -0.4741033614, 0.0599150844, 0.0706343427, 0.1254865229, -0.0712725818, 0.3366229534, 0.1479423791, 0.158692494, -0.1248510107, -0.3355085254, -0.0475237928, -0.3214030862, 0.3632975817, 0.1861050576, 0.0045007979, 0.1736128777, -0.5391618609, 0.0940195397, 0.0636408031, -0.1032526717, 0.0796103701, -0.0586551614, -0.3287819624, 0.0343881547, -0.133008346, -0.2042254359, -0.4464139342, 0.293230027, -0.0822251141, 0.0681074262, 0.1388569325, -0.2183091938, 0.3125790358, -0.2282411903, 0.2930274904, -0.2374428064, -0.4391104281, 0.3867267668, -0.1543560326, -0.1579537839, -0.0408221483, -0.2597220838, 0.2749284804, -0.2068919092, -0.1263915598, -0.2367943376, -0.1196149141, -0.1223814562, 0.1548677534, 0.0074257385, 0.3379837871, 0.1504379809, -0.1130659655, -0.0759115145, -0.4116905034, 0.1002100706, 0.4797809124, 0.322048068, -0.0224164426, 0.015180489, 0.0278298259, 0.4263086617, 0.2595109046, 0.1940469146, 0.1456072032, -0.0416595303, -0.0503388941, -0.1276602745, -0.6021878719, 0.3620354235, -0.1072277576, 0.1803502887, 0.3086297214, 0.3506394327, 0.0297506843, 0.0051747616, -0.3613119721, -0.4042975903, -0.2486948073, 0.0308375377, -0.1375454366, -0.165691942, -0.3035284877, -0.3996589184, -0.2994044125, -0.2451198548, 0.2551679015, 0.4556035101, -0.1871855408, 0.0674220622, -0.0554055609, 0.2080793828, -0.1167581528, 0.2883276343, 0.283444196, -0.242614463, -0.3276436925, -0.0068077692, 0.1010643691, 0.2707680166, 0.8676865697, -0.3521383405, -0.4406842887, -0.0189918503, -0.0773840025, -0.1104202792, 0.2062214017, 0.0678933784, 0.2154580355, 0.2241030186, 0.4616438746, -0.0805995837, -0.0421268754, 0.4925207794, 0.2451321483, 0.0402822457, -0.0942876488, 0.1154119223, -0.2007342428, -0.4446722567, 0.0482646115, -0.1206624582, 0.2248321921, 0.412296474, -0.2588495016, 0.1395408362, 0.2476586103, 0.4659259915, -0.2856924832, -0.0763510317, 0.4765971601, 0.1237194985, 0.1571486294, -0.0069005745, -0.0467528999, 0.2670629919, 0.3491565585, -0.0073565035, -0.2886117399, -0.3671672642, 0.6399356723, 0.2458280772, 0.2599236965, -0.0043925722, -0.049690742, 0.266639173, -0.0702734664, 0.090536207, -0.038011007, 0.2193395644, -0.3569742143, -0.2911621034, 0.2542301118, -0.0566717833, -0.1089179665, 0.3481284976, 0.1393652409, 0.0917531699, 0.0575120747, -0.0708090439, 1.2208235264, -0.1219747663, 0.2385087758, 0.1832049638, 0.1185875982, 0.3062672615, -0.3133833408, 0.0434009321, -0.0887923688, 0.4918663204, -0.1058600917, 0.0500413142, 0.0773830488, 0.0689167082, -0.2723093331, -0.1200609058, -0.1255696118, -0.3180559278, -0.1728460789, 0.1763083488, 0.167909041, -0.4396863878, 0.194803521, 0.0914047137, 0.0268141236, 0.0991167948, 0.1932020336, -0.4706454575, -0.2478194684, -0.0061868178, -0.5756500959, -0.1030138358, -0.1777904481, -0.0751585364, 0.1510763019, -0.4125760198, 0.2650757134, 0.6566474438, -0.0458363183, -0.036484573, -0.1906548142, -0.0270593222, -0.3097651005, -0.1800453067, -0.0290714279, 0.0146048125, 0.5625346303, -0.0856470838, -0.4616306424, 0.1913686693, -0.0405458771, -0.1574320197, -0.2143809348, 0.0939355567, 0.3514000177, -0.1234132424, 0.0840732753, 0.4758816361, 0.1632345617, -0.1882021129, 0.0587330684, 0.3752677739, -0.2726207376, 0.1003443971, -0.0824421421, -0.2002208829, -0.1921371818, 0.1064527705, -0.0451689847, 0.0649108961, 0.3358596563, 0.2078391463, 0.0046555977, -0.1652279496, -0.117167972, 0.0126071228, -0.0297696665, -0.2118088752, 0.5123297572, -0.1869951785, -0.0449882261, 0.016091207, 0.1603281349, 0.1677425057, -0.081491977, -0.3418290913, -0.1718787551, 0.1577097327, 0.0150298914, 0.0357604586, -0.2085572481, 0.1139456481, 0.2710703909, 0.4699588716, -0.2757550776, 0.0167701226, -0.2806573808, -0.0290527996, 0.5896813273, -0.2300724387, 0.1488158852, -0.0789914504, 0.07719744, -0.4200711846, -0.1101436019, -0.088540867, -0.3610191643, 0.1684496999, 0.0748721659, -0.1540768743, 0.2706821859, 0.0158065055, -0.0894806311, -0.2250719965, 0.3320052028, 0.237698853, -0.0703224912, 0.0462863185, -0.248447299, -0.0196932349, -0.3048248887, 0.134823516, 0.1987126768, 0.0725640953, -0.0384819359, -0.0703202486, 0.0490026921, -0.294041723, 0.2146622986, 0.2510716915, 0.1416672468, -0.0568032116, -0.0330818668, 0.1440102011, -0.0253854655, 0.3045455217, 0.3379088938, -0.2967102528, 0.1120468676, 0.2842158675, 0.0707962215, 0.0439119674, -0.2023292184, -0.1432791948, 0.1610297412, -0.2441749424, 0.0529657304, 0.1319923997, -0.0511858016, 0.1343568712, 0.0085510183, -0.3371322751, 0.0945688039, -0.1736169457, -0.0558873639, 0.0412960127, -0.4468114674, -0.1386162192, 0.3172748685, 0.2480263114, 0.2894786596, 0.1697865278, 0.0131895691, 0.2350252569, 0.0140647767, 0.0810088888, 0.0222416874, -0.1308624744, 0.2727144957, -0.0621144399, 0.1389017403, -0.0964663923, -0.0127953608, 0.8489482999, -0.0531652384, 0.0939543396, -0.1823533475, 0.4093397558, -0.0385649391, 0.0198611841, 0.1863222569, -0.1902027428, -0.2819325924, -0.1889740974, 0.0304581895, -0.1939523965, 0.5753381252, 0.1022954062, 0.159906745, -0.5247255564, -0.119486317, 0.0622980744, -0.2186886072, -0.3328738511, 0.1273480654, 0.4176219404, -0.233539328, 0.2680816054, 0.284391135, 0.5901278853, 0.0581664369, 0.0592191853, 0.3245362639, -0.2579356432, -0.0714362264, 0.0402383059, 0.3600096405, 0.1942011714, 0.1206992641, 0.1378460974, -0.005047692, -0.1075204685, 0.2780385613, -0.0980777144, -0.0631904677, -0.3260621727, 0.2701674402, -0.1711436063, -0.3203283846, -0.2823594511, 0.0094380388, -0.4559195638, -0.4043710828, 0.3326559663, 0.0235002674, -0.2665005326, -0.23152785, 0.0525778458, 0.0410168022, 0.4059997201, 0.3472779095, 0.1792752147, 0.0704648197, 0.2959878743, -0.6454321146, -0.1585431546, 0.36472103, -0.08004421, -0.0159732308, -0.1301051229, 0.5115667582, 0.1902519315, 0.0810148269, -0.3565250337, -0.0754355043, 0.0700322241, -0.1761051714, 0.4418861568, 0.4003621638, 0.1796962023, 0.2914296091, 0.2323218137, 0.0274969507, -0.0136618419, -0.0643404275, -0.0957335681, -0.1059934869, 0.0085342592, -0.3982713521, 0.2332939357, -0.1317207515, 0.6390529275, -0.1394643784, 0.1082863584, -0.0935811028, -0.0011767964, -0.1551574767, 0.1179216951, 0.0444158539, 0.6158028841, -0.1510686427, 0.0670228899, 0.0121991346, -0.1279336512, -0.2693748474, 0.3373316526, 0.0121930363, 0.1458608657, -0.0913505778, -0.1188275591, 0.3091870248, 0.2624586523, -0.0521306284, 0.1051343232, 0.0185578316, -0.079529658, 0.5583520532, -0.0703390166, -0.2576853633, -0.4120702446, 0.1972281635, 0.0915482715, -0.0519295968, -0.5948373079, 0.0284346528, 0.1802100688, 0.3053229451, -0.2246882915, 0.4031972587, 0.1277087629, -0.1863015741, -0.0024884015, 0.0475102179, -0.0397527553, 0.0446499623, 0.2181625217, -0.0562603772 ]
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.6300708055, 0.2058907598, -0.0102496855, 0.1388328224, 0.1934467554, -0.1737716198, 0.5314205289, 0.083163783, 0.3500736356, 0.236711964, 0.1306475848, -0.0646166056, -0.1149485931, 0.4892583489, -0.061324019, -0.0358767994, -0.1664478332, -0.0370641537, -0.2075222731, 0.16657646, -0.1922241151, -0.1634629667, -0.5264270902, -0.1563565433, -0.2378027737, -0.2821218073, -0.050795693, 0.1434434801, -0.067549333, -0.3244418204, 0.2889086604, 0.1382352859, 0.2235022187, 0.4449347556, -0.0001075604, 0.0459715091, 0.0817121267, 0.0424994528, -0.219359383, -0.3220709264, -0.2740171552, -0.5323525071, 0.1792139858, -0.3614760637, -0.2261402458, -0.1060202867, -0.0022873841, -0.4843772948, 0.3558476269, 0.2895819247, 0.1922076195, 0.6198390126, -0.2299233675, -0.2431981564, -0.1677203178, -0.1656209677, -0.1867385954, 0.3589766026, 0.1642500013, -0.0384119377, -0.0706446841, 0.0921199471, -0.1044346988, 0.0972448513, 0.434920609, 0.0993567854, -0.1420595944, -0.0717148259, 0.1741680652, 0.5084937215, 0.5811341405, -0.2377760857, -0.2352239043, -0.2079221457, -0.1121011078, -0.4787678123, 0.0884914622, 0.176301077, 0.0440584011, 0.3034046888, -0.4777003825, -0.254540503, -0.3263362348, 0.1942963302, -0.4016205966, 0.201392889, -0.1917236894, 0.1068930477, -0.1827457398, 0.1533900946, -0.0075839749, -0.2337017953, 0.1550295055, -0.1302922517, -0.3167186975, -0.0140244337, 0.0825169757, 0.2733767033, 0.0394196697, 0.1726537049, 0.1644296348, 0.0296573564, 0.0703103244, 0.0388144031, 0.3789533377, 0.2198381722, -0.1209219694, -0.3116756976, 0.6292066574, 0.0068750996, 0.0290251486, -0.2422123104, 0.3572410047, -0.332230866, 0.1250270605, -0.0004764907, 0.3401114941, -0.0963581279, -0.1281310618, 0.0624009371, 0.1831564307, -0.15755862, 0.088540636, 0.2160649896, -0.2617760003, 0.0305716936, 0.1420489699, 0.4152131677, -0.2527974248, -0.3033896089, -0.0704958066, -0.1785693616, -0.0896872208, 0.1340272427, 0.3163670301, 0.2598673701, 0.0254876576, -0.0343849063, 0.171494633, -0.0133730089, 0.4245753288, -0.090187937, 0.1361574829, 0.301831454, 0.1157083139, -0.060055647, 0.0591587797, -0.118126452, 0.0598679557, 0.012716691, -0.1156595051, -0.3404824436, 0.2708466947, 0.2129339278, -0.5129675865, -0.1099458486, -0.3253320456, 0.0678000301, -0.3322140872, -0.1121462211, -0.0031906744, -0.1588516831, -0.3020490408, -0.2183875293, 0.2850368619, 0.6506160498, -0.5364610553, 0.1531350464, -0.0336903036, -0.1371343583, -0.1496425867, 0.0943928584, -0.3362304866, 0.6654828191, -0.0118890516, -0.339677006, 0.4533729851, -0.4085683227, -0.2588604689, 0.2776843309, -0.3286610246, -0.0729337484, -0.0654048994, 0.2060268521, 0.4211370945, 0.0657776967, 0.092955403, 0.1874696314, -0.0519747436, -0.02440436, -0.1945667714, -0.2632913589, 0.2911949456, 0.2045401484, 0.3346413672, 0.0669414774, 0.3081209958, -0.1736798435, 0.0435172394, -0.1846485138, 0.2528409362, 0.0154081816, 0.1728464067, -0.0217745956, -0.1127804741, -0.1736567169, -0.6063697934, 0.3064250648, 0.0231698789, 0.0968806148, -0.1869287789, -0.1187958494, 0.0240960009, -0.1919628531, -0.0954886898, 0.0504773147, 0.1024774313, -0.2254907042, 0.0808497518, 0.1283679307, -0.2564831972, 0.202966854, -0.1189565733, -0.00991135, 0.0438439995, 0.2811491787, -0.0489588156, 0.0290210005, 0.0381038859, 0.0005994, 0.0214394517, -0.2149717063, -0.017181458, 0.4893764257, 0.000605992, 0.139884904, 0.2435285896, 0.4766896367, 0.386459887, -0.1545757353, 0.56985569, -0.0209585838, 0.269774884, -0.2345478833, -0.2590691447, 0.5913993716, -0.1949974746, 0.2110204399, 0.085128665, -0.0037556109, 0.1491416693, -0.0165280383, -0.4646924734, -0.0718338117, -0.0075025489, 0.0016717638, 0.1255856901, -0.1001414135, -0.3027392328, 0.0762124136, 0.3309548497, 0.0889343098, 0.2562536895, -0.1848618686, -0.0806868747, 0.0944449008, -0.014334077, 0.0207723733, 0.5388504267, 0.1315513253, 0.0488948263, 0.2817272842, -0.0158035923, -0.3472723365, 0.1246084571, 0.2198944092, -0.0228709131, 0.0908930823, 0.0311372243, -0.0293928869, -0.1287688762, 0.0264611542, 0.0120825181, -0.0286058225, -0.2554799914, 0.2454203516, -0.3986751139, 0.0395877175, -0.0565144159, 0.0932426527, -0.3712321222, -0.2391108871, 0.0468524992, 0.1336501688, -0.2514071763, 0.148957178, -0.1666209847, 0.52065593, -0.2418761998, -0.1473502517, 0.1968584806, -0.5571704507, -0.1149320602, 0.0846704915, 0.3601272702, 0.217810899, 0.4645656049, -0.0489887185, -0.0849459544, -0.3521949947, -0.1436621398, 0.025949711, -0.0372472964, 0.3027530015, 0.0437213928, 0.2129589617, -0.030940773, 0.2163396627, 0.3268577158, -0.3476830423, 0.261010021, 0.0145969344, 0.012082519, -0.142859593, -0.3249204159, -0.5815708041, -0.5232009292, -0.3354820013, 0.1599174291, 0.0059762038, -0.060207136, 0.0477925725, 0.0959361345, 0.0486624278, 0.0634143278, 0.0541645698, -0.1572211683, -0.4133062363, 0.1801300645, -0.1736983359, -0.5983694792, 0.4090825915, 0.1445650011, 0.1866303235, 0.4446811378, -0.4329781532, -0.1786335111, 0.0999475867, 0.4149424732, 0.2194606662, 0.3698681891, 0.4159151316, -0.0263587721, -0.0044901692, -0.1017859355, 0.1604259908, 0.2131545097, -0.0501594506, -0.0727306306, 0.1946498454, 0.1170222238, -0.0909302756, 0.5493084192, -0.0598431863, 0.0626046136, 0.2284744531, -0.11739669, 0.6396971345, -0.1641616225, -0.0831007659, 0.1386890709, -0.0655952096, -0.2300420851, 0.2599751651, -0.065780431, 0.0406441353, -0.6198848486, 0.0020187292, -0.3696757257, -0.4392200708, 0.098796837, 0.2668216228, 0.4354861379, 0.2188316733, 0.23445189, -0.2026197761, -0.1401429623, -0.0432289243, 0.295032829, 0.1143775135, -0.0095117865, -0.1662008911, 0.0718224347, -0.358861953, 0.3179507554, -0.1387809366, 0.3281268477, -0.0474770404, -0.0183207467, -0.0609112158, -0.048376061, 0.353731811, -0.4296561182, 0.0080436217, 0.2310295999, -0.0894415528, -0.2590503395, 0.0481310673, -0.3023552895, -0.1070721895, 0.1232944876, 0.23126553, -0.0090616634, -0.2890506983, -0.0935750753, 0.4394928813, -0.3306918442, -0.1491357535, -0.1300391108, -0.026464602, -0.2965613902, 0.1153246984, -0.1198116019, -0.0172982514, -0.2313774228, 0.09640944, -0.1704923809, 0.1686467528, -0.0581247956, 0.0691089332, 0.0691004619, -0.2343954295, 0.2624779642, 0.2558907866, 0.1509254575, 0.5121371746, 0.2453926206, -0.0556902662, -0.0811074078, 0.1570572406, -0.0704071522, 0.4112350941, 0.4923600852, -0.1125677899, -0.176535368, 0.2434656322, 0.2588067651, -0.5872605443, -0.0939201787, 0.0892568752, 0.1319001615, -0.1381251961, -0.2807334661, 0.2145858109, 0.1436353922, -0.0498344153, -0.0280278791, 0.275249958, -0.24845393, 0.0456351303, -0.0597793758, 0.7471337318, -0.0503543876, 0.2299503833, 0.171041429, 0.1345075071, 0.3820537329, -0.3570562899, 0.0242574438, 0.0083440598, -0.2609067559, -0.1121662706, -0.1517976522, 0.3989054263, 0.1196517348, -0.1589448005, 0.5752493739, -0.0488132313, 0.3787565529, -0.3056919575, 0.2353721857, -0.0690017268, -0.150935486, -0.2804446518, 0.1945443153, 0.0841048062, 0.1325061023, -0.2965495884, -0.1999386847, 0.0805013925, 0.1032051891, 0.0199742913, -0.1605796367, -0.0908029824, 0.0750891715, -0.2080807984, 0.0110154366, 0.1845134646, 0.072354652, 0.4488834143, 0.2354970574, -0.4055700898, 0.0239276923, -0.4745929837, 0.1689143181, -0.0147645371, 0.2257874161, 0.2119621634, -0.2073982507, -0.2758949101, 0.0584932156, -0.0901270881, 0.0520820878, 0.4216805696, -0.0912184268, -0.1135951579, -0.2078427672, 0.1400362104, 0.2337010056, 0.1270943284, -0.1188963652, 0.1302800924, 0.1750443131, 0.1143170148, 0.43481341, -0.0489926152, -0.1153583527, -0.2252299786, 0.3077349961, -0.1198251247, -0.1528261304, -0.0878995359, 0.2735417187, -0.2031888664, -0.3384056389, 0.196448639, 0.046516899, 0.0449068435, 0.225860253, 0.4077033699, 0.4182563424, -0.11939504, 0.4594064653, 0.0348666124, -0.173382014, -0.1316822022, -0.3336322606, -0.3115437627, 0.2858283818, 0.4760400951, 0.1319063455, 0.0429586656, 0.0135141211, 0.0800837129, -0.16909796, -0.375670135, -0.0080089187, -0.030189231, 0.0805656537, 0.1734398454, -0.164610371, 0.3184393942, -0.139202401, -0.0031448817, -0.1964246035, -0.407361269, -0.2196914554, -0.0056018271, 0.2171227187, 0.0729128942, -0.4410373867, 0.0773470625, -0.5827112794, -0.2432708293, -0.1612302512, 0.2887275517, 0.4088551402, -0.1986241937, 0.0132576162, -0.032387726, 0.38978374, -0.1986432821, 0.1378958374, 0.0811310709, 0.2517088056, -0.11562071, 0.208947286, 0.1144659594, 0.0455650613, 0.0876551196, 0.0893077776, 0.1664664447, 0.1618379802, 0.4194570482, -0.2242739499, 0.0255391598, 0.1512094289, 0.5265106559, 0.2531047463, -0.0403763242, 0.1189203933, 0.1235129386, 0.1960498095, -0.3990578651, 0.0341198221, 0.1256480813, 0.1630678177, 0.3431504369, 0.0698583797, 0.4620227516, -0.040851146, -0.2096595615, 0.0178091154, 0.2600048184, -0.291955322, 0.2190137655, 0.0231897365, 0.0135689387, 0.1464995146, 0.0203753356, 0.3932595253, -0.0602550879, 0.2468484044, -0.3339199126, 0.2350606173, 0.0747696012, 0.1230949163, -0.1912603825, -0.4348838627, 0.2412764877, -0.0731847137, -0.1855634451, -0.2716336548, -0.2943278253, 0.0332480147, -0.3944120705, -0.0690757781, -0.1865729243, 0.0916664749, -0.1238564774, 0.0107897166, -0.3834720254, -0.3246235847, 0.0348960385, 0.1055619717, 0.0962772816, -0.0437326431, -0.0064713201, 0.0819923952, 0.075953491, -0.1092396751, 0.1654794365, -0.0799266398, 0.0434888043, -0.0302069224, -0.0392670855, 0.2523209751, 0.0701688901, 0.1473389417, 0.3580794036, 0.2618344426, 0.0386814512, -0.222741738, 0.2019044459, -0.0103040701, -0.1117859706, -0.1631403714, 0.1722762138, 0.0063028028, 0.030220855, 0.3716368675, 0.1245408878, -0.1198315695, 0.3440977335, -0.1338333338, -0.1742625386, -0.4563523829, 0.2229207903, 0.1796985269, -0.1642235667, -0.1059799418, -0.1711055189, -0.0731738359, 0.0550526343, 0.4335767031, 0.0114540663, 0.1584360451, -0.2045157999, 0.0911282897, 0.0008951395, 0.5557253361, 0.1665423363, 0.2724840939, -0.2918747067, 0.0434723794, -0.8117443919, -0.1683026999, -0.2191193253, 0.415037483, -0.0744278282, 0.0899983719, 0.0912722945, 0.4602129757, 0.0921960846, 0.1643072963, 0.0427026674, -0.1950077713, -0.3067815602, -0.0896471068, -0.1256375909, -0.0447904356, -0.0425438993, -0.2563001812, 0.1380438656, -0.3528143764, -0.0254431553, 0.0278753005, 0.1930947155, -0.1598227471, -0.0996007994, 0.4608584344, 0.1199981347, 0.4414413273, 0.197662726, -0.0157537255, -0.1962548047, 0.0738466233, -0.0716665387, 0.1275081635, -0.0289348233, -0.0052907914, -0.1757265478, -0.1376700252, -0.1885931939, 0.1871831417, 0.0293529928, 0.0823308527, -0.0889894739, -0.1222602129, -0.0735001937, 0.1361115724, 0.0541608594, 0.0281366538, -0.1415180564, 0.1670803875, -0.1907014549, -0.0634677634, 0.3272378743, -0.094741106, 0.0126255415, -0.5545053482, 0.3333746195, 0.05278451, 0.0571753308, -0.3271179199, 0.150537014, 0.2696192861, -0.2143476754, -0.1104711369, 0.2254100889, -0.2465935647, -0.2582939565, -0.0356633067, 0.2865624428, -0.2709172368, -0.2224071026, -0.1685855836, -0.1292221099 ]
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.4731808305, 0.2457837164, -0.0126307793, 0.1412143409, 0.2833553851, -0.1470210701, 0.6012274623, 0.0127758998, 0.2687810063, 0.1312779933, -0.02403678, -0.0239853263, -0.0246622693, 0.4021068513, -0.0912402794, -0.1021380424, -0.172233507, 0.0388773903, -0.1540049464, 0.1325946748, -0.1408106685, -0.1281193048, -0.3727091253, -0.0282361452, -0.1628142446, -0.1865873188, 0.009141705, 0.1420213133, -0.1572316438, -0.276296407, 0.2854102254, 0.1805244088, 0.2238954604, 0.4791247547, -0.0001042308, 0.143766731, 0.0545552336, -0.0134886, -0.2069025189, -0.3381869793, -0.191774711, -0.3979362547, 0.2337576151, -0.400737673, -0.2150846124, 0.0365373828, -0.0734725893, -0.3958376348, 0.3150739372, 0.3079384267, 0.2526886165, 0.663372457, -0.1480610073, -0.3228699565, -0.1723312885, 0.0102021052, -0.2392339557, 0.3925463855, 0.0617909543, -0.070886381, -0.111098513, 0.1163178161, -0.1192908436, 0.0119443582, 0.3592292964, 0.0990150347, -0.0436061881, -0.0926576778, 0.1286549866, 0.4549901485, 0.3857677281, -0.2256468087, -0.3233913183, -0.4115029871, -0.1213287488, -0.3992851675, 0.0777640417, 0.0915819108, -0.0518018641, 0.2859628797, -0.4508607984, -0.2770608962, -0.3688123226, 0.0866336226, -0.3436934352, 0.1290587932, -0.2209810019, 0.0518597923, -0.0594522282, 0.1764983088, -0.1783764064, -0.2810510993, 0.1342646629, -0.1318920851, -0.2653566897, -0.0710259601, 0.1660245806, 0.0489501469, 0.1325019747, 0.0835704133, 0.2456043065, 0.0134867001, 0.0630618483, 0.0728721991, 0.4931012094, 0.2701185048, -0.0664051175, -0.1654517204, 0.5901671052, 0.1680276692, 0.0154068414, -0.2984624803, 0.3438810706, -0.2474087179, 0.0511436798, -0.0044536921, 0.3934405744, -0.2904767096, -0.0705589354, -0.0289390329, 0.2609570324, -0.0422500446, 0.230247736, 0.2531339526, -0.200735569, 0.0239089672, 0.002387753, 0.3707029223, -0.2583318949, -0.2877788246, -0.069178015, -0.2514778078, -0.1524574161, 0.0909145996, 0.1942047477, 0.0988479853, 0.0931647718, -0.0352789238, 0.2799164057, 0.0193173513, 0.2784256041, -0.0613345206, -0.001495527, 0.3023600578, 0.1102336124, -0.068108812, 0.1214375123, -0.1861231923, 0.0257518031, 0.0565424524, -0.0653340667, -0.4622021019, 0.1761787385, 0.219720602, -0.6732065082, -0.2223998457, -0.2730339766, 0.1555660218, -0.2369359881, -0.2124962211, 0.0235866178, 0.0184608791, -0.2118945122, -0.211705938, 0.287876755, 0.5173382759, -0.4603884816, 0.0129499678, 0.0447109826, -0.2136076689, -0.207164973, 0.1019181088, -0.4149192274, 0.6289385557, 0.010753735, -0.3816750646, 0.559537828, -0.3048191667, -0.3140291572, 0.2726417184, -0.1605725586, -0.0045870738, -0.0534322187, 0.1087544933, 0.460352838, 0.0848671123, -0.0908236429, 0.2521169186, -0.1281451583, -0.0130096171, -0.2615109682, -0.3172560632, 0.1956141442, 0.3260177374, 0.3225421309, 0.17080836, 0.2575958669, -0.1861369163, -0.0085248454, -0.1622692496, 0.1202044934, 0.0423876233, 0.2255621254, 0.0671961755, -0.010231032, -0.1653408557, -0.5502769947, 0.2796307206, -0.0287092663, 0.2188272476, -0.2158023715, -0.210777998, -0.027634779, -0.1952420026, -0.1810872257, -0.0795598254, 0.117110692, -0.1978264898, 0.0859222636, 0.098288998, -0.2900710106, 0.1137298569, -0.0119812256, 0.0217425544, -0.1584362984, 0.3012230694, -0.049839139, 0.0836620331, -0.1551095247, 0.0562894084, -0.0545987375, -0.1622435749, -0.0954586938, 0.5110428333, -0.0238856599, 0.0563261583, 0.2349390686, 0.5590959191, 0.3679668307, 0.0043759267, 0.4956291616, -0.050212916, 0.3213086128, -0.1114702448, -0.3984199464, 0.7357347012, -0.1440515667, 0.2574731708, 0.0989937782, -0.0164563265, 0.291070044, -0.0265043564, -0.4488824904, -0.0220368616, 0.0183654875, 0.0145755541, 0.2139870524, -0.0351545438, -0.3072081208, 0.0073908004, 0.366068691, 0.065332979, 0.1509137154, -0.0016659349, -0.0714010075, 0.0618563369, -0.0847103968, 0.0961385742, 0.5059414506, 0.2225107253, -0.002084638, 0.2222687751, -0.0752182677, -0.2918920815, 0.1622449905, 0.2784023881, 0.0117791845, 0.0948213786, 0.1106503531, -0.013544362, -0.2606650591, -0.085119769, 0.0104148723, 0.0521302372, -0.3171433806, 0.3023551702, -0.1921412945, 0.044679746, 0.0116658341, 0.1038790196, -0.503385067, -0.1916293651, 0.173893705, 0.0866980553, -0.2768390477, 0.1611506939, -0.0816926658, 0.530148387, -0.1862417459, -0.1722708941, 0.1785869449, -0.5872232318, -0.0618417449, 0.0992662609, 0.3291291595, 0.0315929726, 0.4697215557, 0.1105315313, -0.100488767, -0.2267501652, -0.25936535, 0.0775291696, -0.0444325171, 0.3455693424, 0.0793806091, 0.0427694544, 0.0755400285, 0.2921111584, 0.4025547802, -0.2950232327, 0.251518786, 0.1761242747, -0.1241439059, -0.0401733369, -0.3764846921, -0.4320441186, -0.3803492188, -0.416200757, 0.2004626691, -0.0402467549, -0.0421937555, 0.2894971669, 0.1804341227, 0.0699563175, -0.0712620839, 0.090517737, -0.1396663785, -0.4403934777, 0.2246845663, -0.1572484821, -0.537184, 0.208421275, 0.1666209996, 0.1439090222, 0.2761148214, -0.5148001313, -0.3084289432, 0.0591684505, 0.357950598, 0.1813364476, 0.2270390689, 0.3989451528, -0.1022246182, -0.0224114712, -0.0809664726, 0.0694313347, 0.2551831007, 0.0415011868, -0.0146293286, 0.0407627448, 0.3204083741, 0.0124634439, 0.472830236, -0.0655374229, 0.0620022081, 0.2407372147, -0.0948777124, 0.6474262476, -0.2596337497, -0.148542583, -0.0732288361, -0.0469051078, -0.3458386064, 0.264662981, 0.0285729934, -0.0157962739, -0.568780899, -0.0163188744, -0.2486625463, -0.444013834, 0.184907943, 0.2254668921, 0.3417713344, 0.1493411958, 0.268712312, -0.2899606228, -0.0377979577, -0.055485297, 0.2830598056, 0.0635944009, -0.117180869, -0.2402942181, 0.0881896093, -0.3629255891, 0.278102845, -0.2016145587, 0.1761329323, -0.0393387713, -0.0541602261, 0.0559926666, -0.0758443847, 0.4782179892, -0.3819191456, -0.1164453924, 0.2526445687, -0.1034654006, -0.3154052496, 0.0472196415, -0.2072026879, -0.0110111125, 0.1880612075, 0.2789722979, -0.0935252607, -0.2863282859, -0.0143177835, 0.2607753575, -0.3398859203, -0.2257449478, -0.2240487784, -0.0473369285, -0.3530591726, 0.0501265973, -0.1676058322, -0.023787275, -0.0988301709, 0.1071024761, -0.1596326232, 0.1846585572, -0.0727060139, 0.1555316597, 0.0937977955, -0.301515311, 0.2017152905, 0.2891570628, 0.0554312691, 0.2439211905, 0.3130556047, -0.0757674277, -0.2507784367, 0.2184929401, -0.0449132249, 0.3743801117, 0.4474985003, -0.0075462805, -0.1503682435, 0.2359786183, 0.2909381092, -0.4307909608, -0.1324853748, 0.1148858815, 0.0783317834, -0.1366832852, -0.4067747295, 0.2473439574, -0.0049634739, -0.0512085222, -0.0943637416, 0.1585391611, -0.2393351346, 0.3174618781, -0.10686519, 0.7930577397, -0.0637973696, 0.2442910224, 0.2223539501, -0.0119603546, 0.4988220632, -0.3252682686, -0.0229491536, -0.0340017639, -0.1787110865, -0.0313819498, -0.0793321654, 0.4078507423, 0.054872036, -0.1353470087, 0.5168305635, -0.0338941179, 0.38560009, -0.2857426107, 0.129082337, 0.050179705, -0.2691271007, -0.5489076376, 0.2034656852, 0.0918539837, 0.0732092261, -0.2224261165, -0.2794910967, 0.0674427152, 0.0627634004, -0.0266709719, -0.1881915331, -0.0325167589, 0.0757760108, -0.1396138519, 0.051858861, 0.0764457956, 0.1227717176, 0.4003404677, 0.1215796694, -0.4199983776, 0.0589225404, -0.3985017538, 0.1547269672, 0.0225470457, 0.1779077053, 0.1813086271, -0.1888165027, -0.2497041076, -0.0088855503, -0.1091714352, -0.106730774, 0.4405538738, -0.1216345578, 0.0073921462, -0.3226771057, 0.1737302542, 0.1859425306, 0.2177402228, -0.1645351797, 0.1630952209, 0.203228116, 0.0897038504, 0.3784294128, -0.1469394714, -0.1935922951, -0.2416879535, 0.2845247388, -0.1109834686, -0.1488571018, -0.0757597983, 0.2245462835, -0.1876362413, -0.3061798811, 0.2268291414, 0.0737869292, -0.2808649242, 0.2850722075, 0.3767935932, 0.2331890762, -0.1165044755, 0.2991287112, 0.0643195957, -0.2871186137, -0.1611163616, -0.3281606138, -0.3837016523, 0.2428532541, 0.4140181839, 0.1610078812, 0.0781946182, -0.0397631675, -0.006337997, -0.1876190901, -0.4073795378, 0.0217938665, -0.0592037216, 0.0651990399, 0.2616647184, -0.2107883692, 0.3878106773, -0.2093546838, 0.0535878837, -0.1886049658, -0.4114200473, -0.2793823183, -0.0371241905, 0.187264204, 0.0342981033, -0.3216844797, -0.0484387204, -0.4539426565, -0.3911360204, -0.1426023841, 0.2971314192, 0.452298671, -0.1400373876, 0.011962289, -0.1794687659, 0.4436796904, -0.151553601, 0.0933163539, 0.0538430028, 0.2722330987, 0.0794815645, 0.2418548167, -0.1242846996, 0.0662917718, 0.005219575, 0.1862124354, 0.2457855046, 0.1565159261, 0.4803647995, -0.1563788652, 0.1423413008, 0.3202057481, 0.5329150558, 0.1267689914, -0.0554245338, 0.1896504015, 0.0750890151, 0.2618721426, -0.4182622135, 0.0555133149, 0.0559119061, 0.0692075714, 0.3451641202, 0.1656791717, 0.4651870131, 0.1580530703, -0.0120311677, 0.0449570902, 0.3792149127, -0.0836964771, 0.2313958108, 0.1390158236, 0.0545483418, 0.1466522962, 0.097863622, 0.3678914011, 0.0279548112, 0.2849603295, -0.3214752972, 0.1772391498, 0.0446811244, 0.1018274203, -0.1581349224, -0.4124343395, 0.2898586094, -0.0497147217, -0.0546013452, -0.1823637038, -0.2525887787, 0.1863815635, -0.4326295853, 0.0116937552, -0.215671733, 0.0646705553, -0.0798989981, 0.0103114974, -0.3722074628, -0.3459408581, -0.0216772761, 0.1133543029, 0.0338326022, -0.0128652649, 0.048810441, -0.081849128, 0.0918951035, -0.211190179, 0.1460549831, 0.0580452792, 0.0776612088, -0.0307540391, 0.031486053, 0.2307015061, 0.029500192, 0.1551375687, 0.4924819469, 0.2937014997, 0.0306280609, -0.2166263163, 0.1912288219, -0.0251138844, -0.094762437, -0.1152833253, 0.1165185273, 0.057202924, 0.1724908799, 0.3164797723, 0.1543086022, -0.2009877414, 0.3622318804, -0.2038222551, -0.0695496872, -0.495908469, 0.3163031936, 0.1731225252, -0.1483539343, -0.0404535308, -0.2629608512, -0.1618154794, -0.2425556481, 0.3993487656, -0.0187277105, 0.1477474719, -0.1969573647, 0.106057331, 0.0271291025, 0.4453118443, 0.1525289267, 0.258077085, -0.270478785, 0.2232396156, -0.7864072919, -0.1592859179, -0.0789297447, 0.3429845572, -0.0179705508, 0.1001323089, 0.1175370514, 0.401332289, 0.0578605272, 0.0657561123, 0.1440413445, -0.1705744714, -0.2648234665, -0.0872110277, -0.1376920491, -0.0596197024, -0.0228804965, -0.2512319684, 0.1176672727, -0.2488218695, -0.0115260053, 0.0107077369, 0.1454163045, -0.1141223609, -0.0654082522, 0.4388477802, 0.1017873362, 0.3600199223, 0.2547398508, -0.065102376, -0.1099720225, 0.0138449548, -0.0983543694, 0.041643817, -0.0822125822, 0.023216838, -0.1789954305, -0.1889517158, -0.1935423166, 0.139534384, 0.0901735201, -0.0838334709, -0.2044849992, 0.0220948867, 0.0032967597, 0.1341683269, 0.0018573129, 0.0741957426, -0.1065519303, 0.1723713577, -0.1570728868, 0.0643465593, 0.3616628945, -0.0158101022, -0.0513039567, -0.3619369566, 0.284593761, 0.2454404384, 0.0160166398, -0.6187483072, 0.0592009425, 0.2603121996, -0.1704740822, -0.1079797819, 0.29657197, -0.1877591163, -0.233869344, -0.0189628862, 0.2834101319, -0.2633384168, -0.247261852, 0.001866722, -0.1285082698 ]
https://github.com/huggingface/datasets/issues/824
Discussion using datasets in offline mode
here is my way to load a dataset offline, but it **requires** an online machine 1. (online machine) ``` import datasets data = datasets.load_dataset(...) data.save_to_disk(/YOUR/DATASET/DIR) ``` 2. copy the dir from online to the offline machine 3. (offline machine) ``` import datasets data = datasets.load_from_disk(/SAVED/DATA/DIR) ``` HTH.
`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)
47
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) here is my way to load a dataset offline, but it **requires** an online machine 1. (online machine) ``` import datasets data = datasets.load_dataset(...) data.save_to_disk(/YOUR/DATASET/DIR) ``` 2. copy the dir from online to the offline machine 3. (offline machine) ``` import datasets data = datasets.load_from_disk(/SAVED/DATA/DIR) ``` HTH.
[ -0.4902576208, 0.228896305, -0.0332209729, 0.1388731301, 0.2363724262, -0.0891152248, 0.5481942892, 0.0673726052, 0.2955959141, 0.2450511009, -0.0101742186, -0.0694927797, 0.0276257005, 0.3827281892, -0.1057182997, -0.0218465738, -0.1530393362, 0.0536615513, -0.1772286445, 0.0896228999, -0.1652291566, -0.0921337232, -0.4337234199, -0.0704060718, -0.0181331132, -0.1504259408, -0.0832122713, 0.2194385976, -0.1661249995, -0.2807519436, 0.2388210744, 0.1633141786, 0.2291971892, 0.4750612378, -0.0001033812, 0.026317453, 0.0082087927, -0.0013797709, -0.2269736528, -0.4025880992, -0.2158048302, -0.5285043716, 0.1796488017, -0.4550705552, -0.2032039762, -0.0582042262, -0.0745972171, -0.4929274023, 0.3164806366, 0.3498672843, 0.2593777478, 0.575741291, -0.1358265132, -0.2754446268, -0.1606792063, -0.1514876783, -0.149304837, 0.4366157055, -0.0145772584, -0.0082131634, -0.0025773421, 0.0952334329, -0.1961564571, 0.0413859151, 0.3163409531, 0.0586812012, -0.1016096622, -0.1018179879, 0.2198022008, 0.3930848837, 0.4261617959, -0.2737805247, -0.2470031381, -0.3390043676, -0.0023415969, -0.4567472935, 0.0788481459, 0.1836712956, 0.0242285896, 0.2248841673, -0.3797211647, -0.318239212, -0.3313248754, 0.1638138294, -0.3214628696, 0.011169604, -0.2536791861, 0.0693017319, -0.0612446479, 0.0913347751, -0.1768206954, -0.2851532102, 0.0739111826, -0.0619467236, -0.259450376, 0.0268558804, 0.1183789968, 0.0684493184, 0.131205231, 0.065205127, 0.2398014218, -0.0188177936, 0.0791069791, 0.0497346371, 0.4407636821, 0.2978355587, 0.0075795148, -0.1768716127, 0.5290127397, 0.0910337567, -0.0241948757, -0.2989069819, 0.2565968037, -0.3073078096, 0.1321208626, 0.0137977768, 0.3654088974, -0.304808259, -0.1587883979, -0.0139989248, 0.1392608583, -0.0424630232, 0.1689323336, 0.2522921264, -0.2716248631, 0.0451416411, 0.0697741807, 0.3969353139, -0.2989782989, -0.2657653987, -0.0589483492, -0.1259197295, -0.1128113046, 0.0637706667, 0.1789906323, 0.0000604257, 0.0520432219, -0.0411280543, 0.2421652526, -0.0735092834, 0.2981471419, -0.0951725021, 0.0823783129, 0.2353080958, 0.2750584185, -0.0874183699, 0.0769162849, -0.2003218532, 0.0379155912, 0.0387906246, -0.1426271647, -0.3582569659, 0.1706570238, 0.2765568495, -0.6289309263, -0.175366655, -0.3216257393, 0.0367599353, -0.3161137402, -0.1942733973, -0.0308539234, -0.0616713576, -0.1780047119, -0.2453662455, 0.3240105808, 0.5668387413, -0.383969903, 0.1050267592, 0.0844060779, -0.1604342461, -0.1781924516, 0.0233987458, -0.3148404658, 0.5233698487, -0.0130560948, -0.3010380864, 0.5681835413, -0.3550919294, -0.2651606202, 0.2487459779, -0.1917606741, -0.1059656963, -0.1038613021, 0.0901148319, 0.4400766194, 0.0750484467, -0.084393993, 0.2890105844, -0.0351712033, 0.0004676525, -0.2186111659, -0.2369782776, 0.1673177034, 0.2837591469, 0.2555620968, 0.1129003987, 0.3047426641, -0.1972569972, 0.0391630344, -0.2821210325, 0.1191661209, 0.1654854715, 0.1697199941, 0.1023966447, -0.0442080051, -0.182814762, -0.4893229604, 0.2718417346, 0.0478835851, 0.1571958959, -0.1992017925, -0.1379157156, -0.0203888789, -0.1831312478, -0.176969856, 0.0272824001, 0.1410641819, -0.110787347, 0.1724627167, 0.1293686628, -0.2598982155, 0.178292349, 0.0107884137, 0.0024607095, -0.1300735474, 0.290340066, -0.0492370501, 0.0645999536, -0.0289292317, 0.0881471261, 0.0581810102, -0.1937223375, -0.1185832843, 0.5259699225, -0.0300908238, 0.0616295598, 0.26878497, 0.3818561733, 0.3064637184, -0.0120453043, 0.5338502526, -0.0427263044, 0.3334376812, -0.09251035, -0.3228542507, 0.7542521954, -0.1525753736, 0.2171271443, 0.1025259495, 0.0183239654, 0.2599794567, 0.001278999, -0.4040779769, -0.0359523296, 0.1184480488, 0.0022458769, 0.1811372936, -0.0850738436, -0.3064594567, -0.0152912559, 0.3312467039, -0.0188396107, 0.1778849512, -0.0660744309, -0.0304851532, 0.1306047738, -0.083172977, 0.088768892, 0.5169289708, 0.2506966889, 0.051957082, 0.2298254669, -0.031378381, -0.2562144101, 0.1325665414, 0.2321357578, 0.0492415018, 0.0684336796, 0.1004821211, -0.0237272512, -0.2063813061, -0.0520830415, -0.0547190383, 0.023271922, -0.2868103683, 0.2843015492, -0.251660943, -0.0163152851, 0.0470517501, 0.1107893363, -0.44840312, -0.2002998739, 0.0647206381, 0.0776963755, -0.2318822592, 0.1336180866, -0.1268716604, 0.3907523155, -0.2403128296, -0.2388579249, 0.2622437477, -0.4872463942, -0.1227765381, 0.107228756, 0.3064815104, 0.1311016679, 0.5087969899, 0.0214201566, -0.0971538424, -0.3305741549, -0.1572181433, 0.0155847715, -0.0659359843, 0.2778906226, 0.0809207931, 0.0578191169, -0.045380529, 0.3248304725, 0.3875049353, -0.337492764, 0.2036764324, 0.1821810156, -0.056487862, -0.0917129889, -0.3432074487, -0.4313036501, -0.4415462315, -0.3976589739, 0.174193278, 0.0349771529, -0.0529260486, 0.1827895939, 0.1519728452, 0.1029271409, 0.0166770145, 0.1853229254, -0.1828433722, -0.4674517512, 0.1784861386, -0.1808057278, -0.6038358808, 0.2909510732, 0.2311564237, 0.1528016627, 0.3490708172, -0.4436715245, -0.376562655, 0.0681067258, 0.4156069756, 0.1085771918, 0.3436663449, 0.3434489965, -0.070281066, -0.0382860303, -0.092379652, 0.092840232, 0.1769470423, 0.0589719079, -0.1342711449, 0.0336064361, 0.2543354332, -0.0294251889, 0.3790817857, -0.0375480726, 0.0918620899, 0.2364587337, -0.1578766108, 0.6929186583, -0.1827818602, -0.1525170505, -0.0394781642, -0.0537112467, -0.3249540329, 0.2491018474, 0.0245231129, 0.0068164906, -0.6647504568, -0.0420180373, -0.3744180501, -0.4079520404, 0.0988638699, 0.1220591813, 0.3661220074, 0.1131862774, 0.2727557421, -0.257581383, -0.0872169808, -0.0868246406, 0.2532111704, 0.0775291249, -0.0718221962, -0.2494611293, 0.024586929, -0.3649162352, 0.3807899356, -0.1454290599, 0.19983235, -0.0346335582, -0.0230424628, -0.0126951011, -0.1682794541, 0.3438606262, -0.3169400096, -0.0129382974, 0.2967363298, -0.0679404065, -0.3190102577, 0.0656509325, -0.2115930468, -0.0245801881, 0.187607035, 0.1661459357, -0.1067497879, -0.3034739196, 0.0126634315, 0.4440044463, -0.2934576273, -0.197615549, -0.2340570539, -0.1652710736, -0.3448305726, -0.0077203335, -0.20222269, 0.069670558, -0.1204334721, 0.184671253, -0.2544873953, 0.1687716842, -0.0028255694, 0.1041491255, 0.1279096156, -0.2341515869, 0.2522115707, 0.2547445893, 0.1065214872, 0.3232456744, 0.3494309485, -0.0530189238, -0.2862736285, 0.1681593359, -0.0160191394, 0.3586545885, 0.3766719401, -0.0966336802, -0.1404379308, 0.1375192106, 0.2744405866, -0.4191712439, -0.1013085097, 0.1470344365, 0.1796006262, -0.1190665662, -0.3914575577, 0.2641129196, 0.1082138792, -0.0258153901, -0.0286950376, 0.1335442513, -0.207749173, 0.1910682619, -0.1117648557, 0.746530652, -0.0877660364, 0.2242862582, 0.2535330951, 0.0000771213, 0.4418726265, -0.2145647109, -0.0392789729, -0.041099865, -0.2530000806, -0.004827423, -0.0833426565, 0.4119869769, 0.0042822454, -0.0889125019, 0.5612855554, -0.0295864251, 0.2540519834, -0.304831475, 0.2157216966, -0.0231642872, -0.2204272747, -0.5347033143, 0.2236425281, 0.1193528697, 0.1017455682, -0.1956086755, -0.2288061976, 0.082368426, 0.0736494362, 0.0393217467, -0.0716273263, -0.0051059378, 0.097156927, -0.251177907, -0.0116195045, -0.007524658, 0.1421699822, 0.3566610515, 0.1451170743, -0.3017603457, 0.0237520579, -0.3742333353, 0.1623166651, 0.0489319935, 0.2389555573, 0.1713682562, -0.2298680991, -0.229582727, 0.0770820454, -0.0900074914, -0.0092649302, 0.424461633, -0.0489099771, -0.0092921043, -0.2348199189, 0.1417714804, 0.1884102076, 0.1909555346, -0.1208173409, 0.1698993891, 0.2535120845, 0.0531001426, 0.3266043961, -0.113379851, -0.2221560627, -0.2290590107, 0.3246757388, -0.1461770833, -0.2163642049, -0.0281653889, 0.2071456462, -0.175781697, -0.3009602427, 0.2828661203, -0.006993847, -0.1259731054, 0.2331744879, 0.3803785443, 0.3927211463, -0.1148343831, 0.2829950452, 0.0184741523, -0.2470532954, -0.0675077811, -0.3831623495, -0.2631475031, 0.2048703134, 0.4791604877, 0.1200164258, 0.1498098075, -0.0835261568, 0.0403610989, -0.2564296722, -0.4158100188, 0.0577494502, -0.0461969599, 0.0455122069, 0.2434915006, -0.1222790182, 0.3542178571, -0.2156258374, 0.099288851, -0.2353146076, -0.3157811165, -0.2837585211, -0.0089736404, 0.1735137999, -0.0462745614, -0.3089573681, -0.0029455542, -0.6132441759, -0.333104372, -0.1570521891, 0.2411420941, 0.4147742987, -0.1820588708, -0.0197101347, -0.1957210153, 0.4264014065, -0.1901149899, 0.1095876768, 0.04686049, 0.2768312991, -0.0304186232, 0.2757186592, -0.0449677594, 0.0424674489, -0.0480308682, 0.0965555087, 0.1639406383, 0.0903308094, 0.3923716545, -0.2577672005, 0.1543770581, 0.2673698068, 0.5688079, 0.1975026876, -0.0605364032, 0.2026235163, 0.1057219654, 0.2705931664, -0.3872042298, 0.0592558347, -0.0068898955, 0.1027033776, 0.3957236111, 0.0998352319, 0.3355096281, 0.108952716, -0.0963625312, -0.0129122948, 0.3361458778, -0.1054279283, 0.2378424257, 0.124316968, 0.0390206762, 0.1391028613, 0.0136827948, 0.4197915792, -0.0107136136, 0.3140263557, -0.3290995061, 0.2428225577, 0.1165316775, 0.0871020928, -0.2979402542, -0.4573815167, 0.2896074951, 0.0214379709, -0.0385117419, -0.1695444733, -0.2580637634, 0.1817522496, -0.5244920254, -0.0815280676, -0.1498387903, 0.1035995111, -0.0662675425, 0.0504697002, -0.4011798501, -0.3024999499, -0.0331323035, 0.1197490171, 0.0892834365, -0.0883326381, -0.0261481907, 0.0244441386, 0.1078771651, -0.2080111504, 0.1284509897, 0.0660772994, 0.0618912205, -0.0348127037, 0.0230818894, 0.2032922506, 0.0634406954, 0.1143964902, 0.4303233027, 0.33896029, 0.0386466645, -0.1788985431, 0.1777808219, -0.0188889261, -0.1237886548, -0.0961964205, 0.0878959969, 0.0156530757, 0.1670669615, 0.3728033304, 0.195112437, -0.2173009813, 0.337744832, -0.0706461817, -0.1390173584, -0.4647117257, 0.2669893205, 0.1912840903, -0.1077180281, -0.1194824129, -0.2801830471, -0.1833824664, -0.1093609631, 0.3616841137, 0.0254849941, 0.1069909334, -0.1845505089, 0.1272708029, 0.0930405036, 0.4290940464, 0.1821923703, 0.3078640699, -0.2852390707, 0.1113601997, -0.8087354302, -0.1501585245, -0.1427769065, 0.2350050211, -0.0523449369, 0.1085450947, 0.0847966596, 0.4387232363, 0.0659141317, 0.1579318047, 0.162646845, -0.1813367307, -0.2886349559, -0.1446579844, -0.081626147, -0.0860896632, -0.0314258114, -0.3293495476, 0.078992404, -0.3852583468, 0.026291145, 0.077582337, 0.1974057108, -0.2024392933, -0.1328171492, 0.4599534571, 0.0243593063, 0.4064575434, 0.1564128697, -0.1124189422, -0.0652243048, 0.035319455, -0.0577738695, 0.1724692285, -0.0338677056, -0.0269051772, -0.1379747987, -0.1405133307, -0.16621086, 0.2008036971, 0.0666889697, -0.0119726909, -0.1137937009, -0.0359998643, 0.0867951214, 0.1418626606, 0.007205986, 0.0431739502, -0.1489286721, 0.2132107615, -0.202658549, 0.0453286842, 0.3393827081, -0.0350236669, 0.0127119999, -0.372233361, 0.392375499, 0.1644824147, 0.0008877947, -0.480407387, 0.236540705, 0.3327226043, -0.1532105356, -0.1472786963, 0.3244406581, -0.2522745132, -0.2001632005, 0.007167012, 0.2544193566, -0.2700773776, -0.3051465154, 0.0650706664, -0.1409677267 ]
https://github.com/huggingface/datasets/issues/824
Discussion using datasets in offline mode
> here is my way to load a dataset offline, but it **requires** an online machine > > 1. (online machine) > > ``` > > import datasets > > data = datasets.load_dataset(...) > > data.save_to_disk(/YOUR/DATASET/DIR) > > ``` > > 2. copy the dir from online to the offline machine > > 3. (offline machine) > > ``` > > import datasets > > data = datasets.load_from_disk(/SAVED/DATA/DIR) > > ``` > > > > HTH.
`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)
76
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) > here is my way to load a dataset offline, but it **requires** an online machine > > 1. (online machine) > > ``` > > import datasets > > data = datasets.load_dataset(...) > > data.save_to_disk(/YOUR/DATASET/DIR) > > ``` > > 2. copy the dir from online to the offline machine > > 3. (offline machine) > > ``` > > import datasets > > data = datasets.load_from_disk(/SAVED/DATA/DIR) > > ``` > > > > HTH.
[ -0.499260217, 0.2269978076, -0.0324691869, 0.1418720782, 0.2369506806, -0.1029173434, 0.5442941189, 0.0744111612, 0.2753628194, 0.2442881614, -0.0088338153, -0.0665395111, 0.0280857626, 0.3756226599, -0.0989000201, -0.041955404, -0.1623332649, 0.0563547723, -0.1830360591, 0.10765443, -0.1633778065, -0.0869513378, -0.4333002567, -0.0625079051, -0.0159386341, -0.1606817991, -0.0798979625, 0.2115721703, -0.1717494726, -0.2845188677, 0.2436341643, 0.1665008664, 0.1988918036, 0.4731352627, -0.0001034733, 0.037024036, 0.0119214393, 0.0104893222, -0.2277317643, -0.3849579394, -0.2243474424, -0.5146487355, 0.1638058573, -0.4546643794, -0.2070111185, -0.0379569978, -0.0688912198, -0.5084754229, 0.3095599115, 0.3518120348, 0.2570660412, 0.5904160738, -0.1282707602, -0.2792428434, -0.1558480561, -0.1522628218, -0.1556977481, 0.428383559, -0.0172955804, 0.0013687279, -0.0222437587, 0.1041298658, -0.1752348691, 0.0346601009, 0.3222212493, 0.0672786534, -0.1097402722, -0.0845901817, 0.220633015, 0.3967530727, 0.4247177541, -0.2884343266, -0.2519191504, -0.3396161497, -0.0075890273, -0.4678498209, 0.0960987583, 0.1565520614, 0.0217527617, 0.229180932, -0.3944316208, -0.3091624677, -0.3443601727, 0.152447179, -0.3242219985, 0.0023710351, -0.2609035969, 0.0710144266, -0.0611250326, 0.0929870233, -0.1979122609, -0.2828268111, 0.0606516115, -0.0742608532, -0.2604790628, 0.0141299022, 0.1201805025, 0.0637012497, 0.1402421445, 0.0588376857, 0.2486957759, -0.0098348083, 0.0979689509, 0.0510387383, 0.4422776699, 0.2957023978, 0.0074489159, -0.1895392537, 0.5416596532, 0.0993702412, -0.0075670872, -0.298029393, 0.2820797563, -0.3101067245, 0.1336487979, 0.0073754741, 0.3609676361, -0.2954881489, -0.1674439758, -0.0125406701, 0.140545845, -0.0426560715, 0.1835252643, 0.2483587414, -0.2873735428, 0.0299903452, 0.0637682751, 0.3856902122, -0.2997950912, -0.2546656728, -0.0616323277, -0.1359128058, -0.1291578114, 0.072754018, 0.1864257455, 0.0080416817, 0.0445537344, -0.0334910862, 0.2402402163, -0.0691185147, 0.3054918051, -0.1039341986, 0.0785030723, 0.23368451, 0.2520389557, -0.0957670361, 0.0624965914, -0.1969118565, 0.0382462032, 0.041058436, -0.1074668542, -0.3596409559, 0.1783694029, 0.2726853788, -0.6226012707, -0.1710651368, -0.3079635501, 0.0581852496, -0.3064322472, -0.1984431595, -0.015349457, -0.0460299589, -0.1935952902, -0.2405311763, 0.3376950324, 0.5559729934, -0.3982941806, 0.0968978405, 0.0791636109, -0.1771889329, -0.1863671392, 0.0195538085, -0.3082570136, 0.5199757218, -0.0187853537, -0.2941872478, 0.5648751855, -0.3655904531, -0.2701430619, 0.2469821423, -0.1869646013, -0.1120414659, -0.0934418142, 0.0912888423, 0.4447419047, 0.0852880478, -0.0959231332, 0.2809373736, -0.045862101, -0.0005545788, -0.2211626917, -0.2394604981, 0.1544377953, 0.2881147861, 0.2723813653, 0.0969030336, 0.3091708124, -0.1952723861, 0.0280245226, -0.278755039, 0.1350962967, 0.1634459943, 0.1533000618, 0.0920099169, -0.0438155122, -0.1929366589, -0.4884027541, 0.2647081614, 0.0410783738, 0.1632880867, -0.2042592317, -0.1388628334, -0.0210514683, -0.1890712231, -0.1622339636, 0.0133331297, 0.1397610903, -0.100276649, 0.1611436307, 0.1137791574, -0.2563468218, 0.1799523383, 0.0201561265, 0.0074798982, -0.1385112703, 0.2693669796, -0.0576035678, 0.0668182597, -0.0368150622, 0.0932563245, 0.04240245, -0.1958927065, -0.1061082035, 0.5290291905, -0.0309690721, 0.0468530916, 0.2650731802, 0.3803907037, 0.3248944879, -0.0113376593, 0.5266873837, -0.0440166704, 0.3241904676, -0.0970291719, -0.340950489, 0.7555658817, -0.1524323821, 0.2127020806, 0.1112291813, 0.0115108145, 0.265591383, 0.0024921333, -0.4044692218, -0.0297387205, 0.1032059565, 0.0016841365, 0.1952835321, -0.085753791, -0.3268733919, -0.0021087802, 0.3489392102, -0.013892306, 0.1751538664, -0.0613361299, -0.0318150967, 0.1201426089, -0.0734537914, 0.0859298259, 0.521972239, 0.2544081807, 0.0612386242, 0.230702281, -0.0414701402, -0.2559099197, 0.1367946416, 0.2250436693, 0.0342363603, 0.070312798, 0.0828346387, -0.0354549997, -0.2182726264, -0.0521010309, -0.041350387, 0.0165147875, -0.2833810449, 0.2871289551, -0.2482631654, -0.0287768953, 0.0571508035, 0.1327007413, -0.4499962628, -0.1922506839, 0.0758109391, 0.0834262818, -0.2347822487, 0.136786148, -0.1147691905, 0.4157853723, -0.2417858094, -0.2162095457, 0.2557032108, -0.4892720878, -0.12540856, 0.1139194444, 0.290476501, 0.1211069673, 0.5174886584, 0.0182193182, -0.097228162, -0.3355350494, -0.1610653102, 0.0355825126, -0.0712828115, 0.2829790115, 0.093350634, 0.0530732498, -0.0671634004, 0.3253516555, 0.3937314451, -0.3271917999, 0.1934455782, 0.1792649478, -0.049717363, -0.0871889517, -0.3529952168, -0.4282160699, -0.4320698082, -0.3919802308, 0.1926204115, 0.0132440766, -0.05743628, 0.1898373365, 0.1482218206, 0.1165280119, 0.0058470881, 0.1889001876, -0.1883193105, -0.4760990441, 0.1688491404, -0.1892996579, -0.6016700268, 0.2806209624, 0.2295090705, 0.1657631993, 0.3582722545, -0.4448157847, -0.3781500161, 0.0732920691, 0.4401057363, 0.1102423668, 0.3342652321, 0.3533640802, -0.0593586974, -0.0430468023, -0.0973875523, 0.0781205148, 0.1909289509, 0.0516177267, -0.1234373525, 0.0378184207, 0.262909323, -0.0286334399, 0.4023733139, -0.0331207067, 0.0967802629, 0.2285626084, -0.1566260904, 0.7003898621, -0.1845092028, -0.148770988, -0.018866878, -0.0512374677, -0.3176403344, 0.2477180213, 0.0202706959, 0.0034445664, -0.6579141021, -0.0308889449, -0.3640884757, -0.4101666212, 0.1023245007, 0.1237964407, 0.3612009287, 0.1131155565, 0.2846203446, -0.2655316889, -0.0806796849, -0.0837903097, 0.2637238204, 0.0705903098, -0.0821333677, -0.236856997, 0.0353906751, -0.3795092702, 0.3788217604, -0.1252355278, 0.1993348897, -0.0494945943, -0.0205662753, -0.0158608649, -0.1601908803, 0.3575392067, -0.3219277561, -0.0184348729, 0.3051735163, -0.0723784119, -0.3048910797, 0.0750040337, -0.2185464799, -0.0187092777, 0.1801497489, 0.169520095, -0.119544968, -0.3004766405, 0.0167262517, 0.4310735166, -0.2822125852, -0.1958409548, -0.2220247984, -0.1508185714, -0.3353961706, 0.0113305198, -0.1939945072, 0.0724306256, -0.1042586267, 0.1709122062, -0.2531689405, 0.1641312987, -0.0168911219, 0.1121283844, 0.1209593192, -0.2463971823, 0.2492658496, 0.2544648349, 0.1075445712, 0.3158960342, 0.3369899988, -0.0578445941, -0.2881174386, 0.1851860732, -0.0216392521, 0.3540461659, 0.3804879189, -0.108425349, -0.1297906339, 0.1562836766, 0.2772310078, -0.4221796691, -0.1058230847, 0.1520667076, 0.1899353266, -0.1318844259, -0.3830701113, 0.2421080917, 0.1058469862, -0.0428114347, -0.0279098749, 0.1405662, -0.2162884921, 0.1657755971, -0.1204746738, 0.7463238239, -0.0853945687, 0.2261953205, 0.2716042399, -0.0105988644, 0.4589012563, -0.2182707042, -0.0172339659, -0.0299437214, -0.2580793202, -0.0018669148, -0.0838020518, 0.410569638, 0.0120972348, -0.1015060768, 0.5569255948, 0.0023537281, 0.262175113, -0.3156483471, 0.2068286389, -0.0262683406, -0.2241600156, -0.5295377374, 0.2227849662, 0.1116933972, 0.0908094719, -0.1965966225, -0.2296914756, 0.089205578, 0.0733068287, 0.0209831968, -0.088158004, -0.01472665, 0.0910442099, -0.2471251786, -0.0113246888, 0.002311162, 0.1168784201, 0.3662894666, 0.1540874541, -0.3008587062, 0.0407698527, -0.391671598, 0.1758880764, 0.0431925282, 0.2353017032, 0.1732370406, -0.2316589653, -0.2294978648, 0.0711228997, -0.0932987109, -0.0229835752, 0.44661358, -0.0534592718, -0.0299994871, -0.2270329148, 0.1701971143, 0.1872000992, 0.1742007881, -0.1272590756, 0.1690127552, 0.246974498, 0.0646358281, 0.3324844837, -0.1185626537, -0.2234364599, -0.2319292873, 0.3323864937, -0.1481752396, -0.2163782269, -0.0340100043, 0.2127752453, -0.1911337525, -0.3022422791, 0.2718290091, 0.0050799274, -0.1282938421, 0.234399423, 0.3882581294, 0.3762428463, -0.1151656508, 0.2702778876, 0.0319872722, -0.2423062623, -0.0731427968, -0.3703365922, -0.279969722, 0.2077265978, 0.4752342999, 0.1235133484, 0.1477683634, -0.0800835118, 0.0471661203, -0.2568990886, -0.4148226678, 0.0427973419, -0.0579889528, 0.0490955226, 0.258807838, -0.1258111149, 0.3629029095, -0.2199748605, 0.0944312066, -0.2352959067, -0.3346164525, -0.2838246524, -0.0065519097, 0.1733448654, -0.0442161672, -0.3215043247, -0.0092092371, -0.5947597027, -0.3334679604, -0.1524944454, 0.2498435676, 0.4137349129, -0.179878816, -0.0268014669, -0.1973177493, 0.4317834675, -0.1764413565, 0.0949151143, 0.0630058423, 0.2877396345, -0.0342392735, 0.2798079252, -0.0504022725, 0.0382331386, -0.029126294, 0.1064661667, 0.1639817655, 0.0792930648, 0.3910475075, -0.2540489137, 0.143063575, 0.2583359778, 0.5726850033, 0.1912139654, -0.0539067537, 0.1875458509, 0.0983947366, 0.271559, -0.3790970445, 0.0600378662, -0.001536101, 0.1076111421, 0.4134907424, 0.0845968276, 0.3291351497, 0.1103390083, -0.0963395238, -0.0093082087, 0.3304798901, -0.1119163781, 0.2232804596, 0.1307686567, 0.0439185947, 0.1417956352, 0.0311190579, 0.4378814399, -0.0079677179, 0.3239938915, -0.3390360177, 0.2351374626, 0.1155500486, 0.1127716824, -0.281665802, -0.4408525825, 0.2878971398, 0.0305658448, -0.0485543944, -0.1820864528, -0.2464104295, 0.1819256544, -0.5260382891, -0.0845426172, -0.1453718543, 0.0936664864, -0.0773523226, 0.0639609396, -0.4059837162, -0.3086445928, -0.0317535549, 0.1227742806, 0.0772302598, -0.0736872926, -0.0024292546, 0.0145098493, 0.1101319268, -0.2059516013, 0.1357248127, 0.0530860908, 0.0674321726, -0.0314457715, 0.0315849707, 0.2038816512, 0.0759631395, 0.1162951216, 0.4558699727, 0.3250944614, 0.0279591382, -0.1732877493, 0.1791208684, -0.0174090248, -0.1257013083, -0.1085022464, 0.0967772827, 0.0271150023, 0.1316805482, 0.365747869, 0.1895967126, -0.2076841593, 0.3444928825, -0.0761373416, -0.1504828483, -0.4568810463, 0.2505194843, 0.1846466511, -0.1169921085, -0.106455341, -0.287494719, -0.1889006048, -0.1083047539, 0.3725976348, 0.0194763597, 0.1105332226, -0.1914427727, 0.1280117482, 0.101879999, 0.4391467273, 0.173388809, 0.2939246893, -0.2876732349, 0.1159934998, -0.8045646548, -0.1493818909, -0.1259216517, 0.2573934197, -0.0518091321, 0.1091891974, 0.0875608549, 0.4373385608, 0.074464418, 0.1585407257, 0.1727097332, -0.1801652014, -0.3003027141, -0.1347001195, -0.0624394901, -0.1002141088, -0.0315280706, -0.3196189106, 0.0919974893, -0.3633932471, 0.0229149517, 0.0673181489, 0.2042246312, -0.2061327398, -0.1297553182, 0.4416781664, 0.0433069244, 0.3950856924, 0.1441102326, -0.1122508943, -0.0528957471, 0.0379750393, -0.0639388412, 0.170103386, -0.0361086093, -0.0328884795, -0.1144766062, -0.1413638592, -0.1595003009, 0.2147669494, 0.0632856563, -0.0111293579, -0.1094944626, -0.0361577235, 0.0775908753, 0.1335782111, 0.0008277253, 0.0445993468, -0.1451621354, 0.2125579715, -0.2044010013, 0.0314983577, 0.3339626491, -0.03406436, 0.018112801, -0.3719016612, 0.3834597766, 0.1742333472, -0.0068178135, -0.4931705594, 0.2285161018, 0.3217991292, -0.1685983837, -0.1405642629, 0.3053504825, -0.2599489391, -0.1895597428, 0.0004530391, 0.2614337504, -0.2595774531, -0.2974055409, 0.0570859537, -0.1473938823 ]
https://github.com/huggingface/datasets/issues/824
Discussion using datasets in offline mode
I opened a PR that allows to reload modules that have already been loaded once even if there's no internet. Let me know if you know other ways that can make the offline mode experience better. I'd be happy to add them :) I already note the "freeze" modules option, to prevent local modules updates. It would be a cool feature. ---------- > @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? Indeed `load_dataset` allows to load remote dataset script (squad, glue, etc.) but also you own local ones. For example if you have a dataset script at `./my_dataset/my_dataset.py` then you can do ```python load_dataset("./my_dataset") ``` and the dataset script will generate your dataset once and for all. ---------- About I'm looking into having `csv`, `json`, `text`, `pandas` dataset builders already included in the `datasets` package, so that they are available offline by default, as opposed to the other datasets that require the script to be downloaded. cf #1724
`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)
179
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 opened a PR that allows to reload modules that have already been loaded once even if there's no internet. Let me know if you know other ways that can make the offline mode experience better. I'd be happy to add them :) I already note the "freeze" modules option, to prevent local modules updates. It would be a cool feature. ---------- > @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? Indeed `load_dataset` allows to load remote dataset script (squad, glue, etc.) but also you own local ones. For example if you have a dataset script at `./my_dataset/my_dataset.py` then you can do ```python load_dataset("./my_dataset") ``` and the dataset script will generate your dataset once and for all. ---------- About I'm looking into having `csv`, `json`, `text`, `pandas` dataset builders already included in the `datasets` package, so that they are available offline by default, as opposed to the other datasets that require the script to be downloaded. cf #1724
[ -0.4716481566, 0.2902269959, -0.047672078, 0.1334421188, 0.2106888741, -0.212225154, 0.5858257413, 0.0534167141, 0.283341229, 0.1841128469, 0.0310595687, 0.0326385386, 0.0011812204, 0.3333256841, -0.072144039, -0.058541812, -0.1905425787, -0.0051049632, -0.1658581048, 0.0827915668, -0.0870348439, -0.1724683791, -0.4247152805, -0.1195314303, -0.0675601065, -0.1688151658, -0.0242115259, 0.2116724998, -0.1926144958, -0.4453733861, 0.2666606307, 0.2000290751, 0.1570936888, 0.4229854941, -0.000104336, 0.0591887236, 0.0797745883, 0.0126058534, -0.2829335034, -0.3505374193, -0.2376175374, -0.4724885225, 0.2454894781, -0.4179919064, -0.1765560061, -0.0319710299, -0.1149640381, -0.4964651465, 0.2549799681, 0.3332004547, 0.2521955967, 0.5795009136, -0.1773818284, -0.2577657104, -0.0930706859, -0.0455762036, -0.2170030326, 0.41301772, 0.1451810598, -0.0119967023, -0.0917476043, 0.0427966081, -0.2056657225, 0.0555353127, 0.3426393569, 0.0692111999, -0.1012874842, -0.0757476166, 0.1654935181, 0.4096828401, 0.4384513199, -0.2788176835, -0.2337874621, -0.3661539555, -0.0599909052, -0.4158060551, 0.0579964109, 0.0842632502, -0.050141383, 0.2703288794, -0.4178496003, -0.2782534361, -0.3631694913, 0.1871720701, -0.2958253324, 0.080098182, -0.2190459371, 0.0571912751, -0.0345732085, 0.1217102334, -0.1603943408, -0.287497282, 0.1231969371, -0.0552332588, -0.2458190769, -0.0483222678, 0.1733660996, 0.0262081157, 0.1455961019, 0.1075297222, 0.1663130224, 0.0554699153, 0.0069584935, 0.051637046, 0.4685065746, 0.2116454244, 0.0110625038, -0.2097331285, 0.5494054556, 0.1489724815, 0.0090584587, -0.234075591, 0.2657730877, -0.2524653971, 0.0911979601, 0.0700878799, 0.3765210509, -0.3214930594, -0.0229853839, 0.0353140607, 0.1597325653, -0.0621038377, 0.1616375148, 0.1747797281, -0.2847248316, 0.0129404357, -0.0295245871, 0.3609691262, -0.2771338224, -0.346852988, -0.0389764942, -0.2118641734, -0.1780509651, 0.0920446441, 0.2455185801, 0.0309367236, 0.0510608032, -0.0147726806, 0.2424404025, -0.0368467122, 0.301839292, -0.0809503868, 0.0659480467, 0.2120587975, 0.1196171865, -0.0765702724, 0.1248594075, -0.1560155153, 0.0067115845, 0.0666676834, -0.0514349416, -0.4386139214, 0.2374289185, 0.2237866074, -0.6274785995, -0.187165007, -0.1969018579, 0.0777901337, -0.3017686903, -0.1738761812, 0.021495413, 0.0755847096, -0.1690934151, -0.2382545173, 0.2987491488, 0.6010067463, -0.5180036426, 0.0819057971, 0.04580364, -0.1816398948, -0.1889691055, 0.0283213295, -0.3945122361, 0.5864567161, 0.0039407127, -0.3889358342, 0.5678289533, -0.309594363, -0.3093519509, 0.2875797153, -0.1802511364, -0.0595034994, -0.0382034406, 0.1196887791, 0.4773574769, 0.0809496194, -0.0078138942, 0.2666754127, -0.0770240352, -0.0095417434, -0.295681417, -0.2896498144, 0.098542884, 0.2965260148, 0.2704696953, 0.128068909, 0.3454582691, -0.2366925627, 0.0276601277, -0.1362004727, 0.1363509595, 0.0990996212, 0.2330275476, 0.123942554, -0.0695231929, -0.1321176738, -0.5115549564, 0.3242623508, 0.0397503674, 0.1621359438, -0.2056599855, -0.1533110887, -0.0401654318, -0.2169201672, -0.1385667473, -0.0377864838, 0.123451665, -0.0895907655, 0.0869744718, 0.1763069481, -0.2977674305, 0.1351612061, -0.018293988, -0.005147771, -0.150021717, 0.3400147259, -0.0314370506, 0.0565063693, -0.1015017778, 0.0904151052, 0.0123002119, -0.1740997881, -0.1055454761, 0.483792156, 0.0415284149, 0.1183546335, 0.2707459033, 0.423281461, 0.318685621, 0.0245528109, 0.5603363514, -0.1271902621, 0.3274111152, -0.1185181811, -0.3417668045, 0.7027893662, -0.1783439368, 0.2728157341, 0.1150312275, -0.034005411, 0.2038819343, -0.0940221474, -0.4044409096, -0.0952030569, 0.0663548782, 0.0030855311, 0.1993397027, 0.016877057, -0.2931221724, 0.0504619479, 0.3374176621, 0.0135317426, 0.136422947, -0.0604639314, -0.0171771906, 0.1130494326, -0.0254900604, 0.1378798634, 0.5132737756, 0.2308206111, 0.0430372395, 0.3077918291, 0.0352876671, -0.2593402267, 0.1188976094, 0.1687575132, -0.0185088757, 0.1212384328, 0.0963389426, -0.0117987273, -0.1399934143, -0.0319384933, 0.0038126279, 0.0590351969, -0.3146697581, 0.2902598977, -0.3545603156, -0.0279133506, 0.0130223129, 0.1309275031, -0.480707258, -0.2102814764, 0.1170058623, 0.0569218993, -0.2447340935, 0.1712923646, -0.0877071321, 0.4514832199, -0.2693451345, -0.2608878314, 0.2427782863, -0.5937600732, -0.0655436888, 0.084800534, 0.3401410282, 0.1822124422, 0.5658237338, 0.0593991168, -0.1411340833, -0.2710398138, -0.1447021663, 0.0892938077, -0.0116074951, 0.3152153194, 0.1083983928, 0.0203314908, 0.0270707998, 0.4002493322, 0.3858613372, -0.2979995906, 0.1902173311, 0.1272396445, -0.0945450887, -0.0322718993, -0.3383329809, -0.4963893592, -0.3992334902, -0.4677612782, 0.1700817049, -0.052777119, 0.0107023772, 0.2297785282, 0.2038754523, 0.1109456271, -0.0705160797, 0.1104867533, -0.1722420603, -0.4613297582, 0.1450522095, -0.1792817712, -0.4937445521, 0.253762573, 0.219248578, 0.1917008311, 0.3427464962, -0.5899965763, -0.3177876472, 0.1043314189, 0.3914315403, 0.1040238887, 0.2679327428, 0.3933202624, -0.079431735, -0.0585555062, -0.0903848857, 0.0574981794, 0.2076744586, 0.0564016365, -0.109103173, 0.1494558752, 0.2685927451, 0.0167624336, 0.5026165843, -0.0798343793, 0.1098167226, 0.2588002086, -0.1174219549, 0.705657959, -0.1825233102, -0.1671552062, -0.0413851216, 0.0148814898, -0.324709475, 0.1728412658, -0.0179821551, -0.0159070306, -0.6336122751, -0.0798165724, -0.2484523207, -0.4550782144, 0.1834677458, 0.1597405821, 0.3247781694, 0.1058613956, 0.219362095, -0.2707967758, -0.0256444197, -0.0919202194, 0.2632632554, -0.0149521222, -0.0774901733, -0.2507242858, 0.1369999349, -0.311570853, 0.2955726385, -0.1352505982, 0.2162645608, -0.0439070389, -0.0313426293, 0.0826733634, -0.0391844474, 0.2991417944, -0.4082179666, -0.0943689272, 0.3293498456, -0.0216436926, -0.3531903923, 0.0764370635, -0.1722095609, 0.0019433155, 0.1599159837, 0.1581936926, -0.0679432899, -0.3483629823, -0.006039619, 0.359708488, -0.2774302363, -0.2177667916, -0.2001279593, -0.0423305668, -0.4275080562, -0.0052139922, -0.2545891106, -0.0984357223, -0.0803569481, 0.1182884648, -0.1544920951, 0.2191762775, -0.1380102187, 0.0739966035, 0.110233672, -0.3203082979, 0.2273412347, 0.2977678478, 0.0553013384, 0.3309390247, 0.3506478071, -0.1181179732, -0.1482793391, 0.208624348, -0.0433469899, 0.4113816619, 0.4854653478, -0.0095937448, -0.0846013948, 0.1447082609, 0.2892352343, -0.4037902355, -0.1615216881, 0.1078800038, 0.0592984967, -0.1000852436, -0.4673405588, 0.1834892184, -0.0405342653, -0.073838912, -0.0035251528, 0.1294171363, -0.185162425, 0.2416015714, -0.0919818506, 0.8122493029, 0.0263651013, 0.2219541371, 0.1739805788, -0.007891017, 0.473412931, -0.3028862178, -0.0455839038, -0.0602654703, -0.0436439104, 0.0182212796, -0.0760407299, 0.4410826862, 0.0106896628, -0.2054695338, 0.4934931993, -0.0749412328, 0.2824132144, -0.3375301361, 0.1076016352, 0.0202241223, -0.2264790982, -0.52039814, 0.2028242499, 0.1081513837, 0.1028197259, -0.1851934195, -0.2435836792, 0.0342528485, 0.1493037492, 0.0095667476, -0.1898496747, -0.052605506, 0.0308103207, -0.2059035301, 0.0560679697, 0.0032339324, 0.0450263731, 0.3648866415, 0.1468627453, -0.3398709595, 0.0138866361, -0.3556910157, 0.1691974252, 0.0360773504, 0.1752618849, 0.1566658318, -0.1985951811, -0.3344650567, 0.0011106508, -0.1116639972, -0.0255522206, 0.4310033321, -0.0548414439, 0.0942338929, -0.2805890143, 0.1767487824, 0.2303112745, 0.2608216405, -0.0935612991, 0.1746456325, 0.2110819966, 0.0750603229, 0.3884123266, -0.1253612936, -0.2212531567, -0.2144704163, 0.3347359598, -0.1247462928, -0.1553387493, -0.0833655298, 0.2226353288, -0.169581145, -0.3365006745, 0.3025306761, -0.0054209754, -0.223008275, 0.1986409128, 0.350471586, 0.2963169515, -0.0260181166, 0.2046554685, 0.0102533195, -0.1880027652, -0.1679409891, -0.275377661, -0.3178842962, 0.1660074145, 0.453355521, 0.1563892066, 0.0473573282, -0.0970103145, -0.0148068462, -0.221206218, -0.4241659641, 0.0660499185, -0.0683549419, 0.0864296556, 0.2857182026, -0.1539195329, 0.3005244136, -0.287523061, 0.0720486045, -0.2119683325, -0.4271266758, -0.2759727836, -0.0565466657, 0.1780340075, -0.0375335142, -0.3255494237, -0.027078012, -0.5326865911, -0.3123992383, -0.1282406598, 0.2727521062, 0.4409953654, -0.1296405941, 0.0053062905, -0.211777851, 0.5039592981, -0.1466332078, 0.1623120904, 0.0296291672, 0.3317890465, 0.0089619383, 0.2038318962, -0.0991156325, 0.0761968866, 0.0818034187, 0.1574377716, 0.2122733295, 0.1228738353, 0.4452153742, -0.1462509334, 0.1563675702, 0.249891907, 0.5009360909, 0.1629019082, -0.0704720318, 0.1216589287, 0.2080478668, 0.263833642, -0.3340934217, 0.0065753213, 0.0738724098, 0.1430093646, 0.3401826322, 0.1444491446, 0.452694118, 0.0953584835, 0.005178954, 0.0126381647, 0.3435201347, -0.0753500685, 0.2237221003, 0.0738917962, 0.0469856113, 0.0596654974, -0.0378161184, 0.3901121318, 0.0471244492, 0.2782622576, -0.3217485547, 0.2200016379, 0.0860397145, 0.1509742886, -0.2448889762, -0.4754568636, 0.4114569724, 0.0712677985, -0.1015756056, -0.1877399236, -0.2861891091, 0.2244447619, -0.3701642156, -0.053659983, -0.0775002986, 0.0845384076, -0.0699014515, 0.088594906, -0.3811101019, -0.3510328531, -0.0735941753, 0.1183509901, 0.0528444238, -0.0241109971, 0.0272619873, -0.0347058289, 0.0938967019, -0.310218662, 0.1447045654, 0.0402174182, 0.0982590541, -0.0307618622, 0.0310809799, 0.1860681027, 0.0218683463, 0.140045166, 0.432454586, 0.2805570662, 0.0885333419, -0.182198748, 0.1789682657, 0.0096466914, -0.0614573583, -0.1308433264, 0.0728377551, 0.0065969294, 0.1147892624, 0.3294236958, 0.1586293131, -0.1999016851, 0.3588383794, -0.1305034757, -0.2217880934, -0.4970718026, 0.2396003753, 0.2392933816, -0.1237454563, -0.0584077761, -0.2656488717, -0.2500069141, -0.2632139027, 0.4473287463, -0.0099193892, 0.1495078504, -0.2325068265, 0.1104772985, -0.0039669373, 0.4872247279, 0.1359923333, 0.2626901865, -0.2467205375, 0.1591037363, -0.8487071395, -0.1010249481, -0.1350576729, 0.2625234127, -0.0060989796, 0.0703934431, 0.1294201314, 0.4974668622, 0.0732410401, 0.1348397285, 0.1989407688, -0.1726144999, -0.3112730384, -0.1594676524, -0.0758785009, -0.0788230896, -0.0683219656, -0.2402743846, 0.0617130995, -0.3475413024, -0.0013597079, 0.0275617689, 0.1004273295, -0.0879149735, -0.0120239379, 0.5188180804, 0.0286142323, 0.3453911543, 0.3027180433, -0.1201030239, -0.1079945639, 0.0716168657, -0.0232580658, 0.0583465621, -0.0380425341, -0.0517742708, -0.1984516829, -0.2123390585, -0.2314855009, 0.2240796685, 0.0803290978, 0.0231623203, -0.0777493194, -0.0508501604, 0.0900447592, 0.1569567472, -0.0631008819, 0.0342963375, -0.0961916447, 0.2404279113, -0.2528862059, 0.0804956779, 0.3342809081, 0.0179551896, 0.0175153967, -0.3761805296, 0.3429670632, 0.2321785092, 0.0176306386, -0.5226220489, 0.0929991901, 0.3145461977, -0.1564720571, -0.0433371216, 0.3258461654, -0.2541508973, -0.1967099011, 0.0114060109, 0.2230949998, -0.2774820924, -0.2227729559, 0.0650160015, -0.1179774851 ]
https://github.com/huggingface/datasets/issues/824
Discussion using datasets in offline mode
The local dataset builders (csv, text , json and pandas) are now part of the `datasets` package since #1726 :) You can now use them offline ```python datasets = load_dataset('text', data_files=data_files) ``` We'll do a new release soon
`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)
38
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) The local dataset builders (csv, text , json and pandas) are now part of the `datasets` package since #1726 :) You can now use them offline ```python datasets = load_dataset('text', data_files=data_files) ``` We'll do a new release soon
[ -0.4490852952, 0.2095066905, -0.0598192662, 0.1293503046, 0.2621928155, -0.1312853992, 0.5469647646, 0.0949263871, 0.3154381216, 0.2294312418, 0.0510409586, -0.0031590078, 0.0479417928, 0.4036760032, -0.1032219231, -0.1191782206, -0.1096812934, 0.080623731, -0.1709269285, 0.0925035551, -0.1816655993, -0.0897310153, -0.3750768304, -0.0255628973, -0.1049841791, -0.1746599674, -0.1071392372, 0.1566955596, -0.2103748769, -0.3327203989, 0.2491133213, 0.1175876856, 0.1634272188, 0.4241681397, -0.0000999822, 0.0421341546, 0.1069053635, 0.0379944332, -0.2203468829, -0.4199154079, -0.1981756985, -0.4793079495, 0.241837889, -0.4018023908, -0.1757831722, -0.1275012195, -0.0598844551, -0.4807881117, 0.2974686623, 0.3426456153, 0.2918209434, 0.5356078148, -0.0803382546, -0.2813909948, -0.1216632798, -0.058618769, -0.1778587401, 0.4252832532, 0.0733576491, -0.0123798372, -0.083882153, 0.0888445601, -0.1531631649, 0.0956413224, 0.3111795187, 0.0713064075, -0.0924654678, -0.1528337598, 0.2028553188, 0.3944042027, 0.4603185654, -0.3109175563, -0.2949756682, -0.3411383033, -0.0479009934, -0.4361878037, 0.127456069, 0.144173786, 0.0090274327, 0.2339825481, -0.3632725775, -0.2975684106, -0.3418589234, 0.1694945842, -0.2816984653, 0.0181076732, -0.2516751587, 0.0413688794, -0.083242178, 0.0752858296, -0.1551508158, -0.3205264807, 0.0986212939, -0.0793630332, -0.1888284236, -0.0165297426, 0.1534270495, 0.0081892759, 0.1217976213, 0.0751492083, 0.1525356472, -0.0060454821, 0.0926285982, 0.0680224374, 0.4427142441, 0.3181464076, 0.0188540239, -0.2447723597, 0.5638325214, 0.0607480183, -0.0046471632, -0.2882612646, 0.3297592402, -0.2873265147, 0.0361552797, -0.01608718, 0.3358902931, -0.2712704539, -0.0916835889, 0.0604365952, 0.1495225728, -0.0821655244, 0.1536681652, 0.2071381509, -0.2203719467, 0.0295784455, 0.0346221998, 0.3958794773, -0.2415045798, -0.2347964197, -0.1089481786, -0.1066192091, -0.1055872962, 0.0744711608, 0.1888164729, -0.0131087778, 0.1214114279, -0.0402391702, 0.2105221152, -0.0341552235, 0.2786373496, -0.1574511081, 0.0479983464, 0.250037998, 0.1872586161, -0.1062337086, 0.0567806661, -0.2355708629, 0.0381207503, -0.0035792105, -0.0436265767, -0.4049871862, 0.0963088647, 0.2798321545, -0.5623058677, -0.1680546552, -0.2548438013, 0.1297722161, -0.2823046744, -0.0971263275, 0.0206755027, -0.0097442623, -0.1449510753, -0.1983080953, 0.2390826792, 0.5462021828, -0.4452940822, 0.0876862705, 0.1217829213, -0.1871841699, -0.1759928614, 0.0642036349, -0.3430998027, 0.5343939066, 0.0517577007, -0.2778849304, 0.5229825974, -0.358261019, -0.2345211655, 0.2888378799, -0.1610276252, -0.1441390663, -0.0667058676, 0.0498297699, 0.3899843395, 0.1192975342, 0.000143137, 0.243100509, -0.0564487278, 0.0195684638, -0.2536434233, -0.3235280812, 0.1407224387, 0.249401778, 0.306522131, 0.1239907146, 0.2792346776, -0.2578684688, -0.040598806, -0.2623441815, 0.165442571, 0.1579174995, 0.2099311501, 0.1023167521, -0.0483673774, -0.2059100121, -0.4760762751, 0.225260675, 0.0337000228, 0.2320876569, -0.2302173972, -0.1496609151, -0.0083721578, -0.1797086, -0.1597644538, -0.042527426, 0.1691499203, -0.1388675272, 0.1849665344, 0.1760519892, -0.3189758062, 0.143909499, -0.0562653765, 0.0259873811, -0.1155403703, 0.2796720564, -0.0809464455, 0.0231996924, 0.0426411182, 0.0838670507, -0.0070746909, -0.1859922856, -0.1073736474, 0.4920397103, -0.0600111857, 0.0508632921, 0.3152631521, 0.3613798618, 0.3560877442, 0.0397627093, 0.5095082521, -0.1218390316, 0.3111967742, -0.0770442411, -0.3356878757, 0.6987392902, -0.1456826478, 0.20384866, 0.0956830233, 0.0029147179, 0.3142007589, -0.0028087655, -0.3935571015, -0.0653390959, 0.0797708705, -0.0444401838, 0.2148955464, -0.0678088814, -0.3889361918, -0.0229985975, 0.3756245673, -0.0001704001, 0.1845314205, -0.0001417254, 0.0194941871, 0.0627445802, -0.0596947111, 0.084119603, 0.5141700506, 0.2386390865, 0.0379679874, 0.2522854507, -0.0703068674, -0.3152322173, 0.139531523, 0.2154914737, 0.009246679, 0.0789778456, 0.0899737924, -0.0033888186, -0.3099712729, -0.053568922, -0.0292127505, 0.0814718157, -0.2326791286, 0.2459441274, -0.3154217303, -0.0520216636, 0.0422410741, 0.1119537652, -0.4437062442, -0.2312433273, 0.086825937, 0.0358293913, -0.2842271328, 0.1475005746, -0.0897426456, 0.4524811804, -0.2049709111, -0.1387602091, 0.1279332638, -0.509513855, -0.1033310667, 0.1338711977, 0.339127332, 0.1479593664, 0.4992546737, 0.0086949542, -0.077287145, -0.2907159626, -0.187497288, 0.066198431, -0.0880849212, 0.3189194798, 0.0668634325, 0.048122406, -0.0487567782, 0.2254364789, 0.4193472266, -0.3061970472, 0.1707147211, 0.0855862871, -0.0520991385, -0.1553391814, -0.3459171653, -0.4872054756, -0.4130057991, -0.4035471976, 0.2704856694, 0.0267382488, -0.0292490423, 0.1243099943, 0.1580386013, 0.1001039669, -0.0176108703, 0.2050557435, -0.2188564539, -0.4933134913, 0.1240408272, -0.2316756397, -0.5781069994, 0.2055894136, 0.1968111545, 0.1813321859, 0.2394970357, -0.4866481125, -0.3747951984, 0.0422549881, 0.3973853886, 0.1870754361, 0.3177505136, 0.366006583, -0.0246621221, -0.0766314417, -0.0784323141, 0.0246587787, 0.2000737339, 0.09790162, -0.1254015267, 0.0741902366, 0.3168500364, -0.0595351718, 0.4317926466, -0.01110831, 0.0496142544, 0.264200449, -0.1114144102, 0.6812877655, -0.2694683373, -0.1440421641, 0.013289731, -0.058787711, -0.251254946, 0.2106073648, 0.0157653522, -0.036257036, -0.6542543769, -0.0097026508, -0.4030837119, -0.3856432438, 0.0840897411, 0.1315918416, 0.3249269426, 0.1220778748, 0.2325800806, -0.2801962197, 0.0070073274, -0.0742463246, 0.2477312833, 0.0617589243, -0.0998942778, -0.2681438327, 0.0095029706, -0.3775521517, 0.3366499841, -0.1258387417, 0.2580755949, -0.0771140531, -0.030521797, 0.0071707941, -0.1293203831, 0.3594408929, -0.3762834668, -0.1614654809, 0.2891309857, -0.0968554765, -0.2732848823, 0.0844888017, -0.1972350478, 0.0496096015, 0.1447986513, 0.276050806, -0.0842927247, -0.3076004982, 0.0610611662, 0.3504800797, -0.249755308, -0.1882381141, -0.1717916578, -0.1545342505, -0.3299389184, 0.0528556705, -0.2317123562, 0.0491177142, -0.0869807154, 0.1136043817, -0.1949674189, 0.155835852, -0.0642602444, 0.0974734649, 0.0733722895, -0.2716402113, 0.2272790074, 0.2307695448, 0.1161040813, 0.3351899385, 0.3377736807, -0.1233742014, -0.2471143901, 0.1811088175, -0.0564749725, 0.3620423079, 0.446549654, -0.072989285, -0.0975186303, 0.1527469456, 0.2758119702, -0.4200823009, -0.1456191391, 0.2055262178, 0.1781517714, -0.0686928108, -0.3760147989, 0.2442412376, 0.1129926518, -0.0533221141, 0.0150257908, 0.1230337918, -0.1884621382, 0.2214033008, -0.0593033805, 0.7759794593, -0.0680392608, 0.1573262811, 0.228530407, -0.0460272059, 0.4807922542, -0.3189841509, 0.0172791258, -0.0401390381, -0.1941194832, 0.0036331811, -0.1070231125, 0.4337175786, -0.0415762141, -0.0733078346, 0.5114349127, 0.0493924543, 0.318103075, -0.315334022, 0.2438236028, -0.0738772899, -0.2079108506, -0.5192403197, 0.2445133924, 0.1184800416, 0.0833029896, -0.2140758038, -0.242492795, 0.0730280429, 0.0449501351, -0.0016663342, -0.1683874875, 0.0244131647, 0.090091683, -0.1606272757, -0.026859656, -0.0101522561, 0.1060661897, 0.4375322163, 0.1366599947, -0.3299779296, 0.0077857608, -0.394972086, 0.1577676982, 0.0260521919, 0.2085136473, 0.2068133205, -0.2194941491, -0.2341143787, 0.0194625463, -0.1111909524, -0.0431635007, 0.3716802597, -0.0979478061, -0.0760398433, -0.246271953, 0.1823980808, 0.2029300183, 0.1959366351, -0.1174168512, 0.2011957765, 0.2146025896, 0.1222192049, 0.3525830507, -0.1376937032, -0.2014676034, -0.293790102, 0.320530504, -0.0845628008, -0.1777487397, -0.0722333863, 0.2106572837, -0.2353444099, -0.3138157129, 0.2293101251, 0.0463164449, -0.113439925, 0.2572042346, 0.3315888047, 0.2462129444, -0.1465501487, 0.2690936923, 0.0718540326, -0.1856535673, -0.0777798072, -0.3274817169, -0.341388762, 0.2560738623, 0.4513761699, 0.1558245867, 0.1147605479, -0.0552743338, 0.0866387188, -0.1971704215, -0.4408751428, 0.0679854676, -0.1029257029, 0.0660287514, 0.2493934929, -0.1730809361, 0.3766618371, -0.1902846843, 0.105073832, -0.1715294123, -0.3376742303, -0.3105432093, 0.0400697477, 0.1459279656, -0.0123587921, -0.2967288792, -0.0252787825, -0.55437392, -0.3203264773, -0.134916991, 0.208536461, 0.4151892364, -0.1913516372, 0.0276028868, -0.1867494583, 0.3740749359, -0.038904991, 0.0819926187, 0.0325921141, 0.3030632436, -0.0030834407, 0.2433001846, -0.0295118112, 0.0430573672, 0.0253943708, 0.1072606295, 0.0851717889, 0.1314193308, 0.4154768586, -0.2244156897, 0.1076876372, 0.2965523005, 0.5483062863, 0.2145418376, -0.0864294022, 0.1892006397, 0.161455065, 0.3001292348, -0.363579154, 0.0032814653, 0.0243400522, 0.1369262785, 0.3610402048, 0.061508216, 0.4126156569, 0.0223250911, -0.079930611, 0.0220955722, 0.3285099268, -0.1095598489, 0.2245309651, 0.1235155836, 0.0635410622, 0.1075258106, 0.0822858289, 0.4752003849, 0.0161647722, 0.3380527496, -0.2761101425, 0.190188393, 0.0358075202, 0.1610103399, -0.1996593475, -0.3803318441, 0.3735845387, 0.0126125719, -0.0909572989, -0.227502808, -0.2277354598, 0.2517725825, -0.4506410658, -0.0610114709, -0.1715664268, 0.133321017, -0.1218130514, 0.024881091, -0.3979063332, -0.3176390231, 0.0156244263, 0.1247264594, 0.071178712, -0.0480276272, 0.006253765, -0.0422277227, 0.0772865117, -0.1869495064, 0.196655646, -0.0445923619, 0.0962104276, -0.0109033519, 0.0259183049, 0.2208548933, -0.0055059455, 0.0531308874, 0.4975878894, 0.3380314112, 0.041527953, -0.2303500772, 0.1456158906, -0.0522007681, -0.1474356651, -0.1049364358, 0.1791229397, 0.0373315029, 0.1159151644, 0.3794881701, 0.2081169635, -0.225606516, 0.3958669901, -0.116422601, -0.115716964, -0.4289552569, 0.2367631048, 0.2151343822, -0.1547242701, -0.0418348163, -0.3053729534, -0.1934444904, -0.1661625057, 0.4117178023, -0.0005006968, 0.1332311928, -0.2520880103, 0.1497873068, 0.1007202342, 0.450588733, 0.1846736372, 0.2423742563, -0.2392033786, 0.0792951286, -0.6985384226, -0.1670781076, -0.1281265318, 0.3263774216, -0.0735837519, 0.1057538837, 0.1115688607, 0.4124390185, -0.0063073384, 0.1760131717, 0.0596979521, -0.2131684124, -0.3156416118, -0.0660589635, -0.1222005263, -0.1291183978, 0.0074626887, -0.2276923805, 0.1430805475, -0.3369763196, 0.0381980352, 0.0014556058, 0.2213786542, -0.1770860851, -0.1268339902, 0.4185493886, 0.1040803045, 0.3364285529, 0.163453266, -0.0826337188, -0.0467551202, -0.0029870968, -0.0648402199, 0.1943532825, -0.0771044269, -0.0347652659, -0.1695017368, -0.1748576462, -0.1651420742, 0.1906263381, 0.0405406132, 0.0237384867, -0.1428376585, -0.0490614846, 0.0587354824, 0.0616858453, 0.0528441258, 0.0825135261, -0.1166023538, 0.2132478207, -0.1673648953, 0.0156506579, 0.3196122646, -0.069375746, 0.0099114673, -0.3681215048, 0.2837964892, 0.2504247725, -0.0342551768, -0.4602258503, 0.1561261117, 0.2961423993, -0.1832119226, -0.1591357142, 0.2970789969, -0.2199116498, -0.1853582561, -0.0506604537, 0.1897986531, -0.2244890332, -0.2536667585, 0.0138353994, -0.1592085958 ]
https://github.com/huggingface/datasets/issues/823
how processing in batch works in datasets
Hi I don’t think this is a request for a dataset like you labeled it. I also think this would be better suited for the forum at https://discuss.huggingface.co. we try to keep the issue for the repo for bug reports and new features/dataset requests and have usage questions discussed on the forum. Thanks.
Hi, I need to process my datasets before it is passed to dataloader in batch, here is my codes ``` class AbstractTask(ABC): task_name: str = NotImplemented preprocessor: Callable = NotImplemented split_to_data_split: Mapping[str, str] = NotImplemented tokenizer: Callable = NotImplemented max_source_length: str = NotImplemented max_target_length: str = NotImplemented # TODO: should not be a task item, but cannot see other ways. tpu_num_cores: int = None # The arguments set are for all tasks and needs to be kept common. def __init__(self, config): self.max_source_length = config['max_source_length'] self.max_target_length = config['max_target_length'] self.tokenizer = config['tokenizer'] self.tpu_num_cores = config['tpu_num_cores'] def _encode(self, batch) -> Dict[str, torch.Tensor]: batch_encoding = self.tokenizer.prepare_seq2seq_batch( [x["src_texts"] for x in batch], tgt_texts=[x["tgt_texts"] for x in batch], max_length=self.max_source_length, max_target_length=self.max_target_length, padding="max_length" if self.tpu_num_cores is not None else "longest", # TPU hack return_tensors="pt" ) return batch_encoding.data def data_split(self, split): return self.split_to_data_split[split] def get_dataset(self, split, n_obs=None): split = self.data_split(split) if n_obs is not None: split = split+"[:{}]".format(n_obs) dataset = load_dataset(self.task_name, split=split) dataset = dataset.map(self.preprocessor, remove_columns=dataset.column_names) dataset = dataset.map(lambda batch: self._encode(batch), batched=True) dataset.set_format(type="torch", columns=['input_ids', 'token_type_ids', 'attention_mask', 'label']) return dataset ``` I call it like `AutoTask.get(task, train_dataset_config).get_dataset(split="train", n_obs=data_args.n_train) ` This gives the following error, to me because the data inside the dataset = dataset.map(lambda batch: self._encode(batch), batched=True) is not processed in batch, could you tell me how I can process dataset in batch inside my function? thanks File "finetune_multitask_trainer.py", line 192, in main if training_args.do_train else None File "finetune_multitask_trainer.py", line 191, in <dictcomp> split="train", n_obs=data_args.n_train) for task in data_args.task} File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in get_dataset dataset = dataset.map(lambda batch: self._encode(batch), batched=True) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1236, in map update_data = does_function_return_dict(test_inputs, test_indices) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1207, in does_function_return_dict function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in <lambda> dataset = dataset.map(lambda batch: self._encode(batch), batched=True) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in _encode [x["src_texts"] for x in batch], File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in <listcomp> [x["src_texts"] for x in batch], TypeError: string indices must be integers
53
how processing in batch works in datasets Hi, I need to process my datasets before it is passed to dataloader in batch, here is my codes ``` class AbstractTask(ABC): task_name: str = NotImplemented preprocessor: Callable = NotImplemented split_to_data_split: Mapping[str, str] = NotImplemented tokenizer: Callable = NotImplemented max_source_length: str = NotImplemented max_target_length: str = NotImplemented # TODO: should not be a task item, but cannot see other ways. tpu_num_cores: int = None # The arguments set are for all tasks and needs to be kept common. def __init__(self, config): self.max_source_length = config['max_source_length'] self.max_target_length = config['max_target_length'] self.tokenizer = config['tokenizer'] self.tpu_num_cores = config['tpu_num_cores'] def _encode(self, batch) -> Dict[str, torch.Tensor]: batch_encoding = self.tokenizer.prepare_seq2seq_batch( [x["src_texts"] for x in batch], tgt_texts=[x["tgt_texts"] for x in batch], max_length=self.max_source_length, max_target_length=self.max_target_length, padding="max_length" if self.tpu_num_cores is not None else "longest", # TPU hack return_tensors="pt" ) return batch_encoding.data def data_split(self, split): return self.split_to_data_split[split] def get_dataset(self, split, n_obs=None): split = self.data_split(split) if n_obs is not None: split = split+"[:{}]".format(n_obs) dataset = load_dataset(self.task_name, split=split) dataset = dataset.map(self.preprocessor, remove_columns=dataset.column_names) dataset = dataset.map(lambda batch: self._encode(batch), batched=True) dataset.set_format(type="torch", columns=['input_ids', 'token_type_ids', 'attention_mask', 'label']) return dataset ``` I call it like `AutoTask.get(task, train_dataset_config).get_dataset(split="train", n_obs=data_args.n_train) ` This gives the following error, to me because the data inside the dataset = dataset.map(lambda batch: self._encode(batch), batched=True) is not processed in batch, could you tell me how I can process dataset in batch inside my function? thanks File "finetune_multitask_trainer.py", line 192, in main if training_args.do_train else None File "finetune_multitask_trainer.py", line 191, in <dictcomp> split="train", n_obs=data_args.n_train) for task in data_args.task} File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in get_dataset dataset = dataset.map(lambda batch: self._encode(batch), batched=True) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1236, in map update_data = does_function_return_dict(test_inputs, test_indices) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1207, in does_function_return_dict function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in <lambda> dataset = dataset.map(lambda batch: self._encode(batch), batched=True) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in _encode [x["src_texts"] for x in batch], File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in <listcomp> [x["src_texts"] for x in batch], TypeError: string indices must be integers Hi I don’t think this is a request for a dataset like you labeled it. I also think this would be better suited for the forum at https://discuss.huggingface.co. we try to keep the issue for the repo for bug reports and new features/dataset requests and have usage questions discussed on the forum. Thanks.
[ -0.5023792982, -0.1743950695, -0.2295022011, 0.1301573068, 0.1780351549, 0.031794928, 0.2955615819, 0.171304509, -0.1484706998, 0.1780764759, 0.0091214012, 0.1247810051, 0.0641202405, 0.245623365, -0.056165114, -0.0358915068, -0.0745974332, 0.0483772829, 0.1096094027, 0.0072344025, -0.3676093519, 0.0689975917, -0.4043072462, 0.0522343665, -0.2230468839, -0.2693565786, -0.0612453632, -0.0392569788, -0.0044129621, -0.1525890678, -0.0022257674, 0.233494848, 0.2088395506, 0.4326501787, -0.0001049565, 0.0785309076, 0.2467756271, 0.0393824838, -0.2903356552, 0.2226281762, -0.0494005755, -0.1695529372, -0.1062983572, -0.3042085171, -0.1008363441, -0.0860010087, -0.1385593861, -0.3374298513, 0.3848309219, 0.1753830761, 0.2844720781, 0.2802548707, -0.1476055533, 0.1414176226, 0.0610041842, 0.0714531615, 0.0851128325, -0.390209347, 0.0682321563, 0.1479273885, -0.0484060459, 0.149620235, -0.2720302641, 0.085941121, -0.2550975084, 0.0218879487, 0.0260984413, -0.3847030699, 0.0884851292, -0.1349761635, 0.2846597135, -0.2123626322, -0.2440749705, -0.3842580914, -0.2724656165, -0.4653173685, -0.0269788876, 0.113132447, -0.0684820637, 0.1012711227, -0.0785877034, 0.2408464402, -0.0737226382, -0.1666946709, 0.1114268675, 0.2568112314, -0.2119237632, 0.2198820561, 0.0700409114, 0.088788718, 0.1648154259, -0.2350717783, -0.0004338161, 0.2723604441, -0.4907975793, -0.0871193558, -0.111774601, -0.1519904733, -0.1408955157, 0.0541604199, -0.1284128428, 0.1272300333, 0.3161275685, 0.1564186513, -0.0295962654, 0.1643565446, 0.118721284, 0.2562068999, -0.077118285, -0.3050598502, -0.2260431796, 0.027757043, -0.0785892904, -0.32984671, 0.1471391022, 0.3610410392, 0.2499246895, 0.0302780103, -0.4871646762, -0.0903923959, -0.0190419592, -0.0580978654, 0.1420929134, 0.2845917642, -0.2407627553, 0.2508462667, -0.0810259506, -0.1523166597, -0.292634815, -0.046196226, -0.3027382791, -0.1152570173, -0.1496193707, 0.0702788159, 0.1349773705, -0.1721604317, 0.3239180744, 0.0755830705, 0.0962860659, -0.1746602654, 0.5014520884, -0.3949421048, 0.2224126309, 0.2599138916, 0.1795819998, 0.2426501065, 0.0532011576, 0.2097662389, 0.0399615094, 0.0737815425, -0.6257678866, -0.1791180819, 0.2474628687, 0.3138491213, -0.0505518764, 0.001461105, -0.5935840607, -0.0869221985, 0.3213267624, 0.0906267315, 0.1197098345, -0.1754256785, -0.1859955937, -0.1946795136, 0.2003966272, 0.0852582902, -0.4504098594, 0.067932792, -0.1153643653, -0.3227446377, 0.5454283357, 0.1242686808, -0.1138667241, 0.6199549437, -0.3095550835, 0.3783026338, 0.1937190741, -0.3189389408, -0.2815085351, 0.5390692949, -0.2575120628, 0.0180870406, 0.0398205929, 0.0325070806, 0.5586624146, -0.0602871031, 0.0362302102, 0.3787435293, -0.119228825, 0.0902984738, -0.0995699093, 0.1156373322, 0.0859536156, -0.0174081605, 0.103892684, 0.0438637473, -0.2167431563, -0.0445536748, 0.1737817079, 0.05349911, 0.2965997458, 0.24967435, 0.011494074, 0.2087979317, 0.1932465732, -0.0454124324, -0.2964652777, 0.0957319885, -0.0203325357, -0.1832337826, 0.040564429, -0.3565833867, -0.142738387, 0.1464836299, -0.4080846012, -0.1703145355, 0.2187933475, 0.0912242234, 0.022360554, -0.3133271635, 0.005141254, 0.3289263248, -0.0184367653, 0.0320127532, -0.1938537806, -0.0220454838, 0.0078474982, -0.1507640779, -0.0613339692, -0.0791998655, 0.2228216082, 0.0074299602, -0.049334053, 0.3533653021, 0.2747454643, 0.0639956072, -0.0365163684, -0.1238467917, -0.0102489563, 0.1141475886, -0.0905262381, -0.0358546823, 0.2171731591, -0.1256067753, 0.2478308976, 0.4252817631, -0.0469340421, 0.2657586634, -0.0382557735, -0.2736452818, 0.2264524847, -0.0702166483, -0.0428675599, 0.197691679, -0.0458721668, 0.0015260566, 0.3408337831, 0.0440047905, -0.0559480339, 0.1770871282, 0.427303493, -0.0043449048, -0.1692030877, -0.0192307383, -0.2083051205, 0.1080089062, 0.1594957411, -0.0258416384, 0.1219082028, 0.1693719476, 0.1196484268, -0.1023143604, 0.1045236737, -0.0379633084, 0.0820301473, 0.3170750141, 0.1805196255, 0.1618741155, -0.0916260406, -0.0561813936, -0.0036793859, -0.1100694239, 0.1913622022, 0.2398845255, -0.3654333949, 0.2132199109, -0.1459296346, -0.0898106247, -0.151118055, -0.0314463004, 0.1613283902, -0.1398270577, -0.0764073208, 0.2173888087, -0.1582913101, 0.0283090714, -0.0862445682, 0.0393372253, 0.2715219557, -0.380745858, -0.1608631462, -0.0596177056, -0.1818826348, 0.2018620968, 0.0678682774, 0.1080866084, 0.4683223665, 0.0514344126, 0.0387850776, -0.1155502871, -0.1522179544, 0.0778785795, -0.1976525933, 0.1767103821, 0.0169446189, 0.1401751786, -0.1079596281, -0.3839946389, 0.1391073912, -0.1839409322, -0.3313493729, -0.0855726078, -0.0173468366, 0.040500924, -0.2087072283, -0.4318087101, -0.2330213934, -0.1791114211, 0.0216234885, -0.0695498958, 0.2032478303, -0.009369133, -0.0178897586, 0.1497213691, 0.2623845339, -0.1572471112, -0.0877214298, -0.4881262183, 0.1246123984, -0.2836303711, -0.0197321977, -0.0922570154, -0.1024708748, 0.422355175, 0.308637917, -0.1903933436, 0.1180601567, -0.0889261439, 0.2408317327, -0.0977536589, -0.0265348535, 0.1954073608, -0.0789331272, -0.0996646509, -0.1173349917, 0.0736228824, 0.1176977828, -0.2414385527, 0.064714849, -0.0177846178, 0.6492411494, -0.0192826316, 0.911616087, 0.0870948434, -0.0874782354, 0.1329249591, 0.0044227815, -0.1579394937, -0.0129762832, -0.3009169102, 0.0907454118, 0.0279779024, -0.1869365424, 0.1928881258, -0.1721881926, -0.0085577713, 0.0702766106, -0.0171481166, -0.6442947388, -0.0674667135, 0.0769527778, 0.0041397437, 0.343569845, -0.1565950364, 0.0682595596, -0.2833535373, -0.059069477, -0.0908283964, 0.0464701951, 0.2381596267, -0.1836908013, -0.3598338366, 0.0888355225, -0.2709053159, 0.2956258059, 0.0668392926, 0.3335525095, 0.0276034623, -0.0400166586, 0.1112622693, -0.1317253709, 0.7860839367, -0.0443018191, 0.0675166398, 0.0571943261, -0.2433978319, -0.1615099311, -0.0845040008, -0.3391533792, 0.2083999217, 0.5520215034, 0.2944180369, -0.2110377401, -0.3628799617, 0.0173129924, -0.1886416823, -0.1648463905, -0.2995321453, -0.3377784193, -0.1493665278, -0.382386595, 0.3109839857, 0.2597948313, 0.1134822518, -0.4368881583, -0.3712888062, -0.3057014048, -0.0896347016, 0.1953643709, -0.0665382668, 0.0286606792, 0.0238973107, 0.2161180973, 0.0219961908, 0.2875386775, 0.3828945458, 0.2126955837, -0.1729635298, -0.3372838199, 0.1827810109, -0.0983876288, 0.4843113124, 0.0285962615, -0.2987978756, 0.3437285423, -0.0373794921, 0.1920202821, -0.4507603347, 0.5018002987, 0.4323756099, 0.1806506217, -0.532166183, -0.5739415288, 0.1534675211, 0.3390221, -0.098034285, 0.1371525079, -0.2328918576, -0.2770262957, 0.1009883583, 0.1951021105, 0.620547235, -0.0256134775, -0.0886721537, 0.1017480865, 0.2892378867, 0.0658002272, -0.2064576, 0.1026583239, -0.3231613934, 0.0041054506, 0.0323344134, -0.1772435606, 0.2091562152, 0.404345423, -0.1352705806, 0.1973563433, -0.1509763896, 0.2151625603, -0.1551906317, 0.3089807928, 0.042141512, -0.2329288125, -0.0506951846, 0.2430501133, -0.1315613389, 0.2198930383, -0.1560653001, -0.1121161729, 0.1223986968, -0.1048336923, 0.2029972821, 0.0285313018, -0.4526076019, -0.0327908397, -0.1833142191, -0.1597455591, 0.0133772995, -0.0820374712, 0.3468178809, 0.2518923879, 0.186001569, -0.0041452902, 0.0332504027, 0.1427507102, -0.0088197496, -0.3308889568, 0.3472429216, -0.0457746349, -0.1752588302, 0.0488176458, 0.0530346334, -0.2700374424, -0.017161129, -0.0162131712, 0.4081456959, -0.4375679493, -0.0731345713, -0.0617684722, -0.1597320437, -0.0974126011, 0.1880708039, -0.0819992349, -0.277687788, 0.445333153, -0.1918442398, -0.2045329362, -0.0458535291, 0.1701377928, 0.2722021341, -0.2661238909, 0.527148962, -0.0081692608, -0.2039595842, -0.2986087501, 0.1181668043, 0.2406753749, -0.1789260209, 0.3072324693, 0.1491334736, 0.1801616251, 0.23993285, 0.0652859583, -0.2452693582, 0.0456206948, -0.1946118921, -0.2512212694, -0.4587338567, -0.2272525132, -0.145361647, 0.2936919034, 0.3126304746, 0.2828494012, -0.0498392358, 0.335858196, -0.4065793753, -0.1149406731, -0.1531324089, 0.2728174329, 0.1524817497, 0.0128617268, -0.0067068259, 0.2280722708, 0.166223377, 0.2789080739, -0.0558059812, -0.3985134661, 0.0245180149, 0.0459399261, -0.1330241114, -0.0621522851, 0.0371135138, -0.021833742, -0.2458430678, -0.1073626876, 0.2516541779, 0.0131635768, 0.1318155676, 0.2092587948, 0.4427996576, 0.339192003, 0.1198220775, 0.1046172455, -0.1400850862, 0.0519429855, 0.0390865095, 0.2915997207, 0.0728552416, -0.0097596068, -0.0087770633, -0.2714516521, 0.6143186688, 0.0637841523, 0.0193377901, -0.393550247, -0.2791871428, 0.1281475574, 0.0886590555, 0.2924182117, 0.0575002804, -0.2814281583, 0.3145102859, 0.3561896384, 0.0374487638, 0.3104783893, 0.1691525728, -0.1325734258, 0.1291972846, 0.1397574544, -0.0616449676, 0.2524920702, 0.1008178741, 0.1690556258, 0.2947508395, -0.2797973454, 0.1288770288, 0.193778187, 0.088113144, 0.0643599853, 0.3061845601, 0.0950235352, 0.0919643268, 0.411839515, 0.1421422511, 0.5869657397, 0.1562698334, 0.1330234855, 0.0360657983, -0.4071055055, -0.3413546383, 0.2097714245, -0.3046946228, 0.1884252131, -0.0142173916, 0.2182092369, 0.1494464427, -0.189122051, -0.087864317, 0.3838887215, -0.465875715, -0.1196661144, -0.5270377398, -0.0618736073, 0.0470667258, -0.1525256336, 0.1422009617, 0.0003343242, -0.026842773, 0.0209394321, -0.0446055755, 0.0361098461, -0.2875400484, 0.2877539694, -0.0674867705, -0.1569442004, 0.0797995403, -0.0260499977, 0.1523936391, -0.0068780854, 0.2188947648, 0.3761071861, 0.3229936063, -0.19221434, -0.0940964222, 0.0517289601, -0.0628714561, -0.1619844586, 0.2549489439, -0.1922803372, -0.0053926767, 0.3815495074, 0.2739576995, -0.2499832511, -0.334929198, 0.0257080905, -0.0218389314, -0.0413480438, 0.4966604114, 0.1191577017, -0.1086807624, -0.2861168683, -0.0260958355, -0.4254946113, -0.0493841879, 0.5210593343, -0.4102796912, 0.1081940904, -0.1843962967, 0.1237969846, -0.2985061407, 0.424854666, 0.3058855534, 0.2850419581, -0.4672281146, 0.0159204006, -0.2836145759, 0.2286421359, -0.0501086339, 0.0008188674, -0.2460904419, 0.2427737564, -0.2073605359, 0.0642417893, -0.0658616349, -0.1411857307, 0.0898484215, 0.389062345, -0.3444703221, 0.0781765878, -0.307110846, -0.0271442123, 0.1391093582, -0.3164841533, 0.1617378145, 0.1141604483, 0.1574423462, -0.1564971954, 0.0271079484, 0.2952473462, -0.1897252053, 0.251013875, 0.2174009383, 0.3563930988, -0.2116018683, 0.4840890467, -0.0992440134, 0.0562532321, -0.3012339175, -0.1634410024, 0.1430548579, 0.1765763164, 0.0225725882, 0.0269493479, -0.2492115647, -0.0863267854, 0.0803803355, -0.1846031845, 0.0331374705, 0.0671217591, -0.058093112, 0.0357010625, 0.0681240037, 0.19037202, 0.2587809265, 0.2300124019, -0.422467649, -0.4245305359, 0.402363807, -0.3883863389, -0.3013539612, -0.3631494343, 0.2955273986, 0.0590146035, 0.0962254331, -0.1573040932, 0.0010297733, 0.4445217252, -0.0583702736, -0.0071651423, 0.377520591, 0.1706831902, 0.202989608, -0.1777066141, -0.1100154519, 0.1193486452, -0.0026774534, 0.0720623508, -0.3162927628 ]
https://github.com/huggingface/datasets/issues/823
how processing in batch works in datasets
Hi Thomas, what I do not get from documentation is that why when you set batched=True, this is processed in batch, while data is not divided to batched beforehand, basically this is a question on the documentation and I do not get the batched=True, but sure, if you think this is more appropriate in forum I will post it there. thanks Best Rabeeh On Tue, Nov 10, 2020 at 12:21 PM Thomas Wolf <[email protected]> wrote: > Hi I don’t think this is a request for a dataset like you labeled it. > > I also think this would be better suited for the forum at > https://discuss.huggingface.co. we try to keep the issue for the repo for > bug reports and new features/dataset requests and have usage questions > discussed on the forum. Thanks. > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/823#issuecomment-724639476>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ARPXHH4FIPFHVVUHANAE4F3SPEO2JANCNFSM4TQQVEXQ> > . >
Hi, I need to process my datasets before it is passed to dataloader in batch, here is my codes ``` class AbstractTask(ABC): task_name: str = NotImplemented preprocessor: Callable = NotImplemented split_to_data_split: Mapping[str, str] = NotImplemented tokenizer: Callable = NotImplemented max_source_length: str = NotImplemented max_target_length: str = NotImplemented # TODO: should not be a task item, but cannot see other ways. tpu_num_cores: int = None # The arguments set are for all tasks and needs to be kept common. def __init__(self, config): self.max_source_length = config['max_source_length'] self.max_target_length = config['max_target_length'] self.tokenizer = config['tokenizer'] self.tpu_num_cores = config['tpu_num_cores'] def _encode(self, batch) -> Dict[str, torch.Tensor]: batch_encoding = self.tokenizer.prepare_seq2seq_batch( [x["src_texts"] for x in batch], tgt_texts=[x["tgt_texts"] for x in batch], max_length=self.max_source_length, max_target_length=self.max_target_length, padding="max_length" if self.tpu_num_cores is not None else "longest", # TPU hack return_tensors="pt" ) return batch_encoding.data def data_split(self, split): return self.split_to_data_split[split] def get_dataset(self, split, n_obs=None): split = self.data_split(split) if n_obs is not None: split = split+"[:{}]".format(n_obs) dataset = load_dataset(self.task_name, split=split) dataset = dataset.map(self.preprocessor, remove_columns=dataset.column_names) dataset = dataset.map(lambda batch: self._encode(batch), batched=True) dataset.set_format(type="torch", columns=['input_ids', 'token_type_ids', 'attention_mask', 'label']) return dataset ``` I call it like `AutoTask.get(task, train_dataset_config).get_dataset(split="train", n_obs=data_args.n_train) ` This gives the following error, to me because the data inside the dataset = dataset.map(lambda batch: self._encode(batch), batched=True) is not processed in batch, could you tell me how I can process dataset in batch inside my function? thanks File "finetune_multitask_trainer.py", line 192, in main if training_args.do_train else None File "finetune_multitask_trainer.py", line 191, in <dictcomp> split="train", n_obs=data_args.n_train) for task in data_args.task} File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in get_dataset dataset = dataset.map(lambda batch: self._encode(batch), batched=True) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1236, in map update_data = does_function_return_dict(test_inputs, test_indices) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1207, in does_function_return_dict function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in <lambda> dataset = dataset.map(lambda batch: self._encode(batch), batched=True) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in _encode [x["src_texts"] for x in batch], File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in <listcomp> [x["src_texts"] for x in batch], TypeError: string indices must be integers
167
how processing in batch works in datasets Hi, I need to process my datasets before it is passed to dataloader in batch, here is my codes ``` class AbstractTask(ABC): task_name: str = NotImplemented preprocessor: Callable = NotImplemented split_to_data_split: Mapping[str, str] = NotImplemented tokenizer: Callable = NotImplemented max_source_length: str = NotImplemented max_target_length: str = NotImplemented # TODO: should not be a task item, but cannot see other ways. tpu_num_cores: int = None # The arguments set are for all tasks and needs to be kept common. def __init__(self, config): self.max_source_length = config['max_source_length'] self.max_target_length = config['max_target_length'] self.tokenizer = config['tokenizer'] self.tpu_num_cores = config['tpu_num_cores'] def _encode(self, batch) -> Dict[str, torch.Tensor]: batch_encoding = self.tokenizer.prepare_seq2seq_batch( [x["src_texts"] for x in batch], tgt_texts=[x["tgt_texts"] for x in batch], max_length=self.max_source_length, max_target_length=self.max_target_length, padding="max_length" if self.tpu_num_cores is not None else "longest", # TPU hack return_tensors="pt" ) return batch_encoding.data def data_split(self, split): return self.split_to_data_split[split] def get_dataset(self, split, n_obs=None): split = self.data_split(split) if n_obs is not None: split = split+"[:{}]".format(n_obs) dataset = load_dataset(self.task_name, split=split) dataset = dataset.map(self.preprocessor, remove_columns=dataset.column_names) dataset = dataset.map(lambda batch: self._encode(batch), batched=True) dataset.set_format(type="torch", columns=['input_ids', 'token_type_ids', 'attention_mask', 'label']) return dataset ``` I call it like `AutoTask.get(task, train_dataset_config).get_dataset(split="train", n_obs=data_args.n_train) ` This gives the following error, to me because the data inside the dataset = dataset.map(lambda batch: self._encode(batch), batched=True) is not processed in batch, could you tell me how I can process dataset in batch inside my function? thanks File "finetune_multitask_trainer.py", line 192, in main if training_args.do_train else None File "finetune_multitask_trainer.py", line 191, in <dictcomp> split="train", n_obs=data_args.n_train) for task in data_args.task} File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in get_dataset dataset = dataset.map(lambda batch: self._encode(batch), batched=True) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1236, in map update_data = does_function_return_dict(test_inputs, test_indices) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1207, in does_function_return_dict function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in <lambda> dataset = dataset.map(lambda batch: self._encode(batch), batched=True) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in _encode [x["src_texts"] for x in batch], File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in <listcomp> [x["src_texts"] for x in batch], TypeError: string indices must be integers Hi Thomas, what I do not get from documentation is that why when you set batched=True, this is processed in batch, while data is not divided to batched beforehand, basically this is a question on the documentation and I do not get the batched=True, but sure, if you think this is more appropriate in forum I will post it there. thanks Best Rabeeh On Tue, Nov 10, 2020 at 12:21 PM Thomas Wolf <[email protected]> wrote: > Hi I don’t think this is a request for a dataset like you labeled it. > > I also think this would be better suited for the forum at > https://discuss.huggingface.co. we try to keep the issue for the repo for > bug reports and new features/dataset requests and have usage questions > discussed on the forum. Thanks. > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/823#issuecomment-724639476>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ARPXHH4FIPFHVVUHANAE4F3SPEO2JANCNFSM4TQQVEXQ> > . >
[ -0.5023792982, -0.1743950695, -0.2295022011, 0.1301573068, 0.1780351549, 0.031794928, 0.2955615819, 0.171304509, -0.1484706998, 0.1780764759, 0.0091214012, 0.1247810051, 0.0641202405, 0.245623365, -0.056165114, -0.0358915068, -0.0745974332, 0.0483772829, 0.1096094027, 0.0072344025, -0.3676093519, 0.0689975917, -0.4043072462, 0.0522343665, -0.2230468839, -0.2693565786, -0.0612453632, -0.0392569788, -0.0044129621, -0.1525890678, -0.0022257674, 0.233494848, 0.2088395506, 0.4326501787, -0.0001049565, 0.0785309076, 0.2467756271, 0.0393824838, -0.2903356552, 0.2226281762, -0.0494005755, -0.1695529372, -0.1062983572, -0.3042085171, -0.1008363441, -0.0860010087, -0.1385593861, -0.3374298513, 0.3848309219, 0.1753830761, 0.2844720781, 0.2802548707, -0.1476055533, 0.1414176226, 0.0610041842, 0.0714531615, 0.0851128325, -0.390209347, 0.0682321563, 0.1479273885, -0.0484060459, 0.149620235, -0.2720302641, 0.085941121, -0.2550975084, 0.0218879487, 0.0260984413, -0.3847030699, 0.0884851292, -0.1349761635, 0.2846597135, -0.2123626322, -0.2440749705, -0.3842580914, -0.2724656165, -0.4653173685, -0.0269788876, 0.113132447, -0.0684820637, 0.1012711227, -0.0785877034, 0.2408464402, -0.0737226382, -0.1666946709, 0.1114268675, 0.2568112314, -0.2119237632, 0.2198820561, 0.0700409114, 0.088788718, 0.1648154259, -0.2350717783, -0.0004338161, 0.2723604441, -0.4907975793, -0.0871193558, -0.111774601, -0.1519904733, -0.1408955157, 0.0541604199, -0.1284128428, 0.1272300333, 0.3161275685, 0.1564186513, -0.0295962654, 0.1643565446, 0.118721284, 0.2562068999, -0.077118285, -0.3050598502, -0.2260431796, 0.027757043, -0.0785892904, -0.32984671, 0.1471391022, 0.3610410392, 0.2499246895, 0.0302780103, -0.4871646762, -0.0903923959, -0.0190419592, -0.0580978654, 0.1420929134, 0.2845917642, -0.2407627553, 0.2508462667, -0.0810259506, -0.1523166597, -0.292634815, -0.046196226, -0.3027382791, -0.1152570173, -0.1496193707, 0.0702788159, 0.1349773705, -0.1721604317, 0.3239180744, 0.0755830705, 0.0962860659, -0.1746602654, 0.5014520884, -0.3949421048, 0.2224126309, 0.2599138916, 0.1795819998, 0.2426501065, 0.0532011576, 0.2097662389, 0.0399615094, 0.0737815425, -0.6257678866, -0.1791180819, 0.2474628687, 0.3138491213, -0.0505518764, 0.001461105, -0.5935840607, -0.0869221985, 0.3213267624, 0.0906267315, 0.1197098345, -0.1754256785, -0.1859955937, -0.1946795136, 0.2003966272, 0.0852582902, -0.4504098594, 0.067932792, -0.1153643653, -0.3227446377, 0.5454283357, 0.1242686808, -0.1138667241, 0.6199549437, -0.3095550835, 0.3783026338, 0.1937190741, -0.3189389408, -0.2815085351, 0.5390692949, -0.2575120628, 0.0180870406, 0.0398205929, 0.0325070806, 0.5586624146, -0.0602871031, 0.0362302102, 0.3787435293, -0.119228825, 0.0902984738, -0.0995699093, 0.1156373322, 0.0859536156, -0.0174081605, 0.103892684, 0.0438637473, -0.2167431563, -0.0445536748, 0.1737817079, 0.05349911, 0.2965997458, 0.24967435, 0.011494074, 0.2087979317, 0.1932465732, -0.0454124324, -0.2964652777, 0.0957319885, -0.0203325357, -0.1832337826, 0.040564429, -0.3565833867, -0.142738387, 0.1464836299, -0.4080846012, -0.1703145355, 0.2187933475, 0.0912242234, 0.022360554, -0.3133271635, 0.005141254, 0.3289263248, -0.0184367653, 0.0320127532, -0.1938537806, -0.0220454838, 0.0078474982, -0.1507640779, -0.0613339692, -0.0791998655, 0.2228216082, 0.0074299602, -0.049334053, 0.3533653021, 0.2747454643, 0.0639956072, -0.0365163684, -0.1238467917, -0.0102489563, 0.1141475886, -0.0905262381, -0.0358546823, 0.2171731591, -0.1256067753, 0.2478308976, 0.4252817631, -0.0469340421, 0.2657586634, -0.0382557735, -0.2736452818, 0.2264524847, -0.0702166483, -0.0428675599, 0.197691679, -0.0458721668, 0.0015260566, 0.3408337831, 0.0440047905, -0.0559480339, 0.1770871282, 0.427303493, -0.0043449048, -0.1692030877, -0.0192307383, -0.2083051205, 0.1080089062, 0.1594957411, -0.0258416384, 0.1219082028, 0.1693719476, 0.1196484268, -0.1023143604, 0.1045236737, -0.0379633084, 0.0820301473, 0.3170750141, 0.1805196255, 0.1618741155, -0.0916260406, -0.0561813936, -0.0036793859, -0.1100694239, 0.1913622022, 0.2398845255, -0.3654333949, 0.2132199109, -0.1459296346, -0.0898106247, -0.151118055, -0.0314463004, 0.1613283902, -0.1398270577, -0.0764073208, 0.2173888087, -0.1582913101, 0.0283090714, -0.0862445682, 0.0393372253, 0.2715219557, -0.380745858, -0.1608631462, -0.0596177056, -0.1818826348, 0.2018620968, 0.0678682774, 0.1080866084, 0.4683223665, 0.0514344126, 0.0387850776, -0.1155502871, -0.1522179544, 0.0778785795, -0.1976525933, 0.1767103821, 0.0169446189, 0.1401751786, -0.1079596281, -0.3839946389, 0.1391073912, -0.1839409322, -0.3313493729, -0.0855726078, -0.0173468366, 0.040500924, -0.2087072283, -0.4318087101, -0.2330213934, -0.1791114211, 0.0216234885, -0.0695498958, 0.2032478303, -0.009369133, -0.0178897586, 0.1497213691, 0.2623845339, -0.1572471112, -0.0877214298, -0.4881262183, 0.1246123984, -0.2836303711, -0.0197321977, -0.0922570154, -0.1024708748, 0.422355175, 0.308637917, -0.1903933436, 0.1180601567, -0.0889261439, 0.2408317327, -0.0977536589, -0.0265348535, 0.1954073608, -0.0789331272, -0.0996646509, -0.1173349917, 0.0736228824, 0.1176977828, -0.2414385527, 0.064714849, -0.0177846178, 0.6492411494, -0.0192826316, 0.911616087, 0.0870948434, -0.0874782354, 0.1329249591, 0.0044227815, -0.1579394937, -0.0129762832, -0.3009169102, 0.0907454118, 0.0279779024, -0.1869365424, 0.1928881258, -0.1721881926, -0.0085577713, 0.0702766106, -0.0171481166, -0.6442947388, -0.0674667135, 0.0769527778, 0.0041397437, 0.343569845, -0.1565950364, 0.0682595596, -0.2833535373, -0.059069477, -0.0908283964, 0.0464701951, 0.2381596267, -0.1836908013, -0.3598338366, 0.0888355225, -0.2709053159, 0.2956258059, 0.0668392926, 0.3335525095, 0.0276034623, -0.0400166586, 0.1112622693, -0.1317253709, 0.7860839367, -0.0443018191, 0.0675166398, 0.0571943261, -0.2433978319, -0.1615099311, -0.0845040008, -0.3391533792, 0.2083999217, 0.5520215034, 0.2944180369, -0.2110377401, -0.3628799617, 0.0173129924, -0.1886416823, -0.1648463905, -0.2995321453, -0.3377784193, -0.1493665278, -0.382386595, 0.3109839857, 0.2597948313, 0.1134822518, -0.4368881583, -0.3712888062, -0.3057014048, -0.0896347016, 0.1953643709, -0.0665382668, 0.0286606792, 0.0238973107, 0.2161180973, 0.0219961908, 0.2875386775, 0.3828945458, 0.2126955837, -0.1729635298, -0.3372838199, 0.1827810109, -0.0983876288, 0.4843113124, 0.0285962615, -0.2987978756, 0.3437285423, -0.0373794921, 0.1920202821, -0.4507603347, 0.5018002987, 0.4323756099, 0.1806506217, -0.532166183, -0.5739415288, 0.1534675211, 0.3390221, -0.098034285, 0.1371525079, -0.2328918576, -0.2770262957, 0.1009883583, 0.1951021105, 0.620547235, -0.0256134775, -0.0886721537, 0.1017480865, 0.2892378867, 0.0658002272, -0.2064576, 0.1026583239, -0.3231613934, 0.0041054506, 0.0323344134, -0.1772435606, 0.2091562152, 0.404345423, -0.1352705806, 0.1973563433, -0.1509763896, 0.2151625603, -0.1551906317, 0.3089807928, 0.042141512, -0.2329288125, -0.0506951846, 0.2430501133, -0.1315613389, 0.2198930383, -0.1560653001, -0.1121161729, 0.1223986968, -0.1048336923, 0.2029972821, 0.0285313018, -0.4526076019, -0.0327908397, -0.1833142191, -0.1597455591, 0.0133772995, -0.0820374712, 0.3468178809, 0.2518923879, 0.186001569, -0.0041452902, 0.0332504027, 0.1427507102, -0.0088197496, -0.3308889568, 0.3472429216, -0.0457746349, -0.1752588302, 0.0488176458, 0.0530346334, -0.2700374424, -0.017161129, -0.0162131712, 0.4081456959, -0.4375679493, -0.0731345713, -0.0617684722, -0.1597320437, -0.0974126011, 0.1880708039, -0.0819992349, -0.277687788, 0.445333153, -0.1918442398, -0.2045329362, -0.0458535291, 0.1701377928, 0.2722021341, -0.2661238909, 0.527148962, -0.0081692608, -0.2039595842, -0.2986087501, 0.1181668043, 0.2406753749, -0.1789260209, 0.3072324693, 0.1491334736, 0.1801616251, 0.23993285, 0.0652859583, -0.2452693582, 0.0456206948, -0.1946118921, -0.2512212694, -0.4587338567, -0.2272525132, -0.145361647, 0.2936919034, 0.3126304746, 0.2828494012, -0.0498392358, 0.335858196, -0.4065793753, -0.1149406731, -0.1531324089, 0.2728174329, 0.1524817497, 0.0128617268, -0.0067068259, 0.2280722708, 0.166223377, 0.2789080739, -0.0558059812, -0.3985134661, 0.0245180149, 0.0459399261, -0.1330241114, -0.0621522851, 0.0371135138, -0.021833742, -0.2458430678, -0.1073626876, 0.2516541779, 0.0131635768, 0.1318155676, 0.2092587948, 0.4427996576, 0.339192003, 0.1198220775, 0.1046172455, -0.1400850862, 0.0519429855, 0.0390865095, 0.2915997207, 0.0728552416, -0.0097596068, -0.0087770633, -0.2714516521, 0.6143186688, 0.0637841523, 0.0193377901, -0.393550247, -0.2791871428, 0.1281475574, 0.0886590555, 0.2924182117, 0.0575002804, -0.2814281583, 0.3145102859, 0.3561896384, 0.0374487638, 0.3104783893, 0.1691525728, -0.1325734258, 0.1291972846, 0.1397574544, -0.0616449676, 0.2524920702, 0.1008178741, 0.1690556258, 0.2947508395, -0.2797973454, 0.1288770288, 0.193778187, 0.088113144, 0.0643599853, 0.3061845601, 0.0950235352, 0.0919643268, 0.411839515, 0.1421422511, 0.5869657397, 0.1562698334, 0.1330234855, 0.0360657983, -0.4071055055, -0.3413546383, 0.2097714245, -0.3046946228, 0.1884252131, -0.0142173916, 0.2182092369, 0.1494464427, -0.189122051, -0.087864317, 0.3838887215, -0.465875715, -0.1196661144, -0.5270377398, -0.0618736073, 0.0470667258, -0.1525256336, 0.1422009617, 0.0003343242, -0.026842773, 0.0209394321, -0.0446055755, 0.0361098461, -0.2875400484, 0.2877539694, -0.0674867705, -0.1569442004, 0.0797995403, -0.0260499977, 0.1523936391, -0.0068780854, 0.2188947648, 0.3761071861, 0.3229936063, -0.19221434, -0.0940964222, 0.0517289601, -0.0628714561, -0.1619844586, 0.2549489439, -0.1922803372, -0.0053926767, 0.3815495074, 0.2739576995, -0.2499832511, -0.334929198, 0.0257080905, -0.0218389314, -0.0413480438, 0.4966604114, 0.1191577017, -0.1086807624, -0.2861168683, -0.0260958355, -0.4254946113, -0.0493841879, 0.5210593343, -0.4102796912, 0.1081940904, -0.1843962967, 0.1237969846, -0.2985061407, 0.424854666, 0.3058855534, 0.2850419581, -0.4672281146, 0.0159204006, -0.2836145759, 0.2286421359, -0.0501086339, 0.0008188674, -0.2460904419, 0.2427737564, -0.2073605359, 0.0642417893, -0.0658616349, -0.1411857307, 0.0898484215, 0.389062345, -0.3444703221, 0.0781765878, -0.307110846, -0.0271442123, 0.1391093582, -0.3164841533, 0.1617378145, 0.1141604483, 0.1574423462, -0.1564971954, 0.0271079484, 0.2952473462, -0.1897252053, 0.251013875, 0.2174009383, 0.3563930988, -0.2116018683, 0.4840890467, -0.0992440134, 0.0562532321, -0.3012339175, -0.1634410024, 0.1430548579, 0.1765763164, 0.0225725882, 0.0269493479, -0.2492115647, -0.0863267854, 0.0803803355, -0.1846031845, 0.0331374705, 0.0671217591, -0.058093112, 0.0357010625, 0.0681240037, 0.19037202, 0.2587809265, 0.2300124019, -0.422467649, -0.4245305359, 0.402363807, -0.3883863389, -0.3013539612, -0.3631494343, 0.2955273986, 0.0590146035, 0.0962254331, -0.1573040932, 0.0010297733, 0.4445217252, -0.0583702736, -0.0071651423, 0.377520591, 0.1706831902, 0.202989608, -0.1777066141, -0.1100154519, 0.1193486452, -0.0026774534, 0.0720623508, -0.3162927628 ]
https://github.com/huggingface/datasets/issues/823
how processing in batch works in datasets
Yes the forum is perfect for that. You can post in the `datasets` section. Thanks a lot!
Hi, I need to process my datasets before it is passed to dataloader in batch, here is my codes ``` class AbstractTask(ABC): task_name: str = NotImplemented preprocessor: Callable = NotImplemented split_to_data_split: Mapping[str, str] = NotImplemented tokenizer: Callable = NotImplemented max_source_length: str = NotImplemented max_target_length: str = NotImplemented # TODO: should not be a task item, but cannot see other ways. tpu_num_cores: int = None # The arguments set are for all tasks and needs to be kept common. def __init__(self, config): self.max_source_length = config['max_source_length'] self.max_target_length = config['max_target_length'] self.tokenizer = config['tokenizer'] self.tpu_num_cores = config['tpu_num_cores'] def _encode(self, batch) -> Dict[str, torch.Tensor]: batch_encoding = self.tokenizer.prepare_seq2seq_batch( [x["src_texts"] for x in batch], tgt_texts=[x["tgt_texts"] for x in batch], max_length=self.max_source_length, max_target_length=self.max_target_length, padding="max_length" if self.tpu_num_cores is not None else "longest", # TPU hack return_tensors="pt" ) return batch_encoding.data def data_split(self, split): return self.split_to_data_split[split] def get_dataset(self, split, n_obs=None): split = self.data_split(split) if n_obs is not None: split = split+"[:{}]".format(n_obs) dataset = load_dataset(self.task_name, split=split) dataset = dataset.map(self.preprocessor, remove_columns=dataset.column_names) dataset = dataset.map(lambda batch: self._encode(batch), batched=True) dataset.set_format(type="torch", columns=['input_ids', 'token_type_ids', 'attention_mask', 'label']) return dataset ``` I call it like `AutoTask.get(task, train_dataset_config).get_dataset(split="train", n_obs=data_args.n_train) ` This gives the following error, to me because the data inside the dataset = dataset.map(lambda batch: self._encode(batch), batched=True) is not processed in batch, could you tell me how I can process dataset in batch inside my function? thanks File "finetune_multitask_trainer.py", line 192, in main if training_args.do_train else None File "finetune_multitask_trainer.py", line 191, in <dictcomp> split="train", n_obs=data_args.n_train) for task in data_args.task} File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in get_dataset dataset = dataset.map(lambda batch: self._encode(batch), batched=True) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1236, in map update_data = does_function_return_dict(test_inputs, test_indices) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1207, in does_function_return_dict function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in <lambda> dataset = dataset.map(lambda batch: self._encode(batch), batched=True) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in _encode [x["src_texts"] for x in batch], File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in <listcomp> [x["src_texts"] for x in batch], TypeError: string indices must be integers
17
how processing in batch works in datasets Hi, I need to process my datasets before it is passed to dataloader in batch, here is my codes ``` class AbstractTask(ABC): task_name: str = NotImplemented preprocessor: Callable = NotImplemented split_to_data_split: Mapping[str, str] = NotImplemented tokenizer: Callable = NotImplemented max_source_length: str = NotImplemented max_target_length: str = NotImplemented # TODO: should not be a task item, but cannot see other ways. tpu_num_cores: int = None # The arguments set are for all tasks and needs to be kept common. def __init__(self, config): self.max_source_length = config['max_source_length'] self.max_target_length = config['max_target_length'] self.tokenizer = config['tokenizer'] self.tpu_num_cores = config['tpu_num_cores'] def _encode(self, batch) -> Dict[str, torch.Tensor]: batch_encoding = self.tokenizer.prepare_seq2seq_batch( [x["src_texts"] for x in batch], tgt_texts=[x["tgt_texts"] for x in batch], max_length=self.max_source_length, max_target_length=self.max_target_length, padding="max_length" if self.tpu_num_cores is not None else "longest", # TPU hack return_tensors="pt" ) return batch_encoding.data def data_split(self, split): return self.split_to_data_split[split] def get_dataset(self, split, n_obs=None): split = self.data_split(split) if n_obs is not None: split = split+"[:{}]".format(n_obs) dataset = load_dataset(self.task_name, split=split) dataset = dataset.map(self.preprocessor, remove_columns=dataset.column_names) dataset = dataset.map(lambda batch: self._encode(batch), batched=True) dataset.set_format(type="torch", columns=['input_ids', 'token_type_ids', 'attention_mask', 'label']) return dataset ``` I call it like `AutoTask.get(task, train_dataset_config).get_dataset(split="train", n_obs=data_args.n_train) ` This gives the following error, to me because the data inside the dataset = dataset.map(lambda batch: self._encode(batch), batched=True) is not processed in batch, could you tell me how I can process dataset in batch inside my function? thanks File "finetune_multitask_trainer.py", line 192, in main if training_args.do_train else None File "finetune_multitask_trainer.py", line 191, in <dictcomp> split="train", n_obs=data_args.n_train) for task in data_args.task} File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in get_dataset dataset = dataset.map(lambda batch: self._encode(batch), batched=True) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1236, in map update_data = does_function_return_dict(test_inputs, test_indices) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1207, in does_function_return_dict function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in <lambda> dataset = dataset.map(lambda batch: self._encode(batch), batched=True) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in _encode [x["src_texts"] for x in batch], File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in <listcomp> [x["src_texts"] for x in batch], TypeError: string indices must be integers Yes the forum is perfect for that. You can post in the `datasets` section. Thanks a lot!
[ -0.5023792982, -0.1743950695, -0.2295022011, 0.1301573068, 0.1780351549, 0.031794928, 0.2955615819, 0.171304509, -0.1484706998, 0.1780764759, 0.0091214012, 0.1247810051, 0.0641202405, 0.245623365, -0.056165114, -0.0358915068, -0.0745974332, 0.0483772829, 0.1096094027, 0.0072344025, -0.3676093519, 0.0689975917, -0.4043072462, 0.0522343665, -0.2230468839, -0.2693565786, -0.0612453632, -0.0392569788, -0.0044129621, -0.1525890678, -0.0022257674, 0.233494848, 0.2088395506, 0.4326501787, -0.0001049565, 0.0785309076, 0.2467756271, 0.0393824838, -0.2903356552, 0.2226281762, -0.0494005755, -0.1695529372, -0.1062983572, -0.3042085171, -0.1008363441, -0.0860010087, -0.1385593861, -0.3374298513, 0.3848309219, 0.1753830761, 0.2844720781, 0.2802548707, -0.1476055533, 0.1414176226, 0.0610041842, 0.0714531615, 0.0851128325, -0.390209347, 0.0682321563, 0.1479273885, -0.0484060459, 0.149620235, -0.2720302641, 0.085941121, -0.2550975084, 0.0218879487, 0.0260984413, -0.3847030699, 0.0884851292, -0.1349761635, 0.2846597135, -0.2123626322, -0.2440749705, -0.3842580914, -0.2724656165, -0.4653173685, -0.0269788876, 0.113132447, -0.0684820637, 0.1012711227, -0.0785877034, 0.2408464402, -0.0737226382, -0.1666946709, 0.1114268675, 0.2568112314, -0.2119237632, 0.2198820561, 0.0700409114, 0.088788718, 0.1648154259, -0.2350717783, -0.0004338161, 0.2723604441, -0.4907975793, -0.0871193558, -0.111774601, -0.1519904733, -0.1408955157, 0.0541604199, -0.1284128428, 0.1272300333, 0.3161275685, 0.1564186513, -0.0295962654, 0.1643565446, 0.118721284, 0.2562068999, -0.077118285, -0.3050598502, -0.2260431796, 0.027757043, -0.0785892904, -0.32984671, 0.1471391022, 0.3610410392, 0.2499246895, 0.0302780103, -0.4871646762, -0.0903923959, -0.0190419592, -0.0580978654, 0.1420929134, 0.2845917642, -0.2407627553, 0.2508462667, -0.0810259506, -0.1523166597, -0.292634815, -0.046196226, -0.3027382791, -0.1152570173, -0.1496193707, 0.0702788159, 0.1349773705, -0.1721604317, 0.3239180744, 0.0755830705, 0.0962860659, -0.1746602654, 0.5014520884, -0.3949421048, 0.2224126309, 0.2599138916, 0.1795819998, 0.2426501065, 0.0532011576, 0.2097662389, 0.0399615094, 0.0737815425, -0.6257678866, -0.1791180819, 0.2474628687, 0.3138491213, -0.0505518764, 0.001461105, -0.5935840607, -0.0869221985, 0.3213267624, 0.0906267315, 0.1197098345, -0.1754256785, -0.1859955937, -0.1946795136, 0.2003966272, 0.0852582902, -0.4504098594, 0.067932792, -0.1153643653, -0.3227446377, 0.5454283357, 0.1242686808, -0.1138667241, 0.6199549437, -0.3095550835, 0.3783026338, 0.1937190741, -0.3189389408, -0.2815085351, 0.5390692949, -0.2575120628, 0.0180870406, 0.0398205929, 0.0325070806, 0.5586624146, -0.0602871031, 0.0362302102, 0.3787435293, -0.119228825, 0.0902984738, -0.0995699093, 0.1156373322, 0.0859536156, -0.0174081605, 0.103892684, 0.0438637473, -0.2167431563, -0.0445536748, 0.1737817079, 0.05349911, 0.2965997458, 0.24967435, 0.011494074, 0.2087979317, 0.1932465732, -0.0454124324, -0.2964652777, 0.0957319885, -0.0203325357, -0.1832337826, 0.040564429, -0.3565833867, -0.142738387, 0.1464836299, -0.4080846012, -0.1703145355, 0.2187933475, 0.0912242234, 0.022360554, -0.3133271635, 0.005141254, 0.3289263248, -0.0184367653, 0.0320127532, -0.1938537806, -0.0220454838, 0.0078474982, -0.1507640779, -0.0613339692, -0.0791998655, 0.2228216082, 0.0074299602, -0.049334053, 0.3533653021, 0.2747454643, 0.0639956072, -0.0365163684, -0.1238467917, -0.0102489563, 0.1141475886, -0.0905262381, -0.0358546823, 0.2171731591, -0.1256067753, 0.2478308976, 0.4252817631, -0.0469340421, 0.2657586634, -0.0382557735, -0.2736452818, 0.2264524847, -0.0702166483, -0.0428675599, 0.197691679, -0.0458721668, 0.0015260566, 0.3408337831, 0.0440047905, -0.0559480339, 0.1770871282, 0.427303493, -0.0043449048, -0.1692030877, -0.0192307383, -0.2083051205, 0.1080089062, 0.1594957411, -0.0258416384, 0.1219082028, 0.1693719476, 0.1196484268, -0.1023143604, 0.1045236737, -0.0379633084, 0.0820301473, 0.3170750141, 0.1805196255, 0.1618741155, -0.0916260406, -0.0561813936, -0.0036793859, -0.1100694239, 0.1913622022, 0.2398845255, -0.3654333949, 0.2132199109, -0.1459296346, -0.0898106247, -0.151118055, -0.0314463004, 0.1613283902, -0.1398270577, -0.0764073208, 0.2173888087, -0.1582913101, 0.0283090714, -0.0862445682, 0.0393372253, 0.2715219557, -0.380745858, -0.1608631462, -0.0596177056, -0.1818826348, 0.2018620968, 0.0678682774, 0.1080866084, 0.4683223665, 0.0514344126, 0.0387850776, -0.1155502871, -0.1522179544, 0.0778785795, -0.1976525933, 0.1767103821, 0.0169446189, 0.1401751786, -0.1079596281, -0.3839946389, 0.1391073912, -0.1839409322, -0.3313493729, -0.0855726078, -0.0173468366, 0.040500924, -0.2087072283, -0.4318087101, -0.2330213934, -0.1791114211, 0.0216234885, -0.0695498958, 0.2032478303, -0.009369133, -0.0178897586, 0.1497213691, 0.2623845339, -0.1572471112, -0.0877214298, -0.4881262183, 0.1246123984, -0.2836303711, -0.0197321977, -0.0922570154, -0.1024708748, 0.422355175, 0.308637917, -0.1903933436, 0.1180601567, -0.0889261439, 0.2408317327, -0.0977536589, -0.0265348535, 0.1954073608, -0.0789331272, -0.0996646509, -0.1173349917, 0.0736228824, 0.1176977828, -0.2414385527, 0.064714849, -0.0177846178, 0.6492411494, -0.0192826316, 0.911616087, 0.0870948434, -0.0874782354, 0.1329249591, 0.0044227815, -0.1579394937, -0.0129762832, -0.3009169102, 0.0907454118, 0.0279779024, -0.1869365424, 0.1928881258, -0.1721881926, -0.0085577713, 0.0702766106, -0.0171481166, -0.6442947388, -0.0674667135, 0.0769527778, 0.0041397437, 0.343569845, -0.1565950364, 0.0682595596, -0.2833535373, -0.059069477, -0.0908283964, 0.0464701951, 0.2381596267, -0.1836908013, -0.3598338366, 0.0888355225, -0.2709053159, 0.2956258059, 0.0668392926, 0.3335525095, 0.0276034623, -0.0400166586, 0.1112622693, -0.1317253709, 0.7860839367, -0.0443018191, 0.0675166398, 0.0571943261, -0.2433978319, -0.1615099311, -0.0845040008, -0.3391533792, 0.2083999217, 0.5520215034, 0.2944180369, -0.2110377401, -0.3628799617, 0.0173129924, -0.1886416823, -0.1648463905, -0.2995321453, -0.3377784193, -0.1493665278, -0.382386595, 0.3109839857, 0.2597948313, 0.1134822518, -0.4368881583, -0.3712888062, -0.3057014048, -0.0896347016, 0.1953643709, -0.0665382668, 0.0286606792, 0.0238973107, 0.2161180973, 0.0219961908, 0.2875386775, 0.3828945458, 0.2126955837, -0.1729635298, -0.3372838199, 0.1827810109, -0.0983876288, 0.4843113124, 0.0285962615, -0.2987978756, 0.3437285423, -0.0373794921, 0.1920202821, -0.4507603347, 0.5018002987, 0.4323756099, 0.1806506217, -0.532166183, -0.5739415288, 0.1534675211, 0.3390221, -0.098034285, 0.1371525079, -0.2328918576, -0.2770262957, 0.1009883583, 0.1951021105, 0.620547235, -0.0256134775, -0.0886721537, 0.1017480865, 0.2892378867, 0.0658002272, -0.2064576, 0.1026583239, -0.3231613934, 0.0041054506, 0.0323344134, -0.1772435606, 0.2091562152, 0.404345423, -0.1352705806, 0.1973563433, -0.1509763896, 0.2151625603, -0.1551906317, 0.3089807928, 0.042141512, -0.2329288125, -0.0506951846, 0.2430501133, -0.1315613389, 0.2198930383, -0.1560653001, -0.1121161729, 0.1223986968, -0.1048336923, 0.2029972821, 0.0285313018, -0.4526076019, -0.0327908397, -0.1833142191, -0.1597455591, 0.0133772995, -0.0820374712, 0.3468178809, 0.2518923879, 0.186001569, -0.0041452902, 0.0332504027, 0.1427507102, -0.0088197496, -0.3308889568, 0.3472429216, -0.0457746349, -0.1752588302, 0.0488176458, 0.0530346334, -0.2700374424, -0.017161129, -0.0162131712, 0.4081456959, -0.4375679493, -0.0731345713, -0.0617684722, -0.1597320437, -0.0974126011, 0.1880708039, -0.0819992349, -0.277687788, 0.445333153, -0.1918442398, -0.2045329362, -0.0458535291, 0.1701377928, 0.2722021341, -0.2661238909, 0.527148962, -0.0081692608, -0.2039595842, -0.2986087501, 0.1181668043, 0.2406753749, -0.1789260209, 0.3072324693, 0.1491334736, 0.1801616251, 0.23993285, 0.0652859583, -0.2452693582, 0.0456206948, -0.1946118921, -0.2512212694, -0.4587338567, -0.2272525132, -0.145361647, 0.2936919034, 0.3126304746, 0.2828494012, -0.0498392358, 0.335858196, -0.4065793753, -0.1149406731, -0.1531324089, 0.2728174329, 0.1524817497, 0.0128617268, -0.0067068259, 0.2280722708, 0.166223377, 0.2789080739, -0.0558059812, -0.3985134661, 0.0245180149, 0.0459399261, -0.1330241114, -0.0621522851, 0.0371135138, -0.021833742, -0.2458430678, -0.1073626876, 0.2516541779, 0.0131635768, 0.1318155676, 0.2092587948, 0.4427996576, 0.339192003, 0.1198220775, 0.1046172455, -0.1400850862, 0.0519429855, 0.0390865095, 0.2915997207, 0.0728552416, -0.0097596068, -0.0087770633, -0.2714516521, 0.6143186688, 0.0637841523, 0.0193377901, -0.393550247, -0.2791871428, 0.1281475574, 0.0886590555, 0.2924182117, 0.0575002804, -0.2814281583, 0.3145102859, 0.3561896384, 0.0374487638, 0.3104783893, 0.1691525728, -0.1325734258, 0.1291972846, 0.1397574544, -0.0616449676, 0.2524920702, 0.1008178741, 0.1690556258, 0.2947508395, -0.2797973454, 0.1288770288, 0.193778187, 0.088113144, 0.0643599853, 0.3061845601, 0.0950235352, 0.0919643268, 0.411839515, 0.1421422511, 0.5869657397, 0.1562698334, 0.1330234855, 0.0360657983, -0.4071055055, -0.3413546383, 0.2097714245, -0.3046946228, 0.1884252131, -0.0142173916, 0.2182092369, 0.1494464427, -0.189122051, -0.087864317, 0.3838887215, -0.465875715, -0.1196661144, -0.5270377398, -0.0618736073, 0.0470667258, -0.1525256336, 0.1422009617, 0.0003343242, -0.026842773, 0.0209394321, -0.0446055755, 0.0361098461, -0.2875400484, 0.2877539694, -0.0674867705, -0.1569442004, 0.0797995403, -0.0260499977, 0.1523936391, -0.0068780854, 0.2188947648, 0.3761071861, 0.3229936063, -0.19221434, -0.0940964222, 0.0517289601, -0.0628714561, -0.1619844586, 0.2549489439, -0.1922803372, -0.0053926767, 0.3815495074, 0.2739576995, -0.2499832511, -0.334929198, 0.0257080905, -0.0218389314, -0.0413480438, 0.4966604114, 0.1191577017, -0.1086807624, -0.2861168683, -0.0260958355, -0.4254946113, -0.0493841879, 0.5210593343, -0.4102796912, 0.1081940904, -0.1843962967, 0.1237969846, -0.2985061407, 0.424854666, 0.3058855534, 0.2850419581, -0.4672281146, 0.0159204006, -0.2836145759, 0.2286421359, -0.0501086339, 0.0008188674, -0.2460904419, 0.2427737564, -0.2073605359, 0.0642417893, -0.0658616349, -0.1411857307, 0.0898484215, 0.389062345, -0.3444703221, 0.0781765878, -0.307110846, -0.0271442123, 0.1391093582, -0.3164841533, 0.1617378145, 0.1141604483, 0.1574423462, -0.1564971954, 0.0271079484, 0.2952473462, -0.1897252053, 0.251013875, 0.2174009383, 0.3563930988, -0.2116018683, 0.4840890467, -0.0992440134, 0.0562532321, -0.3012339175, -0.1634410024, 0.1430548579, 0.1765763164, 0.0225725882, 0.0269493479, -0.2492115647, -0.0863267854, 0.0803803355, -0.1846031845, 0.0331374705, 0.0671217591, -0.058093112, 0.0357010625, 0.0681240037, 0.19037202, 0.2587809265, 0.2300124019, -0.422467649, -0.4245305359, 0.402363807, -0.3883863389, -0.3013539612, -0.3631494343, 0.2955273986, 0.0590146035, 0.0962254331, -0.1573040932, 0.0010297733, 0.4445217252, -0.0583702736, -0.0071651423, 0.377520591, 0.1706831902, 0.202989608, -0.1777066141, -0.1100154519, 0.1193486452, -0.0026774534, 0.0720623508, -0.3162927628 ]
https://github.com/huggingface/datasets/issues/822
datasets freezes
Pytorch is unable to convert strings to tensors unfortunately. You can use `set_format(type="torch")` on columns that can be converted to tensors, such as token ids. This makes me think that we should probably raise an error or at least a warning when one tries to create pytorch tensors out of text columns
Hi, I want to load these two datasets and convert them to Dataset format in torch and the code freezes for me, could you have a look please? thanks dataset1 = load_dataset("squad", split="train[:10]") dataset1 = dataset1.set_format(type='torch', columns=['context', 'answers', 'question']) dataset2 = load_dataset("imdb", split="train[:10]") dataset2 = dataset2.set_format(type="torch", columns=["text", "label"]) print(len(dataset1))
52
datasets freezes Hi, I want to load these two datasets and convert them to Dataset format in torch and the code freezes for me, could you have a look please? thanks dataset1 = load_dataset("squad", split="train[:10]") dataset1 = dataset1.set_format(type='torch', columns=['context', 'answers', 'question']) dataset2 = load_dataset("imdb", split="train[:10]") dataset2 = dataset2.set_format(type="torch", columns=["text", "label"]) print(len(dataset1)) Pytorch is unable to convert strings to tensors unfortunately. You can use `set_format(type="torch")` on columns that can be converted to tensors, such as token ids. This makes me think that we should probably raise an error or at least a warning when one tries to create pytorch tensors out of text columns
[ -0.1619094461, -0.3347921073, -0.0465798452, 0.5367453694, 0.3581035733, 0.2125210911, 0.5072590113, 0.3903237879, -0.0151282242, 0.120722048, -0.21651797, 0.2929007411, -0.1185356975, -0.1630847901, -0.1131298915, -0.5349529386, 0.115431197, -0.0951829329, -0.3404096663, 0.0990492329, 0.0500865988, 0.0638206974, -0.1515899301, -0.1478488147, -0.4358990192, 0.007512039, 0.0953072459, 0.0503919721, -0.1359757483, -0.067701973, 0.114544414, -0.071816802, 0.0865182877, 0.7834656239, -0.0001211927, 0.0531440116, 0.304533571, 0.1574760675, -0.1029471233, -0.1995556056, 0.3838465214, -0.1363198012, 0.1754235178, -0.2181678563, -0.1345921308, 0.0102507761, -0.2882254124, -0.695276022, 0.324441433, 0.4434759617, 0.0937087834, 0.5506081581, 0.042283155, 0.0736014619, 0.3115716279, -0.0100871464, -0.209313035, -0.1175047606, 0.3612827063, 0.1951309144, 0.1336319447, 0.2532553375, -0.4077237546, -0.0682554021, 0.0949571654, 0.0732888654, -0.6647976041, -0.4644118845, 0.0864162892, 0.3095062971, 0.5834819078, -0.4591074884, -0.1308527291, -0.1118453071, 0.0003553951, 0.0143290116, 0.0995947495, 0.1460793912, -0.1873877347, -0.0970857441, -0.3416730464, -0.1862387955, -0.2447265834, 0.2388883233, -0.1802269667, -0.1747248918, 0.003715921, 0.1924472302, 0.135871008, -0.0270290021, 0.4467359185, -0.3042337, 0.1853562146, -0.0435120501, -0.3819196224, -0.0245088767, -0.5991337299, -0.3232551515, -0.0219159815, -0.0832413062, -0.0257246755, 0.1993784457, 0.0594955496, 0.1835237145, -0.0041053635, 0.2055944651, 0.0165230259, 0.3655208051, 0.1646525413, -0.471393913, -0.083071664, 0.1285179853, -0.0653171465, -0.5972931385, -0.0566869937, -0.1479662061, 0.1452047974, -0.2821495235, -0.2286583334, 0.0399438515, -0.2544413209, 0.0160608049, 0.1840372533, 0.3908994794, -0.2808790803, 0.2990474105, 0.3615897, 0.1452337652, -0.2739693522, -0.0120231826, -0.0326121263, 0.1297482848, -0.1249794513, -0.0447370671, 0.2628991306, -0.4223602414, -0.0743071884, 0.3290853202, 0.1034981683, 0.1094254702, 0.2540253401, -0.2438571304, 0.2168104202, 0.0404199809, 0.0672835857, 0.2015821785, 0.0806760639, 0.3792656958, -0.0123766111, 0.3443979919, -0.2613654733, 0.1523283124, -0.2981989086, 0.0603748299, 0.0591150671, 0.0105314599, 0.0715912804, 0.1019401103, 0.3803877234, -0.1368480623, 0.2131643444, -0.2690627873, -0.1227548346, -0.0398496985, 0.1607138216, 0.365642935, -0.2027439922, 0.0806825534, 0.5047174692, 0.004964293, -0.0276199654, 0.3383370936, -0.1661797464, -0.0340988263, 0.0272392929, -0.1163116395, 0.3451949656, -0.279283464, 0.0360598005, 0.0829469189, -0.06111224, -0.0769845918, 0.1463357657, 0.1638707966, 0.1401913166, -0.0225375984, 0.277490586, 0.1859399974, -0.1286250949, 0.0115321241, -0.1566432565, -0.0132690091, 0.5077595711, 0.0647813231, 0.0822657347, -0.0090033682, -0.2542731166, 0.2098658681, -0.062928021, -0.188198179, 0.0560245998, 0.403721422, -0.3440682292, 0.0713157803, 0.0562158599, -0.4236243665, -0.4435556233, 0.0634103864, 0.2090817094, 0.1549617499, 0.1222556308, -0.0100055812, -0.0060080681, -0.1404087543, 0.0333746709, 0.247448504, -0.0741907656, -0.3382629752, 0.0578816719, 0.005678019, -0.0865047574, 0.3033381402, -0.1110071689, 0.2547246814, -0.2904975414, 0.303173095, -0.0561940186, -0.320797354, -0.0883349553, 0.2030962557, 0.099912703, -0.070132792, -0.090361692, 0.2229853421, -0.0041753626, 0.0624922588, -0.4371134341, -0.1511401385, 0.2752563059, -0.105728738, 0.3364077508, 0.0070381379, -0.0124844704, -0.1347412765, -0.114441365, 0.1100075394, -0.1437337995, 0.2196328789, -0.0382271409, 0.0104150893, -0.2166302353, 0.108743228, -0.1233974621, 0.0373593271, 0.3091330826, -0.1157442406, 0.2992345095, 0.0862630904, -0.6952055097, -0.0541115887, 0.3723339438, -0.0515539199, 0.0357352942, 0.0595980324, -0.2202148288, 0.1280036867, 0.17813842, -0.3011560142, 0.2373429537, 0.1993240863, 0.0374264531, -0.0060504661, -0.3070227206, -0.1291005611, 0.2157093585, 0.1472149342, 0.0153890606, 0.0693672523, 0.0225958768, -0.1770962775, -0.0239742044, 0.1697226614, 0.1075287014, 0.0790484399, -0.3709748387, 0.1485444456, -0.0851235539, 0.0055117463, -0.2897945344, -0.0226648822, -0.2290742993, -0.2103304267, -0.0848406181, 0.3650321662, 0.2018144876, 0.0982012302, 0.1191341728, -0.200210005, 0.2110096961, -0.164093405, -0.1957548559, -0.2156165987, -0.1579664499, -0.0199520253, 0.4141775966, -0.0392510034, 0.2661203146, -0.0810977295, 0.1195301339, -0.3094357848, -0.1037665084, 0.1392343789, -0.258954227, -0.126508072, -0.1212611645, 0.296669215, -0.0175366942, -0.0650345162, 0.1117538437, 0.0458010957, -0.044758305, 0.2886177003, 0.0960974023, -0.035013523, -0.0744959712, -0.5995061398, -0.2112915516, -0.1445086598, -0.0621449985, -0.3863686919, -0.0292695276, -0.1203255951, 0.4604272246, 0.2548905015, 0.0141044185, 0.1126453802, -0.0298506226, -0.2954285145, 0.5208233595, -0.2749047577, -0.4628772736, -0.0779242739, 0.2729066312, -0.0477546938, 0.3154071867, -0.1507889777, 0.0254722238, -0.4094622731, 0.0454136357, -0.1422855854, -0.0549072027, 0.4183911681, 0.1074014828, 0.0682938993, -0.084711507, 0.0460313596, -0.0318508334, -0.1916356683, 0.097107701, -0.0728925243, 0.370744586, 0.016202556, 0.4566968083, -0.1325985193, -0.4772811532, 0.1253284514, -0.1024670899, 0.3399643004, -0.0632665753, -0.4580648243, 0.0325970352, -0.1638096273, 0.0203836504, -0.1377484202, -0.0733870789, -0.1564054638, -0.2065339833, 0.2494828105, 0.0467857681, -0.1162744015, 0.2099995166, -0.5037888288, 0.0899971053, -0.1194488779, 0.3503579497, -0.2200540453, -0.244611457, 0.0894978344, -0.0262190364, 0.0932111293, 0.045253437, -0.5232169032, -0.0482227169, -0.3011492193, 0.3275443912, 0.2851086259, 0.3945769072, -0.1878954172, 0.0880642012, 0.140541181, -0.012141088, 0.5735448003, 0.0773105994, -0.330609858, 0.0714651346, -0.065498054, -0.6979700327, 0.1823858768, -0.1450954974, 0.1250780523, 0.0778573528, 0.3985332847, -0.2446838468, -0.51456815, 0.1661031842, 0.551315546, -0.0679396167, -0.1278380305, -0.1222826764, -0.0074195419, -0.3731988966, -0.0467731915, 0.3043911457, 0.1292805821, -0.3400326967, -0.3042582572, -0.1497846395, 0.071758084, 0.4278433323, -0.0078841541, 0.1984149814, -0.1825615019, 0.3117375672, 0.1805597991, 0.3363941014, 0.2041882128, 0.1429824233, -0.2641715407, 0.0028303501, 0.1976445764, 0.1578179449, 0.314309895, 0.1388795823, -0.0275353882, 0.0444599912, -0.322571665, 0.1053727865, -0.1478791237, 0.3770980239, 0.4117916822, 0.4101706445, -0.5693949461, -0.458196193, 0.1601795554, 0.2949399948, 0.1253012717, 0.5142191052, -0.1398285776, -0.1602347344, 0.2174321413, 0.185822621, 0.9097231627, -0.5160059929, 0.3435385525, 0.1018016264, -0.1608802378, 0.392446816, -0.4085099101, 0.0474885628, -0.4014603794, -0.0857330337, -0.0788029209, -0.3112158775, 0.3145549893, -0.1096249968, -0.2194160968, 0.1111756787, -0.2852610648, 0.3628263175, -0.1312674433, 0.4157391787, -0.2564931214, -0.3052506447, 0.0096840728, 0.1124137789, -0.1420693249, 0.0391996764, 0.1307407469, 0.0171863362, -0.2372529656, 0.0918159783, -0.2067212611, 0.1955277026, -0.3046236038, 0.0834035128, -0.2852321267, -0.6679525971, 0.2832603455, 0.8073209524, 0.3981665373, 0.0669004694, -0.0834552571, 0.0971854851, -0.1695284992, -0.2504490614, 0.0269058328, -0.3444747627, 0.2013791502, 0.0798744708, -0.1297060549, 0.2350298017, 0.0575709045, -0.1077376828, -0.0895993188, -0.0086019738, 0.2334492207, -0.4762617052, -0.2683624923, 0.0145069156, 0.0258034803, -0.085154295, 0.0587985776, 0.0282170009, 0.0383641459, 0.1562392563, -0.0542333201, -0.1352994144, 0.0846428052, 0.6563453078, -0.0061266799, -0.0961021036, 0.5771403313, 0.621326983, -0.2204684317, -0.2095317841, 0.2048730552, 0.4002887309, -0.3191521764, 0.0689038783, -0.1601970494, -0.1529140621, -0.1304021478, 0.0528423302, -0.1703875065, -0.1908479929, -0.0382954068, -0.0024241698, -0.5649747252, 0.0948407128, 0.2658153474, 0.4143568873, 0.1766461283, 0.0676174015, -0.2299852669, -0.1004003957, -0.1700628251, 0.1461406797, 0.018630879, 0.1811940819, 0.169264093, -0.1351486146, 0.1340314895, -0.4327133596, -0.0117484126, 0.269308418, 0.1207038313, -0.1611533463, 0.0037204232, 0.0609982461, -0.1493924111, -0.2178908587, -0.2222034633, -0.3654769659, 0.1486221999, -0.1958626807, 0.2625584602, 0.5388063788, -0.1317016333, 0.0577051491, -0.1244098619, 0.2113127559, -0.0680031031, 0.0010778371, -0.1793117821, 0.0337106436, 0.0958347842, 0.097370103, 0.3113963604, -0.0363970175, -0.3601103425, 0.1446571499, 0.4241941571, -0.0860699564, 0.0985024944, -0.2135941833, 0.0952601358, -0.0058070235, 0.1979546994, 0.3417717218, -0.1832291186, -0.0298401713, 0.2780559361, 0.0876778662, 0.0256877262, -0.0857885182, -0.3014292419, -0.1910788417, -0.0677775443, 0.0360643007, -0.0907770842, 0.4408112466, -0.1841949224, 0.2449501753, 0.2201441675, -0.0537630953, 0.1670486629, 0.369019419, 0.1142241955, -0.0323903523, 0.2292592674, 0.1114539802, -0.0382725336, -0.0421531945, 0.1451996863, 0.6161940098, 0.3098065853, 0.2715212107, 0.3532733023, 0.0654801279, -0.2112427056, -0.0687883571, 0.0393968299, -0.0224071536, -0.0484440401, 0.4712450504, -0.1950104386, -0.4782597721, -0.0793802738, 0.1935922056, -0.2054058462, -0.0167617518, -0.1558363587, -0.16689834, 0.1748678535, -0.0170219373, -0.0580655597, -0.0894873068, 0.3186839521, 0.3166031241, -0.0515856519, -0.0481538437, 0.1059056222, 0.2006660998, -0.0935685113, 0.030572705, 0.1262200624, 0.134373039, -0.1311129332, 0.0214787535, 0.210525021, 0.3595520854, 0.197403267, -0.3775436878, 0.1038364694, 0.0788814276, -0.1375027299, 0.4146791399, 0.2447693944, -0.0010707183, 0.003532968, 0.320664227, 0.1115698367, -0.1362183243, -0.1674806476, -0.0720981956, 0.0024067874, -0.2286161184, 0.3632538319, -0.1428265423, -0.2521868944, -0.2247456908, -0.2958548367, -0.3985683918, -0.0584641248, 0.6664863229, -0.133000955, -0.1282686144, -0.0228910316, 0.0111747412, 0.2890183032, 0.5228797197, 0.0561600812, 0.2366767973, -0.3511780798, 0.0257966761, -0.2219410092, -0.0386843979, -0.0867252573, 0.0581285544, -0.0493376553, 0.0415672362, 0.1033098549, 0.3067890108, 0.0808420405, -0.087951839, 0.1135650724, 0.2893974781, -0.3699812591, -0.0638180971, -0.022777766, 0.1017899737, 0.134522289, -0.3856549263, 0.2077292502, 0.1359436661, -0.0244489834, -0.3676210344, 0.1786264181, 0.1885700971, -0.0352406465, 0.2021134645, -0.0608663075, 0.6809902787, 0.1546272635, 0.0014245462, 0.1001372337, -0.2080874145, -0.0296401102, 0.0288343988, 0.0372902974, 0.2259256691, -0.1935018748, -0.2897949517, -0.2599355876, 0.4156821072, -0.0505482145, -0.0398920625, -0.13451235, 0.1093740463, 0.0320103504, 0.1095594913, 0.2725984752, 0.5703676343, 0.0921330154, 0.4067798555, -0.3857575357, -0.164522782, 0.5223590732, -0.2746142745, -0.356043458, -0.0018266136, -0.0017385469, 0.5570203662, 0.0881888047, -0.7385704517, -0.091549851, -0.0065584765, -0.2329977751, 0.0450816415, 0.2087853849, 0.1827597022, 0.1478168219, -0.1287045628, 0.3528146446, 0.0756198168, -0.0020415534, -0.2567730248, -0.244645685 ]
https://github.com/huggingface/datasets/issues/816
[Caching] Dill globalvars() output order is not deterministic and can cause cache issues.
To show the issue: ``` python -c "from datasets.fingerprint import Hasher; a=[]; func = lambda : len(a); print(Hasher.hash(func))" ``` doesn't always return the same ouput since `globs` is a dictionary with "a" and "len" as keys but sometimes not in the same order
Dill uses `dill.detect.globalvars` to get the globals used by a function in a recursive dump. `globalvars` returns a dictionary of all the globals that a dumped function needs. However the order of the keys in this dict is not deterministic and can cause caching issues. To fix that one could register an implementation of dill's `save_function` in the `datasets` pickler that sorts the globals keys before dumping a function.
43
[Caching] Dill globalvars() output order is not deterministic and can cause cache issues. Dill uses `dill.detect.globalvars` to get the globals used by a function in a recursive dump. `globalvars` returns a dictionary of all the globals that a dumped function needs. However the order of the keys in this dict is not deterministic and can cause caching issues. To fix that one could register an implementation of dill's `save_function` in the `datasets` pickler that sorts the globals keys before dumping a function. To show the issue: ``` python -c "from datasets.fingerprint import Hasher; a=[]; func = lambda : len(a); print(Hasher.hash(func))" ``` doesn't always return the same ouput since `globs` is a dictionary with "a" and "len" as keys but sometimes not in the same order
[ -0.0819264129, -0.0495191179, -0.0879311562, 0.1216145232, 0.0892917588, -0.1563625038, 0.1671693176, 0.243326202, -0.0996845365, 0.0803644955, -0.0827870071, 0.2674162686, -0.1859902591, -0.268915683, 0.0077192858, 0.3598431051, -0.0797576532, 0.0291420743, -0.437990427, -0.2746311724, -0.2619419396, -0.0908106491, -0.1203611568, -0.193239212, -0.4216747582, 0.0018894058, -0.0498692952, 0.246716693, 0.0397864431, -0.34216699, -0.1833331287, 0.1572592556, 0.0308245383, 0.1896596551, -0.0001114966, -0.1850806028, 0.2640138865, -0.0081460401, -0.272657901, 0.0902213231, 0.0154269217, 0.1384182125, -0.0409754552, -0.2122769952, 0.1143219993, -0.1681279391, 0.0286573768, -0.6539846659, 0.032668516, 0.0999312028, 0.277249068, 0.1996290088, -0.1389129609, 0.136650607, 0.3288568556, -0.0815244243, -0.0022260263, 0.2885015607, 0.010408828, -0.0936942771, -0.3071180284, 0.2813214958, -0.1913656443, 0.0808456391, 0.3518432081, 0.1796075553, 0.0172836632, 0.0677474588, 0.1912312955, 0.0597436018, 0.3375323713, -0.5688880086, -0.4461807013, -0.2534596026, -0.1146053001, -0.076315105, 0.1631677896, -0.1536449492, 0.1536260247, 0.1698358357, -0.1345393509, 0.099155046, 0.2495269626, 0.0985691696, -0.009267767, 0.1577010155, 0.0677675754, -0.0419674516, 0.0160903372, -0.1232831329, 0.2864696085, -0.2080320716, 0.108558327, -0.0559338816, 0.0168909002, -0.0224732272, 0.3788663447, 0.1954948902, 0.1477340162, 0.0638350844, 0.0911782533, 0.0182209816, 0.1135689244, 0.0352341346, 0.128769353, 0.2473442107, 0.152080521, 0.3575176299, 0.3471330404, -0.5027479529, -0.3569696546, 0.1133539528, 0.2867191136, -0.0380505957, 0.6074769497, 0.1303845793, -0.0743750408, -0.0495637357, -0.0314396285, 0.3266496956, -0.0200539231, -0.2020178139, 0.2717581689, 0.466455996, -0.3419176638, 0.1982018203, -0.0471673086, -0.2786377072, -0.1859292984, 0.3082937002, -0.3718247116, -0.1541635096, -0.1405808777, 0.2501674294, 0.0095403548, -0.1329055876, 0.1580966711, 0.1285110414, 0.298381716, 0.1937912256, 0.0873247683, -0.3041603565, 0.3930502236, 0.1353821903, -0.095330596, 0.2159695476, 0.0472165458, -0.0636447296, -0.4521884918, 0.0486171804, -0.015986165, -0.2103939503, -0.0230899118, 0.2847321033, -0.2386861742, 0.0968032777, 0.1912360042, -0.2342095375, 0.2490409911, -0.1804465055, -0.0749653727, -0.32611835, -0.3251351416, -0.4191174209, 0.0944068506, 0.4102350473, -0.3341308236, -0.0940671116, -0.1776915491, 0.2597626746, 0.1473858804, 0.1098358259, -0.0282691419, -0.0454404242, -0.3166434169, 0.2087912858, 0.0650048554, -0.3961066008, -0.5688530803, 0.0614080429, -0.1132694036, 0.2327505797, -0.0886430293, 0.1138272062, 0.4595197737, -0.085163027, 0.1303599179, 0.2083605528, 0.2607238591, 0.2012594342, -0.3684203625, -0.0376232155, 0.0532563627, -0.0696239695, -0.0592402853, -0.0664017648, 0.1056603789, -0.1016229093, 0.080198966, -0.0615180582, 0.0204896852, 0.1380242705, 0.3963465691, 0.0872471556, 0.2272404581, -0.0892871916, -0.6030642986, 0.3717261255, -0.0349174887, -0.4906654954, -0.2042224705, -0.3759242594, 0.1311759353, 0.1593646407, -0.0334557891, 0.0759954005, 0.0885329172, 0.3169269264, 0.26586321, 0.2659107149, 0.0573768727, 0.1314193308, -0.1487330496, -0.2696958184, 0.0122145824, 0.0469744205, -0.1958999783, -0.256333679, 0.0352157392, 0.0014543689, 0.0427271873, 0.0691587776, -0.1159347296, 0.2138012946, 0.1877533197, -0.0765467957, 0.0036099199, 0.3865776062, -0.1713907719, -0.0223201551, 0.2390534878, 0.1847986281, 0.0641398877, -0.1483223587, -0.1509419978, 0.6806604862, 0.1176839098, 0.0892544165, -0.0601301156, -0.157553643, -0.0774335116, 0.0911976025, 0.0173605084, -0.4390445054, 0.0523101874, -0.1941666305, 0.636901319, 0.3142586052, -0.2441955954, 0.4189311564, 0.6483616829, 0.0400009602, 0.2394369841, 0.1224157512, 0.0175778605, -0.2655006051, 0.1121724397, -0.1683272868, 0.4186325967, 0.2538229227, 0.1602878571, -0.0879488066, 0.0060970956, -0.1408474147, 0.0432095826, -0.2433657646, -0.057413917, 0.2297235429, 0.1816812754, -0.0787309334, -0.1304651797, 0.0715684891, -0.0922230184, 0.1561158448, -0.1333822012, 0.087297827, -0.4846898019, 0.1538638622, 0.0726688355, -0.1994603723, -0.266847223, -0.2821632326, 0.1082779467, 0.0481425673, -0.1991004795, 0.1922542751, -0.2088036388, 0.144929871, 0.2055567652, -0.3224638104, -0.2208682597, -0.1914168596, -0.2088926286, 0.0058678649, 0.1395239085, -0.158091411, 0.3791800141, 0.0502020232, -0.1432885826, -0.2470651269, -0.19588992, -0.0793745965, 0.1651478261, 0.0886353999, 0.0485242531, -0.208003521, -0.291845113, -0.3191621304, 0.1711026728, -0.3942878246, -0.3049256206, -0.26809147, 0.1064395085, 0.0693447739, -0.0969774649, -0.0972776413, -0.1017939895, -0.2493076026, -0.1194635481, 0.0802560151, 0.2488240749, -0.0363950133, -0.1088805571, -0.0146398535, 0.0594104305, 0.1286457479, -0.4220732749, -0.3723148406, 0.365473181, -0.240479961, -0.2015719414, -0.2894234657, -0.2820838392, -0.2084702998, 0.1274229884, -0.471321553, -0.4080055654, -0.2187339813, 0.3893479109, 0.1095757112, 0.005151148, 0.1764834374, -0.039925538, -0.0563616268, -0.2230709642, -0.2313830554, 0.0313622728, -0.0464048199, 0.1364599913, 0.0262252092, -0.005842654, 0.0798952729, 0.8998240829, -0.0113260318, -0.3779032826, 0.0146305896, 0.17561014, 0.3247359693, -0.2775585651, -0.2364738286, 0.1491017938, 0.081269443, 0.1021386683, 0.3682431877, -0.0651275739, -0.2316618115, 0.0626739338, 0.2769613862, -0.4035155773, -0.2864977717, 0.1481480002, -0.311734587, -0.126222834, 0.1735556573, 0.3351280391, -0.293438822, 0.0429753736, 0.0211325698, -0.1494353116, 0.282630682, -0.0590807684, -0.0108065475, 0.2990711927, -0.3614233434, 0.3434770405, 0.2358407974, 0.1108583063, 0.088239491, -0.4010433257, 0.1434253454, -0.1349484921, 0.5495227575, -0.1641123593, 0.1260449737, 0.1582791954, -0.4842355847, -0.0956234932, -0.030400157, 0.1184854582, 0.1968015432, 0.2551358938, 0.0388440341, -0.3402620256, 0.0498506352, -0.0500081554, 0.0486908145, -0.0687910616, -0.3214800954, -0.208147347, -0.0372431614, 0.0294931158, 0.0547012202, -0.2114488482, 0.1144881472, -0.1402609795, -0.0664144531, -0.2791725397, -0.211103946, 0.1920108795, 0.0755911618, 0.3900792599, -0.1225338876, 0.414575249, 0.2395907044, 0.4274956286, 0.0329536051, 0.1387427151, -0.3923276663, -0.1195821017, 0.1017701477, 0.0948024914, -0.1582088619, 0.3111714721, -0.0407915637, -0.02220851, 0.0554258823, 0.0218420606, -0.1187235489, 0.1140558794, 0.0108845932, 0.1072778553, -0.3166209757, -0.4029179215, 0.2768455446, 0.2825392783, -0.1167238802, 0.5915083289, -0.1340254396, -0.1336925626, 0.1936593205, 0.4005237818, 1.1834961176, -0.2322785705, 0.2383722067, 0.0206898991, 0.178690657, 0.0663913041, 0.2275195569, -0.0020096884, -0.4197834432, -0.2278658897, 0.145051986, -0.1376360208, -0.0428064167, -0.1463010907, -0.2276195884, 0.0268213712, -0.3041323125, 0.3562986553, -0.1215878278, 0.2969777882, -0.0509466045, -0.0515766293, 0.3112765849, 0.2058666795, 0.1518612355, 0.1217872202, -0.0988249108, 0.1393095404, -0.1224691719, -0.1717008352, 0.00699942, -0.0000602927, -0.0879221931, 0.4257005453, 0.0290254578, -0.3966644108, -0.420356214, 0.4777069986, 0.1334200799, 0.2134620696, 0.0355222598, 0.1281349957, 0.0422879755, 0.3417688906, 0.0404708348, -0.2964971662, 0.137790218, 0.1243945435, -0.0929035544, -0.012252613, 0.2514989078, -0.4036679566, -0.2988369763, 0.4665336311, -0.1979627907, -0.0991269127, -0.0215113647, 0.0649686456, -0.1109245792, -0.1502812952, 0.1958770603, 0.3595413864, -0.0462893397, 0.5922560096, -0.2799728811, -0.155038923, -0.2139160931, 0.6729286313, 0.2095047683, 0.3016415536, 0.0368693918, 0.0176521428, -0.4765996635, -0.1334561855, -0.1271630526, -0.4220750332, 0.1366966814, 0.429438889, -0.0695432499, -0.0391995497, -0.1124985442, -0.0852751508, -0.0871281847, 0.1773779243, -0.3132677376, -0.0296302233, -0.1486731023, -0.0450391397, -0.1579332501, 0.2434315979, -0.0159739442, 0.1389188319, -0.3936752677, 0.333286345, -0.4051204026, -0.1230917722, -0.2080710828, 0.0440109, -0.1888352633, -0.2565600276, 0.1808723509, -0.1447148323, 0.2279925942, 0.2750187814, -0.1062993333, -0.2835399806, -0.0280254688, 0.091983974, -0.0844927728, 0.1104620695, -0.0389813408, -0.0929507241, -0.0075981943, -0.397049278, 0.2798284292, 0.5578256845, 0.0309448689, 0.0972243622, 0.0877611712, -0.1142402217, 0.3257341683, 0.2858261466, -0.2543870509, 0.1293895245, -0.2279167622, 0.3314229846, -0.0536840633, -0.0829506963, 0.32159096, 0.0306041725, -0.0861040428, -0.1676228791, 0.2974963784, 0.0400652178, -0.2399725616, 0.2387814522, 0.4261130393, 0.1939097941, -0.0205078628, -0.4133689106, 0.3929364681, 0.2304688096, -0.180440262, -0.3763194382, 0.0591885224, 0.0784870982, 0.106081672, 0.1327668428, -0.0895824134, -0.014472262, -0.0005607635, -0.0446505696, 0.2314900309, -0.1061654016, 0.1497290134, 0.1725639403, 0.3157944977, 0.0230834261, 0.46079126, 0.1874254048, 0.1809663773, 0.3305389583, -0.1241099983, 0.1913283765, -0.1820960492, 0.0102817314, 0.008898586, -0.5474197865, 0.4308395684, 0.3629768789, -0.1097009107, 0.2956852615, 0.0735184848, 0.1832120121, 0.0164284948, 0.1066218838, -0.1848501414, 0.1507456601, -0.2467527688, -0.0344880074, 0.1113544255, -0.0215221532, 0.1639779657, 0.0704096556, -0.088981241, -0.2862014771, 0.3403051496, 0.1530381143, -0.0340164863, -0.2817851901, 0.2028590888, -0.3229224384, 0.2571032047, -0.1704562753, -0.0473236069, 0.1258999854, 0.1614994705, -0.1658187956, 0.1366127133, 0.2450381964, 0.5118284822, -0.0608608462, 0.1065677628, -0.0077794557, -0.0586206391, -0.4952123463, 0.3433312178, -0.3125852644, -0.3157382309, 0.3530359566, 0.2092961967, -0.2533221245, 0.0642438009, 0.0696773306, 0.2718549073, 0.2033101916, 0.1590229124, 0.0150680207, 0.1130046472, 0.0240572523, 0.2794401646, -0.2663088441, -0.2240267843, 0.3107809722, 0.0132213049, 0.1472039968, -0.2555629611, 0.089076899, -0.1660212278, 0.3152878881, 0.3831397593, 0.3086491227, -0.1163454279, 0.0531300828, -0.3521824181, 0.3837220669, -0.138605997, -0.0015884686, -0.0800755844, 0.4194470048, -0.1131014377, -0.1083755195, 0.0712576061, 0.3192204535, -0.0017822594, 0.3947656453, -0.4328176975, 0.137163043, -0.5196850896, -0.2913021147, 0.1394790262, -0.5391645432, 0.1958773136, -0.0349058323, 0.2048131973, -0.2840934992, 0.1139310375, -0.0007826947, 0.1637153625, 0.50478971, 0.3265343308, 0.2440894842, -0.1214169636, 0.0880951658, -0.040559791, -0.1004200801, -0.0561726801, -0.2300751209, 0.0645585358, 0.1127056405, -0.3109337687, -0.3468681276, -0.1534581035, 0.6476137042, 0.0630399734, -0.0504760072, 0.0664480329, -0.00191501, -0.2814871669, 0.0068398318, -0.1915135682, 0.3433916271, 0.0192117933, 0.1441070139, -0.202485323, -0.3411549926, 0.6150746346, -0.0810098946, 0.0345463417, -0.244335115, 0.2873255312, 0.2199003994, -0.1681070775, -0.2365332842, -0.1594693661, 0.2943348289, 0.1065885797, -0.1817380041, 0.0841093808, 0.0291776434, 0.2167297304, -0.1901468635, -0.0664686412, -0.0346954875, -0.2794096172, 0.1684292555, -0.3506391346 ]
https://github.com/huggingface/datasets/issues/815
Is dataset iterative or not?
Hello ! Could you give more details ? If you mean iter through one dataset then yes, `Dataset` object does implement the `__iter__` method so you can use ```python for example in dataset: # do something ``` If you want to iter through several datasets you can first concatenate them ```python from datasets import concatenate_datasets new_dataset = concatenate_datasets([dataset1, dataset2]) ``` Let me know if this helps !
Hi I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not? could you provide me with example how I can use datasets as iterative datasets? thanks
67
Is dataset iterative or not? Hi I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not? could you provide me with example how I can use datasets as iterative datasets? thanks Hello ! Could you give more details ? If you mean iter through one dataset then yes, `Dataset` object does implement the `__iter__` method so you can use ```python for example in dataset: # do something ``` If you want to iter through several datasets you can first concatenate them ```python from datasets import concatenate_datasets new_dataset = concatenate_datasets([dataset1, dataset2]) ``` Let me know if this helps !
[ -0.2620127797, -0.2916283607, -0.1804152727, 0.1139709949, 0.0606510378, -0.0265372507, 0.2819752693, 0.168773964, 0.1109018102, 0.0845515579, 0.1554596275, 0.2481859177, -0.3554363251, 0.3489526808, 0.1711000055, -0.0656194091, 0.0205350388, 0.136970669, -0.6233145595, -0.0821494386, 0.0825395137, -0.1274392903, -0.2666275501, -0.174128592, 0.0523189604, -0.3682794273, -0.3957519531, -0.142244339, -0.2242217213, -0.3630470335, 0.2143724561, 0.2408522815, 0.406643182, 0.554397881, -0.000103148, -0.1346857697, 0.1404355019, -0.0824473575, -0.17236045, -0.2457790673, -0.1541205049, -0.2673062682, 0.0849709511, -0.4197582006, -0.032718014, -0.1310339421, 0.0873623416, -0.3289756775, 0.2696439624, 0.1327248067, 0.2795182168, -0.2198544592, 0.1302628666, -0.0211494528, -0.0317635983, 0.0726192817, -0.0583844334, 0.2205330282, 0.1717946976, 0.1565462798, 0.1211118177, 0.0287262052, 0.1655882001, -0.0035967091, 0.3876419067, -0.0965653285, -0.0442575067, -0.4276585579, -0.1730997562, 0.0660025403, 0.8125040531, -0.4412543774, -0.3938426375, 0.0490859151, 0.0430768095, -0.5168247819, -0.1527065784, 0.1491913646, 0.0641433746, 0.0586710982, -0.134823665, -0.262147963, -0.2698768675, 0.1240681857, -0.1202693433, 0.1766415387, -0.139618203, 0.0977383777, 0.1554127336, -0.1787712723, 0.3191452026, -0.0058360901, 0.1843648106, 0.2849905789, -0.5635162592, -0.3246941566, 0.0088890754, 0.3077014089, 0.3426325619, 0.3845374584, 0.0610333793, -0.0531119294, -0.1638742685, 0.2153865993, 0.5052186251, -0.0575833619, -0.0967659131, 0.0773620829, 0.1371307671, -0.0746228173, -0.1787652373, -0.0850114077, -0.2036227137, -0.2351185381, 0.1354382485, -0.1673398912, -0.0108034797, -0.0898150206, -0.0006080978, -0.2141323388, -0.2479064614, -0.2665742338, 0.1642466784, 0.2358460277, -0.2475820035, 0.1832308173, -0.2718720436, -0.1247226819, 0.0381813049, 0.252224654, -0.1004244834, 0.4507000744, -0.3770988584, 0.0321815014, -0.0641271845, -0.3635902703, 0.0666290298, 0.0946306661, 0.1086148173, -0.0891536176, 0.1355139613, -0.2728854418, 0.3756601214, -0.0038801031, -0.0490062907, -0.0022548356, -0.1385651976, 0.0565220937, -0.4262948334, 0.0191202983, -0.3938418627, -0.0465499982, -0.0372905955, 0.2154171467, -0.1831132323, -0.2176531255, 0.0798006728, 0.153494969, 0.0734748393, -0.1123549715, 0.0158818252, -0.1077262536, -0.0338813923, -0.2993711531, 0.088334322, 0.1641408801, -0.3570517004, 0.0776652545, 0.0804292038, 0.0491956882, 0.1362267882, 0.2218891084, -0.2568960488, 0.2136597186, -0.2126914263, -0.0707971007, 0.5765588284, -0.2613777816, -0.1435528398, 0.2921445668, 0.0746691152, -0.0027989009, 0.1206455827, 0.199435398, -0.052405633, -0.0169342887, -0.168678984, 0.2380018681, -0.0114635592, -0.1006745473, -0.005255199, 0.1009077206, 0.1932469904, 0.0401522145, 0.08938694, 0.2351980805, 0.0582369976, 0.112763837, 0.4554217756, -0.2984416485, 0.1082941666, 0.2104293108, 0.3090746701, 0.1149000376, 0.1462789327, -0.367988795, 0.1484365165, 0.0986364782, 0.2785969973, 0.0520480238, 0.2340696305, -0.0693481639, -0.0442873202, 0.0764070973, -0.2159166485, -0.0578870736, 0.1884935647, 0.1673410982, 0.1742745191, -0.1189608276, -0.5899413824, 0.218558684, -0.2163225114, -0.1184478551, -0.5084573627, 0.214731887, 0.1542231292, -0.0108167641, 0.0965032503, 0.1169574112, -0.184694767, -0.4343788624, 0.2691547573, 0.2770812809, 0.0440998264, -0.0713123754, 0.0792737976, 0.3585068583, 0.2771754265, -0.1215386465, 0.0665500239, -0.1913223714, 0.3170199692, -0.0304637533, 0.2445868999, 0.4754382074, -0.1599056423, 0.1892335415, 0.4515469074, -0.1398741603, 0.0697890222, -0.0783414021, -0.3781237006, 0.1251234114, -0.1108884141, -0.164718166, 0.432398051, -0.1913582981, -0.4387001395, -0.2600630224, 0.4845892191, -0.001040363, -0.0046966602, 0.0654750392, -0.0733864382, 0.0072840611, -0.0527890734, 0.1374270469, 0.3874975145, 0.0551786013, 0.2038332224, 0.0640798509, 0.0119078839, 0.1259279698, 0.153778851, 0.0687424615, 0.3130619526, -0.0194037221, 0.0347606055, 0.0564906821, -0.1635874957, -0.3934365213, -0.0763190091, 0.1618540734, -0.0211356934, 0.3687207997, -0.3297152221, -0.3494106233, -0.39887169, -0.2384471446, 0.1140254885, 0.0361568108, -0.2951516807, -0.0410355665, 0.3395087123, 0.1355223954, 0.1492673159, 0.1712170243, 0.0856719241, 0.0247139651, 0.0559495129, -0.0249675773, -0.0153803518, 0.1965170354, 0.274266243, -0.1589588225, 0.5873373747, 0.0007300475, -0.0804168135, -0.3680337965, -0.1861909628, 0.1703967154, -0.0128434207, 0.0351399779, 0.2513341606, -0.0045821299, -0.0489992239, -0.0918228403, 0.0235354621, -0.3367697597, 0.172947675, -0.2204842567, -0.1017428711, 0.1009225771, 0.0909779593, -0.2924439311, -0.5083231926, -0.2475089133, 0.242956087, 0.4355327189, 0.2685111761, 0.1604333967, 0.0689341947, 0.2123544961, 0.1988351792, 0.0773471445, 0.0226622578, -0.2997837067, 0.1812628806, -0.3456686735, -0.2615365088, -0.0005994111, -0.0124733411, 0.4389668703, 0.1449293047, -0.2703377903, -0.1131627038, 0.0078621218, -0.016493652, 0.0693446174, 0.504105866, 0.1270898432, -0.2268274724, -0.0835566446, -0.0664390549, 0.0531285144, -0.066472128, -0.1430537254, 0.2096245289, 0.4548496604, 0.3592883945, -0.0460020415, 0.3433164954, 0.2341692001, -0.4142980278, 0.358722657, -0.313896656, -0.1621470153, -0.0567745082, -0.2992812097, 0.0955499709, -0.3289946318, -0.2866767347, 0.0765292645, -0.1328621358, -0.3404944837, -0.3377615809, 0.1142513081, 0.01449659, -0.0170972981, -0.0081660757, -0.3336505294, 0.2520326376, -0.2462821752, -0.1816343367, -0.115957208, 0.0789187923, -0.0262016971, 0.0999783725, 0.1092674881, -0.1281917244, -0.5397810936, -0.1871836782, -0.2831960618, 0.0810423195, -0.109438166, 0.2423331887, 0.3701023161, -0.1744753271, 0.071916014, -0.3205095828, 0.3552828729, -0.0110202376, -0.5156712532, 0.0702781901, -0.4106996655, 0.0827037394, 0.1170750484, -0.3059645295, 0.5226400495, 0.1802410185, -0.0700211003, -0.1232785955, -0.2890225053, 0.3584614992, 0.1638959348, 0.0033584828, -0.2747869492, -0.0254923347, -0.2516486645, -0.2371179461, -0.1153583676, -0.1130128801, 0.0015422887, -0.0715371221, -0.0634526536, -0.2532048523, 0.0591779761, 0.2296279371, -0.0585731417, 0.0305903945, -0.0187707487, 0.1887830496, 0.0589883924, 0.3322997689, 0.3582287431, 0.3531622589, -0.1257247478, -0.0742664561, 0.1878256649, 0.2395173609, 0.4375710487, 0.0094460919, -0.0741962418, 0.1853927374, -0.21985282, -0.0161873996, -0.3805892467, -0.0386222824, 0.3348110318, -0.0018570805, -0.6414478421, -0.8713592887, 0.568874836, 0.2613632679, 0.0040650526, 0.3360823989, -0.1226272509, -0.1023520082, -0.0902927592, 0.1467007101, 0.6982848048, 0.0836786702, 0.0944307968, 0.1957820654, 0.2910909951, 0.4742543101, -0.0231768154, 0.0957145467, -0.4712153077, -0.2424993515, -0.1576360762, -0.1352896839, 0.3274859786, 0.0973741636, -0.2673661411, 0.4617575407, 0.0861320347, -0.0191618185, -0.078133367, 0.2627307773, -0.2957570851, -0.1491945088, -0.3420797288, 0.2087101936, 0.1375454515, 0.1305047572, -0.1679983586, -0.196271047, 0.3250443339, 0.1217649579, -0.0259976722, -0.1470039487, -0.1014485434, 0.0157758947, 0.1271652579, -0.3621407449, 0.2924294472, 0.1912250966, 0.2234527171, -0.0133159431, -0.0412633754, 0.0281851683, -0.145239234, -0.03710014, -0.0228268337, 0.157277599, 0.5331594348, -0.0537826568, -0.064875178, 0.294696331, 0.0965829566, -0.0767129511, -0.0837324262, 0.2173761576, 0.2105668038, -0.1378243268, -0.1368598193, 0.4520659149, -0.1138685346, -0.0730502978, 0.1984200925, 0.1927947998, -0.2502839565, 0.4345501363, -0.0265244786, -0.1206348985, -0.1684547663, 0.1748002172, 0.2953975797, -0.1548340321, 0.2711719871, 0.0277816206, -0.2030161917, -0.2583885193, 0.1134041399, 0.188751325, 0.0470323972, 0.0357753262, 0.0563851371, 0.3641643822, 0.2256297618, 0.1616130471, -0.0040460103, 0.0757430419, -0.3522454202, -0.1699045449, -0.2105131745, 0.0448399708, 0.1735903025, 0.3234497905, -0.0506312586, -0.0821366757, 0.1715503186, 0.0824962035, -0.3810792267, -0.0656670332, -0.1518848091, 0.1120755076, 0.0901948288, 0.0344071314, -0.2411400825, 0.3060914278, 0.1729074121, 0.1513153315, -0.206510216, -0.2799615562, -0.0027318362, 0.0741401985, -0.0406976677, -0.0506381243, 0.1484754682, -0.1919182986, -0.2478048801, -0.0839611292, 0.1618692726, -0.0411010943, 0.0048892996, 0.2155012488, 0.1861739457, -0.3800098002, -0.0785849392, -0.0580970384, 0.1399797946, -0.0120565705, 0.156051293, 0.3166590631, 0.0141458139, -0.2948205173, -0.2338852733, 0.1436722577, 0.2659363151, -0.1882648766, 0.3587211668, -0.2616418302, 0.1691546589, 0.0873798653, 0.44400388, 0.6819089055, -0.1831480414, 0.1529592574, 0.2660348117, 0.2514120638, -0.1319910586, -0.0644387156, -0.0242324695, -0.0962674394, 0.0915642381, 0.2693861723, 0.1511513889, 0.112254627, -0.2158709764, -0.2792433202, 0.1278317124, -0.2928752005, 0.1434125602, 0.2993026972, -0.0822098702, -0.1124622896, 0.2549160719, 0.4423461258, 0.1981950402, 0.5453621149, -0.014114758, 0.6302164197, 0.1067552716, -0.1112343147, -0.0250932015, -0.1928501874, -0.0242171511, 0.2076980174, 0.1615588069, 0.0700049698, -0.0311542116, 0.2256404757, 0.1823243648, -0.1027311906, 0.0183733106, 0.3125160336, 0.0823238268, -0.1238416582, -0.2100813836, -0.1635657251, -0.1809416413, -0.0708309785, -0.1897086203, -0.1125660688, 0.2526172101, 0.0850833952, 0.2983183563, -0.4108554721, 0.3159436285, -0.1058571041, 0.3703704774, -0.2970694602, 0.2014587969, -0.0724238306, 0.1050316468, -0.3055816293, 0.1716095954, 0.3079661429, 0.4848974943, 0.1029263139, 0.0477104671, -0.2340179384, -0.1359864324, 0.1141855866, 0.0032013613, -0.0817968249, -0.0514169261, 0.4961349368, 0.1336662322, -0.0962806121, 0.4675197303, 0.0762162507, -0.0275226384, -0.8000181913, 0.0478101, 0.0832977444, -0.0378123, -0.0930339098, 0.2179275155, -0.4655719101, -0.0468705483, 0.4806191921, -0.4441669285, -0.007358775, -0.175675571, 0.102401562, -0.3210001588, 0.6157896519, 0.1939953268, 0.5805900097, -0.0145388804, -0.381785661, -0.306266278, -0.0336710401, -0.086671412, -0.1495524645, -0.0763067156, 0.1704977751, 0.1077197567, 0.0987849236, -0.1735309809, -0.4373111427, -0.2029018104, 0.4054434299, -0.2589813173, -0.2440916598, -0.429805845, 0.3638335466, 0.0726838559, -0.1971217394, -0.0425103381, -0.4353250265, 0.0534012914, 0.0012334146, 0.177869156, 0.1927582026, -0.2071617246, 0.4288680553, -0.0192675628, 0.3466535807, -0.1509358585, 0.0377651118, -0.1243556067, -0.197143212, -0.1997790039, 0.3828834593, 0.1541643143, 0.0247667413, -0.0930310786, -0.040833462, -0.000695302, 0.0192728862, 0.0890781209, 0.018827647, -0.0209811591, -0.2271890491, 0.1004726589, -0.0382762328, 0.0966300815, 0.6581113935, -0.147012651, 0.0655412674, -0.2018075585, -0.0885169581, 0.2630486488, -0.1844277233, -0.1997632533, -0.318693012, 0.0300831962, 0.0652609691, -0.1534789503, -0.4477347136, 0.082576938, 0.4290877581, -0.0004234584, -0.2846858501, 0.3960921764, 0.3302377462, 0.0554769821, -0.0614909455, 0.1827527136, -0.0785411522, -0.1147848219, -0.0152916489, -0.2455782443 ]
https://github.com/huggingface/datasets/issues/815
Is dataset iterative or not?
Hi Huggingface/Datasets team, I want to use the datasets inside Seq2SeqDataset here https://github.com/huggingface/transformers/blob/master/examples/seq2seq/utils.py and there I need to return back each line from the datasets and I am not sure how to access each line and implement this? It seems it also has get_item attribute? so I was not sure if this is iterative dataset? or if this is non-iterable datasets? thanks. On Mon, Nov 9, 2020 at 10:18 AM Quentin Lhoest <[email protected]> wrote: > Hello ! > Could you give more details ? > > If you mean iter through one dataset then yes, Dataset object does > implement the __iter__ method so you can use > > for example in dataset: > # do something > > If you want to iter through several datasets you can first concatenate them > > from datasets import concatenate_datasets > new_dataset = concatenate_datasets([dataset1, dataset2]) > > Let me know if this helps ! > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/815#issuecomment-723881199>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ARPXHHYRLSSYW6NZN2HYDBTSO6XV5ANCNFSM4TPB7OWA> > . >
Hi I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not? could you provide me with example how I can use datasets as iterative datasets? thanks
185
Is dataset iterative or not? Hi I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not? could you provide me with example how I can use datasets as iterative datasets? thanks Hi Huggingface/Datasets team, I want to use the datasets inside Seq2SeqDataset here https://github.com/huggingface/transformers/blob/master/examples/seq2seq/utils.py and there I need to return back each line from the datasets and I am not sure how to access each line and implement this? It seems it also has get_item attribute? so I was not sure if this is iterative dataset? or if this is non-iterable datasets? thanks. On Mon, Nov 9, 2020 at 10:18 AM Quentin Lhoest <[email protected]> wrote: > Hello ! > Could you give more details ? > > If you mean iter through one dataset then yes, Dataset object does > implement the __iter__ method so you can use > > for example in dataset: > # do something > > If you want to iter through several datasets you can first concatenate them > > from datasets import concatenate_datasets > new_dataset = concatenate_datasets([dataset1, dataset2]) > > Let me know if this helps ! > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/815#issuecomment-723881199>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ARPXHHYRLSSYW6NZN2HYDBTSO6XV5ANCNFSM4TPB7OWA> > . >
[ -0.0225436985, -0.3792023063, -0.0717195347, 0.379314661, 0.0794591978, -0.1549821794, 0.2763755023, 0.0828171968, 0.0711624995, -0.1428880095, -0.0643623471, 0.0111190565, -0.2454966158, 0.3429044187, 0.1579364836, -0.0702994391, -0.1000305712, 0.007463037, -0.7639589906, -0.0446302481, 0.0603364483, 0.2321565449, -0.2711445391, -0.0109248664, -0.0369477011, -0.2411497831, -0.3265107572, -0.0627733767, -0.2232870609, -0.306273967, 0.3705845773, 0.2676632106, 0.3039008677, 0.5059754252, -0.0001149826, -0.0865793228, -0.0136716962, -0.1119051576, -0.2605409324, -0.2602420449, -0.2470696419, -0.1210112646, 0.1278482825, -0.3559495509, -0.0455693714, 0.0378009416, 0.1667557806, -0.308090359, 0.6174597144, 0.1739710271, 0.1636670381, 0.1257340461, 0.0991591364, -0.0202112999, -0.0610703304, 0.2306852192, 0.0680699274, 0.1013274342, 0.2460481077, 0.1616703272, 0.0873170197, 0.1419125348, 0.1690955162, -0.1322491765, 0.2284312099, 0.0251351483, -0.1097569019, -0.3999997377, -0.0769667327, 0.2307676673, 0.7655305266, -0.4036310017, -0.4934123158, -0.2389012724, -0.0845847577, -0.3491233587, -0.0607264377, 0.0878349096, 0.0615791343, 0.2074185908, -0.2750285566, -0.1799228638, -0.2871976197, -0.0714749768, -0.0842041075, -0.1233077347, -0.3571075201, 0.0375432819, 0.1368417293, -0.2389594167, -0.1284435838, 0.1822867692, 0.1119002104, 0.3583675623, -0.6574568748, -0.1644621044, 0.032465335, 0.2509855628, 0.5292329788, 0.5199731588, 0.0708164796, -0.0728316829, -0.0595636852, 0.1355994642, 0.3547317982, 0.2167764604, 0.133297205, 0.0148365013, -0.0468346886, -0.0156760626, 0.008092328, -0.1874768883, -0.1975458413, -0.2633076012, -0.0288976636, -0.1812642515, 0.124374114, -0.1571443975, -0.0886649191, -0.1423646361, -0.218668133, -0.2480698526, 0.215574652, 0.1797959358, 0.014784039, -0.009271306, -0.1977042705, 0.1596264541, 0.0233289339, 0.1618884802, -0.0899937749, 0.2939061522, -0.3323543966, 0.3278656006, -0.1063365489, -0.5168438554, 0.1241303533, -0.0498064496, -0.0145229436, -0.1895646751, 0.0131151658, -0.1561181545, 0.2389705628, 0.0416878238, -0.1350612193, 0.1681135148, -0.1038135961, -0.0063433377, -0.4026480317, -0.3620336056, -0.2837927341, -0.2724317312, -0.0047702175, 0.0828316361, -0.2892346978, -0.0493360683, 0.0017671845, 0.2995200455, 0.0428516939, -0.053139437, 0.1576126367, -0.0021381211, -0.2632712722, -0.0274781827, 0.138746053, 0.570358634, -0.517187655, -0.1693524867, 0.1901703626, -0.061386425, 0.0647267327, 0.4910534322, -0.1845665872, 0.2792844176, -0.2950097322, 0.1451635659, 0.4489833117, -0.1201360449, -0.3379769027, 0.3601588011, -0.0514759719, 0.1209130362, 0.2169086635, -0.0967275053, 0.1411954314, 0.0771339238, -0.1310062408, 0.0307140704, 0.1012063771, -0.2649408281, -0.0493884049, -0.0764735043, 0.1218606159, -0.0727327093, -0.018167574, 0.3623619676, 0.0806532055, 0.1890701652, 0.4062774777, -0.2153889239, 0.2619224787, 0.2413793802, 0.1841719747, 0.1566094756, 0.126394093, -0.3120623827, -0.2084098756, 0.1497214139, 0.1003221199, -0.0974684581, -0.0270919576, -0.0313609801, -0.2901249528, 0.0899076089, -0.2494386584, -0.2793978453, 0.100412026, 0.2482922226, 0.3779499233, -0.0617015958, -0.4771336019, 0.5368736386, 0.0398990996, 0.1137707829, -0.8209340572, 0.2269506156, 0.2916392684, -0.0419199765, 0.0092739183, 0.229920283, -0.0443532541, -0.3739892244, 0.4070419073, 0.2918508053, -0.2554700971, 0.1345612705, 0.1751822531, 0.413870424, 0.2163657993, -0.0493226349, -0.0306188278, -0.3302224874, 0.2782607377, -0.0702293888, 0.1413686872, 0.4477908611, -0.2019179314, 0.4001388252, 0.2018059641, -0.0399866439, -0.0388883464, -0.0268120281, -0.6704293489, 0.1082903966, 0.0874225572, -0.1647338271, 0.4941923022, -0.1377521902, -0.2760531902, -0.1087179482, 0.4138205945, -0.09440393, -0.0200496633, 0.2225458771, -0.1451562196, -0.0746292695, 0.0574679971, -0.0752752572, 0.2247609794, -0.0499065556, 0.2173970193, 0.0197040793, 0.152012378, 0.0490660518, 0.0343685821, 0.1375620365, 0.2676268518, -0.063083306, 0.0223441124, 0.0916069672, -0.1821550876, -0.3705842495, -0.1461515278, 0.0357506908, -0.2060860395, 0.443092525, -0.2589525878, -0.2633574903, -0.4498879015, -0.0666276142, 0.0132168084, 0.0169123225, -0.3413527012, -0.087752834, 0.3287211061, 0.0274921842, 0.1229677796, 0.3827256262, 0.2354794741, 0.0622022338, -0.2230381668, -0.0625786036, 0.1404512972, 0.0504578054, 0.1174333096, -0.1744206846, 0.4147766829, -0.0110876076, 0.0203941576, -0.3350255191, -0.2326263189, 0.3629404604, -0.0303242467, 0.2029055804, 0.2526979446, 0.0050779968, -0.0727118775, -0.2006013393, -0.0021752638, -0.1680449843, -0.0241722371, 0.0551483519, -0.0846828744, 0.2222289294, 0.1161014736, -0.268958509, -0.3376811743, -0.1086260006, 0.7068124413, 0.0823261216, 0.1625307947, 0.2160707712, -0.1467019171, 0.374201715, -0.179202944, 0.2425267994, -0.0822484419, -0.4794173241, 0.2723618448, -0.3086798191, -0.2070451677, -0.0615932643, -0.1114959866, 0.545219481, 0.0474163778, -0.2879161239, -0.241895929, -0.0889613852, -0.0576903559, 0.1043203995, 0.2547335923, 0.3147211969, -0.2180017084, 0.053030625, 0.0392933078, -0.0398628674, 0.1431070715, -0.0296653956, 0.1179029718, 0.3721636534, 0.6116315126, 0.2033928484, 0.5283324122, 0.559779942, 0.0441528931, 0.1339012533, -0.2030179948, -0.148243472, -0.0539471284, -0.4497839212, 0.1008925065, -0.3520359695, -0.2242039442, 0.1032586247, -0.0820936188, -0.0072766407, -0.1764747053, 0.2343401909, -0.3153306842, -0.1751326621, -0.1159479022, -0.0524546765, 0.2276576161, -0.1514529586, -0.101007022, -0.00284997, 0.1166383326, -0.0624754541, 0.2495339066, 0.2291750759, 0.1404863298, -0.4873248041, -0.1191732436, -0.5276037455, 0.0991174206, -0.0658045486, 0.0816221237, 0.1764952242, -0.1703936756, 0.2090613991, -0.1972823143, 0.7068561912, 0.3709077835, -0.4413898289, 0.0167114343, -0.6154155135, -0.0944963843, 0.2515737116, -0.3018531501, 0.2464170903, 0.411948055, -0.111532867, -0.4199150205, -0.2527616322, 0.1832799166, -0.0398675799, -0.061524041, -0.1657913178, 0.1237147748, -0.1315439343, -0.1779130101, -0.0346642025, -0.0297944788, 0.1431576759, -0.0613069572, 0.0167555157, -0.1951408684, -0.1009069905, 0.2924516201, 0.0021702705, 0.1355209053, -0.0717056394, 0.1020829231, 0.3970294595, 0.1857027113, 0.1829593778, 0.5120192766, 0.0045759324, -0.0163418166, 0.2443134636, 0.1149492115, 0.3713566661, 0.2297396958, -0.2243172973, 0.1311880499, -0.2082902044, 0.0624607354, -0.4876966178, -0.064654313, 0.3882618546, 0.0042076148, -0.4003358781, -0.5670480728, 0.4350756705, 0.0636788234, -0.0679371357, -0.1132916138, 0.2199292183, -0.2193503231, -0.0635294095, -0.0480279028, 0.8930823207, -0.0798637494, 0.1776341349, 0.2711479664, 0.3125710785, 0.6791242361, -0.104541339, 0.0373731442, -0.3593170047, -0.1283750385, -0.1761797518, -0.1432954371, 0.2393952608, 0.2416952848, -0.3168788254, 0.4740024209, 0.2364815176, -0.0876337588, -0.2001953572, 0.134181872, -0.2505309582, -0.1713342816, -0.5428105593, 0.0797573179, 0.1976353228, 0.3496429026, -0.2035435587, -0.1589898616, 0.3872140348, 0.0108767105, -0.1957824826, -0.1961763352, -0.1912956089, -0.1198799014, 0.3108171821, -0.4503108859, 0.2483722568, 0.2719878554, 0.3074177504, -0.020280296, -0.2337437421, -0.1706655473, -0.1715363413, -0.0575989932, -0.0443540737, 0.1191494316, 0.5094353557, 0.086216487, 0.0098276315, 0.2524544895, 0.1227698997, 0.0552143455, -0.1233931705, 0.0279914681, 0.0247118939, -0.3799901605, 0.0445738211, 0.4037043452, 0.0139000835, -0.0751770884, 0.0709159598, 0.3548551202, -0.1962819397, 0.2054768801, -0.0224687979, -0.1437734663, -0.1721855998, 0.3500187993, -0.1183034107, -0.1491505355, 0.4499127865, 0.2053414136, -0.2025939375, -0.1555678695, 0.1078349203, 0.3016611338, -0.5539580584, -0.0551478788, 0.0158119407, 0.2955102623, 0.1231883988, 0.2468170822, 0.1575182974, -0.1966638714, -0.1688224226, -0.3144054711, -0.112808682, 0.2498925179, 0.1568759829, 0.2673360407, 0.0133147119, -0.0962868109, 0.0466279425, 0.2190750837, -0.2746020854, 0.0008874049, -0.1824957579, 0.0270251129, 0.3159902394, -0.1311346292, 0.134076342, 0.2994026542, 0.0049858354, 0.2990651131, -0.2860029638, -0.149328053, -0.1430831701, 0.1100989059, -0.0432757139, -0.1182492226, 0.1256169826, 0.0538479052, -0.1396159083, -0.1766373068, 0.3731315136, 0.1063203886, 0.2922565937, 0.287368685, 0.3195650578, -0.1883184016, -0.1875495166, 0.0244980175, 0.2193182707, -0.0319583863, 0.163357079, 0.3162525296, -0.3384664953, -0.234371081, -0.1301618516, 0.4080595076, 0.4407762289, -0.2145991027, 0.3446981907, -0.3372787535, 0.0115615204, 0.0162496362, 0.5546603203, 0.5000159144, -0.1114777178, 0.1232732832, 0.2385497689, 0.1289217025, -0.0131409634, 0.1448387355, -0.1646960527, -0.0155054489, 0.0392157584, 0.3914723694, -0.0636787638, 0.1908528507, 0.3073041141, -0.1546215713, 0.2058761716, -0.2311469018, 0.0248275269, 0.1402020007, -0.005289258, -0.0466809049, 0.3599811792, 0.5259152055, 0.2698194385, 0.3038619459, -0.1987410784, 0.3367417157, -0.2960054874, 0.3056205213, 0.1545061618, -0.1887049824, -0.26692909, 0.2299316376, 0.1297983378, 0.0332545303, -0.3204916716, 0.587429285, 0.2111533284, 0.0050557354, -0.0595758297, 0.4466045201, 0.0898113996, -0.4591881335, -0.0746890157, -0.2179274261, -0.1943537891, -0.148786813, -0.2237690836, -0.1877891421, 0.2310131639, -0.0714438632, 0.4418849051, -0.5277568698, 0.035883408, -0.0264718384, 0.0527191609, -0.2840575874, 0.2444788218, -0.0745946616, 0.1100017801, -0.0017725572, 0.3280361295, 0.2134839892, 0.1244835556, 0.0427426696, 0.1268681139, -0.2345497459, -0.108071357, -0.0262487642, 0.188727513, -0.2101012468, -0.120222643, 0.5229048729, -0.0081962943, -0.0220616162, 0.2686902881, -0.1294374168, 0.0905607492, -0.9172278643, 0.2284285128, -0.1415835172, 0.0130809341, -0.1373817623, 0.0940609649, -0.4923453033, 0.0472626351, 0.1562890112, -0.4805274606, 0.1494232714, -0.0902927592, 0.0486968309, -0.2270436287, 0.4418409169, 0.3467174768, 0.3968280554, -0.001427168, -0.1602833122, -0.2863875031, -0.1142131835, 0.1662473381, -0.0105509879, 0.0262266472, 0.3324880302, -0.0263186023, 0.0976142064, -0.2443812788, -0.5556646585, -0.4309262335, 0.2382340431, -0.1723211855, -0.183577314, -0.3301451802, 0.2728577256, 0.0861759558, 0.066826731, 0.1457108408, -0.338313669, -0.0964508727, -0.0013658038, 0.2898552418, -0.0888064131, -0.2830112576, 0.1289148033, 0.1943982542, 0.0226774514, -0.0549046993, 0.1512883306, -0.3607624471, -0.3699645698, -0.0088429293, 0.2426398098, -0.0101734409, 0.2483731061, -0.2000076026, -0.2119709402, -0.0647170171, 0.0107860621, 0.1808036417, -0.1111466363, -0.0816974267, -0.0053943079, -0.0315476283, -0.0651746094, 0.0553354844, 0.6036368012, -0.0209293645, 0.2141373754, -0.0475203618, -0.1800525934, 0.4160073698, -0.4784714878, -0.0407215767, -0.0385177024, 0.0972359851, 0.320835799, -0.4703528583, -0.4702592492, 0.1263056695, 0.391402185, 0.0702913478, -0.1530092806, 0.1964988112, 0.274702996, -0.0594079047, -0.2626429796, 0.3028576374, 0.1639410704, 0.0323693417, 0.1523397863, -0.2388466895 ]
https://github.com/huggingface/datasets/issues/815
Is dataset iterative or not?
could you tell me please if datasets also has __getitem__ any idea on how to integrate it with Seq2SeqDataset is appreciated thanks On Mon, Nov 9, 2020 at 10:22 AM Rabeeh Karimi Mahabadi <[email protected]> wrote: > Hi Huggingface/Datasets team, > I want to use the datasets inside Seq2SeqDataset here > https://github.com/huggingface/transformers/blob/master/examples/seq2seq/utils.py > and there I need to return back each line from the datasets and I am not > sure how to access each line and implement this? > It seems it also has get_item attribute? so I was not sure if this is > iterative dataset? or if this is non-iterable datasets? > thanks. > > > > On Mon, Nov 9, 2020 at 10:18 AM Quentin Lhoest <[email protected]> > wrote: > >> Hello ! >> Could you give more details ? >> >> If you mean iter through one dataset then yes, Dataset object does >> implement the __iter__ method so you can use >> >> for example in dataset: >> # do something >> >> If you want to iter through several datasets you can first concatenate >> them >> >> from datasets import concatenate_datasets >> new_dataset = concatenate_datasets([dataset1, dataset2]) >> >> Let me know if this helps ! >> >> — >> You are receiving this because you authored the thread. >> Reply to this email directly, view it on GitHub >> <https://github.com/huggingface/datasets/issues/815#issuecomment-723881199>, >> or unsubscribe >> <https://github.com/notifications/unsubscribe-auth/ARPXHHYRLSSYW6NZN2HYDBTSO6XV5ANCNFSM4TPB7OWA> >> . >> >
Hi I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not? could you provide me with example how I can use datasets as iterative datasets? thanks
236
Is dataset iterative or not? Hi I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not? could you provide me with example how I can use datasets as iterative datasets? thanks could you tell me please if datasets also has __getitem__ any idea on how to integrate it with Seq2SeqDataset is appreciated thanks On Mon, Nov 9, 2020 at 10:22 AM Rabeeh Karimi Mahabadi <[email protected]> wrote: > Hi Huggingface/Datasets team, > I want to use the datasets inside Seq2SeqDataset here > https://github.com/huggingface/transformers/blob/master/examples/seq2seq/utils.py > and there I need to return back each line from the datasets and I am not > sure how to access each line and implement this? > It seems it also has get_item attribute? so I was not sure if this is > iterative dataset? or if this is non-iterable datasets? > thanks. > > > > On Mon, Nov 9, 2020 at 10:18 AM Quentin Lhoest <[email protected]> > wrote: > >> Hello ! >> Could you give more details ? >> >> If you mean iter through one dataset then yes, Dataset object does >> implement the __iter__ method so you can use >> >> for example in dataset: >> # do something >> >> If you want to iter through several datasets you can first concatenate >> them >> >> from datasets import concatenate_datasets >> new_dataset = concatenate_datasets([dataset1, dataset2]) >> >> Let me know if this helps ! >> >> — >> You are receiving this because you authored the thread. >> Reply to this email directly, view it on GitHub >> <https://github.com/huggingface/datasets/issues/815#issuecomment-723881199>, >> or unsubscribe >> <https://github.com/notifications/unsubscribe-auth/ARPXHHYRLSSYW6NZN2HYDBTSO6XV5ANCNFSM4TPB7OWA> >> . >> >
[ -0.1425884068, -0.3471776843, -0.1183144748, 0.351855129, 0.0803463608, -0.0877769589, 0.2236452103, 0.2374292165, 0.033236526, -0.1268833727, -0.038506709, 0.0500972159, -0.267303735, 0.3630907536, 0.0759755, -0.0330849811, -0.0817345604, -0.0110199088, -0.7120335698, -0.0541849174, 0.0636998713, 0.2144561261, -0.2781909108, -0.0741707087, -0.0047890251, -0.2388823628, -0.3776045442, -0.0251139849, -0.2068049163, -0.3644315898, 0.2285369784, 0.259321779, 0.2990612388, 0.5007335544, -0.0001083229, -0.1844810396, 0.0241036154, -0.0698914006, -0.3096702397, -0.2250894159, -0.2824632525, -0.2135334015, 0.0689913109, -0.3665149808, -0.0540315621, 0.0273775421, 0.1581241637, -0.3098549247, 0.5706965923, 0.1549824774, 0.2261646092, 0.1355456114, 0.0920442492, -0.0505273268, -0.074673757, 0.1321908981, 0.0607588999, 0.1077914536, 0.2328061908, 0.150189057, 0.0214257501, 0.1485861242, 0.0968901664, -0.1199047789, 0.2620967031, -0.0519878939, -0.1156983227, -0.3440947831, -0.020976238, 0.1512999386, 0.7606993318, -0.3858967721, -0.5661014915, -0.300955385, -0.0400618091, -0.4118645191, -0.0546103045, 0.1472492665, 0.0820056573, 0.1540422142, -0.212172538, -0.1637293845, -0.2180507481, -0.1387699097, -0.0414787047, -0.0969731435, -0.3794802427, -0.0211917423, 0.0490674973, -0.2237615287, -0.1534072161, 0.1326576322, 0.1087393835, 0.3603594005, -0.6488002539, -0.2567499876, 0.0532761179, 0.3321328461, 0.51778543, 0.5682509542, 0.0786656663, -0.0219274927, -0.0438607521, 0.1380574405, 0.3656165302, 0.1424453259, 0.1061023101, -0.0619188286, -0.0528920516, 0.0391136967, 0.0796753615, -0.1260005981, -0.1406911314, -0.2216004878, -0.07711941, -0.1565039456, 0.0832068548, -0.1770687103, -0.1023253649, -0.1652231812, -0.1618963182, -0.2160279751, 0.114815101, 0.1496845782, -0.1081650183, -0.0370217524, -0.2981789708, 0.0841591954, -0.0231003985, 0.127736479, -0.1204519942, 0.3016715348, -0.2454103529, 0.2856013775, -0.1388823539, -0.5510953665, 0.1653596461, 0.0034502221, -0.0500821285, -0.0972500369, -0.0386769362, -0.2035282254, 0.1337119639, 0.0107535366, -0.0971943513, 0.1757564396, -0.1511568427, -0.048236426, -0.4053092599, -0.3546987772, -0.2803290188, -0.1745542735, 0.0428337157, 0.145517379, -0.2266247571, -0.054378435, 0.0425454713, 0.3436611295, 0.0179279931, -0.1024765372, 0.1268296391, 0.0494635813, -0.3142506182, -0.0543958619, 0.1424337327, 0.5140597224, -0.4476075172, -0.2488470525, 0.1939010322, -0.0189504214, 0.0248289313, 0.4461154938, -0.1179488152, 0.2248838991, -0.2795752287, 0.1410648227, 0.3673357666, -0.1072314009, -0.2978150249, 0.3310322464, -0.122578375, 0.1277454644, 0.2151695341, -0.1188948452, 0.147286132, 0.0209823754, -0.1125124916, 0.0276412126, 0.0095553482, -0.2397183925, -0.1244159266, -0.0534944683, 0.0133726653, -0.0317955911, -0.0155018438, 0.2256134152, 0.1291157305, 0.1652710587, 0.432066381, -0.175915733, 0.2170918286, 0.2566937208, 0.2220907509, 0.0498517714, 0.088692829, -0.2924879789, -0.2623609304, 0.1929329634, 0.1236290559, -0.0143334568, -0.0734223276, -0.0174051505, -0.2349373698, 0.0079407254, -0.2194011509, -0.3230404258, 0.1734451652, 0.2221038342, 0.3988914192, -0.0537921451, -0.4686817825, 0.5173089504, 0.0457806103, 0.1597617716, -0.8009340763, 0.1625420749, 0.2433853149, -0.02656487, 0.0728494003, 0.1985828876, -0.0902727395, -0.3639824688, 0.3573994339, 0.2823089063, -0.1799613982, 0.1475439072, 0.1906578988, 0.4468782842, 0.204932183, 0.0259633884, -0.0192388222, -0.3458395898, 0.2969490588, -0.0436751358, 0.0461220667, 0.4764792025, -0.1672108024, 0.3203336298, 0.2574346066, -0.0481924266, 0.0035502901, -0.0402695909, -0.583155632, 0.124191083, 0.1108983234, 0.0170073062, 0.467184931, -0.1074707955, -0.2827883363, -0.0736336634, 0.3593041599, -0.1044112891, -0.0366753526, 0.1507017165, -0.1847528368, -0.1070031449, 0.1077763736, -0.0739282593, 0.2477796972, 0.0068558347, 0.2435869128, 0.0406483375, 0.17173177, 0.0214139596, 0.0621024929, 0.1553303897, 0.1925955713, -0.0365206972, 0.075044781, 0.1274709851, -0.1554529369, -0.3518768549, -0.1105528548, 0.057045836, -0.1778412908, 0.3865461349, -0.2391076684, -0.2566682696, -0.3890227973, 0.1047526971, -0.0565255545, 0.003965003, -0.2241479456, -0.0742110163, 0.3099521399, 0.0556998365, 0.1141188294, 0.4600074589, 0.2347172201, 0.0880564228, -0.1795245856, -0.0620843284, 0.154369235, 0.1218862012, 0.1859987974, -0.1343819499, 0.5079187155, -0.0053068623, -0.000682031, -0.3153591454, -0.2890057564, 0.309922576, -0.1156777814, 0.2322625071, 0.1817794144, -0.060331028, -0.0614841878, -0.1326135397, -0.0467312708, -0.1158416793, -0.0954231992, -0.0402133018, -0.0446160436, 0.2140874565, 0.107350722, -0.2305363268, -0.2717320025, -0.2117004395, 0.7207010984, 0.1371040642, 0.2246388048, 0.1908034086, -0.1179904342, 0.3346857131, -0.1943359673, 0.3252695799, -0.0625199974, -0.4787774384, 0.3021919727, -0.3026358187, -0.184788093, -0.1038350165, -0.125380531, 0.6247448325, 0.0419880189, -0.3094746172, -0.2259996831, -0.0541658513, 0.0536924824, 0.1094727293, 0.2407764047, 0.3135148585, -0.1626960039, -0.0329298675, 0.0371292047, 0.0101285968, 0.0426242128, -0.0473839864, 0.0893517882, 0.3445408344, 0.5481719971, 0.2190326899, 0.5223552585, 0.5356538892, 0.0138918795, 0.1400535703, -0.0983516276, -0.0980427191, -0.0277523044, -0.4531844854, 0.1973806471, -0.3463816643, -0.2529507577, 0.1570413411, -0.0951180384, -0.0656498075, -0.2182156444, 0.1941528469, -0.2358366102, -0.1959586293, -0.1057224274, 0.012224149, 0.2226582766, -0.2190305293, -0.1003997028, 0.0521244481, 0.1372747421, 0.0047711432, 0.20267196, 0.1884461194, 0.0563496239, -0.5617639422, -0.0057131876, -0.4896620512, 0.1085178852, -0.0363335498, 0.0070992205, 0.2339689285, -0.2241961062, 0.1268601716, -0.2134831548, 0.5830469131, 0.3160969019, -0.4566284716, -0.0202447884, -0.547560215, -0.0474633686, 0.2805721462, -0.2953293025, 0.2513096035, 0.3468485177, -0.0295146108, -0.457998991, -0.330272764, 0.1355597228, 0.0209406633, -0.046124436, -0.1347161531, 0.1114866063, -0.1327065527, -0.2398449779, 0.0322486386, -0.0017583424, 0.181842342, -0.070635885, 0.0369971879, -0.2385932356, -0.121520862, 0.2413261235, -0.0531453006, 0.1067717373, -0.0217648018, 0.2209535688, 0.3449821472, 0.1826762706, 0.1949135214, 0.5341265202, -0.0401167609, -0.0637313724, 0.2419626564, 0.1099615991, 0.3433797657, 0.2787809372, -0.1187919006, 0.1542902738, -0.1969992518, 0.1371665597, -0.4949754179, -0.0650093034, 0.3207851648, 0.021466434, -0.3879271448, -0.5668640733, 0.3979652524, 0.0945355296, -0.0297923498, -0.1114823595, 0.1785358936, -0.189128086, -0.1138751134, -0.0083277402, 0.877263546, 0.0319276042, 0.1329398304, 0.2381799817, 0.2841380537, 0.6234856248, -0.0280069821, 0.0178283174, -0.3746922016, -0.2490866333, -0.116333954, -0.1235605404, 0.2895084321, 0.2170462012, -0.3202977479, 0.5073507428, 0.2475792766, -0.1227074414, -0.1606151015, 0.213112697, -0.2810667455, -0.2357785851, -0.598377645, 0.1458410919, 0.1600375026, 0.2836301625, -0.1796883792, -0.1390867978, 0.4076881707, -0.0017839407, -0.1486614197, -0.2349319756, -0.2477785349, -0.1041989625, 0.2241989076, -0.4196971655, 0.2544496059, 0.2264539897, 0.2770262063, 0.0333959237, -0.2222714126, -0.1569137573, -0.1830390841, 0.0029032754, -0.0053307978, 0.0556921437, 0.6071687937, 0.0503937006, 0.151583463, 0.2582306266, 0.0890818089, 0.057165768, -0.0774366483, -0.0198142491, -0.102699168, -0.3565374911, 0.0067694806, 0.3971952498, 0.0090592746, -0.0701593161, 0.1332820803, 0.3546116948, -0.146398291, 0.2365440726, 0.043492198, -0.1403742582, -0.1912481785, 0.4071798623, -0.1181034967, -0.1983420253, 0.4554190636, 0.166176334, -0.2287354171, -0.2077703029, 0.1140213534, 0.322791785, -0.4184865952, -0.0639821067, -0.0201243199, 0.2953796983, 0.0926586911, 0.2044045478, 0.1547838002, -0.1619638652, -0.0641449988, -0.2246101499, -0.1052450314, 0.3154667616, 0.2270196974, 0.2550218701, -0.0240133945, -0.1522891223, 0.0329788849, 0.2615967989, -0.3584606051, -0.0105182482, -0.1733996123, 0.0665030777, 0.3252339363, -0.0954418927, 0.1232603043, 0.2710689008, 0.1061672345, 0.2823155224, -0.3206465244, -0.2339216024, -0.1526695639, 0.0869124606, 0.0169797782, -0.0633454174, 0.1054920703, 0.0557908304, -0.1318685859, -0.2105321884, 0.3006527424, 0.0091103958, 0.2976893187, 0.2314930111, 0.3964726329, -0.1185308397, -0.1576305479, 0.0600555949, 0.18463552, -0.046666678, 0.156850487, 0.2884027064, -0.3015135825, -0.2241451442, -0.0560048483, 0.3923469484, 0.4073378146, -0.2339117676, 0.3088851571, -0.2933986187, -0.0103805326, 0.130373776, 0.51883775, 0.5250543356, -0.1241682768, 0.0555373318, 0.2879220843, 0.2092595696, -0.0727562234, 0.111276105, -0.2497937828, -0.0984955654, 0.1296975613, 0.383282125, -0.085063383, 0.1669870317, 0.2132772058, -0.1150756627, 0.198761493, -0.2142683864, 0.0188855622, 0.0797782466, 0.0300602503, -0.0799140558, 0.3738005757, 0.4228506684, 0.2139608562, 0.2633861005, -0.2759993374, 0.3973241746, -0.2264549583, 0.2418709695, 0.1715240926, -0.1857380122, -0.1389622241, 0.2813617289, 0.153200835, -0.0042250743, -0.2404959351, 0.5388869643, 0.1678977013, -0.0543511733, 0.0097789029, 0.4228829741, 0.0503139198, -0.3581232131, -0.0711407438, -0.2430216223, -0.2250372022, -0.1238202751, -0.2629262507, -0.2353130132, 0.2613810599, -0.0566108897, 0.3644621968, -0.5372335911, 0.0038965102, -0.021998113, 0.1132595092, -0.3350178897, 0.1712705195, -0.0511972904, 0.0864296779, -0.0958902165, 0.3389082849, 0.2542079985, 0.1117470041, 0.0073346104, 0.0347145163, -0.2352551818, -0.1012959182, -0.006268444, 0.1274975389, -0.2548770308, -0.1391127557, 0.5069288611, 0.0564196557, -0.0876502916, 0.2528475225, -0.0787240714, 0.0096899103, -0.9196891189, 0.2116188705, -0.0865178481, 0.0649556443, -0.1183386892, 0.0958194658, -0.5051103234, 0.0817724019, 0.160170123, -0.4940124154, 0.0981378853, -0.0870597512, 0.1044275835, -0.1923288256, 0.4898712337, 0.3311973214, 0.3033388257, -0.0329316407, -0.1535871029, -0.3243840039, -0.1424011588, 0.1704665571, 0.034686055, -0.0449092351, 0.3771386743, 0.0564844981, 0.160236299, -0.2984937429, -0.5570550561, -0.3035138249, 0.2498380542, -0.2531628013, -0.120675765, -0.3716829121, 0.2428578883, 0.1048691869, 0.0782131106, 0.1468792409, -0.3805567026, -0.0289533325, -0.0192325171, 0.2883639932, -0.0651246011, -0.3201836348, 0.1772942096, 0.1361570656, 0.0055625304, -0.1212322488, 0.0008987472, -0.3256332576, -0.3225669265, -0.109989576, 0.3711660504, -0.0431342795, 0.2471924424, -0.1225268766, -0.2282950282, -0.020258069, 0.1438216567, 0.1343943179, -0.1148287207, -0.0591499582, -0.0152184255, 0.0624645427, -0.022819465, -0.02040077, 0.5253515244, -0.022559654, 0.2398403883, -0.1348941624, -0.2718341947, 0.391002059, -0.439278245, 0.0391687006, -0.1211601645, 0.1023643985, 0.2544709444, -0.4025711715, -0.4000898004, 0.1132172942, 0.4312735796, 0.0453594513, -0.1451370418, 0.2790008485, 0.2842406034, -0.0681635216, -0.2841488123, 0.3456371129, 0.1041296795, -0.0624755435, 0.1874963045, -0.2553835213 ]
https://github.com/huggingface/datasets/issues/815
Is dataset iterative or not?
`datasets.Dataset` objects implement indeed `__getitem__`. It returns a dictionary with one field per column. We've not added the integration of the datasets library for the seq2seq utilities yet. The current seq2seq utilities are based on text files. However as soon as you have a `datasets.Dataset` with columns "tgt_texts" (str), "src_texts" (str), and "id" (int) you should be able to implement your own Seq2SeqDataset class that wraps your dataset object. Does that make sense to you ?
Hi I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not? could you provide me with example how I can use datasets as iterative datasets? thanks
76
Is dataset iterative or not? Hi I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not? could you provide me with example how I can use datasets as iterative datasets? thanks `datasets.Dataset` objects implement indeed `__getitem__`. It returns a dictionary with one field per column. We've not added the integration of the datasets library for the seq2seq utilities yet. The current seq2seq utilities are based on text files. However as soon as you have a `datasets.Dataset` with columns "tgt_texts" (str), "src_texts" (str), and "id" (int) you should be able to implement your own Seq2SeqDataset class that wraps your dataset object. Does that make sense to you ?
[ -0.1060157493, -0.0653585047, -0.0744618848, 0.2728960514, 0.0212029554, -0.0095436303, 0.2350495756, 0.2607482076, 0.0178501308, -0.1811227351, 0.2007771134, 0.2117640376, -0.3875654936, 0.1963475496, 0.0909051672, 0.0099151097, -0.1221983805, 0.017718764, -0.6584700942, -0.133117184, -0.0125519568, 0.1090286002, -0.3733929098, -0.0125813093, -0.0573373213, -0.2997430265, -0.354776293, -0.0941224322, -0.3227387369, -0.3790440559, 0.1680092812, 0.3244621158, 0.4530279934, 0.3990263045, -0.000104547, -0.3836461008, 0.0271533988, -0.0992271677, -0.2510546148, -0.1770190895, -0.2945178449, -0.2617831528, 0.1364852041, -0.4748811126, -0.0804626867, -0.0584188998, 0.0909328908, -0.3703356087, 0.2763306499, 0.0961015299, 0.2760343254, -0.4248442948, -0.0344234779, -0.0648905486, 0.022560209, 0.0496652164, -0.0703689903, -0.0418417938, 0.3111677766, 0.305927217, -0.0155923814, -0.0311849713, 0.121877633, -0.198125422, 0.340526998, -0.0772939771, -0.087915279, -0.3361749053, 0.0023597644, 0.0840367973, 1.1303721666, -0.2262820601, -0.306194514, 0.0234378148, -0.0152311176, -0.4028500319, -0.1640852541, 0.2946578264, 0.1456299871, 0.1291963011, -0.2035062313, -0.396923691, -0.2363086343, -0.1007132158, -0.1262228936, -0.0489159003, -0.1681757718, 0.0840761513, -0.0203479417, -0.2884939313, 0.1532581151, 0.1695320308, 0.0152813513, 0.225015834, -0.6152799129, -0.3189678192, 0.0359664038, 0.3883177042, 0.412984103, 0.3702380657, 0.0624873787, 0.031751629, 0.0029435968, 0.2047529817, 0.4332898259, 0.0117596379, 0.0783102214, 0.0479109883, 0.0488205478, -0.1845353693, -0.2050263882, -0.0807029381, -0.216611892, -0.1597900093, 0.1061508805, -0.1645495445, -0.156751886, -0.17901209, -0.0017532127, 0.0000936547, -0.2421875447, -0.1376678646, 0.1298843622, 0.1093619838, -0.0902501121, -0.0274751503, -0.1273268312, 0.1498541534, 0.1142807156, -0.0207859203, -0.0622129329, 0.4749679267, -0.2980026305, 0.0847257674, -0.0686667636, -0.3925189078, 0.0734555274, 0.0530896448, -0.1771769971, -0.0755124539, 0.0849152207, -0.2322217971, 0.1744032353, -0.107244648, -0.1682423502, 0.1184781194, -0.1914853752, -0.1652150303, -0.4168972373, -0.1530211419, -0.3378539979, -0.118684344, -0.1220382079, 0.1512052417, -0.1720933914, -0.1900554597, 0.1995150596, 0.4862646163, -0.0187178906, -0.170180738, 0.0455385037, -0.1141483039, -0.294223845, -0.1201193929, -0.0273048077, 0.4135946035, -0.7152238488, 0.1127027273, 0.017728541, 0.1990043819, 0.0440052859, 0.3204878867, -0.1433269233, 0.2875398695, -0.1735821813, 0.0832264498, 0.4689073563, 0.0261820015, -0.2216172963, 0.1995013207, -0.1015401706, -0.1679415107, 0.179611221, 0.0820490867, 0.2748189867, -0.0586651862, -0.1135250852, 0.0100039328, 0.0261895321, -0.2152170986, -0.1232683808, -0.0396793, 0.1559776664, 0.0144438809, 0.0755375177, 0.2684826255, 0.1918976456, 0.2799930274, 0.2079637796, -0.1532558799, 0.2448381931, 0.0787209421, 0.3107304573, -0.0092807719, 0.1097958162, -0.1822761744, -0.0991681442, 0.198935017, 0.3425957859, -0.0336224437, 0.097345382, 0.0093338015, -0.1202998459, -0.0338791236, -0.1323506981, -0.1853949279, 0.1936357021, -0.0194622353, 0.3257057965, -0.1215667799, -0.3612467349, 0.2648517787, -0.02781092, -0.0716547593, -0.6356139183, 0.1184780896, 0.2372145951, -0.0631387904, 0.1188149303, 0.1731707454, -0.1699395031, -0.2727326155, 0.3001479506, 0.3359160721, -0.0359949581, -0.0734906569, 0.2832370996, 0.5574194193, 0.117782101, 0.0026028266, 0.2196705043, -0.4144701362, 0.2916939855, 0.0419200659, -0.0218471568, 0.4437413812, -0.1784733236, 0.1090888977, 0.1369909197, -0.0261688437, 0.0741578862, 0.0160721149, -0.5682400465, 0.0849422514, -0.2583653033, 0.1411115229, 0.2531075478, -0.0921329558, -0.3893499672, -0.1187008768, 0.4135909379, 0.024784619, 0.0798388571, 0.1774077415, -0.1116076186, -0.1065045223, -0.0296096057, -0.0075325789, 0.3253003359, -0.0390898921, 0.1885776222, -0.0195131097, 0.0985074714, 0.071353592, 0.1269072294, 0.0737550929, 0.1753562987, -0.1058324203, 0.0945660695, 0.0835997164, -0.1805024892, -0.2936787903, 0.050596416, 0.2180812806, -0.0557900295, 0.3049525023, -0.418589741, -0.1184836105, -0.3756102026, 0.2154710889, 0.2625837326, 0.0878838003, -0.0428280197, -0.1942445934, 0.4051318765, 0.0120764161, -0.077067256, 0.5587697625, 0.2348257452, 0.0640680194, -0.0663644448, -0.1118963957, 0.03841611, 0.157805413, 0.1735129207, -0.0893603265, 0.5077775717, 0.0487737879, 0.2402327508, -0.4060041308, -0.3096457124, 0.3122245669, -0.0110637313, 0.2463250905, 0.2539362907, -0.171747461, -0.0561874621, -0.1773163825, -0.033528164, -0.2286292017, 0.0861984044, 0.0113952216, -0.0456724502, 0.0788045824, 0.0978553444, -0.3836058974, -0.1660969108, -0.1279616058, 0.423507899, 0.219193697, 0.3020018637, -0.0476008058, -0.0579891726, 0.2834452391, -0.0312267952, 0.1959004551, -0.128411904, -0.4388585091, 0.3763957322, -0.2919610143, -0.1978158355, 0.0604932792, -0.1055091172, 0.627943635, 0.0679764897, -0.2470659912, 0.1047997102, 0.1767356247, 0.1371099353, 0.2523686588, 0.1300070882, 0.266562283, -0.1598162353, -0.0430795215, 0.0375890471, -0.1077143848, 0.2246947438, 0.2038495541, 0.2265099138, 0.3720073104, 0.6611020565, 0.0368408225, 0.4294276536, 0.3031006455, -0.2027747929, 0.2296590954, -0.0535761788, -0.2370572984, -0.0487278923, -0.2013127804, 0.2020185441, -0.3556555212, -0.4386448264, 0.2825662494, -0.1113412753, -0.3914493024, -0.2349854857, 0.4713565707, -0.3060866892, -0.0637123063, -0.0891981646, -0.2912813425, 0.1065608785, -0.1391033828, -0.1137616932, 0.0909133106, 0.0534705892, -0.04485384, 0.0933408663, 0.1892965734, 0.0122022647, -0.5341047049, -0.1590792388, -0.2637725472, 0.031907931, -0.314948231, 0.1258902848, 0.3008849919, -0.2130639404, 0.2733724415, -0.215485841, 0.3534602225, 0.0385162197, -0.5208891034, 0.0226394702, -0.3992440403, 0.0477927849, 0.014536486, -0.2505373955, 0.2993896306, 0.301377207, -0.1759856939, -0.4163497388, -0.2557188272, 0.1383342147, -0.098720029, -0.1172996387, -0.232655555, 0.1805445999, -0.0896568224, -0.0827385858, -0.0147188371, -0.103746511, 0.0314406082, -0.1423357725, -0.1396665573, -0.2243329436, -0.0871974379, 0.161731869, -0.0342008844, 0.0619010702, 0.0406256169, 0.2935372591, 0.2934240103, 0.2970146835, 0.1757422835, 0.3449500799, 0.0146715213, 0.332871139, 0.5411557555, -0.086991407, 0.4087320864, 0.0927108601, -0.1379284561, 0.1165256649, -0.4787022471, -0.052269917, -0.4371345043, -0.2746165395, 0.4635877609, -0.1199735701, -0.3364786208, -0.6614845395, 0.4097929597, 0.0774948075, -0.1066132411, -0.1306642294, -0.0899978355, -0.1915473044, -0.0262282975, 0.3491606116, 0.7590569854, -0.1307473034, -0.0448023528, 0.0450960137, 0.2970723212, 0.6364305019, -0.2961920202, 0.0231919643, -0.6081208587, -0.1643238813, -0.1351263821, -0.0963243842, 0.2675542235, 0.3350673616, -0.4736582637, 0.4287882149, 0.1272197813, -0.1528365463, -0.1092243642, 0.3182112575, -0.1011965573, -0.1116530448, -0.2465976328, 0.1743550897, 0.0811896324, 0.0533644557, -0.226584062, -0.0237979442, 0.3006131649, 0.1477134526, -0.1413565129, -0.2302381247, 0.113275975, -0.0134399049, 0.1637125015, -0.31636253, 0.4583558142, 0.2964682877, 0.1053091064, 0.1151623875, -0.2490949333, -0.0775178745, 0.0167331677, 0.0995306894, 0.1977812946, 0.0973372832, 0.5548219681, 0.0285494514, 0.1249643788, 0.3597326875, 0.0011496509, 0.0049220691, -0.1626737565, -0.0178960692, 0.1485937983, -0.3025827408, -0.1348325163, 0.353195101, 0.0456092581, -0.0448979326, 0.1735304147, 0.3285718858, -0.0790312737, 0.4723214209, 0.0573696792, -0.1232925132, -0.1456578821, 0.2969472706, 0.0554351807, -0.0328128673, 0.3297347724, 0.0898148715, -0.1387702376, -0.2093993723, 0.2170036435, 0.2161767036, -0.2025471479, -0.1739449501, -0.0904433206, 0.2153180391, 0.371304512, 0.1287773401, 0.0677008927, -0.1450611055, -0.2804510593, -0.1708848625, -0.1562745571, 0.1291252077, 0.1656689793, 0.1216776967, -0.1157602519, -0.3182611167, 0.0446493812, 0.2772841454, -0.3766229153, 0.0246582832, -0.1277284622, 0.2063357234, 0.0793088377, 0.071180433, -0.2723811567, 0.3149994314, 0.0793945715, 0.1331260055, -0.2244426012, -0.1894850582, -0.0707060099, 0.0689679012, 0.0498474799, 0.0368007869, 0.120481059, -0.1745672971, -0.3809265792, -0.0627046674, 0.1292875707, -0.0888312086, 0.1195100024, 0.2746079862, 0.4228079021, -0.3086167574, -0.1767041385, -0.0247147884, 0.1111769453, -0.0180240665, 0.1713854373, 0.3880265951, -0.1527145505, -0.3117511272, -0.1822996438, 0.4856966734, 0.1304288357, -0.1920969933, 0.5589889288, -0.2203163356, 0.25408113, 0.2254093587, 0.3742897511, 0.7063236833, -0.1053048447, -0.1500674188, 0.2866021097, 0.2389709204, -0.0559889935, 0.0108430255, -0.3334940076, 0.0441770516, -0.0118427584, 0.3476693928, 0.0535374545, 0.0318179391, -0.0273019131, -0.2289728373, 0.1374921799, -0.2728146911, 0.0267365575, 0.3164139092, -0.0272723939, -0.0846007913, 0.4505916834, 0.2930503488, 0.1773283631, 0.4294738173, 0.044247698, 0.4079273045, 0.0812661275, 0.2050411999, 0.083911933, -0.1520219892, -0.0152879637, 0.2997795343, 0.2001308203, -0.0682497695, -0.1755221635, 0.4081973135, 0.3399288058, -0.0029966682, -0.2276378572, 0.2862159312, -0.0447304435, -0.3045305014, -0.2824453712, -0.4127625823, -0.2404182851, 0.0070389211, -0.4302237928, -0.010657846, 0.1558199227, -0.0350750461, 0.3782495558, -0.430077523, 0.2995273769, -0.1636083126, 0.0305787958, -0.3516190946, 0.2129738629, -0.1583887786, 0.0427321792, 0.12240576, 0.1994775534, 0.0034862892, 0.4258716702, -0.1050929055, -0.1495065689, -0.240067929, -0.121131435, 0.0517932922, 0.2002232373, -0.0645294338, -0.2436399013, 0.5186989903, 0.0383189283, -0.0564181358, 0.3666836023, 0.0617589653, 0.0538378023, -0.8294042945, 0.0074733193, 0.2230872959, -0.0308527015, 0.0967528746, 0.0852527097, -0.2967816591, -0.0864662826, 0.1451620311, -0.4347529113, 0.016929768, -0.1616191715, 0.1182417348, -0.2994233072, 0.5220739245, 0.1555448771, 0.1369379163, -0.0087490585, -0.2753683627, -0.2950524986, -0.0729636475, 0.1384555548, 0.0468281992, 0.019117035, 0.4880802333, 0.1408645511, 0.1854007244, -0.4162908196, -0.400313288, -0.487622112, 0.4227483273, -0.2096907049, -0.0771630034, -0.4475939572, 0.2959061265, -0.093042247, 0.1126062721, 0.0568130165, -0.3815962076, 0.012830181, -0.0074272053, 0.123792246, 0.0027808021, -0.3025194407, 0.3909681737, 0.0033505112, -0.0014865041, -0.0579906404, 0.1699959636, -0.292650789, -0.213474825, -0.0951057822, 0.3746215999, 0.029517984, 0.14590922, 0.0756729171, 0.1762552857, 0.0559028052, 0.0100224083, 0.0112853618, -0.051737655, -0.2107519656, -0.1740845144, -0.0035118698, 0.0619440079, -0.005360797, 0.5795054436, 0.0160583034, 0.1983936727, -0.1722985655, -0.0628055483, 0.2013781369, -0.1721062362, -0.0550859757, -0.2402300835, 0.1379253566, 0.2016526163, -0.2732509673, -0.1337055713, -0.0182906426, 0.411808461, 0.0264307614, -0.0824641138, 0.1440285593, 0.3610612452, 0.059081506, -0.2883606255, 0.2852183282, -0.025662899, 0.0656937808, -0.084489204, -0.2586916387 ]
https://github.com/huggingface/datasets/issues/815
Is dataset iterative or not?
Hi I am sorry for asking it multiple times but I am not getting the dataloader type, could you confirm if the dataset library returns back an iterable type dataloader or a mapping type one where one has access to __getitem__, in the former case, one can iterate with __iter__, and how I can configure it to return the data back as the iterative type? I am dealing with large-scale datasets and I do not want to bring all in memory thanks for your help Best regards Rabeeh On Mon, Nov 9, 2020 at 11:17 AM Quentin Lhoest <[email protected]> wrote: > datasets.Dataset objects implement indeed __getitem__. It returns a > dictionary with one field per column. > > We've not added the integration of the datasets library for the seq2seq > utilities yet. The current seq2seq utilities are based on text files. > > However as soon as you have a datasets.Dataset with columns "tgt_texts" > (str), "src_texts" (str), and "id" (int) you should be able to implement > your own Seq2SeqDataset class that wraps your dataset object. Does that > make sense ? > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/815#issuecomment-723915556>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ARPXHHYOC22EM7F666BZSOTSO66R3ANCNFSM4TPB7OWA> > . >
Hi I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not? could you provide me with example how I can use datasets as iterative datasets? thanks
217
Is dataset iterative or not? Hi I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not? could you provide me with example how I can use datasets as iterative datasets? thanks Hi I am sorry for asking it multiple times but I am not getting the dataloader type, could you confirm if the dataset library returns back an iterable type dataloader or a mapping type one where one has access to __getitem__, in the former case, one can iterate with __iter__, and how I can configure it to return the data back as the iterative type? I am dealing with large-scale datasets and I do not want to bring all in memory thanks for your help Best regards Rabeeh On Mon, Nov 9, 2020 at 11:17 AM Quentin Lhoest <[email protected]> wrote: > datasets.Dataset objects implement indeed __getitem__. It returns a > dictionary with one field per column. > > We've not added the integration of the datasets library for the seq2seq > utilities yet. The current seq2seq utilities are based on text files. > > However as soon as you have a datasets.Dataset with columns "tgt_texts" > (str), "src_texts" (str), and "id" (int) you should be able to implement > your own Seq2SeqDataset class that wraps your dataset object. Does that > make sense ? > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/815#issuecomment-723915556>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ARPXHHYOC22EM7F666BZSOTSO66R3ANCNFSM4TPB7OWA> > . >
[ -0.1699586809, -0.1714066267, -0.0689312965, 0.292388916, 0.1009494215, -0.0845248848, 0.3338167071, 0.2466904223, 0.1797013581, -0.1265342534, 0.0680098459, 0.1442487538, -0.3788858056, 0.4128890038, 0.1700597107, -0.0318090804, -0.0919880718, 0.0115780635, -0.6868848801, -0.1174980849, 0.0290251411, 0.1487231702, -0.2845768034, -0.0396397598, -0.092577219, -0.2904193103, -0.2832889557, 0.0088116238, -0.3676559627, -0.3626950085, 0.3347046077, 0.2895671129, 0.4941841364, 0.504362762, -0.000105784, -0.2772065103, 0.0528093725, -0.1300345659, -0.2246702909, -0.2106574178, -0.2412293106, -0.2051682174, 0.1279395372, -0.3685279489, -0.0445309877, -0.0859796107, 0.0379857682, -0.324301064, 0.3284459114, 0.0755738616, 0.2515380681, -0.2350955606, 0.0400568098, -0.0884436741, -0.0125629073, 0.1745031923, -0.0649379492, 0.0631418079, 0.2634145021, 0.1847222, -0.1005843133, -0.0201260261, 0.1368312538, -0.1201771647, 0.351840198, -0.1117137745, -0.1345445514, -0.3502723575, -0.0687429383, 0.17952317, 1.1247752905, -0.2266200632, -0.3315278888, -0.1051943153, -0.1077045202, -0.3843036294, 0.0519696772, 0.1613959074, 0.1376384646, 0.0931484476, -0.2176341712, -0.2320617139, -0.2463391274, -0.0989343747, -0.1977271587, -0.2185052037, -0.3083755374, 0.0284802094, 0.1063967571, -0.3117009103, -0.005823731, 0.1124448553, 0.1506895572, 0.284599185, -0.6823303699, -0.3560845852, -0.0164678302, 0.2891714275, 0.4668391347, 0.3724457622, 0.0903385207, -0.0460708775, -0.1429629773, 0.1361736357, 0.4857329428, 0.1536507159, 0.0914228633, -0.0331863537, 0.0548190884, -0.0040669413, 0.0111731626, -0.0994318947, -0.2033261508, -0.1721981168, 0.0453469232, -0.1871926934, -0.0844534412, -0.2436037958, 0.0123191662, -0.0572086945, -0.0694757029, -0.1390122324, 0.1348977536, 0.154720515, -0.0590075403, 0.1231461689, -0.1120081842, 0.0874820724, 0.018410245, 0.0013462676, -0.0628623366, 0.3680282235, -0.3997503221, 0.1252012104, -0.0149138896, -0.4068545103, 0.0481102727, 0.1276566684, -0.1941361874, 0.017159095, -0.0430658311, -0.2238800824, 0.1048340946, -0.0725570917, -0.2010731995, 0.2333637774, -0.2167593092, 0.0247236099, -0.3907792568, -0.1400686502, -0.3842141032, -0.0907068402, -0.1005616859, 0.1538313478, -0.2043939382, -0.2309737653, -0.1431590468, 0.3670680225, -0.0654408038, -0.1174172163, 0.0704510063, -0.1015899926, -0.2147194147, -0.1085750014, 0.0136709483, 0.4157606661, -0.7381811738, -0.0744675696, 0.0410951115, -0.0164120663, 0.1620524824, 0.4142246246, -0.1477149427, 0.2711118162, -0.2453811616, 0.1480751336, 0.3742135465, 0.0069462424, -0.269808799, 0.2698871493, -0.0603344366, 0.0054401313, 0.1192872971, 0.0076573929, 0.2325145155, -0.0825403929, -0.1676668227, 0.148536101, 0.0803863779, -0.1396998465, -0.1522192508, -0.1051232293, 0.1615739018, 0.0591260083, 0.0720556676, 0.2700532675, 0.1509656459, 0.2775503099, 0.2225804925, -0.1702855676, 0.2985444665, 0.0976855084, 0.2949632704, 0.0548571199, 0.0704542175, -0.2696399987, -0.2262955755, 0.2209365517, 0.1445793062, -0.001694668, 0.1903554499, 0.0931609944, -0.1611178517, -0.0879649371, -0.2035267204, -0.1719706506, 0.1766104698, 0.0991628543, 0.2849125862, -0.0842206478, -0.4242132902, 0.3340342045, -0.1232871041, -0.0024321852, -0.7031782866, 0.1637268662, 0.3130323291, -0.0872310624, 0.0873479098, 0.1098692492, -0.1471637189, -0.2829943895, 0.2350481153, 0.3226822913, -0.0962361991, 0.1296237111, 0.2510298193, 0.4881452918, 0.1757105589, 0.023346208, 0.2103523016, -0.4388235509, 0.2086122334, -0.0578278974, 0.0817303136, 0.4162716568, -0.2419125289, 0.1187949777, 0.111432448, -0.0289152097, 0.0098034712, -0.022269899, -0.4933258295, 0.2212378532, -0.0613502525, 0.0618069321, 0.2879596949, -0.0901601538, -0.2579861581, -0.1866322458, 0.4187478423, -0.0632647127, 0.0046468987, 0.2310644537, -0.2082143128, -0.0975413173, 0.0669205859, -0.0333192237, 0.3083373904, -0.0466551781, 0.2622877955, -0.0572663955, 0.1278200448, 0.0857334957, 0.1289166212, 0.0169783887, 0.2707152069, 0.0105033005, 0.0580161698, 0.0779035538, -0.2738216817, -0.2194689959, -0.0109610111, 0.1313216984, -0.0874418244, 0.1833934188, -0.402929455, -0.1049550772, -0.3309219182, 0.1238506138, 0.0387214087, 0.0642087832, -0.1184804961, -0.0965832546, 0.4058251977, 0.0656919256, -0.0229717996, 0.5276076794, 0.2944498658, 0.0137878368, -0.1694500446, 0.0357920676, 0.0432925634, 0.1796342731, 0.2374722064, -0.2035422176, 0.4684325159, 0.0262025818, 0.0783146098, -0.4120457768, -0.2755691707, 0.3278045654, -0.1076434329, 0.251553148, 0.3064383566, 0.004472672, -0.0206183959, -0.0463249385, 0.0341683216, -0.3438087702, -0.0050208573, -0.0264046472, -0.0640742332, 0.2453980148, 0.0882138014, -0.4056175947, -0.2220086604, -0.2096965313, 0.5581911802, 0.2181431949, 0.2245461792, 0.1635543108, -0.0632680878, 0.3151682019, -0.0617829189, 0.210788399, -0.2140311599, -0.5315762758, 0.3878295124, -0.2561229467, -0.2005531937, 0.0406559743, -0.0047408734, 0.5716427565, 0.0240639783, -0.3571440578, 0.0166933704, 0.0419940837, 0.1119482517, 0.187351048, 0.2401828766, 0.2688874006, -0.2422917932, -0.02873859, 0.0596928149, -0.092432186, 0.1589220762, 0.1621714383, 0.3196930885, 0.4330103695, 0.5967091322, 0.0411421843, 0.5284713507, 0.3443605006, -0.1735188067, 0.2482475042, -0.0325031281, -0.2144197077, -0.1131132841, -0.2672351897, 0.2950755954, -0.3456628621, -0.2737656534, 0.19294554, -0.1302108318, -0.307544142, -0.1988608092, 0.3118447959, -0.1982479692, -0.0239247214, 0.0483290069, -0.1083722934, 0.1205378175, -0.2476439923, -0.1920785606, 0.0079596033, 0.0128113003, 0.0604691468, 0.1921095848, 0.2455520481, 0.0608974807, -0.6099678278, 0.0582392141, -0.3910827041, 0.0739469528, -0.280895412, 0.0219321158, 0.1650060117, -0.241587013, 0.2220959961, -0.1012187675, 0.5630610585, 0.109844245, -0.5177435279, -0.0360051319, -0.4384683669, 0.0871369019, 0.0322223157, -0.2800096869, 0.298327148, 0.2503446341, -0.1287990957, -0.4448177814, -0.2425333261, 0.1333975047, -0.0708026066, -0.0454370342, -0.3161968291, 0.1628020257, -0.037181206, -0.1041880623, 0.0087771118, -0.086375922, 0.0807396695, -0.1742276549, -0.1564789712, -0.1778128892, -0.0205601472, 0.2238784134, -0.0342713222, 0.1213210449, 0.0417349115, 0.2217038423, 0.40376091, 0.3132400513, 0.2758370638, 0.4043902457, 0.0106409537, 0.2390817702, 0.5203077793, 0.0507807694, 0.3208160996, 0.1847973317, -0.1532653272, 0.0453218147, -0.2774812281, 0.0296794046, -0.6391441822, -0.2000180632, 0.4938611984, -0.0547900386, -0.3791227043, -0.6322647929, 0.5206335187, 0.111702323, -0.0500366576, -0.0322701745, 0.0409661196, -0.2090245783, -0.1775488704, 0.2071643174, 0.8239885569, -0.2135825306, -0.0438239425, 0.1120211259, 0.415019244, 0.6200090647, -0.2753096521, 0.001793033, -0.4699941278, -0.1857349575, -0.1635932028, -0.129805401, 0.254149437, 0.2704182565, -0.3658441007, 0.4825978875, 0.1902742386, -0.0750204548, -0.1667437404, 0.321743995, -0.1960280836, -0.2429679632, -0.4122357666, 0.1731427461, 0.0524773709, 0.137844339, -0.1709503382, -0.048519928, 0.3666976392, 0.062763676, -0.1055113003, -0.2299224734, -0.1149457172, -0.137687698, 0.2727748156, -0.2581341565, 0.4700641036, 0.2415487915, 0.0990085304, 0.0317003913, -0.2596078217, -0.115843378, -0.080615513, 0.10892535, 0.1270155013, 0.0883720294, 0.6001086235, 0.0133093344, 0.1390306503, 0.2249470204, 0.0109509761, -0.0401244797, -0.1303883344, -0.0579482131, 0.1187091246, -0.4455761909, -0.0670793355, 0.2809090912, 0.0769585073, 0.0015688582, 0.1574688852, 0.3391578197, -0.0816183463, 0.3666170239, 0.1040874943, -0.0705437362, -0.1703124642, 0.3324106038, 0.0692652836, -0.1404188424, 0.4218544662, 0.1557647139, -0.2226468027, -0.1518331766, 0.1414207071, 0.3399429321, -0.281391561, -0.053952571, -0.0102002742, 0.1473528743, 0.2052129507, 0.236608237, 0.1382708699, -0.1978293806, -0.208597362, -0.1866782904, -0.183869794, 0.1925513893, 0.0223176349, 0.2390882969, -0.0170478597, -0.292116791, 0.1026851162, 0.145133093, -0.3657819927, 0.0849660859, -0.1126860976, 0.149884522, 0.1255358309, -0.014215989, -0.0405603349, 0.2896205485, 0.0711739659, 0.1406240165, -0.2981960177, -0.2043914944, -0.051988665, 0.0834468901, 0.0235460456, -0.0522925332, 0.1546592414, -0.1482753009, -0.2841723561, -0.1003717557, 0.2105147988, -0.1536626816, 0.0982100293, 0.2074410468, 0.3586411774, -0.3746781349, -0.1585952193, 0.0784566849, 0.1911980361, -0.0817002654, 0.1215366274, 0.3406085968, -0.194048956, -0.3026096225, -0.2282730788, 0.510846734, 0.2922613919, -0.1336013973, 0.4713010192, -0.3304159045, 0.0564011931, 0.2789522111, 0.5351672173, 0.6012009978, -0.1514585167, -0.0880291387, 0.1812181175, 0.2208257318, -0.0255819783, 0.1370269954, -0.1873168349, 0.0337841287, 0.0326964259, 0.3433176875, 0.1192838624, 0.0253991969, 0.1265499145, -0.1984068602, 0.1594919264, -0.275927186, 0.0862491578, 0.2314589173, -0.1305209398, -0.0285996627, 0.5951687098, 0.3472753763, 0.0456608571, 0.3939050138, -0.0250833519, 0.2953465581, -0.0612821579, 0.256972909, 0.0952453241, -0.3001563847, -0.084578529, 0.3915068805, 0.0978900194, 0.0029346903, -0.2082814872, 0.551761508, 0.1346992403, -0.1131888255, -0.2175141871, 0.2635158896, -0.1359242797, -0.2410646379, -0.2839135528, -0.3782041967, -0.2725360394, -0.0196677148, -0.4187791049, -0.091732204, 0.2842943072, -0.0472546369, 0.2933643758, -0.5206660628, 0.1271157265, -0.1305072904, 0.0793395191, -0.3140776157, 0.332092315, -0.1968689412, 0.0830755755, 0.0245196726, 0.3627673388, 0.0794945955, 0.344009012, 0.0241477732, -0.0531606451, -0.126097545, -0.0811888799, 0.1318767667, 0.237900272, -0.1564374268, -0.2195758075, 0.4602531195, 0.070640929, -0.0613158979, 0.2296071202, -0.1103059277, 0.143241927, -0.8062824011, -0.0414237417, 0.1084202081, 0.1404688358, -0.064956747, 0.0720156506, -0.4094020724, -0.0231504589, 0.1770360619, -0.4590132535, 0.0971073806, -0.1491705775, 0.1216286048, -0.2849752605, 0.4401842058, 0.2593485415, 0.0721053109, -0.0150863407, -0.1601328552, -0.2753870785, -0.0681058094, 0.1776993126, 0.081450142, -0.03269976, 0.4383943081, 0.1972637922, 0.1426796615, -0.2345994413, -0.5380965471, -0.3567991555, 0.3172576725, -0.2102692127, -0.0598601662, -0.3488932848, 0.3244602382, -0.0278826747, 0.0478279144, 0.1658545434, -0.2729411721, -0.0488030463, 0.0191646069, 0.2362480611, -0.0749063641, -0.3555979729, 0.3192620873, 0.1284681857, 0.038389381, -0.0466247834, 0.0327395611, -0.3662335873, -0.3125423193, -0.129994303, 0.2862896621, -0.0575803556, 0.2802177966, -0.0103683146, 0.0820517838, -0.078356199, 0.0465468317, -0.0317770243, -0.0440901257, -0.2918260694, -0.1778579354, -0.0064859074, -0.104586035, 0.0302177314, 0.5602522492, 0.0226526484, 0.1567507684, -0.1889247149, -0.1842006743, 0.2402459234, -0.2860485315, -0.0586622842, -0.0946223661, 0.0349202231, 0.2588537037, -0.1969831139, -0.3583437502, 0.1509938091, 0.3538048565, 0.0106140496, -0.0384421907, 0.1908852607, 0.2333614379, 0.0560336187, -0.2807217538, 0.2072653919, 0.0476630405, 0.0948214158, 0.0134484135, -0.2773855925 ]
https://github.com/huggingface/datasets/issues/815
Is dataset iterative or not?
`datasets.Dataset` objects are both iterative and mapping types: it has both `__iter__` and `__getitem__` For example you can do ```python for example in dataset: # do something ``` or ```python for i in range(len(dataset)): example = dataset[i] # do something ``` When you do that, one and only one example is loaded into memory at a time.
Hi I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not? could you provide me with example how I can use datasets as iterative datasets? thanks
57
Is dataset iterative or not? Hi I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not? could you provide me with example how I can use datasets as iterative datasets? thanks `datasets.Dataset` objects are both iterative and mapping types: it has both `__iter__` and `__getitem__` For example you can do ```python for example in dataset: # do something ``` or ```python for i in range(len(dataset)): example = dataset[i] # do something ``` When you do that, one and only one example is loaded into memory at a time.
[ -0.1967026293, -0.4120612442, -0.1522585303, 0.1939140111, 0.0503937863, 0.0091605261, 0.2521877289, 0.0610390194, 0.1378219873, -0.0013327032, 0.2277509421, 0.2708900869, -0.4278081954, 0.1769475043, 0.2024409771, -0.0889549628, 0.01298285, 0.0472291932, -0.6187961102, -0.0078369286, 0.1369360983, -0.0778278634, -0.3001039624, -0.1672136486, 0.0571091026, -0.4246666431, -0.3100515008, -0.185556531, -0.1906789243, -0.4267381728, 0.2655523419, 0.1786021888, 0.4127586782, 0.5190780163, -0.0001068608, -0.2087261379, 0.1724296957, -0.0724192858, -0.157053709, -0.2525891662, -0.1945835501, -0.1432825774, -0.013275817, -0.3930829763, -0.0778560638, -0.2569579184, 0.1618878692, -0.3726499379, 0.2177617252, 0.0823900178, 0.2613909841, -0.2673079073, 0.0140860248, -0.0343470313, 0.0291363988, 0.1420092136, -0.1895928681, 0.3146387339, 0.2581835687, 0.2592707574, 0.0707307681, -0.0838772431, 0.1835327148, -0.0293514393, 0.5176251531, -0.1810381711, -0.0284577552, -0.3781053126, -0.1316803843, 0.1800667048, 0.9738003016, -0.3325408995, -0.1805680841, 0.0925093293, 0.0783947781, -0.4161493778, -0.0789299384, 0.2087811232, 0.0914726481, 0.1689748317, -0.3774550259, -0.2158585638, -0.2636706233, 0.1569271088, -0.0114710024, 0.0202190187, -0.1483395845, 0.1454470605, 0.14696908, -0.2227168679, 0.3494541943, -0.0374089405, 0.0956722051, 0.2934467793, -0.3548887968, -0.3146658242, -0.0452601537, 0.4222280085, 0.4786589146, 0.3207342327, 0.2023728639, -0.1110486984, -0.2233712822, 0.2842499912, 0.4751825035, 0.0039901133, -0.0489846691, 0.093427524, 0.1161992624, -0.0192664135, -0.1462731808, -0.0210603643, -0.2141522467, -0.0789511874, 0.3076207042, -0.2920463681, -0.1230148822, -0.0697308332, 0.0273175631, -0.1093936712, -0.2524137795, -0.194287613, 0.2612031698, 0.2329006791, -0.1484912336, 0.1340865791, -0.323318094, -0.0912750959, 0.1094380096, 0.2910439968, -0.044973474, 0.4422124028, -0.5005633831, 0.023853397, -0.0357489772, -0.2278591245, 0.2085991204, 0.153203249, -0.1350089163, -0.107849896, 0.1483567655, -0.3669770062, 0.4331789017, -0.035475865, -0.1922497749, 0.0064362255, -0.2999882996, 0.1547480971, -0.3955388367, 0.0480351001, -0.2260350436, 0.0580673143, -0.0429609157, 0.1644731909, -0.2056890577, -0.2527202368, -0.0254765917, 0.3109799027, 0.1215807348, -0.1092040911, 0.1143792644, -0.2127531767, -0.1631636173, -0.3115357459, 0.07650996, 0.2239907235, -0.3857713044, 0.1330491751, 0.03149461, 0.0469470769, 0.1477141529, 0.2904067338, -0.2406656891, 0.2274700552, -0.161624983, -0.1182232797, 0.4186880589, -0.1354308426, -0.1791635454, 0.3351469338, 0.201632306, -0.0980947316, 0.068159759, 0.2971671522, -0.0122088585, 0.0224208869, -0.2033889741, 0.2134359628, 0.0243257526, -0.1471538991, -0.002353823, -0.0215296131, 0.172394082, 0.0104992902, 0.0406941585, 0.2140857279, 0.0902529731, 0.1390066892, 0.2731759846, -0.239155978, 0.1900432259, 0.2386133075, 0.3220143318, 0.0492030755, 0.094558306, -0.4822584093, 0.0254880767, 0.1556338817, 0.1861524731, -0.1578350663, 0.2956630588, -0.0067586913, -0.1262245625, 0.0798643157, -0.1618827283, -0.0565618351, 0.125680536, 0.066336453, 0.2056296915, -0.090157412, -0.5047394633, 0.099819921, -0.203054741, -0.2080513388, -0.5096103549, 0.1290677041, 0.22708489, -0.0779468417, 0.0327604637, 0.0152862919, -0.2983107865, -0.4979237318, 0.2777374387, 0.3969453573, 0.156083256, -0.0079220599, 0.101959981, 0.3819929659, 0.3212148249, -0.1746242344, 0.1462096274, -0.1991004348, 0.2882046402, -0.0181857813, 0.1007043868, 0.4194482267, -0.2194591165, 0.0578731336, 0.3707639873, -0.167239204, 0.0571276024, -0.0573671758, -0.4465526938, 0.124352254, -0.1040654331, -0.1959185004, 0.4206409454, -0.1265027523, -0.3818365633, -0.323495388, 0.4590499997, -0.0309018567, 0.0291667785, 0.0501577295, -0.1086962298, -0.0667856038, 0.0552263595, 0.0299286302, 0.3643387854, -0.0167236887, 0.2228469551, 0.0211026557, 0.0027692995, 0.1936893463, 0.1838861108, -0.0213654768, 0.351457417, -0.1670279801, -0.0330472365, 0.0232650153, -0.2684539557, -0.3299871683, 0.0165295973, 0.1501982063, 0.0575451478, 0.2963262796, -0.4058505297, -0.1907159388, -0.3694968224, -0.1114166975, 0.2052115351, 0.1090966314, -0.3205466568, 0.0424286798, 0.4008630514, 0.1220254675, 0.0850845873, 0.2148123682, 0.0583882406, 0.0247808751, -0.0603264086, 0.0091479123, -0.1000981107, 0.1860866249, 0.2878305912, -0.2173032612, 0.6166128516, 0.0909845605, -0.0911396742, -0.4059430957, -0.1621186584, 0.146819219, 0.0502732359, 0.0921220034, 0.2490786016, -0.0362274423, -0.1754502356, -0.0418330021, 0.0035599917, -0.4967637658, 0.1590123028, -0.1841690242, -0.1201964393, 0.0413620993, 0.0619919524, -0.192646414, -0.3554750085, -0.1489827931, 0.324544251, 0.3947946727, 0.1792880744, 0.1702628732, 0.0526029766, 0.3306015134, 0.1137493402, 0.0347364247, -0.0312973522, -0.3998983502, 0.1823968291, -0.3657859564, -0.2789265215, 0.0530235693, 0.0544121899, 0.4394405484, 0.1919810176, -0.3579131067, -0.0264597628, -0.0615792312, 0.0533850789, 0.0929170251, 0.394934237, 0.091350019, -0.2753693461, -0.0266986489, -0.044826977, -0.0533394553, 0.0777138099, -0.0599415898, 0.3174923658, 0.5418898463, 0.3369605839, -0.0612846762, 0.5106341243, 0.3213930726, -0.4664492607, 0.381926626, -0.2949080169, -0.2295009792, -0.1006761864, -0.1804188788, 0.1238948107, -0.2533702254, -0.2882225215, 0.1376106888, -0.0853164494, -0.50462991, -0.2860322893, 0.1899848282, 0.0075039282, 0.0854133815, -0.0680204183, -0.4584965706, 0.2238843441, -0.3123107553, -0.1672613621, -0.0839590058, -0.0351222418, -0.0037935642, 0.1022481322, 0.1063193604, 0.0255275257, -0.6367226243, -0.078071408, -0.2195497155, -0.0160044339, -0.2293445766, 0.2284073979, 0.2031736374, -0.1550875604, 0.2090586871, -0.270405829, 0.3464507461, 0.0255894735, -0.3695512712, -0.0154662281, -0.3388347626, 0.1033636406, 0.1139867157, -0.2592839003, 0.5021616817, 0.1661729217, -0.0499615818, -0.0905009061, -0.2015229762, 0.25956285, -0.0000616704, 0.0583488345, -0.4264299572, 0.0912700966, -0.1913369298, -0.0521197468, -0.1042875275, -0.0256588049, -0.1569270492, 0.0598535426, -0.2274881601, -0.23878555, 0.0925382599, 0.2368406951, -0.0191252567, -0.0704300106, 0.0218054336, 0.1799087077, 0.1561616808, 0.2901680768, 0.2923649848, 0.2780875564, -0.0688935667, 0.0968551263, 0.2517822087, 0.2262894958, 0.3292232752, -0.0746604651, -0.0640474632, 0.0011871929, -0.0950278491, -0.0137508614, -0.4295495152, -0.0702774376, 0.3990365565, -0.0285464525, -0.6849341393, -0.8001815081, 0.5862551928, 0.2033586502, -0.0424134657, 0.401037395, -0.1833679676, -0.1230547354, -0.0882995427, 0.1937610805, 0.7383264899, -0.1139420643, 0.0490075611, 0.144442305, 0.3099935055, 0.4590799212, -0.0163731184, -0.0530820377, -0.4539551437, -0.1515324116, -0.1391628832, -0.1917885989, 0.2685106993, 0.1864002347, -0.2638261914, 0.3906112909, 0.101713635, 0.0696835443, -0.1579682082, 0.300853014, -0.260969609, -0.0858928636, -0.3324449658, 0.2069454789, 0.1299760044, 0.1009470299, -0.1899980903, -0.0860719904, 0.3169945776, 0.2821397483, -0.1255444288, -0.1276728213, -0.1094581485, 0.0689666718, 0.1239277422, -0.2988599837, 0.4001437426, 0.2613202035, 0.1422266513, -0.0604150221, -0.1662524194, 0.0632449836, -0.0975130945, -0.038340643, 0.0007145554, 0.1794935465, 0.4892553091, -0.0808951706, -0.0325545594, 0.2623422146, 0.1185250208, -0.0352166258, -0.1141912192, 0.1386707723, 0.2433787584, -0.1255543232, -0.2266975045, 0.4080353677, -0.0530634001, 0.0059410408, 0.1651063263, 0.2601030469, -0.1499895602, 0.4505732358, -0.0252894554, -0.0643578768, -0.187654525, 0.1663486212, 0.2450577766, -0.0924245268, 0.2225719541, 0.0322862864, -0.1779786348, -0.2087043673, 0.2494397461, 0.2526233196, -0.0492022708, 0.0156586971, 0.0679650828, 0.270388037, 0.2758462131, 0.1312401593, 0.1233001873, -0.1012086123, -0.3609983325, -0.1127120405, -0.3696658909, 0.0109424796, 0.0922777504, 0.2632910609, -0.0785030648, -0.2278163284, 0.2112399042, 0.0889502913, -0.3270403445, 0.0319065638, -0.1110571995, 0.1568697989, 0.0402877331, -0.0438272879, -0.2527569532, 0.2932382822, 0.1048412248, -0.0036787398, -0.3037312627, -0.2058589756, -0.0077898214, 0.0933291391, -0.0342216454, -0.1223047078, 0.1276139468, -0.3852508664, -0.2536256313, -0.1441389769, 0.1645809263, -0.0073972843, 0.0032500974, 0.2268620878, 0.230196774, -0.3531455994, -0.0700022504, -0.0088676913, 0.120204486, -0.1476110518, 0.1063462794, 0.2929707468, 0.1295568943, -0.3645479679, -0.4189192355, 0.2302252054, 0.2601173818, -0.226623401, 0.4598793983, -0.1836038977, 0.2835591435, 0.1864103079, 0.3899705112, 0.5834115744, -0.1510752738, 0.0721962377, 0.1697528809, 0.2021751702, -0.0104208114, -0.0618004017, -0.0680198073, 0.069342874, 0.0310971811, 0.1741319746, 0.1325964332, 0.1397888362, -0.3049247861, -0.3196583688, 0.1743731201, -0.4326552451, 0.0685202256, 0.3156370521, -0.0505417921, -0.0920171589, 0.3491540849, 0.5144850016, 0.2512197196, 0.492308557, 0.2163976133, 0.5837100148, 0.1487665921, 0.0795082673, 0.1027697474, -0.2135764062, -0.0669473708, 0.3401176035, 0.1138994396, 0.1707929224, -0.0026381142, 0.2510222197, 0.2171028405, -0.143894583, -0.1152104884, 0.1553004682, 0.0560763814, -0.2364281118, -0.2033428103, -0.1576824039, -0.1710399538, -0.0708009303, -0.3268952668, -0.0628485754, 0.3587142229, 0.096518755, 0.2263884693, -0.3642049432, 0.4352074564, -0.10421592, 0.332823813, -0.3009595573, 0.28571859, -0.2362212092, 0.1262672693, -0.3357149363, 0.1477479339, 0.1616246551, 0.4522747099, 0.0784209371, 0.0637695193, -0.1715227962, -0.1346343756, 0.0348257385, 0.1807406843, 0.0055235117, -0.1503405869, 0.4830391407, 0.0787824914, -0.0299641714, 0.4317764044, 0.0392983146, -0.0490112044, -0.7619783878, 0.0308074336, -0.0738830715, -0.1040822566, 0.0386140458, 0.2058886886, -0.3588982224, 0.0310156737, 0.34949857, -0.5118246675, 0.01128483, -0.1281151921, 0.0908081606, -0.4438218474, 0.5806399584, 0.2358209491, 0.3683759868, 0.0646320283, -0.3547824621, -0.2148440778, -0.0000028871, -0.0646088123, 0.033011537, 0.002392523, 0.2600567639, 0.0479097627, 0.0815374255, -0.2101937234, -0.401511997, -0.3318652511, 0.4715473354, -0.140726909, -0.1185668185, -0.5041666031, 0.4238244295, 0.0688325167, -0.1372979134, 0.0028385625, -0.476955533, -0.0566718578, -0.0586552396, 0.1339171976, 0.1711047292, -0.2130335271, 0.4344694614, 0.0502152555, 0.1733377576, -0.0409563929, 0.050623782, -0.2002866268, -0.2317833751, -0.0560714938, 0.42079404, 0.0936154053, 0.0182343796, -0.148052454, 0.030052837, 0.1506403536, 0.0072689047, -0.0172870718, 0.0251363199, -0.0987886786, -0.4087801576, -0.0384171754, -0.0141571853, 0.161266908, 0.7226046324, -0.1982646734, -0.0007432922, -0.1763435602, 0.0555889122, 0.190826878, -0.1202913672, -0.1176183298, -0.1891215146, -0.0056445459, 0.093123138, -0.2571721077, -0.4581371546, 0.1177975088, 0.4690546989, -0.0787138641, -0.199742496, 0.3155785203, 0.2660447061, 0.0640995055, -0.0137257613, 0.3568967581, -0.1605867296, -0.1009708121, 0.0214614924, -0.264600426 ]
https://github.com/huggingface/datasets/issues/815
Is dataset iterative or not?
Hi there, Here is what I am trying, this is not working for me in map-style datasets, could you please tell me how to use datasets with being able to access ___getitem__ ? could you assist me please correcting this example? I need map-style datasets which is formed from concatenation of two datasets from your library. thanks ``` import datasets dataset1 = load_dataset("squad", split="train[:10]") dataset1 = dataset1.map(lambda example: {"src_texts": "question: {0} context: {1} ".format( example["question"], example["context"]), "tgt_texts": example["answers"]["text"][0]}, remove_columns=dataset1.column_names) dataset2 = load_dataset("imdb", split="train[:10]") dataset2 = dataset2.map(lambda example: {"src_texts": "imdb: " + example["text"], "tgt_texts": str(example["label"])}, remove_columns=dataset2.column_names) train_dataset = datasets.concatenate_datasets([dataset1, dataset2]) train_dataset.set_format(type='torch', columns=['src_texts', 'tgt_texts']) dataloader = torch.utils.data.DataLoader(train_dataset, batch_size=32) for id, batch in enumerate(dataloader): print(batch) ```
Hi I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not? could you provide me with example how I can use datasets as iterative datasets? thanks
113
Is dataset iterative or not? Hi I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not? could you provide me with example how I can use datasets as iterative datasets? thanks Hi there, Here is what I am trying, this is not working for me in map-style datasets, could you please tell me how to use datasets with being able to access ___getitem__ ? could you assist me please correcting this example? I need map-style datasets which is formed from concatenation of two datasets from your library. thanks ``` import datasets dataset1 = load_dataset("squad", split="train[:10]") dataset1 = dataset1.map(lambda example: {"src_texts": "question: {0} context: {1} ".format( example["question"], example["context"]), "tgt_texts": example["answers"]["text"][0]}, remove_columns=dataset1.column_names) dataset2 = load_dataset("imdb", split="train[:10]") dataset2 = dataset2.map(lambda example: {"src_texts": "imdb: " + example["text"], "tgt_texts": str(example["label"])}, remove_columns=dataset2.column_names) train_dataset = datasets.concatenate_datasets([dataset1, dataset2]) train_dataset.set_format(type='torch', columns=['src_texts', 'tgt_texts']) dataloader = torch.utils.data.DataLoader(train_dataset, batch_size=32) for id, batch in enumerate(dataloader): print(batch) ```
[ -0.3016708493, -0.391623646, -0.1244997978, 0.4045021534, 0.1218657345, 0.0815263838, 0.234580487, 0.1949106604, -0.0445439443, -0.0258444548, 0.0440254696, 0.3346887231, -0.3416886032, 0.0193575341, -0.0354218781, -0.1522007287, -0.1350664943, -0.1091264933, -0.5712971687, -0.0941946283, 0.1644258648, -0.0607800744, -0.3945016265, -0.1852225959, -0.0154444044, -0.4847177863, -0.2174984068, 0.0037642799, -0.1276627183, -0.3302405477, 0.1825329512, 0.0282141939, 0.442445606, 0.633404851, -0.0001107979, -0.1362617016, 0.1161460802, -0.1768819094, -0.1535313874, -0.3136424422, -0.0109615475, -0.1165111661, -0.0174043309, -0.4819852412, -0.1775071621, -0.1292107254, 0.0617716126, -0.5960789323, 0.3605304062, 0.1747679263, 0.1965258718, -0.160891518, 0.0373761244, -0.0517342389, 0.1932127178, 0.1550514102, -0.0881122351, 0.219696179, 0.4312992394, 0.2817697525, -0.0150333764, 0.0472455621, 0.0915915519, -0.0721105933, 0.1525731534, 0.0000495259, -0.2120263427, -0.4927813113, -0.0110820085, 0.1845875233, 0.9366428256, -0.2746396065, -0.2969925404, -0.035129413, 0.0168177243, -0.1741648018, -0.0689115599, 0.2412098348, 0.0703456029, 0.1441497654, -0.3334395885, -0.1051559076, -0.1860531121, 0.2216385305, 0.0751472339, 0.2418796718, 0.003030427, 0.2312334776, 0.0462206714, -0.2195009291, 0.4654041231, -0.1329296082, 0.0892365575, 0.3992211819, -0.4541887939, -0.1844449043, -0.0349401422, 0.2144802809, 0.4375277758, 0.2616202831, 0.1651032269, -0.1079957858, -0.2650260925, 0.2307072878, 0.2453350276, 0.0775088966, -0.0132842744, 0.2721358836, 0.0922987461, -0.1410164684, -0.010839818, 0.022103386, -0.261515975, -0.4489364326, 0.084684208, 0.0368223637, -0.1015719548, 0.0349570736, -0.0030914389, -0.2123387605, -0.2890575528, -0.2483498007, 0.35088709, 0.2104177624, -0.2113461792, 0.0223542731, -0.1101628765, 0.1763291806, 0.2847447991, 0.3477298617, -0.0633523986, 0.4023620784, -0.46227476, -0.0274973754, 0.0432804152, -0.3923405111, 0.1161288098, 0.1986757368, -0.1707923859, 0.0677614287, 0.1151254475, -0.3227118552, 0.4243600368, -0.1387715936, 0.0229634084, 0.0071932622, -0.0757017657, 0.2180230319, -0.3226844966, 0.0705005452, -0.4101579189, -0.0100665772, -0.182400763, 0.124595046, -0.0685806051, -0.1054997891, -0.1791859269, 0.1854765713, 0.2596292496, -0.1445376724, 0.2509697378, 0.0507899113, -0.1488245428, -0.2530644536, 0.0971312672, 0.3796824217, -0.3504396975, 0.0436405875, 0.3202686906, 0.1515733004, 0.1543486714, 0.3483068645, -0.3904182017, 0.2539188266, -0.3402405083, -0.1352607906, 0.7417567968, -0.3635095656, -0.1803584248, 0.2364929169, -0.0599688999, -0.2498017699, 0.3100492358, 0.0061492934, -0.0729997009, 0.0717942789, 0.1928378493, 0.1711914241, 0.0321157649, -0.1606429964, 0.0101481909, -0.0285593607, 0.3351588845, -0.0254404061, 0.0790984482, 0.1570300609, 0.2761318684, -0.0619236566, 0.4041700661, -0.2901452482, 0.1881706268, 0.2839532197, 0.0180365406, -0.1514429301, 0.0510789752, -0.1703204811, -0.2152459174, 0.273748219, 0.0589004196, -0.1949934363, 0.1100766808, 0.0161978956, 0.0288130138, -0.1400697678, -0.2077916861, -0.0491938144, 0.0650476962, 0.1235970706, 0.2050933987, -0.2752660811, -0.343231082, 0.0536301173, -0.2269365638, -0.1522424668, -0.5957727432, 0.2830941975, 0.1569337547, -0.1839175969, 0.0886458606, 0.1052315459, -0.0220425557, -0.3450834453, 0.1771088094, 0.3911455572, -0.0403562859, 0.1695436388, 0.1876875609, 0.2503105998, 0.3719842434, -0.043576166, 0.154435575, -0.3036034107, 0.2019958198, -0.164417237, 0.1088792831, 0.41755566, -0.1789999753, 0.1390862912, 0.2945195138, -0.1620005369, 0.0500431322, 0.0338670947, -0.3456020951, 0.0951105356, -0.1028610915, 0.0285398848, 0.4338845313, -0.2218486369, -0.4662245512, -0.2694393098, 0.3125096262, 0.0944651067, 0.0498282872, -0.0394716486, -0.1615008265, 0.0070869965, 0.2433334887, -0.258115083, 0.4800899327, 0.0130744511, 0.242373839, 0.0065550003, 0.1503531337, 0.0643306673, 0.1935146302, 0.0452768169, 0.3508189321, 0.1702411771, 0.2046919763, 0.1170993447, -0.0401205756, -0.3137163222, 0.0163486805, 0.0010909956, -0.1328433156, 0.2385167331, -0.2977776527, 0.0241628233, -0.4486708939, -0.1598944515, 0.1747912914, 0.0770024136, -0.3366316855, 0.0492516793, 0.4261989295, 0.1866769344, 0.1212244779, 0.0822212026, 0.326572448, -0.1102489233, -0.0354741327, -0.1402105987, 0.0021172087, 0.1468574554, 0.2564621866, -0.3135668933, 0.5114418864, 0.0465419926, -0.0001487332, -0.5351345539, -0.1205405295, 0.3685365915, -0.1301973313, -0.0973264948, 0.2938464284, -0.1601389498, -0.120971702, -0.1281895787, 0.0786626339, -0.245306015, 0.0866097584, -0.1101556867, -0.2211601734, -0.0738408417, 0.0910160467, -0.3345848918, -0.513857007, -0.2599235177, 0.2739360631, 0.3042733371, 0.1782876253, 0.1947638094, 0.1513936818, 0.4163946807, 0.2766898572, 0.1746634394, -0.1345503479, -0.5078074336, 0.4365924895, -0.4433952868, -0.3223356605, -0.067111358, -0.089114368, 0.4015447795, 0.2927372456, -0.2275420874, -0.0919914171, 0.0641634911, 0.2196813524, -0.0644263253, 0.4492757916, 0.3778801262, -0.1747943163, -0.0332649685, -0.0464868918, 0.1320674568, -0.0183787104, 0.0769091472, 0.5140585303, 0.4622370303, 0.319209069, 0.0564481169, 0.7233352065, 0.2368763834, -0.4231692851, 0.4203617275, -0.2912540734, -0.2060449719, -0.1417577118, -0.3200322688, 0.1163159832, -0.2672156394, -0.2039099336, 0.0829528868, -0.2075925022, -0.4504370391, -0.363099575, 0.161589101, -0.1345400363, -0.0364124589, -0.0008958777, -0.4431044757, 0.1519378424, -0.3746410012, -0.0247341562, -0.1444495916, -0.0664898306, 0.0708444789, -0.048118569, 0.0268071406, -0.0074907029, -0.5318668485, -0.0776730478, -0.2226397097, 0.2868031859, 0.0426199958, 0.0928511396, 0.3301161826, -0.103371866, 0.1380603313, -0.1811050773, 0.5042601228, -0.0617236905, -0.2357167155, -0.0273925904, -0.2021424174, -0.0198551528, 0.0730183199, -0.2566610575, 0.4214024842, 0.3614584208, 0.123688072, -0.1362918019, -0.2726890147, 0.1096014231, -0.2279166579, 0.1190549582, -0.2491508126, 0.0845933557, 0.0185752697, -0.2972391248, -0.1471710205, 0.08121638, 0.0196296629, 0.0006558704, -0.193122983, -0.2530009151, 0.0150100254, 0.1761224866, -0.0630650744, 0.1344305426, 0.1655201614, 0.1640263945, 0.3385926485, 0.4019489586, 0.3491042554, 0.4574621022, -0.0497175008, 0.1240924969, 0.3840077817, 0.1247082949, 0.3458280861, 0.1229034066, -0.1199509576, -0.0857485756, -0.3532604575, -0.0542008765, -0.3154108524, -0.0091282763, 0.3837420046, -0.0855125189, -0.6794344783, -0.7689769268, 0.4015050232, 0.2226501852, -0.1336444616, 0.3440216184, -0.3819897771, -0.3183283508, -0.0910502821, 0.2710524201, 0.8402194977, 0.0322995819, 0.1525251269, 0.0226314235, 0.336640507, 0.2843590081, 0.0305874273, 0.0468822829, -0.5196399093, -0.1365145594, -0.241665259, -0.3081583381, 0.2897693813, 0.2748751342, -0.3071197271, 0.4338350296, -0.0896795392, 0.2778545022, -0.1443514526, 0.2908052802, -0.1449636519, -0.2122603208, -0.3896152973, 0.0986082256, 0.1021100208, 0.1109261438, -0.1567331851, -0.1271935552, 0.0333912112, 0.0483813621, -0.0917540267, -0.0442283005, -0.5501807332, 0.2739234567, 0.1598562598, -0.5914471149, 0.2946886718, 0.6760756969, 0.1154296398, -0.0119799189, -0.1408445537, 0.0384404212, 0.2060935944, -0.1562190354, -0.0725084022, 0.0975350514, 0.4758123159, 0.0528438799, 0.0048447992, 0.4223836064, 0.1397080123, -0.0095873615, -0.1689718664, 0.1133895963, 0.282872498, -0.2784453034, -0.2333350182, 0.3246434331, -0.0805046633, 0.0151667688, 0.0909759104, 0.2167084962, -0.1675379723, 0.2051580697, 0.1029293388, -0.084816657, -0.0763308927, 0.4706709087, 0.1202267632, -0.0981322452, 0.2479029894, 0.1295378953, -0.159669131, -0.123474583, 0.2534742951, 0.2145290375, -0.1498477459, -0.1539316177, 0.074166134, 0.1245174855, 0.2328960598, 0.2849791944, 0.1200708896, 0.0664468855, -0.1610540152, -0.1804710627, -0.3888455927, 0.0610886477, 0.1004847512, 0.3253471255, 0.1052880809, -0.2224453241, 0.0293283593, 0.0768359825, -0.2823282182, 0.0249237679, 0.0109966611, 0.1962832212, 0.136485219, -0.1093959808, -0.1034342647, 0.1355661899, 0.0608207919, 0.1372397244, -0.2650088668, -0.1954612434, -0.062084645, 0.0954935625, -0.0102302935, -0.1716787368, 0.0155683002, -0.4823225141, -0.1556381881, -0.1742753386, 0.2260727733, 0.0972961485, 0.1488031894, 0.0438316837, 0.2419625968, -0.2362682819, -0.0809502304, -0.0554108135, 0.0508827567, -0.1584219038, 0.1208490655, 0.3051260114, -0.0701842606, -0.2784440517, -0.2976560593, 0.1620577723, 0.4519219697, 0.0673506036, 0.2465281934, -0.2574520111, 0.0997183248, 0.0909810513, 0.2638569474, 0.4230268598, -0.1600360423, 0.0520503595, 0.1256248206, 0.1248598099, -0.0970334113, -0.0173533466, -0.2267061472, 0.0293075982, 0.1059302017, 0.2214533687, 0.079763189, 0.1818277538, -0.3765725791, -0.2088661641, 0.2212146819, -0.3223403692, 0.1888605207, 0.3121756911, -0.0248016696, -0.1189257652, 0.3131511807, 0.4781964719, 0.1840548515, 0.1127864644, -0.0069752545, 0.5928164721, 0.25998649, -0.070043847, 0.1810559332, -0.238440603, -0.1235950142, 0.134611845, 0.0786679611, 0.1764678955, -0.1358976364, 0.5692294836, 0.299244523, -0.1604918689, 0.0906636268, 0.3686592281, 0.1135785133, -0.2999246716, -0.3345408738, -0.2354024798, -0.1383019239, -0.1145284697, -0.268735677, -0.0343325026, 0.3106892407, 0.1526484489, 0.3058915734, -0.2136779428, 0.3738525808, -0.0776964501, 0.1008846834, -0.3142167032, 0.3480851054, -0.1641645283, 0.1437535584, -0.2153378427, 0.0832310691, 0.2506153882, 0.3648096025, -0.1423471272, -0.0112881884, -0.0685290322, -0.1197921485, 0.1105622202, 0.0994914249, 0.0256876256, -0.3752381504, 0.5009599924, 0.0727347285, -0.0831470713, 0.3362273276, 0.0254894663, -0.0860904828, -0.517175734, 0.0285147466, -0.0760777667, -0.1616054475, -0.0029649965, 0.0322174951, -0.3494996727, -0.0534798354, 0.3596715033, -0.4814479649, 0.1096545383, -0.0712437034, 0.0676144436, -0.2086928934, 0.5480344892, 0.2112803459, 0.3716069758, -0.0438836887, -0.1701910794, -0.1988396943, -0.0692157075, 0.1777982563, 0.0427609943, -0.1237591878, 0.2416923642, 0.0362842083, 0.1109807044, -0.0082404325, -0.5410215855, -0.2205155939, 0.4227231145, -0.1820375174, -0.2194941491, -0.3366203308, 0.402009666, 0.0884029642, -0.3076234162, -0.02638443, -0.3074906468, -0.0361728333, -0.2024128139, 0.0237072501, 0.0249545332, -0.2743130624, 0.5059767365, -0.1371539533, 0.3993718326, -0.1935700327, 0.1127052829, -0.2125445455, -0.3714737892, 0.05283821, 0.370061934, 0.298094362, 0.2023140937, -0.2437050492, -0.0731871575, 0.0878391117, 0.0888534784, 0.1197975203, -0.0743533745, -0.1931867748, -0.2361486554, 0.0032978216, -0.0590875894, -0.0359155759, 0.675152719, -0.1143775657, 0.2119198292, -0.1191651374, -0.3494870961, 0.4321635664, -0.2436609268, -0.1623465866, -0.0897052884, -0.1091446504, 0.2427256852, 0.0134389149, -0.4573637843, 0.0917280912, 0.4157387614, -0.0691372082, -0.1967609823, 0.1873581707, 0.2847017646, 0.0736471266, -0.1682555377, 0.174458012, -0.1274976879, -0.1221861318, -0.1616957933, -0.3481250107 ]
https://github.com/huggingface/datasets/issues/813
How to implement DistributedSampler with datasets
Hi Apparently I need to shard the data and give one host a chunk, could you provide me please with examples on how to do it? I want to use it jointly with finetune_trainer.py in huggingface repo seq2seq examples. thanks.
Hi, I am using your datasets to define my dataloaders, and I am training finetune_trainer.py in huggingface repo on them. I need a distributedSampler to be able to train the models on TPUs being able to distribute the load across the TPU cores. Could you tell me how I can implement the distribued sampler when using datasets in which datasets are iterative? To give you more context, I have multiple of datasets and I need to write sampler for this case. thanks.
40
How to implement DistributedSampler with datasets Hi, I am using your datasets to define my dataloaders, and I am training finetune_trainer.py in huggingface repo on them. I need a distributedSampler to be able to train the models on TPUs being able to distribute the load across the TPU cores. Could you tell me how I can implement the distribued sampler when using datasets in which datasets are iterative? To give you more context, I have multiple of datasets and I need to write sampler for this case. thanks. Hi Apparently I need to shard the data and give one host a chunk, could you provide me please with examples on how to do it? I want to use it jointly with finetune_trainer.py in huggingface repo seq2seq examples. thanks.
[ -0.176231131, -0.2129825652, 0.041827891, 0.1458269805, 0.2960067689, -0.2145046592, 0.2066294253, -0.0596599169, 0.0736608207, 0.3631319702, -0.1494353265, 0.2770125568, -0.3263443708, 0.1506610811, -0.0292026736, -0.5932828188, -0.0871203169, 0.2308089286, -0.2494452745, -0.032934472, 0.2496522516, -0.0033956112, -0.1133745015, -0.0734551474, -0.1053178459, -0.173912257, -0.3590154946, -0.0182644743, -0.1748259366, -0.2580246031, 0.4371861517, 0.3987311125, 0.6609320641, 0.4599103034, -0.0001257403, 0.0744618401, 0.101833798, -0.1535168588, -0.2574951649, -0.1424921751, 0.0545340814, 0.2479482144, 0.136718452, -0.2322048843, -0.1759764701, 0.0377363637, 0.1900283098, 0.0264715273, 0.5198248029, -0.1474683136, 0.0699760392, -0.0524424277, -0.2422245294, -0.2215248644, -0.199364841, 0.3077510893, -0.0410106182, 0.2077390254, 0.3981788456, -0.0075881896, -0.4323903024, -0.0242207423, 0.0330289379, 0.2175623477, 0.0072190198, -0.1358049661, -0.2036306411, -0.2351316661, -0.3969818652, 0.1602649987, 0.605186522, -0.2570729256, -0.3713671565, -0.1774279028, -0.2501272559, 0.0500187427, -0.1925213784, 0.0510463938, -0.183778584, 0.282315135, -0.1530065238, -0.1160466149, -0.3117051721, 0.1274694353, -0.1568293422, 0.4186399579, -0.1393887848, 0.1281807572, 0.0936499462, 0.2098369896, 0.1063381732, 0.0415879451, 0.2194650173, 0.143855691, -0.2232535034, -0.3640880883, 0.0095438836, 0.2747440636, 0.4882166088, 0.5775045156, 0.0499158129, -0.0942468196, -0.0080486936, -0.0070621795, 0.3743902445, -0.000148827, -0.1673381329, 0.4795025885, 0.0228303857, 0.2750383914, -0.0266579371, -0.1354805976, -0.165491119, 0.0668157116, 0.0090900185, -0.1441897154, 0.0008438243, -0.1314395517, 0.0769868344, -0.4496331215, 0.2652006149, -0.2379102558, -0.1790022403, 0.1799644977, -0.1000173092, 0.070815891, -0.126699701, 0.1342826635, -0.0206946954, -0.1132469922, -0.1113281101, 0.1297122836, -0.2131317258, 0.2274448872, -0.0074113822, -0.3920819759, 0.3760806024, -0.0981846377, 0.3529306352, 0.0478646308, 0.142163828, -0.129148677, -0.1584923714, -0.0873790681, -0.0718238354, 0.1139056161, -0.1525043845, 0.3168796599, -0.28178069, 0.0391249619, -0.4134098291, -0.3401994407, 0.1583732069, -0.0231164116, -0.2817363143, -0.2267812341, -0.2778114378, 0.2035530061, 0.0177871119, 0.0099345837, -0.0463818498, -0.0578024238, -0.1742766947, -0.152856946, 0.2357306778, 0.4027372599, -0.2060621232, -0.2215591222, -0.043794319, -0.1560463905, 0.3560596108, 0.2536253035, -0.1780749857, 0.3056147397, -0.1869753301, 0.1814295501, 0.4120995402, -0.4824198484, -0.4623405337, 0.3475466669, -0.1774090379, 0.0841416493, 0.3403621912, -0.0765788853, 0.495559752, -0.1990614086, -0.3674888909, 0.5588451624, -0.2115417421, -0.1284411848, -0.1992319077, -0.212034896, 0.1296754181, 0.3994772136, 0.096390076, 0.3884042203, 0.0329113193, 0.0927875116, 0.3912807405, -0.0111887986, 0.5302357674, -0.0398257188, 0.1653410047, 0.093341589, 0.1260010302, -0.3339469731, 0.0291711129, 0.0882042795, 0.1346918643, 0.163871184, 0.1431134939, -0.0069237128, 0.0181160923, -0.2439250201, -0.4402568638, -0.1933104843, -0.0643389598, 0.2180061787, 0.6305690408, -0.3245464265, -0.3223573864, -0.0564463995, 0.0957119018, 0.0224030111, -0.3555352986, 0.4854136109, 0.1750118881, -0.1378860325, -0.0623987801, -0.1549346745, -0.2792488933, -0.3736249804, 0.1042343229, 0.2754528522, -0.0492906012, 0.1374741942, 0.2444840223, -0.114460744, 0.1196560934, -0.2800710797, 0.1447879523, 0.1517023444, 0.0262996294, -0.0369206034, 0.105653815, 0.4488392472, -0.1263551861, 0.1596805453, -0.0317607075, 0.1220782474, 0.2391721755, -0.0615852401, -0.2905209363, 0.0944512859, 0.0107967099, -0.2886221409, 0.2336167544, -0.1802548617, -0.3940913677, -0.0089534, -0.1615930796, -0.1977670491, 0.0055994629, 0.0927679539, -0.0583692491, 0.221334964, 0.115395911, 0.2206603885, 0.4545038044, 0.0143222036, 0.1267331392, 0.0229569133, 0.2172506303, 0.0328644775, -0.0622272342, -0.0104029654, -0.0782876462, 0.0800553262, -0.2320342064, 0.0293574613, 0.0692367628, -0.3264912963, -0.0312448144, 0.1034997925, -0.0159060266, -0.0558409058, -0.2748684287, -0.1262641102, -0.4773792922, -0.0857991055, 0.1158197671, 0.2840189636, -0.234358862, 0.1120980307, 0.2257267833, 0.2018768936, 0.0999608114, 0.6861428618, -0.0681135207, 0.2938067019, -0.0379981846, -0.086590983, 0.0861783773, 0.0325731821, -0.0054662777, 0.0172473956, 0.3180838823, -0.1071861088, -0.1507677436, -0.1421567202, 0.1396574676, 0.1572733074, -0.0061133103, 0.1908635646, 0.259652555, 0.0942709893, 0.0147714224, 0.3015552461, -0.0144248726, -0.1850940585, -0.0725714937, 0.0200590342, -0.0220015682, 0.105340302, 0.0714201853, 0.135069415, -0.5741365552, -0.1103195101, 0.1514460742, 0.4341513813, 0.1620614231, -0.3081138432, 0.0741549656, -0.204682067, -0.0837835073, 0.0611392148, 0.193466261, -0.6808111072, 0.2450156659, -0.2307177931, -0.1710989624, -0.2517699301, -0.0022167317, 0.0215867516, 0.3401454091, -0.2149410397, -0.3724906445, 0.1669085026, 0.1288239211, 0.1506885588, 0.4997434318, 0.3359590173, 0.0185596403, 0.2461109012, -0.1261479259, -0.0985609367, 0.3742195666, -0.0322944857, 0.1080250442, 0.3546366394, 0.217700094, -0.0627698749, 0.6847814918, 0.3673389554, -0.0072784349, 0.2519358695, 0.0604631342, -0.3771798313, 0.2624770701, 0.053217072, 0.3872342408, -0.0692638159, -0.0042585451, 0.3896633685, 0.0688656718, 0.2607908547, -0.3597657084, -0.1988829672, -0.0109389005, 0.0732273832, -0.1000318825, -0.2645087242, 0.2502059639, -0.3910618722, -0.2263166606, -0.0937711746, 0.1206524447, -0.0165998805, 0.2696188688, 0.4421629608, 0.2345459759, -0.3730177879, 0.223234877, -0.2388777584, -0.1237926409, -0.0817798972, -0.0156757198, 0.2256258428, 0.0217443015, 0.3156933188, -0.0126428409, 0.3779906034, -0.2337818146, -0.0938329399, -0.4844170809, -0.4311333299, 0.1122260094, -0.0873305798, -0.3538042307, 0.446277678, -0.5912211537, 0.1568502635, -0.3123340011, -0.1518696398, 0.1150380746, -0.004351371, -0.3764219582, -0.2770944536, -0.1194538847, -0.4327889085, -0.0640124008, -0.1120808721, -0.0450899564, -0.0622282699, -0.0481274426, 0.1054455191, -0.2978597283, 0.1372375786, 0.1504857242, -0.051417537, 0.0223478843, -0.1955286264, 0.1062998846, 0.3705874681, 0.3044512272, 0.3851692677, 0.448928386, -0.4912436903, -0.386099875, -0.0408712737, 0.1253972203, 0.2308128178, 0.0087953759, 0.082749784, 0.3002048433, -0.0572645105, -0.0678590164, -0.5000571609, -0.2672555447, 0.0244623534, 0.0200946424, -0.4728280902, -0.7147177458, 0.2241023034, 0.1522465497, -0.1368086636, -0.032177791, -0.0694763586, -0.2612036169, 0.2622133195, 0.2249403745, 0.8707512021, -0.102160193, -0.0420658886, 0.0738399625, 0.2748675942, 0.7067088485, 0.3199186027, 0.1001653969, -0.2827214897, -0.3105249107, -0.1979126334, -0.1109065488, -0.0057185804, 0.5164134502, -0.5429207683, 0.3605950475, 0.0219281483, -0.0996977463, 0.1444534212, 0.0936705545, 0.1357544661, -0.1352730691, -0.3015863597, 0.0253907386, -0.1955164969, 0.248563692, -0.1389928162, -0.2632389367, 0.1933843493, 0.2051692307, 0.2074281424, -0.0668180659, -0.0121252621, -0.1047037169, 0.4981988668, -0.084952198, 0.2454428673, 0.003670485, 0.3181903064, -0.2570712268, 0.0013377354, -0.0576539561, -0.1081553996, -0.1082594767, -0.0360558927, 0.064189285, 0.4372733235, 0.0569117367, -0.2256888896, 0.2304375768, 0.157596603, -0.2838337123, -0.1787345707, -0.2039135844, 0.1599764824, -0.3195157647, -0.1481684297, -0.0226089433, 0.0651269183, -0.0348767713, -0.0800832957, 0.3441613913, -0.317012459, 0.3526712358, 0.0027459562, 0.1089175642, -0.1081153974, 0.2389677018, 0.2448531687, -0.0683451369, 0.0795943886, -0.1228291988, 0.0393767096, 0.0055265068, -0.3198084533, 0.1380523592, -0.5434179902, 0.2638339996, -0.1851096749, 0.2479444593, -0.1067716032, 0.2094825953, 0.263400197, -0.0644772127, -0.2166613042, -0.3531404734, -0.353089124, -0.157039538, -0.0442433208, 0.1284521818, 0.0706513971, 0.0463196933, -0.0158350505, 0.2757927775, -0.1610551178, -0.100232549, -0.0341600515, 0.106039457, 0.3885423541, 0.2384243011, -0.3457792103, 0.2648666203, -0.1020126194, 0.1118478701, -0.0135228653, 0.0236103646, -0.0651639625, 0.2168441862, 0.2107199728, -0.2215077728, -0.0826411843, 0.0160094239, -0.1435127854, -0.0845792368, 0.1811009496, -0.0206929054, -0.1497684568, 0.2486898899, 0.7305862308, -0.4384986162, -0.4540951848, 0.4001854956, 0.2096710354, -0.1351133585, 0.0673500225, 0.3071458638, 0.1754894704, -0.2053288072, -0.0024760233, 0.2844802737, 0.6360446811, 0.1042020768, 0.3212515116, -0.2410334051, 0.3320282698, -0.0104449037, 0.4907312393, 0.4158390462, -0.1445628852, 0.0061385175, 0.3453766406, 0.071908243, -0.0637939125, 0.1239281073, 0.1777506173, 0.1627659947, -0.1147238761, 0.5678816438, -0.243921563, -0.0187726691, -0.3228301108, 0.0691768602, 0.4023539126, 0.1933416426, -0.0950639099, 0.3029848933, 0.248390615, 0.0796130076, 0.2700074911, 0.3157447577, 0.1950947046, -0.0959001034, -0.2032369524, 0.7602372766, -0.220154196, -0.1591699272, -0.0294410083, -0.4686168432, 0.3586602211, 0.3634355068, 0.2123479843, -0.0684424341, -0.137084648, 0.574057579, -0.1270172149, -0.2321826965, -0.0025762634, 0.3248000741, 0.0606996268, -0.3778528571, -0.3409524858, -0.1854118556, -0.1240250468, 0.0476577617, -0.108150214, 0.05534181, 0.5609667301, -0.1190462112, 0.0711845011, -0.5261397362, -0.3453160822, 0.319419086, 0.1149640307, -0.0742403641, 0.2584958076, -0.0626599789, 0.0744227692, 0.1308414787, 0.4096464515, 0.0194158144, 0.2499278188, 0.0096588098, 0.0382861644, -0.0724938959, 0.1148361042, 0.0892686769, 0.1026840881, -0.2961393893, -0.1933683753, 0.4360485673, -0.0594251193, 0.023124354, 0.1797005981, 0.1417746693, -0.1073036045, -0.4729672372, 0.1520285308, 0.0211261082, -0.0499808528, 0.2113033235, 0.1267898679, -0.3962585628, -0.0587543324, 0.0734532624, -0.5963243246, 0.0379453003, -0.1534634233, -0.0325330868, -0.1356428713, 0.4952054024, 0.4738100469, 0.146225065, -0.1124513522, -0.3779442608, -0.2596480548, 0.2536067069, -0.1999996901, -0.347592473, -0.286064297, -0.0203975718, 0.062580727, 0.109322302, -0.5165182352, 0.2676760256, 0.015500037, 0.640642345, -0.0078478949, -0.3341736197, -0.2320221961, 0.4174197614, 0.1265351772, -0.1967199296, -0.0851984769, 0.1007862762, -0.1088240966, 0.0788640976, 0.2305403501, 0.112667799, -0.3531214893, 0.1094876155, 0.1274302304, 0.3620074093, -0.0593729168, 0.1948189288, 0.0756579116, 0.160643056, -0.3826027811, -0.1971904039, 0.0656107217, 0.0794163942, -0.1215263456, 0.1512839794, -0.3343376517, -0.2985706329, 0.2322644889, 0.1794834286, -0.1885074377, 0.0176032353, -0.261169672, -0.0382783338, 0.4513544738, 0.2786598504, -0.0830291137, -0.0083430791, -0.1770680547, -0.06894546, 0.2432761043, -0.3367722929, -0.0019333254, -0.2429524213, -0.0359778367, -0.3963626325, -0.3386980593, -0.6620275974, 0.1587567478, 0.2287365645, -0.0071008904, 0.0644013435, 0.2964568734, 0.2667249441, -0.0461766273, -0.0840351507, 0.120563224, 0.0632559061, -0.0628659427, 0.0216286443, -0.1302148551 ]
https://github.com/huggingface/datasets/issues/812
Too much logging
Hi ! Thanks for reporting :) I agree these one should be hidden when the logging level is warning, we'll fix that
I'm doing this in the beginning of my script: from datasets.utils import logging as datasets_logging datasets_logging.set_verbosity_warning() but I'm still getting these logs: [2020-11-07 15:45:41,908][filelock][INFO] - Lock 139958278886176 acquired on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock [2020-11-07 15:45:41,909][filelock][INFO] - Lock 139958278886176 released on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock using datasets version = 1.1.2
22
Too much logging I'm doing this in the beginning of my script: from datasets.utils import logging as datasets_logging datasets_logging.set_verbosity_warning() but I'm still getting these logs: [2020-11-07 15:45:41,908][filelock][INFO] - Lock 139958278886176 acquired on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock [2020-11-07 15:45:41,909][filelock][INFO] - Lock 139958278886176 released on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock using datasets version = 1.1.2 Hi ! Thanks for reporting :) I agree these one should be hidden when the logging level is warning, we'll fix that
[ -0.0939555764, -0.1382926702, -0.1109822839, 0.1179055125, 0.3646458983, 0.1386170089, 0.3069938421, 0.5121555924, 0.1688757241, -0.010042835, 0.0955122933, 0.0601682849, -0.4101091027, 0.0572798997, -0.2360522151, 0.2184815556, 0.0992702842, -0.117720522, -0.2310966551, -0.1383836865, -0.0463392623, -0.0264288988, -0.0634163544, 0.0502451435, -0.7488374114, -0.1222362667, 0.2166900784, 0.0171179585, -0.1799688935, -0.4650104642, -0.0918777809, 0.2049916685, 0.1833453178, 0.2377517521, -0.0001085636, -0.2062126249, 0.3049526811, 0.0561281033, -0.2948625982, 0.3130480051, -0.176579684, -0.4536099732, 0.264634639, -0.1287502944, -0.032001745, -0.5764781833, 0.120048441, -0.547183454, 0.1971036941, 0.2420775741, 0.2531926632, 0.1721660197, -0.1171072423, 0.1836513728, 0.1604663283, 0.1954941899, -0.0464437306, -0.0426944271, 0.2407291234, -0.1449799538, -0.2897664309, 0.5247576237, -0.2106173187, -0.0936638638, 0.256308049, 0.0742958263, -0.0066662855, -0.4359250069, 0.2002312541, 0.2293608785, 0.2505161762, -0.434890151, -0.2396633923, -0.5395966768, 0.1525102854, -0.2023010701, -0.0393041261, 0.1188085452, 0.0259443242, 0.2967509627, -0.3168110251, -0.125317201, 0.0727275684, -0.1946344525, 0.2814535797, 0.090451777, -0.0954421908, -0.0199598521, 0.2426546961, -0.2031736821, -0.0055367225, 0.019085791, -0.1287659407, 0.0733044147, -0.3683993518, -0.1760265231, 0.2714226544, 0.454654187, -0.0106761586, 0.1569292396, -0.5877221227, 0.0308097769, 0.1449277997, -0.0687159002, 0.2483415008, 0.0682765096, 0.3815245926, 0.484272182, 0.0695499033, 0.0023658869, 0.2182524055, 0.1636327505, 0.3279186487, -0.3859715462, 0.5891598463, 0.093415685, 0.4714000821, -0.2433212996, -0.0503411256, -0.0017934311, -0.0907607675, -0.1449496597, 0.0998377129, 0.2186500281, 0.2573613822, -0.1124923378, -0.0209493376, 0.1804551333, -0.1787156314, -0.1113091111, -0.3608377576, 0.2265657187, -0.0386885591, 0.1814370304, 0.1555701941, -0.0132067604, -0.0337050594, 0.1645655036, -0.0999966562, -0.0064753187, 0.2545648217, -0.0888238922, 0.1127235293, 0.4412615597, -0.2111657113, 0.1293465495, 0.0744356439, -0.1091433018, -0.2172544003, -0.0095766885, 0.0266517121, -0.344096303, -0.1174658686, 0.2434981763, -0.3380617499, 0.063173458, 0.0415716544, 0.0605500937, 0.2659911811, 0.2676565051, 0.2104018927, -0.1764070988, -0.1235794723, -0.1606829017, 0.0469203778, 0.7568489313, -0.1010418981, -0.1524249166, -0.1544767171, -0.3426130414, 0.3341268897, 0.2843774259, 0.0356808752, 0.2831245959, -0.3132160902, 0.1170728654, -0.0723759979, -0.3900968432, -0.0120038977, 0.3230900466, -0.2881067693, 0.1007575914, 0.5861544609, 0.1028015614, 0.0012948165, -0.2383526713, 0.0093689114, -0.1693769842, 0.0935042277, -0.0579389967, -0.2075731456, -0.1830703467, -0.0157593824, 0.180831477, -0.1068214774, -0.2202108055, -0.0464310423, 0.0053200009, 0.3438031375, -0.1056675836, 0.0014572979, 0.221645534, 0.2044256479, -0.1354950219, -0.1259180605, -0.1356042027, -0.3863962293, -0.0477210842, -0.0831304416, 0.0528702326, -0.4278621078, -0.505287528, 0.0825894773, 0.0003730187, -0.1854664832, -0.2281101495, 0.1308968365, 0.0035779551, -0.2127636671, -0.1032314971, -0.2443545014, 0.3279068768, -0.0935140327, 0.2245454937, -0.3384841681, -0.3394961655, 0.0967408046, -0.1239864752, 0.3080798686, 0.0880162492, 0.3376416862, 0.0235522017, 0.2304943055, 0.2799667716, -0.0227969531, 0.6912985444, 0.0908790454, 0.3066893518, 0.0518683158, 0.1061582267, 0.1213448867, -0.0917632654, -0.2069842964, -0.0415722877, 0.0172877051, 0.3455805779, 0.0909018442, 0.0299075786, -0.2113511413, -0.0423977636, -0.120611228, -0.0728123337, -0.1242458075, -0.5477370024, 0.3308846653, 0.0519312918, 0.0606078133, 0.2649483979, 0.0394689664, 0.3360200226, 0.4038295448, -0.2107297331, 0.1244594008, 0.0845005438, 0.0159385875, 0.0463406704, 0.1757119149, 0.1541774124, 0.1422485411, 0.3217691779, 0.0495246165, 0.2399302423, 0.2244526893, -0.2068876326, 0.234629184, 0.0124487225, -0.1978024393, -0.0443736166, -0.2063253224, -0.2044219077, -0.1408553123, -0.1601756066, -0.3429880142, 0.290128082, -0.3985349834, 0.003582221, -0.3858212531, -0.2859233916, -0.193507418, 0.0809365734, 0.0804825574, -0.2955829203, 0.2598421574, -0.0968648642, -0.3056243062, 0.2036596537, -0.1606091708, 0.0606579073, 0.1127744764, 0.1230947003, -0.1839646697, 0.109929055, -0.0364182964, 0.0853303969, 0.0721571073, -0.0706835613, 0.4171566963, -0.1239205152, -0.053623762, -0.1975159198, -0.2242770195, -0.0322817452, -0.2084120214, 0.0298855901, 0.2623638809, 0.096100077, 0.1462889165, -0.0539729819, -0.3215301037, 0.0295732226, 0.1425770968, -0.0307254512, -0.1538361609, 0.0601690225, -0.1685926616, -0.329837054, -0.2052046061, -0.2479126751, 0.1057195216, -0.0258240905, 0.0914529115, 0.3211137652, -0.1065982506, 0.15683119, -0.3661248386, 0.3012652397, -0.0286125969, -0.2743657827, 0.231361255, 0.0794467553, -0.0137224905, 0.0065796399, 0.0003356051, -0.3040707707, -0.2560657561, -0.5025677681, -0.1028376818, -0.4806151688, -0.0817897618, -0.1125076488, 0.1075823009, 0.2545315921, 0.2832550406, -0.2098628581, 0.0634870008, 0.1032882333, -0.0417310409, -0.4492867291, 0.1921847761, -0.224903658, 0.2574488521, 0.1716226339, 0.2437792569, 0.6294997334, 0.0763811097, -0.0625268146, -0.066285871, 0.5207747817, -0.0275088176, -0.2754184008, -0.0688882694, 0.2339814305, -0.2732111216, 0.0331291854, 0.0283683073, 0.313328892, 0.0314498693, -0.0786369741, 0.1196459308, -0.3498458266, -0.0324780829, 0.135269776, -0.1261872053, -0.199160561, 0.2758157253, 0.085086219, -0.1263507903, -0.0174963642, 0.3585095406, 0.1847475767, -0.019992128, -0.2938168347, 0.1961057335, -0.618413806, 0.2171832621, -0.1861792207, -0.1756950319, -0.2718886733, -0.2114418149, 0.0554848798, 0.356210947, 0.2229136825, -0.1450012326, 0.1960817724, 0.0035949415, 0.1036257893, -0.2364573479, 0.0014578033, -0.3731636107, 0.2473730892, 0.5612367392, 0.2165385485, -0.1743340641, -0.2276814878, 0.2084887028, 0.2237482071, 0.0535886846, -0.3068560064, -0.2949358225, -0.145250842, -0.3326517045, 0.0871564224, 0.1866644919, -0.0343151353, -0.2662408352, -0.0546183884, 0.250205487, -0.2360359132, 0.4416202009, -0.2512197196, 0.1626155078, 0.0465070121, 0.2130651623, 0.0570290983, 0.0740482733, 0.1904067546, 0.4802782536, 0.0943292528, -0.2119495571, -0.1666473895, -0.0299110208, 0.208123669, 0.4218248427, -0.2831208706, 0.2068610638, 0.2284541428, 0.4665275216, -0.2072075009, 0.0717769861, 0.2487652302, 0.0010952628, -0.2626173794, -0.0239356197, 0.2868355811, 0.3003082871, -0.1352035999, 0.3484827578, 0.223611787, -0.3694554269, 0.0369407646, 0.0067660776, 0.8249828815, -0.1158920676, 0.1240963861, 0.0340900458, -0.2363857478, 0.4835707545, 0.1011434793, -0.0739331841, -0.1816165, -0.2403106391, 0.1836623251, -0.0452959053, 0.2229614407, -0.2261367142, -0.1083036289, 0.2367769927, -0.5038365126, -0.0548330434, -0.3217777908, 0.5082199574, -0.4011688828, -0.1209336147, -0.1482985467, 0.1056727618, -0.0943693295, 0.2023948431, -0.0155992489, -0.124562867, 0.3061547279, -0.1772096604, -0.1929210424, -0.168296203, 0.1928420216, -0.0087255538, -0.2535126507, -0.0676526204, -0.0216437187, 0.1862487048, 0.2338097692, 0.3983851671, -0.0748143345, -0.1149247289, 0.0396528319, 0.1570657641, 0.0170801524, 0.0275555216, 0.3977654874, 0.0857748911, -0.2672379613, 0.0658211112, 0.180351764, -0.1707699001, -0.2267666459, -0.1777760088, -0.0832260624, -0.2662023604, 0.1297426373, 0.092961207, -0.2065986991, 0.0840085894, 0.1887382567, 0.4445774555, -0.0216287002, 0.1824271828, -0.0548385568, -0.4765104949, -0.39523983, 0.5040406585, 0.1510436088, -0.1266810745, 0.5556839705, 0.2504146397, -0.3811906278, -0.355245918, 0.1111970097, 0.3435373604, -0.077327475, 0.0663200021, 0.2360483855, 0.0889012888, 0.0891179368, -0.1712626666, 0.0418538973, -0.037688192, -0.0416646004, -0.1587856412, -0.6313866377, 0.2076010704, -0.2095310241, 0.2792848647, -0.1171595678, -0.0032093148, -0.0582864918, 0.0690882057, -0.3741520345, -0.2777662873, 0.0515774898, -0.1663177311, 0.2583634257, 0.0489937216, 0.3095759749, -0.0568149462, 0.1622139215, -0.1277165413, -0.2946116924, -0.2139982581, 0.031786114, 0.062251687, -0.3852056861, 0.0340219028, -0.0096545955, -0.1907474101, 0.0100171743, -0.0825326964, 0.2864012718, 0.5032941699, 0.2410665452, 0.3299828768, -0.0650276169, -0.1737880558, 0.09012454, -0.3782747984, -0.0790196359, -0.0189160444, -0.1019780934, -0.0092230793, -0.0875604376, 0.003316001, 0.0400347635, 0.0569197908, 0.0982401818, 0.2117703259, 0.0139172431, 0.1633586437, -0.1465504915, 0.4369925857, 0.3946343958, 0.0505325235, -0.245755136, -0.2233487815, -0.158120811, 0.2508952022, -0.1108826399, -0.1131800264, -0.1043811291, 0.3248177171, -0.06886857, 0.3823311627, -0.1952054948, -0.0537762344, 0.4082462788, 0.1821787506, 0.0427001417, -0.3116479814, 0.1041912585, -0.1105657145, -0.2489749193, -0.2402357608, 0.3837439418, 0.2099577636, 0.1874790341, 0.3255283237, -0.2500392795, 0.4886875153, -0.0836315081, 0.028243022, -0.1258111745, -0.1916558146, 0.1283933371, 0.4202005267, -0.3408844471, -0.2257044017, 0.109443441, 0.100306496, 0.091067113, 0.1164523587, -0.0592879578, 0.020625772, -0.1105682254, 0.0652008578, 0.5272235274, 0.1469577104, -0.0223205872, -0.1454699934, 0.0002112612, -0.150751397, 0.0020224864, 0.0691602826, -0.0758542046, -0.0888678208, 0.3956035972, -0.1575429589, 0.5541142821, -0.2218863517, -0.1620534658, 0.0254401248, 0.1349116564, 0.2545056045, 0.2312452495, 0.60537076, 0.3216746151, 0.2831219435, 0.2745066285, -0.0613170005, 0.0074725873, -0.0845504925, 0.4589728117, -0.1363328248, 0.1556658447, 0.1265351623, 0.1685230583, -0.1802562922, 0.1641699821, 0.0789168179, -0.0232054088, -0.1970096976, 0.5414171815, 0.1035412624, -0.2683021128, -0.223772347, 0.0505934618, -0.2667418122, -0.1599804163, 0.3896867633, 0.1084452495, 0.0784000903, -0.415142566, 0.0978070647, -0.1514095962, 0.0709747374, 0.2777141929, -0.0226127766, -0.3228418827, 0.2279048264, -0.364459306, 0.1353074163, -0.0462399311, -0.2501852512, -0.1109026521, -0.026076803, -0.1400717348, 0.2400042117, 0.328468442, -0.2272966057, -0.0551452339, -0.412909925, -0.1118052602, -0.0292403009, 0.0132134818, -0.0522256494, 0.0636381954, -0.0837536231, 0.4917399287, -0.505859077, 0.1113729849, -0.1033638194, 0.0078773824, 0.1151103899, 0.249221161, 0.2712679207, 0.1212183684, 0.2057714462, -0.1138903201, -0.052476272, -0.3292320073, 0.0383196548, -0.2527839839, 0.1710241884, 0.1203138977, 0.1378358006, -0.3307654262, -0.3593440354, -0.2284505218, 0.423918426, -0.0458420515, -0.2112402916, -0.0408494808, 0.0943303481, 0.237645492, 0.0177995842, 0.0140665369, 0.1596431583, 0.0941283405, 0.286696732, -0.0830887705, -0.6573038697, 0.5842885971, -0.32609424, -0.0806083307, 0.0214552488, 0.6829886436, 0.2588311136, -0.2425113916, -0.6747080684, 0.1540483981, 0.160179317, -0.1886599064, 0.0084412796, 0.4398560226, -0.2275975645, 0.0170997716, 0.1593379974, 0.2672633529, 0.1233643591, 0.1450195163, 0.0384275652, -0.3869267702 ]
https://github.com/huggingface/datasets/issues/812
Too much logging
+1, the amount of logging is excessive. Most of it indeed comes from `filelock.py`, though there are occasionally messages from other sources too. Below is an example (all of these messages were logged after I already called `datasets.logging.set_verbosity_error()`) ``` I1109 21:26:01.742688 139785006901056 filelock.py:318] Lock 139778216292192 released on /home/kitaev/.cache/huggingface/datasets/9ed4f2e133395826175a892c70611f68522c7bc61a35476e8b51a31afb76e4bf.e6f3e3f3e3875a07469d1cfd32e16e1d06b149616b11eef2d081c43d515b492d.py.lock I1109 21:26:01.747898 139785006901056 filelock.py:274] Lock 139778216290176 acquired on /home/kitaev/.cache/huggingface/datasets/_home_kitaev_.cache_huggingface_datasets_glue_mnli_1.0.0_7c99657241149a24692c402a5c3f34d4c9f1df5ac2e4c3759fadea38f6cb29c4.lock I1109 21:26:01.748258 139785006901056 filelock.py:318] Lock 139778216290176 released on /home/kitaev/.cache/huggingface/datasets/_home_kitaev_.cache_huggingface_datasets_glue_mnli_1.0.0_7c99657241149a24692c402a5c3f34d4c9f1df5ac2e4c3759fadea38f6cb29c4.lock I1109 21:26:01.748412 139785006901056 filelock.py:274] Lock 139778215853024 acquired on /home/kitaev/.cache/huggingface/datasets/_home_kitaev_.cache_huggingface_datasets_glue_mnli_1.0.0_7c99657241149a24692c402a5c3f34d4c9f1df5ac2e4c3759fadea38f6cb29c4.lock I1109 21:26:01.748497 139785006901056 filelock.py:318] Lock 139778215853024 released on /home/kitaev/.cache/huggingface/datasets/_home_kitaev_.cache_huggingface_datasets_glue_mnli_1.0.0_7c99657241149a24692c402a5c3f34d4c9f1df5ac2e4c3759fadea38f6cb29c4.lock I1109 21:07:17.029001 140301730502464 filelock.py:274] Lock 140289479304360 acquired on /home/kitaev/.cache/huggingface/datasets/b16d3a04bf2cad1346896852bf120ba846ea1bebb1cd60255bb3a1a2bbcc3a67.ec871b06a00118091ec63eff0a641fddcb8d3c7cd52e855bbb2be28944df4b82.py.lock I1109 21:07:17.029341 140301730502464 filelock.py:318] Lock 140289479304360 released on /home/kitaev/.cache/huggingface/datasets/b16d3a04bf2cad1346896852bf120ba846ea1bebb1cd60255bb3a1a2bbcc3a67.ec871b06a00118091ec63eff0a641fddcb8d3c7cd52e855bbb2be28944df4b82.py.lock I1109 21:07:17.058964 140301730502464 filelock.py:274] Lock 140251889388120 acquired on /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow.lock I1109 21:07:17.060933 140301730502464 filelock.py:318] Lock 140251889388120 released on /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow.lock I1109 21:07:17.061067 140301730502464 filelock.py:274] Lock 140296072521488 acquired on /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow.lock I1109 21:07:17.069736 140301730502464 metric.py:400] Removing /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow I1109 21:07:17.069949 140301730502464 filelock.py:318] Lock 140296072521488 released on /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow.lock ```
I'm doing this in the beginning of my script: from datasets.utils import logging as datasets_logging datasets_logging.set_verbosity_warning() but I'm still getting these logs: [2020-11-07 15:45:41,908][filelock][INFO] - Lock 139958278886176 acquired on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock [2020-11-07 15:45:41,909][filelock][INFO] - Lock 139958278886176 released on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock using datasets version = 1.1.2
145
Too much logging I'm doing this in the beginning of my script: from datasets.utils import logging as datasets_logging datasets_logging.set_verbosity_warning() but I'm still getting these logs: [2020-11-07 15:45:41,908][filelock][INFO] - Lock 139958278886176 acquired on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock [2020-11-07 15:45:41,909][filelock][INFO] - Lock 139958278886176 released on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock using datasets version = 1.1.2 +1, the amount of logging is excessive. Most of it indeed comes from `filelock.py`, though there are occasionally messages from other sources too. Below is an example (all of these messages were logged after I already called `datasets.logging.set_verbosity_error()`) ``` I1109 21:26:01.742688 139785006901056 filelock.py:318] Lock 139778216292192 released on /home/kitaev/.cache/huggingface/datasets/9ed4f2e133395826175a892c70611f68522c7bc61a35476e8b51a31afb76e4bf.e6f3e3f3e3875a07469d1cfd32e16e1d06b149616b11eef2d081c43d515b492d.py.lock I1109 21:26:01.747898 139785006901056 filelock.py:274] Lock 139778216290176 acquired on /home/kitaev/.cache/huggingface/datasets/_home_kitaev_.cache_huggingface_datasets_glue_mnli_1.0.0_7c99657241149a24692c402a5c3f34d4c9f1df5ac2e4c3759fadea38f6cb29c4.lock I1109 21:26:01.748258 139785006901056 filelock.py:318] Lock 139778216290176 released on /home/kitaev/.cache/huggingface/datasets/_home_kitaev_.cache_huggingface_datasets_glue_mnli_1.0.0_7c99657241149a24692c402a5c3f34d4c9f1df5ac2e4c3759fadea38f6cb29c4.lock I1109 21:26:01.748412 139785006901056 filelock.py:274] Lock 139778215853024 acquired on /home/kitaev/.cache/huggingface/datasets/_home_kitaev_.cache_huggingface_datasets_glue_mnli_1.0.0_7c99657241149a24692c402a5c3f34d4c9f1df5ac2e4c3759fadea38f6cb29c4.lock I1109 21:26:01.748497 139785006901056 filelock.py:318] Lock 139778215853024 released on /home/kitaev/.cache/huggingface/datasets/_home_kitaev_.cache_huggingface_datasets_glue_mnli_1.0.0_7c99657241149a24692c402a5c3f34d4c9f1df5ac2e4c3759fadea38f6cb29c4.lock I1109 21:07:17.029001 140301730502464 filelock.py:274] Lock 140289479304360 acquired on /home/kitaev/.cache/huggingface/datasets/b16d3a04bf2cad1346896852bf120ba846ea1bebb1cd60255bb3a1a2bbcc3a67.ec871b06a00118091ec63eff0a641fddcb8d3c7cd52e855bbb2be28944df4b82.py.lock I1109 21:07:17.029341 140301730502464 filelock.py:318] Lock 140289479304360 released on /home/kitaev/.cache/huggingface/datasets/b16d3a04bf2cad1346896852bf120ba846ea1bebb1cd60255bb3a1a2bbcc3a67.ec871b06a00118091ec63eff0a641fddcb8d3c7cd52e855bbb2be28944df4b82.py.lock I1109 21:07:17.058964 140301730502464 filelock.py:274] Lock 140251889388120 acquired on /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow.lock I1109 21:07:17.060933 140301730502464 filelock.py:318] Lock 140251889388120 released on /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow.lock I1109 21:07:17.061067 140301730502464 filelock.py:274] Lock 140296072521488 acquired on /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow.lock I1109 21:07:17.069736 140301730502464 metric.py:400] Removing /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow I1109 21:07:17.069949 140301730502464 filelock.py:318] Lock 140296072521488 released on /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow.lock ```
[ -0.0745944753, -0.0315370411, -0.0513727218, 0.1314179599, 0.284470588, 0.2179288417, 0.2618090212, 0.4838850796, 0.0517459847, -0.1740336418, 0.1080990657, 0.0136713078, -0.4307381809, -0.0791789964, -0.1534983814, 0.1896949559, 0.0866655633, -0.2138257772, -0.2665444911, -0.0811805129, 0.0343077034, 0.0029079784, 0.067758508, 0.0736543015, -0.8763466477, -0.1577259898, 0.1634814441, 0.0411979519, -0.1345583946, -0.3958104849, -0.1170413345, 0.2172026932, 0.1443826258, 0.2253051847, -0.0001129851, -0.246720612, 0.2506769001, 0.0904490203, -0.3506262302, 0.3797373176, -0.0783604681, -0.4808194041, 0.2577619851, -0.0923960134, 0.1104496494, -0.5984718204, 0.1523717642, -0.5589930415, 0.238431409, 0.2718782127, 0.1834261417, 0.1516077965, 0.0547524467, 0.0827172771, 0.1596715897, 0.3057549, 0.0517390855, 0.0208020527, 0.3077191412, -0.1223843545, -0.2875326574, 0.4429541528, -0.1540035009, -0.1464919299, 0.3328666985, -0.0242482591, -0.0548645444, -0.3220510483, 0.2032457292, 0.3037861586, 0.2530046403, -0.4261761904, -0.3371696174, -0.6361061931, 0.1488004178, -0.1059593484, -0.0772845969, 0.1271360815, -0.0251313839, 0.3121366799, -0.1953436583, -0.1719778776, 0.1232566312, -0.2216966301, 0.2597731948, -0.0053384746, -0.0639947578, -0.0270455591, 0.3266192079, -0.1445755213, -0.030196175, 0.0324756689, -0.1313666999, -0.0420440175, -0.4276967049, -0.0721249133, 0.3259896338, 0.3903737068, 0.0073608598, 0.1643513143, -0.516446054, 0.0500929207, 0.1268524528, -0.1393425316, 0.3606739044, 0.0856675208, 0.2658691108, 0.5355190635, 0.0115283756, -0.0776602402, 0.1887793094, 0.1849962771, 0.3528626263, -0.4127818942, 0.6333887577, -0.0439092405, 0.3881655037, -0.1832705736, -0.0560886152, 0.0786955953, -0.1461777985, -0.0709005147, 0.1323029399, 0.1157302186, 0.1893904954, -0.1116278023, -0.0326279439, 0.2161400169, -0.1818704903, -0.0952514485, -0.2570809424, 0.2912867367, -0.0619748645, 0.2372437268, 0.1315515637, -0.0919225216, -0.1203426942, 0.1508064419, -0.1984521747, -0.1433122009, 0.1449325383, -0.0918434337, 0.0544100888, 0.2532404363, -0.1634285748, 0.1583191007, 0.1093848795, -0.0930438042, -0.2132110447, -0.1570729315, -0.0029678545, -0.4197718501, -0.1508744955, 0.1769853532, -0.3609290719, 0.1228157058, 0.0573316775, 0.0382686816, 0.2015434504, 0.2192127407, 0.1270128936, -0.18743065, 0.0474024005, -0.0919260979, 0.0688472241, 0.8149481416, -0.1338517964, -0.1149420515, -0.1992364377, -0.2495592088, 0.211494565, 0.3670788109, 0.0883115008, 0.4535949528, -0.2758110762, 0.1275877804, -0.1310855001, -0.3799783289, -0.0529378951, 0.260345459, -0.3433254659, 0.1315959543, 0.5908984542, 0.1757717133, 0.0965025797, -0.1554009169, 0.1957787275, -0.1910142899, 0.1259525418, -0.1410339922, -0.1325217783, -0.1077743396, -0.1486362368, 0.2916973829, -0.1531301141, -0.3589288592, 0.0563393235, 0.1525658667, 0.2883648872, -0.1712486893, -0.0581983887, 0.3116378486, 0.1786779165, 0.0267669819, -0.1798517406, -0.1012189463, -0.3404591084, -0.0530148558, -0.1226721853, -0.038312111, -0.4733015299, -0.389454633, 0.0773141086, 0.0842119455, -0.1481726617, -0.1231567115, 0.08246319, 0.1649751663, -0.2223939002, -0.1105734259, -0.1733958721, 0.5379334688, -0.2286853939, 0.2063635737, -0.391461879, -0.322268188, 0.1621664912, -0.2050784975, 0.3768684864, 0.2321706712, 0.123756662, -0.0448712185, 0.3035084009, 0.293569386, 0.1105193868, 0.7735786438, 0.1506030262, 0.2828685939, 0.0450516529, 0.0371118598, 0.0559082814, -0.1027711332, -0.208575204, -0.0622852035, -0.1143947542, 0.2769283056, 0.0641207322, 0.013107527, -0.1927529722, 0.0175039712, -0.0604064576, -0.0479671434, -0.1571541131, -0.4694755375, 0.3884254694, 0.0354196504, 0.1513437629, 0.3073641658, 0.0933586434, 0.2709865868, 0.3807007968, -0.3204108775, 0.2158668786, 0.1895164847, -0.0337895714, -0.0532430001, 0.0926937535, 0.1728972048, 0.1485683471, 0.2563019693, 0.0606389195, 0.2134076953, 0.2705393434, -0.1500982642, 0.2070965916, -0.0006092106, -0.2361584008, -0.0310837366, -0.1758467555, -0.1036934182, -0.0950703695, -0.1284289062, -0.3363712132, 0.3529497087, -0.4624251723, 0.0696307942, -0.4349550009, -0.1110903397, -0.2090224922, 0.229161337, 0.064802289, -0.4513128996, 0.1271879524, -0.0272098072, -0.2379030585, 0.0569800064, -0.0679091588, 0.0843499377, 0.2101684511, 0.0175130665, -0.0816574097, -0.0884812251, -0.1031885371, 0.0086282743, 0.1440275908, -0.0204746313, 0.376758337, -0.1795287281, 0.0304738637, -0.2623321116, -0.2368261665, -0.031988766, -0.1196216419, 0.1111498699, 0.3146395683, 0.1130473241, 0.0980317444, -0.1044176593, -0.3348392844, 0.0784270689, 0.1560449153, 0.0541007705, -0.2534637749, -0.0549038611, 0.0237652436, -0.223360911, -0.2945464253, -0.2709877491, 0.262092948, -0.0507085435, 0.0254695993, 0.3799549937, -0.0819751322, 0.258538723, -0.4855399728, 0.472043246, 0.0324536413, -0.1948691458, 0.2467247546, 0.1571185291, -0.0181053411, -0.0250263028, 0.0343116224, -0.3609285057, -0.1947156042, -0.5805234909, -0.0669257864, -0.4184484482, -0.0779097676, -0.0549528338, 0.1938613355, 0.1924899518, 0.2107671052, -0.1480479538, 0.1688167006, 0.0595316179, 0.0140637876, -0.3548663259, 0.185260877, -0.2460648715, 0.1779491901, 0.2643879652, 0.1877128482, 0.7277323604, 0.0353032388, -0.0418431237, -0.1223059595, 0.6265465021, -0.106463626, -0.3333912194, -0.0343919843, 0.1379605383, -0.2627513409, 0.0293822046, 0.0989604145, 0.4334070683, 0.0009446949, -0.1464275718, 0.0377938487, -0.5074548721, 0.0541750416, 0.1758877784, 0.0315822624, -0.2065462619, 0.3023811877, 0.0383986831, -0.1740315109, 0.0583887398, 0.3313589096, 0.1977046579, 0.0018873018, -0.2859816253, 0.1939884871, -0.4752544761, 0.317070663, -0.1866375953, -0.0570911355, -0.3711288571, -0.1716537923, -0.0279306956, 0.2896539867, 0.1175735295, -0.0137533406, 0.1020940989, -0.1267558187, 0.1449100673, -0.3711962402, 0.0183533933, -0.3257528245, 0.1876350045, 0.5697364211, 0.2430301607, -0.2658626139, -0.0286302511, 0.0451287292, 0.2988792956, -0.0259164479, -0.2542477846, -0.0148700969, -0.2185211778, -0.2875646949, 0.0141414292, 0.0502199307, 0.0327843092, 0.1181928888, -0.0466404557, 0.2007243186, -0.2478128225, 0.430901438, -0.287055999, 0.2200918645, -0.0109675992, 0.1372258812, 0.0054599377, 0.0665269569, 0.2136290669, 0.3995426595, 0.0992326885, -0.1674853861, -0.1256908178, -0.1075526401, 0.1943857968, 0.4759287238, -0.253118664, 0.1103114188, 0.2523985505, 0.3625326455, -0.2590714395, 0.1302037984, 0.3083061576, 0.0562576689, -0.2572055459, -0.0783735514, 0.1777039617, 0.3756892979, -0.056673117, 0.3477581739, 0.2891750634, -0.3465954363, 0.0400703698, 0.0503162369, 0.8999298811, -0.0925032049, 0.1147375405, 0.1190014556, -0.2670383155, 0.5149240494, 0.0153373741, -0.1342629194, -0.0883745998, -0.2309799641, 0.2134761363, -0.120579578, 0.2270935178, -0.2072024345, -0.0472171009, 0.181692794, -0.5165393949, -0.1573136896, -0.3318089545, 0.5256659985, -0.4885506332, -0.2017861605, -0.2265627086, 0.0999488905, -0.1294718683, 0.0825482085, 0.0132375434, -0.1196900085, 0.3383237422, -0.1066323519, -0.3534636497, -0.2431924343, 0.2296742499, -0.0642428473, -0.1778324842, 0.0051144003, -0.0952357799, 0.084371224, 0.187757358, 0.4290836751, -0.0039183358, -0.0873905718, -0.048019927, 0.1664820313, 0.1477642059, -0.0788519755, 0.4667824805, 0.1206843629, -0.1423261166, 0.0436776429, 0.1445871294, -0.275135994, -0.1225848421, -0.2105624974, -0.1163172945, -0.1738650203, 0.0548232198, 0.1270006895, -0.3204524517, 0.1629692316, 0.153724134, 0.5195236206, -0.0784756392, 0.2295350134, -0.3311522007, -0.4457037747, -0.3362946808, 0.4338268042, -0.0239050109, -0.1791462302, 0.5448346734, 0.3414298594, -0.3074029684, -0.2703459263, 0.2222337127, 0.412269026, -0.1188803837, -0.0120396968, 0.1202386543, 0.1167799234, 0.1398665458, -0.1841650754, 0.2481609583, -0.0416448265, -0.0311380066, -0.2110674083, -0.5866544843, 0.2237887084, -0.0795901567, 0.2755915225, -0.0428286456, -0.0358393677, -0.1454814821, 0.1687010825, -0.316031605, -0.3670796454, 0.0413451791, -0.1166430935, 0.3834859133, -0.1087863296, 0.2567990124, -0.1550722569, 0.1498803496, -0.0877144784, -0.2334451377, -0.1553082466, -0.0479398184, 0.0670777708, -0.2971938252, 0.0807245225, 0.0234919712, -0.3290579319, 0.025459528, -0.2064294517, 0.1208833456, 0.531044364, 0.1693323851, 0.106739901, -0.1382100433, -0.1064065248, 0.0611085184, -0.4175784588, -0.0476972125, 0.0317200534, -0.0102499472, -0.0424823798, -0.0830196813, -0.0113728344, -0.1795106679, 0.2315698862, 0.2190891504, 0.0727264658, 0.0272216424, 0.1846975684, -0.1117703393, 0.4301355183, 0.4489693046, 0.1083128601, -0.1653655618, -0.1348166019, -0.1361064017, 0.1662262529, -0.0152436337, -0.1649346203, -0.1768235266, 0.294275701, -0.1706869751, 0.3220431209, -0.1476409435, -0.1159131154, 0.2302763015, 0.1660152376, 0.0898008123, -0.2617784441, 0.1857286096, -0.0085955113, -0.2405253798, -0.2137365341, 0.3052318394, 0.2049964219, 0.1911839992, 0.3457423747, -0.3534471095, 0.4051070213, -0.1604708582, 0.0363293216, 0.0316595733, -0.1979002506, 0.208111316, 0.4415999055, -0.1858687103, -0.0913226381, -0.0101755457, 0.1298867315, -0.0519710295, 0.1838618964, -0.1689808518, 0.1603252441, -0.0887480527, 0.1397987306, 0.5731916428, 0.1216397882, -0.026440816, -0.0852915943, 0.0082867825, -0.2131767571, -0.1158264205, 0.1446963698, -0.1249280646, -0.170025751, 0.299759984, -0.2238066941, 0.5274559259, -0.2927847207, -0.1664264649, 0.0705406591, 0.0523048639, 0.2441109866, 0.2015495747, 0.609414041, 0.2762210071, 0.2836936712, 0.3810275495, -0.0556575209, 0.0009147953, -0.0881970599, 0.394867599, -0.2048930228, 0.0218595136, 0.1150425673, 0.1665734202, -0.1844944656, 0.1279640198, -0.0217362363, 0.0872501135, -0.2614971995, 0.5596360564, 0.0769853964, -0.1684875637, -0.2072390169, 0.1250966936, -0.2793931961, -0.2924645841, 0.4331856966, 0.1771562994, 0.0425745212, -0.3949590623, 0.0702256411, -0.1825058907, 0.1641780436, 0.3775790334, -0.100387685, -0.302415669, 0.217393741, -0.3926463425, 0.0719695091, -0.069262363, -0.3006962836, -0.0450731777, -0.0540903173, -0.0868351012, 0.2786557972, 0.2691422403, -0.2731443644, -0.1238444149, -0.386523515, -0.0790504739, -0.0171067826, 0.1688849032, -0.0770207867, 0.0011857977, -0.0158321317, 0.537428081, -0.5230343938, 0.1071822643, -0.0257078037, -0.0605857, 0.0098462198, 0.2962514162, 0.2023199797, 0.0959273055, 0.1849057376, -0.0711837262, -0.1287659258, -0.4769390523, -0.0060593043, -0.1987171918, 0.2148759514, 0.0223253816, 0.155968681, -0.2797217369, -0.4530614913, -0.288782835, 0.4550155699, -0.0072685163, -0.3219811916, -0.0748839229, 0.0224796068, 0.1311858594, 0.0952373743, 0.248784259, 0.2188133299, 0.1311002523, 0.3162855506, -0.1064393297, -0.5914747119, 0.4044462442, -0.4396308064, -0.0449230671, 0.0510892421, 0.6391755939, 0.2168330401, -0.2373138964, -0.4576915801, 0.1311213374, 0.1609734297, -0.2020821571, 0.0410865806, 0.3844128847, -0.2066683769, -0.0029251545, 0.1318026334, 0.1915696263, 0.1770694554, 0.0624665953, 0.0541636758, -0.3314647377 ]
https://github.com/huggingface/datasets/issues/812
Too much logging
In the latest version of the lib the logs about locks are at the DEBUG level so you won't see them by default. Also `set_verbosity_warning` does take into account these logs now. Can you try to update the lib ? ``` pip install --upgrade datasets ```
I'm doing this in the beginning of my script: from datasets.utils import logging as datasets_logging datasets_logging.set_verbosity_warning() but I'm still getting these logs: [2020-11-07 15:45:41,908][filelock][INFO] - Lock 139958278886176 acquired on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock [2020-11-07 15:45:41,909][filelock][INFO] - Lock 139958278886176 released on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock using datasets version = 1.1.2
46
Too much logging I'm doing this in the beginning of my script: from datasets.utils import logging as datasets_logging datasets_logging.set_verbosity_warning() but I'm still getting these logs: [2020-11-07 15:45:41,908][filelock][INFO] - Lock 139958278886176 acquired on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock [2020-11-07 15:45:41,909][filelock][INFO] - Lock 139958278886176 released on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock using datasets version = 1.1.2 In the latest version of the lib the logs about locks are at the DEBUG level so you won't see them by default. Also `set_verbosity_warning` does take into account these logs now. Can you try to update the lib ? ``` pip install --upgrade datasets ```
[ -0.3842003345, -0.1210567653, -0.0782301724, 0.1213070154, 0.3027054965, 0.0185210798, 0.195324719, 0.3992017806, 0.2092475295, -0.0036373115, 0.0869948938, 0.2293004543, -0.3797933757, -0.0543083698, -0.1946720779, 0.1247085109, 0.0595848411, -0.0120905591, -0.296502471, -0.0548450053, -0.00475848, 0.1723808795, -0.0426926352, -0.0422271788, -0.6513230205, -0.0713219717, 0.2296182811, 0.0982802138, -0.3177293539, -0.5122998357, 0.00218432, 0.3213413656, 0.0933955759, 0.3480690718, -0.0001114561, -0.200807631, 0.385049969, 0.0813150555, -0.3874275684, 0.1584527493, -0.1273753047, -0.6889065504, 0.3180125058, -0.1518699825, -0.013295427, -0.3914660215, 0.1741176844, -0.4228617251, 0.3276720345, 0.2203639895, 0.2372917831, 0.2560481429, 0.1950729042, -0.0656683594, 0.169654727, 0.1276333034, -0.1257700622, 0.0613510981, 0.3956289589, 0.021628391, -0.2153388411, 0.4811872542, -0.2172436565, -0.0182276424, 0.1597385556, 0.0684907585, -0.1942415684, -0.2886530459, 0.209329918, 0.3352797627, 0.297159791, -0.4165316522, -0.4168955386, -0.4985829294, 0.1036061794, -0.1400536448, 0.0120786121, 0.0399667472, -0.0432756208, 0.2632348239, -0.2367275208, -0.2274615616, 0.1178486645, -0.0880376324, 0.3674966097, 0.0152489804, -0.120014064, -0.064343147, 0.3860505223, -0.1922383755, -0.0838975832, 0.2320226133, -0.1648689657, -0.0848813727, -0.3075755537, -0.0059676846, 0.2617580295, 0.5459193587, 0.017349612, 0.2318049669, -0.4413782954, 0.1197401583, 0.1755082458, -0.0772827044, 0.1295018345, 0.0951480865, 0.2877978384, 0.4277955592, 0.1300466955, 0.1100876331, 0.0666891187, 0.068009086, 0.3630871773, -0.4080979824, 0.4865081012, 0.0096884901, 0.4269073606, -0.258269459, 0.0138982199, 0.0117209367, 0.0211146548, -0.1405647248, 0.0885046571, 0.3236783147, 0.0389577411, -0.1044977158, 0.0325595401, 0.1472505778, -0.3150570989, -0.0125619033, -0.2725063562, 0.1832266003, -0.1048334166, 0.175608471, 0.1836135834, -0.1565753967, 0.2222398221, 0.2806103528, -0.047044877, -0.0109792072, 0.0808320791, 0.0555735752, -0.0364443511, 0.3621894717, -0.1134296209, 0.1094326153, -0.004141205, -0.1216426641, -0.1617451757, -0.0908529907, 0.020026261, -0.3312013745, -0.226462692, 0.1802600324, -0.3200677633, 0.0009689338, 0.125601843, 0.0405624434, 0.1751792282, 0.0196827929, 0.1185609028, -0.2449593246, 0.0220146831, -0.121294342, 0.1891785413, 0.7124803662, -0.1160550639, -0.1059543639, -0.2146634907, -0.2846235931, 0.1850431561, 0.2023043931, 0.0773964077, 0.1450669765, -0.1617024243, 0.0507677123, -0.0373746641, -0.4824725688, -0.2755785882, 0.1520287395, -0.1536351442, 0.0235887691, 0.5440297723, 0.1484093964, 0.1424223781, -0.0662035421, -0.0997481644, -0.2115708888, 0.1937681288, -0.1589092761, -0.1838151515, -0.1617065966, -0.1949253231, 0.1878436953, -0.1351659596, -0.2437294722, 0.0579748489, 0.2588115036, 0.2267547697, -0.1032230109, -0.1416472793, 0.3722047806, 0.3256738186, 0.1242634133, -0.1412418932, -0.2158426493, -0.4205314517, 0.0231694356, -0.0652112216, 0.063856408, -0.3778136969, -0.3627589643, -0.0519611537, 0.0710160062, -0.1508546621, -0.2055116445, 0.1037459895, 0.1855562478, -0.0640465021, -0.0086802738, -0.2316907197, 0.4891942441, -0.1248555556, 0.2356146574, -0.48164922, -0.2807699144, -0.0231937952, -0.2656395435, 0.2748297751, 0.2632426322, 0.148699671, -0.0271445774, 0.1757050753, 0.380451709, 0.0298851226, 0.6424674392, -0.013993388, 0.1570060551, 0.032606516, 0.1046310365, 0.1406440288, -0.1251660883, -0.2521864176, 0.0302476157, -0.0197070315, 0.2708447576, 0.019018136, 0.0220349487, -0.1444374621, -0.0326223187, -0.0307907593, -0.1097346321, -0.1263532788, -0.4837386012, 0.4376621842, -0.0284979641, 0.2203830779, 0.1991185248, -0.0573328063, 0.1922784299, 0.5509571433, -0.1026850417, 0.2122149318, 0.1574653089, 0.0063915192, 0.0618389286, 0.1904495806, 0.1744954884, 0.2084711492, 0.3503155112, 0.0116700614, 0.2073842883, 0.111272797, -0.1860416383, 0.1864978075, -0.0509209894, -0.3102303147, 0.0356199406, -0.1938985735, -0.1716841012, -0.2291989774, -0.0639288351, -0.4013715386, 0.3197187185, -0.3461952806, -0.0856335461, -0.4943999946, -0.0459206849, -0.1702394933, -0.0059613939, 0.0087137688, -0.3549369574, 0.2253208011, 0.0546039455, -0.1508045942, 0.2046788186, -0.0311183054, -0.0979536921, 0.0676513687, 0.0417158306, -0.1886266768, -0.0165107269, -0.1442104578, 0.0259319078, 0.0992546231, 0.0115960566, 0.3698415458, -0.1825221479, 0.0071976203, -0.2161289304, -0.3328984976, -0.086498253, -0.3166136444, 0.2226391584, 0.3451009691, 0.2186999619, 0.1186480001, -0.0733523443, -0.0937786326, -0.0263981428, 0.0352335759, -0.0686819926, -0.1568099558, -0.0560359471, -0.1092876643, -0.4498689771, -0.2963135839, -0.4060603976, 0.3338097036, -0.0031318211, 0.0861223042, 0.3134585619, 0.0736864954, 0.2679021358, -0.4539481103, 0.4992463291, 0.0025509244, -0.2084096223, 0.2432999313, 0.023703916, -0.0945895985, -0.0157249104, 0.1261737794, -0.2033743411, -0.2979952097, -0.4741600156, -0.215248853, -0.4398393929, 0.0482871942, -0.0393980928, 0.2068232149, 0.3207933307, 0.1873240322, -0.1971338242, -0.0205141157, 0.0013085478, -0.0330720209, -0.3698882461, 0.2065549642, -0.1743268818, 0.2902252376, 0.0709295794, 0.2890476882, 0.6024172902, -0.0093566626, 0.0520625301, -0.1885507852, 0.6065214276, -0.2101410031, -0.4003715515, -0.1404460073, 0.1428536922, -0.1776548028, 0.0030569588, 0.0743746459, 0.4006255269, -0.0758656114, 0.0622789599, 0.0110468529, -0.4428913891, -0.0294377636, 0.2006863505, -0.082934469, -0.1694947332, 0.4223036766, 0.1286731511, -0.1203919947, 0.0783365741, 0.2934120893, -0.0003822606, -0.0087831663, -0.2260134816, 0.09142977, -0.5675858259, 0.3230775893, -0.1862263232, -0.0358639359, -0.3785839677, -0.1563176066, 0.067602396, 0.2389380932, 0.1644758582, -0.1255973279, 0.0340730585, -0.0593375042, 0.0716857091, -0.3205618858, 0.0409764461, -0.4133748412, 0.1680275351, 0.5538190007, 0.2187897116, -0.4402221739, -0.0963387266, 0.1497091502, 0.2032132149, 0.0424952544, -0.1779586971, -0.2302888632, -0.1540990174, -0.395203352, 0.1186630204, 0.0868063495, 0.0124116223, -0.0390131734, -0.0634460747, 0.1977073252, -0.2458826005, 0.3211674988, -0.1554295868, 0.273879379, -0.0506214648, 0.1528332233, 0.043974705, 0.0103644412, 0.1142114252, 0.5003361106, -0.1269227713, -0.0673245564, -0.2192164361, -0.003670265, 0.1662020832, 0.3981055319, -0.2110255659, 0.1152877957, 0.3053014576, 0.4079304039, -0.1593983173, 0.106562674, 0.3676128983, 0.1567257643, -0.1973277777, -0.0805219635, 0.3228187263, 0.3746469319, -0.0800314024, 0.3842600882, 0.294585824, -0.2395423502, 0.1231455654, 0.0106878402, 0.8338341117, -0.0529669523, 0.0665992275, 0.0949239135, -0.2706330121, 0.4882985353, 0.0560971573, -0.1770418435, -0.1328648925, -0.196845606, 0.1891278476, 0.0212025754, 0.2278799564, -0.380538553, -0.3188482821, 0.2096366733, -0.3555573225, -0.0265580993, -0.3779293299, 0.4703407288, -0.513992846, -0.1669333577, -0.1779044271, 0.1617205143, -0.1075899452, 0.2170083225, -0.0518062599, -0.141140908, 0.2018680125, -0.1970669627, -0.5171791911, -0.1222811043, 0.093308039, -0.0480531789, -0.0954963937, -0.1800893396, -0.0442674085, 0.1278614551, 0.1890409142, 0.4562101662, -0.1590251029, 0.0397505164, -0.1158872098, 0.0600806102, 0.0554580949, -0.030899398, 0.3943159878, 0.0699736625, -0.2352160215, -0.0509000123, 0.0684570521, -0.2278548032, -0.0601517595, -0.0872578397, -0.1193824559, -0.2786221802, -0.029649958, 0.1004618704, -0.2291877866, 0.0236486401, 0.1905825585, 0.3519188166, -0.0079429531, 0.3124554455, -0.0720811188, -0.4334870279, -0.3517425954, 0.5259717107, -0.0411590971, -0.1152187213, 0.5203579068, 0.3307605684, -0.3719974458, -0.2682920694, -0.0019072746, 0.2698186636, -0.2570613027, 0.0599379651, 0.1953253001, 0.0193520728, 0.307307452, -0.1209061816, 0.1388233453, -0.114634119, -0.1912718415, -0.2003659308, -0.5947335362, 0.2515932024, -0.1341846585, 0.3578064144, -0.05075185, -0.1388093829, -0.0105759921, 0.1137604415, -0.3678405881, -0.297586292, -0.0328450911, -0.1245170981, 0.4510899186, -0.0954395905, 0.3745181262, -0.097811155, 0.1554638743, 0.1099662334, -0.359421432, -0.1913679242, -0.014662046, 0.0748744681, -0.2906976342, 0.1637744755, -0.1543094665, -0.2334355563, 0.0883497447, -0.1557346135, 0.1895463914, 0.4521876276, 0.1326583773, 0.2487802058, -0.1210599616, 0.0438916385, 0.2011242658, -0.3045767248, -0.0797949582, -0.0337635875, -0.0070998073, -0.012931386, -0.0079212375, 0.0274973009, -0.0652922913, 0.1129452884, 0.2750230432, 0.0945132822, 0.0813548192, 0.1038770229, -0.0638839081, 0.4160512984, 0.5061018467, 0.1523866802, -0.0532419421, -0.1462577134, -0.0198967289, 0.237440154, -0.1275092512, -0.0834042728, -0.0136373863, 0.347440511, -0.0645244792, 0.2793582082, -0.0807391107, -0.0690291673, 0.3258928955, 0.2143790722, 0.1791694909, -0.3216128647, 0.2039731592, 0.0435352623, -0.1933197528, -0.1793672591, 0.3450178206, 0.1838213056, 0.1449822336, 0.3770676553, -0.3118772805, 0.5273201466, -0.1330572367, 0.1501945704, -0.0078298179, -0.1290221214, 0.0946429744, 0.2455661893, -0.0418726802, -0.1048133969, -0.0254210141, 0.3819456398, -0.1224861667, 0.1320404857, -0.1750385314, 0.2013736218, -0.1989215612, -0.0781993493, 0.5095497966, 0.1346431077, -0.0471682362, -0.0738074332, 0.0545245148, -0.1464519203, 0.055289425, 0.1259676367, -0.1458953917, -0.3475187123, 0.2371222973, -0.1874284297, 0.4338354468, -0.1879196763, 0.031336315, 0.099228017, -0.0288846064, 0.1070847139, 0.3526529074, 0.6822690964, 0.2854703367, 0.2022924125, 0.2540792823, -0.1048099697, 0.0227650404, -0.1309241056, 0.4743936956, -0.1250690222, 0.139726609, 0.1326149106, 0.1673961133, -0.2666596174, 0.1741359681, -0.0964726061, 0.0576642826, -0.1789549291, 0.5616602898, 0.0397817306, -0.2426111698, -0.2239872068, 0.0867285952, -0.3847689033, -0.1459622234, 0.3230117857, 0.1246514842, -0.0189328399, -0.519995749, 0.0988150313, -0.0991547927, 0.2348691374, 0.3353750706, 0.0044649672, -0.2047854662, 0.1303915679, -0.5033683777, 0.0234639943, -0.0397755504, -0.2664726973, -0.1572217345, 0.0197521746, -0.1950362325, 0.2984103858, 0.3773124218, -0.3138504624, 0.0501936674, -0.242692858, -0.1993449777, 0.083726041, 0.134265691, -0.189459309, 0.1656033546, 0.0313537419, 0.3460463285, -0.4697654843, 0.0481720045, -0.1129011959, -0.0412016436, 0.1014004722, 0.2144017816, 0.2249888331, 0.1070276573, 0.2256127596, -0.125279963, -0.1326644868, -0.4260478616, -0.0651868582, -0.1742411256, 0.1416391432, 0.0835431442, 0.2157321125, -0.3106634617, -0.3851438761, -0.3129425347, 0.4378098249, -0.0415194668, -0.2413824052, 0.0373810045, -0.0521588288, 0.1979450732, 0.0089822104, 0.1308054328, 0.18920964, 0.0927537233, 0.3730069101, -0.273917824, -0.6905542612, 0.5269716978, -0.3244991004, 0.014765705, 0.0947723612, 0.4946192801, 0.2482426018, -0.315516144, -0.7181568742, 0.1357465833, 0.0534837656, -0.1045394838, 0.0733512044, 0.4127818942, -0.1984712034, 0.0815459564, 0.0882646888, 0.3735579848, 0.1968110204, 0.0937993452, 0.1009649634, -0.2316854745 ]
https://github.com/huggingface/datasets/issues/812
Too much logging
Thanks. For some reason I have to use the older version. Is that possible I can fix this by some surface-level trick? I'm still using 1.13 version datasets.
I'm doing this in the beginning of my script: from datasets.utils import logging as datasets_logging datasets_logging.set_verbosity_warning() but I'm still getting these logs: [2020-11-07 15:45:41,908][filelock][INFO] - Lock 139958278886176 acquired on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock [2020-11-07 15:45:41,909][filelock][INFO] - Lock 139958278886176 released on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock using datasets version = 1.1.2
28
Too much logging I'm doing this in the beginning of my script: from datasets.utils import logging as datasets_logging datasets_logging.set_verbosity_warning() but I'm still getting these logs: [2020-11-07 15:45:41,908][filelock][INFO] - Lock 139958278886176 acquired on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock [2020-11-07 15:45:41,909][filelock][INFO] - Lock 139958278886176 released on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock using datasets version = 1.1.2 Thanks. For some reason I have to use the older version. Is that possible I can fix this by some surface-level trick? I'm still using 1.13 version datasets.
[ -0.1845475137, -0.0496456586, -0.0627771392, 0.1152711511, 0.3269052207, 0.2235253006, 0.2482611537, 0.528516233, 0.0655088052, -0.1148338318, 0.0331851281, 0.073486127, -0.3805564046, 0.0945331976, -0.1415010691, 0.0496979393, 0.0995936543, -0.1345143169, -0.2368710935, -0.0040863911, 0.0368101299, -0.055420354, -0.0283103399, -0.0276661329, -0.6987546086, -0.0575599074, 0.1499658823, -0.0849990994, -0.1258637309, -0.4327806234, 0.0435502306, 0.2825658619, 0.347121954, 0.2078095526, -0.0001142335, -0.1720218509, 0.4031153619, 0.0916630328, -0.3014634848, 0.3300529718, -0.0656790435, -0.4610647857, 0.2376313657, -0.0499526523, -0.0254256204, -0.5238724947, 0.1842405498, -0.4831918776, 0.3442487121, 0.1456304789, 0.2353026867, 0.1066782773, 0.0380545035, 0.0139939506, 0.0903737992, 0.3014701307, -0.001908133, 0.0512066856, 0.346989274, -0.1349480748, -0.1935210973, 0.4127216339, -0.1736091822, -0.1043012813, 0.3182491064, 0.0128092198, -0.0742238685, -0.2959927917, 0.3224025667, 0.2155655921, 0.2681919038, -0.3811310828, -0.39957425, -0.5169014931, 0.0863062888, -0.2460649908, -0.0616000257, 0.0412019938, -0.0013886936, 0.3254364729, -0.2808997929, -0.3249800801, 0.1087710485, -0.1722454727, 0.2617554367, 0.0027785958, -0.0368904509, -0.0374572054, 0.3654304743, -0.1419897974, 0.0854226947, 0.2243277431, -0.1866132766, -0.1186128557, -0.4022974968, -0.0864093527, 0.272098273, 0.5041310787, -0.0741480142, 0.2894926369, -0.6020699143, 0.0333602019, 0.127295956, -0.2467955649, 0.2720283866, 0.073576875, 0.3732916713, 0.5536037683, 0.076560922, -0.0217358954, 0.1850699186, 0.0759656876, 0.2913796902, -0.4003846347, 0.6298024654, -0.0334343575, 0.4733225107, -0.2939383686, 0.1994021684, -0.1041646227, -0.0936502218, -0.0824800357, 0.0064304951, 0.230199039, 0.210549444, -0.1513170749, 0.0179954302, 0.2042634636, -0.1932064593, -0.2217478752, -0.2325340211, 0.2259944826, 0.0028699297, 0.2076524794, 0.2626850009, -0.1796610057, -0.1444161683, 0.1959082633, -0.2313891947, -0.0759734139, 0.1347896159, -0.0709471479, -0.0010419275, 0.2148305178, -0.186611563, 0.190102309, -0.0359655097, -0.13111718, -0.260116756, -0.0466417596, -0.050082054, -0.3688071668, -0.1743072718, 0.151640147, -0.2515849471, 0.0005150169, -0.0462860242, 0.1082535237, 0.190543592, 0.2031273097, 0.0581560321, -0.2059938014, -0.2135685086, -0.0273736492, 0.0847039595, 0.7543081045, -0.1837231815, -0.107411325, -0.3210383058, -0.2445938587, 0.1847118586, 0.2475205809, 0.1200599074, 0.329762429, -0.2883556783, 0.0214671809, -0.0718073323, -0.4368185401, -0.2153705359, 0.1418336481, -0.180139944, 0.0469523743, 0.5603653193, 0.14654167, 0.2135157734, -0.228957057, 0.0564916357, -0.177875936, 0.0707225651, -0.1444959641, -0.1745426953, -0.1741803885, -0.0578507259, 0.2597690523, -0.0377271734, -0.125159651, 0.010942637, 0.0561604127, 0.301389724, -0.2052973062, 0.0062505337, 0.3207731843, 0.206901744, -0.1019969955, -0.1961973459, -0.1875399053, -0.4523918033, -0.0530887917, -0.0805827379, 0.0437466875, -0.3083762527, -0.5036981702, -0.0187298525, -0.0284757316, -0.1009287536, -0.1177564636, 0.0384826399, 0.1760461032, -0.0963705033, -0.1906671822, -0.0979923606, 0.3941920996, -0.1013602018, 0.1274788231, -0.4881790578, -0.2294751555, 0.0685022324, -0.1784318686, 0.4208114147, 0.1858518124, 0.1870517284, -0.0038344432, 0.2205533087, 0.240707919, -0.0329662897, 0.7907804251, 0.0644707233, 0.3371535838, -0.0882411003, 0.1161913648, 0.0621466935, -0.0583441146, -0.2887874842, -0.0298367403, -0.0413100123, 0.4230464995, 0.2049779892, 0.1118841395, -0.1287045181, 0.0438720025, -0.1169308126, -0.1507567763, -0.0841367468, -0.5032489896, 0.4043028057, -0.0699332282, 0.1761552691, 0.2005902678, -0.071334511, 0.358400315, 0.4714877605, -0.2176750749, 0.2357919216, 0.2873409092, -0.0208742991, 0.0213780738, 0.1399318725, 0.1880246252, 0.1088553444, 0.2872412205, 0.0148914, 0.3430372179, 0.3121268451, -0.0554929934, 0.3003985882, -0.0318190269, -0.2443659604, -0.1732455343, -0.0298624486, -0.147617802, -0.0066399872, 0.0383540094, -0.4003475308, 0.3763829172, -0.4999677539, 0.0595461801, -0.6568228602, -0.2970499694, -0.2544573843, 0.1902565658, 0.0392689668, -0.3844944537, 0.1392333955, 0.090471074, -0.1452604234, 0.174047783, -0.0440058224, 0.1154810637, 0.0897043049, 0.1575215906, -0.3321348131, -0.0229362864, -0.1803104132, 0.0299765542, 0.2657261193, -0.0059441212, 0.4097062349, -0.2006053776, -0.051323995, -0.2849321663, -0.3416579068, -0.062789537, -0.1004974768, 0.1743464321, 0.2368711531, 0.1116312444, 0.067149125, 0.033028733, -0.1913240403, -0.0941476822, 0.0959201455, -0.0322465487, -0.2914229035, 0.1275750101, -0.0760286301, -0.327640444, -0.2210874557, -0.2438618839, 0.3612035215, -0.0425977521, 0.1103074625, 0.3691275418, -0.1180831417, 0.0815080479, -0.4132011831, 0.4220193923, -0.0115912687, -0.2237788886, 0.2547199428, 0.0998542011, -0.0389036536, -0.0693696663, 0.0822913647, -0.3534401357, -0.2201089859, -0.5487346649, -0.2341194153, -0.4150405526, -0.0939439088, -0.0649740547, 0.1855562627, 0.2899773121, 0.1923262328, -0.0875974372, 0.1645503044, -0.0551616885, -0.0478193723, -0.387490958, 0.14054735, -0.0966755822, 0.2842617929, 0.1976348758, 0.3441004157, 0.5574745536, 0.042477984, -0.0754356161, -0.2141034454, 0.5718834996, -0.2818306088, -0.3039309084, -0.1314203292, 0.1156019717, -0.1821357459, -0.0945815891, 0.0998168513, 0.3431896269, -0.0591259375, -0.1497662067, 0.0663821846, -0.5078798532, -0.0191527866, 0.2249501497, -0.0265606772, -0.1209884509, 0.2878620625, 0.0156215355, -0.2363461107, 0.1701835096, 0.245960176, 0.1029065549, 0.0323909149, -0.4344902337, 0.1664492488, -0.7213899493, 0.4466556907, -0.1041034758, 0.034123607, -0.2104400396, -0.1561364681, 0.0077645383, 0.3723124266, 0.2193947881, -0.1493704766, 0.2264133841, -0.0196224619, 0.0373183377, -0.3274549842, 0.0153567549, -0.3497527242, 0.2822165191, 0.5570358634, 0.1623633057, -0.179265365, -0.1803702414, 0.1766924858, 0.2699888349, -0.0373565666, -0.1949125379, -0.1092564762, -0.1963041276, -0.2780589461, -0.0031818398, 0.1013178602, 0.066079624, -0.0230642036, 0.0405233279, 0.0406472571, -0.3104875982, 0.3731945157, -0.3377857804, 0.2481721938, 0.0325403139, 0.2477481365, 0.0192489661, 0.1079975143, 0.2164223194, 0.3639294207, 0.0886833742, -0.2177184969, -0.1563557088, -0.0123330057, 0.2017845511, 0.463159591, -0.2448463291, 0.22310552, 0.1815952957, 0.3818921447, -0.3454273343, 0.000887947, 0.1865534633, 0.1166726798, -0.2835583985, -0.0918459073, 0.2894294858, 0.3648079634, -0.1354428679, 0.4223407507, 0.2825652659, -0.4037982225, 0.0595987923, -0.0134284748, 1.0228248835, -0.0958487168, 0.082083784, 0.0964182615, -0.2569856048, 0.4764890969, 0.1928961873, -0.0476427898, -0.2166038603, -0.3129031956, 0.1542141736, -0.0362481512, 0.1545401663, -0.3156777322, 0.0204743519, 0.3621281087, -0.4943401217, -0.0015032422, -0.2654556334, 0.4618162513, -0.3782165647, -0.157431215, -0.3005767167, 0.0780270696, -0.0972102061, 0.0793015361, -0.09832903, -0.0861016139, 0.3254992664, -0.158667177, -0.3358669877, -0.2780639231, 0.246298641, -0.1289515495, -0.0743104294, -0.0947827175, -0.0116022825, 0.0951549709, 0.2536322474, 0.3788903058, -0.1345604956, -0.0864736587, -0.1825803518, 0.1769082099, 0.1770612448, -0.0751283765, 0.2750738263, 0.0701154619, -0.1578248143, -0.0040238933, 0.1588582098, -0.3066463172, -0.1811252236, -0.1831433773, -0.0824745223, -0.1402903646, 0.0432118066, 0.0777518675, -0.2249749899, 0.0777296126, 0.1457720548, 0.2886358798, 0.0971757472, 0.1494161636, -0.1460625976, -0.325429529, -0.3056716919, 0.5781707764, 0.0622144006, -0.0449514724, 0.5925281048, 0.3270190954, -0.2988740206, -0.2708673775, 0.0871447921, 0.3117559552, -0.2120980024, 0.0858571976, 0.086473383, 0.1492682397, 0.2055314332, -0.134744361, 0.0223299339, -0.0177579001, -0.0332336202, -0.2165285051, -0.5762386918, 0.2602945864, -0.1569846272, 0.261720866, -0.0903237835, -0.0142189767, -0.1747015864, 0.119970277, -0.3274495304, -0.3087002337, 0.2129461914, -0.1259738654, 0.3004691601, -0.056787435, 0.2129831761, -0.196776256, 0.0944232047, 0.0855097547, -0.2549473345, -0.167603001, 0.0385932699, 0.097806327, -0.401396364, 0.0355883092, 0.0576630421, -0.2081140429, -0.06977164, -0.1869595349, 0.1242233068, 0.5811997652, 0.178498283, 0.2072704434, -0.1150247678, -0.0837636515, 0.0948128253, -0.2671191394, 0.0116610602, 0.1067253202, -0.073956795, 0.097213164, -0.0397532657, 0.0958202034, -0.0369275175, 0.1255936623, 0.1979067922, 0.0852529854, 0.0882779583, 0.2324169874, -0.1626404524, 0.5327465534, 0.4566959441, 0.083558619, -0.2391479611, -0.1167794317, -0.0306132529, 0.1834724545, -0.1348665506, -0.0700272322, -0.0358435102, 0.2857696712, -0.220610112, 0.4170996249, -0.1020315289, -0.1228815764, 0.2743917108, 0.1356433779, 0.0889698192, -0.2586746812, 0.2499245256, -0.0118149165, -0.1307214499, -0.3220932782, 0.4062692821, 0.2319777012, 0.1693904251, 0.3233460188, -0.2802151144, 0.3817973435, -0.116732657, 0.2175146341, -0.0006150338, -0.2654289901, 0.1276234388, 0.5195830464, -0.1552282572, -0.0818762854, -0.0869220346, 0.1188351065, 0.1133858487, 0.054695528, -0.2093762308, 0.1882800311, -0.0151242502, -0.0388148315, 0.5575550199, 0.1163370162, -0.040795885, -0.0006744269, -0.0272407085, -0.2548864186, -0.0662179291, 0.1104632542, -0.0752443224, -0.2503239214, 0.3213796914, -0.1419882327, 0.6471571922, -0.248148337, -0.1184146851, -0.0314654671, -0.0207134541, 0.2452708483, 0.248162657, 0.6147251725, 0.197352916, 0.2949054539, 0.3833203614, -0.0775427893, 0.0347490869, -0.0457637943, 0.3528988361, -0.0421321988, 0.0435270332, 0.0527080745, 0.1348371953, -0.0971958041, 0.2719749212, -0.1069201753, 0.1292625666, -0.424720943, 0.5578892231, 0.1249478906, -0.1892281771, -0.154658854, 0.0768141896, -0.1417121589, -0.2965762317, 0.408241719, 0.176660195, 0.0283533055, -0.3209652603, 0.0760009885, -0.297837317, 0.1563448161, 0.3977251351, -0.066880472, -0.2303670198, 0.0655098185, -0.3557760119, 0.0461471938, -0.0248776209, -0.1748916656, -0.0113251666, -0.0486217141, -0.0889656693, 0.1923786402, 0.3781265914, -0.3197565675, 0.0550171323, -0.3638288379, -0.0571341217, -0.023772588, 0.0704446286, -0.091581434, 0.1109789908, -0.1278045177, 0.483525902, -0.5077933669, 0.0508920848, -0.0503237993, 0.0080069602, 0.0118282856, 0.213062644, 0.2893228233, 0.1443715692, 0.1605489552, -0.0331976861, -0.0812244713, -0.4489465058, -0.0131017016, -0.3024802804, 0.3007674813, -0.0521996096, 0.1398363858, -0.3996767104, -0.3157459497, -0.3180854321, 0.4130197167, -0.0654373989, -0.2322543114, -0.1681163162, 0.0659506842, 0.0782140791, 0.0738446936, 0.109425962, 0.1592603922, 0.0564105064, 0.3194158077, -0.2590792477, -0.5449336767, 0.5200137496, -0.3985481262, -0.073497653, 0.0006203221, 0.6537174582, 0.2560563087, -0.3464395404, -0.5534007549, 0.077734746, 0.1594492793, -0.1088635325, 0.1241918355, 0.4242925346, -0.2983648181, 0.1354719996, 0.1167239696, 0.330105722, 0.1954040974, 0.0571989454, 0.0780384839, -0.3463287055 ]
https://github.com/huggingface/datasets/issues/809
Add Google Taskmaster dataset
Hey @yjernite. Was going to start working on this but found taskmaster 1,2 & 3 in the datasets library already so think this can be closed now?
## Adding a Dataset - **Name:** Taskmaster - **Description:** A large dataset of task-oriented dialogue with annotated goals (55K dialogues covering entertainment and travel reservations) - **Paper:** https://arxiv.org/abs/1909.05358 - **Data:** https://github.com/google-research-datasets/Taskmaster - **Motivation:** One of few annotated datasets of this size for goal-oriented dialogue Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
27
Add Google Taskmaster dataset ## Adding a Dataset - **Name:** Taskmaster - **Description:** A large dataset of task-oriented dialogue with annotated goals (55K dialogues covering entertainment and travel reservations) - **Paper:** https://arxiv.org/abs/1909.05358 - **Data:** https://github.com/google-research-datasets/Taskmaster - **Motivation:** One of few annotated datasets of this size for goal-oriented dialogue Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html). Hey @yjernite. Was going to start working on this but found taskmaster 1,2 & 3 in the datasets library already so think this can be closed now?
[ -0.2614887953, 0.0552466623, -0.1595136225, 0.2156595439, 0.1674281508, -0.0379507989, 0.3336216807, 0.0670079514, 0.1323193163, 0.1240415946, -0.2129541785, 0.2662529945, -0.4864400029, 0.5283169746, 0.1895262748, -0.0497275293, 0.0831428543, -0.0871643871, 0.1714654714, 0.1660843641, -0.1717769504, 0.0900845081, -0.1450600624, 0.0237623062, -0.1984924376, -0.2001336664, 0.0279077757, -0.0120168636, -0.1924096942, -0.3131721318, -0.0301321894, 0.3213690817, -0.096623227, 0.7043568492, -0.0001007273, -0.3078627586, 0.154203102, -0.1997464299, -0.3623099029, -0.0376224555, -0.103500329, 0.0397052132, -0.1769136041, -0.0062241876, -0.21349819, -0.1862122715, 0.0373941325, 0.0631219074, 0.1247558221, 0.4792366028, 0.2868831158, 0.0314498991, 0.0237893015, -0.3139029443, -0.089279674, 0.167317301, -0.3250296116, 0.1835337877, 0.2450786382, 0.0302087236, -0.1205397323, 0.3014369905, -0.181848526, -0.139877066, 0.2054294348, -0.2605778277, -0.1797824502, -0.2628005743, 0.1561324149, 0.3817878067, 0.5788029432, -0.163454935, -0.1290094852, -0.424713999, -0.0288701802, -0.1403269321, -0.1643436551, 0.2142510414, -0.1045960039, 0.1321997792, -0.2390734553, -0.3919071853, -0.0509703569, 0.02452025, 0.0453484692, 0.1810944676, -0.2719654739, -0.1165954992, 0.1177237257, -0.2911083996, -0.1091826707, 0.0246928167, -0.139709115, -0.0661734939, -0.5199307799, -0.384678483, 0.397169292, 0.2486702055, 0.3383380175, 0.1867455393, 0.1201626435, -0.0119864037, 0.0094056483, -0.061528638, 0.4166885912, 0.129199937, 0.0020515947, -0.0619576164, 0.1798339337, 0.2364336848, 0.1209972426, 0.2560901642, -0.1727961302, -0.0051425947, -0.0672672987, -0.0164522547, -0.0275281388, 0.1008450463, -0.3065924346, 0.2058401704, -0.1520983279, 0.0444887951, 0.1388907135, 0.2740323246, -0.2231862396, 0.0721610561, -0.0989483446, 0.1962259561, 0.0454921573, -0.0089531103, -0.0678544268, 0.1156094, -0.2882878482, 0.3044953942, 0.1619828492, 0.2245099247, 0.0406727232, -0.1672493964, -0.0642296299, -0.0941350237, 0.1624990553, -0.1709159911, -0.0306093991, -0.1118815988, 0.0123429503, -0.3497441411, -0.208451584, 0.0089682173, -0.1720943153, -0.0218162816, 0.1849710792, -0.2141787857, -0.1163016558, 0.2941467762, -0.1590954214, -0.2060001343, -0.3234020472, 0.7503314614, -0.0713446289, -0.0585386455, 0.2222454548, 0.2418705225, -0.3724504411, -0.1413064599, -0.0511273816, 0.3489097953, 0.0621129051, -0.0115339123, -0.1397533119, -0.1462153494, -0.4228977561, 0.310708344, 0.0636390373, 0.423271507, -0.1566385478, 0.0577302054, -0.0616488755, -0.2638650835, -0.278619796, 0.170336917, -0.5045646429, 0.0620135404, 0.2612500489, 0.1390813291, 0.4737355709, -0.4069030881, 0.5480496883, 0.2350350022, -0.1516468227, 0.0258386638, -0.1084817871, -0.300291121, 0.0096799536, 0.3743721545, 0.1809770018, -0.2353051156, -0.1113969833, -0.1721188724, 0.0077165351, -0.1511416733, 0.0177356955, 0.157163173, 0.3781970143, 0.1448084265, -0.074647747, -0.3520779908, -0.4401957393, -0.2714776695, 0.0580165349, 0.1237808689, 0.2761163712, -0.4302568138, -0.1637153476, -0.0106255757, -0.0130672259, -0.1467057914, 0.2628626227, 0.1287088245, 0.0623059161, -0.1343760341, -0.1763134748, 0.5124223232, -0.1791615039, -0.0888967514, 0.1272491217, 0.0461913906, 0.0050450289, -0.0523158312, 0.2747650743, 0.4075891674, -0.0309083369, 0.1027132422, 0.2287935317, 0.1635103971, -0.0730133057, 0.250826478, 0.2525399327, 0.4002340138, -0.0040865038, -0.2029567957, -0.0149972513, 0.2142475396, 0.0235824734, -0.0960365608, -0.2542679906, 0.268188864, 0.2542660534, 0.0910764784, 0.0821858272, 0.1735060811, 0.1134503707, -0.209338516, -0.1832900196, 0.0298004132, 0.1873932183, 0.2138005942, -0.0630106851, 0.1144267246, -0.6919631958, 0.1650876701, 0.3536659777, -0.0179389641, 0.4091229439, 0.1830299944, -0.1275762022, -0.3061301708, -0.0035227526, -0.3534866869, 0.1044599861, 0.4246432185, 0.0630819798, -0.002915015, 0.2378721982, -0.166538462, 0.1324301064, 0.089247033, 0.0002082366, 0.2678320408, 0.2840034366, -0.0470414832, -0.2962807715, -0.2191295028, -0.0053094481, 0.0315587297, -0.1969404072, -0.1997756511, 0.1438697726, -0.2817780972, -0.0144886505, -0.020476222, -0.0104616564, -0.006653483, 0.2491913587, 0.148409754, -0.0625200048, 0.1598895043, 0.2966143489, 0.5640652776, -0.238079235, 0.0970345587, -0.1008224264, -0.5919593573, 0.0034709468, 0.2379781604, 0.1573927253, -0.2912112772, 0.5987556577, -0.047684703, 0.1234839782, -0.5213548541, -0.4303776324, 0.2126311511, -0.3136652708, 0.2960093021, 0.163302511, 0.0663071871, -0.0380841158, 0.0635017306, -0.2227794081, 0.1621678323, -0.0654898733, -0.2262502164, -0.1913324147, 0.089525871, -0.0155230658, -0.3140385151, -0.0792752504, -0.64640522, 0.5182401538, -0.1646692455, 0.1542174369, 0.3452111483, -0.1528859288, 0.1042084172, -0.1129699126, 0.067309998, -0.3176526427, 0.1281549335, 0.1276372224, -0.2890617847, -0.1419185698, -0.2176156044, -0.2709977925, 0.126726687, -0.0954343751, -0.3981797397, 0.1359132528, -0.066158928, 0.0953591242, -0.0531415977, -0.2207898796, 0.2568979263, -0.0169485211, -0.2660771012, -0.0653652102, -0.3890555799, 0.1412202418, 0.2797257602, 0.0679738671, 0.0680813342, 0.078095831, 0.0350671932, 0.2983909845, -0.0397374779, 0.2279608101, 0.1530388296, 0.0089080269, 0.3236824572, -0.0899437219, -0.2734913528, 0.5499241352, 0.2022092789, -0.0500391982, 0.4199292362, 0.0643066838, -0.1487179399, -0.0776425973, -0.1573595852, -0.0776627883, -0.1441313326, 0.1170255244, -0.1653670222, 0.23103562, -0.2109772861, -0.1682578027, -0.2618764341, -0.0410390496, -0.0105370237, 0.1600441635, 0.0578894392, -0.2461483628, -0.1157541722, 0.3369306922, -0.3425081372, 0.1058337986, -0.0220843535, -0.0903135762, -0.2629330456, 0.1058384702, -0.1920099109, 0.036721278, 0.4593262374, -0.0843129009, -0.2236308008, -0.00581261, 0.3202739954, -0.0442815907, 0.3011354804, 0.013720395, 0.0952120498, 0.2548999786, 0.6941004992, -0.3379405737, 0.0444246866, 0.4166788161, -0.053141132, 0.100389801, -0.0756770298, 0.0354470983, -0.2737962008, -0.0657210797, 0.4045336545, 0.1714754701, 0.108061336, 0.4278353453, -0.1285212636, 0.1964721382, -0.0749866366, 0.2083273232, -0.2814508677, 0.0158278141, 0.2705785334, 0.1865022928, -0.1502010971, -0.0852075964, 0.210026592, 0.3960535228, 0.1659189016, -0.197272867, 0.1441336721, -0.2553130388, 0.3726990819, 0.2760241926, 0.2314089686, 0.1951174587, -0.0132763581, 0.493060112, -0.2513539791, 0.1069018692, 0.0910185575, -0.0045255069, -0.5179163218, -0.4419851303, 0.1323389411, 0.1544007808, -0.0653376952, 0.4278349578, -0.0870074108, -0.1938179284, -0.2065761536, 0.0495639555, 0.9224185348, 0.0042034942, 0.2119582146, 0.4051852524, -0.5795308352, 0.0694971979, -0.2566627562, 0.1229210868, -0.0451139398, 0.2835306525, 0.0615989007, 0.0527590625, -0.1864237934, 0.1910007, -0.432839334, 0.0930375755, 0.0615275986, 0.146549359, 0.1344944686, 0.4971318245, -0.1569568813, -0.3890839815, -0.2649886012, 0.2539275289, -0.1405626982, -0.0713883638, -0.0638071746, -0.1614773571, 0.0310062543, -0.0530794859, -0.5341098905, -0.128045246, -0.2671844959, -0.1989198178, 0.0845622569, -0.519002378, 0.274331063, -0.1211941764, 0.0168520324, 0.1504992992, -0.3063869774, 0.1029706821, 0.046102114, 0.0080745146, -0.0130425766, -0.0769604817, 0.447604686, -0.0306448694, -0.0582411736, 0.0667873248, 0.2132110894, -0.1285061985, -0.5471847653, 0.0972179174, 0.0421943031, -0.1174716279, 0.014149894, 0.1093633026, -0.1167788208, -0.2550393045, 0.2261780947, 0.1129070967, 0.0214295797, -0.0700400099, 0.0169777088, -0.1325226873, -0.2255840749, 0.0563983433, 0.1370144933, -0.1952791661, 0.1854115576, 0.4506286979, -0.1530921161, -0.5877158642, 0.005971781, 0.2940579355, 0.000002716, 0.2696416974, 0.0914231017, -0.2956955433, 0.0464395732, 0.3118741512, 0.0237874147, -0.0398306996, 0.0400151573, -0.0107819578, -0.4449404776, 0.2384039611, -0.3241704702, 0.1604295224, -0.144194603, -0.021319598, 0.2203159779, 0.04238021, -0.4860435426, -0.0637269095, -0.4109109342, 0.0673708245, 0.3359677792, -0.1816315949, -0.0566215068, 0.0057616262, 0.2004770041, -0.1914738566, -0.2832297683, -0.3187801838, -0.1769900471, 0.0831012949, 0.0346601196, 0.2209993303, 0.0055384003, 0.0053610634, -0.3474757671, -0.0585802235, 0.3122032881, 0.3366633654, -0.0110063292, -0.1279554814, -0.3325208724, -0.065284878, 0.2533952296, -0.1236495897, 0.1806528121, 0.1077033654, 0.034610711, -0.0085136453, 0.2483476698, -0.0588275939, -0.1101664677, 0.4326221645, 0.4296227098, -0.0656216741, 0.1655566096, 0.0395487696, -0.0317779519, 0.2534834146, 0.1656469703, -0.0127339447, -0.0342915915, 0.0483635999, 0.1087709293, 0.3111404777, -0.0967459977, 0.2382244468, 0.1319252253, -0.3640677929, 0.2468380332, 0.1856052876, -0.002897999, 0.2447804213, 0.0875359327, 0.1429654062, 0.0931361243, 0.0603959337, 0.1990291178, -0.1532162428, 0.0971815139, -0.0641129315, 0.5701428652, 0.1783619374, 0.3212883472, 0.0907502845, 0.2958136797, 0.2464679331, 0.0606438592, 0.1194172129, 0.403106451, -0.0200185385, -0.1044330969, -0.1590247154, -0.1592030227, -0.0486531071, -0.0868865624, 0.5234049559, -0.2786829472, 0.1393798292, -0.0019495613, 0.0124199735, -0.2311098576, 0.1900731325, -0.0240691788, -0.2697419524, -0.1429314464, 0.0223111473, 0.0209667254, -0.116647616, 0.1573185027, -0.0206566695, 0.096215941, -0.2094019353, 0.1180355027, 0.2326322049, 0.1462401897, -0.3240092099, 0.0697673634, -0.2487804592, 0.1303092837, 0.0985717922, 0.5581968427, 0.1926462203, 0.1127707511, -0.3313201368, 0.058808282, -0.2364314198, -0.1330972761, -0.0621242933, 0.1594276726, 0.2089762092, 0.067075558, 0.2843998373, 0.2394437343, -0.281275034, 0.2649779022, 0.2016081512, -0.4137313366, -0.3584230244, -0.0328579433, -0.0273719262, -0.2570316494, -0.270748049, -0.0777750537, -0.4774098396, -0.1650235057, 0.1326691359, -0.0494086035, 0.015492877, -0.3788841069, 0.1565182507, -0.1011170596, 0.3919010162, 0.3475649357, 0.4866900146, -0.0984479338, -0.1428845376, -0.3140198886, 0.152328968, -0.006351932, -0.1410080791, -0.0102801016, -0.043221239, 0.0756922662, 0.3448822498, -0.112955153, -0.0117367059, -0.0404543839, -0.0593648329, -0.3465918005, 0.2285218686, 0.3738492727, 0.2461615801, 0.1255486906, -0.0747674555, -0.0023518831, 0.0123154223, 0.1539681554, -0.213932097, -0.0713587254, 0.0829249993, -0.1694504023, 0.2467195541, -0.2851561904, 0.3618654609, -0.1637969613, -0.1217435375, -0.1098739728, 0.1035009027, -0.1392455399, -0.1859429628, 0.1150812432, 0.3691793382, -0.1166028902, -0.0576778539, -0.0611323789, -0.0294609778, -0.0412597954, 0.2865531445, 0.0700431466, 0.178775996, 0.048796691, -0.0715589747, -0.0751319975, 0.1126111075, -0.0251286533, -0.066049695, -0.0930082649, -0.3622238338, 0.2840493023, -0.029528616, -0.4029160142, -0.1293281019, 0.2246697098, 0.0481189042, -0.169331044, -0.5357701778, 0.1112421751, 0.2190643698, 0.2421079725, 0.0319204293, 0.3021374047, -0.1388213038, -0.070343487, -0.0344766788, 0.0103812255, 0.0269467551, 0.1642327905, -0.2071315348, -0.3559952974 ]
https://github.com/huggingface/datasets/issues/807
load_dataset for LOCAL CSV files report CONNECTION ERROR
Hi ! The url works on my side. Is the url working in your navigator ? Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
## load_dataset for LOCAL CSV files report CONNECTION ERROR - **Description:** A local demo csv file: ``` import pandas as pd import numpy as np from datasets import load_dataset import torch import transformers df = pd.DataFrame(np.arange(1200).reshape(300,4)) df.to_csv('test.csv', header=False, index=False) print('datasets version: ', datasets.__version__) print('pytorch version: ', torch.__version__) print('transformers version: ', transformers.__version__) # output: datasets version: 1.1.2 pytorch version: 1.5.0 transformers version: 3.2.0 ``` when I load data through `dataset`: ``` dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False) ``` Error infos: ``` ConnectionError Traceback (most recent call last) <ipython-input-17-bbdadb9a0c78> in <module> ----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False) ~/.conda/envs/py36/lib/python3.6/site-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) 588 # Download/copy dataset processing script 589 module_path, hash = prepare_module( --> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True 591 ) 592 ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs) 266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version) 267 try: --> 268 local_path = cached_path(file_path, download_config=download_config) 269 except FileNotFoundError: 270 if script_version is not None: ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 306 user_agent=download_config.user_agent, 307 local_files_only=download_config.local_files_only, --> 308 use_etag=download_config.use_etag, 309 ) 310 elif os.path.exists(url_or_filename): ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag) 473 elif response is not None and response.status_code == 404: 474 raise FileNotFoundError("Couldn't find file at {}".format(url)) --> 475 raise ConnectionError("Couldn't reach {}".format(url)) 476 477 # Try a second time ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py ``` And I try to connect to the site with requests: ``` import requests requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py") ``` Similarly Error occurs: ``` --------------------------------------------------------------------------- ConnectionRefusedError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self) 159 conn = connection.create_connection( --> 160 (self._dns_host, self.port), self.timeout, **extra_kw 161 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock ConnectionRefusedError: [Errno 111] Connection refused During handling of the above exception, another exception occurred: NewConnectionError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 676 headers=headers, --> 677 chunked=chunked, 678 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 380 try: --> 381 self._validate_conn(conn) 382 except (SocketTimeout, BaseSSLError) as e: ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 976 conn.connect() 977 ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self) 307 # Add certificate verification --> 308 conn = self._new_conn() 309 hostname = self.host ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self) 171 raise NewConnectionError( --> 172 self, "Failed to establish a new connection: %s" % e 173 ) NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 448 retries=self.max_retries, --> 449 timeout=timeout 450 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 724 retries = retries.increment( --> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] 726 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 438 if new_retry.is_exhausted(): --> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 440 MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',)) During handling of the above exception, another exception occurred: ConnectionError Traceback (most recent call last) <ipython-input-20-18cc3eb4a049> in <module> 1 import requests 2 ----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py") ~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs) 102 103 kwargs.setdefault('allow_redirects', False) --> 104 return request('head', url, **kwargs) 105 106 ~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs) 59 # cases, and look like a memory leak in others. 60 with sessions.Session() as session: ---> 61 return session.request(method=method, url=url, **kwargs) 62 63 ~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 528 } 529 send_kwargs.update(settings) --> 530 resp = self.send(prep, **send_kwargs) 531 532 return resp ~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs) 641 642 # Send the request --> 643 r = adapter.send(request, **kwargs) 644 645 # Total elapsed time of the request (approximately) ~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 514 raise SSLError(e, request=request) 515 --> 516 raise ConnectionError(e, request=request) 517 518 except ClosedPoolError as e: ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',)) ```
30
load_dataset for LOCAL CSV files report CONNECTION ERROR ## load_dataset for LOCAL CSV files report CONNECTION ERROR - **Description:** A local demo csv file: ``` import pandas as pd import numpy as np from datasets import load_dataset import torch import transformers df = pd.DataFrame(np.arange(1200).reshape(300,4)) df.to_csv('test.csv', header=False, index=False) print('datasets version: ', datasets.__version__) print('pytorch version: ', torch.__version__) print('transformers version: ', transformers.__version__) # output: datasets version: 1.1.2 pytorch version: 1.5.0 transformers version: 3.2.0 ``` when I load data through `dataset`: ``` dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False) ``` Error infos: ``` ConnectionError Traceback (most recent call last) <ipython-input-17-bbdadb9a0c78> in <module> ----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False) ~/.conda/envs/py36/lib/python3.6/site-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) 588 # Download/copy dataset processing script 589 module_path, hash = prepare_module( --> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True 591 ) 592 ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs) 266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version) 267 try: --> 268 local_path = cached_path(file_path, download_config=download_config) 269 except FileNotFoundError: 270 if script_version is not None: ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 306 user_agent=download_config.user_agent, 307 local_files_only=download_config.local_files_only, --> 308 use_etag=download_config.use_etag, 309 ) 310 elif os.path.exists(url_or_filename): ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag) 473 elif response is not None and response.status_code == 404: 474 raise FileNotFoundError("Couldn't find file at {}".format(url)) --> 475 raise ConnectionError("Couldn't reach {}".format(url)) 476 477 # Try a second time ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py ``` And I try to connect to the site with requests: ``` import requests requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py") ``` Similarly Error occurs: ``` --------------------------------------------------------------------------- ConnectionRefusedError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self) 159 conn = connection.create_connection( --> 160 (self._dns_host, self.port), self.timeout, **extra_kw 161 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock ConnectionRefusedError: [Errno 111] Connection refused During handling of the above exception, another exception occurred: NewConnectionError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 676 headers=headers, --> 677 chunked=chunked, 678 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 380 try: --> 381 self._validate_conn(conn) 382 except (SocketTimeout, BaseSSLError) as e: ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 976 conn.connect() 977 ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self) 307 # Add certificate verification --> 308 conn = self._new_conn() 309 hostname = self.host ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self) 171 raise NewConnectionError( --> 172 self, "Failed to establish a new connection: %s" % e 173 ) NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 448 retries=self.max_retries, --> 449 timeout=timeout 450 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 724 retries = retries.increment( --> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] 726 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 438 if new_retry.is_exhausted(): --> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 440 MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',)) During handling of the above exception, another exception occurred: ConnectionError Traceback (most recent call last) <ipython-input-20-18cc3eb4a049> in <module> 1 import requests 2 ----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py") ~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs) 102 103 kwargs.setdefault('allow_redirects', False) --> 104 return request('head', url, **kwargs) 105 106 ~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs) 59 # cases, and look like a memory leak in others. 60 with sessions.Session() as session: ---> 61 return session.request(method=method, url=url, **kwargs) 62 63 ~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 528 } 529 send_kwargs.update(settings) --> 530 resp = self.send(prep, **send_kwargs) 531 532 return resp ~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs) 641 642 # Send the request --> 643 r = adapter.send(request, **kwargs) 644 645 # Total elapsed time of the request (approximately) ~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 514 raise SSLError(e, request=request) 515 --> 516 raise ConnectionError(e, request=request) 517 518 except ClosedPoolError as e: ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',)) ``` Hi ! The url works on my side. Is the url working in your navigator ? Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
[ -0.3247119784, 0.0161048751, -0.1088048592, 0.0260045994, 0.2420430928, 0.0198688172, 0.7173693776, 0.3756362498, 0.2509218454, 0.1337040961, -0.0342322253, 0.1497043818, 0.079799369, 0.0211836994, -0.1269313097, -0.1772821993, -0.1271575987, 0.2743317187, -0.4187990725, 0.0144970762, -0.1248850375, -0.0023575069, -0.0349383652, 0.1405340135, -0.2024640292, -0.0062388256, 0.115782015, 0.1312771589, -0.027692223, -0.4939196408, 0.3365216255, 0.0402499251, 0.3237729371, 0.3632173538, -0.0001060309, 0.2135234624, 0.251740247, -0.0288667791, -0.4279087186, -0.4611106515, -0.1089924201, -0.3690283, 0.4228133857, -0.3986181021, 0.0005739984, -0.1198976636, -0.0673584118, -0.3161992431, 0.4313886166, 0.4785012007, 0.2786398232, 0.4154756367, 0.0165831614, -0.1110344753, 0.0718219131, 0.0555337667, -0.0624922924, 0.4061277807, 0.051624205, -0.1849909127, -0.2426788807, 0.0846124962, -0.1926987022, 0.39553231, 0.1906038374, 0.0830964148, 0.0377705097, -0.1966335922, 0.1252263486, 0.1076833755, 0.4764899611, -0.2314555943, -0.2321469486, -0.0584995747, -0.1994820088, -0.1881569028, 0.1660740376, 0.0867304876, -0.1683378518, 0.1474406123, -0.2638413608, 0.0990803167, -0.3907520771, 0.1494553536, -0.1105124205, 0.154757306, -0.0671839118, 0.1947449297, 0.1582646221, -0.0564835183, 0.4036886096, -0.2070344388, 0.1916099042, 0.1276624054, -0.3377640843, 0.1311575472, 0.1394049972, -0.3861341774, -0.1064571217, 0.049894087, -0.0361733697, -0.0535906665, 0.1335503161, 0.29164657, 0.1983620375, 0.0791434571, -0.1308652461, 0.2947738767, 0.2687249482, 0.1325622648, 0.0422616825, -0.062484879, -0.0800573379, -0.3558064699, 0.1634977311, 0.1999797523, 0.4894586802, -0.0474285446, -0.2816004455, 0.1326407194, 0.01291034, -0.107372798, 0.0189694855, 0.3589312732, -0.0879684165, 0.2043159902, 0.0424530543, 0.0136885177, -0.2235279083, 0.0845431387, -0.2120841444, 0.0379554667, -0.1193309948, -0.069532007, 0.381331712, -0.0790897459, 0.0466333814, -0.0146684255, 0.0989307612, 0.0503490977, 0.2611698806, -0.2932826877, 0.0491830222, 0.4129320383, 0.0561541431, 0.2478839755, 0.4095256329, -0.1842341125, -0.1060607955, 0.0865905806, -0.2045430243, -0.3371691704, -0.3385478556, 0.2402115017, 0.0368899964, 0.1089416295, -0.0184664372, -0.3302741349, 0.0986591801, -0.2747163773, -0.1541593075, -0.3237558901, -0.03890476, -0.2159913778, 0.3081872463, 0.646335721, -0.4303181469, 0.0429562889, 0.0566366278, -0.1299162954, 0.1414597929, 0.2508480847, -0.3076960444, 0.0851259232, -0.2284608632, -0.0966768861, 0.2314824164, -0.3093754053, -0.3032818139, 0.5005192161, -0.2373454124, -0.0729433447, 0.2169772387, 0.0126160737, 0.2910563946, 0.1858282536, 0.2615150809, 0.3000477254, -0.1007598862, 0.1175526381, -0.0799233019, -0.2225605547, 0.197357893, 0.116455853, 0.0098164398, 0.2231838554, 0.3249670267, -0.2579794228, 0.1741141528, -0.0768724307, 0.1447920352, 0.1345078349, 0.1739718914, 0.0419842005, -0.0606003143, -0.0216646045, -0.5085178614, 0.1381559074, 0.1310925186, 0.0903009251, -0.4376562536, -0.0162692945, -0.3771233261, 0.0051720794, -0.2671602964, -0.0302423481, 0.2100170255, 0.3415310085, -0.0191593431, -0.0523176678, -0.0488571636, 0.3256911933, -0.1166128889, -0.0192560256, -0.4156304598, 0.3395553231, -0.3544685841, -0.0690030679, 0.0523539707, -0.0314196497, 0.1626498699, -0.1825554967, -0.2719683945, 0.356123805, -0.0955855027, 0.2182245553, 0.0170497447, -0.0044385036, 0.0526204668, -0.2450991571, 0.0323774405, 0.0311141927, 0.1533318311, 0.0431830958, -0.2613136768, 0.3525988162, -0.0953487456, 0.1633696109, 0.0506541878, 0.0704120323, 0.4514211118, 0.0119941952, -0.1140478924, -0.108509101, 0.1054949984, 0.2389214933, 0.2262361944, 0.0491033196, -0.1802722514, -0.1886238605, 0.201859355, -0.1532274932, 0.0116078425, 0.092353113, -0.1086221114, -0.0442815572, 0.2146847695, 0.2319190353, 0.5149136186, 0.1026023999, -0.1526020616, -0.0183213037, -0.0503233857, -0.1338230968, 0.1102776378, -0.0386924297, 0.0448770113, 0.3272635043, 0.0759822652, 0.1069805399, -0.24100779, -0.3630867898, -0.0419493131, 0.2638890743, -0.3493008018, 0.2479266226, -0.164568454, 0.0182823539, -0.2659018338, -0.0503301881, -0.1105001122, -0.1780741066, -0.3695805967, 0.3607571125, -0.0763825253, 0.2372520268, -0.2790017128, -0.0516411066, 0.387984097, -0.449832648, -0.0730597675, -0.2081661969, -0.1601462513, 0.092480585, 0.0935098603, -0.1568923742, 0.3031650484, -0.0989919081, 0.0205262452, -0.1610623449, -0.0238344334, -0.0821167901, 0.0125283739, 0.1283056736, 0.1878542751, 0.4475225806, 0.1206022948, -0.5035608411, 0.3184547424, -0.0834973976, 0.0481939465, 0.1964565814, -0.0537022725, -0.2032553703, 0.0006878303, -0.6345351338, -0.5991463065, -0.4698640108, 0.137534529, 0.0665086061, 0.213231504, 0.2955248356, 0.226901859, 0.2099234313, 0.086658068, 0.075748764, -0.0596129261, -0.1591842622, 0.3499984443, -0.2349603027, -0.3570284843, -0.1133960336, -0.1152547076, 0.1219444051, 0.1364868283, -0.4447761774, -0.0236158762, -0.1746836156, 0.3565400839, -0.0467239954, 0.0517050438, 0.4662777781, 0.168656975, -0.1706289351, 0.112660788, -0.244187206, -0.1408113986, 0.19425641, 0.0843700543, 0.0044107297, 0.4593693316, -0.1589591056, 0.6532875896, -0.0798088536, -0.1897098422, 0.2884311676, -0.1362251788, 0.3429668844, -0.184507519, -0.6308501959, -0.0917782187, -0.3062298596, -0.2018836439, 0.0107533252, -0.2297288477, -0.2305866629, -0.3641995788, 0.0186994523, -0.3049332201, -0.3137823939, 0.1363260001, -0.1196979135, 0.3635419011, 0.0468817167, -0.0130359288, -0.2529374659, -0.0600580163, -0.2486277819, 0.365986377, -0.00622231, -0.0931661576, -0.2668785453, 0.106913276, -0.2810813189, 0.2432361841, 0.0800496638, 0.562286973, -0.2027087361, -0.1867956221, -0.037793126, 0.0581575334, 0.4028225541, 0.0884443223, 0.0874637812, 0.2563880682, -0.0515906289, -0.3120605946, -0.0862113386, -0.0886839032, 0.2211952209, 0.2276992351, 0.4607941806, 0.0591152981, -0.1269774735, 0.3169068694, 0.2359133363, -0.0872561261, -0.1790537238, -0.2838752568, -0.0508110896, -0.3215521574, -0.1053738445, -0.1118416414, 0.1790324301, -0.1732906252, -0.1281273663, 0.0737236813, -0.17101942, 0.0011047664, 0.1193199456, -0.145699352, 0.095977217, 0.2179178745, 0.1906981915, 0.262887001, 0.2021610737, 0.4429312646, -0.2094505578, -0.5551641583, 0.1772616953, -0.0145551069, 0.1078312173, 0.1052375659, -0.136935696, -0.1487585008, 0.1752745509, 0.1808558702, -0.1539573371, 0.193852514, 0.2498669773, -0.1166540161, -0.3529872298, -0.4148067832, 0.1314440966, -0.2005928904, -0.0967518017, 0.1951028854, -0.3385472596, -0.0635156855, 0.259523958, -0.1583105177, 0.6695194244, -0.1268930435, 0.1809173673, 0.1628528982, -0.1345140785, 0.448382467, -0.1574920416, 0.1192620546, -0.3441149294, -0.2360040396, -0.0994973555, -0.2498574704, 0.3218547106, 0.0098687625, -0.0969613567, 0.2364210486, -0.0614167564, 0.2813483179, 0.0652796403, 0.2203808725, 0.0612791143, -0.230269298, -0.183008939, 0.1901202053, -0.0931363255, 0.4134553671, 0.0299710482, -0.1137413457, -0.0124852136, -0.3615666926, -0.0431394763, 0.0593213364, -0.283066541, 0.4136625528, 0.048829522, -0.3536549807, -0.0551414713, 0.138169542, -0.1533757597, 0.0783295631, -0.1498510689, -0.0794563219, -0.1080912948, -0.0611961149, -0.116901122, -0.0029087081, 0.1473995745, 0.0824843422, -0.2685492635, 0.2755724788, -0.117831476, -0.3403718472, 0.1828362048, 0.2773403525, 0.2622920871, -0.5065495968, -0.1399478167, -0.3102685809, -0.1075603813, -0.1293208152, 0.2005318552, -0.1123934686, 0.0256723799, 0.0055952808, -0.0878887624, -0.3105517626, -0.0419634394, 0.6014831066, -0.0718143359, -0.0663501322, 0.3271543384, 0.0624912158, -0.1843172163, -0.242867738, 0.1990402937, -0.0044323304, -0.4677978754, -0.0930080041, 0.0687797666, 0.0586959198, -0.1138905808, 0.0717758313, 0.2206758261, 0.1031342894, 0.0357835628, -0.4803102314, -0.5924565196, -0.0901230648, -0.0120877745, 0.1493128389, 0.4447919726, 0.2230696827, 0.0557790361, 0.109067589, -0.3599542975, -0.0675611347, -0.1895690858, 0.1576153487, 0.5117644668, -0.2647097409, 0.1770649999, -0.1552708149, 0.2409110367, -0.142923221, -0.12628676, -0.3133459389, 0.0018987166, 0.0618451945, 0.0202441178, -0.3433455825, -0.3376550078, -0.2684758306, -0.0148096625, -0.0740636662, -0.0003413138, 0.2130772471, -0.1187314242, 0.212161243, -0.2453932762, 0.081014663, -0.1340082139, 0.1350557357, -0.2799664438, 0.2402764708, 0.0270826723, 0.2827393115, -0.0718644261, -0.0194423031, -0.4871893227, -0.0540028214, 0.0109267412, 0.0986872241, 0.3070954084, -0.1801377982, -0.137321353, 0.0053290236, 0.399123311, 0.2806529403, -0.2605661452, 0.0164485332, 0.1206055507, 0.3077169359, -0.2169092745, -0.1124176979, 0.1596363783, 0.0255125593, 0.2056993395, -0.0233399812, 0.0817393437, -0.1946602911, 0.2731689513, 0.0354822725, 0.4447305202, -0.0881807953, 0.2025938928, 0.6118386984, 0.0197394285, -0.0029398229, 0.1617920399, 0.1720683426, 0.1941984892, 0.4270905256, -0.1792922616, -0.0874076933, -0.0603709556, 0.1699083596, -0.1782530248, -0.4733141363, 0.1432804465, -0.1597066075, -0.2988282144, -0.0670226589, 0.0496745259, 0.2803224921, -0.2598401308, 0.0749866813, -0.10565532, 0.1608565897, -0.092289798, -0.1408545971, 0.0897712633, -0.0730974227, -0.1290260851, -0.0425561816, 0.1132714599, 0.0838867798, 0.2775803208, 0.263050735, -0.0881880298, -0.2006155998, 0.1970885843, 0.22083655, -0.0557488538, -0.1138674766, 0.1557369977, 0.3445364833, 0.1739408821, -0.1311293691, 0.1761197299, 0.6315094829, 0.3470622301, 0.0025092959, 0.2030487657, -0.1124483421, -0.1424656957, -0.0864447281, 0.0251591522, -0.0924742445, 0.2070284188, 0.3563939333, 0.3213755488, -0.1901990175, 0.333912909, -0.0463941135, -0.1453462392, -0.1938876063, 0.3707819283, 0.0753012002, -0.2841671407, -0.125421226, 0.0150402952, -0.4021416306, 0.0693430603, 0.4656215012, 0.0106838588, 0.2924721837, 0.0018877983, 0.109443821, -0.0905617997, 0.4269731939, 0.1445116401, 0.3763493598, -0.4452265501, 0.0112876194, -0.5027253628, 0.1829469353, -0.0391798057, 0.0534202866, -0.0442362502, 0.170168981, 0.0105170524, 0.2027028948, -0.1474989802, -0.0566703007, 0.0178524945, 0.1256340146, 0.0269398298, -0.1631550789, -0.2020687312, 0.0583004691, -0.0021002658, -0.3904865384, 0.217480883, 0.0210842788, 0.140579626, -0.2631099224, -0.0637241974, 0.1954774112, 0.1273901165, 0.3907394111, 0.1600237787, 0.6441078186, -0.1056481004, 0.0829368532, -0.0683099031, -0.2543077469, 0.0151442913, 0.1953171641, 0.2678673267, 0.2144360989, -0.0889865085, -0.3141355813, -0.4714728296, 0.3997182846, -0.0541134365, -0.0857380182, -0.0444329008, -0.1015133411, -0.0295404978, 0.0428919569, 0.0381942205, -0.0330935642, 0.0117345927, 0.2108484507, -0.1760048419, -0.4096622765, 0.4183121622, -0.2643620968, -0.2504858375, -0.1710996777, 0.2781779468, -0.0463292412, 0.289378494, -0.2773316205, 0.2958230078, 0.4524031281, -0.2110677212, -0.2147775441, 0.2234393209, 0.0190695263, 0.2123968005, -0.0396619216, 0.4695009887, 0.1008591875, -0.242797181, -0.1551300734, -0.2195902616 ]
https://github.com/huggingface/datasets/issues/807
load_dataset for LOCAL CSV files report CONNECTION ERROR
> Hi ! > The url works on my side. > > Is the url working in your navigator ? > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ? I tried another server, it's working now. Thanks a lot. And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed?
## load_dataset for LOCAL CSV files report CONNECTION ERROR - **Description:** A local demo csv file: ``` import pandas as pd import numpy as np from datasets import load_dataset import torch import transformers df = pd.DataFrame(np.arange(1200).reshape(300,4)) df.to_csv('test.csv', header=False, index=False) print('datasets version: ', datasets.__version__) print('pytorch version: ', torch.__version__) print('transformers version: ', transformers.__version__) # output: datasets version: 1.1.2 pytorch version: 1.5.0 transformers version: 3.2.0 ``` when I load data through `dataset`: ``` dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False) ``` Error infos: ``` ConnectionError Traceback (most recent call last) <ipython-input-17-bbdadb9a0c78> in <module> ----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False) ~/.conda/envs/py36/lib/python3.6/site-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) 588 # Download/copy dataset processing script 589 module_path, hash = prepare_module( --> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True 591 ) 592 ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs) 266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version) 267 try: --> 268 local_path = cached_path(file_path, download_config=download_config) 269 except FileNotFoundError: 270 if script_version is not None: ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 306 user_agent=download_config.user_agent, 307 local_files_only=download_config.local_files_only, --> 308 use_etag=download_config.use_etag, 309 ) 310 elif os.path.exists(url_or_filename): ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag) 473 elif response is not None and response.status_code == 404: 474 raise FileNotFoundError("Couldn't find file at {}".format(url)) --> 475 raise ConnectionError("Couldn't reach {}".format(url)) 476 477 # Try a second time ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py ``` And I try to connect to the site with requests: ``` import requests requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py") ``` Similarly Error occurs: ``` --------------------------------------------------------------------------- ConnectionRefusedError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self) 159 conn = connection.create_connection( --> 160 (self._dns_host, self.port), self.timeout, **extra_kw 161 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock ConnectionRefusedError: [Errno 111] Connection refused During handling of the above exception, another exception occurred: NewConnectionError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 676 headers=headers, --> 677 chunked=chunked, 678 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 380 try: --> 381 self._validate_conn(conn) 382 except (SocketTimeout, BaseSSLError) as e: ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 976 conn.connect() 977 ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self) 307 # Add certificate verification --> 308 conn = self._new_conn() 309 hostname = self.host ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self) 171 raise NewConnectionError( --> 172 self, "Failed to establish a new connection: %s" % e 173 ) NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 448 retries=self.max_retries, --> 449 timeout=timeout 450 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 724 retries = retries.increment( --> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] 726 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 438 if new_retry.is_exhausted(): --> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 440 MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',)) During handling of the above exception, another exception occurred: ConnectionError Traceback (most recent call last) <ipython-input-20-18cc3eb4a049> in <module> 1 import requests 2 ----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py") ~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs) 102 103 kwargs.setdefault('allow_redirects', False) --> 104 return request('head', url, **kwargs) 105 106 ~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs) 59 # cases, and look like a memory leak in others. 60 with sessions.Session() as session: ---> 61 return session.request(method=method, url=url, **kwargs) 62 63 ~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 528 } 529 send_kwargs.update(settings) --> 530 resp = self.send(prep, **send_kwargs) 531 532 return resp ~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs) 641 642 # Send the request --> 643 r = adapter.send(request, **kwargs) 644 645 # Total elapsed time of the request (approximately) ~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 514 raise SSLError(e, request=request) 515 --> 516 raise ConnectionError(e, request=request) 517 518 except ClosedPoolError as e: ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',)) ```
69
load_dataset for LOCAL CSV files report CONNECTION ERROR ## load_dataset for LOCAL CSV files report CONNECTION ERROR - **Description:** A local demo csv file: ``` import pandas as pd import numpy as np from datasets import load_dataset import torch import transformers df = pd.DataFrame(np.arange(1200).reshape(300,4)) df.to_csv('test.csv', header=False, index=False) print('datasets version: ', datasets.__version__) print('pytorch version: ', torch.__version__) print('transformers version: ', transformers.__version__) # output: datasets version: 1.1.2 pytorch version: 1.5.0 transformers version: 3.2.0 ``` when I load data through `dataset`: ``` dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False) ``` Error infos: ``` ConnectionError Traceback (most recent call last) <ipython-input-17-bbdadb9a0c78> in <module> ----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False) ~/.conda/envs/py36/lib/python3.6/site-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) 588 # Download/copy dataset processing script 589 module_path, hash = prepare_module( --> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True 591 ) 592 ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs) 266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version) 267 try: --> 268 local_path = cached_path(file_path, download_config=download_config) 269 except FileNotFoundError: 270 if script_version is not None: ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 306 user_agent=download_config.user_agent, 307 local_files_only=download_config.local_files_only, --> 308 use_etag=download_config.use_etag, 309 ) 310 elif os.path.exists(url_or_filename): ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag) 473 elif response is not None and response.status_code == 404: 474 raise FileNotFoundError("Couldn't find file at {}".format(url)) --> 475 raise ConnectionError("Couldn't reach {}".format(url)) 476 477 # Try a second time ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py ``` And I try to connect to the site with requests: ``` import requests requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py") ``` Similarly Error occurs: ``` --------------------------------------------------------------------------- ConnectionRefusedError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self) 159 conn = connection.create_connection( --> 160 (self._dns_host, self.port), self.timeout, **extra_kw 161 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock ConnectionRefusedError: [Errno 111] Connection refused During handling of the above exception, another exception occurred: NewConnectionError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 676 headers=headers, --> 677 chunked=chunked, 678 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 380 try: --> 381 self._validate_conn(conn) 382 except (SocketTimeout, BaseSSLError) as e: ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 976 conn.connect() 977 ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self) 307 # Add certificate verification --> 308 conn = self._new_conn() 309 hostname = self.host ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self) 171 raise NewConnectionError( --> 172 self, "Failed to establish a new connection: %s" % e 173 ) NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 448 retries=self.max_retries, --> 449 timeout=timeout 450 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 724 retries = retries.increment( --> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] 726 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 438 if new_retry.is_exhausted(): --> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 440 MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',)) During handling of the above exception, another exception occurred: ConnectionError Traceback (most recent call last) <ipython-input-20-18cc3eb4a049> in <module> 1 import requests 2 ----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py") ~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs) 102 103 kwargs.setdefault('allow_redirects', False) --> 104 return request('head', url, **kwargs) 105 106 ~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs) 59 # cases, and look like a memory leak in others. 60 with sessions.Session() as session: ---> 61 return session.request(method=method, url=url, **kwargs) 62 63 ~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 528 } 529 send_kwargs.update(settings) --> 530 resp = self.send(prep, **send_kwargs) 531 532 return resp ~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs) 641 642 # Send the request --> 643 r = adapter.send(request, **kwargs) 644 645 # Total elapsed time of the request (approximately) ~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 514 raise SSLError(e, request=request) 515 --> 516 raise ConnectionError(e, request=request) 517 518 except ClosedPoolError as e: ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',)) ``` > Hi ! > The url works on my side. > > Is the url working in your navigator ? > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ? I tried another server, it's working now. Thanks a lot. And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed?
[ -0.3247119784, 0.0161048751, -0.1088048592, 0.0260045994, 0.2420430928, 0.0198688172, 0.7173693776, 0.3756362498, 0.2509218454, 0.1337040961, -0.0342322253, 0.1497043818, 0.079799369, 0.0211836994, -0.1269313097, -0.1772821993, -0.1271575987, 0.2743317187, -0.4187990725, 0.0144970762, -0.1248850375, -0.0023575069, -0.0349383652, 0.1405340135, -0.2024640292, -0.0062388256, 0.115782015, 0.1312771589, -0.027692223, -0.4939196408, 0.3365216255, 0.0402499251, 0.3237729371, 0.3632173538, -0.0001060309, 0.2135234624, 0.251740247, -0.0288667791, -0.4279087186, -0.4611106515, -0.1089924201, -0.3690283, 0.4228133857, -0.3986181021, 0.0005739984, -0.1198976636, -0.0673584118, -0.3161992431, 0.4313886166, 0.4785012007, 0.2786398232, 0.4154756367, 0.0165831614, -0.1110344753, 0.0718219131, 0.0555337667, -0.0624922924, 0.4061277807, 0.051624205, -0.1849909127, -0.2426788807, 0.0846124962, -0.1926987022, 0.39553231, 0.1906038374, 0.0830964148, 0.0377705097, -0.1966335922, 0.1252263486, 0.1076833755, 0.4764899611, -0.2314555943, -0.2321469486, -0.0584995747, -0.1994820088, -0.1881569028, 0.1660740376, 0.0867304876, -0.1683378518, 0.1474406123, -0.2638413608, 0.0990803167, -0.3907520771, 0.1494553536, -0.1105124205, 0.154757306, -0.0671839118, 0.1947449297, 0.1582646221, -0.0564835183, 0.4036886096, -0.2070344388, 0.1916099042, 0.1276624054, -0.3377640843, 0.1311575472, 0.1394049972, -0.3861341774, -0.1064571217, 0.049894087, -0.0361733697, -0.0535906665, 0.1335503161, 0.29164657, 0.1983620375, 0.0791434571, -0.1308652461, 0.2947738767, 0.2687249482, 0.1325622648, 0.0422616825, -0.062484879, -0.0800573379, -0.3558064699, 0.1634977311, 0.1999797523, 0.4894586802, -0.0474285446, -0.2816004455, 0.1326407194, 0.01291034, -0.107372798, 0.0189694855, 0.3589312732, -0.0879684165, 0.2043159902, 0.0424530543, 0.0136885177, -0.2235279083, 0.0845431387, -0.2120841444, 0.0379554667, -0.1193309948, -0.069532007, 0.381331712, -0.0790897459, 0.0466333814, -0.0146684255, 0.0989307612, 0.0503490977, 0.2611698806, -0.2932826877, 0.0491830222, 0.4129320383, 0.0561541431, 0.2478839755, 0.4095256329, -0.1842341125, -0.1060607955, 0.0865905806, -0.2045430243, -0.3371691704, -0.3385478556, 0.2402115017, 0.0368899964, 0.1089416295, -0.0184664372, -0.3302741349, 0.0986591801, -0.2747163773, -0.1541593075, -0.3237558901, -0.03890476, -0.2159913778, 0.3081872463, 0.646335721, -0.4303181469, 0.0429562889, 0.0566366278, -0.1299162954, 0.1414597929, 0.2508480847, -0.3076960444, 0.0851259232, -0.2284608632, -0.0966768861, 0.2314824164, -0.3093754053, -0.3032818139, 0.5005192161, -0.2373454124, -0.0729433447, 0.2169772387, 0.0126160737, 0.2910563946, 0.1858282536, 0.2615150809, 0.3000477254, -0.1007598862, 0.1175526381, -0.0799233019, -0.2225605547, 0.197357893, 0.116455853, 0.0098164398, 0.2231838554, 0.3249670267, -0.2579794228, 0.1741141528, -0.0768724307, 0.1447920352, 0.1345078349, 0.1739718914, 0.0419842005, -0.0606003143, -0.0216646045, -0.5085178614, 0.1381559074, 0.1310925186, 0.0903009251, -0.4376562536, -0.0162692945, -0.3771233261, 0.0051720794, -0.2671602964, -0.0302423481, 0.2100170255, 0.3415310085, -0.0191593431, -0.0523176678, -0.0488571636, 0.3256911933, -0.1166128889, -0.0192560256, -0.4156304598, 0.3395553231, -0.3544685841, -0.0690030679, 0.0523539707, -0.0314196497, 0.1626498699, -0.1825554967, -0.2719683945, 0.356123805, -0.0955855027, 0.2182245553, 0.0170497447, -0.0044385036, 0.0526204668, -0.2450991571, 0.0323774405, 0.0311141927, 0.1533318311, 0.0431830958, -0.2613136768, 0.3525988162, -0.0953487456, 0.1633696109, 0.0506541878, 0.0704120323, 0.4514211118, 0.0119941952, -0.1140478924, -0.108509101, 0.1054949984, 0.2389214933, 0.2262361944, 0.0491033196, -0.1802722514, -0.1886238605, 0.201859355, -0.1532274932, 0.0116078425, 0.092353113, -0.1086221114, -0.0442815572, 0.2146847695, 0.2319190353, 0.5149136186, 0.1026023999, -0.1526020616, -0.0183213037, -0.0503233857, -0.1338230968, 0.1102776378, -0.0386924297, 0.0448770113, 0.3272635043, 0.0759822652, 0.1069805399, -0.24100779, -0.3630867898, -0.0419493131, 0.2638890743, -0.3493008018, 0.2479266226, -0.164568454, 0.0182823539, -0.2659018338, -0.0503301881, -0.1105001122, -0.1780741066, -0.3695805967, 0.3607571125, -0.0763825253, 0.2372520268, -0.2790017128, -0.0516411066, 0.387984097, -0.449832648, -0.0730597675, -0.2081661969, -0.1601462513, 0.092480585, 0.0935098603, -0.1568923742, 0.3031650484, -0.0989919081, 0.0205262452, -0.1610623449, -0.0238344334, -0.0821167901, 0.0125283739, 0.1283056736, 0.1878542751, 0.4475225806, 0.1206022948, -0.5035608411, 0.3184547424, -0.0834973976, 0.0481939465, 0.1964565814, -0.0537022725, -0.2032553703, 0.0006878303, -0.6345351338, -0.5991463065, -0.4698640108, 0.137534529, 0.0665086061, 0.213231504, 0.2955248356, 0.226901859, 0.2099234313, 0.086658068, 0.075748764, -0.0596129261, -0.1591842622, 0.3499984443, -0.2349603027, -0.3570284843, -0.1133960336, -0.1152547076, 0.1219444051, 0.1364868283, -0.4447761774, -0.0236158762, -0.1746836156, 0.3565400839, -0.0467239954, 0.0517050438, 0.4662777781, 0.168656975, -0.1706289351, 0.112660788, -0.244187206, -0.1408113986, 0.19425641, 0.0843700543, 0.0044107297, 0.4593693316, -0.1589591056, 0.6532875896, -0.0798088536, -0.1897098422, 0.2884311676, -0.1362251788, 0.3429668844, -0.184507519, -0.6308501959, -0.0917782187, -0.3062298596, -0.2018836439, 0.0107533252, -0.2297288477, -0.2305866629, -0.3641995788, 0.0186994523, -0.3049332201, -0.3137823939, 0.1363260001, -0.1196979135, 0.3635419011, 0.0468817167, -0.0130359288, -0.2529374659, -0.0600580163, -0.2486277819, 0.365986377, -0.00622231, -0.0931661576, -0.2668785453, 0.106913276, -0.2810813189, 0.2432361841, 0.0800496638, 0.562286973, -0.2027087361, -0.1867956221, -0.037793126, 0.0581575334, 0.4028225541, 0.0884443223, 0.0874637812, 0.2563880682, -0.0515906289, -0.3120605946, -0.0862113386, -0.0886839032, 0.2211952209, 0.2276992351, 0.4607941806, 0.0591152981, -0.1269774735, 0.3169068694, 0.2359133363, -0.0872561261, -0.1790537238, -0.2838752568, -0.0508110896, -0.3215521574, -0.1053738445, -0.1118416414, 0.1790324301, -0.1732906252, -0.1281273663, 0.0737236813, -0.17101942, 0.0011047664, 0.1193199456, -0.145699352, 0.095977217, 0.2179178745, 0.1906981915, 0.262887001, 0.2021610737, 0.4429312646, -0.2094505578, -0.5551641583, 0.1772616953, -0.0145551069, 0.1078312173, 0.1052375659, -0.136935696, -0.1487585008, 0.1752745509, 0.1808558702, -0.1539573371, 0.193852514, 0.2498669773, -0.1166540161, -0.3529872298, -0.4148067832, 0.1314440966, -0.2005928904, -0.0967518017, 0.1951028854, -0.3385472596, -0.0635156855, 0.259523958, -0.1583105177, 0.6695194244, -0.1268930435, 0.1809173673, 0.1628528982, -0.1345140785, 0.448382467, -0.1574920416, 0.1192620546, -0.3441149294, -0.2360040396, -0.0994973555, -0.2498574704, 0.3218547106, 0.0098687625, -0.0969613567, 0.2364210486, -0.0614167564, 0.2813483179, 0.0652796403, 0.2203808725, 0.0612791143, -0.230269298, -0.183008939, 0.1901202053, -0.0931363255, 0.4134553671, 0.0299710482, -0.1137413457, -0.0124852136, -0.3615666926, -0.0431394763, 0.0593213364, -0.283066541, 0.4136625528, 0.048829522, -0.3536549807, -0.0551414713, 0.138169542, -0.1533757597, 0.0783295631, -0.1498510689, -0.0794563219, -0.1080912948, -0.0611961149, -0.116901122, -0.0029087081, 0.1473995745, 0.0824843422, -0.2685492635, 0.2755724788, -0.117831476, -0.3403718472, 0.1828362048, 0.2773403525, 0.2622920871, -0.5065495968, -0.1399478167, -0.3102685809, -0.1075603813, -0.1293208152, 0.2005318552, -0.1123934686, 0.0256723799, 0.0055952808, -0.0878887624, -0.3105517626, -0.0419634394, 0.6014831066, -0.0718143359, -0.0663501322, 0.3271543384, 0.0624912158, -0.1843172163, -0.242867738, 0.1990402937, -0.0044323304, -0.4677978754, -0.0930080041, 0.0687797666, 0.0586959198, -0.1138905808, 0.0717758313, 0.2206758261, 0.1031342894, 0.0357835628, -0.4803102314, -0.5924565196, -0.0901230648, -0.0120877745, 0.1493128389, 0.4447919726, 0.2230696827, 0.0557790361, 0.109067589, -0.3599542975, -0.0675611347, -0.1895690858, 0.1576153487, 0.5117644668, -0.2647097409, 0.1770649999, -0.1552708149, 0.2409110367, -0.142923221, -0.12628676, -0.3133459389, 0.0018987166, 0.0618451945, 0.0202441178, -0.3433455825, -0.3376550078, -0.2684758306, -0.0148096625, -0.0740636662, -0.0003413138, 0.2130772471, -0.1187314242, 0.212161243, -0.2453932762, 0.081014663, -0.1340082139, 0.1350557357, -0.2799664438, 0.2402764708, 0.0270826723, 0.2827393115, -0.0718644261, -0.0194423031, -0.4871893227, -0.0540028214, 0.0109267412, 0.0986872241, 0.3070954084, -0.1801377982, -0.137321353, 0.0053290236, 0.399123311, 0.2806529403, -0.2605661452, 0.0164485332, 0.1206055507, 0.3077169359, -0.2169092745, -0.1124176979, 0.1596363783, 0.0255125593, 0.2056993395, -0.0233399812, 0.0817393437, -0.1946602911, 0.2731689513, 0.0354822725, 0.4447305202, -0.0881807953, 0.2025938928, 0.6118386984, 0.0197394285, -0.0029398229, 0.1617920399, 0.1720683426, 0.1941984892, 0.4270905256, -0.1792922616, -0.0874076933, -0.0603709556, 0.1699083596, -0.1782530248, -0.4733141363, 0.1432804465, -0.1597066075, -0.2988282144, -0.0670226589, 0.0496745259, 0.2803224921, -0.2598401308, 0.0749866813, -0.10565532, 0.1608565897, -0.092289798, -0.1408545971, 0.0897712633, -0.0730974227, -0.1290260851, -0.0425561816, 0.1132714599, 0.0838867798, 0.2775803208, 0.263050735, -0.0881880298, -0.2006155998, 0.1970885843, 0.22083655, -0.0557488538, -0.1138674766, 0.1557369977, 0.3445364833, 0.1739408821, -0.1311293691, 0.1761197299, 0.6315094829, 0.3470622301, 0.0025092959, 0.2030487657, -0.1124483421, -0.1424656957, -0.0864447281, 0.0251591522, -0.0924742445, 0.2070284188, 0.3563939333, 0.3213755488, -0.1901990175, 0.333912909, -0.0463941135, -0.1453462392, -0.1938876063, 0.3707819283, 0.0753012002, -0.2841671407, -0.125421226, 0.0150402952, -0.4021416306, 0.0693430603, 0.4656215012, 0.0106838588, 0.2924721837, 0.0018877983, 0.109443821, -0.0905617997, 0.4269731939, 0.1445116401, 0.3763493598, -0.4452265501, 0.0112876194, -0.5027253628, 0.1829469353, -0.0391798057, 0.0534202866, -0.0442362502, 0.170168981, 0.0105170524, 0.2027028948, -0.1474989802, -0.0566703007, 0.0178524945, 0.1256340146, 0.0269398298, -0.1631550789, -0.2020687312, 0.0583004691, -0.0021002658, -0.3904865384, 0.217480883, 0.0210842788, 0.140579626, -0.2631099224, -0.0637241974, 0.1954774112, 0.1273901165, 0.3907394111, 0.1600237787, 0.6441078186, -0.1056481004, 0.0829368532, -0.0683099031, -0.2543077469, 0.0151442913, 0.1953171641, 0.2678673267, 0.2144360989, -0.0889865085, -0.3141355813, -0.4714728296, 0.3997182846, -0.0541134365, -0.0857380182, -0.0444329008, -0.1015133411, -0.0295404978, 0.0428919569, 0.0381942205, -0.0330935642, 0.0117345927, 0.2108484507, -0.1760048419, -0.4096622765, 0.4183121622, -0.2643620968, -0.2504858375, -0.1710996777, 0.2781779468, -0.0463292412, 0.289378494, -0.2773316205, 0.2958230078, 0.4524031281, -0.2110677212, -0.2147775441, 0.2234393209, 0.0190695263, 0.2123968005, -0.0396619216, 0.4695009887, 0.1008591875, -0.242797181, -0.1551300734, -0.2195902616 ]
https://github.com/huggingface/datasets/issues/807
load_dataset for LOCAL CSV files report CONNECTION ERROR
> > Hi ! > > The url works on my side. > > Is the url working in your navigator ? > > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ? > > I tried another server, it's working now. Thanks a lot. > > And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed? I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`? Thanks :D
## load_dataset for LOCAL CSV files report CONNECTION ERROR - **Description:** A local demo csv file: ``` import pandas as pd import numpy as np from datasets import load_dataset import torch import transformers df = pd.DataFrame(np.arange(1200).reshape(300,4)) df.to_csv('test.csv', header=False, index=False) print('datasets version: ', datasets.__version__) print('pytorch version: ', torch.__version__) print('transformers version: ', transformers.__version__) # output: datasets version: 1.1.2 pytorch version: 1.5.0 transformers version: 3.2.0 ``` when I load data through `dataset`: ``` dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False) ``` Error infos: ``` ConnectionError Traceback (most recent call last) <ipython-input-17-bbdadb9a0c78> in <module> ----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False) ~/.conda/envs/py36/lib/python3.6/site-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) 588 # Download/copy dataset processing script 589 module_path, hash = prepare_module( --> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True 591 ) 592 ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs) 266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version) 267 try: --> 268 local_path = cached_path(file_path, download_config=download_config) 269 except FileNotFoundError: 270 if script_version is not None: ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 306 user_agent=download_config.user_agent, 307 local_files_only=download_config.local_files_only, --> 308 use_etag=download_config.use_etag, 309 ) 310 elif os.path.exists(url_or_filename): ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag) 473 elif response is not None and response.status_code == 404: 474 raise FileNotFoundError("Couldn't find file at {}".format(url)) --> 475 raise ConnectionError("Couldn't reach {}".format(url)) 476 477 # Try a second time ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py ``` And I try to connect to the site with requests: ``` import requests requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py") ``` Similarly Error occurs: ``` --------------------------------------------------------------------------- ConnectionRefusedError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self) 159 conn = connection.create_connection( --> 160 (self._dns_host, self.port), self.timeout, **extra_kw 161 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock ConnectionRefusedError: [Errno 111] Connection refused During handling of the above exception, another exception occurred: NewConnectionError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 676 headers=headers, --> 677 chunked=chunked, 678 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 380 try: --> 381 self._validate_conn(conn) 382 except (SocketTimeout, BaseSSLError) as e: ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 976 conn.connect() 977 ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self) 307 # Add certificate verification --> 308 conn = self._new_conn() 309 hostname = self.host ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self) 171 raise NewConnectionError( --> 172 self, "Failed to establish a new connection: %s" % e 173 ) NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 448 retries=self.max_retries, --> 449 timeout=timeout 450 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 724 retries = retries.increment( --> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] 726 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 438 if new_retry.is_exhausted(): --> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 440 MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',)) During handling of the above exception, another exception occurred: ConnectionError Traceback (most recent call last) <ipython-input-20-18cc3eb4a049> in <module> 1 import requests 2 ----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py") ~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs) 102 103 kwargs.setdefault('allow_redirects', False) --> 104 return request('head', url, **kwargs) 105 106 ~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs) 59 # cases, and look like a memory leak in others. 60 with sessions.Session() as session: ---> 61 return session.request(method=method, url=url, **kwargs) 62 63 ~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 528 } 529 send_kwargs.update(settings) --> 530 resp = self.send(prep, **send_kwargs) 531 532 return resp ~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs) 641 642 # Send the request --> 643 r = adapter.send(request, **kwargs) 644 645 # Total elapsed time of the request (approximately) ~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 514 raise SSLError(e, request=request) 515 --> 516 raise ConnectionError(e, request=request) 517 518 except ClosedPoolError as e: ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',)) ```
103
load_dataset for LOCAL CSV files report CONNECTION ERROR ## load_dataset for LOCAL CSV files report CONNECTION ERROR - **Description:** A local demo csv file: ``` import pandas as pd import numpy as np from datasets import load_dataset import torch import transformers df = pd.DataFrame(np.arange(1200).reshape(300,4)) df.to_csv('test.csv', header=False, index=False) print('datasets version: ', datasets.__version__) print('pytorch version: ', torch.__version__) print('transformers version: ', transformers.__version__) # output: datasets version: 1.1.2 pytorch version: 1.5.0 transformers version: 3.2.0 ``` when I load data through `dataset`: ``` dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False) ``` Error infos: ``` ConnectionError Traceback (most recent call last) <ipython-input-17-bbdadb9a0c78> in <module> ----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False) ~/.conda/envs/py36/lib/python3.6/site-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) 588 # Download/copy dataset processing script 589 module_path, hash = prepare_module( --> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True 591 ) 592 ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs) 266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version) 267 try: --> 268 local_path = cached_path(file_path, download_config=download_config) 269 except FileNotFoundError: 270 if script_version is not None: ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 306 user_agent=download_config.user_agent, 307 local_files_only=download_config.local_files_only, --> 308 use_etag=download_config.use_etag, 309 ) 310 elif os.path.exists(url_or_filename): ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag) 473 elif response is not None and response.status_code == 404: 474 raise FileNotFoundError("Couldn't find file at {}".format(url)) --> 475 raise ConnectionError("Couldn't reach {}".format(url)) 476 477 # Try a second time ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py ``` And I try to connect to the site with requests: ``` import requests requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py") ``` Similarly Error occurs: ``` --------------------------------------------------------------------------- ConnectionRefusedError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self) 159 conn = connection.create_connection( --> 160 (self._dns_host, self.port), self.timeout, **extra_kw 161 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock ConnectionRefusedError: [Errno 111] Connection refused During handling of the above exception, another exception occurred: NewConnectionError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 676 headers=headers, --> 677 chunked=chunked, 678 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 380 try: --> 381 self._validate_conn(conn) 382 except (SocketTimeout, BaseSSLError) as e: ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 976 conn.connect() 977 ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self) 307 # Add certificate verification --> 308 conn = self._new_conn() 309 hostname = self.host ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self) 171 raise NewConnectionError( --> 172 self, "Failed to establish a new connection: %s" % e 173 ) NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 448 retries=self.max_retries, --> 449 timeout=timeout 450 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 724 retries = retries.increment( --> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] 726 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 438 if new_retry.is_exhausted(): --> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 440 MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',)) During handling of the above exception, another exception occurred: ConnectionError Traceback (most recent call last) <ipython-input-20-18cc3eb4a049> in <module> 1 import requests 2 ----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py") ~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs) 102 103 kwargs.setdefault('allow_redirects', False) --> 104 return request('head', url, **kwargs) 105 106 ~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs) 59 # cases, and look like a memory leak in others. 60 with sessions.Session() as session: ---> 61 return session.request(method=method, url=url, **kwargs) 62 63 ~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 528 } 529 send_kwargs.update(settings) --> 530 resp = self.send(prep, **send_kwargs) 531 532 return resp ~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs) 641 642 # Send the request --> 643 r = adapter.send(request, **kwargs) 644 645 # Total elapsed time of the request (approximately) ~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 514 raise SSLError(e, request=request) 515 --> 516 raise ConnectionError(e, request=request) 517 518 except ClosedPoolError as e: ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',)) ``` > > Hi ! > > The url works on my side. > > Is the url working in your navigator ? > > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ? > > I tried another server, it's working now. Thanks a lot. > > And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed? I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`? Thanks :D
[ -0.3247119784, 0.0161048751, -0.1088048592, 0.0260045994, 0.2420430928, 0.0198688172, 0.7173693776, 0.3756362498, 0.2509218454, 0.1337040961, -0.0342322253, 0.1497043818, 0.079799369, 0.0211836994, -0.1269313097, -0.1772821993, -0.1271575987, 0.2743317187, -0.4187990725, 0.0144970762, -0.1248850375, -0.0023575069, -0.0349383652, 0.1405340135, -0.2024640292, -0.0062388256, 0.115782015, 0.1312771589, -0.027692223, -0.4939196408, 0.3365216255, 0.0402499251, 0.3237729371, 0.3632173538, -0.0001060309, 0.2135234624, 0.251740247, -0.0288667791, -0.4279087186, -0.4611106515, -0.1089924201, -0.3690283, 0.4228133857, -0.3986181021, 0.0005739984, -0.1198976636, -0.0673584118, -0.3161992431, 0.4313886166, 0.4785012007, 0.2786398232, 0.4154756367, 0.0165831614, -0.1110344753, 0.0718219131, 0.0555337667, -0.0624922924, 0.4061277807, 0.051624205, -0.1849909127, -0.2426788807, 0.0846124962, -0.1926987022, 0.39553231, 0.1906038374, 0.0830964148, 0.0377705097, -0.1966335922, 0.1252263486, 0.1076833755, 0.4764899611, -0.2314555943, -0.2321469486, -0.0584995747, -0.1994820088, -0.1881569028, 0.1660740376, 0.0867304876, -0.1683378518, 0.1474406123, -0.2638413608, 0.0990803167, -0.3907520771, 0.1494553536, -0.1105124205, 0.154757306, -0.0671839118, 0.1947449297, 0.1582646221, -0.0564835183, 0.4036886096, -0.2070344388, 0.1916099042, 0.1276624054, -0.3377640843, 0.1311575472, 0.1394049972, -0.3861341774, -0.1064571217, 0.049894087, -0.0361733697, -0.0535906665, 0.1335503161, 0.29164657, 0.1983620375, 0.0791434571, -0.1308652461, 0.2947738767, 0.2687249482, 0.1325622648, 0.0422616825, -0.062484879, -0.0800573379, -0.3558064699, 0.1634977311, 0.1999797523, 0.4894586802, -0.0474285446, -0.2816004455, 0.1326407194, 0.01291034, -0.107372798, 0.0189694855, 0.3589312732, -0.0879684165, 0.2043159902, 0.0424530543, 0.0136885177, -0.2235279083, 0.0845431387, -0.2120841444, 0.0379554667, -0.1193309948, -0.069532007, 0.381331712, -0.0790897459, 0.0466333814, -0.0146684255, 0.0989307612, 0.0503490977, 0.2611698806, -0.2932826877, 0.0491830222, 0.4129320383, 0.0561541431, 0.2478839755, 0.4095256329, -0.1842341125, -0.1060607955, 0.0865905806, -0.2045430243, -0.3371691704, -0.3385478556, 0.2402115017, 0.0368899964, 0.1089416295, -0.0184664372, -0.3302741349, 0.0986591801, -0.2747163773, -0.1541593075, -0.3237558901, -0.03890476, -0.2159913778, 0.3081872463, 0.646335721, -0.4303181469, 0.0429562889, 0.0566366278, -0.1299162954, 0.1414597929, 0.2508480847, -0.3076960444, 0.0851259232, -0.2284608632, -0.0966768861, 0.2314824164, -0.3093754053, -0.3032818139, 0.5005192161, -0.2373454124, -0.0729433447, 0.2169772387, 0.0126160737, 0.2910563946, 0.1858282536, 0.2615150809, 0.3000477254, -0.1007598862, 0.1175526381, -0.0799233019, -0.2225605547, 0.197357893, 0.116455853, 0.0098164398, 0.2231838554, 0.3249670267, -0.2579794228, 0.1741141528, -0.0768724307, 0.1447920352, 0.1345078349, 0.1739718914, 0.0419842005, -0.0606003143, -0.0216646045, -0.5085178614, 0.1381559074, 0.1310925186, 0.0903009251, -0.4376562536, -0.0162692945, -0.3771233261, 0.0051720794, -0.2671602964, -0.0302423481, 0.2100170255, 0.3415310085, -0.0191593431, -0.0523176678, -0.0488571636, 0.3256911933, -0.1166128889, -0.0192560256, -0.4156304598, 0.3395553231, -0.3544685841, -0.0690030679, 0.0523539707, -0.0314196497, 0.1626498699, -0.1825554967, -0.2719683945, 0.356123805, -0.0955855027, 0.2182245553, 0.0170497447, -0.0044385036, 0.0526204668, -0.2450991571, 0.0323774405, 0.0311141927, 0.1533318311, 0.0431830958, -0.2613136768, 0.3525988162, -0.0953487456, 0.1633696109, 0.0506541878, 0.0704120323, 0.4514211118, 0.0119941952, -0.1140478924, -0.108509101, 0.1054949984, 0.2389214933, 0.2262361944, 0.0491033196, -0.1802722514, -0.1886238605, 0.201859355, -0.1532274932, 0.0116078425, 0.092353113, -0.1086221114, -0.0442815572, 0.2146847695, 0.2319190353, 0.5149136186, 0.1026023999, -0.1526020616, -0.0183213037, -0.0503233857, -0.1338230968, 0.1102776378, -0.0386924297, 0.0448770113, 0.3272635043, 0.0759822652, 0.1069805399, -0.24100779, -0.3630867898, -0.0419493131, 0.2638890743, -0.3493008018, 0.2479266226, -0.164568454, 0.0182823539, -0.2659018338, -0.0503301881, -0.1105001122, -0.1780741066, -0.3695805967, 0.3607571125, -0.0763825253, 0.2372520268, -0.2790017128, -0.0516411066, 0.387984097, -0.449832648, -0.0730597675, -0.2081661969, -0.1601462513, 0.092480585, 0.0935098603, -0.1568923742, 0.3031650484, -0.0989919081, 0.0205262452, -0.1610623449, -0.0238344334, -0.0821167901, 0.0125283739, 0.1283056736, 0.1878542751, 0.4475225806, 0.1206022948, -0.5035608411, 0.3184547424, -0.0834973976, 0.0481939465, 0.1964565814, -0.0537022725, -0.2032553703, 0.0006878303, -0.6345351338, -0.5991463065, -0.4698640108, 0.137534529, 0.0665086061, 0.213231504, 0.2955248356, 0.226901859, 0.2099234313, 0.086658068, 0.075748764, -0.0596129261, -0.1591842622, 0.3499984443, -0.2349603027, -0.3570284843, -0.1133960336, -0.1152547076, 0.1219444051, 0.1364868283, -0.4447761774, -0.0236158762, -0.1746836156, 0.3565400839, -0.0467239954, 0.0517050438, 0.4662777781, 0.168656975, -0.1706289351, 0.112660788, -0.244187206, -0.1408113986, 0.19425641, 0.0843700543, 0.0044107297, 0.4593693316, -0.1589591056, 0.6532875896, -0.0798088536, -0.1897098422, 0.2884311676, -0.1362251788, 0.3429668844, -0.184507519, -0.6308501959, -0.0917782187, -0.3062298596, -0.2018836439, 0.0107533252, -0.2297288477, -0.2305866629, -0.3641995788, 0.0186994523, -0.3049332201, -0.3137823939, 0.1363260001, -0.1196979135, 0.3635419011, 0.0468817167, -0.0130359288, -0.2529374659, -0.0600580163, -0.2486277819, 0.365986377, -0.00622231, -0.0931661576, -0.2668785453, 0.106913276, -0.2810813189, 0.2432361841, 0.0800496638, 0.562286973, -0.2027087361, -0.1867956221, -0.037793126, 0.0581575334, 0.4028225541, 0.0884443223, 0.0874637812, 0.2563880682, -0.0515906289, -0.3120605946, -0.0862113386, -0.0886839032, 0.2211952209, 0.2276992351, 0.4607941806, 0.0591152981, -0.1269774735, 0.3169068694, 0.2359133363, -0.0872561261, -0.1790537238, -0.2838752568, -0.0508110896, -0.3215521574, -0.1053738445, -0.1118416414, 0.1790324301, -0.1732906252, -0.1281273663, 0.0737236813, -0.17101942, 0.0011047664, 0.1193199456, -0.145699352, 0.095977217, 0.2179178745, 0.1906981915, 0.262887001, 0.2021610737, 0.4429312646, -0.2094505578, -0.5551641583, 0.1772616953, -0.0145551069, 0.1078312173, 0.1052375659, -0.136935696, -0.1487585008, 0.1752745509, 0.1808558702, -0.1539573371, 0.193852514, 0.2498669773, -0.1166540161, -0.3529872298, -0.4148067832, 0.1314440966, -0.2005928904, -0.0967518017, 0.1951028854, -0.3385472596, -0.0635156855, 0.259523958, -0.1583105177, 0.6695194244, -0.1268930435, 0.1809173673, 0.1628528982, -0.1345140785, 0.448382467, -0.1574920416, 0.1192620546, -0.3441149294, -0.2360040396, -0.0994973555, -0.2498574704, 0.3218547106, 0.0098687625, -0.0969613567, 0.2364210486, -0.0614167564, 0.2813483179, 0.0652796403, 0.2203808725, 0.0612791143, -0.230269298, -0.183008939, 0.1901202053, -0.0931363255, 0.4134553671, 0.0299710482, -0.1137413457, -0.0124852136, -0.3615666926, -0.0431394763, 0.0593213364, -0.283066541, 0.4136625528, 0.048829522, -0.3536549807, -0.0551414713, 0.138169542, -0.1533757597, 0.0783295631, -0.1498510689, -0.0794563219, -0.1080912948, -0.0611961149, -0.116901122, -0.0029087081, 0.1473995745, 0.0824843422, -0.2685492635, 0.2755724788, -0.117831476, -0.3403718472, 0.1828362048, 0.2773403525, 0.2622920871, -0.5065495968, -0.1399478167, -0.3102685809, -0.1075603813, -0.1293208152, 0.2005318552, -0.1123934686, 0.0256723799, 0.0055952808, -0.0878887624, -0.3105517626, -0.0419634394, 0.6014831066, -0.0718143359, -0.0663501322, 0.3271543384, 0.0624912158, -0.1843172163, -0.242867738, 0.1990402937, -0.0044323304, -0.4677978754, -0.0930080041, 0.0687797666, 0.0586959198, -0.1138905808, 0.0717758313, 0.2206758261, 0.1031342894, 0.0357835628, -0.4803102314, -0.5924565196, -0.0901230648, -0.0120877745, 0.1493128389, 0.4447919726, 0.2230696827, 0.0557790361, 0.109067589, -0.3599542975, -0.0675611347, -0.1895690858, 0.1576153487, 0.5117644668, -0.2647097409, 0.1770649999, -0.1552708149, 0.2409110367, -0.142923221, -0.12628676, -0.3133459389, 0.0018987166, 0.0618451945, 0.0202441178, -0.3433455825, -0.3376550078, -0.2684758306, -0.0148096625, -0.0740636662, -0.0003413138, 0.2130772471, -0.1187314242, 0.212161243, -0.2453932762, 0.081014663, -0.1340082139, 0.1350557357, -0.2799664438, 0.2402764708, 0.0270826723, 0.2827393115, -0.0718644261, -0.0194423031, -0.4871893227, -0.0540028214, 0.0109267412, 0.0986872241, 0.3070954084, -0.1801377982, -0.137321353, 0.0053290236, 0.399123311, 0.2806529403, -0.2605661452, 0.0164485332, 0.1206055507, 0.3077169359, -0.2169092745, -0.1124176979, 0.1596363783, 0.0255125593, 0.2056993395, -0.0233399812, 0.0817393437, -0.1946602911, 0.2731689513, 0.0354822725, 0.4447305202, -0.0881807953, 0.2025938928, 0.6118386984, 0.0197394285, -0.0029398229, 0.1617920399, 0.1720683426, 0.1941984892, 0.4270905256, -0.1792922616, -0.0874076933, -0.0603709556, 0.1699083596, -0.1782530248, -0.4733141363, 0.1432804465, -0.1597066075, -0.2988282144, -0.0670226589, 0.0496745259, 0.2803224921, -0.2598401308, 0.0749866813, -0.10565532, 0.1608565897, -0.092289798, -0.1408545971, 0.0897712633, -0.0730974227, -0.1290260851, -0.0425561816, 0.1132714599, 0.0838867798, 0.2775803208, 0.263050735, -0.0881880298, -0.2006155998, 0.1970885843, 0.22083655, -0.0557488538, -0.1138674766, 0.1557369977, 0.3445364833, 0.1739408821, -0.1311293691, 0.1761197299, 0.6315094829, 0.3470622301, 0.0025092959, 0.2030487657, -0.1124483421, -0.1424656957, -0.0864447281, 0.0251591522, -0.0924742445, 0.2070284188, 0.3563939333, 0.3213755488, -0.1901990175, 0.333912909, -0.0463941135, -0.1453462392, -0.1938876063, 0.3707819283, 0.0753012002, -0.2841671407, -0.125421226, 0.0150402952, -0.4021416306, 0.0693430603, 0.4656215012, 0.0106838588, 0.2924721837, 0.0018877983, 0.109443821, -0.0905617997, 0.4269731939, 0.1445116401, 0.3763493598, -0.4452265501, 0.0112876194, -0.5027253628, 0.1829469353, -0.0391798057, 0.0534202866, -0.0442362502, 0.170168981, 0.0105170524, 0.2027028948, -0.1474989802, -0.0566703007, 0.0178524945, 0.1256340146, 0.0269398298, -0.1631550789, -0.2020687312, 0.0583004691, -0.0021002658, -0.3904865384, 0.217480883, 0.0210842788, 0.140579626, -0.2631099224, -0.0637241974, 0.1954774112, 0.1273901165, 0.3907394111, 0.1600237787, 0.6441078186, -0.1056481004, 0.0829368532, -0.0683099031, -0.2543077469, 0.0151442913, 0.1953171641, 0.2678673267, 0.2144360989, -0.0889865085, -0.3141355813, -0.4714728296, 0.3997182846, -0.0541134365, -0.0857380182, -0.0444329008, -0.1015133411, -0.0295404978, 0.0428919569, 0.0381942205, -0.0330935642, 0.0117345927, 0.2108484507, -0.1760048419, -0.4096622765, 0.4183121622, -0.2643620968, -0.2504858375, -0.1710996777, 0.2781779468, -0.0463292412, 0.289378494, -0.2773316205, 0.2958230078, 0.4524031281, -0.2110677212, -0.2147775441, 0.2234393209, 0.0190695263, 0.2123968005, -0.0396619216, 0.4695009887, 0.1008591875, -0.242797181, -0.1551300734, -0.2195902616 ]
https://github.com/huggingface/datasets/issues/807
load_dataset for LOCAL CSV files report CONNECTION ERROR
hello, how did you solve this problems? > > > Hi ! > > > The url works on my side. > > > Is the url working in your navigator ? > > > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ? > > > > > > I tried another server, it's working now. Thanks a lot. > > And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed? > > I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`? > > Thanks :D hello, I tried this. but it still failed. how do you fix this error?
## load_dataset for LOCAL CSV files report CONNECTION ERROR - **Description:** A local demo csv file: ``` import pandas as pd import numpy as np from datasets import load_dataset import torch import transformers df = pd.DataFrame(np.arange(1200).reshape(300,4)) df.to_csv('test.csv', header=False, index=False) print('datasets version: ', datasets.__version__) print('pytorch version: ', torch.__version__) print('transformers version: ', transformers.__version__) # output: datasets version: 1.1.2 pytorch version: 1.5.0 transformers version: 3.2.0 ``` when I load data through `dataset`: ``` dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False) ``` Error infos: ``` ConnectionError Traceback (most recent call last) <ipython-input-17-bbdadb9a0c78> in <module> ----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False) ~/.conda/envs/py36/lib/python3.6/site-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) 588 # Download/copy dataset processing script 589 module_path, hash = prepare_module( --> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True 591 ) 592 ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs) 266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version) 267 try: --> 268 local_path = cached_path(file_path, download_config=download_config) 269 except FileNotFoundError: 270 if script_version is not None: ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 306 user_agent=download_config.user_agent, 307 local_files_only=download_config.local_files_only, --> 308 use_etag=download_config.use_etag, 309 ) 310 elif os.path.exists(url_or_filename): ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag) 473 elif response is not None and response.status_code == 404: 474 raise FileNotFoundError("Couldn't find file at {}".format(url)) --> 475 raise ConnectionError("Couldn't reach {}".format(url)) 476 477 # Try a second time ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py ``` And I try to connect to the site with requests: ``` import requests requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py") ``` Similarly Error occurs: ``` --------------------------------------------------------------------------- ConnectionRefusedError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self) 159 conn = connection.create_connection( --> 160 (self._dns_host, self.port), self.timeout, **extra_kw 161 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock ConnectionRefusedError: [Errno 111] Connection refused During handling of the above exception, another exception occurred: NewConnectionError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 676 headers=headers, --> 677 chunked=chunked, 678 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 380 try: --> 381 self._validate_conn(conn) 382 except (SocketTimeout, BaseSSLError) as e: ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 976 conn.connect() 977 ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self) 307 # Add certificate verification --> 308 conn = self._new_conn() 309 hostname = self.host ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self) 171 raise NewConnectionError( --> 172 self, "Failed to establish a new connection: %s" % e 173 ) NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 448 retries=self.max_retries, --> 449 timeout=timeout 450 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 724 retries = retries.increment( --> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] 726 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 438 if new_retry.is_exhausted(): --> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 440 MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',)) During handling of the above exception, another exception occurred: ConnectionError Traceback (most recent call last) <ipython-input-20-18cc3eb4a049> in <module> 1 import requests 2 ----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py") ~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs) 102 103 kwargs.setdefault('allow_redirects', False) --> 104 return request('head', url, **kwargs) 105 106 ~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs) 59 # cases, and look like a memory leak in others. 60 with sessions.Session() as session: ---> 61 return session.request(method=method, url=url, **kwargs) 62 63 ~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 528 } 529 send_kwargs.update(settings) --> 530 resp = self.send(prep, **send_kwargs) 531 532 return resp ~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs) 641 642 # Send the request --> 643 r = adapter.send(request, **kwargs) 644 645 # Total elapsed time of the request (approximately) ~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 514 raise SSLError(e, request=request) 515 --> 516 raise ConnectionError(e, request=request) 517 518 except ClosedPoolError as e: ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',)) ```
136
load_dataset for LOCAL CSV files report CONNECTION ERROR ## load_dataset for LOCAL CSV files report CONNECTION ERROR - **Description:** A local demo csv file: ``` import pandas as pd import numpy as np from datasets import load_dataset import torch import transformers df = pd.DataFrame(np.arange(1200).reshape(300,4)) df.to_csv('test.csv', header=False, index=False) print('datasets version: ', datasets.__version__) print('pytorch version: ', torch.__version__) print('transformers version: ', transformers.__version__) # output: datasets version: 1.1.2 pytorch version: 1.5.0 transformers version: 3.2.0 ``` when I load data through `dataset`: ``` dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False) ``` Error infos: ``` ConnectionError Traceback (most recent call last) <ipython-input-17-bbdadb9a0c78> in <module> ----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False) ~/.conda/envs/py36/lib/python3.6/site-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) 588 # Download/copy dataset processing script 589 module_path, hash = prepare_module( --> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True 591 ) 592 ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs) 266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version) 267 try: --> 268 local_path = cached_path(file_path, download_config=download_config) 269 except FileNotFoundError: 270 if script_version is not None: ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 306 user_agent=download_config.user_agent, 307 local_files_only=download_config.local_files_only, --> 308 use_etag=download_config.use_etag, 309 ) 310 elif os.path.exists(url_or_filename): ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag) 473 elif response is not None and response.status_code == 404: 474 raise FileNotFoundError("Couldn't find file at {}".format(url)) --> 475 raise ConnectionError("Couldn't reach {}".format(url)) 476 477 # Try a second time ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py ``` And I try to connect to the site with requests: ``` import requests requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py") ``` Similarly Error occurs: ``` --------------------------------------------------------------------------- ConnectionRefusedError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self) 159 conn = connection.create_connection( --> 160 (self._dns_host, self.port), self.timeout, **extra_kw 161 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock ConnectionRefusedError: [Errno 111] Connection refused During handling of the above exception, another exception occurred: NewConnectionError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 676 headers=headers, --> 677 chunked=chunked, 678 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 380 try: --> 381 self._validate_conn(conn) 382 except (SocketTimeout, BaseSSLError) as e: ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 976 conn.connect() 977 ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self) 307 # Add certificate verification --> 308 conn = self._new_conn() 309 hostname = self.host ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self) 171 raise NewConnectionError( --> 172 self, "Failed to establish a new connection: %s" % e 173 ) NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 448 retries=self.max_retries, --> 449 timeout=timeout 450 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 724 retries = retries.increment( --> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] 726 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 438 if new_retry.is_exhausted(): --> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 440 MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',)) During handling of the above exception, another exception occurred: ConnectionError Traceback (most recent call last) <ipython-input-20-18cc3eb4a049> in <module> 1 import requests 2 ----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py") ~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs) 102 103 kwargs.setdefault('allow_redirects', False) --> 104 return request('head', url, **kwargs) 105 106 ~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs) 59 # cases, and look like a memory leak in others. 60 with sessions.Session() as session: ---> 61 return session.request(method=method, url=url, **kwargs) 62 63 ~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 528 } 529 send_kwargs.update(settings) --> 530 resp = self.send(prep, **send_kwargs) 531 532 return resp ~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs) 641 642 # Send the request --> 643 r = adapter.send(request, **kwargs) 644 645 # Total elapsed time of the request (approximately) ~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 514 raise SSLError(e, request=request) 515 --> 516 raise ConnectionError(e, request=request) 517 518 except ClosedPoolError as e: ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',)) ``` hello, how did you solve this problems? > > > Hi ! > > > The url works on my side. > > > Is the url working in your navigator ? > > > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ? > > > > > > I tried another server, it's working now. Thanks a lot. > > And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed? > > I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`? > > Thanks :D hello, I tried this. but it still failed. how do you fix this error?
[ -0.3247119784, 0.0161048751, -0.1088048592, 0.0260045994, 0.2420430928, 0.0198688172, 0.7173693776, 0.3756362498, 0.2509218454, 0.1337040961, -0.0342322253, 0.1497043818, 0.079799369, 0.0211836994, -0.1269313097, -0.1772821993, -0.1271575987, 0.2743317187, -0.4187990725, 0.0144970762, -0.1248850375, -0.0023575069, -0.0349383652, 0.1405340135, -0.2024640292, -0.0062388256, 0.115782015, 0.1312771589, -0.027692223, -0.4939196408, 0.3365216255, 0.0402499251, 0.3237729371, 0.3632173538, -0.0001060309, 0.2135234624, 0.251740247, -0.0288667791, -0.4279087186, -0.4611106515, -0.1089924201, -0.3690283, 0.4228133857, -0.3986181021, 0.0005739984, -0.1198976636, -0.0673584118, -0.3161992431, 0.4313886166, 0.4785012007, 0.2786398232, 0.4154756367, 0.0165831614, -0.1110344753, 0.0718219131, 0.0555337667, -0.0624922924, 0.4061277807, 0.051624205, -0.1849909127, -0.2426788807, 0.0846124962, -0.1926987022, 0.39553231, 0.1906038374, 0.0830964148, 0.0377705097, -0.1966335922, 0.1252263486, 0.1076833755, 0.4764899611, -0.2314555943, -0.2321469486, -0.0584995747, -0.1994820088, -0.1881569028, 0.1660740376, 0.0867304876, -0.1683378518, 0.1474406123, -0.2638413608, 0.0990803167, -0.3907520771, 0.1494553536, -0.1105124205, 0.154757306, -0.0671839118, 0.1947449297, 0.1582646221, -0.0564835183, 0.4036886096, -0.2070344388, 0.1916099042, 0.1276624054, -0.3377640843, 0.1311575472, 0.1394049972, -0.3861341774, -0.1064571217, 0.049894087, -0.0361733697, -0.0535906665, 0.1335503161, 0.29164657, 0.1983620375, 0.0791434571, -0.1308652461, 0.2947738767, 0.2687249482, 0.1325622648, 0.0422616825, -0.062484879, -0.0800573379, -0.3558064699, 0.1634977311, 0.1999797523, 0.4894586802, -0.0474285446, -0.2816004455, 0.1326407194, 0.01291034, -0.107372798, 0.0189694855, 0.3589312732, -0.0879684165, 0.2043159902, 0.0424530543, 0.0136885177, -0.2235279083, 0.0845431387, -0.2120841444, 0.0379554667, -0.1193309948, -0.069532007, 0.381331712, -0.0790897459, 0.0466333814, -0.0146684255, 0.0989307612, 0.0503490977, 0.2611698806, -0.2932826877, 0.0491830222, 0.4129320383, 0.0561541431, 0.2478839755, 0.4095256329, -0.1842341125, -0.1060607955, 0.0865905806, -0.2045430243, -0.3371691704, -0.3385478556, 0.2402115017, 0.0368899964, 0.1089416295, -0.0184664372, -0.3302741349, 0.0986591801, -0.2747163773, -0.1541593075, -0.3237558901, -0.03890476, -0.2159913778, 0.3081872463, 0.646335721, -0.4303181469, 0.0429562889, 0.0566366278, -0.1299162954, 0.1414597929, 0.2508480847, -0.3076960444, 0.0851259232, -0.2284608632, -0.0966768861, 0.2314824164, -0.3093754053, -0.3032818139, 0.5005192161, -0.2373454124, -0.0729433447, 0.2169772387, 0.0126160737, 0.2910563946, 0.1858282536, 0.2615150809, 0.3000477254, -0.1007598862, 0.1175526381, -0.0799233019, -0.2225605547, 0.197357893, 0.116455853, 0.0098164398, 0.2231838554, 0.3249670267, -0.2579794228, 0.1741141528, -0.0768724307, 0.1447920352, 0.1345078349, 0.1739718914, 0.0419842005, -0.0606003143, -0.0216646045, -0.5085178614, 0.1381559074, 0.1310925186, 0.0903009251, -0.4376562536, -0.0162692945, -0.3771233261, 0.0051720794, -0.2671602964, -0.0302423481, 0.2100170255, 0.3415310085, -0.0191593431, -0.0523176678, -0.0488571636, 0.3256911933, -0.1166128889, -0.0192560256, -0.4156304598, 0.3395553231, -0.3544685841, -0.0690030679, 0.0523539707, -0.0314196497, 0.1626498699, -0.1825554967, -0.2719683945, 0.356123805, -0.0955855027, 0.2182245553, 0.0170497447, -0.0044385036, 0.0526204668, -0.2450991571, 0.0323774405, 0.0311141927, 0.1533318311, 0.0431830958, -0.2613136768, 0.3525988162, -0.0953487456, 0.1633696109, 0.0506541878, 0.0704120323, 0.4514211118, 0.0119941952, -0.1140478924, -0.108509101, 0.1054949984, 0.2389214933, 0.2262361944, 0.0491033196, -0.1802722514, -0.1886238605, 0.201859355, -0.1532274932, 0.0116078425, 0.092353113, -0.1086221114, -0.0442815572, 0.2146847695, 0.2319190353, 0.5149136186, 0.1026023999, -0.1526020616, -0.0183213037, -0.0503233857, -0.1338230968, 0.1102776378, -0.0386924297, 0.0448770113, 0.3272635043, 0.0759822652, 0.1069805399, -0.24100779, -0.3630867898, -0.0419493131, 0.2638890743, -0.3493008018, 0.2479266226, -0.164568454, 0.0182823539, -0.2659018338, -0.0503301881, -0.1105001122, -0.1780741066, -0.3695805967, 0.3607571125, -0.0763825253, 0.2372520268, -0.2790017128, -0.0516411066, 0.387984097, -0.449832648, -0.0730597675, -0.2081661969, -0.1601462513, 0.092480585, 0.0935098603, -0.1568923742, 0.3031650484, -0.0989919081, 0.0205262452, -0.1610623449, -0.0238344334, -0.0821167901, 0.0125283739, 0.1283056736, 0.1878542751, 0.4475225806, 0.1206022948, -0.5035608411, 0.3184547424, -0.0834973976, 0.0481939465, 0.1964565814, -0.0537022725, -0.2032553703, 0.0006878303, -0.6345351338, -0.5991463065, -0.4698640108, 0.137534529, 0.0665086061, 0.213231504, 0.2955248356, 0.226901859, 0.2099234313, 0.086658068, 0.075748764, -0.0596129261, -0.1591842622, 0.3499984443, -0.2349603027, -0.3570284843, -0.1133960336, -0.1152547076, 0.1219444051, 0.1364868283, -0.4447761774, -0.0236158762, -0.1746836156, 0.3565400839, -0.0467239954, 0.0517050438, 0.4662777781, 0.168656975, -0.1706289351, 0.112660788, -0.244187206, -0.1408113986, 0.19425641, 0.0843700543, 0.0044107297, 0.4593693316, -0.1589591056, 0.6532875896, -0.0798088536, -0.1897098422, 0.2884311676, -0.1362251788, 0.3429668844, -0.184507519, -0.6308501959, -0.0917782187, -0.3062298596, -0.2018836439, 0.0107533252, -0.2297288477, -0.2305866629, -0.3641995788, 0.0186994523, -0.3049332201, -0.3137823939, 0.1363260001, -0.1196979135, 0.3635419011, 0.0468817167, -0.0130359288, -0.2529374659, -0.0600580163, -0.2486277819, 0.365986377, -0.00622231, -0.0931661576, -0.2668785453, 0.106913276, -0.2810813189, 0.2432361841, 0.0800496638, 0.562286973, -0.2027087361, -0.1867956221, -0.037793126, 0.0581575334, 0.4028225541, 0.0884443223, 0.0874637812, 0.2563880682, -0.0515906289, -0.3120605946, -0.0862113386, -0.0886839032, 0.2211952209, 0.2276992351, 0.4607941806, 0.0591152981, -0.1269774735, 0.3169068694, 0.2359133363, -0.0872561261, -0.1790537238, -0.2838752568, -0.0508110896, -0.3215521574, -0.1053738445, -0.1118416414, 0.1790324301, -0.1732906252, -0.1281273663, 0.0737236813, -0.17101942, 0.0011047664, 0.1193199456, -0.145699352, 0.095977217, 0.2179178745, 0.1906981915, 0.262887001, 0.2021610737, 0.4429312646, -0.2094505578, -0.5551641583, 0.1772616953, -0.0145551069, 0.1078312173, 0.1052375659, -0.136935696, -0.1487585008, 0.1752745509, 0.1808558702, -0.1539573371, 0.193852514, 0.2498669773, -0.1166540161, -0.3529872298, -0.4148067832, 0.1314440966, -0.2005928904, -0.0967518017, 0.1951028854, -0.3385472596, -0.0635156855, 0.259523958, -0.1583105177, 0.6695194244, -0.1268930435, 0.1809173673, 0.1628528982, -0.1345140785, 0.448382467, -0.1574920416, 0.1192620546, -0.3441149294, -0.2360040396, -0.0994973555, -0.2498574704, 0.3218547106, 0.0098687625, -0.0969613567, 0.2364210486, -0.0614167564, 0.2813483179, 0.0652796403, 0.2203808725, 0.0612791143, -0.230269298, -0.183008939, 0.1901202053, -0.0931363255, 0.4134553671, 0.0299710482, -0.1137413457, -0.0124852136, -0.3615666926, -0.0431394763, 0.0593213364, -0.283066541, 0.4136625528, 0.048829522, -0.3536549807, -0.0551414713, 0.138169542, -0.1533757597, 0.0783295631, -0.1498510689, -0.0794563219, -0.1080912948, -0.0611961149, -0.116901122, -0.0029087081, 0.1473995745, 0.0824843422, -0.2685492635, 0.2755724788, -0.117831476, -0.3403718472, 0.1828362048, 0.2773403525, 0.2622920871, -0.5065495968, -0.1399478167, -0.3102685809, -0.1075603813, -0.1293208152, 0.2005318552, -0.1123934686, 0.0256723799, 0.0055952808, -0.0878887624, -0.3105517626, -0.0419634394, 0.6014831066, -0.0718143359, -0.0663501322, 0.3271543384, 0.0624912158, -0.1843172163, -0.242867738, 0.1990402937, -0.0044323304, -0.4677978754, -0.0930080041, 0.0687797666, 0.0586959198, -0.1138905808, 0.0717758313, 0.2206758261, 0.1031342894, 0.0357835628, -0.4803102314, -0.5924565196, -0.0901230648, -0.0120877745, 0.1493128389, 0.4447919726, 0.2230696827, 0.0557790361, 0.109067589, -0.3599542975, -0.0675611347, -0.1895690858, 0.1576153487, 0.5117644668, -0.2647097409, 0.1770649999, -0.1552708149, 0.2409110367, -0.142923221, -0.12628676, -0.3133459389, 0.0018987166, 0.0618451945, 0.0202441178, -0.3433455825, -0.3376550078, -0.2684758306, -0.0148096625, -0.0740636662, -0.0003413138, 0.2130772471, -0.1187314242, 0.212161243, -0.2453932762, 0.081014663, -0.1340082139, 0.1350557357, -0.2799664438, 0.2402764708, 0.0270826723, 0.2827393115, -0.0718644261, -0.0194423031, -0.4871893227, -0.0540028214, 0.0109267412, 0.0986872241, 0.3070954084, -0.1801377982, -0.137321353, 0.0053290236, 0.399123311, 0.2806529403, -0.2605661452, 0.0164485332, 0.1206055507, 0.3077169359, -0.2169092745, -0.1124176979, 0.1596363783, 0.0255125593, 0.2056993395, -0.0233399812, 0.0817393437, -0.1946602911, 0.2731689513, 0.0354822725, 0.4447305202, -0.0881807953, 0.2025938928, 0.6118386984, 0.0197394285, -0.0029398229, 0.1617920399, 0.1720683426, 0.1941984892, 0.4270905256, -0.1792922616, -0.0874076933, -0.0603709556, 0.1699083596, -0.1782530248, -0.4733141363, 0.1432804465, -0.1597066075, -0.2988282144, -0.0670226589, 0.0496745259, 0.2803224921, -0.2598401308, 0.0749866813, -0.10565532, 0.1608565897, -0.092289798, -0.1408545971, 0.0897712633, -0.0730974227, -0.1290260851, -0.0425561816, 0.1132714599, 0.0838867798, 0.2775803208, 0.263050735, -0.0881880298, -0.2006155998, 0.1970885843, 0.22083655, -0.0557488538, -0.1138674766, 0.1557369977, 0.3445364833, 0.1739408821, -0.1311293691, 0.1761197299, 0.6315094829, 0.3470622301, 0.0025092959, 0.2030487657, -0.1124483421, -0.1424656957, -0.0864447281, 0.0251591522, -0.0924742445, 0.2070284188, 0.3563939333, 0.3213755488, -0.1901990175, 0.333912909, -0.0463941135, -0.1453462392, -0.1938876063, 0.3707819283, 0.0753012002, -0.2841671407, -0.125421226, 0.0150402952, -0.4021416306, 0.0693430603, 0.4656215012, 0.0106838588, 0.2924721837, 0.0018877983, 0.109443821, -0.0905617997, 0.4269731939, 0.1445116401, 0.3763493598, -0.4452265501, 0.0112876194, -0.5027253628, 0.1829469353, -0.0391798057, 0.0534202866, -0.0442362502, 0.170168981, 0.0105170524, 0.2027028948, -0.1474989802, -0.0566703007, 0.0178524945, 0.1256340146, 0.0269398298, -0.1631550789, -0.2020687312, 0.0583004691, -0.0021002658, -0.3904865384, 0.217480883, 0.0210842788, 0.140579626, -0.2631099224, -0.0637241974, 0.1954774112, 0.1273901165, 0.3907394111, 0.1600237787, 0.6441078186, -0.1056481004, 0.0829368532, -0.0683099031, -0.2543077469, 0.0151442913, 0.1953171641, 0.2678673267, 0.2144360989, -0.0889865085, -0.3141355813, -0.4714728296, 0.3997182846, -0.0541134365, -0.0857380182, -0.0444329008, -0.1015133411, -0.0295404978, 0.0428919569, 0.0381942205, -0.0330935642, 0.0117345927, 0.2108484507, -0.1760048419, -0.4096622765, 0.4183121622, -0.2643620968, -0.2504858375, -0.1710996777, 0.2781779468, -0.0463292412, 0.289378494, -0.2773316205, 0.2958230078, 0.4524031281, -0.2110677212, -0.2147775441, 0.2234393209, 0.0190695263, 0.2123968005, -0.0396619216, 0.4695009887, 0.1008591875, -0.242797181, -0.1551300734, -0.2195902616 ]
https://github.com/huggingface/datasets/issues/807
load_dataset for LOCAL CSV files report CONNECTION ERROR
> hello, how did you solve this problems? > > > > > Hi ! > > > > The url works on my side. > > > > Is the url working in your navigator ? > > > > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ? > > > > > > > > > I tried another server, it's working now. Thanks a lot. > > > And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed? > > > > > > I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`? > > Thanks :D > > hello, I tried this. but it still failed. how do you fix this error? 你把那个脚本下载到你本地安装目录下,然后 `load_dataset(csv_script_path, data_fiels)`
## load_dataset for LOCAL CSV files report CONNECTION ERROR - **Description:** A local demo csv file: ``` import pandas as pd import numpy as np from datasets import load_dataset import torch import transformers df = pd.DataFrame(np.arange(1200).reshape(300,4)) df.to_csv('test.csv', header=False, index=False) print('datasets version: ', datasets.__version__) print('pytorch version: ', torch.__version__) print('transformers version: ', transformers.__version__) # output: datasets version: 1.1.2 pytorch version: 1.5.0 transformers version: 3.2.0 ``` when I load data through `dataset`: ``` dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False) ``` Error infos: ``` ConnectionError Traceback (most recent call last) <ipython-input-17-bbdadb9a0c78> in <module> ----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False) ~/.conda/envs/py36/lib/python3.6/site-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) 588 # Download/copy dataset processing script 589 module_path, hash = prepare_module( --> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True 591 ) 592 ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs) 266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version) 267 try: --> 268 local_path = cached_path(file_path, download_config=download_config) 269 except FileNotFoundError: 270 if script_version is not None: ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 306 user_agent=download_config.user_agent, 307 local_files_only=download_config.local_files_only, --> 308 use_etag=download_config.use_etag, 309 ) 310 elif os.path.exists(url_or_filename): ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag) 473 elif response is not None and response.status_code == 404: 474 raise FileNotFoundError("Couldn't find file at {}".format(url)) --> 475 raise ConnectionError("Couldn't reach {}".format(url)) 476 477 # Try a second time ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py ``` And I try to connect to the site with requests: ``` import requests requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py") ``` Similarly Error occurs: ``` --------------------------------------------------------------------------- ConnectionRefusedError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self) 159 conn = connection.create_connection( --> 160 (self._dns_host, self.port), self.timeout, **extra_kw 161 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock ConnectionRefusedError: [Errno 111] Connection refused During handling of the above exception, another exception occurred: NewConnectionError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 676 headers=headers, --> 677 chunked=chunked, 678 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 380 try: --> 381 self._validate_conn(conn) 382 except (SocketTimeout, BaseSSLError) as e: ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 976 conn.connect() 977 ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self) 307 # Add certificate verification --> 308 conn = self._new_conn() 309 hostname = self.host ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self) 171 raise NewConnectionError( --> 172 self, "Failed to establish a new connection: %s" % e 173 ) NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 448 retries=self.max_retries, --> 449 timeout=timeout 450 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 724 retries = retries.increment( --> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] 726 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 438 if new_retry.is_exhausted(): --> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 440 MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',)) During handling of the above exception, another exception occurred: ConnectionError Traceback (most recent call last) <ipython-input-20-18cc3eb4a049> in <module> 1 import requests 2 ----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py") ~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs) 102 103 kwargs.setdefault('allow_redirects', False) --> 104 return request('head', url, **kwargs) 105 106 ~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs) 59 # cases, and look like a memory leak in others. 60 with sessions.Session() as session: ---> 61 return session.request(method=method, url=url, **kwargs) 62 63 ~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 528 } 529 send_kwargs.update(settings) --> 530 resp = self.send(prep, **send_kwargs) 531 532 return resp ~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs) 641 642 # Send the request --> 643 r = adapter.send(request, **kwargs) 644 645 # Total elapsed time of the request (approximately) ~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 514 raise SSLError(e, request=request) 515 --> 516 raise ConnectionError(e, request=request) 517 518 except ClosedPoolError as e: ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',)) ```
155
load_dataset for LOCAL CSV files report CONNECTION ERROR ## load_dataset for LOCAL CSV files report CONNECTION ERROR - **Description:** A local demo csv file: ``` import pandas as pd import numpy as np from datasets import load_dataset import torch import transformers df = pd.DataFrame(np.arange(1200).reshape(300,4)) df.to_csv('test.csv', header=False, index=False) print('datasets version: ', datasets.__version__) print('pytorch version: ', torch.__version__) print('transformers version: ', transformers.__version__) # output: datasets version: 1.1.2 pytorch version: 1.5.0 transformers version: 3.2.0 ``` when I load data through `dataset`: ``` dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False) ``` Error infos: ``` ConnectionError Traceback (most recent call last) <ipython-input-17-bbdadb9a0c78> in <module> ----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False) ~/.conda/envs/py36/lib/python3.6/site-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) 588 # Download/copy dataset processing script 589 module_path, hash = prepare_module( --> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True 591 ) 592 ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs) 266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version) 267 try: --> 268 local_path = cached_path(file_path, download_config=download_config) 269 except FileNotFoundError: 270 if script_version is not None: ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 306 user_agent=download_config.user_agent, 307 local_files_only=download_config.local_files_only, --> 308 use_etag=download_config.use_etag, 309 ) 310 elif os.path.exists(url_or_filename): ~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag) 473 elif response is not None and response.status_code == 404: 474 raise FileNotFoundError("Couldn't find file at {}".format(url)) --> 475 raise ConnectionError("Couldn't reach {}".format(url)) 476 477 # Try a second time ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py ``` And I try to connect to the site with requests: ``` import requests requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py") ``` Similarly Error occurs: ``` --------------------------------------------------------------------------- ConnectionRefusedError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self) 159 conn = connection.create_connection( --> 160 (self._dns_host, self.port), self.timeout, **extra_kw 161 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock ConnectionRefusedError: [Errno 111] Connection refused During handling of the above exception, another exception occurred: NewConnectionError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 676 headers=headers, --> 677 chunked=chunked, 678 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 380 try: --> 381 self._validate_conn(conn) 382 except (SocketTimeout, BaseSSLError) as e: ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 976 conn.connect() 977 ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self) 307 # Add certificate verification --> 308 conn = self._new_conn() 309 hostname = self.host ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self) 171 raise NewConnectionError( --> 172 self, "Failed to establish a new connection: %s" % e 173 ) NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) ~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 448 retries=self.max_retries, --> 449 timeout=timeout 450 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 724 retries = retries.increment( --> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] 726 ) ~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 438 if new_retry.is_exhausted(): --> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 440 MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',)) During handling of the above exception, another exception occurred: ConnectionError Traceback (most recent call last) <ipython-input-20-18cc3eb4a049> in <module> 1 import requests 2 ----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py") ~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs) 102 103 kwargs.setdefault('allow_redirects', False) --> 104 return request('head', url, **kwargs) 105 106 ~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs) 59 # cases, and look like a memory leak in others. 60 with sessions.Session() as session: ---> 61 return session.request(method=method, url=url, **kwargs) 62 63 ~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 528 } 529 send_kwargs.update(settings) --> 530 resp = self.send(prep, **send_kwargs) 531 532 return resp ~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs) 641 642 # Send the request --> 643 r = adapter.send(request, **kwargs) 644 645 # Total elapsed time of the request (approximately) ~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 514 raise SSLError(e, request=request) 515 --> 516 raise ConnectionError(e, request=request) 517 518 except ClosedPoolError as e: ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',)) ``` > hello, how did you solve this problems? > > > > > Hi ! > > > > The url works on my side. > > > > Is the url working in your navigator ? > > > > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ? > > > > > > > > > I tried another server, it's working now. Thanks a lot. > > > And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed? > > > > > > I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`? > > Thanks :D > > hello, I tried this. but it still failed. how do you fix this error? 你把那个脚本下载到你本地安装目录下,然后 `load_dataset(csv_script_path, data_fiels)`
[ -0.3247119784, 0.0161048751, -0.1088048592, 0.0260045994, 0.2420430928, 0.0198688172, 0.7173693776, 0.3756362498, 0.2509218454, 0.1337040961, -0.0342322253, 0.1497043818, 0.079799369, 0.0211836994, -0.1269313097, -0.1772821993, -0.1271575987, 0.2743317187, -0.4187990725, 0.0144970762, -0.1248850375, -0.0023575069, -0.0349383652, 0.1405340135, -0.2024640292, -0.0062388256, 0.115782015, 0.1312771589, -0.027692223, -0.4939196408, 0.3365216255, 0.0402499251, 0.3237729371, 0.3632173538, -0.0001060309, 0.2135234624, 0.251740247, -0.0288667791, -0.4279087186, -0.4611106515, -0.1089924201, -0.3690283, 0.4228133857, -0.3986181021, 0.0005739984, -0.1198976636, -0.0673584118, -0.3161992431, 0.4313886166, 0.4785012007, 0.2786398232, 0.4154756367, 0.0165831614, -0.1110344753, 0.0718219131, 0.0555337667, -0.0624922924, 0.4061277807, 0.051624205, -0.1849909127, -0.2426788807, 0.0846124962, -0.1926987022, 0.39553231, 0.1906038374, 0.0830964148, 0.0377705097, -0.1966335922, 0.1252263486, 0.1076833755, 0.4764899611, -0.2314555943, -0.2321469486, -0.0584995747, -0.1994820088, -0.1881569028, 0.1660740376, 0.0867304876, -0.1683378518, 0.1474406123, -0.2638413608, 0.0990803167, -0.3907520771, 0.1494553536, -0.1105124205, 0.154757306, -0.0671839118, 0.1947449297, 0.1582646221, -0.0564835183, 0.4036886096, -0.2070344388, 0.1916099042, 0.1276624054, -0.3377640843, 0.1311575472, 0.1394049972, -0.3861341774, -0.1064571217, 0.049894087, -0.0361733697, -0.0535906665, 0.1335503161, 0.29164657, 0.1983620375, 0.0791434571, -0.1308652461, 0.2947738767, 0.2687249482, 0.1325622648, 0.0422616825, -0.062484879, -0.0800573379, -0.3558064699, 0.1634977311, 0.1999797523, 0.4894586802, -0.0474285446, -0.2816004455, 0.1326407194, 0.01291034, -0.107372798, 0.0189694855, 0.3589312732, -0.0879684165, 0.2043159902, 0.0424530543, 0.0136885177, -0.2235279083, 0.0845431387, -0.2120841444, 0.0379554667, -0.1193309948, -0.069532007, 0.381331712, -0.0790897459, 0.0466333814, -0.0146684255, 0.0989307612, 0.0503490977, 0.2611698806, -0.2932826877, 0.0491830222, 0.4129320383, 0.0561541431, 0.2478839755, 0.4095256329, -0.1842341125, -0.1060607955, 0.0865905806, -0.2045430243, -0.3371691704, -0.3385478556, 0.2402115017, 0.0368899964, 0.1089416295, -0.0184664372, -0.3302741349, 0.0986591801, -0.2747163773, -0.1541593075, -0.3237558901, -0.03890476, -0.2159913778, 0.3081872463, 0.646335721, -0.4303181469, 0.0429562889, 0.0566366278, -0.1299162954, 0.1414597929, 0.2508480847, -0.3076960444, 0.0851259232, -0.2284608632, -0.0966768861, 0.2314824164, -0.3093754053, -0.3032818139, 0.5005192161, -0.2373454124, -0.0729433447, 0.2169772387, 0.0126160737, 0.2910563946, 0.1858282536, 0.2615150809, 0.3000477254, -0.1007598862, 0.1175526381, -0.0799233019, -0.2225605547, 0.197357893, 0.116455853, 0.0098164398, 0.2231838554, 0.3249670267, -0.2579794228, 0.1741141528, -0.0768724307, 0.1447920352, 0.1345078349, 0.1739718914, 0.0419842005, -0.0606003143, -0.0216646045, -0.5085178614, 0.1381559074, 0.1310925186, 0.0903009251, -0.4376562536, -0.0162692945, -0.3771233261, 0.0051720794, -0.2671602964, -0.0302423481, 0.2100170255, 0.3415310085, -0.0191593431, -0.0523176678, -0.0488571636, 0.3256911933, -0.1166128889, -0.0192560256, -0.4156304598, 0.3395553231, -0.3544685841, -0.0690030679, 0.0523539707, -0.0314196497, 0.1626498699, -0.1825554967, -0.2719683945, 0.356123805, -0.0955855027, 0.2182245553, 0.0170497447, -0.0044385036, 0.0526204668, -0.2450991571, 0.0323774405, 0.0311141927, 0.1533318311, 0.0431830958, -0.2613136768, 0.3525988162, -0.0953487456, 0.1633696109, 0.0506541878, 0.0704120323, 0.4514211118, 0.0119941952, -0.1140478924, -0.108509101, 0.1054949984, 0.2389214933, 0.2262361944, 0.0491033196, -0.1802722514, -0.1886238605, 0.201859355, -0.1532274932, 0.0116078425, 0.092353113, -0.1086221114, -0.0442815572, 0.2146847695, 0.2319190353, 0.5149136186, 0.1026023999, -0.1526020616, -0.0183213037, -0.0503233857, -0.1338230968, 0.1102776378, -0.0386924297, 0.0448770113, 0.3272635043, 0.0759822652, 0.1069805399, -0.24100779, -0.3630867898, -0.0419493131, 0.2638890743, -0.3493008018, 0.2479266226, -0.164568454, 0.0182823539, -0.2659018338, -0.0503301881, -0.1105001122, -0.1780741066, -0.3695805967, 0.3607571125, -0.0763825253, 0.2372520268, -0.2790017128, -0.0516411066, 0.387984097, -0.449832648, -0.0730597675, -0.2081661969, -0.1601462513, 0.092480585, 0.0935098603, -0.1568923742, 0.3031650484, -0.0989919081, 0.0205262452, -0.1610623449, -0.0238344334, -0.0821167901, 0.0125283739, 0.1283056736, 0.1878542751, 0.4475225806, 0.1206022948, -0.5035608411, 0.3184547424, -0.0834973976, 0.0481939465, 0.1964565814, -0.0537022725, -0.2032553703, 0.0006878303, -0.6345351338, -0.5991463065, -0.4698640108, 0.137534529, 0.0665086061, 0.213231504, 0.2955248356, 0.226901859, 0.2099234313, 0.086658068, 0.075748764, -0.0596129261, -0.1591842622, 0.3499984443, -0.2349603027, -0.3570284843, -0.1133960336, -0.1152547076, 0.1219444051, 0.1364868283, -0.4447761774, -0.0236158762, -0.1746836156, 0.3565400839, -0.0467239954, 0.0517050438, 0.4662777781, 0.168656975, -0.1706289351, 0.112660788, -0.244187206, -0.1408113986, 0.19425641, 0.0843700543, 0.0044107297, 0.4593693316, -0.1589591056, 0.6532875896, -0.0798088536, -0.1897098422, 0.2884311676, -0.1362251788, 0.3429668844, -0.184507519, -0.6308501959, -0.0917782187, -0.3062298596, -0.2018836439, 0.0107533252, -0.2297288477, -0.2305866629, -0.3641995788, 0.0186994523, -0.3049332201, -0.3137823939, 0.1363260001, -0.1196979135, 0.3635419011, 0.0468817167, -0.0130359288, -0.2529374659, -0.0600580163, -0.2486277819, 0.365986377, -0.00622231, -0.0931661576, -0.2668785453, 0.106913276, -0.2810813189, 0.2432361841, 0.0800496638, 0.562286973, -0.2027087361, -0.1867956221, -0.037793126, 0.0581575334, 0.4028225541, 0.0884443223, 0.0874637812, 0.2563880682, -0.0515906289, -0.3120605946, -0.0862113386, -0.0886839032, 0.2211952209, 0.2276992351, 0.4607941806, 0.0591152981, -0.1269774735, 0.3169068694, 0.2359133363, -0.0872561261, -0.1790537238, -0.2838752568, -0.0508110896, -0.3215521574, -0.1053738445, -0.1118416414, 0.1790324301, -0.1732906252, -0.1281273663, 0.0737236813, -0.17101942, 0.0011047664, 0.1193199456, -0.145699352, 0.095977217, 0.2179178745, 0.1906981915, 0.262887001, 0.2021610737, 0.4429312646, -0.2094505578, -0.5551641583, 0.1772616953, -0.0145551069, 0.1078312173, 0.1052375659, -0.136935696, -0.1487585008, 0.1752745509, 0.1808558702, -0.1539573371, 0.193852514, 0.2498669773, -0.1166540161, -0.3529872298, -0.4148067832, 0.1314440966, -0.2005928904, -0.0967518017, 0.1951028854, -0.3385472596, -0.0635156855, 0.259523958, -0.1583105177, 0.6695194244, -0.1268930435, 0.1809173673, 0.1628528982, -0.1345140785, 0.448382467, -0.1574920416, 0.1192620546, -0.3441149294, -0.2360040396, -0.0994973555, -0.2498574704, 0.3218547106, 0.0098687625, -0.0969613567, 0.2364210486, -0.0614167564, 0.2813483179, 0.0652796403, 0.2203808725, 0.0612791143, -0.230269298, -0.183008939, 0.1901202053, -0.0931363255, 0.4134553671, 0.0299710482, -0.1137413457, -0.0124852136, -0.3615666926, -0.0431394763, 0.0593213364, -0.283066541, 0.4136625528, 0.048829522, -0.3536549807, -0.0551414713, 0.138169542, -0.1533757597, 0.0783295631, -0.1498510689, -0.0794563219, -0.1080912948, -0.0611961149, -0.116901122, -0.0029087081, 0.1473995745, 0.0824843422, -0.2685492635, 0.2755724788, -0.117831476, -0.3403718472, 0.1828362048, 0.2773403525, 0.2622920871, -0.5065495968, -0.1399478167, -0.3102685809, -0.1075603813, -0.1293208152, 0.2005318552, -0.1123934686, 0.0256723799, 0.0055952808, -0.0878887624, -0.3105517626, -0.0419634394, 0.6014831066, -0.0718143359, -0.0663501322, 0.3271543384, 0.0624912158, -0.1843172163, -0.242867738, 0.1990402937, -0.0044323304, -0.4677978754, -0.0930080041, 0.0687797666, 0.0586959198, -0.1138905808, 0.0717758313, 0.2206758261, 0.1031342894, 0.0357835628, -0.4803102314, -0.5924565196, -0.0901230648, -0.0120877745, 0.1493128389, 0.4447919726, 0.2230696827, 0.0557790361, 0.109067589, -0.3599542975, -0.0675611347, -0.1895690858, 0.1576153487, 0.5117644668, -0.2647097409, 0.1770649999, -0.1552708149, 0.2409110367, -0.142923221, -0.12628676, -0.3133459389, 0.0018987166, 0.0618451945, 0.0202441178, -0.3433455825, -0.3376550078, -0.2684758306, -0.0148096625, -0.0740636662, -0.0003413138, 0.2130772471, -0.1187314242, 0.212161243, -0.2453932762, 0.081014663, -0.1340082139, 0.1350557357, -0.2799664438, 0.2402764708, 0.0270826723, 0.2827393115, -0.0718644261, -0.0194423031, -0.4871893227, -0.0540028214, 0.0109267412, 0.0986872241, 0.3070954084, -0.1801377982, -0.137321353, 0.0053290236, 0.399123311, 0.2806529403, -0.2605661452, 0.0164485332, 0.1206055507, 0.3077169359, -0.2169092745, -0.1124176979, 0.1596363783, 0.0255125593, 0.2056993395, -0.0233399812, 0.0817393437, -0.1946602911, 0.2731689513, 0.0354822725, 0.4447305202, -0.0881807953, 0.2025938928, 0.6118386984, 0.0197394285, -0.0029398229, 0.1617920399, 0.1720683426, 0.1941984892, 0.4270905256, -0.1792922616, -0.0874076933, -0.0603709556, 0.1699083596, -0.1782530248, -0.4733141363, 0.1432804465, -0.1597066075, -0.2988282144, -0.0670226589, 0.0496745259, 0.2803224921, -0.2598401308, 0.0749866813, -0.10565532, 0.1608565897, -0.092289798, -0.1408545971, 0.0897712633, -0.0730974227, -0.1290260851, -0.0425561816, 0.1132714599, 0.0838867798, 0.2775803208, 0.263050735, -0.0881880298, -0.2006155998, 0.1970885843, 0.22083655, -0.0557488538, -0.1138674766, 0.1557369977, 0.3445364833, 0.1739408821, -0.1311293691, 0.1761197299, 0.6315094829, 0.3470622301, 0.0025092959, 0.2030487657, -0.1124483421, -0.1424656957, -0.0864447281, 0.0251591522, -0.0924742445, 0.2070284188, 0.3563939333, 0.3213755488, -0.1901990175, 0.333912909, -0.0463941135, -0.1453462392, -0.1938876063, 0.3707819283, 0.0753012002, -0.2841671407, -0.125421226, 0.0150402952, -0.4021416306, 0.0693430603, 0.4656215012, 0.0106838588, 0.2924721837, 0.0018877983, 0.109443821, -0.0905617997, 0.4269731939, 0.1445116401, 0.3763493598, -0.4452265501, 0.0112876194, -0.5027253628, 0.1829469353, -0.0391798057, 0.0534202866, -0.0442362502, 0.170168981, 0.0105170524, 0.2027028948, -0.1474989802, -0.0566703007, 0.0178524945, 0.1256340146, 0.0269398298, -0.1631550789, -0.2020687312, 0.0583004691, -0.0021002658, -0.3904865384, 0.217480883, 0.0210842788, 0.140579626, -0.2631099224, -0.0637241974, 0.1954774112, 0.1273901165, 0.3907394111, 0.1600237787, 0.6441078186, -0.1056481004, 0.0829368532, -0.0683099031, -0.2543077469, 0.0151442913, 0.1953171641, 0.2678673267, 0.2144360989, -0.0889865085, -0.3141355813, -0.4714728296, 0.3997182846, -0.0541134365, -0.0857380182, -0.0444329008, -0.1015133411, -0.0295404978, 0.0428919569, 0.0381942205, -0.0330935642, 0.0117345927, 0.2108484507, -0.1760048419, -0.4096622765, 0.4183121622, -0.2643620968, -0.2504858375, -0.1710996777, 0.2781779468, -0.0463292412, 0.289378494, -0.2773316205, 0.2958230078, 0.4524031281, -0.2110677212, -0.2147775441, 0.2234393209, 0.0190695263, 0.2123968005, -0.0396619216, 0.4695009887, 0.1008591875, -0.242797181, -0.1551300734, -0.2195902616 ]