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/3859
Unable to dowload big_patent (FileNotFoundError)
Hi @slvcsl, thanks for reporting. Yesterday we just made a patch release of our `datasets` library that fixes this issue: version 1.18.4. https://pypi.org/project/datasets/#history Please, feel free to update `datasets` library to the latest version: ```shell pip install -U datasets ``` And then you should force redownload of the data file to update your local cache: ```python ds = load_dataset("big_patent", "g", split="validation", download_mode="force_redownload") ``` - Note that before the fix, you just downloaded and cached the Google Drive virus scan warning page, instead of the data file This issue was already reported - #3784 and its root cause is a change in the Google Drive service. See: - #3786 We already fixed it. See: - #3787
## Describe the bug I am trying to download some splits of the big_patent dataset, using the following code: `ds = load_dataset("big_patent", "g", split="validation", download_mode="force_redownload") ` However, this leads to a FileNotFoundError. FileNotFoundError Traceback (most recent call last) [<ipython-input-3-8d8a745706a9>](https://localhost:8080/#) in <module>() 1 from datasets import load_dataset ----> 2 ds = load_dataset("big_patent", "g", split="validation", download_mode="force_redownload") 8 frames [/usr/local/lib/python3.7/dist-packages/datasets/load.py](https://localhost:8080/#) in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1705 ignore_verifications=ignore_verifications, 1706 try_from_hf_gcs=try_from_hf_gcs, -> 1707 use_auth_token=use_auth_token, 1708 ) 1709 [/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs) 593 if not downloaded_from_gcs: 594 self._download_and_prepare( --> 595 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 596 ) 597 # Sync info [/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 659 split_dict = SplitDict(dataset_name=self.name) 660 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 661 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 662 663 # Checksums verification [/root/.cache/huggingface/modules/datasets_modules/datasets/big_patent/bdefa7c0b39fba8bba1c6331b70b738e30d63c8ad4567f983ce315a5fef6131c/big_patent.py](https://localhost:8080/#) in _split_generators(self, dl_manager) 123 split_types = ["train", "val", "test"] 124 extract_paths = dl_manager.extract( --> 125 {k: os.path.join(dl_path, "bigPatentData", k + ".tar.gz") for k in split_types} 126 ) 127 extract_paths = {k: os.path.join(extract_paths[k], k) for k in split_types} [/usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py](https://localhost:8080/#) in extract(self, path_or_paths, num_proc) 282 download_config.extract_compressed_file = True 283 extracted_paths = map_nested( --> 284 partial(cached_path, download_config=download_config), path_or_paths, num_proc=num_proc, disable_tqdm=False 285 ) 286 path_or_paths = NestedDataStructure(path_or_paths) [/usr/local/lib/python3.7/dist-packages/datasets/utils/py_utils.py](https://localhost:8080/#) in map_nested(function, data_struct, dict_only, map_list, map_tuple, map_numpy, num_proc, types, disable_tqdm) 260 mapped = [ 261 _single_map_nested((function, obj, types, None, True)) --> 262 for obj in utils.tqdm(iterable, disable=disable_tqdm) 263 ] 264 else: [/usr/local/lib/python3.7/dist-packages/datasets/utils/py_utils.py](https://localhost:8080/#) in <listcomp>(.0) 260 mapped = [ 261 _single_map_nested((function, obj, types, None, True)) --> 262 for obj in utils.tqdm(iterable, disable=disable_tqdm) 263 ] 264 else: [/usr/local/lib/python3.7/dist-packages/datasets/utils/py_utils.py](https://localhost:8080/#) in _single_map_nested(args) 194 # Singleton first to spare some computation 195 if not isinstance(data_struct, dict) and not isinstance(data_struct, types): --> 196 return function(data_struct) 197 198 # Reduce logging to keep things readable in multiprocessing with tqdm [/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py](https://localhost:8080/#) in cached_path(url_or_filename, download_config, **download_kwargs) 314 elif is_local_path(url_or_filename): 315 # File, but it doesn't exist. --> 316 raise FileNotFoundError(f"Local file {url_or_filename} doesn't exist") 317 else: 318 # Something unknown FileNotFoundError: Local file /root/.cache/huggingface/datasets/downloads/extracted/ad068abb3e11f9f2f5440b62e37eb2b03ee515df9de1637c55cd1793b68668b2/bigPatentData/train.tar.gz doesn't exist I have tried this in a number of machines, including on Colab, so I think this is not environment dependent. How do I load the bigPatent dataset?
115
Unable to dowload big_patent (FileNotFoundError) ## Describe the bug I am trying to download some splits of the big_patent dataset, using the following code: `ds = load_dataset("big_patent", "g", split="validation", download_mode="force_redownload") ` However, this leads to a FileNotFoundError. FileNotFoundError Traceback (most recent call last) [<ipython-input-3-8d8a745706a9>](https://localhost:8080/#) in <module>() 1 from datasets import load_dataset ----> 2 ds = load_dataset("big_patent", "g", split="validation", download_mode="force_redownload") 8 frames [/usr/local/lib/python3.7/dist-packages/datasets/load.py](https://localhost:8080/#) in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1705 ignore_verifications=ignore_verifications, 1706 try_from_hf_gcs=try_from_hf_gcs, -> 1707 use_auth_token=use_auth_token, 1708 ) 1709 [/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs) 593 if not downloaded_from_gcs: 594 self._download_and_prepare( --> 595 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 596 ) 597 # Sync info [/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 659 split_dict = SplitDict(dataset_name=self.name) 660 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 661 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 662 663 # Checksums verification [/root/.cache/huggingface/modules/datasets_modules/datasets/big_patent/bdefa7c0b39fba8bba1c6331b70b738e30d63c8ad4567f983ce315a5fef6131c/big_patent.py](https://localhost:8080/#) in _split_generators(self, dl_manager) 123 split_types = ["train", "val", "test"] 124 extract_paths = dl_manager.extract( --> 125 {k: os.path.join(dl_path, "bigPatentData", k + ".tar.gz") for k in split_types} 126 ) 127 extract_paths = {k: os.path.join(extract_paths[k], k) for k in split_types} [/usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py](https://localhost:8080/#) in extract(self, path_or_paths, num_proc) 282 download_config.extract_compressed_file = True 283 extracted_paths = map_nested( --> 284 partial(cached_path, download_config=download_config), path_or_paths, num_proc=num_proc, disable_tqdm=False 285 ) 286 path_or_paths = NestedDataStructure(path_or_paths) [/usr/local/lib/python3.7/dist-packages/datasets/utils/py_utils.py](https://localhost:8080/#) in map_nested(function, data_struct, dict_only, map_list, map_tuple, map_numpy, num_proc, types, disable_tqdm) 260 mapped = [ 261 _single_map_nested((function, obj, types, None, True)) --> 262 for obj in utils.tqdm(iterable, disable=disable_tqdm) 263 ] 264 else: [/usr/local/lib/python3.7/dist-packages/datasets/utils/py_utils.py](https://localhost:8080/#) in <listcomp>(.0) 260 mapped = [ 261 _single_map_nested((function, obj, types, None, True)) --> 262 for obj in utils.tqdm(iterable, disable=disable_tqdm) 263 ] 264 else: [/usr/local/lib/python3.7/dist-packages/datasets/utils/py_utils.py](https://localhost:8080/#) in _single_map_nested(args) 194 # Singleton first to spare some computation 195 if not isinstance(data_struct, dict) and not isinstance(data_struct, types): --> 196 return function(data_struct) 197 198 # Reduce logging to keep things readable in multiprocessing with tqdm [/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py](https://localhost:8080/#) in cached_path(url_or_filename, download_config, **download_kwargs) 314 elif is_local_path(url_or_filename): 315 # File, but it doesn't exist. --> 316 raise FileNotFoundError(f"Local file {url_or_filename} doesn't exist") 317 else: 318 # Something unknown FileNotFoundError: Local file /root/.cache/huggingface/datasets/downloads/extracted/ad068abb3e11f9f2f5440b62e37eb2b03ee515df9de1637c55cd1793b68668b2/bigPatentData/train.tar.gz doesn't exist I have tried this in a number of machines, including on Colab, so I think this is not environment dependent. How do I load the bigPatent dataset? Hi @slvcsl, thanks for reporting. Yesterday we just made a patch release of our `datasets` library that fixes this issue: version 1.18.4. https://pypi.org/project/datasets/#history Please, feel free to update `datasets` library to the latest version: ```shell pip install -U datasets ``` And then you should force redownload of the data file to update your local cache: ```python ds = load_dataset("big_patent", "g", split="validation", download_mode="force_redownload") ``` - Note that before the fix, you just downloaded and cached the Google Drive virus scan warning page, instead of the data file This issue was already reported - #3784 and its root cause is a change in the Google Drive service. See: - #3786 We already fixed it. See: - #3787
[ -0.4091825485, -0.1292832047, 0.0641916394, 0.3027555048, 0.05070775, 0.0250500049, 0.4245097637, 0.5200846791, 0.5669476986, -0.1224020794, -0.2795088589, 0.0148194069, -0.0127642527, 0.0916133448, -0.0751800314, 0.06534224, 0.0613416284, -0.0415812433, -0.1401766986, -0.043146614, -0.2341262102, -0.0094273128, -0.3754706085, 0.0199705046, -0.3191568553, -0.0413611382, 0.0359357409, 0.4875972569, -0.2835953534, -0.2160296738, 0.0137188984, -0.0293596145, 0.2486281544, 0.603482306, -0.0001201923, 0.0551010072, 0.2616556883, -0.2132635713, -0.259534657, -0.1504752338, -0.2737281322, -0.214001745, -0.2066539526, -0.2374168485, 0.2654687166, -0.1854247749, 0.0380836129, 0.1792865247, 0.4696173966, 0.4779295921, 0.1351445019, 0.0704784319, 0.5052608848, -0.1460420042, 0.2778169513, 0.2340729088, -0.0392964035, 0.5964194536, 0.0267846771, -0.337341696, -0.0509655252, -0.0065451986, -0.2900052965, 0.2355875522, -0.0173308458, -0.1013256982, 0.2768407464, -0.3299665749, 0.1384089738, 0.4528536797, 0.5327073932, -0.0600528866, -0.6008581519, -0.2592023015, 0.0256018788, -0.3486128151, 0.03053464, 0.2735144198, 0.0223324466, 0.2354883254, 0.1359474361, -0.24455446, -0.2913021147, 0.3732181787, -0.1237058416, 0.0209259987, 0.0429967828, 0.1073800549, 0.1656523794, -0.1842276156, -0.1939635277, -0.3074907064, -0.0628075302, 0.2198660523, -0.1339339912, 0.0524532758, -0.1154085174, -0.0825942531, 0.3151224852, 0.2169742286, -0.2467384189, -0.1309850216, -0.1812480092, 0.2069277465, 0.1207947135, 0.0336328708, -0.3945745528, 0.3995690644, 0.2863135636, 0.3219994307, -0.0748620555, 0.0266314112, -0.2607178986, -0.1054742262, -0.0979408473, -0.1373790801, 0.4678807259, -0.3414127231, -0.5968268514, 0.0451994538, -0.192193076, 0.0483125038, 0.1072946191, 0.4143809974, -0.0856443867, 0.0053789015, 0.0535780005, 0.3188657761, -0.2572724521, -0.3009150922, -0.1710015535, 0.247524187, 0.0077775223, 0.1388888359, 0.2664311826, 0.0240996517, 0.2782332301, 0.1894694716, 0.1565978825, -0.1333762705, -0.0742270201, -0.2887805998, -0.0693864971, 0.2640542984, -0.2073404491, 0.037985824, 0.2896007597, -0.2783629596, -0.0089601073, 0.1603810489, -0.2918481529, -0.2281507105, -0.2985988855, 0.0788243189, -0.2424507439, -0.0249240473, -0.2207388431, -0.0982772037, 0.0331915133, -0.3251569271, -0.0567546636, -0.365018487, 0.1843101531, -0.2356098592, 0.3637365401, 0.8700807095, -0.2324902117, -0.0196759664, -0.2919608951, -0.0501323976, 0.2321968824, 0.2079775929, -0.1641837955, 0.3228212595, -0.3976638913, 0.3388167322, 0.4060255587, -0.2040108144, -0.5110817552, 0.3289368749, -0.2311329246, 0.1765935272, 0.1349511296, -0.0154952714, 0.0687570199, 0.0104079684, 0.1246434003, 0.1675487459, 0.0009073088, -0.0238646343, -0.2583714128, -0.0385769121, 0.0956359208, 0.3422561884, 0.211399287, 0.0786464438, 0.2594872415, 0.4955156744, 0.3740905225, 0.0183875374, -0.1567449272, 0.0349295512, 0.3869694471, -0.0534997471, -0.1552724838, 0.0199002195, -0.5996233821, 0.2576729953, 0.1118998304, -0.3872243464, -0.030077843, -0.0075470279, -0.4902512133, -0.0640059859, -0.145394519, -0.1770271063, 0.0224799979, 0.0746539235, -0.0265636574, 0.1115933508, -0.1526046991, 0.3674175143, -0.1382845193, 0.1648508906, -0.1279364973, 0.3071939051, -0.0606178902, -0.229027167, 0.0218776204, 0.0058752312, 0.2637383938, -0.1932837665, -0.1099574044, 0.4018700421, 0.2393092662, 0.0281050652, -0.1332049817, -0.1455855072, 0.0883469507, -0.1336885691, 0.0752394199, 0.177239731, 0.2610961497, -0.0580783971, -0.1492530555, 0.3264081776, -0.1951554716, -0.0198762994, 0.0354763567, -0.0628736243, 0.0730271861, -0.2696021199, 0.2078699619, 0.0429663993, 0.3570938706, -0.0402186699, 0.2261997163, -0.1291313618, -0.2225353569, -0.0972056687, 0.2666195631, -0.1458923072, 0.0193986967, -0.0539979786, -0.1401428729, 0.0941376984, 0.0535322279, 0.0145849949, 0.657513082, 0.2154115289, -0.0577310473, 0.0209791791, 0.0823843628, -0.0876984745, 0.137850821, -0.0457612053, -0.0402518921, 0.4476932883, -0.0883673206, -0.0515867695, -0.2009406239, -0.2694194913, 0.283034116, 0.2885847986, -0.4013617635, 0.0650153086, -0.1510310322, -0.2083302587, -0.3740309775, 0.0450837873, -0.2326256186, -0.1690226495, -0.0820315033, 0.7632659674, -0.0248103961, 0.0852656662, -0.5080834627, -0.1252525002, -0.0192492325, -0.3770833313, 0.0247391965, 0.0945356712, -0.1208665147, -0.0234607831, 0.6280724406, -0.0720213652, 0.2613170147, 0.0473837443, -0.313811183, -0.2874830961, -0.1798259765, -0.0497192405, -0.0602323748, 0.0475256406, -0.050034456, 0.3015686572, 0.0314892456, -0.1631525904, 0.0544026718, -0.0482764132, -0.1176693439, 0.150792256, 0.0688047335, -0.0072458088, -0.1257644594, -0.4579570591, -0.1746124327, -0.4959090352, 0.2271835655, -0.047202792, -0.0756598189, 0.3116774261, 0.0807999223, 0.1911514848, 0.0599821694, -0.1610512435, -0.1228991896, -0.0184178911, 0.4568367302, -0.0718974173, -0.3762807846, 0.0712369159, -0.0336585045, -0.187562272, 0.1320787519, -0.4595250189, 0.1287804097, -0.0200915411, 0.1116201207, -0.2168243527, -0.1008232012, -0.0556271411, -0.3724870384, 0.0406760052, -0.1610456407, 0.1132130846, 0.0172007997, 0.0557200536, 0.4068449438, -0.2759094238, 0.1531563699, -0.1554619968, 0.6540620923, 0.1337970346, 0.0919127762, 0.3521005809, -0.0494316034, 0.2751889527, -0.0833332315, -0.4030640423, 0.1896348447, -0.0349006169, 0.0443785973, 0.0906520635, -0.1939991415, -0.0292291157, -0.2080995291, 0.0965757445, -0.2651356757, -0.2322312593, 0.0663484856, 0.1272189468, -0.200635463, -0.012377535, -0.0481132977, -0.0378727131, -0.0691654831, -0.0197302364, 0.2349217981, 0.3519773781, 0.0838270932, 0.1180618107, 0.0514926612, -0.0280963127, 0.3870130777, 0.1674142927, 0.1231768429, -0.1376189888, -0.2397527695, -0.1285819262, 0.0324386097, 0.5007886291, 0.2897797227, 0.2264427841, 0.1599841863, -0.0381908566, -0.2014167011, -0.3371148407, -0.1525437087, 0.2364079207, 0.4381754398, 0.3192873299, -0.6061546803, 0.0526363365, 0.3666878343, 0.3858215511, -0.0612662882, -0.0657170042, -0.3182859421, -0.2146177888, -0.3441039324, 0.0489378609, 0.2040133774, 0.2225120068, -0.194509536, 0.2667382956, -0.0702153966, -0.0715143532, 0.1167595163, 0.0738162324, 0.3409551978, -0.1431185603, 0.1971459538, 0.070540376, 0.2000092864, 0.4856925309, 0.7066227794, 0.2285732627, -0.4165492356, 0.0027687261, -0.0668864846, 0.0691377595, 0.188899368, -0.0392188132, -0.0199808851, 0.0229948126, 0.0875514671, -0.0117950486, 0.4727962017, 0.2985712886, -0.2992549837, -0.5572169423, -0.1439421624, 0.54394418, -0.0234213732, 0.125944078, 0.4857422411, -0.064402543, 0.0079779914, -0.2179349363, -0.4287042022, 0.7606574893, 0.0902916715, 0.0752656981, 0.3389264345, 0.0916223601, 0.3353475928, 0.0610055961, 0.1210416183, -0.480702877, -0.3087188303, -0.0165087357, -0.1885163933, 0.1440835446, -0.0090121534, -0.1056749746, 0.2900255919, 0.0795862228, 0.4075269401, 0.017490752, 0.3079220653, -0.0126814917, 0.079319708, -0.0377980135, 0.0349467434, -0.1704009026, 0.4314507246, -0.1142549291, -0.2552019954, -0.3196439147, -0.2271196246, -0.4247083962, 0.2191266268, -0.2514092028, 0.4448444843, -0.2462120056, -0.2559393346, 0.0056701391, 0.0550896376, -0.2922356725, 0.0519868284, -0.2909492254, -0.059684433, -0.0266047735, -0.3188530803, -0.1353701502, 0.0329923667, 0.4690898061, -0.0535918511, -0.2266776562, 0.0118558137, -0.0600610003, -0.0450408161, -0.0511355847, -0.0038013551, 0.4179206491, -0.2919319868, -0.2741336823, -0.0151022486, 0.0084050149, -0.2206725329, 0.0702665672, 0.0999122262, -0.2345097363, -0.1278669983, -0.0254779682, -0.3049142659, -0.1626634896, 0.4772154391, -0.2732428014, 0.0586068034, 0.6978308558, 0.0172134582, -0.0814022794, -0.1932363063, 0.1876760423, -0.0808811039, -0.6468716264, 0.243096754, -0.0114666158, 0.2689118981, 0.0331854895, 0.0035438032, 0.2039286196, -0.2327014506, 0.2041854858, -0.4186709225, -0.2099288404, 0.1457989216, -0.3365137577, 0.1035340428, -0.0816310719, 0.1136323735, -0.1120754704, -0.0639370456, -0.2087587863, 0.2583914101, -0.0040648016, 0.0677366108, 0.2260119468, 0.0885087177, 0.0171749983, 0.0702241585, 0.1500696689, 0.1503932029, 0.0910995379, -0.1818830818, -0.2807853222, 0.2066283822, 0.0624380335, -0.1703761816, -0.0894889385, -0.2318223566, -0.0996450782, 0.0392895713, 0.1388851255, 0.0763379261, -0.1107797623, -0.0898851305, 0.3976711631, 0.1290764511, -0.2443735451, 0.255690217, -0.0246118885, 0.1549166739, 0.1065363288, 0.3201919198, -0.0060838419, 0.1128970534, -0.4808989465, -0.2955361605, -0.0252210144, 0.0438191555, 0.3522742689, -0.3084930182, 0.043212235, -0.1653209478, 0.1641305834, 0.589892149, -0.0902510807, 0.1693102121, 0.2562437057, 0.1217815652, -0.3342182636, 0.1251789033, 0.4703326523, -0.1191210523, -0.0628930107, 0.2860033512, -0.2642383873, -0.0459233113, -0.3846161366, 0.1252936125, 0.146385625, 0.4047595561, 0.2227373421, 0.673066318, -0.0743496045, 0.09998703, 0.0862434953, 0.1144193783, 0.2258373946, 0.2872683704, -0.241972059, 0.2153084576, -0.4416086376, -0.052501224, -0.0622601509, -0.4173590839, -0.1680723429, 0.280646801, 0.0005308661, 0.2518238127, -0.0528741702, 0.0587469339, -0.2609185576, 0.0841030255, -0.3154228628, 0.1401170492, -0.0849731937, 0.1946812868, 0.2024392188, -0.2534847856, -0.1226341799, 0.0979030654, 0.0196568966, -0.0939465389, 0.3076058924, 0.3914308548, -0.1800815016, -0.177351281, -0.0838533267, 0.2662939727, 0.1714111418, -0.3743222058, -0.1539304405, 0.3410145938, 0.0167859737, 0.164171055, 0.2433841377, 0.5462844372, 0.2004110962, -0.0471727923, -0.2770188451, 0.1933910549, -0.0548846014, 0.0718444213, 0.2540054619, -0.0929809809, 0.1452862173, 0.3697997034, 0.1148469001, -0.0894099697, 0.1551766098, -0.0443279259, -0.2723459601, -0.2445476204, 0.4337373376, -0.2144318968, -0.171417132, -0.2841047347, -0.1090559885, -0.1113755256, -0.0425553136, 0.113261342, 0.2449121028, 0.1874566525, 0.214986667, 0.0257880352, -0.1970807314, 0.2552447617, 0.4278044701, 0.2332089096, -0.4791114926, 0.1526779681, -0.6359619498, 0.3168684542, -0.2822245061, -0.2014020532, 0.057392437, 0.1024048403, -0.0696372986, 0.0881698504, 0.1004535109, -0.0715971813, 0.258321166, 0.4126783013, -0.1648930758, -0.2908270061, 0.1203878149, -0.087950401, -0.0287506413, -0.5476186872, 0.1933708042, -0.1702263355, -0.0065289624, 0.0182344336, -0.1063272506, 0.0829266384, 0.1531960219, 0.165227443, -0.0252441149, 0.6471037865, -0.0460343845, -0.2587555647, -0.2895871401, -0.2135876268, -0.2427742034, 0.3153783679, -0.0413980298, 0.4714622498, -0.0451923981, -0.0682638884, -0.3436167538, 0.4675621092, -0.1277734488, -0.3384523988, -0.1654577255, -0.1608451456, -0.2453275323, 0.0765927956, 0.115766421, 0.0845867693, -0.3221304417, 0.1844509095, -0.3236852288, -0.2910566628, 0.5969914794, -0.4241381884, -0.1514680535, -0.0172174573, 0.3910256326, 0.223574847, 0.053124927, -0.5479189754, 0.3672341704, 0.4208167791, -0.0044460273, -0.2462801337, 0.1780877411, -0.0819648504, 0.0725514293, 0.0662510023, 0.6902759075, -0.0350962579, -0.450917542, 0.3813480735, -0.0347748436 ]
https://github.com/huggingface/datasets/issues/3857
Order of dataset changes due to glob.glob.
I agree using `glob.glob` alone is bad practice because it's not deterministic. Using `sorted` is a nice solution. Note that the `xglob` function you are referring to in the `streaming_download_manager.py` code just extends `glob.glob` for URLs - we don't change its behavior. That's why it has no `sorted()`
## Describe the bug After discussion with @lhoestq, just want to mention here that `glob.glob(...)` should always be used in combination with `sorted(...)` to make sure the list of files returned by `glob.glob(...)` doesn't change depending on the OS system. There are currently multiple datasets that use `glob.glob()` without making use of `sorted(...)` even the streaming download manager (if I'm not mistaken): https://github.com/huggingface/datasets/blob/c14bfeb4af89da14f870de5ddaa584b08aa08eeb/src/datasets/utils/streaming_download_manager.py#L483
48
Order of dataset changes due to glob.glob. ## Describe the bug After discussion with @lhoestq, just want to mention here that `glob.glob(...)` should always be used in combination with `sorted(...)` to make sure the list of files returned by `glob.glob(...)` doesn't change depending on the OS system. There are currently multiple datasets that use `glob.glob()` without making use of `sorted(...)` even the streaming download manager (if I'm not mistaken): https://github.com/huggingface/datasets/blob/c14bfeb4af89da14f870de5ddaa584b08aa08eeb/src/datasets/utils/streaming_download_manager.py#L483 I agree using `glob.glob` alone is bad practice because it's not deterministic. Using `sorted` is a nice solution. Note that the `xglob` function you are referring to in the `streaming_download_manager.py` code just extends `glob.glob` for URLs - we don't change its behavior. That's why it has no `sorted()`
[ -0.0024274425, -0.301030159, -0.1189568639, 0.1030937284, 0.189602375, -0.3035665154, 0.2473371625, -0.0992215946, 0.0932720304, 0.1500161737, -0.2698247135, -0.0234251171, 0.0356517807, 0.0828588158, 0.2031215429, 0.0783792064, 0.0705652609, 0.1712586135, -0.299810499, -0.1218605191, -0.3105970025, 0.1200749502, -0.2167547643, -0.1790891588, 0.1936580837, 0.0462515615, 0.0056762341, 0.4292047024, -0.3670849502, -0.3727454543, -0.2406712621, 0.3489484191, -0.1243044659, 0.3379710019, -0.0001028676, -0.0836568922, 0.0129357716, 0.0437236987, -0.2008921653, -0.1882358789, -0.267573297, 0.0309008509, -0.3639107347, 0.0612705424, -0.0470195822, -0.2557660639, 0.2195431143, -0.1893503964, 0.1566293985, 0.2675420642, 0.278501451, 0.2961477935, -0.0796051845, 0.0887377635, 0.5229851604, 0.06108208, 0.0155707505, 0.2282910049, 0.2922357321, 0.2993183136, -0.1464321315, 0.3273724616, -0.1182059124, -0.1036073789, 0.3218752742, 0.1478436738, -0.0689928383, -0.1347203106, -0.0509927534, 0.1240312532, 0.2547139525, -0.2356268317, -0.4690510333, -0.3165687621, 0.137779966, -0.3013276458, 0.3187338412, 0.2627426982, 0.2551268637, 0.0883730054, -0.073943086, 0.1611151844, 0.0332606398, 0.140534386, -0.1492060572, 0.3905845881, -0.1503964067, 0.0256066117, 0.1347733885, 0.2214225978, 0.1216891184, -0.2728052437, -0.2020945996, 0.1126960218, -0.1821845621, 0.0207657199, 0.358222425, 0.4128101468, 0.1720549762, 0.259059608, 0.1746276021, 0.0661372393, -0.1738146693, 0.0104106981, 0.0517027751, 0.4639855921, -0.0684361085, -0.1004231051, 0.3889587224, 0.1797581315, -0.0400285982, -0.0226430763, 0.0884359702, -0.102207005, -0.0471558049, 0.1146286651, 0.1994627267, 0.0146949673, -0.3034144044, -0.2451730818, 0.0994825512, 0.047768347, 0.1536651552, 0.3183908761, -0.2500184178, -0.0487566814, -0.0745518878, 0.0934791788, 0.0875721201, 0.1235523596, -0.151899904, -0.4035427868, -0.2463519424, 0.1749239266, -0.2220126837, -0.2110081613, 0.1326165199, 0.2444172502, 0.07027594, 0.0103144003, 0.1028048247, -0.1256767958, 0.3048267663, 0.1124759093, 0.1229910851, 0.2755412459, -0.1385655999, 0.1838987321, -0.2070233673, 0.1691889763, -0.2881224751, -0.4120264053, -0.0075717759, 0.3168486059, -0.0576015785, 0.0765498355, -0.0777205452, -0.0958044231, -0.0347949564, -0.327360481, 0.0196030233, 0.0103110177, -0.0047813198, -0.3278031945, -0.3227263987, 0.0834187195, 0.0223263688, -0.075173609, -0.128121227, 0.0111903176, 0.1748986691, 0.0627154559, -0.1809511781, -0.1822584867, -0.2679777443, 0.1382228583, 0.1291261166, -0.090740338, -0.4851561785, 0.1564986557, -0.4327243865, 0.2601542473, 0.1484548599, 0.3623433113, 0.2795419991, -0.3786311746, -0.0974711701, 0.3717968464, 0.2893097699, 0.3647040129, -0.0786835328, -0.0308477581, -0.1979813576, -0.1440264136, -0.3000485599, 0.1229889914, 0.0626473948, -0.0461141877, 0.4065992534, -0.1503685564, -0.2401469499, 0.2809963524, 0.3790041208, 0.0950817093, 0.155397743, -0.0216884632, -0.2432285249, 0.1683489084, -0.166013211, -0.007995192, -0.1071992815, -0.4073871672, -0.0592593513, -0.1089070514, -0.1852241606, 0.0675230101, 0.2202923, 0.5063841939, 0.0763627067, -0.0068673748, -0.0118610365, 0.3149935901, -0.1914529353, -0.0448613316, -0.1096453741, 0.2080721706, -0.0834468678, 0.043035917, 0.1640174091, -0.1757764071, 0.0531348065, -0.0956592038, -0.006009147, 0.6248888969, -0.0242802445, 0.1941625476, 0.0353239216, 0.0052552577, 0.1998542845, 0.1118407175, 0.060640689, 0.4743306637, -0.0193699151, 0.0421429425, 0.0021493891, 0.4418457747, 0.2055891305, 0.0862617642, 0.2136338949, -0.176194787, -0.0095713986, 0.1628030837, -0.1055847332, -0.1557446122, 0.2065425664, 0.2277877182, 0.281470716, 0.3179133236, -0.419325918, 0.448294431, 0.8029444218, -0.1979242265, 0.0793856382, 0.0538403839, -0.1178062186, -0.1224347129, 0.0804279074, 0.2647714019, 0.442391932, 0.3253395557, 0.24105075, -0.0520504601, 0.0442067645, -0.2454230636, 0.0843541473, -0.1077440456, -0.0363541655, 0.223723039, 0.2957611978, -0.028025642, -0.3833036423, -0.1459733844, 0.0136875249, -0.1301030517, -0.1974381506, -0.0436575636, -0.1695071608, -0.4777669311, -0.210920915, -0.3267467916, -0.4300372899, -0.2189387381, 0.1909625232, 0.1763304323, -0.2032735497, 0.179431662, 0.1448530108, 0.0881595984, 0.0879817978, -0.2213974446, -0.0608765706, 0.2938152552, -0.1002668664, 0.1316283792, 0.0418624468, -0.122273609, 0.3301095963, -0.2791303396, -0.2254785001, -0.321890831, -0.3011364043, -0.0547816195, -0.0526596271, -0.0332730934, 0.010723236, -0.0073153856, 0.0679560751, -0.0380983055, 0.0550053455, -0.1560003757, -0.2122109681, 0.0492784232, 0.0231343526, -0.0033005259, -0.2606786191, -0.2389445901, -0.1619477868, -0.3508423269, 0.0156305209, 0.2190366685, 0.3876530528, 0.0268468168, -0.2463219762, -0.2387198657, -0.0084380135, -0.0622386225, -0.2017621696, -0.6392979026, 0.3490802646, -0.2072497308, -0.2601876557, -0.3183811009, 0.0293977354, -0.2741600573, 0.3428642154, -0.2702058554, -0.3590189517, -0.1124825552, -0.0989149883, 0.1192994639, 0.0314327292, 0.1563120186, -0.1822870076, -0.1636269987, -0.2674308717, 0.0840183869, 0.0514324121, 0.3413745463, 0.3002269268, 0.0775545985, -0.0430577174, 0.1819957942, 0.4467037916, -0.0830397084, 0.072739847, 0.196903497, -0.0603740104, 0.435490042, -0.2315900624, 0.0404545143, 0.0751068145, 0.0507267974, -0.0042312257, 0.3692602813, 0.2569881678, 0.1324193925, 0.0274837427, 0.2507791221, -0.2625424564, -0.0766763464, 0.0706393197, 0.2742734551, -0.0985114276, 0.120242849, 0.110758774, -0.1795926839, -0.0466937497, -0.0650612414, 0.1894299537, 0.150526762, 0.1336526126, -0.2575981915, 0.0603168644, -0.3704693913, 0.0940119326, 0.0815527216, -0.2161656469, 0.2164298445, -0.099370718, 0.1462654471, -0.2411306798, 0.3231789768, 0.1509497017, 0.0870841891, 0.077363193, -0.0547046214, -0.2120418996, -0.0219466183, -0.2557333708, 0.0478468463, 0.3341156244, 0.3253519535, -0.3748987019, 0.0061270287, 0.0128718726, 0.0388903953, 0.0138443951, -0.2462496012, -0.429764092, -0.2578346729, -0.1391885728, -0.1824835092, 0.0572406612, -0.0330236331, -0.4967912436, -0.3156484067, 0.0920173153, -0.0955619514, -0.0214817487, -0.1587200612, 0.3728758097, 0.0607622489, -0.1725677252, 0.1470993757, 0.3546220958, 0.1442223787, 0.4466129243, 0.135476619, -0.1565392017, -0.1063828841, -0.0641837344, -0.3432437479, 0.435870409, -0.1211390495, 0.1666135341, -0.013140019, 0.213762641, 0.0136116492, 0.3261497617, 0.5075035095, -0.2027546018, -0.4569189548, -0.5482821465, 0.5241415501, -0.0307316892, -0.3707564473, 0.750521481, 0.1732872277, -0.3041699827, -0.1522516012, 0.1313397735, 0.8963181973, -0.0721313357, 0.2147880495, 0.4553847015, -0.147638157, 0.0875792205, 0.0040269447, 0.4842109084, -0.4652155042, -0.5597553253, -0.0577036105, -0.2084476352, 0.0013104917, 0.1299332529, -0.1357848644, 0.1867428422, -0.1237758398, 0.5899825692, -0.1732495278, 0.1407228112, -0.423306495, -0.0417974368, -0.4112014472, 0.2171630561, 0.1621753871, 0.1256880313, -0.1778332591, -0.0518139713, 0.0903047845, -0.0037432718, 0.2410887331, 0.0548420511, -0.4907462895, -0.0102416258, -0.4181430936, -0.1585538834, -0.5950086713, 0.4116539657, -0.3726299107, 0.0159267839, 0.1052969098, 0.246789366, -0.0130658494, 0.3487104177, 0.1267463267, -0.1748175621, 0.1230383292, -0.0378870368, 0.024661446, -0.0991223603, 0.1505829543, -0.3417862058, -0.1904938519, 0.0337754041, -0.1967231929, 0.096463576, -0.0546975695, 0.3214527965, 0.0043295706, -0.2423404008, 0.213583082, -0.1540841609, -0.0594085194, 0.254973352, -0.4908886552, -0.2084738165, -0.4209689498, 0.445656091, 0.1594097018, 0.1445775628, -0.0466729291, -0.0833962485, -0.1441116631, -0.188047722, 0.1056266278, -0.1710221618, -0.0340013355, 0.2940580249, -0.1712374538, 0.0026608966, 0.0388587564, 0.0057624248, 0.0303213242, 0.2075460404, -0.2040423006, -0.1792472601, 0.0444188826, -0.0756943226, 0.1666012257, 0.0899125859, -0.1394243687, 0.0863194913, 0.0356839411, -0.1955132484, -0.4659949541, -0.0338977911, 0.0074600438, 0.1174134761, -0.1537870169, 0.2151434124, 0.2701052427, 0.0136870369, 0.2176585943, -0.015349159, -0.2250993401, -0.2965519428, 0.0379951559, 0.0484704822, 0.0169139076, -0.144995451, 0.1088509485, -0.3445145786, -0.0939099565, -0.295114547, 0.4283055365, 0.3212814331, 0.0756804496, -0.2649563849, 0.1050119847, 0.0150512299, 0.3083600998, 0.2164160311, -0.2287749499, -0.1000902057, 0.048527766, 0.1630022824, -0.0895416066, -0.0252941083, 0.0792276338, -0.0044529694, 0.1289119422, 0.253633678, 0.3791437447, -0.2392129004, -0.0067662722, 0.0567246713, 0.7166467309, 0.2968596518, -0.0271015819, -0.3560655713, -0.1223229542, 0.3013506532, -0.1498748958, -0.2564658225, -0.0686640665, 0.093547754, 0.0509169735, 0.0001418619, 0.1822244823, 0.1142294481, 0.1101902202, 0.0560949259, 0.299511224, 0.2272103727, 0.2863490283, 0.2778950036, 0.1799727529, 0.2420514971, 0.2177454382, 0.1173479855, 0.1117526963, 0.3751762509, -0.0900226757, 0.5579402447, 0.0680624545, -0.1441592127, -0.0871140584, -0.3135462701, -0.2015250027, 0.3424679637, -0.2369422615, 0.1419619024, 0.3386412859, -0.0528840981, -0.4227003157, -0.2128975987, -0.2354311943, 0.1820298135, -0.010906795, 0.053635817, -0.1341873109, -0.1079320982, -0.02259841, 0.1086188927, -0.1341287792, -0.1373100281, 0.0420922972, -0.0141992243, -0.0401822738, -0.6556620598, 0.0380734019, -0.1299492121, 0.2120774984, -0.0796245337, 0.1658118218, 0.245692715, 0.2578008175, 0.3619740307, -0.0371064469, 0.0786475316, 0.2776384652, 0.2065362632, -0.0850621462, 0.0149398716, -0.0291297436, -0.2169300467, -0.0282982122, -0.0933528319, 0.1555701196, 0.3468998373, 0.2850205302, -0.3293026686, 0.1431117058, 0.1523528248, 0.0909039974, 0.0953783095, 0.3584013879, -0.418425262, -0.137190938, -0.1162846908, -0.0758088753, -0.3304512203, 0.0983066484, 0.1855908036, 0.0272806305, 0.1080355868, -0.1116084903, 0.128136307, 0.1820050925, 0.2342303842, 0.1487316936, 0.1277643442, -0.0996083245, -0.4332693219, -0.6277769208, 0.1942467093, 0.3197999299, -0.0271520615, -0.1595874578, 0.0829524323, -0.2422851324, -0.1731557548, 0.2793348134, -0.0169309769, 0.1034448594, 0.1140105873, -0.3996539712, -0.0120681981, -0.3299390972, 0.129657045, -0.237214148, -0.3065678775, 0.0148131922, -0.2989066839, 0.2509674132, -0.0735327154, 0.2709846199, -0.1783163399, -0.2873145044, 0.547293961, 0.1539417058, -0.0989177302, -0.2672320008, -0.0736745521, -0.0126518495, -0.1157921478, -0.3312913477, -0.164832741, -0.0388861634, 0.3658764064, -0.0061054328, -0.0754884258, -0.2507490218, 0.445977807, 0.3117549121, 0.1850536466, -0.3049626648, 0.1289455295, -0.1839639544, -0.1186645031, 0.0326353051, 0.3180516362, 0.1483586133, -0.0231154189, -0.0703338087, -0.2410948575, 0.4156309962, 0.0221150573, -0.0405076668, -0.0845736787, 0.4446986318, 0.3436288536, 0.0432807542, -0.1851127297, 0.1469048262, 0.2619409859, -0.0343152955, -0.0418081172, 0.2467021197, -0.164300248, 0.1009133086, -0.0976755694, -0.1943119913, 0.0979769379, -0.546150744, 0.2887105346, -0.1401411146 ]
https://github.com/huggingface/datasets/issues/3855
Bad error message when loading private dataset
We raise the error “ FileNotFoundError: can’t find the dataset” mainly to follow best practice in security (otherwise users could be able to guess what private repositories users/orgs may have) We can indeed reformulate this and add the "If this is a private repository,..." part !
## Describe the bug A pretty common behavior of an interaction between the Hub and datasets is the following. An organization adds a dataset in private mode and wants to load it afterward. ```python from transformers import load_dataset ds = load_dataset("NewT5/dummy_data", "dummy") ``` This command then fails with: ```bash FileNotFoundError: Couldn't find a dataset script at /home/patrick/NewT5/dummy_data/dummy_data.py or any data file in the same directory. Couldn't find 'NewT5/dummy_data' on the Hugging Face Hub either: FileNotFoundError: Dataset 'NewT5/dummy_data' doesn't exist on the Hub ``` **even though** the user has access to the website `NewT5/dummy_data` since she/he is part of the org. We need to improve the error message here similar to how @sgugger, @LysandreJik and @julien-c have done it for transformers IMO. ## Steps to reproduce the bug E.g. execute the following code to see the different error messages between `transformes` and `datasets`. 1. Transformers ```python from transformers import BertModel BertModel.from_pretrained("NewT5/dummy_model") ``` The error message is clearer here - it gives: ``` OSError: patrickvonplaten/gpt2-xl is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models' If this is a private repository, make sure to pass a token having permission to this repo with `use_auth_token` or log in with `huggingface-cli login` and pass `use_auth_token=True`. ``` Let's maybe do the same for datasets? The PR was introduced to `transformers` here: https://github.com/huggingface/transformers/pull/15261 ## Expected results Better error message ## Actual results Specify the actual results or traceback. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.4.dev0 - Platform: Linux-5.15.15-76051515-generic-x86_64-with-glibc2.34 - Python version: 3.9.7 - PyArrow version: 6.0.1
46
Bad error message when loading private dataset ## Describe the bug A pretty common behavior of an interaction between the Hub and datasets is the following. An organization adds a dataset in private mode and wants to load it afterward. ```python from transformers import load_dataset ds = load_dataset("NewT5/dummy_data", "dummy") ``` This command then fails with: ```bash FileNotFoundError: Couldn't find a dataset script at /home/patrick/NewT5/dummy_data/dummy_data.py or any data file in the same directory. Couldn't find 'NewT5/dummy_data' on the Hugging Face Hub either: FileNotFoundError: Dataset 'NewT5/dummy_data' doesn't exist on the Hub ``` **even though** the user has access to the website `NewT5/dummy_data` since she/he is part of the org. We need to improve the error message here similar to how @sgugger, @LysandreJik and @julien-c have done it for transformers IMO. ## Steps to reproduce the bug E.g. execute the following code to see the different error messages between `transformes` and `datasets`. 1. Transformers ```python from transformers import BertModel BertModel.from_pretrained("NewT5/dummy_model") ``` The error message is clearer here - it gives: ``` OSError: patrickvonplaten/gpt2-xl is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models' If this is a private repository, make sure to pass a token having permission to this repo with `use_auth_token` or log in with `huggingface-cli login` and pass `use_auth_token=True`. ``` Let's maybe do the same for datasets? The PR was introduced to `transformers` here: https://github.com/huggingface/transformers/pull/15261 ## Expected results Better error message ## Actual results Specify the actual results or traceback. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.4.dev0 - Platform: Linux-5.15.15-76051515-generic-x86_64-with-glibc2.34 - Python version: 3.9.7 - PyArrow version: 6.0.1 We raise the error “ FileNotFoundError: can’t find the dataset” mainly to follow best practice in security (otherwise users could be able to guess what private repositories users/orgs may have) We can indeed reformulate this and add the "If this is a private repository,..." part !
[ -0.1339562535, -0.027228307, 0.0709063485, 0.5178710818, 0.1427748352, 0.0169358999, 0.5494259, 0.1765478402, 0.2100434303, 0.1455811113, -0.4457783699, 0.0675091892, -0.030568175, -0.0527621508, -0.0051457593, -0.1111859009, -0.0238318685, 0.2474310398, 0.0074130311, -0.2309285551, -0.1108202934, 0.1245491281, -0.1015660018, 0.3844144642, -0.3579042256, -0.0612687059, 0.1166498959, 0.3443372548, 0.0569335073, -0.3123577237, 0.4374043941, 0.0258778706, 0.3399881423, 0.6642187238, -0.0001170937, 0.2644662857, 0.4847204387, 0.1298538893, -0.2972801328, -0.0680022612, -0.3246283829, -0.0637884438, 0.1424442083, -0.1147506535, -0.162164405, 0.0842708498, -0.0430735685, -0.0786188915, 0.4358403981, 0.1241002604, 0.1194371581, 0.5723737478, -0.0072479951, -0.1731073707, 0.0098171234, 0.2576718628, -0.0458920226, 0.0987530649, -0.0896425396, 0.057280004, -0.028440088, 0.2362386733, -0.1419915855, -0.1025078669, 0.3573351502, 0.2230837643, 0.1084191725, -0.2037915885, -0.0676487833, 0.1829093099, 0.5824273229, -0.2116954327, -0.5647292733, -0.4298718274, 0.1838447005, 0.0854678825, 0.3381209373, 0.0432044789, -0.0821319446, 0.3190879226, -0.228148073, -0.236594677, -0.4089315236, 0.1340034157, -0.048847042, 0.181603387, 0.0084412778, 0.0248170737, -0.0918691307, -0.2445702851, 0.0256645586, -0.2153268009, -0.0121994643, 0.3241249919, -0.1428106129, -0.0144096212, -0.0405530781, 0.2611582875, 0.0329769403, -0.0994210169, -0.092344746, -0.0361477211, -0.5126375556, -0.071017772, 0.3307183385, 0.1558762491, -0.1232341081, 0.5292969346, 0.2664844394, 0.1390661001, 0.0278261825, 0.0668820292, -0.2361545116, 0.0149981277, 0.0597866178, -0.0019445076, 0.4231617749, -0.2863741219, -0.4405699372, 0.2037789971, -0.0509775318, -0.022676602, 0.2411030829, 0.3955797851, -0.1120112091, 0.0938275009, 0.1487770826, -0.1251645088, -0.2901796997, -0.1055947766, -0.1903126389, -0.2153573334, -0.1804040521, 0.1227908209, 0.0792464539, -0.1367409825, 0.0069471071, -0.0625893325, 0.3577830791, 0.0658231005, -0.326246053, 0.0409519076, -0.0857222602, 0.4311701059, -0.067340076, 0.2126426995, 0.0538101569, -0.2355404198, -0.1126628146, 0.0120073063, -0.4214509726, -0.5944163203, -0.0696288347, 0.0740244091, -0.3809033036, 0.115659453, -0.2573412657, -0.1559450626, -0.048013512, -0.3384791315, -0.0454249978, -0.1057381257, -0.184702754, -0.0584842339, 0.3405199647, 0.8916215301, -0.1859307289, -0.2196410745, -0.4750755727, -0.2167327404, 0.0497980937, 0.3674637675, -0.2237330526, 0.4757987559, -0.3814150095, 0.0650743321, 0.1715975553, -0.3256651461, -0.5867425203, 0.4582538307, -0.3686803579, 0.3452112079, -0.0037106099, 0.1195927337, -0.1718735248, -0.149260655, 0.1311526448, 0.0627942532, 0.1271005869, 0.0266582333, -0.1375938207, -0.1605308503, 0.0940076038, 0.3145623207, 0.1392588764, 0.0550835952, -0.0047644288, 0.4958385229, 0.2888727784, 0.0890718997, -0.2535826564, 0.1990625262, 0.3043307364, 0.0644017458, 0.0087873535, 0.0591723546, -0.5730322599, 0.3120655119, -0.2558343112, 0.2974810302, -0.1031434089, -0.1218313351, -0.3335511684, 0.0485280491, -0.2682648897, 0.054807514, 0.0028908057, 0.0442094579, -0.1055793837, -0.1081540361, -0.0625208244, 0.7060377002, -0.0187635124, 0.2422862798, -0.5906025171, 0.3884901702, -0.0055199102, -0.0514256097, 0.0143473241, 0.2497723252, 0.1909478158, -0.0243786536, -0.164037779, 0.4423065484, -0.1125589088, 0.2973598838, -0.0058462727, 0.1343193352, 0.3156318665, -0.3112627566, 0.0936422274, 0.3979879618, 0.1777123213, 0.2994197607, -0.2359293252, 0.0784430504, -0.1326419115, 0.0234785117, -0.1569773704, -0.1898807138, 0.0276135411, 0.1306666136, -0.1749758571, -0.3263995349, 0.1698169559, -0.0120484401, 0.4282105267, 0.1368089318, 0.0878196284, -0.0588763729, 0.0770491362, -0.2413816303, 0.2702911496, 0.2241882533, -0.1391520649, 0.0632426962, -0.0063729221, 0.1786593646, 0.3638822138, 0.0958966613, -0.3751232326, 0.0340611488, -0.1335657388, -0.1267904043, 0.0800750256, 0.1579607874, 0.0167251546, 0.2393452376, -0.1148019359, 0.1101987064, 0.0264173448, -0.4034675658, -0.0998786762, 0.4304688275, -0.6044558883, -0.0918025151, -0.0521803312, -0.0358426161, -0.1166624576, -0.2216271013, -0.4516857564, -0.0431252569, 0.0412527286, -0.0185046811, -0.1266005188, 0.046487622, 0.0865213647, 0.2802395821, 0.0900113136, -0.1091356874, -0.1576035619, 0.0104815876, -0.1894175857, -0.0612135977, 0.2356416285, -0.08815559, 0.0390004069, -0.4160959125, 0.09478838, -0.1228278577, -0.0344941616, 0.1130122542, -0.1040341333, 0.2151345909, 0.2190939337, 0.2252711207, 0.2566179335, -0.1786849499, 0.2347730696, -0.3021365106, 0.0299693178, 0.1046545804, -0.1128377318, -0.0208585821, 0.0099146087, -0.3252588511, -0.3546515405, -0.307774514, 0.1251608431, -0.0866332874, 0.1186243147, 0.4509201646, 0.1784195006, 0.1307482272, -0.0450530946, -0.0331990048, 0.0063598305, -0.423984915, 0.3137934208, -0.0146397967, -0.1989370286, -0.1442517489, 0.1266073585, -0.0427719802, -0.3571100235, -0.4721200168, -0.2158810943, -0.24830015, -0.0952944234, -0.1135834605, 0.08687675, 0.1586812139, 0.0129481778, 0.058605101, -0.0969043449, -0.3684702516, -0.1097805426, -0.0743988007, 0.0365149044, -0.2424357682, 0.0074940491, -0.2596685588, 0.5018804073, 0.3403350115, -0.1144500822, -0.0834478587, 0.1148417741, 0.3629356027, -0.0476016998, -0.3376516402, -0.1656441987, 0.1516835392, -0.3613928258, 0.5166848898, 0.0967883095, 0.0820309371, -0.1130790338, -0.576100111, -0.2990562022, -0.3664746284, -0.1268448979, 0.285723716, 0.0335172713, 0.0444079004, 0.103693001, -0.2280835062, -0.1528341472, 0.2036978453, 0.2744923234, 0.2069472969, 0.0231434479, 0.0489827767, -0.1357806176, -0.1140983999, 0.2746394575, 0.0538595356, 0.1912216395, -0.1217447817, 0.0976101011, 0.0294689592, 0.1829203516, 0.3714945912, -0.1806962639, 0.3204899728, -0.0009925212, -0.0774932876, -0.3184944391, -0.0837379023, -0.1787990928, 0.0922843441, -0.0766079724, 0.7641335726, -0.2774287164, -0.1948269308, 0.1261692941, -0.0182815511, -0.2348793298, -0.3180298805, -0.3618837893, 0.1255297065, -0.3088179529, 0.121778354, -0.145322606, 0.2181498408, -0.1428233832, 0.1267042756, 0.2665538192, 0.0837848932, 0.3304376602, 0.2722540498, 0.3331062496, -0.0050672661, 0.240313977, 0.5536687374, 0.1871839762, 0.2955952883, 0.718318224, -0.0780963078, -0.4889563024, 0.0145544084, 0.0568691269, 0.0165748559, 0.4699405432, 0.0351117663, -0.225856781, 0.3037094772, 0.2661820352, -0.3592608571, 0.2440419644, 0.1216740832, -0.0765950829, -0.4494567811, -0.4011903107, 0.4901952446, -0.0422742628, -0.0930167809, -0.094894968, 0.6261644959, -0.167691797, 0.3777329326, -0.0311639123, 0.8984182477, -0.0833865777, 0.2443761379, 0.1805337071, 0.0782402158, 0.4151347876, -0.3299207687, -0.0377002768, -0.3338366449, -0.0657821894, -0.0541375428, 0.0055356803, 0.0771894306, 0.0905556232, -0.0818732604, 0.2187543809, -0.2191433758, 0.4273483753, 0.041929584, 0.1811728477, 0.0252524931, -0.2942717373, -0.3783060014, 0.0608582236, -0.106348142, 0.4128834605, -0.1716717184, -0.162614122, -0.1288271248, -0.1173714325, -0.3502608538, 0.2237908393, -0.0193596054, -0.0408929512, 0.2015633732, -0.2757280767, 0.3289613128, 0.3690705597, 0.4256586432, 0.3062337339, -0.5200269818, 0.034123458, -0.4468078315, -0.0477805994, -0.1864153445, -0.0183434673, 0.3150210083, 0.1394052804, -0.323474437, 0.012468501, -0.0040445947, -0.1251620054, -0.190013811, -0.1487190276, 0.4103623629, -0.4653863311, 0.0471874028, -0.1442254186, 0.0432927385, -0.0631361306, 0.0725158751, 0.2259735912, -0.2554516494, -0.1661524177, 0.2373746634, -0.4481355846, -0.0143803693, 0.3088194132, -0.1427536607, -0.0070738555, 0.3935195804, -0.0236027073, -0.0076744896, -0.2832914591, 0.1903465539, 0.5694226027, -0.7765668035, 0.0839858875, 0.1820310503, -0.0489637554, 0.0480805077, 0.0266238153, 0.2787845135, -0.2368796021, -0.2175216675, -0.2663930357, -0.2107739747, 0.2831320465, -0.1070126295, 0.2174544483, 0.1466337442, 0.1281567514, 0.0362309702, -0.262709856, -0.2564332187, -0.115493305, -0.3291172087, -0.2031743526, 0.0196235366, -0.0537050068, 0.2101813704, -0.2429912686, 0.0434133261, 0.0128349895, -0.1629913896, -0.0696762875, -0.1310467124, 0.2087351829, 0.0671645403, -0.0890419856, 0.0684447214, -0.1184222624, 0.1486865431, -0.2452188134, 0.4063081741, 0.3596949279, 0.2737450302, 0.0988357067, 0.1886579841, 0.2397098988, -0.595823288, 0.261950165, 0.0290420353, 0.197210148, 0.0329525918, -0.0270046797, -0.2922661901, -0.0447075032, 0.1388709098, 0.2049711198, 0.5265197158, 0.5842980146, 0.3504539132, -0.333029598, 0.1226844713, 0.192644611, 0.2476329058, -0.1612733305, -0.1912791729, -0.1843138337, -0.0034205657, 0.1115522385, -0.2381177694, -0.2675555348, 0.0807397887, -0.1174674928, 0.0066554672, 0.3866279125, 0.0619457215, 0.2793933153, -0.0675289631, 0.1348681599, 0.6361538768, 0.245161593, 0.0705407038, 0.6553871632, -0.232504189, 0.1300910711, 0.1230958626, -0.0704111904, 0.0430787764, 0.6400356293, -0.1964797378, 0.2024010122, -0.0842097923, 0.190549463, 0.1680120826, -0.3666073382, -0.1078653112, 0.0247659087, 0.0875946879, -0.0244415291, -0.1949395686, -0.0605527572, -0.5137472749, 0.1638571024, -0.2405200452, -0.1499079019, -0.1110362932, 0.0056751329, 0.0313956328, -0.108439602, -0.0794274434, -0.1924707144, -0.1252949238, -0.3116137683, -0.1340881139, 0.0127061196, -0.1365997642, -0.0738332346, -0.2941659987, 0.4675765336, 0.0769507661, -0.1697167158, 0.2090053111, 0.1959236115, -0.1704965234, 0.1883778423, 0.390981257, 0.4359698892, 0.2712962627, -0.0930310339, 0.1469271779, 0.1893008798, 0.1006732732, 0.0837431401, 0.1504257619, -0.3641504049, 0.12841326, 0.1276453733, 0.1141390875, -0.107459791, -0.0077017909, -0.0436039791, 0.305555582, -0.1839022487, 0.6720907688, -0.3736265302, -0.0203410983, -0.2232592404, 0.1765662581, -0.2582634389, -0.0477260947, 0.5425689816, 0.119856298, 0.0613902174, -0.1173612326, 0.0262522195, -0.0515462421, 0.5048491955, 0.5831446648, 0.2085146308, -0.3938024938, 0.2653395534, -0.7450765371, 0.4829036593, 0.0188220292, -0.1795186996, 0.1500317156, -0.067668125, -0.0140757477, 0.2019624561, 0.3571895957, -0.1034632102, -0.0409660749, -0.0880966783, -0.1237366945, -0.0375671834, -0.1186527386, -0.0186399166, -0.0438812226, -0.3450816572, 0.1955899, -0.0080119241, -0.0079748649, -0.0150611401, 0.0425884835, 0.1655757129, 0.0316023603, 0.4586840868, 0.0023463888, 0.238585487, 0.1397526413, -0.2237820178, -0.3938885033, -0.2002229244, -0.1726504713, -0.0414298959, 0.0505148917, 0.3894831538, -0.1985283643, -0.177065298, -0.4016649127, -0.1663632691, 0.1021736786, 0.1725117862, -0.4415127635, 0.1456103921, -0.3424664736, -0.0730697066, -0.0330037959, 0.1138094366, 0.1093684733, 0.0651427433, -0.0993097201, -0.2763364315, 0.7716035843, -0.4346081018, -0.2061978877, -0.2097861767, 0.3061100245, 0.0913696885, -0.1512936503, -0.4539779425, 0.1789635867, 0.2009630948, 0.0087121613, -0.3308882713, -0.1507736593, 0.1213922352, 0.0181450918, -0.0860720873, 0.2521613538, -0.0064973282, -0.1110621095, 0.4590699375, -0.1194907278 ]
https://github.com/huggingface/datasets/issues/3854
load only England English dataset from common voice english dataset
Hi @amanjaiswal777, First note that the dataset you are trying to load is deprecated: it was the Common Voice dataset release as of Dec 2020. Currently, Common Voice dataset releases are directly hosted on the Hub, under the Mozilla Foundation organization: https://huggingface.co/mozilla-foundation For example, to get their latest Common Voice relase (8.0): - Go to the dataset page and request access permission (Mozilla Foundation requires this for people willing to use their datasets): https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 - Looking at the dataset card, you can check that data instances have, among other fields, the ones you are interested in: "accent", "age",... - Then you can load their "en" language dataset as usual, besides passing your authentication token (more info on auth token here: https://huggingface.co/docs/hub/security) ```python from datasets import load_dataset ds_en = load_dataset("mozilla-foundation/common_voice_8_0", "en", use_auth_token=True) ``` - Finally, you can filter only the data instances you are interested in (more info on `filter` here: https://huggingface.co/docs/datasets/process#select-and-filter): ```python ds_england_en = ds_en.filter(lambda item: item["accent"] == "England English") ``` Feel free to reopen this issue if you need further assistance.
training_data = load_dataset("common_voice", "en",split='train[:250]+validation[:250]') testing_data = load_dataset("common_voice", "en", split="test[:200]") I'm trying to load only 8% of the English common voice data with accent == "England English." Can somebody assist me with this? **Typical Voice Accent Proportions:** - 24% United States English - 8% England English - 5% India and South Asia (India, Pakistan, Sri Lanka) - 3% Australian English - 3% Canadian English - 2% Scottish English - 1% Irish English - 1% Southern African (South Africa, Zimbabwe, Namibia) - 1% New Zealand English Can we replicate this for Age as well? **Age proportions of the common voice:-** - 24% 19 - 29 - 14% 30 - 39 - 10% 40 - 49 - 6% < 19 - 4% 50 - 59 - 4% 60 - 69 - 1% 70 – 79
172
load only England English dataset from common voice english dataset training_data = load_dataset("common_voice", "en",split='train[:250]+validation[:250]') testing_data = load_dataset("common_voice", "en", split="test[:200]") I'm trying to load only 8% of the English common voice data with accent == "England English." Can somebody assist me with this? **Typical Voice Accent Proportions:** - 24% United States English - 8% England English - 5% India and South Asia (India, Pakistan, Sri Lanka) - 3% Australian English - 3% Canadian English - 2% Scottish English - 1% Irish English - 1% Southern African (South Africa, Zimbabwe, Namibia) - 1% New Zealand English Can we replicate this for Age as well? **Age proportions of the common voice:-** - 24% 19 - 29 - 14% 30 - 39 - 10% 40 - 49 - 6% < 19 - 4% 50 - 59 - 4% 60 - 69 - 1% 70 – 79 Hi @amanjaiswal777, First note that the dataset you are trying to load is deprecated: it was the Common Voice dataset release as of Dec 2020. Currently, Common Voice dataset releases are directly hosted on the Hub, under the Mozilla Foundation organization: https://huggingface.co/mozilla-foundation For example, to get their latest Common Voice relase (8.0): - Go to the dataset page and request access permission (Mozilla Foundation requires this for people willing to use their datasets): https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 - Looking at the dataset card, you can check that data instances have, among other fields, the ones you are interested in: "accent", "age",... - Then you can load their "en" language dataset as usual, besides passing your authentication token (more info on auth token here: https://huggingface.co/docs/hub/security) ```python from datasets import load_dataset ds_en = load_dataset("mozilla-foundation/common_voice_8_0", "en", use_auth_token=True) ``` - Finally, you can filter only the data instances you are interested in (more info on `filter` here: https://huggingface.co/docs/datasets/process#select-and-filter): ```python ds_england_en = ds_en.filter(lambda item: item["accent"] == "England English") ``` Feel free to reopen this issue if you need further assistance.
[ -0.1626533717, 0.0066458895, -0.0680129081, -0.0724874213, 0.1917739064, 0.144611612, 0.5200453401, 0.2401534915, 0.0146083059, 0.086058341, -0.4945827723, -0.260288775, 0.2044369876, -0.156159386, -0.2082676888, -0.0381301083, -0.1385680586, 0.2314248234, 0.318788588, -0.3509130776, 0.2503096461, -0.1115813702, -0.1239315942, 0.1035624519, -0.3548628688, 0.0593071692, 0.1205280796, 0.2372466326, -0.1382791698, 0.079569377, 0.4342959523, 0.0965993255, 0.0610722899, 0.101603806, -0.0001166282, -0.112390615, 0.1535637528, -0.1980032623, 0.0334326513, -0.0753733665, -0.1577673852, 0.3177830875, -0.0563414767, -0.0603824779, -0.1179159954, 0.2991826832, -0.1959060431, -0.3585821092, 0.6529736519, 0.2741496265, 0.1621574908, -0.0508313067, -0.4198023081, 0.2071217, 0.0506919883, 0.001848132, 0.1284770966, 0.4298829138, 0.0918025076, -0.0141988797, -0.0208566263, 0.3105450571, -0.1517437696, -0.0386488102, -0.2900736034, 0.0932242274, 0.0189384352, -0.467318207, 0.2494372725, 0.4235194623, 0.3073984683, -0.044718571, -0.2448138744, -0.1975494027, 0.1060965732, -0.1420689523, 0.0211975742, 0.1835012138, -0.1842532307, 0.4176615775, -0.2250493914, -0.1339661926, -0.0343174264, 0.2777761221, -0.2427531332, 0.335906744, 0.0418737307, -0.0250760783, 0.2844216526, -0.2450346649, -0.1413979381, -0.0119017642, 0.1014418155, 0.5277359486, -0.2945692837, -0.198920086, -0.3142446876, -0.1765628904, 0.4934426248, -0.0614729673, 0.049760256, 0.1731752455, -0.4262271523, 0.0165634826, 0.3236640394, 0.2762878239, 0.3461338282, 0.0343389101, 0.0627197847, -0.0279853307, 0.0469603464, 0.1110304147, -0.3098823726, -0.2250703722, 0.1521136612, 0.201554656, 0.0415373035, -0.5437752604, -0.5168311, 0.0325995162, 0.0667406395, -0.1473617554, -0.0211266242, 0.18969962, 0.1839706451, 0.7756186724, 0.1477144808, 0.474429667, -0.4340800643, -0.4383442402, -0.060535986, 0.3679063916, -0.2703417838, -0.1553070545, 0.3383286893, -0.4679106176, 0.1132559776, 0.3345908225, 0.1416132003, -0.3451956809, -0.0416861922, -0.1509879529, -0.0264683012, -0.0951772854, -0.0480394624, 0.2167365402, 0.2654092014, -0.160954982, -0.2191591114, 0.3500833511, -0.1333451867, -0.116925478, -0.0519041568, 0.187348485, -0.3149967194, -0.2320451587, -0.0798444003, 0.4302383959, 0.2331579477, -0.1281089634, 0.1068846732, 0.0623219684, 0.0203427449, 0.1786412448, 0.3711981475, 0.3264195323, -0.2245595455, -0.2157574147, -0.3459856808, -0.1998168528, 0.1475079507, 0.3084806502, 0.0395001732, -0.065499112, -0.0214942172, 0.1692523211, 0.3668358028, -0.354665786, -0.3593709171, 0.1119660065, -0.0073400061, -0.0199714955, -0.0594598763, -0.2629782557, 0.1145817637, 0.081639111, 0.2604739368, 0.6405438185, 0.1166640148, 0.046465043, 0.0635702834, -0.2897795439, 0.1354350299, 0.29464522, 0.0333787836, 0.0054169782, -0.0270136371, 0.1330631673, 0.3880608082, -0.1982971281, 0.1911534369, -0.0703933612, 0.0171641074, -0.2628724873, -0.2506575286, -0.2678252161, -0.1792818755, 0.2207078934, 0.1674523056, -0.0221700892, 0.3807221651, 0.068076618, -0.3849967718, -0.2881514728, -0.2257811874, -0.0819556788, 0.0204005074, -0.2865921855, 0.0823284239, -0.2497663051, -0.2319960892, -0.017544087, 0.2953232825, -0.0202412456, -0.1007049084, 0.2127560228, 0.1210128963, -0.0194257759, 0.1057512313, 0.320885241, 0.18201074, 0.2503680587, -0.1813221276, 0.2155878395, 0.0553355627, 0.4699527621, -0.1964365244, -0.0480601676, 0.1691497713, -0.405813247, 0.2731775641, -0.09440469, 0.0163115542, -0.0277357902, 0.0592833869, 0.5545336008, 0.3355204463, 0.2162993103, -0.1244542375, -0.1278871, -0.0384155288, -0.2165101618, -0.0246279258, -0.2768109739, 0.2901915312, 0.1643132716, 0.3405990601, -0.0332155973, -0.2013855577, -0.0644005984, -0.0458467007, -0.2180229127, 0.0917491689, 0.122028321, -0.2472970337, -0.0717211366, 0.0344354063, -0.3670791686, 0.3224883974, 0.2227313071, 0.2258175313, 0.3773611486, 0.2488115281, 0.0264350716, 0.0326387957, -0.0946617499, 0.040047735, 0.2485364228, 0.0931702852, -0.0313229151, -0.5917186141, -0.255353272, -0.1300872862, -0.1813629717, -0.4558275938, 0.007479385, -0.1831953377, 0.4088344276, -0.0362986997, -0.335295409, -0.2569249272, 0.0566813648, 0.0244086571, 0.0162492488, -0.0187372714, 0.0403886214, -0.4035816193, -0.1044735536, -0.1123171672, -0.2327423245, -0.2268542945, -0.0495364331, -0.1971727759, 0.075641565, -0.0328689814, 0.2492739707, 0.2373068184, -0.4021545649, -0.0943990424, 0.2649937272, -0.1507185698, -0.0484313406, -0.020070225, 0.0618817769, -0.1169879436, 0.2612062991, -0.1406398714, -0.1266097575, 0.0437249169, -0.2075287849, -0.180559963, 0.0290444568, -0.072650522, 0.3201820552, 0.1418704391, -0.4972709417, -0.3525397182, -0.2220109403, -0.204601258, -0.0786091909, 0.1533881426, 0.5186456442, -0.0775759071, -0.0707631633, 0.0523242541, 0.1211228669, -0.5544794202, -0.0332396105, 0.3712908626, 0.0187306497, -0.0438727438, 0.0232569221, -0.0721087307, -0.0657267123, -0.0684177428, -0.1123186797, 0.1269303858, -0.2825590372, 0.0221952628, -0.323464334, 0.3984657526, 0.1402026117, -0.0734951422, -0.0533048883, -0.0397833176, -0.0898063928, 0.0327418931, 0.197361812, -0.0578230843, -0.2501809597, 0.2127292305, -0.0936790556, 0.675146997, 0.1347127408, 0.1146575287, 0.3498960137, -0.0549185649, 0.1251315027, -0.1196510792, -0.1463261843, 0.0531421863, 0.1829804927, 0.1585398018, 0.3657314181, 0.0624080412, -0.0255755503, -0.3053196967, -0.4655772448, -0.2142487764, -0.218541652, 0.2157835513, -0.4697746038, 0.0604796484, 0.0540286228, 0.072135061, -0.0309352707, -0.1158141866, 0.0036949464, 0.0314562544, -0.2077404261, -0.1015941203, -0.4405189455, -0.0881898478, -0.4005970359, 0.3352706432, 0.0046210238, 0.4629881084, 0.077050969, 0.0545312539, 0.1173316687, 0.2206547558, 0.0728950053, -0.0584831461, 0.3128553331, -0.0984647498, 0.1461969614, -0.3394856453, -0.0301153548, -0.1129892021, -0.1652691066, 0.0852829516, 0.0463122241, -0.471422255, -0.2028161883, 0.0511966199, 0.4750995636, -0.034205921, -0.3127017915, -0.0425614081, -0.2133478075, -0.3305551112, 0.2241607159, 0.1814457327, 0.253739208, -0.2149705887, 0.0617055185, 0.3063908517, 0.0179112833, 0.6960338354, 0.1225463077, 0.0439131744, 0.1739340425, 0.0831713155, 0.4832804203, -0.2442989349, -0.1969240904, 0.79103899, 0.2287863493, -0.0140120983, -0.1627374142, 0.2663672566, 0.3048918545, 0.3705556989, 0.282017529, -0.2154425532, 0.288797766, -0.1989871711, 0.1283246875, 0.1548371911, -0.3152419627, 0.393694967, -0.5730138421, -0.4321876168, 0.4833516479, -0.05281315, -0.0522368699, -0.092734471, 0.0988333151, -0.490270406, 0.1177914292, -0.0649150014, 1.1103103161, 0.1858811378, 0.2591355741, 0.0545748584, 0.1806155592, -0.2323079705, 0.0276624113, -0.2914382517, -0.3301074803, -0.0765329227, -0.0746594816, -0.161117658, -0.0369362533, 0.5031992793, -0.0826986954, 0.3220245838, -0.6584352255, -0.2280195504, 0.3487487733, 0.2812465727, -0.4125337601, -0.2224583328, -0.2799344063, 0.0806832463, 0.0143747674, 0.3041248918, 0.152358368, 0.1137609631, -0.4104168713, -0.3889220655, -0.2032283396, 0.3957460821, -0.3680653274, 0.0067361635, -0.0948692784, -0.2432021946, 0.4130243063, 0.1161953881, 0.1955551952, 0.1896021962, -0.0868174955, 0.2413663864, 0.3575545251, 0.2271758914, 0.2668852806, 0.01472551, 0.1018223912, -0.0992592201, -0.7169991732, 0.1580832452, -0.1300376803, 0.2967649102, -0.1231835261, -0.1141894832, 0.187554419, -0.3222256601, -0.3904187083, 0.0541585945, 0.3203074336, 0.0867145434, 0.0844544768, 0.2743889391, -0.2544224262, 0.1246606559, 0.2182952762, -0.149772644, 0.1567769647, 0.404237926, 0.1874195039, 0.0006765063, 0.8007922769, -0.0157755483, -0.1359822303, -0.1734465063, 0.0543199554, 0.5566004515, -0.2739295959, -0.3517703712, -0.0252249837, -0.0277752504, -0.2201931328, 0.191134423, 0.1862850487, 0.225131914, 0.217669189, -0.5661156774, -0.2822831571, 0.1466573328, -0.1516346037, 0.1502065063, -0.0062768031, 0.0166100617, -0.0278076809, 0.1553861201, -0.2686070204, 0.0337495953, 0.1397758126, 0.2703301013, -0.1004985198, -0.1123525202, 0.0564029887, -0.0734008476, 0.1573203951, -0.1025681868, -0.0450652577, -0.2640483081, -0.2578164935, 0.167266652, 0.0681816787, -0.2403962612, 0.3142577708, 0.1823761612, 0.1601904929, -0.0070863171, 0.1604110152, 0.1369115263, 0.2695661187, 0.3174296319, 0.1364994198, -0.141354084, -0.2677986622, 0.0570331737, -0.0996337309, 0.1014541611, 0.0833975375, 0.3289105594, 0.220606491, -0.0957257301, -0.2097298652, 0.1076412946, 0.4823609889, 0.0343950577, -0.297383219, 0.0511838123, 0.2268158644, 0.2965081632, 0.1360930502, 0.427495718, -0.321336329, 0.2461720407, 0.1031262577, 0.304586947, -0.3311010301, 0.1579789668, 0.0271612238, -0.3234761357, -0.0470300242, 0.1794451028, 0.0210389718, -0.1852044165, 0.0645804554, -0.1669914722, 0.0145413987, 0.0438314527, 0.1411861628, 0.2913661599, -0.179442957, -0.1362417787, 0.3219247162, -0.1269011945, -0.0457694307, -0.1583668143, -0.3693601489, 0.0368012078, 0.101940617, 0.2771608233, -0.1430227458, -0.5951989293, -0.1463804394, 0.3226652741, 0.1157938167, -0.1366701871, -0.0019561215, 0.4491514862, 0.1060220227, -0.1181834638, 0.0705308691, 0.2371049672, 0.1197265089, -0.1520961523, 0.0940268785, -0.2174281627, -0.491294533, -0.1457418501, -0.0438265502, -0.4474609196, 0.1936843991, 0.2898251712, -0.179033339, -0.4164526761, 0.0294559374, 0.337770164, -0.0934639946, -0.3481373787, 0.3597692549, 0.0850942582, -0.0675773099, 0.5255777836, 0.2800000906, 0.2174251974, 0.0547893867, 0.0180242192, 0.3015841246, -0.1025299877, -0.0303769205, 0.0873546824, 0.0983577967, 0.382519275, 0.2848108411, 0.1746711433, 0.1820899397, -0.2049856782, -0.4399736226, 0.1526051313, -0.1921644956, -0.4246977568, 0.1781535149, 0.1130644009, 0.0373616032, -0.2341048419, -0.0281927716, -0.2664739192, 0.0239655934, 0.0412169956, -0.0901898742, 0.0064886692, 0.0666693076, 0.027123034, -0.074822925, 0.025097169, 0.1540563852, 0.147404477, -0.2294451296, -0.0502907485, -0.4261590838, -0.0877141953, 0.1835013479, -0.2267568558, 0.0905331895, -0.2111125886, 0.1980982721, 0.3221078515, 0.0580935627, 0.2280099988, -0.3384613693, 0.1654343903, -0.0719625503, 0.1619773209, -0.0176282842, 0.5967661142, -0.1644101888, -0.4752422869, 0.1113768816, 0.1079789102, -0.1121369153, -0.0239434987, -0.0944709629, 0.232390523, -0.1367146969, 0.2808095515, 0.2343328893, 0.7214940786, -0.1830667406, 0.0737936124, -0.264786303, -0.1000219434, -0.2929310799, 0.164064616, 0.1981226355, 0.2826064527, 0.111141108, 0.0030540233, -0.0257174075, 0.371681273, -0.2051267475, -0.3094641864, -0.3673693836, -0.0533705913, 0.0730221272, 0.1871644855, -0.1774221063, 0.1045268551, -0.1430951059, 0.0450819321, -0.241152063, -0.1176966205, 0.3307856619, -0.275057584, -0.4308401644, -0.1876569986, 0.4283426106, 0.1336040497, -0.1558666527, -0.1184818, 0.329169035, 0.2475514561, -0.2024047077, -0.168053478, 0.2405288517, 0.1197787076, -0.1941862404, -0.032452736, 0.3017948568, 0.1758739948, -0.0718644485, -0.2995577753, -0.5935603976 ]
https://github.com/huggingface/datasets/issues/3851
Load audio dataset error
Hi @lemoner20, thanks for reporting. I'm sorry but I cannot reproduce your problem: ```python In [1]: from datasets import load_dataset, load_metric, Audio ...: raw_datasets = load_dataset("superb", "ks", split="train") ...: print(raw_datasets[0]["audio"]) Downloading builder script: 30.2kB [00:00, 13.0MB/s] Downloading metadata: 38.0kB [00:00, 16.6MB/s] Downloading and preparing dataset superb/ks (download: 1.45 GiB, generated: 9.64 MiB, post-processed: Unknown size, total: 1.46 GiB) to .../.cache/huggingface/datasets/superb/ks/1.9.0/fc1f59e1fa54262dfb42de99c326a806ef7de1263ece177b59359a1a3354a9c9... Downloading data: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1.49G/1.49G [00:37<00:00, 39.3MB/s] Downloading data: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 71.3M/71.3M [00:01<00:00, 36.1MB/s] Downloading data files: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:41<00:00, 20.67s/it] Extracting data files: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:28<00:00, 14.24s/it] Dataset superb downloaded and prepared to .../.cache/huggingface/datasets/superb/ks/1.9.0/fc1f59e1fa54262dfb42de99c326a806ef7de1263ece177b59359a1a3354a9c9. Subsequent calls will reuse this data. {'path': '.../.cache/huggingface/datasets/downloads/extracted/8571921d3088b48f58f75b2e514815033e1ffbd06aa63fd4603691ac9f1c119f/_background_noise_/doing_the_dishes.wav', 'array': array([ 0. , 0. , 0. , ..., -0.00592041, -0.00405884, -0.00253296], dtype=float32), 'sampling_rate': 16000} ``` Which version of `datasets` are you using? Could you please fill in the environment info requested in the bug report template? You can run the command `datasets-cli env` and copy-and-paste its output below ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
## Load audio dataset error Hi, when I load audio dataset following https://huggingface.co/docs/datasets/audio_process and https://github.com/huggingface/datasets/tree/master/datasets/superb, ``` from datasets import load_dataset, load_metric, Audio raw_datasets = load_dataset("superb", "ks", split="train") print(raw_datasets[0]["audio"]) ``` following errors occur ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-169-3f8253239fa0> in <module> ----> 1 raw_datasets[0]["audio"] /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in __getitem__(self, key) 1924 """Can be used to index columns (by string names) or rows (by integer index or iterable of indices or bools).""" 1925 return self._getitem( -> 1926 key, 1927 ) 1928 /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in _getitem(self, key, decoded, **kwargs) 1909 pa_subtable = query_table(self._data, key, indices=self._indices if self._indices is not None else None) 1910 formatted_output = format_table( -> 1911 pa_subtable, key, formatter=formatter, format_columns=format_columns, output_all_columns=output_all_columns 1912 ) 1913 return formatted_output /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_table(table, key, formatter, format_columns, output_all_columns) 530 python_formatter = PythonFormatter(features=None) 531 if format_columns is None: --> 532 return formatter(pa_table, query_type=query_type) 533 elif query_type == "column": 534 if key in format_columns: /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in __call__(self, pa_table, query_type) 279 def __call__(self, pa_table: pa.Table, query_type: str) -> Union[RowFormat, ColumnFormat, BatchFormat]: 280 if query_type == "row": --> 281 return self.format_row(pa_table) 282 elif query_type == "column": 283 return self.format_column(pa_table) /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_row(self, pa_table) 310 row = self.python_arrow_extractor().extract_row(pa_table) 311 if self.decoded: --> 312 row = self.python_features_decoder.decode_row(row) 313 return row 314 /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in decode_row(self, row) 219 220 def decode_row(self, row: dict) -> dict: --> 221 return self.features.decode_example(row) if self.features else row 222 223 def decode_column(self, column: list, column_name: str) -> list: /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_example(self, example) 1320 else value 1321 for column_name, (feature, value) in utils.zip_dict( -> 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) 1324 } /usr/lib/python3.6/site-packages/datasets/features/features.py in <dictcomp>(.0) 1319 if self._column_requires_decoding[column_name] 1320 else value -> 1321 for column_name, (feature, value) in utils.zip_dict( 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_nested_example(schema, obj) 1053 # Object with special decoding: 1054 elif isinstance(schema, (Audio, Image)): -> 1055 return schema.decode_example(obj) if obj is not None else None 1056 return obj 1057 /usr/lib/python3.6/site-packages/datasets/features/audio.py in decode_example(self, value) 100 array, sampling_rate = self._decode_non_mp3_file_like(file) 101 else: --> 102 array, sampling_rate = self._decode_non_mp3_path_like(path) 103 return {"path": path, "array": array, "sampling_rate": sampling_rate} 104 /usr/lib/python3.6/site-packages/datasets/features/audio.py in _decode_non_mp3_path_like(self, path) 143 144 with xopen(path, "rb") as f: --> 145 array, sampling_rate = librosa.load(f, sr=self.sampling_rate, mono=self.mono) 146 return array, sampling_rate 147 /usr/lib/python3.6/site-packages/librosa/core/audio.py in load(path, sr, mono, offset, duration, dtype, res_type) 110 111 y = [] --> 112 with audioread.audio_open(os.path.realpath(path)) as input_file: 113 sr_native = input_file.samplerate 114 n_channels = input_file.channels /usr/lib/python3.6/posixpath.py in realpath(filename) 392 """Return the canonical path of the specified filename, eliminating any 393 symbolic links encountered in the path.""" --> 394 filename = os.fspath(filename) 395 path, ok = _joinrealpath(filename[:0], filename, {}) 396 return abspath(path) TypeError: expected str, bytes or os.PathLike object, not _io.BufferedReader ``` ## Expected results ``` >>> raw_datasets[0]["audio"] {'array': array([-0.0005188 , -0.00109863, 0.00030518, ..., 0.01730347, 0.01623535, 0.01724243]), 'path': '/root/.cache/huggingface/datasets/downloads/extracted/bb3a06b491a64aff422f307cd8116820b4f61d6f32fcadcfc554617e84383cb7/bed/026290a7_nohash_0.wav', 'sampling_rate': 16000} ```
178
Load audio dataset error ## Load audio dataset error Hi, when I load audio dataset following https://huggingface.co/docs/datasets/audio_process and https://github.com/huggingface/datasets/tree/master/datasets/superb, ``` from datasets import load_dataset, load_metric, Audio raw_datasets = load_dataset("superb", "ks", split="train") print(raw_datasets[0]["audio"]) ``` following errors occur ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-169-3f8253239fa0> in <module> ----> 1 raw_datasets[0]["audio"] /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in __getitem__(self, key) 1924 """Can be used to index columns (by string names) or rows (by integer index or iterable of indices or bools).""" 1925 return self._getitem( -> 1926 key, 1927 ) 1928 /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in _getitem(self, key, decoded, **kwargs) 1909 pa_subtable = query_table(self._data, key, indices=self._indices if self._indices is not None else None) 1910 formatted_output = format_table( -> 1911 pa_subtable, key, formatter=formatter, format_columns=format_columns, output_all_columns=output_all_columns 1912 ) 1913 return formatted_output /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_table(table, key, formatter, format_columns, output_all_columns) 530 python_formatter = PythonFormatter(features=None) 531 if format_columns is None: --> 532 return formatter(pa_table, query_type=query_type) 533 elif query_type == "column": 534 if key in format_columns: /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in __call__(self, pa_table, query_type) 279 def __call__(self, pa_table: pa.Table, query_type: str) -> Union[RowFormat, ColumnFormat, BatchFormat]: 280 if query_type == "row": --> 281 return self.format_row(pa_table) 282 elif query_type == "column": 283 return self.format_column(pa_table) /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_row(self, pa_table) 310 row = self.python_arrow_extractor().extract_row(pa_table) 311 if self.decoded: --> 312 row = self.python_features_decoder.decode_row(row) 313 return row 314 /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in decode_row(self, row) 219 220 def decode_row(self, row: dict) -> dict: --> 221 return self.features.decode_example(row) if self.features else row 222 223 def decode_column(self, column: list, column_name: str) -> list: /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_example(self, example) 1320 else value 1321 for column_name, (feature, value) in utils.zip_dict( -> 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) 1324 } /usr/lib/python3.6/site-packages/datasets/features/features.py in <dictcomp>(.0) 1319 if self._column_requires_decoding[column_name] 1320 else value -> 1321 for column_name, (feature, value) in utils.zip_dict( 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_nested_example(schema, obj) 1053 # Object with special decoding: 1054 elif isinstance(schema, (Audio, Image)): -> 1055 return schema.decode_example(obj) if obj is not None else None 1056 return obj 1057 /usr/lib/python3.6/site-packages/datasets/features/audio.py in decode_example(self, value) 100 array, sampling_rate = self._decode_non_mp3_file_like(file) 101 else: --> 102 array, sampling_rate = self._decode_non_mp3_path_like(path) 103 return {"path": path, "array": array, "sampling_rate": sampling_rate} 104 /usr/lib/python3.6/site-packages/datasets/features/audio.py in _decode_non_mp3_path_like(self, path) 143 144 with xopen(path, "rb") as f: --> 145 array, sampling_rate = librosa.load(f, sr=self.sampling_rate, mono=self.mono) 146 return array, sampling_rate 147 /usr/lib/python3.6/site-packages/librosa/core/audio.py in load(path, sr, mono, offset, duration, dtype, res_type) 110 111 y = [] --> 112 with audioread.audio_open(os.path.realpath(path)) as input_file: 113 sr_native = input_file.samplerate 114 n_channels = input_file.channels /usr/lib/python3.6/posixpath.py in realpath(filename) 392 """Return the canonical path of the specified filename, eliminating any 393 symbolic links encountered in the path.""" --> 394 filename = os.fspath(filename) 395 path, ok = _joinrealpath(filename[:0], filename, {}) 396 return abspath(path) TypeError: expected str, bytes or os.PathLike object, not _io.BufferedReader ``` ## Expected results ``` >>> raw_datasets[0]["audio"] {'array': array([-0.0005188 , -0.00109863, 0.00030518, ..., 0.01730347, 0.01623535, 0.01724243]), 'path': '/root/.cache/huggingface/datasets/downloads/extracted/bb3a06b491a64aff422f307cd8116820b4f61d6f32fcadcfc554617e84383cb7/bed/026290a7_nohash_0.wav', 'sampling_rate': 16000} ``` Hi @lemoner20, thanks for reporting. I'm sorry but I cannot reproduce your problem: ```python In [1]: from datasets import load_dataset, load_metric, Audio ...: raw_datasets = load_dataset("superb", "ks", split="train") ...: print(raw_datasets[0]["audio"]) Downloading builder script: 30.2kB [00:00, 13.0MB/s] Downloading metadata: 38.0kB [00:00, 16.6MB/s] Downloading and preparing dataset superb/ks (download: 1.45 GiB, generated: 9.64 MiB, post-processed: Unknown size, total: 1.46 GiB) to .../.cache/huggingface/datasets/superb/ks/1.9.0/fc1f59e1fa54262dfb42de99c326a806ef7de1263ece177b59359a1a3354a9c9... Downloading data: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1.49G/1.49G [00:37<00:00, 39.3MB/s] Downloading data: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 71.3M/71.3M [00:01<00:00, 36.1MB/s] Downloading data files: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:41<00:00, 20.67s/it] Extracting data files: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:28<00:00, 14.24s/it] Dataset superb downloaded and prepared to .../.cache/huggingface/datasets/superb/ks/1.9.0/fc1f59e1fa54262dfb42de99c326a806ef7de1263ece177b59359a1a3354a9c9. Subsequent calls will reuse this data. {'path': '.../.cache/huggingface/datasets/downloads/extracted/8571921d3088b48f58f75b2e514815033e1ffbd06aa63fd4603691ac9f1c119f/_background_noise_/doing_the_dishes.wav', 'array': array([ 0. , 0. , 0. , ..., -0.00592041, -0.00405884, -0.00253296], dtype=float32), 'sampling_rate': 16000} ``` Which version of `datasets` are you using? Could you please fill in the environment info requested in the bug report template? You can run the command `datasets-cli env` and copy-and-paste its output below ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
[ -0.3769887686, -0.1154066622, -0.0308203232, 0.3962250352, 0.4579704106, 0.0699847117, 0.2902419865, 0.3150895238, -0.0530284159, 0.1748975515, -0.535605073, 0.3172013462, -0.2974061668, 0.0095627727, -0.0179305263, -0.4144314528, -0.0624870807, 0.160766542, -0.3674670458, 0.089692004, -0.3725433052, 0.1743069738, -0.326178968, 0.286529243, -0.2181515843, -0.1066490114, 0.1983118057, 0.105207175, -0.4044357538, -0.556841135, 0.2095939517, -0.2148835957, 0.2718892694, 0.6587948799, -0.000109111, 0.1062147766, 0.3792860508, -0.0474428944, -0.4135833979, -0.2822248638, -0.4285669625, 0.0596221052, 0.148973614, -0.1274241358, -0.0034840354, -0.4431419671, -0.1901089549, -0.3268807232, 0.4615100026, 0.2684743702, 0.299923569, 0.4350044727, 0.1923298091, -0.2203473002, 0.1194323525, 0.1547944993, 0.0173962973, 0.420232445, 0.0091916714, 0.0491667949, 0.0069470867, 0.2984601259, -0.1738764495, 0.176335305, 0.2298507839, -0.1352758855, -0.1675222218, -0.1879022121, 0.1613013744, 0.1987243742, 0.4726321697, -0.481564045, -0.3459494114, -0.0386825763, 0.0690231547, -0.4702773094, 0.0801249966, 0.1715594679, -0.097200349, 0.0952934846, -0.2051636726, 0.0465241112, -0.0686936229, 0.168274492, 0.237547189, 0.0064471471, -0.3387322426, 0.037226785, 0.2738148272, -0.214198038, -0.1669425219, 0.0483628735, -0.1655763984, 0.3656981587, -0.4240424633, 0.1116564199, 0.0456987768, -0.1373231709, 0.0146450354, -0.0403534286, 0.0176254306, 0.0415860415, 0.0705677122, 0.1646608859, 0.2296694219, 0.0986421928, 0.1528078467, 0.1120616496, 0.1326157749, 0.233694315, 0.0924878195, -0.0318904929, -0.2244520187, -0.2344274521, 0.0350969434, 0.113026835, 0.4560840726, -0.2372628003, -0.409147203, 0.0270190239, -0.0974415839, -0.0856009945, 0.3154964149, 0.2793029249, 0.2499224544, 0.1025631353, 0.2195271403, 0.3914906383, -0.1359719038, 0.0922218487, -0.1342357844, 0.0833789259, -0.0309071001, 0.1335763037, 0.2870158553, -0.2224529982, 0.155042395, 0.2077089995, 0.1261918843, -0.1610331088, 0.0189269744, -0.0493070185, -0.2274558991, 0.3239481747, -0.0960230976, 0.149895519, 0.1393885911, 0.0410627052, -0.1044393852, 0.0706786737, -0.1952908188, -0.3029635549, -0.1049854904, 0.2461148202, -0.0528141372, 0.1340738535, -0.4590174556, -0.0732224956, 0.1385059655, -0.3459164798, 0.0648971051, -0.3205714822, -0.2848424315, 0.0183811989, 0.3550864458, 0.2735077441, -0.2584556937, -0.1789944768, -0.1116052195, -0.2246557325, 0.0354218222, 0.3527233899, 0.0290168524, 0.2925775051, -0.1492988616, -0.0259825625, 0.2977193892, -0.3080950975, -0.2015810162, -0.0683948547, -0.0213342197, 0.120624356, -0.0819288269, -0.1163110808, 0.1097764596, -0.0468305983, 0.3195452392, 0.0579704642, 0.0881777629, -0.0640452057, -0.003844976, -0.105563201, -0.0519388616, 0.2132583857, -0.2208276689, 0.0910753682, -0.0467554331, -0.0094856359, 0.0476783179, -0.0992690697, -0.0255501252, 0.1598066241, 0.2196204066, 0.0084251733, -0.0835882053, -0.4422389269, -0.2576403022, 0.0173045509, -0.0913112462, 0.1824976653, -0.3626768291, -0.0666080266, -0.2478411943, 0.1375557929, -0.3986141682, 0.0582087748, 0.1390696019, 0.0923515782, -0.0479778908, 0.0631792545, -0.24362728, -0.0493090414, -0.0577991456, 0.0540163778, -0.4655534029, 0.0597280599, 0.0191244036, -0.1688704789, 0.2765918672, 0.3562169373, 0.2761612833, -0.0265947189, -0.2120909542, 0.5099461079, 0.106743902, 0.1462808251, -0.3429251015, 0.0101279141, 0.0833968148, -0.3226529658, -0.0090677002, -0.0623293556, 0.2937448323, -0.0997377411, -0.0672303885, 0.4583497643, -0.1053344458, 0.3200312555, 0.0043086479, -0.0589842908, 0.1802782118, 0.4128148854, -0.0799910277, -0.1413905025, 0.1623202711, -0.1702552587, 0.1915430427, -0.054732617, -0.3017840087, -0.3185962737, 0.2729862332, -0.1987492889, 0.0974558592, 0.1345565319, -0.1964373142, 0.0145387389, 0.2190853953, -0.0600781925, 0.3460254967, 0.1377629191, -0.1827098131, 0.0120345503, -0.0652053729, -0.0716543645, 0.2884762883, 0.1337208897, 0.0928258523, 0.3119993508, 0.107832633, 0.0081728734, -0.4893480241, -0.126675874, -0.1730902493, 0.3339040279, -0.5299002528, -0.1459738761, -0.3315994143, -0.2488908172, -0.1643963903, -0.3393756151, -0.0086973635, -0.1727552265, -0.0739422143, 0.2299685627, -0.2515612841, 0.3363701105, -0.0980428159, 0.1093044877, 0.190643549, -0.0513182208, -0.1053448841, -0.0696240515, -0.0017026784, 0.0683406815, 0.4655223787, 0.2131137848, 0.2999579608, -0.1394965351, 0.0469151214, -0.1156079993, -0.0262309033, 0.0053245127, -0.1554776579, 0.2220007777, 0.0740110874, 0.2549054921, -0.0642985404, -0.6536604762, 0.4810531735, -0.0160900746, -0.145265311, 0.4130648077, -0.0233465992, 0.076426439, -0.1380883753, -0.3018043041, -0.1945597678, -0.5705913305, 0.3227354288, -0.1257702112, 0.2020579129, 0.3859262466, -0.0013876472, 0.309215188, -0.0151658785, 0.3429300785, -0.2122427672, -0.1508434266, 0.2838154435, -0.28112638, -0.2468168288, -0.3224193752, 0.0552236736, 0.2796714604, -0.0112667391, -0.3107512891, -0.1082312837, -0.0971764028, -0.1651501805, 0.0173944887, 0.087134935, 0.03404456, 0.2222819924, -0.040998783, -0.0719556585, -0.1744195223, -0.0211805329, -0.0760608912, -0.1083604917, 0.0802407041, 0.7200375795, -0.3476124704, 0.5735512972, 0.2487344593, 0.043838568, 0.3965497613, -0.0171000157, 0.2510747015, -0.4302445352, -0.4340074062, -0.0733800679, -0.1186304986, 0.0843298435, 0.0457869321, 0.1166925728, -0.0574712791, -0.1723237634, 0.1374427229, -0.1851029992, -0.198564142, 0.0591130368, -0.1128574163, 0.2146125734, -0.0176895671, 0.1393083483, -0.0013668957, -0.0120198457, 0.0369372331, 0.1190351471, 0.1003901511, -0.1304516047, -0.5379375815, -0.0492838062, -0.2373073548, 0.3300650716, 0.1331019104, 0.6754535437, -0.1757068783, -0.155489251, -0.0177605078, 0.1992754638, 0.1531227976, 0.1091936976, 0.0642263964, 0.2403246909, 0.0474230871, -0.3574055433, -0.0340433121, -0.3311011195, 0.2101685405, -0.018184267, 0.3768242002, -0.2476569712, -0.2539379597, 0.3404429257, 0.2983768284, 0.0909791142, -0.1627546698, -0.2555762529, -0.3246850371, -0.2859316468, 0.0604032725, 0.0493938699, 0.3640836775, 0.0705544278, 0.0446208604, -0.0094779814, 0.0058866646, 0.3318360448, 0.0171929095, 0.3859044313, 0.1688808203, 0.2921620011, 0.2084466517, -0.038020853, 0.4344288409, 0.5396823287, -0.1491190046, -0.2729014754, 0.175034374, 0.1257831156, 0.154456988, 0.1800495833, -0.0136064477, 0.0986894295, 0.0543411598, 0.2142157108, -0.2720453739, 0.0670820624, 0.4417865574, 0.1236198694, -0.4740126729, -0.4279277623, 0.5069893599, -0.0321346335, 0.0295995586, 0.5055595636, 0.4619971812, -0.1705470383, 0.2618415356, -0.2013262957, 0.7946383953, 0.0257716868, 0.1139731482, 0.5444715619, -0.2822901011, 0.2094344348, 0.0695159882, 0.0656695142, -0.0344627313, -0.1164759323, -0.022824347, -0.0662589818, -0.044313781, 0.0061206459, -0.192897886, 0.2363500446, -0.0556624681, 0.07206925, -0.0121376328, 0.174053967, -0.1788765788, -0.2604475915, -0.4901564121, 0.1701418757, -0.003488699, 0.0504138246, -0.0578178987, -0.1490116119, 0.2124679685, -0.2789351046, -0.2062697262, -0.0689271539, -0.2794614732, 0.2728653252, 0.1322939545, -0.4374855161, 0.2901209295, 0.0789542869, -0.274112612, 0.0652093813, -0.111556381, 0.003123841, -0.0196612068, 0.1433192641, -0.1060946509, 0.1415982097, 0.2284477204, -0.0000285914, -0.1367738545, 0.0490191504, -0.0108025437, -0.1614104062, 0.1251275986, 0.0804983526, -0.0227595344, -0.3540940583, -0.4032341242, -0.2976572812, 0.0630339831, -0.1649257541, 0.1869927347, -0.0435426235, -0.2062173784, 0.1099359095, 0.1616443694, -0.1682066768, 0.0288271699, 0.43011114, -0.1315004081, -0.0143223349, 0.625410378, 0.2552022934, -0.2159004956, -0.2031275928, 0.1446219236, 0.2947931588, -0.5281530619, 0.1057301983, 0.138384819, 0.0721822754, -0.0424064547, 0.0768561363, 0.032076519, -0.0621714778, 0.0034387894, -0.3878534734, -0.4461018741, 0.4764640033, 0.0383437909, 0.3077192903, -0.0683698729, 0.0776227489, -0.0384824015, -0.0365158282, -0.357236594, 0.1556639522, -0.136892274, 0.2646570802, 0.2682210505, -0.1016394421, 0.1730790883, -0.0572273135, 0.2435115129, 0.1616856605, -0.3068462312, -0.2195842117, 0.0075293309, 0.133168608, -0.1267433465, -0.3238579929, -0.0937257558, 0.0399713852, -0.1105292141, -0.189805612, 0.0297232233, 0.2439654768, -0.1321360171, 0.0423297174, 0.0131283468, 0.0571433604, 0.0400794782, 0.2721767128, -0.0328204259, -0.1442993134, -0.0099608647, 0.0465260968, -0.0697733015, -0.1018799096, -0.1238668188, 0.2403119951, 0.0624787025, -0.217369169, 0.3143438995, -0.2445403486, 0.0539047047, 0.1484666616, 0.530923605, 0.39252913, -0.1849293262, -0.049104955, 0.0099522714, 0.2348107398, -0.2104187906, 0.0018874211, -0.0162306186, -0.0694372505, -0.0031737501, 0.1098012924, -0.1559690237, 0.0310440287, 0.0228101257, 0.0795718133, 0.1721286178, 0.0215079635, 0.1747636199, 0.311403513, 0.003660053, -0.1215305105, 0.1563751847, 0.0684848055, 0.183561638, 0.1623731256, -0.4743472636, 0.1918403953, 0.0149951568, -0.0826008469, 0.2591964006, -0.4521776736, -0.3418800831, 0.2483375221, 0.0055767228, 0.0641510859, -0.0518444255, 0.5933591127, -0.3439289331, -0.1761868745, 0.0309324805, 0.0645859018, -0.1674471647, -0.0903315768, -0.109053418, -0.1539038122, -0.1901973039, -0.1073047221, -0.0719844773, 0.1967675835, 0.0566971712, -0.0025778923, 0.0553552881, -0.3635109663, -0.1061835885, 0.439558804, 0.039973449, -0.2202778608, 0.3290403187, 0.5497704148, 0.0505050533, 0.277053535, 0.4189479053, 0.6585162282, 0.2836864293, -0.1108681783, 0.2057618052, -0.1072536632, -0.1365176588, 0.2498653084, 0.3022421598, 0.0643842965, 0.2294769585, 0.301127702, 0.2583593428, -0.1448316723, -0.0013112918, 0.045321729, 0.0686012357, -0.2826192379, 0.238090843, -0.4326449931, -0.1528446078, -0.0962959602, -0.1489623338, -0.3986388147, -0.0117641976, 0.3320273161, 0.014438658, 0.0632747412, 0.0074570701, 0.0897414163, -0.1905127466, 0.4545332491, 0.4513519704, 0.2124735862, -0.2298282236, -0.2835383415, -0.733703196, -0.0105460705, 0.1294799, 0.0917882547, 0.1310997158, -0.069094643, 0.2242867649, 0.1999375224, 0.0868915692, -0.0161370859, -0.2716553509, 0.0871702135, -0.2888908684, 0.0029543533, -0.0735765323, 0.082994543, -0.1167280078, -0.3641695678, 0.1444768757, -0.1506580412, 0.0530283004, -0.0371970572, 0.1579431891, -0.2850119472, -0.0447252877, 0.103793256, 0.1493764669, 0.5704001188, -0.164316237, -0.0952977613, -0.074875854, -0.526931107, 0.0917560309, 0.2032713443, 0.0661780089, 0.6200516224, 0.046954304, -0.2369939089, -0.2829699814, 0.4780107141, -0.2343085706, -0.0482914336, -0.4387037158, 0.1248682588, -0.2072322518, -0.0622545816, 0.0827443078, -0.0491207018, 0.0358365551, 0.3579895496, -0.2727117538, -0.444524467, 0.7492797971, -0.3448845744, -0.2888310552, 0.0400675051, 0.2385350317, 0.2671481073, -0.0994752347, -0.8629997969, 0.2285515964, 0.2634726465, -0.160517469, -0.2602975965, 0.2166382074, -0.1372414529, -0.0105833169, -0.1032001004, 0.3553936779, 0.0227283593, -0.2140251547, 0.1333089471, -0.3461788297 ]
https://github.com/huggingface/datasets/issues/3851
Load audio dataset error
@albertvillanova Thanks for your reply. The environment info below ## Environment info - `datasets` version: 1.18.3 - Platform: Linux-4.19.91-007.ali4000.alios7.x86_64-x86_64-with-debian-buster-sid - Python version: 3.6.12 - PyArrow version: 6.0.1
## Load audio dataset error Hi, when I load audio dataset following https://huggingface.co/docs/datasets/audio_process and https://github.com/huggingface/datasets/tree/master/datasets/superb, ``` from datasets import load_dataset, load_metric, Audio raw_datasets = load_dataset("superb", "ks", split="train") print(raw_datasets[0]["audio"]) ``` following errors occur ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-169-3f8253239fa0> in <module> ----> 1 raw_datasets[0]["audio"] /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in __getitem__(self, key) 1924 """Can be used to index columns (by string names) or rows (by integer index or iterable of indices or bools).""" 1925 return self._getitem( -> 1926 key, 1927 ) 1928 /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in _getitem(self, key, decoded, **kwargs) 1909 pa_subtable = query_table(self._data, key, indices=self._indices if self._indices is not None else None) 1910 formatted_output = format_table( -> 1911 pa_subtable, key, formatter=formatter, format_columns=format_columns, output_all_columns=output_all_columns 1912 ) 1913 return formatted_output /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_table(table, key, formatter, format_columns, output_all_columns) 530 python_formatter = PythonFormatter(features=None) 531 if format_columns is None: --> 532 return formatter(pa_table, query_type=query_type) 533 elif query_type == "column": 534 if key in format_columns: /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in __call__(self, pa_table, query_type) 279 def __call__(self, pa_table: pa.Table, query_type: str) -> Union[RowFormat, ColumnFormat, BatchFormat]: 280 if query_type == "row": --> 281 return self.format_row(pa_table) 282 elif query_type == "column": 283 return self.format_column(pa_table) /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_row(self, pa_table) 310 row = self.python_arrow_extractor().extract_row(pa_table) 311 if self.decoded: --> 312 row = self.python_features_decoder.decode_row(row) 313 return row 314 /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in decode_row(self, row) 219 220 def decode_row(self, row: dict) -> dict: --> 221 return self.features.decode_example(row) if self.features else row 222 223 def decode_column(self, column: list, column_name: str) -> list: /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_example(self, example) 1320 else value 1321 for column_name, (feature, value) in utils.zip_dict( -> 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) 1324 } /usr/lib/python3.6/site-packages/datasets/features/features.py in <dictcomp>(.0) 1319 if self._column_requires_decoding[column_name] 1320 else value -> 1321 for column_name, (feature, value) in utils.zip_dict( 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_nested_example(schema, obj) 1053 # Object with special decoding: 1054 elif isinstance(schema, (Audio, Image)): -> 1055 return schema.decode_example(obj) if obj is not None else None 1056 return obj 1057 /usr/lib/python3.6/site-packages/datasets/features/audio.py in decode_example(self, value) 100 array, sampling_rate = self._decode_non_mp3_file_like(file) 101 else: --> 102 array, sampling_rate = self._decode_non_mp3_path_like(path) 103 return {"path": path, "array": array, "sampling_rate": sampling_rate} 104 /usr/lib/python3.6/site-packages/datasets/features/audio.py in _decode_non_mp3_path_like(self, path) 143 144 with xopen(path, "rb") as f: --> 145 array, sampling_rate = librosa.load(f, sr=self.sampling_rate, mono=self.mono) 146 return array, sampling_rate 147 /usr/lib/python3.6/site-packages/librosa/core/audio.py in load(path, sr, mono, offset, duration, dtype, res_type) 110 111 y = [] --> 112 with audioread.audio_open(os.path.realpath(path)) as input_file: 113 sr_native = input_file.samplerate 114 n_channels = input_file.channels /usr/lib/python3.6/posixpath.py in realpath(filename) 392 """Return the canonical path of the specified filename, eliminating any 393 symbolic links encountered in the path.""" --> 394 filename = os.fspath(filename) 395 path, ok = _joinrealpath(filename[:0], filename, {}) 396 return abspath(path) TypeError: expected str, bytes or os.PathLike object, not _io.BufferedReader ``` ## Expected results ``` >>> raw_datasets[0]["audio"] {'array': array([-0.0005188 , -0.00109863, 0.00030518, ..., 0.01730347, 0.01623535, 0.01724243]), 'path': '/root/.cache/huggingface/datasets/downloads/extracted/bb3a06b491a64aff422f307cd8116820b4f61d6f32fcadcfc554617e84383cb7/bed/026290a7_nohash_0.wav', 'sampling_rate': 16000} ```
27
Load audio dataset error ## Load audio dataset error Hi, when I load audio dataset following https://huggingface.co/docs/datasets/audio_process and https://github.com/huggingface/datasets/tree/master/datasets/superb, ``` from datasets import load_dataset, load_metric, Audio raw_datasets = load_dataset("superb", "ks", split="train") print(raw_datasets[0]["audio"]) ``` following errors occur ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-169-3f8253239fa0> in <module> ----> 1 raw_datasets[0]["audio"] /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in __getitem__(self, key) 1924 """Can be used to index columns (by string names) or rows (by integer index or iterable of indices or bools).""" 1925 return self._getitem( -> 1926 key, 1927 ) 1928 /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in _getitem(self, key, decoded, **kwargs) 1909 pa_subtable = query_table(self._data, key, indices=self._indices if self._indices is not None else None) 1910 formatted_output = format_table( -> 1911 pa_subtable, key, formatter=formatter, format_columns=format_columns, output_all_columns=output_all_columns 1912 ) 1913 return formatted_output /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_table(table, key, formatter, format_columns, output_all_columns) 530 python_formatter = PythonFormatter(features=None) 531 if format_columns is None: --> 532 return formatter(pa_table, query_type=query_type) 533 elif query_type == "column": 534 if key in format_columns: /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in __call__(self, pa_table, query_type) 279 def __call__(self, pa_table: pa.Table, query_type: str) -> Union[RowFormat, ColumnFormat, BatchFormat]: 280 if query_type == "row": --> 281 return self.format_row(pa_table) 282 elif query_type == "column": 283 return self.format_column(pa_table) /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_row(self, pa_table) 310 row = self.python_arrow_extractor().extract_row(pa_table) 311 if self.decoded: --> 312 row = self.python_features_decoder.decode_row(row) 313 return row 314 /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in decode_row(self, row) 219 220 def decode_row(self, row: dict) -> dict: --> 221 return self.features.decode_example(row) if self.features else row 222 223 def decode_column(self, column: list, column_name: str) -> list: /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_example(self, example) 1320 else value 1321 for column_name, (feature, value) in utils.zip_dict( -> 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) 1324 } /usr/lib/python3.6/site-packages/datasets/features/features.py in <dictcomp>(.0) 1319 if self._column_requires_decoding[column_name] 1320 else value -> 1321 for column_name, (feature, value) in utils.zip_dict( 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_nested_example(schema, obj) 1053 # Object with special decoding: 1054 elif isinstance(schema, (Audio, Image)): -> 1055 return schema.decode_example(obj) if obj is not None else None 1056 return obj 1057 /usr/lib/python3.6/site-packages/datasets/features/audio.py in decode_example(self, value) 100 array, sampling_rate = self._decode_non_mp3_file_like(file) 101 else: --> 102 array, sampling_rate = self._decode_non_mp3_path_like(path) 103 return {"path": path, "array": array, "sampling_rate": sampling_rate} 104 /usr/lib/python3.6/site-packages/datasets/features/audio.py in _decode_non_mp3_path_like(self, path) 143 144 with xopen(path, "rb") as f: --> 145 array, sampling_rate = librosa.load(f, sr=self.sampling_rate, mono=self.mono) 146 return array, sampling_rate 147 /usr/lib/python3.6/site-packages/librosa/core/audio.py in load(path, sr, mono, offset, duration, dtype, res_type) 110 111 y = [] --> 112 with audioread.audio_open(os.path.realpath(path)) as input_file: 113 sr_native = input_file.samplerate 114 n_channels = input_file.channels /usr/lib/python3.6/posixpath.py in realpath(filename) 392 """Return the canonical path of the specified filename, eliminating any 393 symbolic links encountered in the path.""" --> 394 filename = os.fspath(filename) 395 path, ok = _joinrealpath(filename[:0], filename, {}) 396 return abspath(path) TypeError: expected str, bytes or os.PathLike object, not _io.BufferedReader ``` ## Expected results ``` >>> raw_datasets[0]["audio"] {'array': array([-0.0005188 , -0.00109863, 0.00030518, ..., 0.01730347, 0.01623535, 0.01724243]), 'path': '/root/.cache/huggingface/datasets/downloads/extracted/bb3a06b491a64aff422f307cd8116820b4f61d6f32fcadcfc554617e84383cb7/bed/026290a7_nohash_0.wav', 'sampling_rate': 16000} ``` @albertvillanova Thanks for your reply. The environment info below ## Environment info - `datasets` version: 1.18.3 - Platform: Linux-4.19.91-007.ali4000.alios7.x86_64-x86_64-with-debian-buster-sid - Python version: 3.6.12 - PyArrow version: 6.0.1
[ -0.3769887686, -0.1154066622, -0.0308203232, 0.3962250352, 0.4579704106, 0.0699847117, 0.2902419865, 0.3150895238, -0.0530284159, 0.1748975515, -0.535605073, 0.3172013462, -0.2974061668, 0.0095627727, -0.0179305263, -0.4144314528, -0.0624870807, 0.160766542, -0.3674670458, 0.089692004, -0.3725433052, 0.1743069738, -0.326178968, 0.286529243, -0.2181515843, -0.1066490114, 0.1983118057, 0.105207175, -0.4044357538, -0.556841135, 0.2095939517, -0.2148835957, 0.2718892694, 0.6587948799, -0.000109111, 0.1062147766, 0.3792860508, -0.0474428944, -0.4135833979, -0.2822248638, -0.4285669625, 0.0596221052, 0.148973614, -0.1274241358, -0.0034840354, -0.4431419671, -0.1901089549, -0.3268807232, 0.4615100026, 0.2684743702, 0.299923569, 0.4350044727, 0.1923298091, -0.2203473002, 0.1194323525, 0.1547944993, 0.0173962973, 0.420232445, 0.0091916714, 0.0491667949, 0.0069470867, 0.2984601259, -0.1738764495, 0.176335305, 0.2298507839, -0.1352758855, -0.1675222218, -0.1879022121, 0.1613013744, 0.1987243742, 0.4726321697, -0.481564045, -0.3459494114, -0.0386825763, 0.0690231547, -0.4702773094, 0.0801249966, 0.1715594679, -0.097200349, 0.0952934846, -0.2051636726, 0.0465241112, -0.0686936229, 0.168274492, 0.237547189, 0.0064471471, -0.3387322426, 0.037226785, 0.2738148272, -0.214198038, -0.1669425219, 0.0483628735, -0.1655763984, 0.3656981587, -0.4240424633, 0.1116564199, 0.0456987768, -0.1373231709, 0.0146450354, -0.0403534286, 0.0176254306, 0.0415860415, 0.0705677122, 0.1646608859, 0.2296694219, 0.0986421928, 0.1528078467, 0.1120616496, 0.1326157749, 0.233694315, 0.0924878195, -0.0318904929, -0.2244520187, -0.2344274521, 0.0350969434, 0.113026835, 0.4560840726, -0.2372628003, -0.409147203, 0.0270190239, -0.0974415839, -0.0856009945, 0.3154964149, 0.2793029249, 0.2499224544, 0.1025631353, 0.2195271403, 0.3914906383, -0.1359719038, 0.0922218487, -0.1342357844, 0.0833789259, -0.0309071001, 0.1335763037, 0.2870158553, -0.2224529982, 0.155042395, 0.2077089995, 0.1261918843, -0.1610331088, 0.0189269744, -0.0493070185, -0.2274558991, 0.3239481747, -0.0960230976, 0.149895519, 0.1393885911, 0.0410627052, -0.1044393852, 0.0706786737, -0.1952908188, -0.3029635549, -0.1049854904, 0.2461148202, -0.0528141372, 0.1340738535, -0.4590174556, -0.0732224956, 0.1385059655, -0.3459164798, 0.0648971051, -0.3205714822, -0.2848424315, 0.0183811989, 0.3550864458, 0.2735077441, -0.2584556937, -0.1789944768, -0.1116052195, -0.2246557325, 0.0354218222, 0.3527233899, 0.0290168524, 0.2925775051, -0.1492988616, -0.0259825625, 0.2977193892, -0.3080950975, -0.2015810162, -0.0683948547, -0.0213342197, 0.120624356, -0.0819288269, -0.1163110808, 0.1097764596, -0.0468305983, 0.3195452392, 0.0579704642, 0.0881777629, -0.0640452057, -0.003844976, -0.105563201, -0.0519388616, 0.2132583857, -0.2208276689, 0.0910753682, -0.0467554331, -0.0094856359, 0.0476783179, -0.0992690697, -0.0255501252, 0.1598066241, 0.2196204066, 0.0084251733, -0.0835882053, -0.4422389269, -0.2576403022, 0.0173045509, -0.0913112462, 0.1824976653, -0.3626768291, -0.0666080266, -0.2478411943, 0.1375557929, -0.3986141682, 0.0582087748, 0.1390696019, 0.0923515782, -0.0479778908, 0.0631792545, -0.24362728, -0.0493090414, -0.0577991456, 0.0540163778, -0.4655534029, 0.0597280599, 0.0191244036, -0.1688704789, 0.2765918672, 0.3562169373, 0.2761612833, -0.0265947189, -0.2120909542, 0.5099461079, 0.106743902, 0.1462808251, -0.3429251015, 0.0101279141, 0.0833968148, -0.3226529658, -0.0090677002, -0.0623293556, 0.2937448323, -0.0997377411, -0.0672303885, 0.4583497643, -0.1053344458, 0.3200312555, 0.0043086479, -0.0589842908, 0.1802782118, 0.4128148854, -0.0799910277, -0.1413905025, 0.1623202711, -0.1702552587, 0.1915430427, -0.054732617, -0.3017840087, -0.3185962737, 0.2729862332, -0.1987492889, 0.0974558592, 0.1345565319, -0.1964373142, 0.0145387389, 0.2190853953, -0.0600781925, 0.3460254967, 0.1377629191, -0.1827098131, 0.0120345503, -0.0652053729, -0.0716543645, 0.2884762883, 0.1337208897, 0.0928258523, 0.3119993508, 0.107832633, 0.0081728734, -0.4893480241, -0.126675874, -0.1730902493, 0.3339040279, -0.5299002528, -0.1459738761, -0.3315994143, -0.2488908172, -0.1643963903, -0.3393756151, -0.0086973635, -0.1727552265, -0.0739422143, 0.2299685627, -0.2515612841, 0.3363701105, -0.0980428159, 0.1093044877, 0.190643549, -0.0513182208, -0.1053448841, -0.0696240515, -0.0017026784, 0.0683406815, 0.4655223787, 0.2131137848, 0.2999579608, -0.1394965351, 0.0469151214, -0.1156079993, -0.0262309033, 0.0053245127, -0.1554776579, 0.2220007777, 0.0740110874, 0.2549054921, -0.0642985404, -0.6536604762, 0.4810531735, -0.0160900746, -0.145265311, 0.4130648077, -0.0233465992, 0.076426439, -0.1380883753, -0.3018043041, -0.1945597678, -0.5705913305, 0.3227354288, -0.1257702112, 0.2020579129, 0.3859262466, -0.0013876472, 0.309215188, -0.0151658785, 0.3429300785, -0.2122427672, -0.1508434266, 0.2838154435, -0.28112638, -0.2468168288, -0.3224193752, 0.0552236736, 0.2796714604, -0.0112667391, -0.3107512891, -0.1082312837, -0.0971764028, -0.1651501805, 0.0173944887, 0.087134935, 0.03404456, 0.2222819924, -0.040998783, -0.0719556585, -0.1744195223, -0.0211805329, -0.0760608912, -0.1083604917, 0.0802407041, 0.7200375795, -0.3476124704, 0.5735512972, 0.2487344593, 0.043838568, 0.3965497613, -0.0171000157, 0.2510747015, -0.4302445352, -0.4340074062, -0.0733800679, -0.1186304986, 0.0843298435, 0.0457869321, 0.1166925728, -0.0574712791, -0.1723237634, 0.1374427229, -0.1851029992, -0.198564142, 0.0591130368, -0.1128574163, 0.2146125734, -0.0176895671, 0.1393083483, -0.0013668957, -0.0120198457, 0.0369372331, 0.1190351471, 0.1003901511, -0.1304516047, -0.5379375815, -0.0492838062, -0.2373073548, 0.3300650716, 0.1331019104, 0.6754535437, -0.1757068783, -0.155489251, -0.0177605078, 0.1992754638, 0.1531227976, 0.1091936976, 0.0642263964, 0.2403246909, 0.0474230871, -0.3574055433, -0.0340433121, -0.3311011195, 0.2101685405, -0.018184267, 0.3768242002, -0.2476569712, -0.2539379597, 0.3404429257, 0.2983768284, 0.0909791142, -0.1627546698, -0.2555762529, -0.3246850371, -0.2859316468, 0.0604032725, 0.0493938699, 0.3640836775, 0.0705544278, 0.0446208604, -0.0094779814, 0.0058866646, 0.3318360448, 0.0171929095, 0.3859044313, 0.1688808203, 0.2921620011, 0.2084466517, -0.038020853, 0.4344288409, 0.5396823287, -0.1491190046, -0.2729014754, 0.175034374, 0.1257831156, 0.154456988, 0.1800495833, -0.0136064477, 0.0986894295, 0.0543411598, 0.2142157108, -0.2720453739, 0.0670820624, 0.4417865574, 0.1236198694, -0.4740126729, -0.4279277623, 0.5069893599, -0.0321346335, 0.0295995586, 0.5055595636, 0.4619971812, -0.1705470383, 0.2618415356, -0.2013262957, 0.7946383953, 0.0257716868, 0.1139731482, 0.5444715619, -0.2822901011, 0.2094344348, 0.0695159882, 0.0656695142, -0.0344627313, -0.1164759323, -0.022824347, -0.0662589818, -0.044313781, 0.0061206459, -0.192897886, 0.2363500446, -0.0556624681, 0.07206925, -0.0121376328, 0.174053967, -0.1788765788, -0.2604475915, -0.4901564121, 0.1701418757, -0.003488699, 0.0504138246, -0.0578178987, -0.1490116119, 0.2124679685, -0.2789351046, -0.2062697262, -0.0689271539, -0.2794614732, 0.2728653252, 0.1322939545, -0.4374855161, 0.2901209295, 0.0789542869, -0.274112612, 0.0652093813, -0.111556381, 0.003123841, -0.0196612068, 0.1433192641, -0.1060946509, 0.1415982097, 0.2284477204, -0.0000285914, -0.1367738545, 0.0490191504, -0.0108025437, -0.1614104062, 0.1251275986, 0.0804983526, -0.0227595344, -0.3540940583, -0.4032341242, -0.2976572812, 0.0630339831, -0.1649257541, 0.1869927347, -0.0435426235, -0.2062173784, 0.1099359095, 0.1616443694, -0.1682066768, 0.0288271699, 0.43011114, -0.1315004081, -0.0143223349, 0.625410378, 0.2552022934, -0.2159004956, -0.2031275928, 0.1446219236, 0.2947931588, -0.5281530619, 0.1057301983, 0.138384819, 0.0721822754, -0.0424064547, 0.0768561363, 0.032076519, -0.0621714778, 0.0034387894, -0.3878534734, -0.4461018741, 0.4764640033, 0.0383437909, 0.3077192903, -0.0683698729, 0.0776227489, -0.0384824015, -0.0365158282, -0.357236594, 0.1556639522, -0.136892274, 0.2646570802, 0.2682210505, -0.1016394421, 0.1730790883, -0.0572273135, 0.2435115129, 0.1616856605, -0.3068462312, -0.2195842117, 0.0075293309, 0.133168608, -0.1267433465, -0.3238579929, -0.0937257558, 0.0399713852, -0.1105292141, -0.189805612, 0.0297232233, 0.2439654768, -0.1321360171, 0.0423297174, 0.0131283468, 0.0571433604, 0.0400794782, 0.2721767128, -0.0328204259, -0.1442993134, -0.0099608647, 0.0465260968, -0.0697733015, -0.1018799096, -0.1238668188, 0.2403119951, 0.0624787025, -0.217369169, 0.3143438995, -0.2445403486, 0.0539047047, 0.1484666616, 0.530923605, 0.39252913, -0.1849293262, -0.049104955, 0.0099522714, 0.2348107398, -0.2104187906, 0.0018874211, -0.0162306186, -0.0694372505, -0.0031737501, 0.1098012924, -0.1559690237, 0.0310440287, 0.0228101257, 0.0795718133, 0.1721286178, 0.0215079635, 0.1747636199, 0.311403513, 0.003660053, -0.1215305105, 0.1563751847, 0.0684848055, 0.183561638, 0.1623731256, -0.4743472636, 0.1918403953, 0.0149951568, -0.0826008469, 0.2591964006, -0.4521776736, -0.3418800831, 0.2483375221, 0.0055767228, 0.0641510859, -0.0518444255, 0.5933591127, -0.3439289331, -0.1761868745, 0.0309324805, 0.0645859018, -0.1674471647, -0.0903315768, -0.109053418, -0.1539038122, -0.1901973039, -0.1073047221, -0.0719844773, 0.1967675835, 0.0566971712, -0.0025778923, 0.0553552881, -0.3635109663, -0.1061835885, 0.439558804, 0.039973449, -0.2202778608, 0.3290403187, 0.5497704148, 0.0505050533, 0.277053535, 0.4189479053, 0.6585162282, 0.2836864293, -0.1108681783, 0.2057618052, -0.1072536632, -0.1365176588, 0.2498653084, 0.3022421598, 0.0643842965, 0.2294769585, 0.301127702, 0.2583593428, -0.1448316723, -0.0013112918, 0.045321729, 0.0686012357, -0.2826192379, 0.238090843, -0.4326449931, -0.1528446078, -0.0962959602, -0.1489623338, -0.3986388147, -0.0117641976, 0.3320273161, 0.014438658, 0.0632747412, 0.0074570701, 0.0897414163, -0.1905127466, 0.4545332491, 0.4513519704, 0.2124735862, -0.2298282236, -0.2835383415, -0.733703196, -0.0105460705, 0.1294799, 0.0917882547, 0.1310997158, -0.069094643, 0.2242867649, 0.1999375224, 0.0868915692, -0.0161370859, -0.2716553509, 0.0871702135, -0.2888908684, 0.0029543533, -0.0735765323, 0.082994543, -0.1167280078, -0.3641695678, 0.1444768757, -0.1506580412, 0.0530283004, -0.0371970572, 0.1579431891, -0.2850119472, -0.0447252877, 0.103793256, 0.1493764669, 0.5704001188, -0.164316237, -0.0952977613, -0.074875854, -0.526931107, 0.0917560309, 0.2032713443, 0.0661780089, 0.6200516224, 0.046954304, -0.2369939089, -0.2829699814, 0.4780107141, -0.2343085706, -0.0482914336, -0.4387037158, 0.1248682588, -0.2072322518, -0.0622545816, 0.0827443078, -0.0491207018, 0.0358365551, 0.3579895496, -0.2727117538, -0.444524467, 0.7492797971, -0.3448845744, -0.2888310552, 0.0400675051, 0.2385350317, 0.2671481073, -0.0994752347, -0.8629997969, 0.2285515964, 0.2634726465, -0.160517469, -0.2602975965, 0.2166382074, -0.1372414529, -0.0105833169, -0.1032001004, 0.3553936779, 0.0227283593, -0.2140251547, 0.1333089471, -0.3461788297 ]
https://github.com/huggingface/datasets/issues/3851
Load audio dataset error
Thanks @lemoner20, I cannot reproduce your issue in datasets version 1.18.3 either. Maybe redownloading the data file may work if you had already cached this dataset previously. Could you please try passing "force_redownload"? ```python raw_datasets = load_dataset("superb", "ks", split="train", download_mode="force_redownload")
## Load audio dataset error Hi, when I load audio dataset following https://huggingface.co/docs/datasets/audio_process and https://github.com/huggingface/datasets/tree/master/datasets/superb, ``` from datasets import load_dataset, load_metric, Audio raw_datasets = load_dataset("superb", "ks", split="train") print(raw_datasets[0]["audio"]) ``` following errors occur ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-169-3f8253239fa0> in <module> ----> 1 raw_datasets[0]["audio"] /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in __getitem__(self, key) 1924 """Can be used to index columns (by string names) or rows (by integer index or iterable of indices or bools).""" 1925 return self._getitem( -> 1926 key, 1927 ) 1928 /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in _getitem(self, key, decoded, **kwargs) 1909 pa_subtable = query_table(self._data, key, indices=self._indices if self._indices is not None else None) 1910 formatted_output = format_table( -> 1911 pa_subtable, key, formatter=formatter, format_columns=format_columns, output_all_columns=output_all_columns 1912 ) 1913 return formatted_output /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_table(table, key, formatter, format_columns, output_all_columns) 530 python_formatter = PythonFormatter(features=None) 531 if format_columns is None: --> 532 return formatter(pa_table, query_type=query_type) 533 elif query_type == "column": 534 if key in format_columns: /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in __call__(self, pa_table, query_type) 279 def __call__(self, pa_table: pa.Table, query_type: str) -> Union[RowFormat, ColumnFormat, BatchFormat]: 280 if query_type == "row": --> 281 return self.format_row(pa_table) 282 elif query_type == "column": 283 return self.format_column(pa_table) /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_row(self, pa_table) 310 row = self.python_arrow_extractor().extract_row(pa_table) 311 if self.decoded: --> 312 row = self.python_features_decoder.decode_row(row) 313 return row 314 /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in decode_row(self, row) 219 220 def decode_row(self, row: dict) -> dict: --> 221 return self.features.decode_example(row) if self.features else row 222 223 def decode_column(self, column: list, column_name: str) -> list: /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_example(self, example) 1320 else value 1321 for column_name, (feature, value) in utils.zip_dict( -> 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) 1324 } /usr/lib/python3.6/site-packages/datasets/features/features.py in <dictcomp>(.0) 1319 if self._column_requires_decoding[column_name] 1320 else value -> 1321 for column_name, (feature, value) in utils.zip_dict( 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_nested_example(schema, obj) 1053 # Object with special decoding: 1054 elif isinstance(schema, (Audio, Image)): -> 1055 return schema.decode_example(obj) if obj is not None else None 1056 return obj 1057 /usr/lib/python3.6/site-packages/datasets/features/audio.py in decode_example(self, value) 100 array, sampling_rate = self._decode_non_mp3_file_like(file) 101 else: --> 102 array, sampling_rate = self._decode_non_mp3_path_like(path) 103 return {"path": path, "array": array, "sampling_rate": sampling_rate} 104 /usr/lib/python3.6/site-packages/datasets/features/audio.py in _decode_non_mp3_path_like(self, path) 143 144 with xopen(path, "rb") as f: --> 145 array, sampling_rate = librosa.load(f, sr=self.sampling_rate, mono=self.mono) 146 return array, sampling_rate 147 /usr/lib/python3.6/site-packages/librosa/core/audio.py in load(path, sr, mono, offset, duration, dtype, res_type) 110 111 y = [] --> 112 with audioread.audio_open(os.path.realpath(path)) as input_file: 113 sr_native = input_file.samplerate 114 n_channels = input_file.channels /usr/lib/python3.6/posixpath.py in realpath(filename) 392 """Return the canonical path of the specified filename, eliminating any 393 symbolic links encountered in the path.""" --> 394 filename = os.fspath(filename) 395 path, ok = _joinrealpath(filename[:0], filename, {}) 396 return abspath(path) TypeError: expected str, bytes or os.PathLike object, not _io.BufferedReader ``` ## Expected results ``` >>> raw_datasets[0]["audio"] {'array': array([-0.0005188 , -0.00109863, 0.00030518, ..., 0.01730347, 0.01623535, 0.01724243]), 'path': '/root/.cache/huggingface/datasets/downloads/extracted/bb3a06b491a64aff422f307cd8116820b4f61d6f32fcadcfc554617e84383cb7/bed/026290a7_nohash_0.wav', 'sampling_rate': 16000} ```
40
Load audio dataset error ## Load audio dataset error Hi, when I load audio dataset following https://huggingface.co/docs/datasets/audio_process and https://github.com/huggingface/datasets/tree/master/datasets/superb, ``` from datasets import load_dataset, load_metric, Audio raw_datasets = load_dataset("superb", "ks", split="train") print(raw_datasets[0]["audio"]) ``` following errors occur ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-169-3f8253239fa0> in <module> ----> 1 raw_datasets[0]["audio"] /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in __getitem__(self, key) 1924 """Can be used to index columns (by string names) or rows (by integer index or iterable of indices or bools).""" 1925 return self._getitem( -> 1926 key, 1927 ) 1928 /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in _getitem(self, key, decoded, **kwargs) 1909 pa_subtable = query_table(self._data, key, indices=self._indices if self._indices is not None else None) 1910 formatted_output = format_table( -> 1911 pa_subtable, key, formatter=formatter, format_columns=format_columns, output_all_columns=output_all_columns 1912 ) 1913 return formatted_output /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_table(table, key, formatter, format_columns, output_all_columns) 530 python_formatter = PythonFormatter(features=None) 531 if format_columns is None: --> 532 return formatter(pa_table, query_type=query_type) 533 elif query_type == "column": 534 if key in format_columns: /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in __call__(self, pa_table, query_type) 279 def __call__(self, pa_table: pa.Table, query_type: str) -> Union[RowFormat, ColumnFormat, BatchFormat]: 280 if query_type == "row": --> 281 return self.format_row(pa_table) 282 elif query_type == "column": 283 return self.format_column(pa_table) /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_row(self, pa_table) 310 row = self.python_arrow_extractor().extract_row(pa_table) 311 if self.decoded: --> 312 row = self.python_features_decoder.decode_row(row) 313 return row 314 /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in decode_row(self, row) 219 220 def decode_row(self, row: dict) -> dict: --> 221 return self.features.decode_example(row) if self.features else row 222 223 def decode_column(self, column: list, column_name: str) -> list: /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_example(self, example) 1320 else value 1321 for column_name, (feature, value) in utils.zip_dict( -> 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) 1324 } /usr/lib/python3.6/site-packages/datasets/features/features.py in <dictcomp>(.0) 1319 if self._column_requires_decoding[column_name] 1320 else value -> 1321 for column_name, (feature, value) in utils.zip_dict( 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_nested_example(schema, obj) 1053 # Object with special decoding: 1054 elif isinstance(schema, (Audio, Image)): -> 1055 return schema.decode_example(obj) if obj is not None else None 1056 return obj 1057 /usr/lib/python3.6/site-packages/datasets/features/audio.py in decode_example(self, value) 100 array, sampling_rate = self._decode_non_mp3_file_like(file) 101 else: --> 102 array, sampling_rate = self._decode_non_mp3_path_like(path) 103 return {"path": path, "array": array, "sampling_rate": sampling_rate} 104 /usr/lib/python3.6/site-packages/datasets/features/audio.py in _decode_non_mp3_path_like(self, path) 143 144 with xopen(path, "rb") as f: --> 145 array, sampling_rate = librosa.load(f, sr=self.sampling_rate, mono=self.mono) 146 return array, sampling_rate 147 /usr/lib/python3.6/site-packages/librosa/core/audio.py in load(path, sr, mono, offset, duration, dtype, res_type) 110 111 y = [] --> 112 with audioread.audio_open(os.path.realpath(path)) as input_file: 113 sr_native = input_file.samplerate 114 n_channels = input_file.channels /usr/lib/python3.6/posixpath.py in realpath(filename) 392 """Return the canonical path of the specified filename, eliminating any 393 symbolic links encountered in the path.""" --> 394 filename = os.fspath(filename) 395 path, ok = _joinrealpath(filename[:0], filename, {}) 396 return abspath(path) TypeError: expected str, bytes or os.PathLike object, not _io.BufferedReader ``` ## Expected results ``` >>> raw_datasets[0]["audio"] {'array': array([-0.0005188 , -0.00109863, 0.00030518, ..., 0.01730347, 0.01623535, 0.01724243]), 'path': '/root/.cache/huggingface/datasets/downloads/extracted/bb3a06b491a64aff422f307cd8116820b4f61d6f32fcadcfc554617e84383cb7/bed/026290a7_nohash_0.wav', 'sampling_rate': 16000} ``` Thanks @lemoner20, I cannot reproduce your issue in datasets version 1.18.3 either. Maybe redownloading the data file may work if you had already cached this dataset previously. Could you please try passing "force_redownload"? ```python raw_datasets = load_dataset("superb", "ks", split="train", download_mode="force_redownload")
[ -0.3769887686, -0.1154066622, -0.0308203232, 0.3962250352, 0.4579704106, 0.0699847117, 0.2902419865, 0.3150895238, -0.0530284159, 0.1748975515, -0.535605073, 0.3172013462, -0.2974061668, 0.0095627727, -0.0179305263, -0.4144314528, -0.0624870807, 0.160766542, -0.3674670458, 0.089692004, -0.3725433052, 0.1743069738, -0.326178968, 0.286529243, -0.2181515843, -0.1066490114, 0.1983118057, 0.105207175, -0.4044357538, -0.556841135, 0.2095939517, -0.2148835957, 0.2718892694, 0.6587948799, -0.000109111, 0.1062147766, 0.3792860508, -0.0474428944, -0.4135833979, -0.2822248638, -0.4285669625, 0.0596221052, 0.148973614, -0.1274241358, -0.0034840354, -0.4431419671, -0.1901089549, -0.3268807232, 0.4615100026, 0.2684743702, 0.299923569, 0.4350044727, 0.1923298091, -0.2203473002, 0.1194323525, 0.1547944993, 0.0173962973, 0.420232445, 0.0091916714, 0.0491667949, 0.0069470867, 0.2984601259, -0.1738764495, 0.176335305, 0.2298507839, -0.1352758855, -0.1675222218, -0.1879022121, 0.1613013744, 0.1987243742, 0.4726321697, -0.481564045, -0.3459494114, -0.0386825763, 0.0690231547, -0.4702773094, 0.0801249966, 0.1715594679, -0.097200349, 0.0952934846, -0.2051636726, 0.0465241112, -0.0686936229, 0.168274492, 0.237547189, 0.0064471471, -0.3387322426, 0.037226785, 0.2738148272, -0.214198038, -0.1669425219, 0.0483628735, -0.1655763984, 0.3656981587, -0.4240424633, 0.1116564199, 0.0456987768, -0.1373231709, 0.0146450354, -0.0403534286, 0.0176254306, 0.0415860415, 0.0705677122, 0.1646608859, 0.2296694219, 0.0986421928, 0.1528078467, 0.1120616496, 0.1326157749, 0.233694315, 0.0924878195, -0.0318904929, -0.2244520187, -0.2344274521, 0.0350969434, 0.113026835, 0.4560840726, -0.2372628003, -0.409147203, 0.0270190239, -0.0974415839, -0.0856009945, 0.3154964149, 0.2793029249, 0.2499224544, 0.1025631353, 0.2195271403, 0.3914906383, -0.1359719038, 0.0922218487, -0.1342357844, 0.0833789259, -0.0309071001, 0.1335763037, 0.2870158553, -0.2224529982, 0.155042395, 0.2077089995, 0.1261918843, -0.1610331088, 0.0189269744, -0.0493070185, -0.2274558991, 0.3239481747, -0.0960230976, 0.149895519, 0.1393885911, 0.0410627052, -0.1044393852, 0.0706786737, -0.1952908188, -0.3029635549, -0.1049854904, 0.2461148202, -0.0528141372, 0.1340738535, -0.4590174556, -0.0732224956, 0.1385059655, -0.3459164798, 0.0648971051, -0.3205714822, -0.2848424315, 0.0183811989, 0.3550864458, 0.2735077441, -0.2584556937, -0.1789944768, -0.1116052195, -0.2246557325, 0.0354218222, 0.3527233899, 0.0290168524, 0.2925775051, -0.1492988616, -0.0259825625, 0.2977193892, -0.3080950975, -0.2015810162, -0.0683948547, -0.0213342197, 0.120624356, -0.0819288269, -0.1163110808, 0.1097764596, -0.0468305983, 0.3195452392, 0.0579704642, 0.0881777629, -0.0640452057, -0.003844976, -0.105563201, -0.0519388616, 0.2132583857, -0.2208276689, 0.0910753682, -0.0467554331, -0.0094856359, 0.0476783179, -0.0992690697, -0.0255501252, 0.1598066241, 0.2196204066, 0.0084251733, -0.0835882053, -0.4422389269, -0.2576403022, 0.0173045509, -0.0913112462, 0.1824976653, -0.3626768291, -0.0666080266, -0.2478411943, 0.1375557929, -0.3986141682, 0.0582087748, 0.1390696019, 0.0923515782, -0.0479778908, 0.0631792545, -0.24362728, -0.0493090414, -0.0577991456, 0.0540163778, -0.4655534029, 0.0597280599, 0.0191244036, -0.1688704789, 0.2765918672, 0.3562169373, 0.2761612833, -0.0265947189, -0.2120909542, 0.5099461079, 0.106743902, 0.1462808251, -0.3429251015, 0.0101279141, 0.0833968148, -0.3226529658, -0.0090677002, -0.0623293556, 0.2937448323, -0.0997377411, -0.0672303885, 0.4583497643, -0.1053344458, 0.3200312555, 0.0043086479, -0.0589842908, 0.1802782118, 0.4128148854, -0.0799910277, -0.1413905025, 0.1623202711, -0.1702552587, 0.1915430427, -0.054732617, -0.3017840087, -0.3185962737, 0.2729862332, -0.1987492889, 0.0974558592, 0.1345565319, -0.1964373142, 0.0145387389, 0.2190853953, -0.0600781925, 0.3460254967, 0.1377629191, -0.1827098131, 0.0120345503, -0.0652053729, -0.0716543645, 0.2884762883, 0.1337208897, 0.0928258523, 0.3119993508, 0.107832633, 0.0081728734, -0.4893480241, -0.126675874, -0.1730902493, 0.3339040279, -0.5299002528, -0.1459738761, -0.3315994143, -0.2488908172, -0.1643963903, -0.3393756151, -0.0086973635, -0.1727552265, -0.0739422143, 0.2299685627, -0.2515612841, 0.3363701105, -0.0980428159, 0.1093044877, 0.190643549, -0.0513182208, -0.1053448841, -0.0696240515, -0.0017026784, 0.0683406815, 0.4655223787, 0.2131137848, 0.2999579608, -0.1394965351, 0.0469151214, -0.1156079993, -0.0262309033, 0.0053245127, -0.1554776579, 0.2220007777, 0.0740110874, 0.2549054921, -0.0642985404, -0.6536604762, 0.4810531735, -0.0160900746, -0.145265311, 0.4130648077, -0.0233465992, 0.076426439, -0.1380883753, -0.3018043041, -0.1945597678, -0.5705913305, 0.3227354288, -0.1257702112, 0.2020579129, 0.3859262466, -0.0013876472, 0.309215188, -0.0151658785, 0.3429300785, -0.2122427672, -0.1508434266, 0.2838154435, -0.28112638, -0.2468168288, -0.3224193752, 0.0552236736, 0.2796714604, -0.0112667391, -0.3107512891, -0.1082312837, -0.0971764028, -0.1651501805, 0.0173944887, 0.087134935, 0.03404456, 0.2222819924, -0.040998783, -0.0719556585, -0.1744195223, -0.0211805329, -0.0760608912, -0.1083604917, 0.0802407041, 0.7200375795, -0.3476124704, 0.5735512972, 0.2487344593, 0.043838568, 0.3965497613, -0.0171000157, 0.2510747015, -0.4302445352, -0.4340074062, -0.0733800679, -0.1186304986, 0.0843298435, 0.0457869321, 0.1166925728, -0.0574712791, -0.1723237634, 0.1374427229, -0.1851029992, -0.198564142, 0.0591130368, -0.1128574163, 0.2146125734, -0.0176895671, 0.1393083483, -0.0013668957, -0.0120198457, 0.0369372331, 0.1190351471, 0.1003901511, -0.1304516047, -0.5379375815, -0.0492838062, -0.2373073548, 0.3300650716, 0.1331019104, 0.6754535437, -0.1757068783, -0.155489251, -0.0177605078, 0.1992754638, 0.1531227976, 0.1091936976, 0.0642263964, 0.2403246909, 0.0474230871, -0.3574055433, -0.0340433121, -0.3311011195, 0.2101685405, -0.018184267, 0.3768242002, -0.2476569712, -0.2539379597, 0.3404429257, 0.2983768284, 0.0909791142, -0.1627546698, -0.2555762529, -0.3246850371, -0.2859316468, 0.0604032725, 0.0493938699, 0.3640836775, 0.0705544278, 0.0446208604, -0.0094779814, 0.0058866646, 0.3318360448, 0.0171929095, 0.3859044313, 0.1688808203, 0.2921620011, 0.2084466517, -0.038020853, 0.4344288409, 0.5396823287, -0.1491190046, -0.2729014754, 0.175034374, 0.1257831156, 0.154456988, 0.1800495833, -0.0136064477, 0.0986894295, 0.0543411598, 0.2142157108, -0.2720453739, 0.0670820624, 0.4417865574, 0.1236198694, -0.4740126729, -0.4279277623, 0.5069893599, -0.0321346335, 0.0295995586, 0.5055595636, 0.4619971812, -0.1705470383, 0.2618415356, -0.2013262957, 0.7946383953, 0.0257716868, 0.1139731482, 0.5444715619, -0.2822901011, 0.2094344348, 0.0695159882, 0.0656695142, -0.0344627313, -0.1164759323, -0.022824347, -0.0662589818, -0.044313781, 0.0061206459, -0.192897886, 0.2363500446, -0.0556624681, 0.07206925, -0.0121376328, 0.174053967, -0.1788765788, -0.2604475915, -0.4901564121, 0.1701418757, -0.003488699, 0.0504138246, -0.0578178987, -0.1490116119, 0.2124679685, -0.2789351046, -0.2062697262, -0.0689271539, -0.2794614732, 0.2728653252, 0.1322939545, -0.4374855161, 0.2901209295, 0.0789542869, -0.274112612, 0.0652093813, -0.111556381, 0.003123841, -0.0196612068, 0.1433192641, -0.1060946509, 0.1415982097, 0.2284477204, -0.0000285914, -0.1367738545, 0.0490191504, -0.0108025437, -0.1614104062, 0.1251275986, 0.0804983526, -0.0227595344, -0.3540940583, -0.4032341242, -0.2976572812, 0.0630339831, -0.1649257541, 0.1869927347, -0.0435426235, -0.2062173784, 0.1099359095, 0.1616443694, -0.1682066768, 0.0288271699, 0.43011114, -0.1315004081, -0.0143223349, 0.625410378, 0.2552022934, -0.2159004956, -0.2031275928, 0.1446219236, 0.2947931588, -0.5281530619, 0.1057301983, 0.138384819, 0.0721822754, -0.0424064547, 0.0768561363, 0.032076519, -0.0621714778, 0.0034387894, -0.3878534734, -0.4461018741, 0.4764640033, 0.0383437909, 0.3077192903, -0.0683698729, 0.0776227489, -0.0384824015, -0.0365158282, -0.357236594, 0.1556639522, -0.136892274, 0.2646570802, 0.2682210505, -0.1016394421, 0.1730790883, -0.0572273135, 0.2435115129, 0.1616856605, -0.3068462312, -0.2195842117, 0.0075293309, 0.133168608, -0.1267433465, -0.3238579929, -0.0937257558, 0.0399713852, -0.1105292141, -0.189805612, 0.0297232233, 0.2439654768, -0.1321360171, 0.0423297174, 0.0131283468, 0.0571433604, 0.0400794782, 0.2721767128, -0.0328204259, -0.1442993134, -0.0099608647, 0.0465260968, -0.0697733015, -0.1018799096, -0.1238668188, 0.2403119951, 0.0624787025, -0.217369169, 0.3143438995, -0.2445403486, 0.0539047047, 0.1484666616, 0.530923605, 0.39252913, -0.1849293262, -0.049104955, 0.0099522714, 0.2348107398, -0.2104187906, 0.0018874211, -0.0162306186, -0.0694372505, -0.0031737501, 0.1098012924, -0.1559690237, 0.0310440287, 0.0228101257, 0.0795718133, 0.1721286178, 0.0215079635, 0.1747636199, 0.311403513, 0.003660053, -0.1215305105, 0.1563751847, 0.0684848055, 0.183561638, 0.1623731256, -0.4743472636, 0.1918403953, 0.0149951568, -0.0826008469, 0.2591964006, -0.4521776736, -0.3418800831, 0.2483375221, 0.0055767228, 0.0641510859, -0.0518444255, 0.5933591127, -0.3439289331, -0.1761868745, 0.0309324805, 0.0645859018, -0.1674471647, -0.0903315768, -0.109053418, -0.1539038122, -0.1901973039, -0.1073047221, -0.0719844773, 0.1967675835, 0.0566971712, -0.0025778923, 0.0553552881, -0.3635109663, -0.1061835885, 0.439558804, 0.039973449, -0.2202778608, 0.3290403187, 0.5497704148, 0.0505050533, 0.277053535, 0.4189479053, 0.6585162282, 0.2836864293, -0.1108681783, 0.2057618052, -0.1072536632, -0.1365176588, 0.2498653084, 0.3022421598, 0.0643842965, 0.2294769585, 0.301127702, 0.2583593428, -0.1448316723, -0.0013112918, 0.045321729, 0.0686012357, -0.2826192379, 0.238090843, -0.4326449931, -0.1528446078, -0.0962959602, -0.1489623338, -0.3986388147, -0.0117641976, 0.3320273161, 0.014438658, 0.0632747412, 0.0074570701, 0.0897414163, -0.1905127466, 0.4545332491, 0.4513519704, 0.2124735862, -0.2298282236, -0.2835383415, -0.733703196, -0.0105460705, 0.1294799, 0.0917882547, 0.1310997158, -0.069094643, 0.2242867649, 0.1999375224, 0.0868915692, -0.0161370859, -0.2716553509, 0.0871702135, -0.2888908684, 0.0029543533, -0.0735765323, 0.082994543, -0.1167280078, -0.3641695678, 0.1444768757, -0.1506580412, 0.0530283004, -0.0371970572, 0.1579431891, -0.2850119472, -0.0447252877, 0.103793256, 0.1493764669, 0.5704001188, -0.164316237, -0.0952977613, -0.074875854, -0.526931107, 0.0917560309, 0.2032713443, 0.0661780089, 0.6200516224, 0.046954304, -0.2369939089, -0.2829699814, 0.4780107141, -0.2343085706, -0.0482914336, -0.4387037158, 0.1248682588, -0.2072322518, -0.0622545816, 0.0827443078, -0.0491207018, 0.0358365551, 0.3579895496, -0.2727117538, -0.444524467, 0.7492797971, -0.3448845744, -0.2888310552, 0.0400675051, 0.2385350317, 0.2671481073, -0.0994752347, -0.8629997969, 0.2285515964, 0.2634726465, -0.160517469, -0.2602975965, 0.2166382074, -0.1372414529, -0.0105833169, -0.1032001004, 0.3553936779, 0.0227283593, -0.2140251547, 0.1333089471, -0.3461788297 ]
https://github.com/huggingface/datasets/issues/3848
NonMatchingChecksumError when checksum is None
Hi @jxmorris12, thanks for reporting. The objective of `verify_checksums` is to check that both checksums are equal. Therefore if one is None and the other is non-None, they are not equal, and the function accordingly raises a NonMatchingChecksumError. That behavior is expected. The question is: how did you generate the expected checksum? Normally, it should not be None. To properly generate it (it is contained in the `dataset_infos.json` file), you should have runned: https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md ```shell datasets-cli test <your-dataset-folder> --save_infos --all_configs ``` On the other hand, you should take into account that the generation of this file is NOT mandatory for personal/community datasets (we only require it for "canonical" datasets, i.e., datasets added to our library GitHub repository: https://github.com/huggingface/datasets/tree/master/datasets). Therefore, other option would be just to delete the `dataset_infos.json` file. If that file is not present, the function `verify_checksums` is not executed. Finally, you can circumvent the `verify_checksums` function by passing `ignore_verifications=True` to `load_dataset`: ```python load_dataset(..., ignore_verifications=True) ```
I ran into the following error when adding a new dataset: ```bash expected_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': None, 'num_bytes': 40662}} recorded_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': 'efb4cbd3aa4a87bfaffc310ae951981cc0a36c6c71c6425dd74e5b55f2f325c9', 'num_bytes': 40662}} verification_name = 'dataset source files' def verify_checksums(expected_checksums: Optional[dict], recorded_checksums: dict, verification_name=None): if expected_checksums is None: logger.info("Unable to verify checksums.") return if len(set(expected_checksums) - set(recorded_checksums)) > 0: raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) if len(set(recorded_checksums) - set(expected_checksums)) > 0: raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]] for_verification_name = " for " + verification_name if verification_name is not None else "" if len(bad_urls) > 0: error_msg = "Checksums didn't match" + for_verification_name + ":\n" > raise NonMatchingChecksumError(error_msg + str(bad_urls)) E datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: E ['https://adversarialglue.github.io/dataset/dev.zip'] src/datasets/utils/info_utils.py:40: NonMatchingChecksumError ``` ## Expected results The dataset downloads correctly, and there is no error. ## Actual results Datasets library is looking for a checksum of None, and it gets a non-None checksum, and throws an error. This is clearly a bug.
157
NonMatchingChecksumError when checksum is None I ran into the following error when adding a new dataset: ```bash expected_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': None, 'num_bytes': 40662}} recorded_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': 'efb4cbd3aa4a87bfaffc310ae951981cc0a36c6c71c6425dd74e5b55f2f325c9', 'num_bytes': 40662}} verification_name = 'dataset source files' def verify_checksums(expected_checksums: Optional[dict], recorded_checksums: dict, verification_name=None): if expected_checksums is None: logger.info("Unable to verify checksums.") return if len(set(expected_checksums) - set(recorded_checksums)) > 0: raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) if len(set(recorded_checksums) - set(expected_checksums)) > 0: raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]] for_verification_name = " for " + verification_name if verification_name is not None else "" if len(bad_urls) > 0: error_msg = "Checksums didn't match" + for_verification_name + ":\n" > raise NonMatchingChecksumError(error_msg + str(bad_urls)) E datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: E ['https://adversarialglue.github.io/dataset/dev.zip'] src/datasets/utils/info_utils.py:40: NonMatchingChecksumError ``` ## Expected results The dataset downloads correctly, and there is no error. ## Actual results Datasets library is looking for a checksum of None, and it gets a non-None checksum, and throws an error. This is clearly a bug. Hi @jxmorris12, thanks for reporting. The objective of `verify_checksums` is to check that both checksums are equal. Therefore if one is None and the other is non-None, they are not equal, and the function accordingly raises a NonMatchingChecksumError. That behavior is expected. The question is: how did you generate the expected checksum? Normally, it should not be None. To properly generate it (it is contained in the `dataset_infos.json` file), you should have runned: https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md ```shell datasets-cli test <your-dataset-folder> --save_infos --all_configs ``` On the other hand, you should take into account that the generation of this file is NOT mandatory for personal/community datasets (we only require it for "canonical" datasets, i.e., datasets added to our library GitHub repository: https://github.com/huggingface/datasets/tree/master/datasets). Therefore, other option would be just to delete the `dataset_infos.json` file. If that file is not present, the function `verify_checksums` is not executed. Finally, you can circumvent the `verify_checksums` function by passing `ignore_verifications=True` to `load_dataset`: ```python load_dataset(..., ignore_verifications=True) ```
[ -0.2320743799, 0.0051179919, -0.0630755574, 0.0114171607, 0.0393702351, -0.0018278478, 0.0637268722, 0.2139837444, 0.2239054292, 0.2407787144, 0.2089290619, -0.171506241, -0.1793844551, -0.1686307192, -0.3194901943, 0.5820994973, 0.0091048246, 0.1567642093, -0.0063250153, -0.1103412211, -0.2597423494, 0.0484448522, -0.0611695312, -0.5326392651, -0.1920528561, 0.2473380715, -0.0098863244, 0.1149752811, -0.1297466606, -0.3302530646, 0.277761668, 0.1262669712, -0.2718397379, 0.2832524776, -0.0001198954, 0.2209144384, 0.228180781, -0.109640114, -0.3899441659, -0.1371974498, -0.6143531203, -0.4995473027, -0.3337576389, -0.1564414799, 0.1629648656, 0.2058150321, -0.0214101821, -0.3387087584, -0.2293427289, 0.1194785833, 0.135706082, 0.2888428867, -0.0406557806, -0.0627491325, 0.2102417499, 0.0540353395, -0.1934699118, -0.0633667856, 0.2661624253, 0.0005340235, -0.091280058, 0.1432644874, -0.2583864033, 0.1313906759, 0.1104932204, -0.100332588, 0.2735524178, -0.0703483745, 0.1362772435, 0.4286720455, 0.21230793, -0.0419759825, -0.4606052041, -0.2045885772, -0.0351580828, -0.292472899, 0.394849509, 0.0946063995, -0.197076261, -0.1859196126, -0.5737665296, 0.1739508808, -0.0133537436, 0.2211708277, 0.2296180725, 0.2830681801, 0.1889172345, -0.0384182744, 0.1671480238, -0.2139755636, -0.0191502422, -0.3181999028, -0.0774731264, 0.1109789386, -0.3909542859, -0.2279859483, 0.0494966246, 0.4995050132, 0.4288213849, 0.468418926, 0.1201374009, 0.0688025132, -0.0366662405, 0.1671055853, -0.0963463709, 0.1400944293, 0.1196583211, -0.0618376471, 0.2501618862, 0.177549839, 0.0018880195, 0.1504313499, 0.2900311947, -0.304515928, 0.3938009441, 0.2198646367, 0.4815282226, -0.3492438793, -0.2934837043, 0.3594183624, -0.0441873483, -0.1830990911, 0.294337064, 0.2002550066, -0.099905856, 0.1527582854, -0.2356730551, -0.0492414907, -0.2158454806, 0.0130820367, -0.2533990741, -0.1017787904, -0.0665803775, 0.1334944963, 0.0993380845, 0.019572448, 0.2893687189, 0.0865939185, 0.1357455254, 0.1964250654, 0.2705964148, -0.2291412801, 0.0655134544, 0.4084845483, -0.1550303251, 0.0144534241, 0.2092736214, -0.141205892, -0.0850995183, 0.2924253047, -0.1688422263, -0.2473763227, -0.033758387, 0.2199124396, -0.6749251485, -0.1524629444, 0.2213701308, -0.2103560269, 0.1287579983, -0.1970430613, -0.0122468388, -0.1919464022, -0.2976405919, -0.1756412089, -0.1062517911, 0.4491344988, -0.2358754575, -0.1023654863, -0.1522545815, -0.1739755422, 0.2358903587, 0.1088119745, 0.0516666211, -0.1043145433, -0.3189384043, -0.1396282315, 0.0739301145, -0.233183369, -0.5747230053, 0.0857629552, -0.0583214499, 0.4907510579, 0.3521374166, 0.3040935993, -0.2210260034, -0.2428821325, 0.1296917349, -0.1301404685, 0.0196330957, -0.0637226477, -0.2406347841, -0.2053630501, 0.4354156852, -0.0076730046, 0.0648244023, -0.0114706624, 0.0058358321, -0.2087112516, 0.1196131855, -0.3051240146, -0.1553105861, 0.1994118541, 0.5661740899, 0.0102961538, -0.002746495, -0.0966399759, -0.4024395645, 0.3852769434, -0.0635400936, 0.1093886569, 0.0323590115, -0.2544024587, 0.0724372268, -0.2285435647, -0.2381915897, 0.1735435724, 0.1009773687, 0.4710721374, 0.1338860393, -0.2191173434, -0.0861194432, 0.0738022849, -0.3849825263, 0.0171773415, -0.2908606529, 0.2074064761, 0.0166569985, -0.0483402088, -0.1110703945, 0.2855118215, 0.167213738, 0.1262549758, -0.0632702261, 0.3517815471, 0.3775034249, -0.1725125313, 0.1655671448, 0.4899958372, -0.0878474712, -0.1038003638, -0.1998686343, 0.5207355022, 0.1144559681, 0.0280809384, 0.0062098731, 0.4076442719, -0.0356269851, 0.239261657, 0.0936319754, -0.0190574024, 0.2032481581, -0.3634720445, -0.135629639, -0.2988702655, 0.3530624211, 0.1262715012, 0.0400406495, 0.1103006974, 0.1196752191, -0.2106354684, 0.0891735107, -0.0989117175, 0.0566065013, -0.0305046383, 0.2719110548, -0.0270622279, -0.0882912502, 0.6816493273, 0.4652114213, 0.2867639959, 0.0402599536, 0.0451143645, -0.1751429439, -0.1020687819, -0.0405953377, 0.0103077888, 0.0922617465, 0.6847395897, -0.0388812497, -0.2099470198, -0.383048445, -0.3852018416, 0.0503431708, 0.3930244446, -0.3930545151, -0.1957710385, -0.3480168581, 0.2055253536, -0.2334987521, -0.1122871339, -0.3593843579, -0.427590102, 0.1473639458, 0.0306847766, -0.0991281494, 0.1142359078, -0.5860811472, 0.0029743039, -0.0607005171, -0.3298614323, -0.008156958, -0.0083160195, 0.1915065199, 0.0554613881, 0.4833921194, -0.1673285514, 0.3184077144, -0.1481001973, -0.1073897108, -0.5216310024, -0.3873061836, -0.144331947, -0.2147363424, 0.0527621433, 0.3990144134, 0.0594145246, 0.0922618657, -0.2706475556, 0.2820094824, 0.0701398626, -0.365596056, 0.1909026206, -0.1490261704, -0.0551433973, 0.0285817124, 0.00423093, 0.1514239758, -0.0967821181, -0.1839741468, 0.2876751423, 0.2225275487, 0.3205144107, 0.0663737729, 0.1733566225, 0.0513740703, 0.3008278608, -0.2354994863, -0.5980967879, 0.4360552728, 0.1956644952, 0.0150222741, 0.1611697674, -0.1942093819, 0.1281421483, 0.3130413592, -0.4280478656, -0.5185402036, -0.2155806869, 0.0225956962, 0.1611420065, -0.0227842592, 0.3931449056, 0.1207485944, -0.2183137834, -0.2532045543, -0.2206776142, 0.1966334581, -0.2012588084, 0.5872359276, -0.1962156296, 0.1474367678, 0.0246156994, 0.368999958, 0.3948138952, -0.0737769753, 0.0684526265, 0.0905947089, 0.4791738689, 0.1474192291, -0.1532064527, -0.101193279, 0.3304645419, -0.0801639184, -0.0500890426, -0.0777101815, 0.0748684555, -0.0008511621, -0.0220888127, -0.1989114732, -0.0226513799, -0.0512987524, -0.2498644143, 0.2239515185, -0.0984099656, -0.0192630701, -0.159138158, -0.3230883181, -0.0659221038, 0.2207449675, 0.0072508785, -0.2965123653, -0.5668799877, -0.0386575907, 0.0378313325, 0.524472177, 0.2531701624, 0.3686527908, 0.0423879474, -0.328006357, -0.0610606857, -0.167551592, 0.3448958099, -0.6333203316, 0.1673828363, 0.0297793932, -0.0315619074, -0.0077384259, -0.036911577, -0.0515049621, 0.1498104036, 0.2137775123, 0.2400821894, -0.2737745643, 0.0975626111, 0.1478799433, 0.3227664232, -0.0923120305, -0.2601732612, -0.3763441145, -0.1898034066, -0.1502356231, 0.0883968323, -0.3371931612, 0.1604496688, 0.0865280256, -0.0213709231, -0.1226610914, -0.043107722, 0.5148727298, -0.0573297292, 0.226894632, 0.1582587361, 0.1573982239, -0.1133810803, -0.0053387978, 0.3777963817, 0.6421531439, -0.3209644854, -0.2695645094, -0.0866637379, -0.0267246682, 0.0334926397, 0.0925172046, 0.1117951423, 0.0158098731, 0.355926007, 0.0968466997, -0.0049263849, -0.2300850749, 0.2130715847, 0.0648937076, -0.4556932151, -0.1135350913, -0.2008936405, 0.0721004605, 0.0845720321, 0.2786327899, 0.2891000509, -0.0636224002, 0.095180653, 0.2202225477, 0.8011013865, 0.1242740601, -0.0365693867, -0.0624391958, -0.0014631299, 0.0375825427, 0.1065882519, 0.1253799498, -0.1303292811, -0.4374603331, -0.1080945656, -0.2783319652, 0.4908560514, 0.1276287585, -0.1413097084, 0.2933641374, -0.0644705743, 0.3546551764, -0.0100784628, 0.2046359032, -0.3679735959, 0.0651485845, -0.0207234547, 0.1599344015, -0.0228118394, 0.1238193437, -0.0205242559, 0.1180436015, 0.0145939393, -0.3763991296, -0.281639874, 0.1085120738, -0.0653408542, 0.089064151, 0.3106708825, -0.1053480729, -0.2085831016, 0.2334533334, 0.2609615326, 0.3375816047, -0.1644087881, 0.0913476124, 0.2593591511, 0.2599101067, 0.0611647405, -0.3175987303, 0.3532502055, 0.024099594, -0.2972590923, 0.2487800568, 0.0302009527, -0.4848250151, 0.1692437977, -0.1368586123, -0.1654713601, -0.2104642987, -0.1602782458, 0.0624119602, 0.0442181602, -0.2823728621, 0.1196688041, 0.2428826392, -0.3198260665, 0.2043475509, -0.156997323, -0.2403434962, -0.0055527156, 0.4269405305, 0.4065403938, -0.0988840163, 0.3762147725, -0.3821676075, -0.2291807979, -0.2479917705, 0.0170787219, -0.1017572731, -0.1905540824, 0.0740729347, 0.0495088212, 0.2645558119, 0.2278964072, 0.244186759, 0.1665794253, 0.4738416076, -0.0457723662, -0.3763845265, -0.0534239411, -0.0826500058, 0.2334584892, 0.4215303361, -0.2821716368, -0.1803912669, -0.0444137529, -0.031532716, -0.2977473736, -0.0746835098, -0.3243953586, -0.0599078536, -0.1409206092, 0.0639474243, 0.306479454, -0.0825828686, 0.2052274197, -0.1304312944, -0.2022498399, -0.1648024917, -0.0905930102, 0.1376255304, 0.1885038614, 0.0059215738, 0.0722661838, -0.1865186691, 0.0913278982, -0.0160657112, 0.0680556074, 0.3391932547, -0.1600763351, 0.1458011568, 0.2849752605, -0.1264776289, 0.0826689377, -0.2560849786, -0.3877463937, -0.0962095037, 0.2333384156, -0.0109198838, -0.0586497784, 0.0125852479, 0.2005612999, 0.192557171, 0.0898274183, -0.0631168112, 0.180712387, -0.2183727175, -0.2196598947, 0.4232785404, 0.1926406324, 0.1697732508, -0.2186435908, -0.0286129247, 0.1693211645, 0.2163845152, -0.4029263854, -0.2050431222, 0.2802860439, 0.1012177914, 0.3805215955, 0.1541316062, 0.0152057568, -0.4094254076, 0.5462414622, -0.0287209284, -0.0041055102, -0.3661945164, 0.3202916086, 0.4996882081, -0.0537159741, -0.1847576201, 0.0132896751, -0.3211938143, 0.1219500527, -0.130255565, -0.0689774603, 0.5694173574, -0.3159571886, 0.1516031474, -0.4042104483, -0.5119748116, 0.5467658639, 0.1848154366, 0.1130256429, 0.0309387911, 0.1517132968, 0.2065996975, -0.025726838, 0.4139150977, -0.4577171206, -0.0895671323, -0.0933299065, -0.0710509121, -0.222221449, -0.2406518608, 0.0091425404, 0.0592945851, 0.1473670453, -0.1337624341, -0.0407455415, -0.0438596234, -0.0308550727, -0.0630745441, 0.1559130102, 0.0828104317, -0.0376473367, -0.29804039, 0.133795768, 0.4297824204, 0.089774929, 0.2554920316, 0.4157254994, 0.4969005287, 0.3486097455, 0.2711161673, 0.1393636614, -0.0021735395, 0.0014642013, -0.0800176859, 0.6884095073, -0.1229942665, -0.0414233543, 0.3877679706, 0.120042406, -0.1736543328, 0.0360956788, -0.2044162899, -0.2850837708, 0.0684190914, 0.5215963721, 0.377518177, 0.389662534, -0.1074693426, 0.1734253317, -0.3604954779, -0.6644582152, 0.2723968029, -0.0399191603, 0.0898883864, 0.0815154687, 0.0915160105, -0.3056920469, 0.1859530956, 0.2457683235, -0.2111272067, -0.3734826744, -0.1707260609, -0.7457854152, 0.3200782537, -0.3583485484, -0.0507827625, -0.2659005225, 0.2510519922, -0.0308542419, 0.0138650397, 0.2666720152, -0.1524662822, -0.1585640609, -0.1106240749, -0.1117051467, 0.0901385173, 0.070002839, -0.3613715172, -0.0544259176, -0.377302736, 0.0488802977, 0.3439198434, 0.1209904552, 0.1871409118, 0.0270430818, -0.1655441225, 0.3364658356, -0.0094061326, 0.1209341884, 0.6406876445, -0.0901076794, -0.1322650015, -0.1650796086, -0.001069093, -0.1959171444, 0.2554632425, 0.0880504102, 0.322989285, -0.0609648861, 0.1184711829, -0.0113992626, 0.4154301882, 0.0622692741, -0.3943664432, -0.1448112279, 0.3595027626, -0.168012172, 0.1935651898, -0.1367382556, -0.1601217091, 0.2685424685, 0.3416756094, -0.1552408189, -0.1576703489, 0.5508439541, -0.0077090068, 0.1325458139, -0.2604155838, 0.3451995254, -0.3007707298, -0.0775936916, -0.5198215842, -0.0599332303, 0.4845914841, 0.1910953671, -0.0574179292, 0.1789035499, -0.3573938608, 0.1656356156, 0.0039327261, -0.1958293468, -0.0702955052, -0.19738397, 0.008697045, -0.175129056 ]
https://github.com/huggingface/datasets/issues/3848
NonMatchingChecksumError when checksum is None
Thanks @albertvillanova! That's fine. I did run that command when I was adding a new dataset. Maybe because the command crashed in the middle, the checksum wasn't stored properly. I don't know where the bug is happening. But either (i) `verify_checksums` should properly handle this edge case, where the passed checksum is None or (ii) the `datasets-cli test` shouldn't generate a corrupted dataset_infos.json file. Just a more high-level thing, I was trying to follow the instructions for adding a dataset in the CONTRIBUTING.md, so if running that command isn't even necessary, that should probably be mentioned in the document, right? But that's somewhat of a moot point, since something isn't working quite right internally if I was able to get into this corrupted state in the first place, just by following those instructions.
I ran into the following error when adding a new dataset: ```bash expected_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': None, 'num_bytes': 40662}} recorded_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': 'efb4cbd3aa4a87bfaffc310ae951981cc0a36c6c71c6425dd74e5b55f2f325c9', 'num_bytes': 40662}} verification_name = 'dataset source files' def verify_checksums(expected_checksums: Optional[dict], recorded_checksums: dict, verification_name=None): if expected_checksums is None: logger.info("Unable to verify checksums.") return if len(set(expected_checksums) - set(recorded_checksums)) > 0: raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) if len(set(recorded_checksums) - set(expected_checksums)) > 0: raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]] for_verification_name = " for " + verification_name if verification_name is not None else "" if len(bad_urls) > 0: error_msg = "Checksums didn't match" + for_verification_name + ":\n" > raise NonMatchingChecksumError(error_msg + str(bad_urls)) E datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: E ['https://adversarialglue.github.io/dataset/dev.zip'] src/datasets/utils/info_utils.py:40: NonMatchingChecksumError ``` ## Expected results The dataset downloads correctly, and there is no error. ## Actual results Datasets library is looking for a checksum of None, and it gets a non-None checksum, and throws an error. This is clearly a bug.
133
NonMatchingChecksumError when checksum is None I ran into the following error when adding a new dataset: ```bash expected_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': None, 'num_bytes': 40662}} recorded_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': 'efb4cbd3aa4a87bfaffc310ae951981cc0a36c6c71c6425dd74e5b55f2f325c9', 'num_bytes': 40662}} verification_name = 'dataset source files' def verify_checksums(expected_checksums: Optional[dict], recorded_checksums: dict, verification_name=None): if expected_checksums is None: logger.info("Unable to verify checksums.") return if len(set(expected_checksums) - set(recorded_checksums)) > 0: raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) if len(set(recorded_checksums) - set(expected_checksums)) > 0: raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]] for_verification_name = " for " + verification_name if verification_name is not None else "" if len(bad_urls) > 0: error_msg = "Checksums didn't match" + for_verification_name + ":\n" > raise NonMatchingChecksumError(error_msg + str(bad_urls)) E datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: E ['https://adversarialglue.github.io/dataset/dev.zip'] src/datasets/utils/info_utils.py:40: NonMatchingChecksumError ``` ## Expected results The dataset downloads correctly, and there is no error. ## Actual results Datasets library is looking for a checksum of None, and it gets a non-None checksum, and throws an error. This is clearly a bug. Thanks @albertvillanova! That's fine. I did run that command when I was adding a new dataset. Maybe because the command crashed in the middle, the checksum wasn't stored properly. I don't know where the bug is happening. But either (i) `verify_checksums` should properly handle this edge case, where the passed checksum is None or (ii) the `datasets-cli test` shouldn't generate a corrupted dataset_infos.json file. Just a more high-level thing, I was trying to follow the instructions for adding a dataset in the CONTRIBUTING.md, so if running that command isn't even necessary, that should probably be mentioned in the document, right? But that's somewhat of a moot point, since something isn't working quite right internally if I was able to get into this corrupted state in the first place, just by following those instructions.
[ -0.2320743799, 0.0051179919, -0.0630755574, 0.0114171607, 0.0393702351, -0.0018278478, 0.0637268722, 0.2139837444, 0.2239054292, 0.2407787144, 0.2089290619, -0.171506241, -0.1793844551, -0.1686307192, -0.3194901943, 0.5820994973, 0.0091048246, 0.1567642093, -0.0063250153, -0.1103412211, -0.2597423494, 0.0484448522, -0.0611695312, -0.5326392651, -0.1920528561, 0.2473380715, -0.0098863244, 0.1149752811, -0.1297466606, -0.3302530646, 0.277761668, 0.1262669712, -0.2718397379, 0.2832524776, -0.0001198954, 0.2209144384, 0.228180781, -0.109640114, -0.3899441659, -0.1371974498, -0.6143531203, -0.4995473027, -0.3337576389, -0.1564414799, 0.1629648656, 0.2058150321, -0.0214101821, -0.3387087584, -0.2293427289, 0.1194785833, 0.135706082, 0.2888428867, -0.0406557806, -0.0627491325, 0.2102417499, 0.0540353395, -0.1934699118, -0.0633667856, 0.2661624253, 0.0005340235, -0.091280058, 0.1432644874, -0.2583864033, 0.1313906759, 0.1104932204, -0.100332588, 0.2735524178, -0.0703483745, 0.1362772435, 0.4286720455, 0.21230793, -0.0419759825, -0.4606052041, -0.2045885772, -0.0351580828, -0.292472899, 0.394849509, 0.0946063995, -0.197076261, -0.1859196126, -0.5737665296, 0.1739508808, -0.0133537436, 0.2211708277, 0.2296180725, 0.2830681801, 0.1889172345, -0.0384182744, 0.1671480238, -0.2139755636, -0.0191502422, -0.3181999028, -0.0774731264, 0.1109789386, -0.3909542859, -0.2279859483, 0.0494966246, 0.4995050132, 0.4288213849, 0.468418926, 0.1201374009, 0.0688025132, -0.0366662405, 0.1671055853, -0.0963463709, 0.1400944293, 0.1196583211, -0.0618376471, 0.2501618862, 0.177549839, 0.0018880195, 0.1504313499, 0.2900311947, -0.304515928, 0.3938009441, 0.2198646367, 0.4815282226, -0.3492438793, -0.2934837043, 0.3594183624, -0.0441873483, -0.1830990911, 0.294337064, 0.2002550066, -0.099905856, 0.1527582854, -0.2356730551, -0.0492414907, -0.2158454806, 0.0130820367, -0.2533990741, -0.1017787904, -0.0665803775, 0.1334944963, 0.0993380845, 0.019572448, 0.2893687189, 0.0865939185, 0.1357455254, 0.1964250654, 0.2705964148, -0.2291412801, 0.0655134544, 0.4084845483, -0.1550303251, 0.0144534241, 0.2092736214, -0.141205892, -0.0850995183, 0.2924253047, -0.1688422263, -0.2473763227, -0.033758387, 0.2199124396, -0.6749251485, -0.1524629444, 0.2213701308, -0.2103560269, 0.1287579983, -0.1970430613, -0.0122468388, -0.1919464022, -0.2976405919, -0.1756412089, -0.1062517911, 0.4491344988, -0.2358754575, -0.1023654863, -0.1522545815, -0.1739755422, 0.2358903587, 0.1088119745, 0.0516666211, -0.1043145433, -0.3189384043, -0.1396282315, 0.0739301145, -0.233183369, -0.5747230053, 0.0857629552, -0.0583214499, 0.4907510579, 0.3521374166, 0.3040935993, -0.2210260034, -0.2428821325, 0.1296917349, -0.1301404685, 0.0196330957, -0.0637226477, -0.2406347841, -0.2053630501, 0.4354156852, -0.0076730046, 0.0648244023, -0.0114706624, 0.0058358321, -0.2087112516, 0.1196131855, -0.3051240146, -0.1553105861, 0.1994118541, 0.5661740899, 0.0102961538, -0.002746495, -0.0966399759, -0.4024395645, 0.3852769434, -0.0635400936, 0.1093886569, 0.0323590115, -0.2544024587, 0.0724372268, -0.2285435647, -0.2381915897, 0.1735435724, 0.1009773687, 0.4710721374, 0.1338860393, -0.2191173434, -0.0861194432, 0.0738022849, -0.3849825263, 0.0171773415, -0.2908606529, 0.2074064761, 0.0166569985, -0.0483402088, -0.1110703945, 0.2855118215, 0.167213738, 0.1262549758, -0.0632702261, 0.3517815471, 0.3775034249, -0.1725125313, 0.1655671448, 0.4899958372, -0.0878474712, -0.1038003638, -0.1998686343, 0.5207355022, 0.1144559681, 0.0280809384, 0.0062098731, 0.4076442719, -0.0356269851, 0.239261657, 0.0936319754, -0.0190574024, 0.2032481581, -0.3634720445, -0.135629639, -0.2988702655, 0.3530624211, 0.1262715012, 0.0400406495, 0.1103006974, 0.1196752191, -0.2106354684, 0.0891735107, -0.0989117175, 0.0566065013, -0.0305046383, 0.2719110548, -0.0270622279, -0.0882912502, 0.6816493273, 0.4652114213, 0.2867639959, 0.0402599536, 0.0451143645, -0.1751429439, -0.1020687819, -0.0405953377, 0.0103077888, 0.0922617465, 0.6847395897, -0.0388812497, -0.2099470198, -0.383048445, -0.3852018416, 0.0503431708, 0.3930244446, -0.3930545151, -0.1957710385, -0.3480168581, 0.2055253536, -0.2334987521, -0.1122871339, -0.3593843579, -0.427590102, 0.1473639458, 0.0306847766, -0.0991281494, 0.1142359078, -0.5860811472, 0.0029743039, -0.0607005171, -0.3298614323, -0.008156958, -0.0083160195, 0.1915065199, 0.0554613881, 0.4833921194, -0.1673285514, 0.3184077144, -0.1481001973, -0.1073897108, -0.5216310024, -0.3873061836, -0.144331947, -0.2147363424, 0.0527621433, 0.3990144134, 0.0594145246, 0.0922618657, -0.2706475556, 0.2820094824, 0.0701398626, -0.365596056, 0.1909026206, -0.1490261704, -0.0551433973, 0.0285817124, 0.00423093, 0.1514239758, -0.0967821181, -0.1839741468, 0.2876751423, 0.2225275487, 0.3205144107, 0.0663737729, 0.1733566225, 0.0513740703, 0.3008278608, -0.2354994863, -0.5980967879, 0.4360552728, 0.1956644952, 0.0150222741, 0.1611697674, -0.1942093819, 0.1281421483, 0.3130413592, -0.4280478656, -0.5185402036, -0.2155806869, 0.0225956962, 0.1611420065, -0.0227842592, 0.3931449056, 0.1207485944, -0.2183137834, -0.2532045543, -0.2206776142, 0.1966334581, -0.2012588084, 0.5872359276, -0.1962156296, 0.1474367678, 0.0246156994, 0.368999958, 0.3948138952, -0.0737769753, 0.0684526265, 0.0905947089, 0.4791738689, 0.1474192291, -0.1532064527, -0.101193279, 0.3304645419, -0.0801639184, -0.0500890426, -0.0777101815, 0.0748684555, -0.0008511621, -0.0220888127, -0.1989114732, -0.0226513799, -0.0512987524, -0.2498644143, 0.2239515185, -0.0984099656, -0.0192630701, -0.159138158, -0.3230883181, -0.0659221038, 0.2207449675, 0.0072508785, -0.2965123653, -0.5668799877, -0.0386575907, 0.0378313325, 0.524472177, 0.2531701624, 0.3686527908, 0.0423879474, -0.328006357, -0.0610606857, -0.167551592, 0.3448958099, -0.6333203316, 0.1673828363, 0.0297793932, -0.0315619074, -0.0077384259, -0.036911577, -0.0515049621, 0.1498104036, 0.2137775123, 0.2400821894, -0.2737745643, 0.0975626111, 0.1478799433, 0.3227664232, -0.0923120305, -0.2601732612, -0.3763441145, -0.1898034066, -0.1502356231, 0.0883968323, -0.3371931612, 0.1604496688, 0.0865280256, -0.0213709231, -0.1226610914, -0.043107722, 0.5148727298, -0.0573297292, 0.226894632, 0.1582587361, 0.1573982239, -0.1133810803, -0.0053387978, 0.3777963817, 0.6421531439, -0.3209644854, -0.2695645094, -0.0866637379, -0.0267246682, 0.0334926397, 0.0925172046, 0.1117951423, 0.0158098731, 0.355926007, 0.0968466997, -0.0049263849, -0.2300850749, 0.2130715847, 0.0648937076, -0.4556932151, -0.1135350913, -0.2008936405, 0.0721004605, 0.0845720321, 0.2786327899, 0.2891000509, -0.0636224002, 0.095180653, 0.2202225477, 0.8011013865, 0.1242740601, -0.0365693867, -0.0624391958, -0.0014631299, 0.0375825427, 0.1065882519, 0.1253799498, -0.1303292811, -0.4374603331, -0.1080945656, -0.2783319652, 0.4908560514, 0.1276287585, -0.1413097084, 0.2933641374, -0.0644705743, 0.3546551764, -0.0100784628, 0.2046359032, -0.3679735959, 0.0651485845, -0.0207234547, 0.1599344015, -0.0228118394, 0.1238193437, -0.0205242559, 0.1180436015, 0.0145939393, -0.3763991296, -0.281639874, 0.1085120738, -0.0653408542, 0.089064151, 0.3106708825, -0.1053480729, -0.2085831016, 0.2334533334, 0.2609615326, 0.3375816047, -0.1644087881, 0.0913476124, 0.2593591511, 0.2599101067, 0.0611647405, -0.3175987303, 0.3532502055, 0.024099594, -0.2972590923, 0.2487800568, 0.0302009527, -0.4848250151, 0.1692437977, -0.1368586123, -0.1654713601, -0.2104642987, -0.1602782458, 0.0624119602, 0.0442181602, -0.2823728621, 0.1196688041, 0.2428826392, -0.3198260665, 0.2043475509, -0.156997323, -0.2403434962, -0.0055527156, 0.4269405305, 0.4065403938, -0.0988840163, 0.3762147725, -0.3821676075, -0.2291807979, -0.2479917705, 0.0170787219, -0.1017572731, -0.1905540824, 0.0740729347, 0.0495088212, 0.2645558119, 0.2278964072, 0.244186759, 0.1665794253, 0.4738416076, -0.0457723662, -0.3763845265, -0.0534239411, -0.0826500058, 0.2334584892, 0.4215303361, -0.2821716368, -0.1803912669, -0.0444137529, -0.031532716, -0.2977473736, -0.0746835098, -0.3243953586, -0.0599078536, -0.1409206092, 0.0639474243, 0.306479454, -0.0825828686, 0.2052274197, -0.1304312944, -0.2022498399, -0.1648024917, -0.0905930102, 0.1376255304, 0.1885038614, 0.0059215738, 0.0722661838, -0.1865186691, 0.0913278982, -0.0160657112, 0.0680556074, 0.3391932547, -0.1600763351, 0.1458011568, 0.2849752605, -0.1264776289, 0.0826689377, -0.2560849786, -0.3877463937, -0.0962095037, 0.2333384156, -0.0109198838, -0.0586497784, 0.0125852479, 0.2005612999, 0.192557171, 0.0898274183, -0.0631168112, 0.180712387, -0.2183727175, -0.2196598947, 0.4232785404, 0.1926406324, 0.1697732508, -0.2186435908, -0.0286129247, 0.1693211645, 0.2163845152, -0.4029263854, -0.2050431222, 0.2802860439, 0.1012177914, 0.3805215955, 0.1541316062, 0.0152057568, -0.4094254076, 0.5462414622, -0.0287209284, -0.0041055102, -0.3661945164, 0.3202916086, 0.4996882081, -0.0537159741, -0.1847576201, 0.0132896751, -0.3211938143, 0.1219500527, -0.130255565, -0.0689774603, 0.5694173574, -0.3159571886, 0.1516031474, -0.4042104483, -0.5119748116, 0.5467658639, 0.1848154366, 0.1130256429, 0.0309387911, 0.1517132968, 0.2065996975, -0.025726838, 0.4139150977, -0.4577171206, -0.0895671323, -0.0933299065, -0.0710509121, -0.222221449, -0.2406518608, 0.0091425404, 0.0592945851, 0.1473670453, -0.1337624341, -0.0407455415, -0.0438596234, -0.0308550727, -0.0630745441, 0.1559130102, 0.0828104317, -0.0376473367, -0.29804039, 0.133795768, 0.4297824204, 0.089774929, 0.2554920316, 0.4157254994, 0.4969005287, 0.3486097455, 0.2711161673, 0.1393636614, -0.0021735395, 0.0014642013, -0.0800176859, 0.6884095073, -0.1229942665, -0.0414233543, 0.3877679706, 0.120042406, -0.1736543328, 0.0360956788, -0.2044162899, -0.2850837708, 0.0684190914, 0.5215963721, 0.377518177, 0.389662534, -0.1074693426, 0.1734253317, -0.3604954779, -0.6644582152, 0.2723968029, -0.0399191603, 0.0898883864, 0.0815154687, 0.0915160105, -0.3056920469, 0.1859530956, 0.2457683235, -0.2111272067, -0.3734826744, -0.1707260609, -0.7457854152, 0.3200782537, -0.3583485484, -0.0507827625, -0.2659005225, 0.2510519922, -0.0308542419, 0.0138650397, 0.2666720152, -0.1524662822, -0.1585640609, -0.1106240749, -0.1117051467, 0.0901385173, 0.070002839, -0.3613715172, -0.0544259176, -0.377302736, 0.0488802977, 0.3439198434, 0.1209904552, 0.1871409118, 0.0270430818, -0.1655441225, 0.3364658356, -0.0094061326, 0.1209341884, 0.6406876445, -0.0901076794, -0.1322650015, -0.1650796086, -0.001069093, -0.1959171444, 0.2554632425, 0.0880504102, 0.322989285, -0.0609648861, 0.1184711829, -0.0113992626, 0.4154301882, 0.0622692741, -0.3943664432, -0.1448112279, 0.3595027626, -0.168012172, 0.1935651898, -0.1367382556, -0.1601217091, 0.2685424685, 0.3416756094, -0.1552408189, -0.1576703489, 0.5508439541, -0.0077090068, 0.1325458139, -0.2604155838, 0.3451995254, -0.3007707298, -0.0775936916, -0.5198215842, -0.0599332303, 0.4845914841, 0.1910953671, -0.0574179292, 0.1789035499, -0.3573938608, 0.1656356156, 0.0039327261, -0.1958293468, -0.0702955052, -0.19738397, 0.008697045, -0.175129056 ]
https://github.com/huggingface/datasets/issues/3848
NonMatchingChecksumError when checksum is None
Hi @jxmorris12, Definitely, your `dataset_infos.json` was corrupted (and wrongly contains expected None checksum). While we further investigate how this can happen and fix it, feel free to delete your `dataset_infos.json` file and recreate it with: ```shell datasets-cli test <your-dataset-folder> --save_infos --all_configs ``` Also note that `verify_checksum` is working as expected: if it receives a None and and a non-None checksums as input pair, it must raise an exception: they are not equal. That is not a bug.
I ran into the following error when adding a new dataset: ```bash expected_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': None, 'num_bytes': 40662}} recorded_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': 'efb4cbd3aa4a87bfaffc310ae951981cc0a36c6c71c6425dd74e5b55f2f325c9', 'num_bytes': 40662}} verification_name = 'dataset source files' def verify_checksums(expected_checksums: Optional[dict], recorded_checksums: dict, verification_name=None): if expected_checksums is None: logger.info("Unable to verify checksums.") return if len(set(expected_checksums) - set(recorded_checksums)) > 0: raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) if len(set(recorded_checksums) - set(expected_checksums)) > 0: raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]] for_verification_name = " for " + verification_name if verification_name is not None else "" if len(bad_urls) > 0: error_msg = "Checksums didn't match" + for_verification_name + ":\n" > raise NonMatchingChecksumError(error_msg + str(bad_urls)) E datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: E ['https://adversarialglue.github.io/dataset/dev.zip'] src/datasets/utils/info_utils.py:40: NonMatchingChecksumError ``` ## Expected results The dataset downloads correctly, and there is no error. ## Actual results Datasets library is looking for a checksum of None, and it gets a non-None checksum, and throws an error. This is clearly a bug.
77
NonMatchingChecksumError when checksum is None I ran into the following error when adding a new dataset: ```bash expected_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': None, 'num_bytes': 40662}} recorded_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': 'efb4cbd3aa4a87bfaffc310ae951981cc0a36c6c71c6425dd74e5b55f2f325c9', 'num_bytes': 40662}} verification_name = 'dataset source files' def verify_checksums(expected_checksums: Optional[dict], recorded_checksums: dict, verification_name=None): if expected_checksums is None: logger.info("Unable to verify checksums.") return if len(set(expected_checksums) - set(recorded_checksums)) > 0: raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) if len(set(recorded_checksums) - set(expected_checksums)) > 0: raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]] for_verification_name = " for " + verification_name if verification_name is not None else "" if len(bad_urls) > 0: error_msg = "Checksums didn't match" + for_verification_name + ":\n" > raise NonMatchingChecksumError(error_msg + str(bad_urls)) E datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: E ['https://adversarialglue.github.io/dataset/dev.zip'] src/datasets/utils/info_utils.py:40: NonMatchingChecksumError ``` ## Expected results The dataset downloads correctly, and there is no error. ## Actual results Datasets library is looking for a checksum of None, and it gets a non-None checksum, and throws an error. This is clearly a bug. Hi @jxmorris12, Definitely, your `dataset_infos.json` was corrupted (and wrongly contains expected None checksum). While we further investigate how this can happen and fix it, feel free to delete your `dataset_infos.json` file and recreate it with: ```shell datasets-cli test <your-dataset-folder> --save_infos --all_configs ``` Also note that `verify_checksum` is working as expected: if it receives a None and and a non-None checksums as input pair, it must raise an exception: they are not equal. That is not a bug.
[ -0.2320743799, 0.0051179919, -0.0630755574, 0.0114171607, 0.0393702351, -0.0018278478, 0.0637268722, 0.2139837444, 0.2239054292, 0.2407787144, 0.2089290619, -0.171506241, -0.1793844551, -0.1686307192, -0.3194901943, 0.5820994973, 0.0091048246, 0.1567642093, -0.0063250153, -0.1103412211, -0.2597423494, 0.0484448522, -0.0611695312, -0.5326392651, -0.1920528561, 0.2473380715, -0.0098863244, 0.1149752811, -0.1297466606, -0.3302530646, 0.277761668, 0.1262669712, -0.2718397379, 0.2832524776, -0.0001198954, 0.2209144384, 0.228180781, -0.109640114, -0.3899441659, -0.1371974498, -0.6143531203, -0.4995473027, -0.3337576389, -0.1564414799, 0.1629648656, 0.2058150321, -0.0214101821, -0.3387087584, -0.2293427289, 0.1194785833, 0.135706082, 0.2888428867, -0.0406557806, -0.0627491325, 0.2102417499, 0.0540353395, -0.1934699118, -0.0633667856, 0.2661624253, 0.0005340235, -0.091280058, 0.1432644874, -0.2583864033, 0.1313906759, 0.1104932204, -0.100332588, 0.2735524178, -0.0703483745, 0.1362772435, 0.4286720455, 0.21230793, -0.0419759825, -0.4606052041, -0.2045885772, -0.0351580828, -0.292472899, 0.394849509, 0.0946063995, -0.197076261, -0.1859196126, -0.5737665296, 0.1739508808, -0.0133537436, 0.2211708277, 0.2296180725, 0.2830681801, 0.1889172345, -0.0384182744, 0.1671480238, -0.2139755636, -0.0191502422, -0.3181999028, -0.0774731264, 0.1109789386, -0.3909542859, -0.2279859483, 0.0494966246, 0.4995050132, 0.4288213849, 0.468418926, 0.1201374009, 0.0688025132, -0.0366662405, 0.1671055853, -0.0963463709, 0.1400944293, 0.1196583211, -0.0618376471, 0.2501618862, 0.177549839, 0.0018880195, 0.1504313499, 0.2900311947, -0.304515928, 0.3938009441, 0.2198646367, 0.4815282226, -0.3492438793, -0.2934837043, 0.3594183624, -0.0441873483, -0.1830990911, 0.294337064, 0.2002550066, -0.099905856, 0.1527582854, -0.2356730551, -0.0492414907, -0.2158454806, 0.0130820367, -0.2533990741, -0.1017787904, -0.0665803775, 0.1334944963, 0.0993380845, 0.019572448, 0.2893687189, 0.0865939185, 0.1357455254, 0.1964250654, 0.2705964148, -0.2291412801, 0.0655134544, 0.4084845483, -0.1550303251, 0.0144534241, 0.2092736214, -0.141205892, -0.0850995183, 0.2924253047, -0.1688422263, -0.2473763227, -0.033758387, 0.2199124396, -0.6749251485, -0.1524629444, 0.2213701308, -0.2103560269, 0.1287579983, -0.1970430613, -0.0122468388, -0.1919464022, -0.2976405919, -0.1756412089, -0.1062517911, 0.4491344988, -0.2358754575, -0.1023654863, -0.1522545815, -0.1739755422, 0.2358903587, 0.1088119745, 0.0516666211, -0.1043145433, -0.3189384043, -0.1396282315, 0.0739301145, -0.233183369, -0.5747230053, 0.0857629552, -0.0583214499, 0.4907510579, 0.3521374166, 0.3040935993, -0.2210260034, -0.2428821325, 0.1296917349, -0.1301404685, 0.0196330957, -0.0637226477, -0.2406347841, -0.2053630501, 0.4354156852, -0.0076730046, 0.0648244023, -0.0114706624, 0.0058358321, -0.2087112516, 0.1196131855, -0.3051240146, -0.1553105861, 0.1994118541, 0.5661740899, 0.0102961538, -0.002746495, -0.0966399759, -0.4024395645, 0.3852769434, -0.0635400936, 0.1093886569, 0.0323590115, -0.2544024587, 0.0724372268, -0.2285435647, -0.2381915897, 0.1735435724, 0.1009773687, 0.4710721374, 0.1338860393, -0.2191173434, -0.0861194432, 0.0738022849, -0.3849825263, 0.0171773415, -0.2908606529, 0.2074064761, 0.0166569985, -0.0483402088, -0.1110703945, 0.2855118215, 0.167213738, 0.1262549758, -0.0632702261, 0.3517815471, 0.3775034249, -0.1725125313, 0.1655671448, 0.4899958372, -0.0878474712, -0.1038003638, -0.1998686343, 0.5207355022, 0.1144559681, 0.0280809384, 0.0062098731, 0.4076442719, -0.0356269851, 0.239261657, 0.0936319754, -0.0190574024, 0.2032481581, -0.3634720445, -0.135629639, -0.2988702655, 0.3530624211, 0.1262715012, 0.0400406495, 0.1103006974, 0.1196752191, -0.2106354684, 0.0891735107, -0.0989117175, 0.0566065013, -0.0305046383, 0.2719110548, -0.0270622279, -0.0882912502, 0.6816493273, 0.4652114213, 0.2867639959, 0.0402599536, 0.0451143645, -0.1751429439, -0.1020687819, -0.0405953377, 0.0103077888, 0.0922617465, 0.6847395897, -0.0388812497, -0.2099470198, -0.383048445, -0.3852018416, 0.0503431708, 0.3930244446, -0.3930545151, -0.1957710385, -0.3480168581, 0.2055253536, -0.2334987521, -0.1122871339, -0.3593843579, -0.427590102, 0.1473639458, 0.0306847766, -0.0991281494, 0.1142359078, -0.5860811472, 0.0029743039, -0.0607005171, -0.3298614323, -0.008156958, -0.0083160195, 0.1915065199, 0.0554613881, 0.4833921194, -0.1673285514, 0.3184077144, -0.1481001973, -0.1073897108, -0.5216310024, -0.3873061836, -0.144331947, -0.2147363424, 0.0527621433, 0.3990144134, 0.0594145246, 0.0922618657, -0.2706475556, 0.2820094824, 0.0701398626, -0.365596056, 0.1909026206, -0.1490261704, -0.0551433973, 0.0285817124, 0.00423093, 0.1514239758, -0.0967821181, -0.1839741468, 0.2876751423, 0.2225275487, 0.3205144107, 0.0663737729, 0.1733566225, 0.0513740703, 0.3008278608, -0.2354994863, -0.5980967879, 0.4360552728, 0.1956644952, 0.0150222741, 0.1611697674, -0.1942093819, 0.1281421483, 0.3130413592, -0.4280478656, -0.5185402036, -0.2155806869, 0.0225956962, 0.1611420065, -0.0227842592, 0.3931449056, 0.1207485944, -0.2183137834, -0.2532045543, -0.2206776142, 0.1966334581, -0.2012588084, 0.5872359276, -0.1962156296, 0.1474367678, 0.0246156994, 0.368999958, 0.3948138952, -0.0737769753, 0.0684526265, 0.0905947089, 0.4791738689, 0.1474192291, -0.1532064527, -0.101193279, 0.3304645419, -0.0801639184, -0.0500890426, -0.0777101815, 0.0748684555, -0.0008511621, -0.0220888127, -0.1989114732, -0.0226513799, -0.0512987524, -0.2498644143, 0.2239515185, -0.0984099656, -0.0192630701, -0.159138158, -0.3230883181, -0.0659221038, 0.2207449675, 0.0072508785, -0.2965123653, -0.5668799877, -0.0386575907, 0.0378313325, 0.524472177, 0.2531701624, 0.3686527908, 0.0423879474, -0.328006357, -0.0610606857, -0.167551592, 0.3448958099, -0.6333203316, 0.1673828363, 0.0297793932, -0.0315619074, -0.0077384259, -0.036911577, -0.0515049621, 0.1498104036, 0.2137775123, 0.2400821894, -0.2737745643, 0.0975626111, 0.1478799433, 0.3227664232, -0.0923120305, -0.2601732612, -0.3763441145, -0.1898034066, -0.1502356231, 0.0883968323, -0.3371931612, 0.1604496688, 0.0865280256, -0.0213709231, -0.1226610914, -0.043107722, 0.5148727298, -0.0573297292, 0.226894632, 0.1582587361, 0.1573982239, -0.1133810803, -0.0053387978, 0.3777963817, 0.6421531439, -0.3209644854, -0.2695645094, -0.0866637379, -0.0267246682, 0.0334926397, 0.0925172046, 0.1117951423, 0.0158098731, 0.355926007, 0.0968466997, -0.0049263849, -0.2300850749, 0.2130715847, 0.0648937076, -0.4556932151, -0.1135350913, -0.2008936405, 0.0721004605, 0.0845720321, 0.2786327899, 0.2891000509, -0.0636224002, 0.095180653, 0.2202225477, 0.8011013865, 0.1242740601, -0.0365693867, -0.0624391958, -0.0014631299, 0.0375825427, 0.1065882519, 0.1253799498, -0.1303292811, -0.4374603331, -0.1080945656, -0.2783319652, 0.4908560514, 0.1276287585, -0.1413097084, 0.2933641374, -0.0644705743, 0.3546551764, -0.0100784628, 0.2046359032, -0.3679735959, 0.0651485845, -0.0207234547, 0.1599344015, -0.0228118394, 0.1238193437, -0.0205242559, 0.1180436015, 0.0145939393, -0.3763991296, -0.281639874, 0.1085120738, -0.0653408542, 0.089064151, 0.3106708825, -0.1053480729, -0.2085831016, 0.2334533334, 0.2609615326, 0.3375816047, -0.1644087881, 0.0913476124, 0.2593591511, 0.2599101067, 0.0611647405, -0.3175987303, 0.3532502055, 0.024099594, -0.2972590923, 0.2487800568, 0.0302009527, -0.4848250151, 0.1692437977, -0.1368586123, -0.1654713601, -0.2104642987, -0.1602782458, 0.0624119602, 0.0442181602, -0.2823728621, 0.1196688041, 0.2428826392, -0.3198260665, 0.2043475509, -0.156997323, -0.2403434962, -0.0055527156, 0.4269405305, 0.4065403938, -0.0988840163, 0.3762147725, -0.3821676075, -0.2291807979, -0.2479917705, 0.0170787219, -0.1017572731, -0.1905540824, 0.0740729347, 0.0495088212, 0.2645558119, 0.2278964072, 0.244186759, 0.1665794253, 0.4738416076, -0.0457723662, -0.3763845265, -0.0534239411, -0.0826500058, 0.2334584892, 0.4215303361, -0.2821716368, -0.1803912669, -0.0444137529, -0.031532716, -0.2977473736, -0.0746835098, -0.3243953586, -0.0599078536, -0.1409206092, 0.0639474243, 0.306479454, -0.0825828686, 0.2052274197, -0.1304312944, -0.2022498399, -0.1648024917, -0.0905930102, 0.1376255304, 0.1885038614, 0.0059215738, 0.0722661838, -0.1865186691, 0.0913278982, -0.0160657112, 0.0680556074, 0.3391932547, -0.1600763351, 0.1458011568, 0.2849752605, -0.1264776289, 0.0826689377, -0.2560849786, -0.3877463937, -0.0962095037, 0.2333384156, -0.0109198838, -0.0586497784, 0.0125852479, 0.2005612999, 0.192557171, 0.0898274183, -0.0631168112, 0.180712387, -0.2183727175, -0.2196598947, 0.4232785404, 0.1926406324, 0.1697732508, -0.2186435908, -0.0286129247, 0.1693211645, 0.2163845152, -0.4029263854, -0.2050431222, 0.2802860439, 0.1012177914, 0.3805215955, 0.1541316062, 0.0152057568, -0.4094254076, 0.5462414622, -0.0287209284, -0.0041055102, -0.3661945164, 0.3202916086, 0.4996882081, -0.0537159741, -0.1847576201, 0.0132896751, -0.3211938143, 0.1219500527, -0.130255565, -0.0689774603, 0.5694173574, -0.3159571886, 0.1516031474, -0.4042104483, -0.5119748116, 0.5467658639, 0.1848154366, 0.1130256429, 0.0309387911, 0.1517132968, 0.2065996975, -0.025726838, 0.4139150977, -0.4577171206, -0.0895671323, -0.0933299065, -0.0710509121, -0.222221449, -0.2406518608, 0.0091425404, 0.0592945851, 0.1473670453, -0.1337624341, -0.0407455415, -0.0438596234, -0.0308550727, -0.0630745441, 0.1559130102, 0.0828104317, -0.0376473367, -0.29804039, 0.133795768, 0.4297824204, 0.089774929, 0.2554920316, 0.4157254994, 0.4969005287, 0.3486097455, 0.2711161673, 0.1393636614, -0.0021735395, 0.0014642013, -0.0800176859, 0.6884095073, -0.1229942665, -0.0414233543, 0.3877679706, 0.120042406, -0.1736543328, 0.0360956788, -0.2044162899, -0.2850837708, 0.0684190914, 0.5215963721, 0.377518177, 0.389662534, -0.1074693426, 0.1734253317, -0.3604954779, -0.6644582152, 0.2723968029, -0.0399191603, 0.0898883864, 0.0815154687, 0.0915160105, -0.3056920469, 0.1859530956, 0.2457683235, -0.2111272067, -0.3734826744, -0.1707260609, -0.7457854152, 0.3200782537, -0.3583485484, -0.0507827625, -0.2659005225, 0.2510519922, -0.0308542419, 0.0138650397, 0.2666720152, -0.1524662822, -0.1585640609, -0.1106240749, -0.1117051467, 0.0901385173, 0.070002839, -0.3613715172, -0.0544259176, -0.377302736, 0.0488802977, 0.3439198434, 0.1209904552, 0.1871409118, 0.0270430818, -0.1655441225, 0.3364658356, -0.0094061326, 0.1209341884, 0.6406876445, -0.0901076794, -0.1322650015, -0.1650796086, -0.001069093, -0.1959171444, 0.2554632425, 0.0880504102, 0.322989285, -0.0609648861, 0.1184711829, -0.0113992626, 0.4154301882, 0.0622692741, -0.3943664432, -0.1448112279, 0.3595027626, -0.168012172, 0.1935651898, -0.1367382556, -0.1601217091, 0.2685424685, 0.3416756094, -0.1552408189, -0.1576703489, 0.5508439541, -0.0077090068, 0.1325458139, -0.2604155838, 0.3451995254, -0.3007707298, -0.0775936916, -0.5198215842, -0.0599332303, 0.4845914841, 0.1910953671, -0.0574179292, 0.1789035499, -0.3573938608, 0.1656356156, 0.0039327261, -0.1958293468, -0.0702955052, -0.19738397, 0.008697045, -0.175129056 ]
https://github.com/huggingface/datasets/issues/3848
NonMatchingChecksumError when checksum is None
At a higher level, also note that we are preparing the release of `datasets` version 2.0, and some docs are being updated... In order to add a dataset, I think the most updated instructions are in our official documentation pages: https://huggingface.co/docs/datasets/share
I ran into the following error when adding a new dataset: ```bash expected_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': None, 'num_bytes': 40662}} recorded_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': 'efb4cbd3aa4a87bfaffc310ae951981cc0a36c6c71c6425dd74e5b55f2f325c9', 'num_bytes': 40662}} verification_name = 'dataset source files' def verify_checksums(expected_checksums: Optional[dict], recorded_checksums: dict, verification_name=None): if expected_checksums is None: logger.info("Unable to verify checksums.") return if len(set(expected_checksums) - set(recorded_checksums)) > 0: raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) if len(set(recorded_checksums) - set(expected_checksums)) > 0: raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]] for_verification_name = " for " + verification_name if verification_name is not None else "" if len(bad_urls) > 0: error_msg = "Checksums didn't match" + for_verification_name + ":\n" > raise NonMatchingChecksumError(error_msg + str(bad_urls)) E datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: E ['https://adversarialglue.github.io/dataset/dev.zip'] src/datasets/utils/info_utils.py:40: NonMatchingChecksumError ``` ## Expected results The dataset downloads correctly, and there is no error. ## Actual results Datasets library is looking for a checksum of None, and it gets a non-None checksum, and throws an error. This is clearly a bug.
41
NonMatchingChecksumError when checksum is None I ran into the following error when adding a new dataset: ```bash expected_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': None, 'num_bytes': 40662}} recorded_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': 'efb4cbd3aa4a87bfaffc310ae951981cc0a36c6c71c6425dd74e5b55f2f325c9', 'num_bytes': 40662}} verification_name = 'dataset source files' def verify_checksums(expected_checksums: Optional[dict], recorded_checksums: dict, verification_name=None): if expected_checksums is None: logger.info("Unable to verify checksums.") return if len(set(expected_checksums) - set(recorded_checksums)) > 0: raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) if len(set(recorded_checksums) - set(expected_checksums)) > 0: raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]] for_verification_name = " for " + verification_name if verification_name is not None else "" if len(bad_urls) > 0: error_msg = "Checksums didn't match" + for_verification_name + ":\n" > raise NonMatchingChecksumError(error_msg + str(bad_urls)) E datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: E ['https://adversarialglue.github.io/dataset/dev.zip'] src/datasets/utils/info_utils.py:40: NonMatchingChecksumError ``` ## Expected results The dataset downloads correctly, and there is no error. ## Actual results Datasets library is looking for a checksum of None, and it gets a non-None checksum, and throws an error. This is clearly a bug. At a higher level, also note that we are preparing the release of `datasets` version 2.0, and some docs are being updated... In order to add a dataset, I think the most updated instructions are in our official documentation pages: https://huggingface.co/docs/datasets/share
[ -0.2320743799, 0.0051179919, -0.0630755574, 0.0114171607, 0.0393702351, -0.0018278478, 0.0637268722, 0.2139837444, 0.2239054292, 0.2407787144, 0.2089290619, -0.171506241, -0.1793844551, -0.1686307192, -0.3194901943, 0.5820994973, 0.0091048246, 0.1567642093, -0.0063250153, -0.1103412211, -0.2597423494, 0.0484448522, -0.0611695312, -0.5326392651, -0.1920528561, 0.2473380715, -0.0098863244, 0.1149752811, -0.1297466606, -0.3302530646, 0.277761668, 0.1262669712, -0.2718397379, 0.2832524776, -0.0001198954, 0.2209144384, 0.228180781, -0.109640114, -0.3899441659, -0.1371974498, -0.6143531203, -0.4995473027, -0.3337576389, -0.1564414799, 0.1629648656, 0.2058150321, -0.0214101821, -0.3387087584, -0.2293427289, 0.1194785833, 0.135706082, 0.2888428867, -0.0406557806, -0.0627491325, 0.2102417499, 0.0540353395, -0.1934699118, -0.0633667856, 0.2661624253, 0.0005340235, -0.091280058, 0.1432644874, -0.2583864033, 0.1313906759, 0.1104932204, -0.100332588, 0.2735524178, -0.0703483745, 0.1362772435, 0.4286720455, 0.21230793, -0.0419759825, -0.4606052041, -0.2045885772, -0.0351580828, -0.292472899, 0.394849509, 0.0946063995, -0.197076261, -0.1859196126, -0.5737665296, 0.1739508808, -0.0133537436, 0.2211708277, 0.2296180725, 0.2830681801, 0.1889172345, -0.0384182744, 0.1671480238, -0.2139755636, -0.0191502422, -0.3181999028, -0.0774731264, 0.1109789386, -0.3909542859, -0.2279859483, 0.0494966246, 0.4995050132, 0.4288213849, 0.468418926, 0.1201374009, 0.0688025132, -0.0366662405, 0.1671055853, -0.0963463709, 0.1400944293, 0.1196583211, -0.0618376471, 0.2501618862, 0.177549839, 0.0018880195, 0.1504313499, 0.2900311947, -0.304515928, 0.3938009441, 0.2198646367, 0.4815282226, -0.3492438793, -0.2934837043, 0.3594183624, -0.0441873483, -0.1830990911, 0.294337064, 0.2002550066, -0.099905856, 0.1527582854, -0.2356730551, -0.0492414907, -0.2158454806, 0.0130820367, -0.2533990741, -0.1017787904, -0.0665803775, 0.1334944963, 0.0993380845, 0.019572448, 0.2893687189, 0.0865939185, 0.1357455254, 0.1964250654, 0.2705964148, -0.2291412801, 0.0655134544, 0.4084845483, -0.1550303251, 0.0144534241, 0.2092736214, -0.141205892, -0.0850995183, 0.2924253047, -0.1688422263, -0.2473763227, -0.033758387, 0.2199124396, -0.6749251485, -0.1524629444, 0.2213701308, -0.2103560269, 0.1287579983, -0.1970430613, -0.0122468388, -0.1919464022, -0.2976405919, -0.1756412089, -0.1062517911, 0.4491344988, -0.2358754575, -0.1023654863, -0.1522545815, -0.1739755422, 0.2358903587, 0.1088119745, 0.0516666211, -0.1043145433, -0.3189384043, -0.1396282315, 0.0739301145, -0.233183369, -0.5747230053, 0.0857629552, -0.0583214499, 0.4907510579, 0.3521374166, 0.3040935993, -0.2210260034, -0.2428821325, 0.1296917349, -0.1301404685, 0.0196330957, -0.0637226477, -0.2406347841, -0.2053630501, 0.4354156852, -0.0076730046, 0.0648244023, -0.0114706624, 0.0058358321, -0.2087112516, 0.1196131855, -0.3051240146, -0.1553105861, 0.1994118541, 0.5661740899, 0.0102961538, -0.002746495, -0.0966399759, -0.4024395645, 0.3852769434, -0.0635400936, 0.1093886569, 0.0323590115, -0.2544024587, 0.0724372268, -0.2285435647, -0.2381915897, 0.1735435724, 0.1009773687, 0.4710721374, 0.1338860393, -0.2191173434, -0.0861194432, 0.0738022849, -0.3849825263, 0.0171773415, -0.2908606529, 0.2074064761, 0.0166569985, -0.0483402088, -0.1110703945, 0.2855118215, 0.167213738, 0.1262549758, -0.0632702261, 0.3517815471, 0.3775034249, -0.1725125313, 0.1655671448, 0.4899958372, -0.0878474712, -0.1038003638, -0.1998686343, 0.5207355022, 0.1144559681, 0.0280809384, 0.0062098731, 0.4076442719, -0.0356269851, 0.239261657, 0.0936319754, -0.0190574024, 0.2032481581, -0.3634720445, -0.135629639, -0.2988702655, 0.3530624211, 0.1262715012, 0.0400406495, 0.1103006974, 0.1196752191, -0.2106354684, 0.0891735107, -0.0989117175, 0.0566065013, -0.0305046383, 0.2719110548, -0.0270622279, -0.0882912502, 0.6816493273, 0.4652114213, 0.2867639959, 0.0402599536, 0.0451143645, -0.1751429439, -0.1020687819, -0.0405953377, 0.0103077888, 0.0922617465, 0.6847395897, -0.0388812497, -0.2099470198, -0.383048445, -0.3852018416, 0.0503431708, 0.3930244446, -0.3930545151, -0.1957710385, -0.3480168581, 0.2055253536, -0.2334987521, -0.1122871339, -0.3593843579, -0.427590102, 0.1473639458, 0.0306847766, -0.0991281494, 0.1142359078, -0.5860811472, 0.0029743039, -0.0607005171, -0.3298614323, -0.008156958, -0.0083160195, 0.1915065199, 0.0554613881, 0.4833921194, -0.1673285514, 0.3184077144, -0.1481001973, -0.1073897108, -0.5216310024, -0.3873061836, -0.144331947, -0.2147363424, 0.0527621433, 0.3990144134, 0.0594145246, 0.0922618657, -0.2706475556, 0.2820094824, 0.0701398626, -0.365596056, 0.1909026206, -0.1490261704, -0.0551433973, 0.0285817124, 0.00423093, 0.1514239758, -0.0967821181, -0.1839741468, 0.2876751423, 0.2225275487, 0.3205144107, 0.0663737729, 0.1733566225, 0.0513740703, 0.3008278608, -0.2354994863, -0.5980967879, 0.4360552728, 0.1956644952, 0.0150222741, 0.1611697674, -0.1942093819, 0.1281421483, 0.3130413592, -0.4280478656, -0.5185402036, -0.2155806869, 0.0225956962, 0.1611420065, -0.0227842592, 0.3931449056, 0.1207485944, -0.2183137834, -0.2532045543, -0.2206776142, 0.1966334581, -0.2012588084, 0.5872359276, -0.1962156296, 0.1474367678, 0.0246156994, 0.368999958, 0.3948138952, -0.0737769753, 0.0684526265, 0.0905947089, 0.4791738689, 0.1474192291, -0.1532064527, -0.101193279, 0.3304645419, -0.0801639184, -0.0500890426, -0.0777101815, 0.0748684555, -0.0008511621, -0.0220888127, -0.1989114732, -0.0226513799, -0.0512987524, -0.2498644143, 0.2239515185, -0.0984099656, -0.0192630701, -0.159138158, -0.3230883181, -0.0659221038, 0.2207449675, 0.0072508785, -0.2965123653, -0.5668799877, -0.0386575907, 0.0378313325, 0.524472177, 0.2531701624, 0.3686527908, 0.0423879474, -0.328006357, -0.0610606857, -0.167551592, 0.3448958099, -0.6333203316, 0.1673828363, 0.0297793932, -0.0315619074, -0.0077384259, -0.036911577, -0.0515049621, 0.1498104036, 0.2137775123, 0.2400821894, -0.2737745643, 0.0975626111, 0.1478799433, 0.3227664232, -0.0923120305, -0.2601732612, -0.3763441145, -0.1898034066, -0.1502356231, 0.0883968323, -0.3371931612, 0.1604496688, 0.0865280256, -0.0213709231, -0.1226610914, -0.043107722, 0.5148727298, -0.0573297292, 0.226894632, 0.1582587361, 0.1573982239, -0.1133810803, -0.0053387978, 0.3777963817, 0.6421531439, -0.3209644854, -0.2695645094, -0.0866637379, -0.0267246682, 0.0334926397, 0.0925172046, 0.1117951423, 0.0158098731, 0.355926007, 0.0968466997, -0.0049263849, -0.2300850749, 0.2130715847, 0.0648937076, -0.4556932151, -0.1135350913, -0.2008936405, 0.0721004605, 0.0845720321, 0.2786327899, 0.2891000509, -0.0636224002, 0.095180653, 0.2202225477, 0.8011013865, 0.1242740601, -0.0365693867, -0.0624391958, -0.0014631299, 0.0375825427, 0.1065882519, 0.1253799498, -0.1303292811, -0.4374603331, -0.1080945656, -0.2783319652, 0.4908560514, 0.1276287585, -0.1413097084, 0.2933641374, -0.0644705743, 0.3546551764, -0.0100784628, 0.2046359032, -0.3679735959, 0.0651485845, -0.0207234547, 0.1599344015, -0.0228118394, 0.1238193437, -0.0205242559, 0.1180436015, 0.0145939393, -0.3763991296, -0.281639874, 0.1085120738, -0.0653408542, 0.089064151, 0.3106708825, -0.1053480729, -0.2085831016, 0.2334533334, 0.2609615326, 0.3375816047, -0.1644087881, 0.0913476124, 0.2593591511, 0.2599101067, 0.0611647405, -0.3175987303, 0.3532502055, 0.024099594, -0.2972590923, 0.2487800568, 0.0302009527, -0.4848250151, 0.1692437977, -0.1368586123, -0.1654713601, -0.2104642987, -0.1602782458, 0.0624119602, 0.0442181602, -0.2823728621, 0.1196688041, 0.2428826392, -0.3198260665, 0.2043475509, -0.156997323, -0.2403434962, -0.0055527156, 0.4269405305, 0.4065403938, -0.0988840163, 0.3762147725, -0.3821676075, -0.2291807979, -0.2479917705, 0.0170787219, -0.1017572731, -0.1905540824, 0.0740729347, 0.0495088212, 0.2645558119, 0.2278964072, 0.244186759, 0.1665794253, 0.4738416076, -0.0457723662, -0.3763845265, -0.0534239411, -0.0826500058, 0.2334584892, 0.4215303361, -0.2821716368, -0.1803912669, -0.0444137529, -0.031532716, -0.2977473736, -0.0746835098, -0.3243953586, -0.0599078536, -0.1409206092, 0.0639474243, 0.306479454, -0.0825828686, 0.2052274197, -0.1304312944, -0.2022498399, -0.1648024917, -0.0905930102, 0.1376255304, 0.1885038614, 0.0059215738, 0.0722661838, -0.1865186691, 0.0913278982, -0.0160657112, 0.0680556074, 0.3391932547, -0.1600763351, 0.1458011568, 0.2849752605, -0.1264776289, 0.0826689377, -0.2560849786, -0.3877463937, -0.0962095037, 0.2333384156, -0.0109198838, -0.0586497784, 0.0125852479, 0.2005612999, 0.192557171, 0.0898274183, -0.0631168112, 0.180712387, -0.2183727175, -0.2196598947, 0.4232785404, 0.1926406324, 0.1697732508, -0.2186435908, -0.0286129247, 0.1693211645, 0.2163845152, -0.4029263854, -0.2050431222, 0.2802860439, 0.1012177914, 0.3805215955, 0.1541316062, 0.0152057568, -0.4094254076, 0.5462414622, -0.0287209284, -0.0041055102, -0.3661945164, 0.3202916086, 0.4996882081, -0.0537159741, -0.1847576201, 0.0132896751, -0.3211938143, 0.1219500527, -0.130255565, -0.0689774603, 0.5694173574, -0.3159571886, 0.1516031474, -0.4042104483, -0.5119748116, 0.5467658639, 0.1848154366, 0.1130256429, 0.0309387911, 0.1517132968, 0.2065996975, -0.025726838, 0.4139150977, -0.4577171206, -0.0895671323, -0.0933299065, -0.0710509121, -0.222221449, -0.2406518608, 0.0091425404, 0.0592945851, 0.1473670453, -0.1337624341, -0.0407455415, -0.0438596234, -0.0308550727, -0.0630745441, 0.1559130102, 0.0828104317, -0.0376473367, -0.29804039, 0.133795768, 0.4297824204, 0.089774929, 0.2554920316, 0.4157254994, 0.4969005287, 0.3486097455, 0.2711161673, 0.1393636614, -0.0021735395, 0.0014642013, -0.0800176859, 0.6884095073, -0.1229942665, -0.0414233543, 0.3877679706, 0.120042406, -0.1736543328, 0.0360956788, -0.2044162899, -0.2850837708, 0.0684190914, 0.5215963721, 0.377518177, 0.389662534, -0.1074693426, 0.1734253317, -0.3604954779, -0.6644582152, 0.2723968029, -0.0399191603, 0.0898883864, 0.0815154687, 0.0915160105, -0.3056920469, 0.1859530956, 0.2457683235, -0.2111272067, -0.3734826744, -0.1707260609, -0.7457854152, 0.3200782537, -0.3583485484, -0.0507827625, -0.2659005225, 0.2510519922, -0.0308542419, 0.0138650397, 0.2666720152, -0.1524662822, -0.1585640609, -0.1106240749, -0.1117051467, 0.0901385173, 0.070002839, -0.3613715172, -0.0544259176, -0.377302736, 0.0488802977, 0.3439198434, 0.1209904552, 0.1871409118, 0.0270430818, -0.1655441225, 0.3364658356, -0.0094061326, 0.1209341884, 0.6406876445, -0.0901076794, -0.1322650015, -0.1650796086, -0.001069093, -0.1959171444, 0.2554632425, 0.0880504102, 0.322989285, -0.0609648861, 0.1184711829, -0.0113992626, 0.4154301882, 0.0622692741, -0.3943664432, -0.1448112279, 0.3595027626, -0.168012172, 0.1935651898, -0.1367382556, -0.1601217091, 0.2685424685, 0.3416756094, -0.1552408189, -0.1576703489, 0.5508439541, -0.0077090068, 0.1325458139, -0.2604155838, 0.3451995254, -0.3007707298, -0.0775936916, -0.5198215842, -0.0599332303, 0.4845914841, 0.1910953671, -0.0574179292, 0.1789035499, -0.3573938608, 0.1656356156, 0.0039327261, -0.1958293468, -0.0702955052, -0.19738397, 0.008697045, -0.175129056 ]
https://github.com/huggingface/datasets/issues/3848
NonMatchingChecksumError when checksum is None
Hi @jxmorris12, we have discovered the bug why `None` checksums wrongly appeared when generating the `dataset_infos.json` file: - #3892 The fix will be accessible once this PR merged. And we are planning to do our 2.0 release today. We are also working on updating all our docs for our release today.
I ran into the following error when adding a new dataset: ```bash expected_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': None, 'num_bytes': 40662}} recorded_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': 'efb4cbd3aa4a87bfaffc310ae951981cc0a36c6c71c6425dd74e5b55f2f325c9', 'num_bytes': 40662}} verification_name = 'dataset source files' def verify_checksums(expected_checksums: Optional[dict], recorded_checksums: dict, verification_name=None): if expected_checksums is None: logger.info("Unable to verify checksums.") return if len(set(expected_checksums) - set(recorded_checksums)) > 0: raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) if len(set(recorded_checksums) - set(expected_checksums)) > 0: raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]] for_verification_name = " for " + verification_name if verification_name is not None else "" if len(bad_urls) > 0: error_msg = "Checksums didn't match" + for_verification_name + ":\n" > raise NonMatchingChecksumError(error_msg + str(bad_urls)) E datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: E ['https://adversarialglue.github.io/dataset/dev.zip'] src/datasets/utils/info_utils.py:40: NonMatchingChecksumError ``` ## Expected results The dataset downloads correctly, and there is no error. ## Actual results Datasets library is looking for a checksum of None, and it gets a non-None checksum, and throws an error. This is clearly a bug.
51
NonMatchingChecksumError when checksum is None I ran into the following error when adding a new dataset: ```bash expected_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': None, 'num_bytes': 40662}} recorded_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': 'efb4cbd3aa4a87bfaffc310ae951981cc0a36c6c71c6425dd74e5b55f2f325c9', 'num_bytes': 40662}} verification_name = 'dataset source files' def verify_checksums(expected_checksums: Optional[dict], recorded_checksums: dict, verification_name=None): if expected_checksums is None: logger.info("Unable to verify checksums.") return if len(set(expected_checksums) - set(recorded_checksums)) > 0: raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) if len(set(recorded_checksums) - set(expected_checksums)) > 0: raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]] for_verification_name = " for " + verification_name if verification_name is not None else "" if len(bad_urls) > 0: error_msg = "Checksums didn't match" + for_verification_name + ":\n" > raise NonMatchingChecksumError(error_msg + str(bad_urls)) E datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: E ['https://adversarialglue.github.io/dataset/dev.zip'] src/datasets/utils/info_utils.py:40: NonMatchingChecksumError ``` ## Expected results The dataset downloads correctly, and there is no error. ## Actual results Datasets library is looking for a checksum of None, and it gets a non-None checksum, and throws an error. This is clearly a bug. Hi @jxmorris12, we have discovered the bug why `None` checksums wrongly appeared when generating the `dataset_infos.json` file: - #3892 The fix will be accessible once this PR merged. And we are planning to do our 2.0 release today. We are also working on updating all our docs for our release today.
[ -0.2320743799, 0.0051179919, -0.0630755574, 0.0114171607, 0.0393702351, -0.0018278478, 0.0637268722, 0.2139837444, 0.2239054292, 0.2407787144, 0.2089290619, -0.171506241, -0.1793844551, -0.1686307192, -0.3194901943, 0.5820994973, 0.0091048246, 0.1567642093, -0.0063250153, -0.1103412211, -0.2597423494, 0.0484448522, -0.0611695312, -0.5326392651, -0.1920528561, 0.2473380715, -0.0098863244, 0.1149752811, -0.1297466606, -0.3302530646, 0.277761668, 0.1262669712, -0.2718397379, 0.2832524776, -0.0001198954, 0.2209144384, 0.228180781, -0.109640114, -0.3899441659, -0.1371974498, -0.6143531203, -0.4995473027, -0.3337576389, -0.1564414799, 0.1629648656, 0.2058150321, -0.0214101821, -0.3387087584, -0.2293427289, 0.1194785833, 0.135706082, 0.2888428867, -0.0406557806, -0.0627491325, 0.2102417499, 0.0540353395, -0.1934699118, -0.0633667856, 0.2661624253, 0.0005340235, -0.091280058, 0.1432644874, -0.2583864033, 0.1313906759, 0.1104932204, -0.100332588, 0.2735524178, -0.0703483745, 0.1362772435, 0.4286720455, 0.21230793, -0.0419759825, -0.4606052041, -0.2045885772, -0.0351580828, -0.292472899, 0.394849509, 0.0946063995, -0.197076261, -0.1859196126, -0.5737665296, 0.1739508808, -0.0133537436, 0.2211708277, 0.2296180725, 0.2830681801, 0.1889172345, -0.0384182744, 0.1671480238, -0.2139755636, -0.0191502422, -0.3181999028, -0.0774731264, 0.1109789386, -0.3909542859, -0.2279859483, 0.0494966246, 0.4995050132, 0.4288213849, 0.468418926, 0.1201374009, 0.0688025132, -0.0366662405, 0.1671055853, -0.0963463709, 0.1400944293, 0.1196583211, -0.0618376471, 0.2501618862, 0.177549839, 0.0018880195, 0.1504313499, 0.2900311947, -0.304515928, 0.3938009441, 0.2198646367, 0.4815282226, -0.3492438793, -0.2934837043, 0.3594183624, -0.0441873483, -0.1830990911, 0.294337064, 0.2002550066, -0.099905856, 0.1527582854, -0.2356730551, -0.0492414907, -0.2158454806, 0.0130820367, -0.2533990741, -0.1017787904, -0.0665803775, 0.1334944963, 0.0993380845, 0.019572448, 0.2893687189, 0.0865939185, 0.1357455254, 0.1964250654, 0.2705964148, -0.2291412801, 0.0655134544, 0.4084845483, -0.1550303251, 0.0144534241, 0.2092736214, -0.141205892, -0.0850995183, 0.2924253047, -0.1688422263, -0.2473763227, -0.033758387, 0.2199124396, -0.6749251485, -0.1524629444, 0.2213701308, -0.2103560269, 0.1287579983, -0.1970430613, -0.0122468388, -0.1919464022, -0.2976405919, -0.1756412089, -0.1062517911, 0.4491344988, -0.2358754575, -0.1023654863, -0.1522545815, -0.1739755422, 0.2358903587, 0.1088119745, 0.0516666211, -0.1043145433, -0.3189384043, -0.1396282315, 0.0739301145, -0.233183369, -0.5747230053, 0.0857629552, -0.0583214499, 0.4907510579, 0.3521374166, 0.3040935993, -0.2210260034, -0.2428821325, 0.1296917349, -0.1301404685, 0.0196330957, -0.0637226477, -0.2406347841, -0.2053630501, 0.4354156852, -0.0076730046, 0.0648244023, -0.0114706624, 0.0058358321, -0.2087112516, 0.1196131855, -0.3051240146, -0.1553105861, 0.1994118541, 0.5661740899, 0.0102961538, -0.002746495, -0.0966399759, -0.4024395645, 0.3852769434, -0.0635400936, 0.1093886569, 0.0323590115, -0.2544024587, 0.0724372268, -0.2285435647, -0.2381915897, 0.1735435724, 0.1009773687, 0.4710721374, 0.1338860393, -0.2191173434, -0.0861194432, 0.0738022849, -0.3849825263, 0.0171773415, -0.2908606529, 0.2074064761, 0.0166569985, -0.0483402088, -0.1110703945, 0.2855118215, 0.167213738, 0.1262549758, -0.0632702261, 0.3517815471, 0.3775034249, -0.1725125313, 0.1655671448, 0.4899958372, -0.0878474712, -0.1038003638, -0.1998686343, 0.5207355022, 0.1144559681, 0.0280809384, 0.0062098731, 0.4076442719, -0.0356269851, 0.239261657, 0.0936319754, -0.0190574024, 0.2032481581, -0.3634720445, -0.135629639, -0.2988702655, 0.3530624211, 0.1262715012, 0.0400406495, 0.1103006974, 0.1196752191, -0.2106354684, 0.0891735107, -0.0989117175, 0.0566065013, -0.0305046383, 0.2719110548, -0.0270622279, -0.0882912502, 0.6816493273, 0.4652114213, 0.2867639959, 0.0402599536, 0.0451143645, -0.1751429439, -0.1020687819, -0.0405953377, 0.0103077888, 0.0922617465, 0.6847395897, -0.0388812497, -0.2099470198, -0.383048445, -0.3852018416, 0.0503431708, 0.3930244446, -0.3930545151, -0.1957710385, -0.3480168581, 0.2055253536, -0.2334987521, -0.1122871339, -0.3593843579, -0.427590102, 0.1473639458, 0.0306847766, -0.0991281494, 0.1142359078, -0.5860811472, 0.0029743039, -0.0607005171, -0.3298614323, -0.008156958, -0.0083160195, 0.1915065199, 0.0554613881, 0.4833921194, -0.1673285514, 0.3184077144, -0.1481001973, -0.1073897108, -0.5216310024, -0.3873061836, -0.144331947, -0.2147363424, 0.0527621433, 0.3990144134, 0.0594145246, 0.0922618657, -0.2706475556, 0.2820094824, 0.0701398626, -0.365596056, 0.1909026206, -0.1490261704, -0.0551433973, 0.0285817124, 0.00423093, 0.1514239758, -0.0967821181, -0.1839741468, 0.2876751423, 0.2225275487, 0.3205144107, 0.0663737729, 0.1733566225, 0.0513740703, 0.3008278608, -0.2354994863, -0.5980967879, 0.4360552728, 0.1956644952, 0.0150222741, 0.1611697674, -0.1942093819, 0.1281421483, 0.3130413592, -0.4280478656, -0.5185402036, -0.2155806869, 0.0225956962, 0.1611420065, -0.0227842592, 0.3931449056, 0.1207485944, -0.2183137834, -0.2532045543, -0.2206776142, 0.1966334581, -0.2012588084, 0.5872359276, -0.1962156296, 0.1474367678, 0.0246156994, 0.368999958, 0.3948138952, -0.0737769753, 0.0684526265, 0.0905947089, 0.4791738689, 0.1474192291, -0.1532064527, -0.101193279, 0.3304645419, -0.0801639184, -0.0500890426, -0.0777101815, 0.0748684555, -0.0008511621, -0.0220888127, -0.1989114732, -0.0226513799, -0.0512987524, -0.2498644143, 0.2239515185, -0.0984099656, -0.0192630701, -0.159138158, -0.3230883181, -0.0659221038, 0.2207449675, 0.0072508785, -0.2965123653, -0.5668799877, -0.0386575907, 0.0378313325, 0.524472177, 0.2531701624, 0.3686527908, 0.0423879474, -0.328006357, -0.0610606857, -0.167551592, 0.3448958099, -0.6333203316, 0.1673828363, 0.0297793932, -0.0315619074, -0.0077384259, -0.036911577, -0.0515049621, 0.1498104036, 0.2137775123, 0.2400821894, -0.2737745643, 0.0975626111, 0.1478799433, 0.3227664232, -0.0923120305, -0.2601732612, -0.3763441145, -0.1898034066, -0.1502356231, 0.0883968323, -0.3371931612, 0.1604496688, 0.0865280256, -0.0213709231, -0.1226610914, -0.043107722, 0.5148727298, -0.0573297292, 0.226894632, 0.1582587361, 0.1573982239, -0.1133810803, -0.0053387978, 0.3777963817, 0.6421531439, -0.3209644854, -0.2695645094, -0.0866637379, -0.0267246682, 0.0334926397, 0.0925172046, 0.1117951423, 0.0158098731, 0.355926007, 0.0968466997, -0.0049263849, -0.2300850749, 0.2130715847, 0.0648937076, -0.4556932151, -0.1135350913, -0.2008936405, 0.0721004605, 0.0845720321, 0.2786327899, 0.2891000509, -0.0636224002, 0.095180653, 0.2202225477, 0.8011013865, 0.1242740601, -0.0365693867, -0.0624391958, -0.0014631299, 0.0375825427, 0.1065882519, 0.1253799498, -0.1303292811, -0.4374603331, -0.1080945656, -0.2783319652, 0.4908560514, 0.1276287585, -0.1413097084, 0.2933641374, -0.0644705743, 0.3546551764, -0.0100784628, 0.2046359032, -0.3679735959, 0.0651485845, -0.0207234547, 0.1599344015, -0.0228118394, 0.1238193437, -0.0205242559, 0.1180436015, 0.0145939393, -0.3763991296, -0.281639874, 0.1085120738, -0.0653408542, 0.089064151, 0.3106708825, -0.1053480729, -0.2085831016, 0.2334533334, 0.2609615326, 0.3375816047, -0.1644087881, 0.0913476124, 0.2593591511, 0.2599101067, 0.0611647405, -0.3175987303, 0.3532502055, 0.024099594, -0.2972590923, 0.2487800568, 0.0302009527, -0.4848250151, 0.1692437977, -0.1368586123, -0.1654713601, -0.2104642987, -0.1602782458, 0.0624119602, 0.0442181602, -0.2823728621, 0.1196688041, 0.2428826392, -0.3198260665, 0.2043475509, -0.156997323, -0.2403434962, -0.0055527156, 0.4269405305, 0.4065403938, -0.0988840163, 0.3762147725, -0.3821676075, -0.2291807979, -0.2479917705, 0.0170787219, -0.1017572731, -0.1905540824, 0.0740729347, 0.0495088212, 0.2645558119, 0.2278964072, 0.244186759, 0.1665794253, 0.4738416076, -0.0457723662, -0.3763845265, -0.0534239411, -0.0826500058, 0.2334584892, 0.4215303361, -0.2821716368, -0.1803912669, -0.0444137529, -0.031532716, -0.2977473736, -0.0746835098, -0.3243953586, -0.0599078536, -0.1409206092, 0.0639474243, 0.306479454, -0.0825828686, 0.2052274197, -0.1304312944, -0.2022498399, -0.1648024917, -0.0905930102, 0.1376255304, 0.1885038614, 0.0059215738, 0.0722661838, -0.1865186691, 0.0913278982, -0.0160657112, 0.0680556074, 0.3391932547, -0.1600763351, 0.1458011568, 0.2849752605, -0.1264776289, 0.0826689377, -0.2560849786, -0.3877463937, -0.0962095037, 0.2333384156, -0.0109198838, -0.0586497784, 0.0125852479, 0.2005612999, 0.192557171, 0.0898274183, -0.0631168112, 0.180712387, -0.2183727175, -0.2196598947, 0.4232785404, 0.1926406324, 0.1697732508, -0.2186435908, -0.0286129247, 0.1693211645, 0.2163845152, -0.4029263854, -0.2050431222, 0.2802860439, 0.1012177914, 0.3805215955, 0.1541316062, 0.0152057568, -0.4094254076, 0.5462414622, -0.0287209284, -0.0041055102, -0.3661945164, 0.3202916086, 0.4996882081, -0.0537159741, -0.1847576201, 0.0132896751, -0.3211938143, 0.1219500527, -0.130255565, -0.0689774603, 0.5694173574, -0.3159571886, 0.1516031474, -0.4042104483, -0.5119748116, 0.5467658639, 0.1848154366, 0.1130256429, 0.0309387911, 0.1517132968, 0.2065996975, -0.025726838, 0.4139150977, -0.4577171206, -0.0895671323, -0.0933299065, -0.0710509121, -0.222221449, -0.2406518608, 0.0091425404, 0.0592945851, 0.1473670453, -0.1337624341, -0.0407455415, -0.0438596234, -0.0308550727, -0.0630745441, 0.1559130102, 0.0828104317, -0.0376473367, -0.29804039, 0.133795768, 0.4297824204, 0.089774929, 0.2554920316, 0.4157254994, 0.4969005287, 0.3486097455, 0.2711161673, 0.1393636614, -0.0021735395, 0.0014642013, -0.0800176859, 0.6884095073, -0.1229942665, -0.0414233543, 0.3877679706, 0.120042406, -0.1736543328, 0.0360956788, -0.2044162899, -0.2850837708, 0.0684190914, 0.5215963721, 0.377518177, 0.389662534, -0.1074693426, 0.1734253317, -0.3604954779, -0.6644582152, 0.2723968029, -0.0399191603, 0.0898883864, 0.0815154687, 0.0915160105, -0.3056920469, 0.1859530956, 0.2457683235, -0.2111272067, -0.3734826744, -0.1707260609, -0.7457854152, 0.3200782537, -0.3583485484, -0.0507827625, -0.2659005225, 0.2510519922, -0.0308542419, 0.0138650397, 0.2666720152, -0.1524662822, -0.1585640609, -0.1106240749, -0.1117051467, 0.0901385173, 0.070002839, -0.3613715172, -0.0544259176, -0.377302736, 0.0488802977, 0.3439198434, 0.1209904552, 0.1871409118, 0.0270430818, -0.1655441225, 0.3364658356, -0.0094061326, 0.1209341884, 0.6406876445, -0.0901076794, -0.1322650015, -0.1650796086, -0.001069093, -0.1959171444, 0.2554632425, 0.0880504102, 0.322989285, -0.0609648861, 0.1184711829, -0.0113992626, 0.4154301882, 0.0622692741, -0.3943664432, -0.1448112279, 0.3595027626, -0.168012172, 0.1935651898, -0.1367382556, -0.1601217091, 0.2685424685, 0.3416756094, -0.1552408189, -0.1576703489, 0.5508439541, -0.0077090068, 0.1325458139, -0.2604155838, 0.3451995254, -0.3007707298, -0.0775936916, -0.5198215842, -0.0599332303, 0.4845914841, 0.1910953671, -0.0574179292, 0.1789035499, -0.3573938608, 0.1656356156, 0.0039327261, -0.1958293468, -0.0702955052, -0.19738397, 0.008697045, -0.175129056 ]
https://github.com/huggingface/datasets/issues/3847
Datasets' cache not re-used
<s>I think this is because the tokenizer is stateful and because the order in which the splits are processed is not deterministic. Because of that, the hash of the tokenizer may change for certain splits, which causes issues with caching. To fix this we can try making the order of the splits deterministic for map.</s>
## Describe the bug For most tokenizers I have tested (e.g. the RoBERTa tokenizer), the data preprocessing cache are not fully reused in the first few runs, although their `.arrow` cache files are in the cache directory. ## Steps to reproduce the bug Here is a reproducer. The GPT2 tokenizer works perfectly with caching, but not the RoBERTa tokenizer in this example. ```python from datasets import load_dataset from transformers import AutoTokenizer raw_datasets = load_dataset("wikitext", "wikitext-2-raw-v1") # tokenizer = AutoTokenizer.from_pretrained("gpt2") tokenizer = AutoTokenizer.from_pretrained("roberta-base") text_column_name = "text" column_names = raw_datasets["train"].column_names def tokenize_function(examples): return tokenizer(examples[text_column_name], return_special_tokens_mask=True) tokenized_datasets = raw_datasets.map( tokenize_function, batched=True, remove_columns=column_names, load_from_cache_file=True, desc="Running tokenizer on every text in dataset", ) ``` ## Expected results No tokenization would be required after the 1st run. Everything should be loaded from the cache. ## Actual results Tokenization for some subsets are repeated at the 2nd and 3rd run. Starting from the 4th run, everything are loaded from cache. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Ubuntu 18.04.6 LTS - Python version: 3.6.9 - PyArrow version: 6.0.1
55
Datasets' cache not re-used ## Describe the bug For most tokenizers I have tested (e.g. the RoBERTa tokenizer), the data preprocessing cache are not fully reused in the first few runs, although their `.arrow` cache files are in the cache directory. ## Steps to reproduce the bug Here is a reproducer. The GPT2 tokenizer works perfectly with caching, but not the RoBERTa tokenizer in this example. ```python from datasets import load_dataset from transformers import AutoTokenizer raw_datasets = load_dataset("wikitext", "wikitext-2-raw-v1") # tokenizer = AutoTokenizer.from_pretrained("gpt2") tokenizer = AutoTokenizer.from_pretrained("roberta-base") text_column_name = "text" column_names = raw_datasets["train"].column_names def tokenize_function(examples): return tokenizer(examples[text_column_name], return_special_tokens_mask=True) tokenized_datasets = raw_datasets.map( tokenize_function, batched=True, remove_columns=column_names, load_from_cache_file=True, desc="Running tokenizer on every text in dataset", ) ``` ## Expected results No tokenization would be required after the 1st run. Everything should be loaded from the cache. ## Actual results Tokenization for some subsets are repeated at the 2nd and 3rd run. Starting from the 4th run, everything are loaded from cache. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Ubuntu 18.04.6 LTS - Python version: 3.6.9 - PyArrow version: 6.0.1 <s>I think this is because the tokenizer is stateful and because the order in which the splits are processed is not deterministic. Because of that, the hash of the tokenizer may change for certain splits, which causes issues with caching. To fix this we can try making the order of the splits deterministic for map.</s>
[ -0.1935835779, 0.2576530874, 0.0603295378, 0.1439300627, 0.0886533633, -0.0120368982, 0.2372733504, 0.2307136357, -0.1739624739, -0.0923761576, 0.0944176763, 0.4197394252, 0.1473710686, -0.4988313913, -0.0980983377, 0.0087584257, 0.1556413919, 0.2962575853, 0.2818207443, 0.0167985372, 0.0798727497, 0.157657668, -0.4097234607, 0.0683296621, -0.7849789858, 0.0636071563, -0.1426024735, -0.204029724, 0.2053186297, -0.5917580724, 0.1434205174, 0.2275417, 0.1918469965, 0.314571023, -0.000116273, -0.0949886814, 0.154618755, 0.0217143558, -0.1820808351, 0.109898515, 0.221280098, -0.2368630767, -0.0381544642, -0.0733265877, -0.0832139999, -0.4746120572, -0.0754292756, -0.394767493, 0.5450628996, -0.013582807, 0.1303918213, 0.2944393158, -0.0731165782, 0.155956015, 0.0922578201, -0.2526932657, -0.1356758326, -0.3519944251, 0.0138637973, -0.2289206833, -0.2127441466, 0.3381458819, -0.0657569394, 0.1854507029, -0.0039016185, 0.203685686, -0.2123169452, -0.0325373523, 0.2826563418, 0.0732289255, 0.4733012617, -0.2826773822, -0.2412600517, -0.4740594923, -0.1682930291, -0.3226505518, 0.2288812846, -0.238859266, 0.0376447327, 0.2172440141, -0.1532503814, 0.0318912975, 0.1114725024, -0.1228972077, -0.0195752829, 0.5884556174, -0.0064410926, 0.1331996024, -0.1260861009, -0.116510883, 0.3215693235, -0.2736646831, -0.2435584664, 0.4290938973, -0.4443274438, -0.0154458508, -0.0295823012, -0.0173810087, -0.0164755639, 0.5247474909, -0.0258454978, 0.2698527575, 0.1152716801, 0.0023910119, 0.0153556094, 0.4669972658, 0.1358373463, 0.3224343061, 0.1112416759, -0.3069236279, -0.3658966422, -0.2370458841, -0.1922759563, 0.033234559, 0.6400803924, -0.0620428137, -0.3359555304, -0.0196717009, 0.0713116303, 0.1873459965, -0.2389018685, -0.0194494892, 0.1772252619, 0.1333056986, -0.1020876989, 0.3228656948, -0.3596616983, -0.0014561897, -0.1575743854, -0.2304087877, -0.3328735828, -0.2879008651, -0.1426490992, 0.4856709242, 0.1774071753, 0.0911962464, 0.3443685472, 0.1203553081, 0.0311886948, -0.2845879197, 0.3710170686, -0.2066791505, 0.3340440392, 0.1295070201, -0.163689062, 0.4786177576, 0.2269429564, -0.0191211272, -0.1429172754, 0.1062315926, -0.3143117428, -0.1687790006, 0.3164472282, 0.1009824872, -0.1254355907, -0.0486014597, -0.0930451229, 0.0939518064, 0.7197141647, -0.0713700056, -0.0152118234, -0.1250252128, -0.1972004026, -0.0972998142, 0.3395220637, 0.3013440073, 0.0314031802, -0.1705255806, 0.1088937595, 0.2440427691, 0.3841171265, 0.3365629315, -0.248635307, 0.3969653845, -0.2383416593, 0.5769905448, 0.2000476569, -0.1702416092, -0.5266010761, -0.1684288085, 0.1403452754, 0.1756153703, -0.1100311652, -0.2045837045, 0.319240272, -0.1739105284, -0.1509310305, 0.2575598657, 0.0779884011, 0.0827133656, -0.3882087171, -0.1097402051, 0.1497454345, -0.1625437438, 0.1657586992, -0.0951576605, -0.4037343562, -0.0709705353, -0.0066421572, -0.042188216, 0.2132699937, -0.0319219418, 0.0342254527, 0.1121785119, 0.2811706066, -0.0720260218, 0.0297252052, 0.2594842613, 0.0317601971, -0.4906745553, -0.0552325994, -0.1557271779, -0.0835894793, -0.0054293796, -0.3595769405, -0.2243156582, 0.1741663665, 0.357133925, 0.290454179, 0.1037257165, -0.1355921328, 0.2230232656, 0.1264115572, 0.1398032457, 0.1594310403, -0.0718530789, 0.0751119703, -0.2481976151, -0.2994674444, 0.0638375133, 0.3181178272, 0.0060750092, -0.1237123534, 0.2953543067, 0.2341039628, 0.0927410796, -0.0976262242, 0.0288566798, -0.0170454495, 0.0975736156, -0.137693882, 0.0049020192, -0.0569751337, -0.1613106281, 0.1235389262, 0.4445767105, 0.1917801201, 0.1945905983, -0.1940640956, 0.0077040149, 0.1014503911, -0.0329391174, 0.0724618882, -0.2268187255, -0.1709244698, -0.0519596003, 0.3804466128, -0.0248407237, 0.1302720159, 0.3573922217, 0.4106217027, 0.2286726832, -0.0760786161, -0.1673417985, -0.4528776109, -0.4520889819, 0.0531630032, 0.008550101, 0.1192710251, 0.0673011392, 0.3581722975, -0.1674257964, -0.0368379056, -0.1962626129, 0.0878287926, 0.1007554308, -0.1011923179, 0.2494985312, 0.0624677911, 0.0926663503, -0.2123251557, 0.1506041735, 0.2249132246, 0.1754443049, 0.0386264361, 0.1983377635, -0.3890708983, 0.3563159704, 0.1202513948, -0.2297363132, 0.1268812865, -0.2751198411, 0.0400585085, 0.191243425, 0.0842487738, 0.4509012401, -0.1560307592, 0.2962469757, 0.0461618863, 0.0159295015, -0.3722487092, -0.2549332678, -0.4433726072, -0.0661950782, 0.1476181298, -0.3413468301, 0.12854366, 0.0079699624, 0.0815582126, -0.3151891828, -0.2607640028, 0.1877696514, 0.1359531432, 0.0044309902, -0.3070686758, -0.1961412877, -0.1949353069, -0.1226886213, 0.0996504501, -0.3457026184, -0.1464258879, 0.0351211615, -0.0181602649, -0.0575204268, 0.0500050373, -0.0207798723, 0.0321962014, 0.1362087578, -0.2124678493, -0.0863245353, -0.0299500842, -0.041632995, -0.2433954775, -0.1141293496, -0.4619702399, -0.0752789527, -0.4692461789, -0.3125650585, 0.4803681374, -0.1924842, -0.1528541446, -0.0789033026, -0.1797690541, 0.397056371, 0.2215346843, -0.2630383372, 0.0759383813, -0.1697139293, 0.2063454241, -0.0954783186, -0.0039626197, 0.3785199821, 0.0285082851, -0.0312699042, -0.1737098694, 0.0504864864, 0.1119074225, -0.3568447828, 0.0913905948, -0.1721246988, 0.0985307619, 0.2237787843, 0.932412982, 0.3368868232, -0.1043433771, 0.227205649, 0.03009299, 0.0338571966, -0.2660755813, -0.1005530581, -0.0639694408, -0.143467024, 0.1184589118, 0.3568565845, 0.073893182, -0.3566632569, 0.1030755937, 0.2124994546, -0.1410718113, -0.3653876483, -0.0213545784, -0.3170218468, 0.4396621585, 0.2708626986, 0.3439668715, -0.5734398365, -0.0615817979, 0.0629157797, -0.1353631169, 0.3234616518, 0.0480890572, -0.5734482408, 0.2435019463, -0.3559285402, 0.0694525912, -0.0200355314, 0.5383987427, 0.2086405158, -0.2548576891, 0.0463034995, -0.157687068, 0.1807096899, -0.0532740206, -0.128556028, 0.2133657932, -0.075020723, 0.0243054945, -0.3010792732, 0.1305958033, 0.2433154881, 0.185083136, 0.2997668982, -0.2407376468, -0.2456488609, -0.2321982831, 0.0377901457, -0.1341410726, -0.1462182552, -0.1307457238, 0.1777515262, -0.1939963251, 0.2519871294, -0.0593391284, 0.1979376376, -0.1010785177, 0.109445408, -0.494224757, -0.1398455501, -0.0508168004, 0.3136158884, 0.5014795065, -0.1797979921, 0.4422917962, 0.3337454498, -0.1658582091, -0.0264669433, 0.0654930994, 0.1760450006, -0.2951470912, 0.1145888418, -0.010827533, 0.0726283044, 0.1160714477, -0.3776779175, 0.2020569891, -0.3422118723, 0.0323049314, -0.2592195272, 0.2694405913, 0.1831762344, 0.0338387899, -0.1932864785, -0.3921536207, 0.1873571426, 0.2553409934, -0.2619446516, 0.3565439284, -0.0200544689, -0.1502920091, 0.3541975021, 0.1419101059, 0.7753280401, 0.0307932422, 0.1937014759, -0.0439756624, 0.0884841308, 0.4267382026, -0.2545208633, 0.2265947014, -0.3271555901, 0.1699246019, 0.0538938567, -0.0806452334, 0.0466425009, 0.1157160327, -0.0161528252, 0.1472343653, -0.0096061202, 0.5234444141, 0.0876056924, 0.1429345608, 0.0611920431, -0.2540099621, 0.3480761647, 0.1429544538, 0.1016460434, 0.052774176, -0.0287262332, 0.1698488593, 0.114536494, -0.0497070774, -0.1820638925, -0.0469211489, -0.3507699966, 0.2085786313, 0.1542669982, -0.236413151, -0.0599285215, 0.0205667131, 0.5249481201, 0.0833447352, -0.1976611614, 0.2823058069, -0.0501235723, 0.0883031338, -0.2609953284, -0.3290026486, 0.2342515886, 0.0955003351, -0.121094048, -0.0932084695, 0.040705353, -0.313213557, -0.2943510413, 0.1069162935, 0.4297143519, -0.1833530217, 0.2637524009, 0.266830951, 0.1309247911, -0.208369866, 0.1559138298, 0.1751190424, -0.1797720045, 0.2651640475, -0.2969086468, -0.0150658796, -0.0189758837, 0.2421749532, 0.1258236915, -0.1469624937, 0.6182882786, -0.3069407642, -0.1834149063, -0.1140169427, -0.169896856, 0.1224903315, -0.3729103506, -0.0286888853, -0.2503094375, -0.0019046272, 0.2187828273, 0.028469108, -0.1399382055, -0.2102733105, -0.2306327224, -0.1087849736, -0.2813563049, -0.2286402434, -0.0777029395, 0.1453282833, 0.0112708546, 0.1675832123, -0.3358938098, 0.4515828192, -0.2417821437, 0.0939179063, 0.1644227058, 0.2692917585, -0.5540174246, -0.3110893965, -0.061892014, 0.0291774627, 0.0187114328, 0.2917299867, -0.2297453582, -0.2014430314, -0.248679623, 0.14958179, 0.1637605131, -0.183680892, -0.093072854, 0.239914909, 0.0299114548, -0.5353659987, 0.3034058511, -0.0974111706, 0.0032128796, -0.0011605662, 0.5590552688, 0.1373485625, -0.128758505, -0.1431846917, -0.0510981269, 0.0685134307, 0.1983876973, 0.3061799109, -0.0180684254, 0.0356698111, 0.0317267589, 0.1165665239, 0.3202841282, -0.1027743667, 0.1907672435, -0.4239742756, -0.2228091508, 0.0213808063, -0.0429975018, 0.3549051583, 0.0406816714, -0.4355474412, 0.4862135053, 0.1801152676, -0.0601102561, -0.2023332417, 0.1022061557, 0.0955745354, 0.0583071932, 0.095814541, 0.4240989387, -0.0712758377, 0.1387123168, 0.0012363549, 0.7376244068, -0.4007175565, 0.1927981377, -0.0985805988, 0.0959969908, 0.1213651299, 0.4567053318, 0.1582163423, 0.0339951664, 0.2741327584, 0.0374154486, 0.3826278448, 0.2543947995, 0.1269143522, -0.2114642411, -0.4602769017, -0.2264329344, 0.0905204266, 0.0333211757, 0.1685825586, -0.2708933353, 0.1014347523, 0.1997416317, -0.1866505295, -0.2280851156, 0.2765772939, -0.2663268149, -0.4933561683, -0.0022138353, -0.0801019296, -0.0411357209, -0.0027945896, 0.0676939338, 0.1146589071, -0.0165150929, -0.0868198425, -0.1963285804, -0.3474194705, -0.1369510889, 0.1472361833, 0.458024174, -0.2614476681, 0.3614991009, -0.1523576081, -0.2042609602, -0.2023727596, 0.183489725, 0.3073220551, 0.210403204, -0.1761487722, 0.0537868105, -0.31117329, 0.0652739927, -0.2555413246, 0.551189065, -0.0474051051, -0.4598545432, -0.0600385331, 0.025373321, -0.0809958056, -0.1161285341, 0.0456982367, 0.1176922917, -0.1327654868, 0.2467554361, 0.0342529044, -0.0341261588, 0.1090030521, 0.2653691173, -0.0866890326, 0.252463907, 0.3417983949, 0.088987723, 0.162716493, -0.2551008761, 0.0636398196, 0.0530528277, 0.3453196287, 0.2229370922, -0.1189523488, -0.2808324397, -0.3639172316, -0.3440895081, 0.275249809, -0.21129632, 0.2373497784, -0.027991198, 0.3053000271, -0.1511238217, 0.0536814295, 0.0211974923, 0.1874320507, 0.0294235405, 0.1314458698, -0.4837582707, 0.2020586729, -0.0472949706, -0.0341598503, 0.078075394, -0.3039311469, 0.2673698962, 0.0474379435, 0.0970432237, 0.1185548976, -0.0417835563, 0.2750138342, -0.0305554122, 0.5720663071, 0.3431615829, 0.0775990784, 0.147850588, 0.3189914823, -0.5735743046, 0.1071516275, -0.2205273062, -0.2107764035, -0.0130655412, 0.206743598, -0.2882100344, -0.1110171527, -0.1935896277, -0.2043614239, 0.2925827503, -0.0641579106, -0.0779410973, -0.0712256879, -0.0341531634, 0.3198628128, 0.0363751389, 0.4187648296, -0.0714549795, 0.403506279, -0.401430577, -0.2862530947, 0.3484450579, -0.5889866352, -0.3662734032, -0.3552933037, 0.148172617, 0.331835866, -0.109733589, -0.294980377, 0.0653537512, 0.4135059714, -0.0882927626, -0.3316763341, 0.1790214479, 0.2835626602, 0.153746441, -0.1921846122, 0.5792125463, 0.0980000943, -0.0326240547, -0.0530109815, -0.1204140782 ]
https://github.com/huggingface/datasets/issues/3847
Datasets' cache not re-used
Actually this is not because of the order of the splits, but most likely because the tokenizer used to process the second split is in a state that has been modified by the first split. Therefore after reloading the first split from the cache, then the second split can't be reloaded since the tokenizer hasn't seen the first split (and therefore is considered a different tokenizer). This is a bit trickier to fix, we can explore fixing this next week maybe
## Describe the bug For most tokenizers I have tested (e.g. the RoBERTa tokenizer), the data preprocessing cache are not fully reused in the first few runs, although their `.arrow` cache files are in the cache directory. ## Steps to reproduce the bug Here is a reproducer. The GPT2 tokenizer works perfectly with caching, but not the RoBERTa tokenizer in this example. ```python from datasets import load_dataset from transformers import AutoTokenizer raw_datasets = load_dataset("wikitext", "wikitext-2-raw-v1") # tokenizer = AutoTokenizer.from_pretrained("gpt2") tokenizer = AutoTokenizer.from_pretrained("roberta-base") text_column_name = "text" column_names = raw_datasets["train"].column_names def tokenize_function(examples): return tokenizer(examples[text_column_name], return_special_tokens_mask=True) tokenized_datasets = raw_datasets.map( tokenize_function, batched=True, remove_columns=column_names, load_from_cache_file=True, desc="Running tokenizer on every text in dataset", ) ``` ## Expected results No tokenization would be required after the 1st run. Everything should be loaded from the cache. ## Actual results Tokenization for some subsets are repeated at the 2nd and 3rd run. Starting from the 4th run, everything are loaded from cache. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Ubuntu 18.04.6 LTS - Python version: 3.6.9 - PyArrow version: 6.0.1
81
Datasets' cache not re-used ## Describe the bug For most tokenizers I have tested (e.g. the RoBERTa tokenizer), the data preprocessing cache are not fully reused in the first few runs, although their `.arrow` cache files are in the cache directory. ## Steps to reproduce the bug Here is a reproducer. The GPT2 tokenizer works perfectly with caching, but not the RoBERTa tokenizer in this example. ```python from datasets import load_dataset from transformers import AutoTokenizer raw_datasets = load_dataset("wikitext", "wikitext-2-raw-v1") # tokenizer = AutoTokenizer.from_pretrained("gpt2") tokenizer = AutoTokenizer.from_pretrained("roberta-base") text_column_name = "text" column_names = raw_datasets["train"].column_names def tokenize_function(examples): return tokenizer(examples[text_column_name], return_special_tokens_mask=True) tokenized_datasets = raw_datasets.map( tokenize_function, batched=True, remove_columns=column_names, load_from_cache_file=True, desc="Running tokenizer on every text in dataset", ) ``` ## Expected results No tokenization would be required after the 1st run. Everything should be loaded from the cache. ## Actual results Tokenization for some subsets are repeated at the 2nd and 3rd run. Starting from the 4th run, everything are loaded from cache. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Ubuntu 18.04.6 LTS - Python version: 3.6.9 - PyArrow version: 6.0.1 Actually this is not because of the order of the splits, but most likely because the tokenizer used to process the second split is in a state that has been modified by the first split. Therefore after reloading the first split from the cache, then the second split can't be reloaded since the tokenizer hasn't seen the first split (and therefore is considered a different tokenizer). This is a bit trickier to fix, we can explore fixing this next week maybe
[ -0.1986140907, 0.2466831207, 0.0669297799, 0.1183694527, 0.0800370649, 0.0124684758, 0.27197963, 0.2143706977, -0.1935912222, -0.1080537736, 0.0886221528, 0.4167428613, 0.1809748411, -0.5377520919, -0.0903876498, -0.0427592769, 0.1412890553, 0.2917448282, 0.2959862947, 0.0640426502, 0.1097169295, 0.1906701326, -0.4057332873, 0.070421122, -0.754524231, 0.0739881769, -0.1481439173, -0.1462655813, 0.2047286183, -0.5908921361, 0.1689056456, 0.2595779002, 0.2001171261, 0.2852040231, -0.0001196654, -0.0867461488, 0.1411747932, 0.0526234768, -0.1707143486, 0.1204956695, 0.2111908048, -0.1910049021, -0.0383823738, -0.0498456992, -0.0368062966, -0.4331616163, -0.0786321014, -0.42084831, 0.5780020356, -0.0581574664, 0.0969414413, 0.2591759264, -0.1169558018, 0.1271640658, 0.1028000712, -0.2154765874, -0.1262718737, -0.4016626477, -0.0211597737, -0.205672726, -0.2133861035, 0.3187598586, -0.0963901654, 0.190955773, -0.034730535, 0.1991234422, -0.244404763, -0.0330569595, 0.2058880478, 0.0496277884, 0.440530628, -0.2741959393, -0.2419788241, -0.5149124265, -0.1330810934, -0.3745311201, 0.22674115, -0.2042077631, 0.0730721727, 0.2213132977, -0.1399074346, 0.0891412348, 0.0989518762, -0.1287358403, -0.0349245854, 0.5847364068, 0.0099362861, 0.1250522584, -0.1420137286, -0.0792918652, 0.337087214, -0.2682812214, -0.2180353403, 0.4121712446, -0.4101338089, 0.0265906304, -0.0118189314, 0.0121576553, -0.0262504686, 0.5511411428, -0.0630174354, 0.2254935056, 0.1313031912, -0.0415940471, 0.0266414005, 0.4568916857, 0.1161326393, 0.3488685489, 0.1168061197, -0.2385698259, -0.3146237433, -0.2253879607, -0.1614959538, 0.0269876737, 0.5888154507, -0.0058407439, -0.3118105531, -0.0003040475, 0.0084866313, 0.1413022578, -0.2423041165, -0.0340625346, 0.1819696873, 0.1321226805, -0.070030883, 0.3185286522, -0.3519311845, 0.0457115397, -0.178064242, -0.2316769511, -0.2925891876, -0.3107387424, -0.1810812652, 0.4899430275, 0.1706737876, 0.1318376809, 0.3035505116, 0.1658535898, 0.0606444813, -0.2821775079, 0.3627635837, -0.1447578371, 0.3338554204, 0.1605361104, -0.1304638684, 0.508590281, 0.1579696983, 0.0248627085, -0.1413264275, 0.1234319732, -0.3401711881, -0.1505415142, 0.3115953505, 0.0881734341, -0.1358282417, -0.0182066802, -0.0958858356, 0.0745140612, 0.7769213319, -0.0945151001, -0.0158478804, -0.1223430336, -0.1744950265, -0.0923426524, 0.2807444036, 0.3410449326, 0.0109004593, -0.1625842899, 0.0517025106, 0.2460908741, 0.413939178, 0.3340789974, -0.2454842478, 0.3515410423, -0.2834359705, 0.6606819034, 0.1614672691, -0.1628279537, -0.5037254095, -0.1444263309, 0.1136394888, 0.229957208, -0.090631716, -0.2082571536, 0.3524008393, -0.1944240183, -0.1165513322, 0.3068516552, 0.0670147687, 0.0767699704, -0.3873151243, -0.0957921371, 0.1263174713, -0.1833305061, 0.1591962874, -0.0987874269, -0.4068606198, -0.0252454802, 0.0467832983, -0.0416569263, 0.179851681, -0.0388615504, -0.0057353606, 0.138954401, 0.2718571723, -0.087905176, -0.0031679259, 0.2667987347, 0.0274886675, -0.5433757305, -0.1068650782, -0.1762275249, -0.0915438458, -0.0271404237, -0.433100611, -0.2266075611, 0.1392434686, 0.3854078054, 0.2420341522, 0.0587814637, -0.1209195331, 0.2552438676, 0.1672874391, 0.1566624343, 0.1587091982, -0.0445006378, 0.0627003312, -0.2388305813, -0.3361634016, 0.0595775954, 0.323528707, -0.0074618114, -0.1055858359, 0.3222484589, 0.2584588826, 0.0905055553, -0.1185096726, -0.0426501781, 0.0173144042, 0.0908206552, -0.1965562403, -0.0049052993, -0.1352147907, -0.1392587721, 0.1043125987, 0.4631557763, 0.1533489376, 0.2187501043, -0.2007427961, 0.0072998363, 0.0527476035, -0.0520289689, 0.0671991631, -0.2550838888, -0.1028965786, -0.0584212355, 0.3732788563, -0.0494303219, 0.1537129879, 0.416616708, 0.4407032728, 0.2286290079, -0.1198709533, -0.2013791949, -0.3755591512, -0.3949953616, 0.0501855835, 0.013280849, 0.1498377323, 0.0744451284, 0.3507488668, -0.1952112764, -0.0676598251, -0.1977311224, 0.0408629365, 0.1053515971, -0.0561088733, 0.2733736932, 0.1102678925, 0.1117085963, -0.1833275557, 0.1229063496, 0.209774062, 0.0982418135, -0.00689848, 0.2228334695, -0.3755999506, 0.3456407189, 0.1019439772, -0.2880043983, 0.1173815802, -0.2836710513, 0.0636080429, 0.1541852504, 0.0929389596, 0.4222828746, -0.1402499229, 0.300896883, 0.050787162, 0.0104564251, -0.3798058927, -0.176865682, -0.3743944764, -0.0814045146, 0.1589058787, -0.3389071226, 0.0899121538, 0.0020862494, 0.0196648873, -0.250819087, -0.2769834995, 0.1574553996, 0.1206053644, 0.0432882532, -0.2862043679, -0.2152852714, -0.1790948957, -0.1880660951, 0.0562932231, -0.2978021801, -0.1772974283, 0.041456081, -0.0261547416, -0.0226894952, 0.0218016841, -0.0258529037, 0.0410147123, 0.1434714794, -0.2004843801, -0.0810185894, -0.0434943028, -0.1012002379, -0.3084027767, -0.1947135627, -0.464589715, -0.0675354674, -0.4340672493, -0.256318152, 0.4615657926, -0.2448831946, -0.1174695194, -0.1471626312, -0.1874661148, 0.3436489701, 0.2376237214, -0.2583017051, 0.1238425225, -0.2032197118, 0.2383244038, -0.1623324156, -0.0352168418, 0.403755486, 0.0084525133, 0.0046834443, -0.1745023131, 0.0674811974, 0.1168954894, -0.3396818042, 0.0507074445, -0.231725499, 0.0983930379, 0.2533621192, 0.9920882583, 0.3216713965, -0.0768558607, 0.2035022527, 0.0644135177, -0.0247610323, -0.2875915766, -0.0832945555, -0.0589006804, -0.1288047731, 0.1359788924, 0.350243926, 0.0645995513, -0.3575950265, 0.1621759832, 0.2756481767, -0.1737639159, -0.3300917149, -0.0719680414, -0.3131746948, 0.4344008863, 0.2879632115, 0.3278740048, -0.5153263807, -0.0468121767, 0.0402113907, -0.1030808389, 0.3604878783, 0.0838514939, -0.5521277189, 0.2612577677, -0.3385922611, 0.0576144196, 0.0092100473, 0.4662270546, 0.2069613636, -0.2730767727, 0.0709163845, -0.1825984567, 0.2183976322, 0.0029403581, -0.0922961384, 0.2284512967, -0.0333237872, 0.0313681886, -0.3247675598, 0.1507244259, 0.2450746447, 0.2322944105, 0.3104199469, -0.2639337778, -0.2009308338, -0.1604718715, 0.0344255976, -0.0964217931, -0.1504187137, -0.1781887561, 0.1734168679, -0.1654394269, 0.2824766636, -0.0374530926, 0.2354803085, -0.1800149232, 0.0809507594, -0.4922932386, -0.1860668063, -0.0767653361, 0.3036800623, 0.5220665932, -0.1844088286, 0.4347139597, 0.3527182043, -0.1852627397, -0.0159676839, 0.1004798785, 0.1875529438, -0.2872171402, 0.1332561821, -0.033491984, 0.0296498165, 0.1657015979, -0.3888899088, 0.2327273488, -0.3384534121, 0.0328856595, -0.2293840945, 0.2581190765, 0.2117277235, -0.0484681651, -0.2446707189, -0.340187043, 0.1945215017, 0.2675482631, -0.2969053984, 0.3813615143, 0.0141543234, -0.1641404629, 0.3713681102, 0.1348219663, 0.7893362045, -0.016290592, 0.2220690101, -0.0164899901, 0.0586085841, 0.4450755119, -0.244416669, 0.2798560858, -0.3578080833, 0.1245082691, 0.0495916121, -0.1131645441, 0.02682673, 0.1403866112, -0.0140876044, 0.0954839811, -0.083270289, 0.4984354377, 0.0850094929, 0.0977133438, 0.0590610243, -0.2386516184, 0.3298864663, 0.0820456743, 0.1200569645, 0.0492036231, -0.0740805119, 0.1501200348, 0.1184603423, -0.0388878249, -0.1959205121, 0.0067107356, -0.378335923, 0.1816550642, 0.1107750908, -0.2405023724, -0.0494732112, 0.0005552992, 0.5132563114, 0.0757293403, -0.154686898, 0.2789109349, -0.0245537888, 0.059658017, -0.2517177463, -0.3535148203, 0.1920717359, 0.1024011746, -0.0835178867, -0.146229431, 0.0545558445, -0.3341186345, -0.3223527074, 0.1636532247, 0.4592328668, -0.2044984698, 0.2721552551, 0.3076669872, 0.1968186349, -0.2376508564, 0.1218000874, 0.1471221447, -0.1775720716, 0.2355224788, -0.3650659323, -0.0209734142, -0.0267987307, 0.2505940199, 0.1133056879, -0.1407479942, 0.5895729661, -0.2970130146, -0.1994856745, -0.0906178057, -0.1688179225, 0.1300236136, -0.4675256908, -0.0001313318, -0.2899192274, 0.0399837345, 0.2274189591, -0.021529844, -0.1704978347, -0.227954343, -0.2208793759, -0.147073999, -0.2232803553, -0.2348643839, -0.105567947, 0.131213218, 0.031228967, 0.2051903307, -0.3769451976, 0.4776646793, -0.2059579045, 0.1218264401, 0.2080545276, 0.2703278661, -0.5918806195, -0.3094648719, -0.0588445924, 0.0568621643, -0.0046158582, 0.2939759791, -0.2202422172, -0.1727153063, -0.2691669166, 0.1644949913, 0.1090914384, -0.1758020222, -0.0454658456, 0.2050427496, 0.0424656421, -0.4913257062, 0.3532971144, -0.090252392, 0.017581882, -0.0373615697, 0.6024551988, 0.1566899419, -0.1915222555, -0.1455366611, -0.0820033178, 0.0201393701, 0.2133128196, 0.3905096352, -0.0332186744, 0.0559237488, 0.0242263135, 0.1020532548, 0.3284748495, -0.0833665133, 0.1821627617, -0.471521616, -0.2192228734, -0.0121530741, 0.037872456, 0.3860445321, 0.0389074311, -0.4436994791, 0.3901058435, 0.1609931141, -0.0530362464, -0.217744559, 0.1162716001, 0.1225735173, 0.0170912649, 0.1161900088, 0.4477259815, -0.0611365885, 0.1699950099, 0.0312686972, 0.7304186225, -0.3820020854, 0.2530098557, -0.0096819103, 0.0752521083, 0.134163186, 0.4675132334, 0.1090310812, 0.034058664, 0.2971857488, 0.0593501255, 0.4209291637, 0.2645436227, 0.1017269641, -0.2079226673, -0.517454505, -0.2655457258, 0.0982064828, 0.0856135488, 0.152768448, -0.218106091, 0.1287780851, 0.1679903269, -0.2487191856, -0.2341963053, 0.2735737562, -0.2675425112, -0.5016283989, 0.0112173585, -0.1022702381, -0.0746673048, -0.0196276493, 0.041801881, 0.1596407592, 0.056187097, -0.0974994227, -0.1629060805, -0.3875578344, -0.1222809255, 0.1330620497, 0.4843447804, -0.269762516, 0.3905335963, -0.1281411797, -0.2103492171, -0.1795298755, 0.1391530931, 0.3073678911, 0.2227678895, -0.1702992916, -0.0092682643, -0.3030278683, 0.0825229585, -0.2527857125, 0.5337439179, -0.0171550661, -0.412127465, -0.0168502796, 0.0076544047, -0.0712712035, -0.0909923613, 0.1093576998, 0.1337570548, -0.1044064537, 0.2596667409, -0.0071792062, -0.0323159583, 0.1581251323, 0.2711392343, -0.0472834483, 0.274507463, 0.3438728154, 0.0693403184, 0.1414221376, -0.2409184575, 0.0432248339, 0.0891556963, 0.2825499475, 0.2561275363, -0.0884243622, -0.3228320181, -0.3916658461, -0.287856847, 0.2613722384, -0.2196719795, 0.2469605207, 0.0038332478, 0.3252659738, -0.2005731463, 0.0354959518, 0.0477429032, 0.1368613094, 0.0446854569, 0.1957164556, -0.4886235595, 0.2170260549, -0.0464895852, -0.078739658, 0.030173827, -0.3410123289, 0.2344427556, 0.0975275487, 0.0714775175, 0.1593836248, -0.0751540735, 0.3086591363, -0.038947951, 0.5412754416, 0.3648592532, 0.088010937, 0.1530066133, 0.27117607, -0.5692217946, 0.0743494257, -0.2376506031, -0.2048390955, -0.0294516273, 0.251870662, -0.2887203991, -0.0839978606, -0.1977404803, -0.2058195621, 0.2998126447, 0.0179587454, -0.109202534, -0.0511268526, -0.0746040344, 0.3495851159, 0.0497696884, 0.4375370443, -0.0763431564, 0.4330521226, -0.3817037046, -0.3155697584, 0.3703794181, -0.5713053942, -0.3547505438, -0.3520962298, 0.1723055542, 0.3613041341, -0.0910504237, -0.2735186815, 0.0206696708, 0.4401472807, -0.132671833, -0.3171379566, 0.2233786136, 0.3116164505, 0.1016771868, -0.1878721863, 0.5746760368, 0.1346687526, -0.0772608742, -0.051765684, -0.1657229066 ]
https://github.com/huggingface/datasets/issues/3847
Datasets' cache not re-used
Sorry didn't have the bandwidth to take care of this yet - will re-assign when I'm diving into it again !
## Describe the bug For most tokenizers I have tested (e.g. the RoBERTa tokenizer), the data preprocessing cache are not fully reused in the first few runs, although their `.arrow` cache files are in the cache directory. ## Steps to reproduce the bug Here is a reproducer. The GPT2 tokenizer works perfectly with caching, but not the RoBERTa tokenizer in this example. ```python from datasets import load_dataset from transformers import AutoTokenizer raw_datasets = load_dataset("wikitext", "wikitext-2-raw-v1") # tokenizer = AutoTokenizer.from_pretrained("gpt2") tokenizer = AutoTokenizer.from_pretrained("roberta-base") text_column_name = "text" column_names = raw_datasets["train"].column_names def tokenize_function(examples): return tokenizer(examples[text_column_name], return_special_tokens_mask=True) tokenized_datasets = raw_datasets.map( tokenize_function, batched=True, remove_columns=column_names, load_from_cache_file=True, desc="Running tokenizer on every text in dataset", ) ``` ## Expected results No tokenization would be required after the 1st run. Everything should be loaded from the cache. ## Actual results Tokenization for some subsets are repeated at the 2nd and 3rd run. Starting from the 4th run, everything are loaded from cache. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Ubuntu 18.04.6 LTS - Python version: 3.6.9 - PyArrow version: 6.0.1
21
Datasets' cache not re-used ## Describe the bug For most tokenizers I have tested (e.g. the RoBERTa tokenizer), the data preprocessing cache are not fully reused in the first few runs, although their `.arrow` cache files are in the cache directory. ## Steps to reproduce the bug Here is a reproducer. The GPT2 tokenizer works perfectly with caching, but not the RoBERTa tokenizer in this example. ```python from datasets import load_dataset from transformers import AutoTokenizer raw_datasets = load_dataset("wikitext", "wikitext-2-raw-v1") # tokenizer = AutoTokenizer.from_pretrained("gpt2") tokenizer = AutoTokenizer.from_pretrained("roberta-base") text_column_name = "text" column_names = raw_datasets["train"].column_names def tokenize_function(examples): return tokenizer(examples[text_column_name], return_special_tokens_mask=True) tokenized_datasets = raw_datasets.map( tokenize_function, batched=True, remove_columns=column_names, load_from_cache_file=True, desc="Running tokenizer on every text in dataset", ) ``` ## Expected results No tokenization would be required after the 1st run. Everything should be loaded from the cache. ## Actual results Tokenization for some subsets are repeated at the 2nd and 3rd run. Starting from the 4th run, everything are loaded from cache. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Ubuntu 18.04.6 LTS - Python version: 3.6.9 - PyArrow version: 6.0.1 Sorry didn't have the bandwidth to take care of this yet - will re-assign when I'm diving into it again !
[ -0.1496466398, 0.314725399, 0.0716685429, 0.1290515065, 0.1573753804, 0.0476938263, 0.2401155531, 0.2392692864, -0.1712928414, -0.1187091321, 0.1149297059, 0.4237597883, 0.1328928918, -0.5434716344, -0.0387901217, 0.0273851324, 0.1781152636, 0.2702391148, 0.2457362562, 0.0167138707, 0.1264606416, 0.1387687624, -0.4036779106, 0.0967465118, -0.7452349663, 0.0936199352, -0.125693962, -0.1946759224, 0.1997441947, -0.6271023154, 0.2501429617, 0.225506112, 0.2573920488, 0.2890694141, -0.0001172914, -0.0892504975, 0.1830294877, 0.0190394316, -0.1930199116, 0.0928020775, 0.282279551, -0.2167723924, 0.0447573997, -0.0333494246, -0.0704755038, -0.5096406937, -0.0718857646, -0.4325051606, 0.509893775, 0.0179636832, 0.1252144277, 0.2716318369, -0.0647496134, 0.1829848737, 0.0636328906, -0.2484784573, -0.1290770471, -0.3206101656, 0.0575575344, -0.2874328494, -0.1795987934, 0.3793180585, -0.0844188258, 0.2158171088, 0.0258355886, 0.1868567318, -0.2174684852, -0.040463537, 0.2339971811, 0.0484559871, 0.5163536072, -0.3183324933, -0.2284271121, -0.4688544273, -0.1109303534, -0.3467470706, 0.214512229, -0.2615731955, 0.0431198366, 0.2218202055, -0.1561929286, 0.0548576452, 0.0721776411, -0.1161556393, 0.0449292287, 0.5224860907, 0.003620619, 0.1221209317, -0.1712014228, -0.1486323923, 0.3104871511, -0.2451229244, -0.2606159151, 0.4364239573, -0.4303745925, 0.0379658453, 0.0305217858, 0.0298903417, 0.0537698045, 0.5458319187, 0.0382839255, 0.2496570796, 0.1242190227, -0.0269415509, -0.006763516, 0.4577530622, 0.1358378828, 0.2337073088, 0.1173852533, -0.2893109918, -0.3682040274, -0.2542857826, -0.1975220293, 0.053790655, 0.6866315603, -0.0638667941, -0.2569842637, -0.0553963631, 0.0675082356, 0.2426523268, -0.258146584, -0.0099526346, 0.1708462834, 0.1156730875, -0.0890668705, 0.307898581, -0.2893310785, 0.0661904514, -0.1231323034, -0.228539601, -0.3091651499, -0.3010594845, -0.1508291066, 0.4701042771, 0.2294700295, 0.1391035318, 0.3537515998, 0.1163753569, 0.0649455339, -0.2897750437, 0.3940261006, -0.157108888, 0.3520015776, 0.117479749, -0.2010050714, 0.4781505764, 0.2396307439, -0.0330838785, -0.1026361063, 0.1219820157, -0.3267691135, -0.143353641, 0.2797374725, 0.0795737877, -0.1287412196, -0.084189564, -0.1399333179, 0.089643687, 0.6957962513, -0.0073920842, 0.0208942611, -0.0888223946, -0.1555300206, -0.102474615, 0.3443876803, 0.3368390203, 0.0422122069, -0.1415806562, 0.1482397914, 0.286652565, 0.364554882, 0.2720202804, -0.2845729589, 0.3967934847, -0.2351450324, 0.5051147342, 0.2054083794, -0.2336588055, -0.5080648065, -0.1962037385, 0.1592162102, 0.2315395623, -0.1437292844, -0.2149631679, 0.1970884949, -0.1343480945, -0.0914932638, 0.2421090305, 0.0965415761, 0.0560800023, -0.3883775175, -0.0912498161, 0.1725711673, -0.145347774, 0.1465215832, -0.0908728912, -0.4464561641, -0.1795345396, 0.0333878361, -0.0767096877, 0.1939987093, 0.0088995295, 0.0534069985, 0.1170181334, 0.2671172619, -0.076922223, 0.0416668542, 0.2792671323, 0.0735381395, -0.502702415, -0.0599439368, -0.1543649733, -0.0791190788, 0.0120708346, -0.3970061243, -0.2427794635, 0.1685965359, 0.3477820456, 0.2477673888, 0.0816193894, -0.1496853232, 0.253623724, 0.1398558915, 0.1196851805, 0.1491610259, -0.0935558081, 0.0720452443, -0.2579772174, -0.2920268178, 0.0494029447, 0.3054842949, 0.0404503904, -0.1204225793, 0.274148494, 0.1760031581, 0.0413814932, -0.0224754531, 0.0637963936, -0.0251236539, 0.0663305521, -0.196021542, -0.0103448397, -0.0560835972, -0.1126933172, 0.1224122196, 0.417719692, 0.2220222801, 0.1776102781, -0.2243482918, 0.0148324836, 0.1169259697, -0.0266554561, 0.0491662621, -0.1724434942, -0.1185892597, -0.0452571437, 0.3547887802, -0.0718538314, 0.0795872882, 0.3693446517, 0.3027786613, 0.2740742862, -0.074247539, -0.1505911499, -0.4580278099, -0.4412696064, 0.0557347462, -0.0554629415, 0.0964134708, 0.0672728717, 0.356842339, -0.1605474502, -0.0507565364, -0.162063092, 0.0789048374, 0.0775856897, -0.0451041758, 0.2140687257, 0.1254016757, 0.1403591186, -0.2227543741, 0.115649879, 0.1801714897, 0.1721226126, -0.03616447, 0.1850106269, -0.3932944536, 0.3735192716, 0.1617305875, -0.2571481168, 0.1370388865, -0.2291177362, 0.0004772544, 0.2014742941, 0.1178958192, 0.4331188202, -0.2208198011, 0.284745872, 0.0397726856, -0.0327846296, -0.4189469516, -0.245915696, -0.4158405662, -0.0797967166, 0.1345040053, -0.3992309272, 0.1183569282, 0.0304223988, 0.1510621756, -0.3536342382, -0.3006523252, 0.1408043504, 0.1599121392, 0.0977934226, -0.3092905283, -0.1905942261, -0.2658297718, -0.0854964852, 0.0992265865, -0.2998673022, -0.1407623291, 0.0725387111, -0.0520283394, -0.0708102211, 0.0619745217, 0.0337305963, 0.0437633954, 0.1885652244, -0.2162318826, -0.0474694446, -0.0641926751, -0.0047239764, -0.2278495431, -0.1047510728, -0.4585178494, -0.0159208998, -0.4461232722, -0.3706702888, 0.4806772768, -0.2109055072, -0.1571484953, -0.1032229811, -0.1517280489, 0.3850890398, 0.2240369469, -0.3097252548, 0.0396714695, -0.1685181111, 0.2387786955, -0.1351700574, -0.0187806934, 0.3713730574, 0.0588033348, -0.0182125252, -0.190770328, -0.0168157611, 0.1048965752, -0.3329174519, 0.1152164936, -0.1768983006, 0.056559138, 0.1800134182, 0.8835824728, 0.3030771315, -0.0876881257, 0.3166607022, 0.0164151788, 0.0654161647, -0.28181687, -0.1119614244, -0.0928837135, -0.1507757753, 0.1522853523, 0.2848307192, 0.0572617799, -0.3074967563, 0.0906666592, 0.2607078254, -0.1738389432, -0.3293614984, -0.048473496, -0.3949554265, 0.4155477881, 0.2921670377, 0.3026255965, -0.5683277845, -0.0737371519, 0.0744879022, -0.1200315952, 0.3379220068, 0.0642007217, -0.5780259371, 0.2022644132, -0.3777980804, 0.0665109381, -0.0573109649, 0.5618975163, 0.2135440558, -0.2327162623, 0.0140935602, -0.1640663445, 0.1641955674, -0.0394844413, -0.1214771643, 0.2387088686, -0.0195224471, -0.043484766, -0.3613973856, 0.1375617832, 0.2124518007, 0.1276958287, 0.2797454298, -0.1835803539, -0.2373206615, -0.235632956, 0.0353283994, -0.132829383, -0.1089754403, -0.1756111085, 0.1068999171, -0.1821715087, 0.2593707144, -0.0603813492, 0.219882533, -0.1030623764, 0.1088481247, -0.5350129008, -0.0664534047, -0.0193174426, 0.2916421592, 0.526267767, -0.1402477771, 0.4458414912, 0.3076349199, -0.1737591177, 0.005637587, 0.1000574604, 0.1724061817, -0.2650017142, 0.0951076671, -0.0395800397, 0.1041377336, 0.0811784044, -0.4325259328, 0.1848162711, -0.3815199733, -0.0384171829, -0.266369462, 0.2759721577, 0.1773133129, 0.0402032398, -0.2008396983, -0.3223567903, 0.2259053588, 0.2753470242, -0.2864294648, 0.4161459208, -0.034140259, -0.168904826, 0.3487496078, 0.1649142504, 0.7378825545, -0.0094464272, 0.2524431944, -0.0429077931, 0.0671559572, 0.4062090516, -0.2137297094, 0.2337513268, -0.344155848, 0.1380158663, 0.050808832, -0.0984805077, 0.0430446491, 0.1138905138, 0.0026768462, 0.1201973557, -0.0441489741, 0.4931091964, 0.1177854538, 0.0759126469, 0.099560909, -0.2176346928, 0.3169734776, 0.1191090047, 0.0787616745, 0.0529537648, -0.0669537336, 0.1498933882, 0.0823407769, -0.079154864, -0.2052857727, -0.043328803, -0.4135439694, 0.1638141423, 0.178659901, -0.2680891156, -0.0572349429, 0.062889725, 0.5132486224, 0.0806562752, -0.2424592376, 0.27821064, -0.0237807631, 0.0961897299, -0.2390136719, -0.3213161528, 0.1803244203, 0.0943513662, -0.1165804416, -0.1072588712, 0.0330312252, -0.3065809011, -0.2994694412, 0.1118603647, 0.4513829052, -0.1643766463, 0.2170653045, 0.2738830745, 0.2078411281, -0.22879228, 0.1497158706, 0.2093848139, -0.1626155972, 0.2665521204, -0.2902013958, -0.0437488742, 0.0190149266, 0.2579431832, 0.0977383852, -0.1991977096, 0.6326388121, -0.2845069468, -0.166554898, -0.0881223232, -0.1795233786, 0.1936964393, -0.3613830507, -0.0481251329, -0.1833711267, 0.0583531521, 0.1849151403, -0.0313774273, -0.1337703764, -0.252481997, -0.1289190948, -0.1238343343, -0.3460420966, -0.2323895395, -0.0580482557, 0.1227937713, 0.023049809, 0.0849346071, -0.2727028728, 0.3929896057, -0.2205031365, 0.124483034, 0.1798263043, 0.2595350444, -0.5302693844, -0.2418617159, -0.0251035653, 0.0357570834, 0.0139656309, 0.2438117862, -0.2177820653, -0.1958757341, -0.2893827558, 0.1587811261, 0.1439385861, -0.2120714039, -0.0273060985, 0.1951293349, 0.0444279276, -0.5177790523, 0.2708553374, -0.0575938784, 0.0203525126, 0.0131965419, 0.503379941, 0.1315267682, -0.1447986364, -0.1968228072, -0.0594369583, 0.071176514, 0.2346780747, 0.2693520188, -0.0183863044, 0.0074077481, 0.0451811925, 0.0947850123, 0.2314912081, -0.0604017451, 0.1492762268, -0.4599713087, -0.2281997204, 0.0303227473, -0.0636140034, 0.3517602682, -0.0415583514, -0.4037971795, 0.4334946871, 0.174688682, -0.0629117936, -0.2019718736, 0.1070033312, 0.1309317946, 0.004806302, 0.0539040603, 0.4377894402, -0.1185037345, 0.173693791, -0.0063409307, 0.6974010468, -0.4154411554, 0.1573444456, -0.1454971582, 0.0803416222, 0.0672813877, 0.4486436844, 0.2264155895, -0.0185097344, 0.2831720412, 0.0499074161, 0.3142869771, 0.3167969584, 0.0907566696, -0.2957512438, -0.4990541339, -0.212723583, 0.1188569292, 0.064121142, 0.1927648932, -0.2553494871, 0.1071341187, 0.2710864544, -0.2303538173, -0.1873863637, 0.246534273, -0.2720325887, -0.5263675451, 0.0077926866, -0.0840326026, -0.0181979239, 0.0024060823, 0.0553262047, 0.089598611, 0.0123110851, -0.0918683708, -0.2301378399, -0.4301742315, -0.1233120412, 0.2040394098, 0.4271530509, -0.2543348372, 0.4015339613, -0.1306880563, -0.244254902, -0.2122461647, 0.1960955858, 0.3405883014, 0.2235633731, -0.1643119752, 0.098384805, -0.3242003918, 0.079453364, -0.2600879073, 0.5433879495, 0.0360720605, -0.4382256269, -0.0570569932, 0.0120778857, -0.0401428342, -0.0607479252, 0.0593844131, 0.1559498161, -0.1460573673, 0.2029124647, 0.0355141424, -0.0452861302, 0.1095538661, 0.3006153405, -0.0577922873, 0.2694153786, 0.4779255688, 0.1471050233, 0.1597246528, -0.27252087, 0.0581977032, 0.0926937684, 0.3004269898, 0.2922056615, -0.0658946186, -0.3236883581, -0.356574893, -0.3387774825, 0.2907895148, -0.1984663606, 0.2897381186, 0.0213966984, 0.2822042406, -0.1632970423, 0.0080194203, 0.0462615751, 0.1021316871, 0.0333841741, 0.1518062204, -0.4748210311, 0.2133790851, -0.036031235, 0.0113944244, 0.0778740197, -0.2824011147, 0.2424851954, 0.0320219286, 0.089901872, 0.0634567291, -0.0699584782, 0.256891191, 0.0176148638, 0.6879333854, 0.3122712374, 0.0868358314, 0.1612532139, 0.2616789043, -0.5806760192, 0.0980485752, -0.1668583155, -0.1965570152, -0.035744179, 0.1610731632, -0.2872292101, -0.0834534168, -0.1673949957, -0.2401877046, 0.3097017705, -0.0938950032, -0.0946455598, -0.1055782661, -0.0032333499, 0.2992185056, -0.0246536005, 0.4030232728, -0.0853034481, 0.4659247696, -0.431442529, -0.2854528427, 0.4118312001, -0.5757023096, -0.3800370693, -0.3162722588, 0.180825159, 0.2812216282, -0.134934783, -0.3687354028, 0.0759559497, 0.4503172934, -0.0712079629, -0.3825804293, 0.2019756883, 0.2396610081, 0.1968435198, -0.1832438558, 0.6291917562, 0.0472979397, 0.0170716904, -0.109330155, -0.1512116939 ]
https://github.com/huggingface/datasets/issues/3832
Making Hugging Face the place to go for Graph NNs datasets
It will be indeed really great to add support to GNN datasets. Big :+1: for this initiative.
Let's make Hugging Face Datasets the central hub for GNN datasets :) **Motivation**. Datasets are currently quite scattered and an open-source central point such as the Hugging Face Hub would be ideal to support the growth of the GNN field. What are some datasets worth integrating into the Hugging Face hub? Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Special thanks to @napoles-uach for his collaboration on identifying the first ones: - [ ] [SNAP-Stanford OGB Datasets](https://github.com/snap-stanford/ogb). - [ ] [SNAP-Stanford Pretrained GNNs Chemistry and Biology Datasets](https://github.com/snap-stanford/pretrain-gnns). - [ ] [TUDatasets](https://chrsmrrs.github.io/datasets/) (A collection of benchmark datasets for graph classification and regression) cc @osanseviero
17
Making Hugging Face the place to go for Graph NNs datasets Let's make Hugging Face Datasets the central hub for GNN datasets :) **Motivation**. Datasets are currently quite scattered and an open-source central point such as the Hugging Face Hub would be ideal to support the growth of the GNN field. What are some datasets worth integrating into the Hugging Face hub? Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Special thanks to @napoles-uach for his collaboration on identifying the first ones: - [ ] [SNAP-Stanford OGB Datasets](https://github.com/snap-stanford/ogb). - [ ] [SNAP-Stanford Pretrained GNNs Chemistry and Biology Datasets](https://github.com/snap-stanford/pretrain-gnns). - [ ] [TUDatasets](https://chrsmrrs.github.io/datasets/) (A collection of benchmark datasets for graph classification and regression) cc @osanseviero It will be indeed really great to add support to GNN datasets. Big :+1: for this initiative.
[ -0.0234233961, -0.2333473265, -0.1094195098, -0.0523622707, -0.0944151431, -0.0435832962, -0.0281152762, 0.109921284, 0.3266025186, 0.1850886643, -0.1312944889, -0.0844398364, -0.2320246398, 0.4511050284, 0.4168960452, -0.1545025557, 0.3398024738, 0.110463649, 0.2192728966, -0.0025325338, -0.2695413232, 0.2994817793, -0.0809998289, -0.0671056062, -0.5245316625, 0.0242111422, -0.1205039993, 0.0994260311, -0.2501794994, -0.2618246973, 0.0551652089, 0.2965281904, 0.1289696991, 0.3990141451, -0.0001128216, -0.2206664234, 0.1074074283, 0.0552972704, -0.1619021297, 0.1805572808, 0.0956688523, -0.0669858456, -0.1206571013, 0.0956265628, -0.1084740832, -0.000808361, 0.1654948294, -0.1503462791, 0.0170497112, 0.05512603, 0.1392468512, 0.2921248972, -0.0879429504, -0.2295961678, -0.2453844398, 0.3886743784, -0.2929574549, 0.203156665, 0.3581441343, -0.0612002164, -0.1645580828, 0.2765052617, -0.0072294693, -0.4293161035, 0.5624536276, 0.1369919032, -0.2511327267, -0.1757490039, -0.3110868335, 0.2156856209, -0.1443588138, -0.0392514654, -0.305677861, -0.4718397856, -0.0524711348, -0.1542109847, -0.2975981832, 0.0375963189, 0.0868668705, 0.2878331244, -0.2443997562, -0.5392484069, -0.0592349544, 0.2219281048, 0.070162639, 0.1301749945, -0.0812687948, -0.0274146982, 0.3999114931, 0.0875996053, -0.2428838164, -0.0790506154, -0.0198865645, -0.1538606584, -0.3709768653, -0.2610402107, 0.2003472298, 0.6400768161, 0.371224463, 0.5840637684, -0.1618956625, -0.0739836171, -0.2913269103, -0.0996374041, -0.1631934792, 0.0098329056, -0.053277947, 0.0845640153, 0.3618872464, -0.0739062056, 0.1227043718, 0.1353884935, -0.0595789775, -0.0763020888, -0.0920306817, -0.4165192842, -0.0732413605, -0.0100471778, 0.102467604, 0.1092108861, 0.4167846739, 0.1870282143, 0.1546120048, -0.0891543925, 0.1864403188, 0.3927558362, -0.1135212928, 0.384091109, 0.0159059558, -0.3665123582, -0.2272327095, -0.0198423993, 0.0629772022, 0.5733382106, 0.4738040864, -0.2146671116, 0.3269355595, -0.1749048531, 0.3883338571, 0.201708287, -0.1795320511, 0.2441058457, 0.1639915109, 0.0857874081, -0.2873267233, -0.1284165978, 0.0778054819, 0.0689964518, -0.2423447818, -0.4198281169, 0.2821619213, -0.3629796505, -0.0811759382, 0.0537456311, -0.154581666, -0.0132206799, 0.0054759881, 0.1874280423, -0.237159133, 0.0826365575, 0.3163540065, 0.0419422612, -0.1424841285, -0.1246688738, 0.4524646103, 0.4214230776, 0.2684028447, -0.259921968, -0.0793320462, 0.1957054883, -0.3030690253, 0.4511007667, 0.0435520113, -0.249336794, -0.0818348378, 0.1814569235, -0.144528836, -0.4274069667, -0.2447239459, 0.021074282, -0.4305688441, -0.0568218455, -0.0166086443, 0.4939934611, -0.1594691277, 0.0098482212, 0.2929271162, 0.5374082923, -0.2049232423, -0.2350044549, -0.1701624691, -0.1164645106, 0.0045125564, 0.5076348782, -0.0999405384, -0.0813324675, -0.2726164162, -0.4122263789, 0.0261797812, -0.0606530532, 0.0363544002, -0.1227228642, 0.2241558135, -0.1409897655, -0.0221112724, 0.0300522633, -0.6758830547, 0.1726544946, 0.0369692035, 0.1825152785, -0.2014205605, -0.2291581482, 0.0920198783, -0.1687230766, 0.158577919, -0.1452020258, 0.0514302813, 0.032998208, 0.370639056, 0.1985966265, -0.3138011992, 0.412231952, -0.307844609, 0.2801666856, -0.2009654492, 0.4001989663, -0.007062586, -0.0146342358, 0.0573705584, 0.3544773757, -0.2154715359, -0.0368880369, 0.277697295, 0.259609133, -0.0890777186, 0.3991345465, 0.4834367335, 0.5149630904, -0.0252330732, -0.4681951106, -0.0114720538, -0.1753766835, -0.2567226887, -0.1739605367, 0.2097373009, 0.4737677276, -0.129568249, 0.1249404252, -0.2376727164, 0.2324971557, -0.4294075072, 0.0633125529, -0.3611107767, -0.0678465217, 0.3074125648, -0.1495144367, 0.0022338512, 0.1533757001, -0.5056704283, 0.1279094666, 0.0646391809, -0.0817311779, 0.0431471057, -0.0208130162, -0.1544271111, -0.1516031325, 0.1027509123, -0.1088033095, 0.1380622834, 0.2016777843, -0.0847388357, 0.1374890953, 0.0455732904, -0.2825336456, 0.0869324058, 0.1590037644, 0.1753519326, -0.0553475432, -0.1693843603, 0.2838388085, -0.0986435115, -0.1005055979, -0.3518977165, -0.0992548615, -0.0335488766, 0.0103229666, 0.2647238076, -0.129560113, 0.214322716, -0.0523456223, -0.3891021609, -0.3053199053, -0.0037504376, -0.0812750086, 0.0966922045, 0.0204005279, -0.2523325682, 1.0156263113, -0.3793948293, -0.2314545065, -0.5322870612, -0.357265234, 0.0551406592, 0.0289308652, 0.021732429, 0.0724618435, 0.2583214045, -0.3679008782, 0.5709320307, -0.222953245, -0.4074283838, -0.0578041412, -0.176896587, 0.005531942, 0.1166601777, 0.2535020113, -0.3335720301, 0.0390934572, -0.0907243714, -0.4351496398, -0.0697348714, -0.1803052574, -0.1854146421, -0.2227860987, -0.1592585295, 0.1067073718, -0.3368826509, -0.4096817672, 0.4860124588, 0.0082798563, -0.1271677166, 0.4819793999, -0.308162868, 0.0172967762, -0.4046183527, -0.0075007766, 0.0755911916, -0.383256793, 0.4691113532, -0.3889320195, -0.1186334938, -0.1864337325, -0.0995714739, 0.1760893166, -0.0904723257, -0.496599108, -0.0484321341, -0.244576171, 0.2675135434, 0.2554025352, -0.0953209549, -0.0358558483, -0.1258196682, 0.073916845, -0.0492744222, 0.0186685044, 0.0692384616, 0.3589120507, -0.0883829892, 0.1285724938, -0.3102232218, -0.0262041744, 0.1105396301, 0.2004531324, -0.1829915047, 0.1018628851, 0.0525923707, 0.3965006769, -0.2478460819, -0.3260860741, 0.1908594817, 0.1429992765, 0.2137173265, 0.0851102471, 0.1382132173, 0.4152009785, -0.2447169274, -0.1282549649, 0.093160212, -0.0663719773, -0.0773730278, -0.0034869246, 0.2392545789, -0.1028660089, -0.2343187928, -0.0776014328, -0.0684417188, 0.1437710524, 0.2018867582, 0.6048486233, 0.1036675051, -0.4133801162, 0.1167182326, -0.4729441404, 0.1005892679, -0.09770336, -0.0002000432, -0.2335108668, 0.0879838616, -0.0859161988, 0.3586677015, 0.4509450495, -0.1355553865, -0.2399536371, -0.2099198848, -0.1356398463, -0.500593245, 0.3658371568, 0.1427297443, -0.2168838382, -0.02107675, 0.7456309795, -0.1452823281, -0.1390609294, 0.2139007598, 0.1220123395, 0.1099194884, 0.0461168662, 0.0303185452, -0.0111153843, -0.0330405533, 0.0658320338, 0.1845029742, 0.2150446773, 0.1033563092, 0.1892932355, 0.2275290042, 0.161747992, 0.2399485558, 0.002000778, 0.1915064156, 0.2647888958, 0.0137997232, 0.4644704461, 0.0195786245, -0.2451899201, 0.2948515117, 0.0527828336, -0.2262498885, 0.0024772263, 0.34821105, 0.4671150446, 0.4679859281, 0.374985218, 0.130630821, 0.2307252288, 0.2162706703, -0.3341655433, 0.1415243894, 0.0625090376, -0.1016290709, -0.4894647002, -0.1135371104, 0.5334677696, 0.2617942691, 0.1308733672, 0.2792214751, 0.748560667, -0.0066455123, -0.0049048113, 0.0355736688, 1.1054036617, 0.0893274993, 0.5115994811, 0.3299120367, -0.2161295712, 0.668485105, 0.0690994337, -0.0871982127, -0.2066043168, -0.003725678, -0.1231764108, -0.21070683, -0.046331577, -0.099129729, -0.232845813, -0.1235217378, 0.2267221063, 0.2461495996, -0.0763625354, 0.4228532016, 0.0433691666, -0.2848958671, 0.2240228802, 0.0494891889, -0.0660386235, 0.2777658403, 0.0171779301, -0.1805325747, -0.4086915553, 0.1865429282, -0.0423957705, -0.2617901862, 0.0486168191, 0.076019384, 0.2664960921, -0.3465798497, 0.0825204775, 0.2260154635, 0.6122019887, -0.0403408557, -0.3930333555, 0.1147203743, -0.2028235793, -0.0343241319, 0.2884682119, -0.1831431687, -0.0711880624, 0.103899233, -0.2888506949, -0.193297863, 0.1842670739, -0.2162973583, -0.6459941268, -0.3996454775, -0.239945814, 0.1008148119, 0.1801787019, 0.0413864851, 0.0668567494, -0.066276446, 0.1362265199, 0.2866737545, 0.2672082484, -0.2651604414, 0.3659320474, -0.0759164244, -0.16493918, 0.0061108256, -0.2854327857, -0.1264607012, 0.0175206792, 0.3181037903, -0.1505531818, -0.1637584418, -0.0971061438, 0.5665687919, -0.368971467, 0.0096920943, 0.006619541, -0.0719865113, -0.0639982149, -0.0373253077, 0.4055992663, -0.3237147331, 0.2970308065, -0.0315607823, -0.5026857257, 0.5002930164, -0.2385510206, 0.3543551266, 0.1509217024, -0.3983842731, -0.1823532283, 0.194066003, -0.3114698529, -0.1236037984, 0.0634153485, -0.2266377509, 0.0913763344, -0.3056640327, -0.0021398428, -0.1877159178, 0.0345799923, -0.0884972364, -0.2440943867, -0.1206986904, 0.0332555175, 0.1246543825, 0.1659653187, -0.151604265, 0.1123935208, -0.0372891426, -0.2498386055, -0.2869962454, 0.028936144, 0.0656303018, 0.1850511134, 0.1854995638, -0.1793762594, -0.1200090274, 0.0847739428, 0.1931294054, 0.1452364475, 0.1198559925, 0.1060320884, 0.1974899769, 0.1310552061, -0.1244244277, 0.0381331928, 0.3786139488, 0.2073788792, -0.1582334936, 0.2916271389, 0.0554117933, -0.1216482744, -0.0143213933, 0.2115955651, -0.0792019889, -0.2371378541, 0.2079460919, 0.2603048086, 0.1323211044, -0.0149367899, -0.0690723658, 0.5490717888, 0.3284418881, -0.0858502239, 0.2849857211, 0.3657892644, -0.1385349631, -0.3177430928, -0.0041715973, 0.343742609, 0.0802335814, 0.3393321931, 0.0301669445, 0.2966277003, -0.0187755488, 0.0674736649, 0.4040059149, 0.1707213223, 0.0436104611, -0.2660318315, 0.2587260008, -0.4353113472, 0.1829020232, 0.4706442952, 0.0893088877, -0.1902971566, 0.0269952454, -0.2913863361, -0.1020057872, 0.0057985741, 0.5884155035, -0.1158562526, -0.2678932548, -0.1436109245, 0.3256215751, -0.1009040475, 0.0250572655, -0.2558782995, -0.1335175931, -0.0974214673, 0.0415838026, 0.0185083654, -0.492051363, 0.0478294156, 0.2072873712, -0.1081747636, -0.0372969843, 0.153853029, 0.1720310599, 0.4021448195, 0.0298126061, -0.2578585446, 0.026875332, -0.2577981055, 0.3197390735, 0.245261699, 0.1101180762, -0.2024985403, -0.0241304953, 0.2439001203, 0.085348852, -0.085863471, 0.0659942105, 0.0412263311, -0.0089608729, -0.2105178833, 0.0783789903, 0.1510571539, -0.0260972064, -0.2938434184, -0.0005253918, 0.1122597754, -0.2026788741, 0.3604138494, -0.2435119152, -0.2219012529, -0.0749457628, 0.1830284297, -0.2147647142, -0.1092593297, 0.125266999, 0.0927145109, -0.1701577455, -0.2094047964, 0.0534831583, -0.084131293, 0.4444625378, 0.5724307299, 0.3187988102, -0.0225533098, -0.5487148166, -0.2336506844, 0.175173074, 0.3362451196, 0.0256197285, 0.2249715626, -0.2448408902, -0.0715110675, 0.125354901, -0.3447531462, 0.1775291413, -0.0533220731, -0.0614594035, -0.0945919976, 0.2960166335, -0.0543338284, -0.0056517366, 0.0904828906, 0.3113255501, 0.2588393986, -0.0511544868, -0.0323020108, -0.1740839332, 0.4471307397, -0.1909131408, 0.0902586803, 0.3411538899, -0.0414679162, 0.0614722036, 0.0882923305, -0.3744921088, -0.3601967096, -0.0529541969, -0.1077619269, -0.0212531295, -0.3045416176, 0.3025719225, -0.3775908053, -0.5617471337, -0.0563023202, -0.1861683875, -0.0205489267, -0.1311965585, -0.0720579624, 0.078661181, -0.1911382526, 0.1126422435, 0.2771825194, 0.0975923836, -0.1671104133, -0.0403580628, 0.0948354974, -0.0797933415, 0.4239298105, -0.0313463993, 0.1744592339, 0.0585607663, 0.0836502835, 0.235067293, -0.1788423508, -0.2461711764, -0.1422713399, -0.0348358154, 0.1168518066, 0.0377763137, 0.4706985056, 0.1808118373, -0.2549582124, -0.0419745557, 0.142132923, -0.007991787, -0.0665705949, 0.1158554032, -0.2201100439 ]
https://github.com/huggingface/datasets/issues/3832
Making Hugging Face the place to go for Graph NNs datasets
@napoles-uach identifies the [TUDatasets](https://chrsmrrs.github.io/datasets/) (A collection of benchmark datasets for graph classification and regression). Added to the Tasks in the initial issue.
Let's make Hugging Face Datasets the central hub for GNN datasets :) **Motivation**. Datasets are currently quite scattered and an open-source central point such as the Hugging Face Hub would be ideal to support the growth of the GNN field. What are some datasets worth integrating into the Hugging Face hub? Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Special thanks to @napoles-uach for his collaboration on identifying the first ones: - [ ] [SNAP-Stanford OGB Datasets](https://github.com/snap-stanford/ogb). - [ ] [SNAP-Stanford Pretrained GNNs Chemistry and Biology Datasets](https://github.com/snap-stanford/pretrain-gnns). - [ ] [TUDatasets](https://chrsmrrs.github.io/datasets/) (A collection of benchmark datasets for graph classification and regression) cc @osanseviero
22
Making Hugging Face the place to go for Graph NNs datasets Let's make Hugging Face Datasets the central hub for GNN datasets :) **Motivation**. Datasets are currently quite scattered and an open-source central point such as the Hugging Face Hub would be ideal to support the growth of the GNN field. What are some datasets worth integrating into the Hugging Face hub? Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Special thanks to @napoles-uach for his collaboration on identifying the first ones: - [ ] [SNAP-Stanford OGB Datasets](https://github.com/snap-stanford/ogb). - [ ] [SNAP-Stanford Pretrained GNNs Chemistry and Biology Datasets](https://github.com/snap-stanford/pretrain-gnns). - [ ] [TUDatasets](https://chrsmrrs.github.io/datasets/) (A collection of benchmark datasets for graph classification and regression) cc @osanseviero @napoles-uach identifies the [TUDatasets](https://chrsmrrs.github.io/datasets/) (A collection of benchmark datasets for graph classification and regression). Added to the Tasks in the initial issue.
[ -0.0233607776, -0.2450852394, -0.0979368985, -0.0057547195, -0.1070017889, -0.0364056304, -0.0293638613, 0.1181742325, 0.3275017738, 0.1441016197, -0.1514695883, -0.1023743451, -0.2231216431, 0.4196002781, 0.441177547, -0.1565524787, 0.3331486881, 0.0985798538, 0.161082238, -0.0428049676, -0.2738622427, 0.3060708344, -0.0625941679, -0.1050332561, -0.5190339684, 0.0456237309, -0.1384658068, 0.1690504551, -0.2346581966, -0.2278613597, 0.0522989556, 0.3198701441, 0.1133366525, 0.4515331388, -0.0001137931, -0.2179506123, 0.0854682848, -0.006780447, -0.198315382, 0.1965344846, 0.0851240084, -0.054765977, -0.1031998321, 0.0737669691, -0.0706424862, 0.0080949217, 0.1765123606, -0.1631421745, 0.0584805161, 0.0963977352, 0.1242552698, 0.3420619369, -0.1054975688, -0.2134555429, -0.2152910382, 0.3499605954, -0.2723603547, 0.208103165, 0.3574616015, -0.0453643091, -0.1874745488, 0.2848185897, 0.0022751212, -0.4445418119, 0.5725594163, 0.0943252519, -0.319753617, -0.168712914, -0.3043655455, 0.2468402833, -0.1472279727, -0.0382356606, -0.2902912498, -0.501968503, -0.0940568596, -0.1403453499, -0.2773578167, 0.0202934798, 0.0918727219, 0.2887781262, -0.2512563169, -0.4706614017, -0.0564180575, 0.2305883467, 0.044568453, 0.0734835118, -0.0723062083, -0.0390392467, 0.3789013028, 0.0744159371, -0.2300549746, -0.1143112034, -0.0207076818, -0.1764051914, -0.4001746774, -0.2617926002, 0.24431853, 0.627116859, 0.3334881067, 0.6095015407, -0.1403455585, -0.0940975174, -0.254781872, -0.1413636357, -0.1471502483, 0.0681138635, -0.0249357745, 0.0583406538, 0.315594703, -0.1075915322, 0.0951507166, 0.1557858735, -0.0385556258, -0.0175574906, -0.063100405, -0.4204910994, -0.0729582831, -0.0328542143, 0.1098873615, 0.117909871, 0.3972747028, 0.142039001, 0.1769449115, -0.0746000186, 0.1824147403, 0.3754677176, -0.1290253699, 0.372300446, -0.0091437036, -0.3626304865, -0.2317426205, 0.0095555633, 0.0982723311, 0.5092722774, 0.4926021695, -0.2240371257, 0.3572074473, -0.1854998916, 0.3667586744, 0.2205148339, -0.1469409168, 0.226259917, 0.2278014421, 0.1152422056, -0.2440518439, -0.113053292, 0.0744919479, 0.0738723502, -0.2288148999, -0.4267301261, 0.3132836223, -0.372736603, -0.0093384208, 0.0394668542, -0.1892002076, -0.0164179672, -0.0490658544, 0.2004949003, -0.2101848871, 0.1390502006, 0.2855739295, 0.016008798, -0.0697140694, -0.1360761225, 0.4295977056, 0.4751143754, 0.2243055701, -0.2467333078, -0.0584566407, 0.1948588192, -0.318234086, 0.4586289823, 0.0432991013, -0.2237010896, -0.0606566295, 0.2129454464, -0.2075707763, -0.4393160641, -0.2643223405, 0.0149453906, -0.398465842, -0.0215946827, -0.0235943682, 0.5437322855, -0.1660768986, -0.0162146334, 0.3002967238, 0.5359230638, -0.1805629879, -0.2231650352, -0.1595531404, -0.0970573574, -0.0033759817, 0.5075393915, -0.0889574662, -0.1293687075, -0.327226311, -0.3996626735, -0.0040288754, -0.0502336249, -0.0017849273, -0.1139213368, 0.1833409369, -0.157773748, -0.0013130534, 0.0247626863, -0.6893973351, 0.1813181192, 0.0453995205, 0.1824727505, -0.2089443356, -0.2216601819, 0.0638180971, -0.1819537133, 0.1680581719, -0.1352465451, 0.0457422324, 0.0436925218, 0.3873810172, 0.173385486, -0.3242743611, 0.4356340766, -0.3335013688, 0.2972498536, -0.2227405757, 0.4019871056, 0.0289471354, -0.037619669, 0.097388491, 0.3361044228, -0.2120351493, -0.0623088107, 0.2646012604, 0.2684747875, -0.0688017309, 0.3867600858, 0.5160751343, 0.4843228757, -0.0246601813, -0.425647676, -0.0321597233, -0.1668976396, -0.2496563345, -0.1560570002, 0.1963659078, 0.48222363, -0.1367577165, 0.1280924678, -0.1976246238, 0.2223195136, -0.420758009, 0.054908976, -0.3412320912, -0.0677172095, 0.3625980914, -0.0818454176, 0.0277379584, 0.2038400024, -0.4952786863, 0.1713505834, 0.099386476, -0.149249509, 0.0527760275, -0.0322259627, -0.174698323, -0.1867620945, 0.096588105, -0.0862068832, 0.1551425904, 0.188024655, -0.0737434924, 0.0978938043, 0.0236000028, -0.3019612432, 0.0656163394, 0.1787195951, 0.127262637, -0.083793126, -0.1827725768, 0.2662577033, -0.1519954205, -0.0715185851, -0.3751091063, -0.0834875554, -0.0355339907, 0.0202460028, 0.2486353368, -0.1122115925, 0.2412514389, -0.0537160523, -0.4299564064, -0.3205105662, 0.0027323049, -0.0881808847, 0.054324761, 0.0093279351, -0.2138374448, 1.0346989632, -0.3860894442, -0.248020038, -0.533056438, -0.3939410448, 0.0520405434, 0.0223448984, 0.0459769666, 0.1065369621, 0.2829063535, -0.4219710827, 0.5744328499, -0.2098376304, -0.4197378755, -0.0884747133, -0.2230725437, 0.0659564808, 0.0765047595, 0.2899770737, -0.3516177237, 0.0696177334, -0.1232647002, -0.3892053962, -0.1069498211, -0.1677798629, -0.1905224919, -0.2566026151, -0.1211202815, 0.0570818149, -0.3225925565, -0.3757154644, 0.4931260049, 0.0110933566, -0.1195674688, 0.4199028015, -0.3289009929, 0.0388372801, -0.4195059836, -0.0141601907, 0.0667815432, -0.3960443437, 0.442699492, -0.3666380048, -0.1355584413, -0.2370982617, -0.0956868753, 0.1628169864, -0.0714433789, -0.5246744752, -0.0688655674, -0.2792482972, 0.2512845695, 0.3150323927, -0.0994481668, 0.0073297429, -0.1376231909, 0.0754414052, -0.0691392422, 0.0061827493, 0.1133418828, 0.357483685, -0.1118012816, 0.136077702, -0.2933055758, -0.0347733721, 0.1813662201, 0.1969320327, -0.208822906, 0.0446928255, 0.0489499606, 0.3792403936, -0.2641706467, -0.3291702271, 0.1939217448, 0.1445364654, 0.2411993593, 0.1152227074, 0.1285055131, 0.4274075627, -0.2446126193, -0.0891175866, 0.0341338329, -0.088345699, -0.0545163155, -0.0095808664, 0.2220175117, -0.071311906, -0.2362882644, -0.1037802398, -0.0597222559, 0.1259609759, 0.2445135862, 0.5660995841, 0.0996946841, -0.466219455, 0.1323650032, -0.491925478, 0.0988217443, -0.109121345, -0.004120585, -0.23312442, 0.0432024337, -0.1287772804, 0.3421907127, 0.4064208865, -0.1090170667, -0.2101992071, -0.1981085539, -0.1715368181, -0.5463969111, 0.3641708791, 0.1026461869, -0.2291191965, 0.0064705694, 0.7298765779, -0.2018495798, -0.1426713169, 0.2135926932, 0.1341568977, 0.1375714988, 0.067777656, 0.0283975415, -0.0418887846, -0.0240775794, 0.0659836754, 0.1826551706, 0.1757037938, 0.093108505, 0.225260362, 0.1893869638, 0.1612264365, 0.2858832479, 0.0284260623, 0.1675958931, 0.2811768353, 0.0555235483, 0.454952389, 0.0187381282, -0.2209639102, 0.3194339573, 0.0482322127, -0.2197562307, -0.0251998864, 0.320617497, 0.4353946149, 0.4725257754, 0.3172883987, 0.1229600906, 0.1960437149, 0.1852367818, -0.3360881209, 0.1992757022, 0.0164820254, -0.0726579204, -0.4620068073, -0.0739746839, 0.5497559309, 0.241819039, 0.0956458449, 0.2637913823, 0.702391088, -0.0224862434, 0.0185360815, 0.0440417528, 1.0917418003, 0.0586844198, 0.5128627419, 0.3741854727, -0.207043305, 0.6282174587, 0.0998576954, -0.1173317432, -0.1792623103, -0.0228815582, -0.1181171015, -0.2248298079, -0.0708369911, -0.0899152085, -0.2184536308, -0.1581970453, 0.2013629526, 0.2602106035, -0.0678079873, 0.4218363166, 0.0884547085, -0.2856810689, 0.1531240791, 0.0397436507, -0.0478684679, 0.2958109379, 0.0406832844, -0.1556396335, -0.4556566775, 0.177469328, -0.0196143351, -0.2826820314, 0.0173020102, 0.0929197446, 0.2429460287, -0.3395209014, 0.0171246249, 0.2541412413, 0.6130248904, -0.0235772617, -0.3580064476, 0.1313309222, -0.2310530543, -0.0393793844, 0.2935570478, -0.2105789334, -0.0591237061, 0.1198340282, -0.2393632531, -0.173952058, 0.1766859591, -0.175495103, -0.6297186017, -0.4018792212, -0.2747370601, 0.0895644873, 0.167214781, 0.0891261473, 0.0486677065, -0.0311171412, 0.1162892208, 0.2936580777, 0.3238221407, -0.2597666979, 0.3419396281, -0.0937185064, -0.2095582038, 0.0323744752, -0.2560901344, -0.1748582423, 0.0472136401, 0.3254366517, -0.129262954, -0.1673958451, -0.0804969817, 0.5712998509, -0.4198738337, 0.038205836, -0.0349626541, -0.1046503261, -0.0921204463, -0.0723502189, 0.4558185041, -0.3408048749, 0.311388284, -0.0094783204, -0.4961603284, 0.5099538565, -0.1842109114, 0.3927987516, 0.118753612, -0.4364695251, -0.1856071651, 0.2125325501, -0.2972807288, -0.0939766169, 0.0466285609, -0.1858968139, 0.0676418841, -0.3123945296, 0.0550417751, -0.1994228512, 0.0101099582, -0.130817011, -0.2898319364, -0.1220655143, -0.0151581513, 0.1205950752, 0.1451182663, -0.209062621, 0.1256480813, -0.0346014909, -0.2317879349, -0.3007352352, 0.0647204965, 0.0756421685, 0.1632301062, 0.1622866839, -0.1261926144, -0.1534236073, 0.0600910932, 0.1975548714, 0.1289591193, 0.1011804938, 0.1185904369, 0.1876675636, 0.0928636119, -0.1203580797, 0.0510186628, 0.4107947052, 0.1927827895, -0.1598427147, 0.2482055873, 0.0544761494, -0.1046902165, 0.0124337906, 0.1868290305, -0.0771361291, -0.2727077305, 0.1718759537, 0.2035165429, 0.1190829054, -0.0011656747, -0.0608728416, 0.5509215593, 0.3290133178, -0.074974075, 0.2862290144, 0.3577281833, -0.1124621332, -0.3005094528, -0.0082204835, 0.3462381959, 0.1099136248, 0.3883629441, 0.0244917218, 0.2594350576, -0.0346871875, 0.0725896135, 0.4397302866, 0.1929320842, 0.0728436857, -0.253859669, 0.2787969708, -0.4248679578, 0.2154337317, 0.4413645864, 0.0917260423, -0.182515353, 0.1002162769, -0.2956795692, -0.0588878244, 0.01728753, 0.5942402482, -0.1292748004, -0.2487173527, -0.1568903923, 0.336941272, -0.1086573675, -0.0044652359, -0.2195160538, -0.1454623491, -0.1071150899, 0.0321707949, 0.0332922786, -0.5427991748, 0.046336256, 0.222050786, -0.0878789648, -0.0360375382, 0.1352523565, 0.1520984918, 0.3947232068, 0.0442632325, -0.2385464311, 0.044444792, -0.2483348101, 0.3675724864, 0.2520177364, 0.1125106886, -0.1942799687, -0.0471980684, 0.3075520694, 0.1330591142, -0.0785422623, 0.0573916957, 0.0771495625, -0.074275434, -0.172627002, 0.099911429, 0.1437540501, -0.0188974272, -0.3461570144, 0.0073989062, 0.1051122248, -0.1835278422, 0.3782905936, -0.2761773765, -0.2090473473, -0.0437157378, 0.1785133928, -0.2268427312, -0.1265391409, 0.1676749438, 0.1126193181, -0.143259868, -0.1632720977, 0.0504758693, -0.1149770021, 0.5145267248, 0.5711678863, 0.3127616346, -0.0673032925, -0.5550907254, -0.225003168, 0.1245967075, 0.3439469635, 0.0292276982, 0.2309386581, -0.1967262179, -0.0798769444, 0.1534043103, -0.3521454334, 0.1825127006, -0.0819085911, -0.0935429782, -0.1320655942, 0.2687549293, -0.0334672295, -0.0093277572, 0.1184089258, 0.2824249566, 0.2338026315, -0.0375652872, -0.0372942239, -0.1576962918, 0.432161212, -0.149562031, 0.1091069505, 0.3030308187, -0.0208937395, 0.1172632203, 0.1081934497, -0.3876107037, -0.3044120371, -0.0840118527, -0.0915206149, -0.0214568097, -0.2700147927, 0.3265397549, -0.3739573956, -0.5245145559, -0.0086681675, -0.156826064, 0.0246795714, -0.1241289675, -0.0765517205, 0.0820464492, -0.17364721, 0.1409234256, 0.286460042, 0.1553768218, -0.181204617, 0.0055813603, 0.0802294761, -0.1032374948, 0.436771214, -0.0683371648, 0.2121852934, 0.0582115091, 0.0691854581, 0.2165465653, -0.1367447972, -0.2693299055, -0.1165098622, -0.0096082659, 0.0451113507, 0.0084793484, 0.4703750014, 0.1513465494, -0.2331360579, -0.0204205364, 0.1716285646, -0.0230818093, -0.0895774364, 0.135730803, -0.1728048474 ]
https://github.com/huggingface/datasets/issues/3832
Making Hugging Face the place to go for Graph NNs datasets
Great initiative! Let's keep this issue for these 3 datasets, but moving forward maybe let's create a new issue per dataset :rocket: great work @napoles-uach and @omarespejel!
Let's make Hugging Face Datasets the central hub for GNN datasets :) **Motivation**. Datasets are currently quite scattered and an open-source central point such as the Hugging Face Hub would be ideal to support the growth of the GNN field. What are some datasets worth integrating into the Hugging Face hub? Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Special thanks to @napoles-uach for his collaboration on identifying the first ones: - [ ] [SNAP-Stanford OGB Datasets](https://github.com/snap-stanford/ogb). - [ ] [SNAP-Stanford Pretrained GNNs Chemistry and Biology Datasets](https://github.com/snap-stanford/pretrain-gnns). - [ ] [TUDatasets](https://chrsmrrs.github.io/datasets/) (A collection of benchmark datasets for graph classification and regression) cc @osanseviero
27
Making Hugging Face the place to go for Graph NNs datasets Let's make Hugging Face Datasets the central hub for GNN datasets :) **Motivation**. Datasets are currently quite scattered and an open-source central point such as the Hugging Face Hub would be ideal to support the growth of the GNN field. What are some datasets worth integrating into the Hugging Face hub? Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Special thanks to @napoles-uach for his collaboration on identifying the first ones: - [ ] [SNAP-Stanford OGB Datasets](https://github.com/snap-stanford/ogb). - [ ] [SNAP-Stanford Pretrained GNNs Chemistry and Biology Datasets](https://github.com/snap-stanford/pretrain-gnns). - [ ] [TUDatasets](https://chrsmrrs.github.io/datasets/) (A collection of benchmark datasets for graph classification and regression) cc @osanseviero Great initiative! Let's keep this issue for these 3 datasets, but moving forward maybe let's create a new issue per dataset :rocket: great work @napoles-uach and @omarespejel!
[ -0.0186396949, -0.2302571982, -0.0931067839, -0.0285473689, -0.1222266257, -0.0637294203, 0.005651847, 0.1148463711, 0.3288173378, 0.1683222055, -0.129839614, -0.0805969685, -0.2303717583, 0.4487098455, 0.445459038, -0.1293425858, 0.3466871679, 0.1192114279, 0.2285960168, 0.0034419755, -0.2893594205, 0.2807304859, -0.070031926, -0.068046622, -0.5357472301, 0.0433218367, -0.113980405, 0.122924462, -0.2512878478, -0.2653809488, 0.0550240129, 0.3174978197, 0.138471663, 0.412987709, -0.0001124554, -0.2258914113, 0.1241724119, 0.0368223228, -0.197886318, 0.1738696843, 0.080200769, -0.0721593499, -0.1139427423, 0.0908189043, -0.0948242545, 0.0101964232, 0.1718840748, -0.1382852793, 0.0330496319, 0.0726305619, 0.1397071779, 0.3155460954, -0.1061960459, -0.2220095843, -0.2103469968, 0.3641106188, -0.2708946466, 0.1985779107, 0.3390815258, -0.0717884898, -0.1666140556, 0.2911744118, 0.0018238081, -0.4482117295, 0.5863307714, 0.1152765751, -0.2714143693, -0.1581182927, -0.3135095537, 0.2329478711, -0.1541868746, -0.0278256014, -0.2894390225, -0.50261271, -0.0422283001, -0.1708832085, -0.276245892, 0.0263062939, 0.0791876391, 0.2687132657, -0.2497723699, -0.489912957, -0.044093173, 0.2337817699, 0.0506291166, 0.1087310463, -0.1044623181, -0.0287168864, 0.3898027837, 0.0723219961, -0.2257003188, -0.1083326563, -0.0096255457, -0.1697376668, -0.3979334831, -0.254114747, 0.2402839959, 0.6615875363, 0.3433292508, 0.6073153615, -0.165342927, -0.1073987931, -0.2254351228, -0.1189163774, -0.1313637346, 0.0331980325, -0.0255640224, 0.0770243853, 0.3423951864, -0.0552440695, 0.109336704, 0.1368558407, -0.0553171486, -0.0542909577, -0.0693298876, -0.411011219, -0.0376614518, -0.0217595175, 0.093848981, 0.1216985062, 0.3986168206, 0.1569366455, 0.174209401, -0.081430316, 0.1973533928, 0.3954194486, -0.0915809721, 0.3732138872, 0.0177152138, -0.3355212212, -0.245039925, -0.0118590519, 0.0768111721, 0.5539176464, 0.4719920754, -0.2066369802, 0.308873266, -0.1618182659, 0.3798584938, 0.1700961441, -0.1877233237, 0.2427954376, 0.1535169929, 0.0895701647, -0.2911787331, -0.1174891591, 0.0891011581, 0.0504610464, -0.2515206039, -0.4046562314, 0.2948521376, -0.3761077523, -0.0310835969, 0.0646631196, -0.1627338678, -0.009168487, -0.0206536949, 0.2000065446, -0.2207280248, 0.1168934479, 0.3177727759, 0.046401348, -0.0985934213, -0.1182750911, 0.4515028894, 0.4665327966, 0.2670097351, -0.2505662739, -0.0867219716, 0.1905769557, -0.2997656763, 0.4474497139, 0.0162561089, -0.2244085968, -0.0868881568, 0.2128629088, -0.1735308766, -0.4372179806, -0.2461247444, 0.0498727374, -0.4571650624, -0.0455302484, -0.0054077576, 0.5096790791, -0.1646395922, -0.0219434034, 0.315506041, 0.5374497175, -0.2076370418, -0.2318163514, -0.1705034822, -0.1219887361, 0.0122453105, 0.498578757, -0.1094910949, -0.1055104807, -0.3241642714, -0.3981212974, 0.0041225548, -0.0489005893, 0.0134677347, -0.1045121476, 0.2143573165, -0.1489673853, -0.0385009944, 0.0317337997, -0.6920568943, 0.1713909358, 0.0428793505, 0.1539848447, -0.196610868, -0.2506179214, 0.0588444173, -0.1815416366, 0.1427151263, -0.1585978717, 0.0567654632, 0.0258782916, 0.3358735442, 0.1762338579, -0.3432791531, 0.4204115272, -0.3284024596, 0.2790558636, -0.2067560405, 0.4110313654, -0.0135235786, -0.0285915397, 0.0433456749, 0.3316636384, -0.2017523944, -0.0250778925, 0.275762409, 0.2574244142, -0.1065524295, 0.3840559721, 0.4867893159, 0.4898571074, -0.0497059412, -0.4598686993, -0.0269942749, -0.1899919212, -0.2590200305, -0.162564218, 0.2172392309, 0.462555021, -0.1465928406, 0.1452895254, -0.2177543938, 0.2057463527, -0.4562291503, 0.0164295696, -0.3566978872, -0.0709604993, 0.3321694732, -0.1157443225, 0.0286562666, 0.2018543482, -0.4819090664, 0.1383602917, 0.1139448285, -0.1239222512, 0.0382730737, -0.0081256218, -0.145875439, -0.1637011319, 0.0773820654, -0.0914036483, 0.1387117356, 0.1995056123, -0.0842096359, 0.114886038, 0.0504639409, -0.3094616532, 0.0928583369, 0.1579541713, 0.1607720256, -0.0472341329, -0.1741517484, 0.2815914452, -0.1231620535, -0.0839244798, -0.3609777391, -0.1119123399, -0.0322390608, 0.0121082962, 0.2572005689, -0.1140259728, 0.1871473491, -0.0497808717, -0.4215136766, -0.3146457374, -0.0049814293, -0.0907125995, 0.0791082904, 0.005448109, -0.2348268777, 1.0043330193, -0.3869760633, -0.21637398, -0.5498822331, -0.3767116666, 0.0545433015, 0.0214037132, 0.0311279576, 0.1039142236, 0.2846224904, -0.4173276126, 0.5864566565, -0.2461648732, -0.412774682, -0.0868065357, -0.1850939989, 0.0401348993, 0.1091496497, 0.2774032056, -0.3393737078, 0.0000429722, -0.0918161049, -0.3782726526, -0.0997166783, -0.1687418967, -0.1873461455, -0.2012338489, -0.13100034, 0.0775087699, -0.3067912459, -0.4248394668, 0.5007839799, -0.0477173515, -0.1170358732, 0.4649671018, -0.3423025906, 0.0398713425, -0.4230200648, -0.0311124176, 0.0625880733, -0.3766848445, 0.4299664795, -0.3609103858, -0.0862352178, -0.2224745303, -0.0831692517, 0.1607106626, -0.0993165523, -0.5195981264, -0.0513489395, -0.2484768182, 0.2611002028, 0.2745940387, -0.0989922062, -0.0065975282, -0.1480501294, 0.0550830774, -0.0594753772, 0.0085993437, 0.081447795, 0.3692732453, -0.0821865872, 0.1484542489, -0.254655093, -0.0252916664, 0.1578259468, 0.2039425224, -0.1858299822, 0.0916255862, 0.0718648434, 0.4087697566, -0.2502824664, -0.3512644768, 0.193897754, 0.1467530876, 0.2092177868, 0.0894639343, 0.1311663091, 0.4333525002, -0.2252336144, -0.1046063229, 0.0708269477, -0.0835605711, -0.0559670627, -0.022992719, 0.2084436417, -0.092183955, -0.2540076673, -0.0796600059, -0.0347643532, 0.1241578609, 0.2432675511, 0.6037257314, 0.0998347849, -0.432326436, 0.1154033616, -0.4707148075, 0.0770342201, -0.1057415679, 0.0150392717, -0.2368573993, 0.0556841195, -0.1051661894, 0.3506212234, 0.4415370822, -0.1052137837, -0.2138290852, -0.1816725135, -0.1490094066, -0.5165941715, 0.3628269434, 0.1341220737, -0.2485634983, 0.0064053293, 0.7665821314, -0.1946717352, -0.1545365453, 0.23559618, 0.1438626349, 0.1281017065, 0.0450759977, 0.0117757162, -0.0341178887, -0.0508743413, 0.0799282193, 0.2021483332, 0.1828025132, 0.0988262966, 0.1910554171, 0.2036776543, 0.1891899854, 0.2471779138, -0.0165143367, 0.1745609343, 0.2737552226, 0.0408167168, 0.4670847952, 0.0014265708, -0.2490096986, 0.3103867769, 0.0308755748, -0.2527478337, -0.025645202, 0.3392908275, 0.4241202474, 0.4922170639, 0.3604872823, 0.1423000842, 0.2495372742, 0.2163771391, -0.3387201428, 0.1836987883, 0.0356056802, -0.1020118594, -0.4749585092, -0.0858851299, 0.5684988499, 0.2458934188, 0.1080502719, 0.306420356, 0.7148631215, -0.009430727, 0.0001111154, 0.0126755936, 1.1030567884, 0.0731162578, 0.5228558779, 0.3465161622, -0.2152374238, 0.6381582022, 0.0714608803, -0.1039801687, -0.2021336406, -0.0252702814, -0.101544261, -0.2319373339, -0.0686397329, -0.0823441595, -0.2180426568, -0.1386473626, 0.161866188, 0.2719362676, -0.0672899708, 0.4282842875, 0.0408339165, -0.2767596841, 0.1787547916, 0.0538905077, -0.0745585263, 0.3046432734, 0.0068946132, -0.1729357392, -0.4147750735, 0.1482861191, -0.0098863542, -0.2552711964, 0.0276815109, 0.0917314664, 0.2395271659, -0.3386901021, 0.0326808356, 0.2333814353, 0.6146984696, -0.0414829217, -0.3668235838, 0.107715629, -0.183321625, -0.0195001885, 0.2706857622, -0.2219454795, -0.0575915202, 0.1116059348, -0.2670781016, -0.1959855705, 0.1742716134, -0.1895160675, -0.6332960129, -0.3777176738, -0.2372897118, 0.0974514708, 0.1798800379, 0.0726597905, 0.0887834877, -0.056291841, 0.134487465, 0.2874445319, 0.2785539329, -0.2845242321, 0.3541835546, -0.0833172128, -0.1672917306, 0.0126983374, -0.2725436091, -0.1544397622, 0.0278653968, 0.3053678274, -0.1484797746, -0.1863525659, -0.0754737407, 0.6019787192, -0.3819627762, 0.0281856097, -0.0281325206, -0.1149148941, -0.0544853806, -0.0626205206, 0.4299757183, -0.346003294, 0.3131516874, 0.0008324722, -0.4973955154, 0.5131398439, -0.2123883814, 0.374802202, 0.1116082445, -0.3702627718, -0.178053841, 0.227568537, -0.3117609322, -0.0913038924, 0.0303535368, -0.1890041828, 0.0855688155, -0.3274149001, 0.020190414, -0.1888854653, 0.0370241664, -0.1110469028, -0.2605705857, -0.1293545216, -0.0191876125, 0.1133993492, 0.1662494689, -0.1561634988, 0.1304811388, -0.0232167058, -0.2226413637, -0.2958957851, 0.0561523549, 0.0785224587, 0.187960729, 0.1502923518, -0.1455584168, -0.1186696887, 0.0767447725, 0.1899663955, 0.1348766536, 0.1249960065, 0.08226908, 0.188682273, 0.1230078489, -0.0984020159, 0.0102956817, 0.372395128, 0.1983194202, -0.1271896064, 0.2432895303, 0.0561917759, -0.1271530688, 0.0112826573, 0.1836488545, -0.074940294, -0.2531582415, 0.1747821718, 0.2460564971, 0.1379432231, 0.0012725588, -0.0344843082, 0.5695009232, 0.3114569783, -0.0817468911, 0.2649049759, 0.3228360116, -0.110835515, -0.3317758441, -0.005690678, 0.3625389338, 0.0605958626, 0.3866687119, 0.05178589, 0.2743582428, -0.042278707, 0.0925108343, 0.4173025489, 0.1860351712, 0.0712015256, -0.2552422881, 0.2690756321, -0.433886826, 0.1989348978, 0.4672920108, 0.1102492809, -0.1853220761, 0.0649004653, -0.303707391, -0.1070098653, -0.0090747084, 0.578743875, -0.1502334774, -0.2546343207, -0.1312825382, 0.3379303813, -0.1052100882, 0.0257239025, -0.2296036482, -0.1504035294, -0.0836579129, 0.0078051863, 0.047398407, -0.5019780993, 0.0692860931, 0.2307407558, -0.0957803875, -0.0608752891, 0.1451818198, 0.1629941314, 0.411816597, 0.0118738189, -0.2501251101, 0.014866977, -0.2381026, 0.3589842916, 0.2390449494, 0.1101729348, -0.1789518595, -0.0272754077, 0.2716953158, 0.1185852885, -0.0860545859, 0.0535178632, 0.0398049168, -0.0419755764, -0.1553996503, 0.0941596925, 0.1590229571, -0.043532759, -0.3137687147, 0.0196572263, 0.1027235389, -0.2051803172, 0.3875575066, -0.3033155501, -0.2075473964, -0.0496992394, 0.2001429051, -0.2273037434, -0.1122329682, 0.1544866413, 0.1074454039, -0.1550653726, -0.1754813045, 0.0562295802, -0.0891504511, 0.445884794, 0.5503607392, 0.3033926487, -0.0647407696, -0.5201080441, -0.2665898204, 0.1549972594, 0.3349704146, 0.0516775846, 0.240994066, -0.2218649387, -0.1034597233, 0.1242363527, -0.3615407944, 0.1906909943, -0.0517824441, -0.0850171, -0.1133712083, 0.2905820608, -0.0509993695, -0.0054184105, 0.1155698895, 0.2655497491, 0.2130173892, -0.0339499079, -0.0297380984, -0.1551417857, 0.4270103276, -0.1371265054, 0.0690992996, 0.3288207948, -0.0352657996, 0.0805032998, 0.1109453514, -0.3950441182, -0.3100209832, -0.0754765645, -0.1253091246, -0.0188473128, -0.3086934686, 0.3204880059, -0.3622452915, -0.5311463475, -0.0717952922, -0.2041350305, -0.000942832, -0.1162315905, -0.0886006728, 0.092408374, -0.1547618806, 0.1270930469, 0.2791573703, 0.1255915463, -0.176085487, -0.008492114, 0.0738245398, -0.1055160761, 0.4551919699, -0.0484155044, 0.1697309911, 0.0786209702, 0.1173374727, 0.2238411009, -0.1588775218, -0.2404217869, -0.1466238499, -0.0196494069, 0.0628139898, 0.0198147651, 0.4566418529, 0.1635194868, -0.2588248849, -0.0270631555, 0.135360986, -0.0141490242, -0.0994207039, 0.1163940206, -0.1991530359 ]
https://github.com/huggingface/datasets/issues/3831
when using to_tf_dataset with shuffle is true, not all completed batches are made
Hi @greenned, this is expected behaviour for `to_tf_dataset`. By default, we drop the smaller 'remainder' batch during training (i.e. when `shuffle=True`). If you really want to keep that batch, you can set `drop_remainder=False` when calling `to_tf_dataset()`.
## Describe the bug when converting a dataset to tf_dataset by using to_tf_dataset with shuffle true, the remainder is not converted to one batch ## Steps to reproduce the bug this is the sample code below https://colab.research.google.com/drive/1_oRXWsR38ElO1EYF9ayFoCU7Ou1AAej4?usp=sharing ## Expected results regardless of shuffle is true or not, 67 rows dataset should be 5 batches when batch size is 16. ## Actual results 4 batches ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 6.0.1
36
when using to_tf_dataset with shuffle is true, not all completed batches are made ## Describe the bug when converting a dataset to tf_dataset by using to_tf_dataset with shuffle true, the remainder is not converted to one batch ## Steps to reproduce the bug this is the sample code below https://colab.research.google.com/drive/1_oRXWsR38ElO1EYF9ayFoCU7Ou1AAej4?usp=sharing ## Expected results regardless of shuffle is true or not, 67 rows dataset should be 5 batches when batch size is 16. ## Actual results 4 batches ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 6.0.1 Hi @greenned, this is expected behaviour for `to_tf_dataset`. By default, we drop the smaller 'remainder' batch during training (i.e. when `shuffle=True`). If you really want to keep that batch, you can set `drop_remainder=False` when calling `to_tf_dataset()`.
[ -0.2101608664, -0.1565533429, 0.1008584052, 0.1095013022, 0.3623255193, 0.1720545441, 0.0999238864, 0.3753473163, -0.4610953629, 0.4258148968, -0.1732449383, 0.3522307575, 0.0507792793, -0.0305818375, 0.087232247, 0.1303320527, 0.4016360641, -0.04188063, -0.3483789861, -0.2507774532, -0.2129976302, 0.0240712184, -0.4630479217, -0.2681809068, -0.3795511425, 0.0534659401, -0.0004540028, -0.1324295104, 0.0985652432, 0.1185758933, 0.0071642711, 0.0842508599, -0.0484580547, 0.6641514897, -0.0001149922, -0.0443851091, 0.1291521192, -0.0472287312, -0.3840306103, 0.0781277716, -0.272294879, 0.3542995453, -0.0494555905, 0.0105824415, -0.0029491801, -0.0420662463, 0.0618722811, 0.1616457254, 0.1469320804, 0.1686703861, 0.1783304811, 0.1592244804, 0.0435219742, 0.1571511626, 0.526158154, 0.1009253114, -0.2237552255, 0.1174938008, 0.0511422157, -0.0563641191, 0.0690339878, 0.2109211683, 0.1881965697, -0.0025162622, 0.0795938671, 0.0434945077, 0.0339075066, -0.4265292585, 0.0041613365, 0.2707495689, 0.3294870853, -0.1710380912, -0.307913959, -0.2150568068, 0.0574987233, -0.0192452073, -0.1576605737, 0.0761366412, -0.2073669732, -0.1276508868, -0.4496009946, 0.1997621059, -0.1855837405, -0.128199026, -0.0981690958, 0.4522592127, 0.046760425, 0.0627465919, 0.137431398, -0.181199044, 0.3976440728, -0.1726703942, 0.004678634, 0.1159965694, -0.5533170104, -0.220690906, -0.0630646944, 0.0250337757, 0.357175678, -0.0715064555, -0.1205957904, 0.1049497649, 0.1056878343, -0.0098109916, 0.2213847488, -0.0253064726, -0.3046860695, 0.4243263006, 0.0575690754, -0.2200036496, -0.1627920717, 0.1072136834, -0.0520220026, -0.0837986916, 0.1242587119, -0.2192734331, -0.1689283848, -0.2298829406, -0.2936049998, -0.1266323775, -0.0257424731, 0.106700629, -0.1465004683, 0.114219062, 0.0585759394, 0.0537427999, 0.0016337697, 0.0341751501, -0.4158660471, 0.0767627507, -0.332421422, -0.1855383068, -0.2726812661, -0.1292977929, 0.0410895012, -0.1436274499, 0.0376029313, 0.2220434844, 0.0978010669, 0.10979902, -0.0719809607, -0.3438986838, 0.148149699, 0.2326761633, 0.0983478054, 0.1909242868, 0.0847898722, 0.1772275418, 0.0122782951, 0.4981275201, -0.2448164374, 0.0318655558, 0.3358405232, 0.2177071422, -0.0413693413, -0.3718383014, -0.4808966815, 0.3076965511, 0.5394349098, 0.0159658063, -0.1312053949, -0.5934906602, -0.2205459476, -0.2656879425, 0.1185470149, 0.2112940252, -0.2720462978, 0.1109274402, 0.4417616725, -0.3733003139, 0.5873149633, 0.5287665725, 0.1570787132, 0.2953864336, -0.2372858673, -0.1077921242, 0.1094990894, 0.1917939782, -0.2076859623, -0.0346476026, -0.2131401747, 0.1050373316, -0.2020875812, -0.0828929543, 0.0760055184, -0.2917892635, 0.5760393143, 0.3905273676, -0.4058748782, 0.3102742136, -0.4214004576, 0.1288929582, 0.2523376346, -0.001160871, 0.0196380503, 0.1392669529, -0.0139941098, -0.1661169231, 0.4232125282, 0.0852233395, 0.1128333732, -0.1058682948, 0.1783774197, 0.1461804211, 0.0989807248, -0.0972495973, -0.1737003773, 0.0351997018, 0.1946464032, -0.0533729196, 0.2260783762, -0.0184295829, 0.0096248733, -0.1637151688, -0.0227600541, 0.1599511206, 0.0533386171, 0.1665811092, 0.1151714996, 0.0766845271, -0.0401016288, -0.2586227059, -0.2514570653, 0.0490853004, -0.1634685993, 0.327504009, 0.2180276364, -0.4094522595, 0.0476961024, 0.2396366149, 0.205324471, -0.2196432501, -0.1934144944, 0.2814114094, 0.0559857488, 0.0149700548, -0.1482096761, -0.0664279982, 0.0278342608, 0.1572306901, -0.36814785, -0.1498262435, 0.0573853403, -0.117142275, -0.0385735668, 0.0636534393, -0.1382142156, 0.2147269696, 0.1854841262, -0.1266990155, 0.0496383794, 0.1972953528, 0.092777431, -0.0341075547, 0.0300962608, -0.0616661459, -0.3536176383, 0.0597371161, -0.3029871881, 0.4018340111, 0.7039231062, -0.1558251232, -0.1831419766, 0.1673381031, -0.1333750635, -0.1988957375, -0.0278774928, 0.1977149099, 0.2501455545, 0.3480063379, 0.2588481605, -0.2263973206, 0.0080189668, -0.2260932922, 0.1142936423, 0.0290054996, 0.0295452178, 0.313949883, 0.1034552753, 0.0543384515, -0.3334700167, -0.0876761302, 0.1837739795, 0.4879392385, -0.4156076312, -0.3082156181, -0.3294087052, -0.0759215951, -0.2569131851, 0.0410267189, 0.2426648885, -0.3775735199, 0.1372371316, 0.4265148938, -0.2189570218, 0.1763327718, 0.037373174, -0.0164315458, 0.0395552143, 0.0851957351, -0.2125040889, 0.1054980233, -0.5505771637, 0.16375947, 0.2325278223, -0.1417057067, 0.2389281839, -0.3829703629, -0.2431971133, -0.1758559048, 0.049645856, 0.1316809207, -0.470169425, 0.0428499579, -0.1946885437, 0.237147063, -0.1721310914, -0.0847188383, 0.1445050687, -0.3086991608, -0.2072146833, 0.3497442305, 0.0035707327, -0.0838624015, -0.1532179415, -0.1952402145, 0.0269906484, -0.1019687951, -0.2122156918, -0.0996825993, 0.1139327884, 0.4567669928, 0.0533062145, -0.3143668175, -0.3310251236, -0.382810533, -0.1915971935, -0.4526930451, 0.2719549537, -0.1121195406, -0.2837969363, -0.0241034683, 0.1124821156, -0.2406273335, 0.6917418838, -0.2306821197, 0.3288364708, -0.2739788294, 0.0598962903, -0.3209659755, 0.1938392371, 0.1805290133, -0.1901185364, -0.0999693349, -0.156676054, 0.040941067, 0.09692543, -0.0068073575, 0.3754737079, -0.239034906, 0.1767253578, 0.1681834012, 0.7660068274, 0.1551319212, 0.1033583432, -0.0546208173, -0.1835264713, 0.1116342619, -0.22747311, -0.0945961103, 0.7235046029, 0.1965169311, -0.0145182274, 0.3886492252, -0.1816525906, 0.0566555485, 0.1528794169, 0.2653289437, -0.0583816916, -0.2618695796, 0.1202767044, -0.0368275158, 0.2001776993, 0.2608011365, 0.0508949608, 0.0037291918, -0.0930596292, -0.139532432, 0.0283165108, 0.520514369, -0.0094404453, -0.2188549191, -0.3215340674, -0.5102669597, 0.0264870245, 0.138458252, 0.4770031571, 0.0035656656, 0.0237092692, 0.0959701166, 0.4214906394, 0.8987883329, -0.0834883973, 0.1462872922, 0.2895275056, 0.2610720694, -0.2259405553, -0.2565486133, -0.3616464436, 0.0079659242, 0.0719148889, 0.2781275213, -0.2808431387, -0.0963683128, 0.2062366754, 0.2351362705, 0.0287613701, -0.098960869, -0.2809870243, -0.1538377106, -0.0012845106, 0.3596144617, 0.3131458759, 0.0314040706, -0.3122459948, -0.4986169934, 0.0992307663, -0.1292215139, 0.0847592875, -0.0299772359, 0.2598497272, 0.4487822056, 0.3104552031, 0.0015966023, -0.4099844694, 0.8005311489, 0.0334658511, -0.2108054906, -0.0295602176, 0.2195373774, -0.0740718544, 0.1640787572, 0.1361631602, -0.2967312634, -0.0213071164, -0.2221698016, 0.3512968719, 0.2243725508, -0.2547266483, 0.2344123274, -0.0139461523, -0.4734806418, -0.5224744081, 0.0846656412, 0.0360096656, 0.1452528983, 0.0692214295, -0.1512341052, -0.0914414153, 0.2765367031, -0.0390776135, 0.6841673851, -0.2149462551, 0.2195761651, 0.5486696362, 0.214886561, 0.4576742351, -0.1319641024, 0.2418021709, -0.1813542098, -0.4197857976, 0.2144340277, -0.0932431072, -0.3325563371, -0.0011868082, -0.0414506793, 0.3300591111, -0.3122418523, 0.0957243517, 0.1383248419, -0.0419309102, 0.1044748649, -0.1803640872, 0.1509952843, 0.134790659, 0.1484197974, 0.0778066143, 0.0943456441, -0.0482409634, -0.3285428882, 0.307677269, -0.2082363218, 0.1693169475, -0.1755762249, -0.0429832153, -0.1034447923, -0.0817603618, 0.0172946658, -0.166476503, 0.3068948984, 0.3329201043, -0.0420136601, 0.0486077517, 0.273060441, 0.3580445051, 0.0450739674, -0.0459532067, 0.3018464446, -0.0505595282, -0.168405816, -0.3243640363, 0.0473035201, -0.1465394646, -0.502333045, -0.1951311976, 0.1993819326, -0.2505737245, -0.0288641118, 0.0716311038, -0.1351739019, -0.1581287682, 0.1423275173, 0.0667515099, -0.1665771306, 0.7238305807, -0.2633476555, -0.2424184829, -0.0228522792, 0.1009866446, 0.2176349163, 0.1176054254, 0.3884403408, 0.0536945872, -0.1334518492, -0.1170507967, 0.0460115783, 0.1439662725, -0.2145614326, 0.4027046561, -0.1381724626, 0.5008078218, -0.0235513691, 0.3908935487, -0.2549988031, 0.0190067496, -0.1880911887, -0.1739498675, -0.2929148376, -0.0277452301, 0.1619757712, 0.0555740334, -0.0881564543, 0.7365836501, 0.151216194, -0.024518054, -0.2813738883, -0.1882953197, -0.0396384075, 0.4162767231, -0.342454195, -0.0583683848, -0.290556252, -0.0152082471, 0.1263726205, 0.3474131525, -0.0385429487, -0.2568988204, -0.0223732442, 0.0927783474, 0.314222753, 0.0398608148, 0.1433165371, -0.0402518734, -0.3052663505, -0.1598337144, 0.2622200847, 0.1774213314, -0.0664123967, -0.1172474697, 0.6894878149, 0.0565749183, 0.3213458657, 0.1302843094, -0.1808543056, -0.3819183409, -0.0709807947, 0.0596830919, -0.0119843101, -0.0942796022, -0.2923550308, -0.2847425342, 0.0025718256, 0.1475868076, -0.0207723845, -0.3126258552, -0.0727404729, 0.2101501077, 0.1788459271, 0.4994242489, -0.2047204822, -0.2554522455, 0.2701795697, 0.1973665208, -0.1023171172, 0.1235277802, -0.1133554354, 0.0153766861, -0.17633982, 0.0537996851, -0.4512590468, -0.3035968244, -0.0827706456, 0.0765871331, -0.0508524626, -0.2317011356, 0.0417888574, 0.3008036017, -0.0896399319, 0.1516404301, 0.1102294326, -0.1024660021, -0.3158663511, 0.2866220474, 0.2319162339, 0.2314040661, 0.0708684325, -0.2568928897, 0.0145819662, -0.4701197743, 0.0132802408, 0.6340286136, -0.0849460512, 0.2756356299, 0.0941952616, -0.1332249194, -0.0314663388, -0.1711948812, 0.1412155181, 0.0668316111, -0.2928754389, -0.0910177156, 0.0281547345, -0.0981217697, -0.0023803506, -0.0296841245, -0.2813060284, -0.0612846948, -0.2431596816, 0.1816159189, -0.2224197239, -0.3476493061, -0.2415310442, 0.2071250379, 0.2734677494, -0.1627953351, 0.1522853673, -0.297801286, -0.1268439144, -0.0026292109, 0.2818768024, 0.1879099309, 0.4472821355, 0.3113066554, 0.0529168658, 0.0773012787, -0.0110848984, 0.0780531839, 0.4478710294, 0.2823136747, -0.0708506331, 0.259190768, 0.0380343199, -0.1494604945, 0.0185220744, 0.0100346012, -0.0370088294, -0.410738498, 0.102408506, 0.0938083231, -0.1123078242, -0.0821481273, 0.0877461508, -0.2919514477, 0.0113542154, -0.1672771126, -0.1222629547, 0.0102311503, -0.0940519124, 0.0673665181, 0.0688750446, 0.3284578025, 0.1051044688, -0.0713014379, -0.3790461421, -0.2998868525, -0.3144406378, 0.2228332907, -0.1579813808, 0.4367029071, 0.072331965, 0.3574984372, -0.1864713579, 0.1442620754, 0.2348494977, 0.2639234066, -0.1850465238, 0.6117050648, -0.1237857342, 0.0176215637, -0.5744243264, 0.0340918601, 0.0246359576, -0.340310961, 0.4176159799, 0.0722856894, 0.0055310195, 0.0864383131, 0.1237765178, 0.2811048031, -0.086511232, 0.1555863917, 0.296754092, 0.1740382016, 0.0369637012, 0.1001612023, -0.2641906738, -0.0379879512, -0.4436737299, 0.0063947015, -0.071892336, 0.1308871806, 0.1585485041, -0.1779485494, -0.055840943, 0.0685322061, 0.1306159943, 0.1666867435, -0.0518846139, 0.0977390856, 0.200975433, 0.0202379953, 0.1713905036, 0.1975654513, -0.0321968757, -0.0598623902, -0.4676700234, -0.3302563727, 0.3327650428, -0.4147051573, -0.4929567277, -0.3943261504, 0.2188641131, 0.0149081377, -0.1512101591, -0.088327527, 0.0121835675, 0.3292821646, 0.0023659724, 0.0978811309, 0.3951739967, -0.1441232264, 0.2399224192, -0.0634441823, 0.4918848872, 0.2506949902, -0.2093921155, 0.2368423939, -0.4127123058 ]
https://github.com/huggingface/datasets/issues/3830
Got error when load cnn_dailymail dataset
Was able to reproduce the issue on Colab; full logs below. ``` --------------------------------------------------------------------------- NotADirectoryError Traceback (most recent call last) [<ipython-input-2-39967739ba7f>](https://localhost:8080/#) in <module>() 1 import datasets 2 ----> 3 train_data = datasets.load_dataset("cnn_dailymail", "3.0.0", split="train") 5 frames [/usr/local/lib/python3.7/dist-packages/datasets/load.py](https://localhost:8080/#) in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1705 ignore_verifications=ignore_verifications, 1706 try_from_hf_gcs=try_from_hf_gcs, -> 1707 use_auth_token=use_auth_token, 1708 ) 1709 [/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs) 593 if not downloaded_from_gcs: 594 self._download_and_prepare( --> 595 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 596 ) 597 # Sync info [/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 659 split_dict = SplitDict(dataset_name=self.name) 660 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 661 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 662 663 # Checksums verification [/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234/cnn_dailymail.py](https://localhost:8080/#) in _split_generators(self, dl_manager) 253 def _split_generators(self, dl_manager): 254 dl_paths = dl_manager.download_and_extract(_DL_URLS) --> 255 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN) 256 # Generate shared vocabulary 257 [/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234/cnn_dailymail.py](https://localhost:8080/#) in _subset_filenames(dl_paths, split) 154 else: 155 logger.fatal("Unsupported split: %s", split) --> 156 cnn = _find_files(dl_paths, "cnn", urls) 157 dm = _find_files(dl_paths, "dm", urls) 158 return cnn + dm [/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234/cnn_dailymail.py](https://localhost:8080/#) in _find_files(dl_paths, publisher, url_dict) 133 else: 134 logger.fatal("Unsupported publisher: %s", publisher) --> 135 files = sorted(os.listdir(top_dir)) 136 137 ret_files = [] NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ```
When using datasets.load_dataset method to load cnn_dailymail dataset, got error as below: - windows os: FileNotFoundError: [WinError 3] 系统找不到指定的路径。: 'D:\\SourceCode\\DataScience\\HuggingFace\\Data\\downloads\\1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b\\cnn\\stories' - google colab: NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' The code is to load dataset: windows os: ``` from datasets import load_dataset dataset = load_dataset("cnn_dailymail", "3.0.0", cache_dir="D:\\SourceCode\\DataScience\\HuggingFace\\Data") ``` google colab: ``` import datasets train_data = datasets.load_dataset("cnn_dailymail", "3.0.0", split="train") ```
201
Got error when load cnn_dailymail dataset When using datasets.load_dataset method to load cnn_dailymail dataset, got error as below: - windows os: FileNotFoundError: [WinError 3] 系统找不到指定的路径。: 'D:\\SourceCode\\DataScience\\HuggingFace\\Data\\downloads\\1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b\\cnn\\stories' - google colab: NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' The code is to load dataset: windows os: ``` from datasets import load_dataset dataset = load_dataset("cnn_dailymail", "3.0.0", cache_dir="D:\\SourceCode\\DataScience\\HuggingFace\\Data") ``` google colab: ``` import datasets train_data = datasets.load_dataset("cnn_dailymail", "3.0.0", split="train") ``` Was able to reproduce the issue on Colab; full logs below. ``` --------------------------------------------------------------------------- NotADirectoryError Traceback (most recent call last) [<ipython-input-2-39967739ba7f>](https://localhost:8080/#) in <module>() 1 import datasets 2 ----> 3 train_data = datasets.load_dataset("cnn_dailymail", "3.0.0", split="train") 5 frames [/usr/local/lib/python3.7/dist-packages/datasets/load.py](https://localhost:8080/#) in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1705 ignore_verifications=ignore_verifications, 1706 try_from_hf_gcs=try_from_hf_gcs, -> 1707 use_auth_token=use_auth_token, 1708 ) 1709 [/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs) 593 if not downloaded_from_gcs: 594 self._download_and_prepare( --> 595 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 596 ) 597 # Sync info [/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 659 split_dict = SplitDict(dataset_name=self.name) 660 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 661 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 662 663 # Checksums verification [/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234/cnn_dailymail.py](https://localhost:8080/#) in _split_generators(self, dl_manager) 253 def _split_generators(self, dl_manager): 254 dl_paths = dl_manager.download_and_extract(_DL_URLS) --> 255 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN) 256 # Generate shared vocabulary 257 [/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234/cnn_dailymail.py](https://localhost:8080/#) in _subset_filenames(dl_paths, split) 154 else: 155 logger.fatal("Unsupported split: %s", split) --> 156 cnn = _find_files(dl_paths, "cnn", urls) 157 dm = _find_files(dl_paths, "dm", urls) 158 return cnn + dm [/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234/cnn_dailymail.py](https://localhost:8080/#) in _find_files(dl_paths, publisher, url_dict) 133 else: 134 logger.fatal("Unsupported publisher: %s", publisher) --> 135 files = sorted(os.listdir(top_dir)) 136 137 ret_files = [] NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ```
[ -0.3095068634, 0.2098640352, 0.0282028429, 0.4526914656, 0.2786128521, 0.0300756563, 0.6285235286, -0.0142820952, 0.0125053413, 0.2989321351, -0.300666064, 0.2344312817, -0.4058233202, 0.1356498748, -0.0893944651, 0.0908746794, 0.0534629188, 0.1627378315, -0.0562224016, 0.0320776589, -0.2700077891, 0.4004788697, -0.3010605872, -0.0533442684, -0.6285266876, 0.0138292983, -0.0953596458, 0.4638508856, -0.1315477788, -0.0597175807, 0.1083321869, -0.1623658538, 0.3752070665, 0.529976368, -0.0001248304, 0.2415369898, 0.2318648845, -0.0633835718, -0.3524456918, -0.5094763637, -0.1255923212, -0.0482649617, 0.169156149, -0.1163775846, -0.1141695678, 0.2773620784, 0.1407029033, 0.1941357106, 0.3674530685, 0.5125663877, 0.1052402779, 0.1047102883, 0.0365595669, 0.0257802177, 0.0601958372, 0.112256147, -0.1020155624, 0.7109395862, -0.2355091274, 0.0954459384, 0.314887017, 0.2238555998, -0.1997052729, 0.0569339208, 0.007475792, 0.1964651495, -0.154473111, -0.6135702133, 0.2247476131, 0.0434233993, 0.5313555002, -0.1198204979, -0.2105577141, 0.0643794462, 0.1522719562, -0.3185526431, 0.386251092, 0.3067631423, -0.1450477093, 0.0986966789, -0.1958630979, -0.080424279, -0.2782749832, 0.4161159396, -0.1356512457, 0.2995862067, -0.1916511357, 0.0524697043, 0.0913632289, -0.0304106139, 0.387962997, -0.0903460681, 0.0824392587, 0.2340679169, -0.0359510928, 0.0840246752, -0.2074857801, 0.2534274757, -0.1279339343, 0.115179576, -0.1874552816, -0.1733545065, -0.0941245183, 0.142097339, -0.1086534858, 0.1296254843, -0.0094198566, 0.3359822631, 0.3653138876, 0.3486900032, -0.1976776123, -0.0737161562, -0.5522984862, -0.3752030432, 0.0062364545, 0.0427168012, 0.6588173509, -0.2488257438, -0.4301323295, -0.1785048246, -0.577031076, 0.1273437142, 0.3073651791, 0.6884990931, -0.0906695426, -0.2485329062, 0.0006122772, 0.0779469162, -0.0009150686, 0.1544566005, -0.1943495423, 0.2483544052, -0.2779594064, 0.2419573367, 0.3207546771, -0.3903261423, 0.3200773895, 0.0403804183, 0.1246360391, -0.1580450982, -0.114128992, -0.2772791982, -0.2260843813, 0.4425131083, -0.0008911968, 0.0171303935, 0.1403038949, -0.1692488492, -0.1248304322, 0.2865030766, -0.4726806581, -0.5606014729, -0.1279152036, 0.007863367, -0.2196883857, -0.1126102731, -0.1724794358, -0.0071949582, 0.0021512848, -0.1294342726, -0.0630452484, -0.0090261372, -0.4937412739, -0.2018273622, 0.3109107316, 0.5900985599, -0.5614760518, -0.1409683079, -0.0356531739, -0.2114346325, 0.2404619157, 0.4673263431, -0.1799376756, 0.1498854607, -0.2929303646, -0.1129490808, 0.3088051975, -0.0396944247, -0.5198438764, 0.0493869185, 0.0024254846, 0.0991973206, 0.0650312975, 0.0823207945, -0.1055630222, -0.0592852458, 0.2024238557, 0.1964770705, 0.0183852687, 0.0749619678, -0.1724214256, -0.207832396, 0.0615357421, 0.3675413132, 0.2675861418, 0.1487720609, 0.2101761401, -0.0697954446, 0.0327511206, -0.3318341076, -0.1382554919, 0.2743635476, 0.5242493749, 0.1274563074, -0.0149250971, 0.0737616569, -0.513871491, 0.1886542141, 0.1215174347, 0.3177194297, -0.2373704016, -0.0705837011, -0.1235997528, -0.0034182402, -0.2920302451, -0.1643057764, -0.02878589, 0.0056138919, -0.0182574634, 0.1839788407, -0.1737784594, 0.5757722259, -0.165072605, 0.2158196867, -0.1507938355, 0.4189086258, -0.1825193912, -0.1976024806, -0.1767897159, 0.1962745339, 0.1061781645, -0.2600620985, -0.1781477481, 0.2192528099, 0.0044810269, -0.0246915799, 0.0200717673, -0.0260998867, 0.1519246101, -0.0573942885, 0.1103875563, 0.2108822316, 0.1341397464, 0.066173546, 0.0295041893, 0.3374635279, -0.0079794526, 0.1355278939, -0.0155629711, -0.1064221859, -0.0251911394, -0.0373204909, 0.0783376545, -0.0712004304, 0.2821788788, -0.1807915717, 0.4348878264, 0.1113135591, -0.2562860847, -0.1900907159, 0.0920438841, -0.1353331208, 0.0936724916, 0.1896377057, -0.3600350618, 0.0499491468, -0.1369896084, 0.1927138716, 0.6719841361, 0.0205485635, -0.0534476414, 0.2583381236, 0.0439379774, -0.1488322914, 0.2953351438, 0.1547933668, 0.3846697509, 0.2565410733, -0.0531671531, 0.1039110497, -0.3355041742, -0.5095567107, 0.1543494612, 0.4287935197, -0.4389048815, 0.0451393388, -0.0495075807, -0.4452623725, -0.057605274, -0.3300299644, -0.182472378, 0.0079812706, -0.1696908027, 0.3829992115, 0.2046042979, 0.0093014706, 0.0044355895, 0.030941572, 0.0462283865, -0.2844980359, -0.1010485962, 0.0061766566, -0.0315187722, -0.0567340143, 0.5206706524, -0.1717214435, 0.1327512562, -0.2523738444, -0.004080466, -0.2433171719, -0.244764924, 0.0887605026, 0.0296077952, 0.4573537707, -0.0251984913, 0.0560983755, -0.1999277472, -0.2714463174, 0.2580688894, 0.0260042585, -0.1316271275, 0.0171134267, -0.3006403148, -0.0000077148, -0.0525487065, -0.299511373, -0.5992609859, -0.2427119911, -0.0157546122, -0.0655331463, 0.1883068085, 0.5018794537, -0.008232981, 0.1793192923, 0.1717995107, 0.0900169834, -0.0956967622, -0.2910325527, 0.381621182, -0.2746096849, -0.23072429, 0.2024273276, -0.0239228737, 0.0335883349, -0.1199578196, -0.4130151272, -0.4669865966, 0.0137528293, -0.243201524, -0.0563515872, -0.2628589272, 0.1314914227, -0.0748458728, 0.0652717873, 0.1461218148, -0.2574118376, -0.009722664, -0.1118963212, 0.0733356923, -0.0635302141, 0.5399034023, -0.1412067413, 0.6341121793, 0.11753387, -0.0670389161, 0.3915447593, -0.0470720269, 0.161034435, -0.0123005724, -0.46571064, 0.1418694854, 0.1643957645, -0.2737267911, 0.4338709116, 0.174851343, -0.3048364222, -0.2479370236, -0.3950166702, -0.3359321654, -0.1291849166, 0.2244458646, 0.076551877, 0.0093722977, -0.0750355646, -0.1701915115, 0.0642842799, -0.3479041755, -0.0257304795, 0.6968374252, -0.0572962537, 0.0192055535, 0.1792267859, -0.1952517033, -0.5042145252, 0.2833388746, 0.0309645459, 0.1260256767, -0.1925556362, 0.2048036307, 0.1744045317, 0.0323664211, 0.617228806, -0.0892646983, -0.1175618321, 0.1152496859, -0.0933729038, -0.165513888, -0.2598897219, -0.3196980655, 0.2856867015, 0.1418205351, 0.5595878959, 0.0455363728, -0.1937881559, 0.5777938366, 0.0901097208, -0.1362019926, -0.3450041413, -0.3429663479, -0.260660708, -0.3860339522, -0.1017531753, -0.2308759838, 0.2152520716, 0.0645383149, -0.0772681013, -0.0567125939, 0.0791455135, 0.271002382, -0.0277004708, 0.2195708007, 0.1983787119, 0.1572689861, -0.0439912826, 0.3361565769, 0.3776147664, 0.574019134, -0.0257168226, -0.4406917691, 0.0383936912, 0.0839398652, 0.086265333, 0.2240063548, -0.2463320047, -0.294729501, -0.1106921956, 0.3445340991, 0.1342603564, 0.27777192, 0.3449818194, 0.0483065322, -0.4903082848, -0.1967240125, 0.4206611216, 0.0986036956, 0.0564057715, 0.1465898156, -0.0372936688, -0.2682203054, 0.2073345929, -0.0108547304, 0.9076471925, -0.0525068156, 0.1670575142, 0.5253484845, 0.295966506, 0.5089922547, -0.0178781673, 0.05574999, -0.3123053908, -0.4351037145, -0.1765348613, -0.1443975419, 0.0507388338, 0.2611633837, -0.2046563774, 0.4022340477, 0.0749131069, 0.1823235899, 0.1540059745, 0.0220554098, -0.1298745573, -0.0805765316, -0.1070424244, 0.0286970213, -0.1531616598, 0.3983195722, -0.34882164, 0.0734508336, -0.1336141825, 0.0083822599, -0.1635899991, 0.268476516, -0.6767582893, 0.3378950357, -0.0632139742, -0.4176093042, 0.0126246065, 0.3829080462, 0.3298655152, -0.2073696554, -0.0569760203, 0.0307283178, -0.1596705467, -0.2693594098, -0.2377822399, -0.2176627815, 0.3943041861, -0.102154322, -0.184089914, -0.2670327127, -0.1430356205, -0.3169198036, 0.1624436826, 0.1522802263, 0.1495651305, -0.0732411221, -0.4231262803, -0.0518529378, 0.0487259589, -0.0907951146, 0.0052762311, -0.008889162, -0.1116967425, 0.0016209744, -0.0894595757, -0.481998384, -0.0921027362, 0.2557443976, -0.2048008591, -0.1016314328, 0.5823462009, 0.1173533499, -0.1634694934, -0.0880387798, 0.1582469195, -0.0877781063, -0.3711772859, 0.1427474022, 0.2561977804, 0.2981034219, 0.0127774393, 0.3018706441, 0.2123361677, 0.0285799727, -0.0908125043, -0.6985996366, -0.1680389941, 0.2159720808, 0.0010137816, 0.191711247, 0.0221397448, 0.0145579455, 0.1556890756, -0.4672350585, -0.1596800685, 0.3194862306, -0.135040313, -0.0874453858, 0.2334044576, -0.018758826, 0.4961554706, 0.0676591173, -0.0159226339, 0.0354713723, 0.0454691388, -0.1769183576, -0.0957745239, 0.1844379306, 0.1239005029, -0.0403533056, 0.0199285168, 0.0579949394, -0.1173960119, -0.095870018, 0.2908241451, 0.410040319, 0.036116749, -0.1406511366, 0.0139029836, 0.0776388943, -0.2161923796, 0.2707623839, -0.0838153362, 0.384341836, 0.2107813954, 0.2238774151, 0.0057882224, 0.0252289735, 0.0253489222, -0.1151164323, -0.0976695269, -0.0358958766, 0.0330191255, -0.4084881842, 0.0384184271, 0.0043989089, 0.1658739746, 0.1596958786, -0.3323267698, 0.0760940164, 0.349953562, 0.0498850495, -0.0984904766, 0.0006028311, 0.1474262923, -0.1627921611, 0.0234548915, 0.3818509281, -0.1067842245, 0.260776788, -0.0306506455, -0.0099972598, 0.3750450909, 0.253744036, 0.016414227, 0.176176101, -0.0703759417, 0.4491493404, 0.2291555703, 0.1360991299, 0.1865510941, 0.4542300403, -0.2553727329, 0.0885473862, -0.1563383639, 0.139278397, 0.2634980381, -0.4710378349, 0.1004663333, 0.3601090014, -0.1182534024, -0.0313259102, -0.1421913356, 0.4546006024, -0.4009883702, -0.0291904751, -0.239850685, 0.2650924325, -0.1968532801, -0.0125004658, -0.0147135332, -0.071088627, -0.1900485307, 0.2588324249, -0.0103309583, -0.2613224089, -0.1662738323, 0.3800848126, -0.3693141341, 0.0738168657, 0.0176985189, 0.5190157294, -0.200521186, -0.150650695, 0.3516225219, 0.0204242952, 0.0372692235, -0.0324786529, 0.4056483507, 0.4965586066, 0.3980090618, 0.1276070923, 0.061367739, 0.1034483314, -0.052740436, 0.0407555029, -0.0143179819, 0.3056208789, 0.3953870237, 0.1803060174, 0.0411324911, -0.1195278838, 0.2371860743, 0.0676582754, 0.1652640849, 0.0104152057, 0.2429860979, -0.229332611, -0.002109484, -0.17703107, -0.0671852604, -0.4191376269, 0.1175108775, 0.1620230973, -0.1038026139, 0.0572691634, 0.1918281913, -0.0073862383, -0.0163179003, 0.2499404401, 0.41989851, 0.4056077898, -0.4796982706, -0.2167495787, -0.642029047, 0.1984612942, 0.0232694987, 0.1562112272, -0.3741684556, -0.0513501652, -0.2605506778, 0.1461312175, 0.0820726529, 0.0889113098, 0.1993162781, -0.0086357109, -0.3039393127, -0.030698264, 0.1202287748, -0.0499743819, -0.0018182484, -0.4665812552, -0.0214056205, -0.4162733853, -0.1950970888, 0.0493628234, -0.0746058747, -0.304801017, -0.1365188509, 0.4452053905, -0.0588229075, 0.718203187, -0.0286713056, 0.0147432461, -0.0838418379, -0.2703281045, -0.1731215417, 0.2960036695, 0.238909483, 0.4324973226, -0.1298281103, -0.0546462685, -0.2408383489, 0.2317165136, 0.0090021733, -0.1445880681, -0.1724501252, -0.0028891147, 0.0527583845, 0.2158150971, 0.1104348525, 0.1478017569, -0.2015316039, 0.0766632482, -0.2525889277, -0.2838794291, 0.5721769929, -0.4715801775, -0.0840678886, -0.0438873321, 0.2637877762, 0.1167217195, -0.1722851843, -0.3961704969, 0.1777317375, 0.205716908, 0.0243685953, -0.3985056281, 0.2220116556, 0.1821327507, 0.06270504, -0.0444381647, 0.3671534061, 0.0184992962, -0.3976084292, 0.0742620602, -0.3515209258 ]
https://github.com/huggingface/datasets/issues/3830
Got error when load cnn_dailymail dataset
Hi @jon-tow, thanks for reporting. And hi @dynamicwebpaige, thanks for your investigation. This issue was already reported - #3784 and its root cause is a change in the Google Drive service. See: - #3786 We have already fixed it. See: - #3787 We are planning to make a patch release today (indeed, we were planning to do it last Friday). In the meantime, you can get this fix by installing our library from the GitHub master branch: ```shell pip install git+https://github.com/huggingface/datasets#egg=datasets ``` Then, if you had previously tried to load the data and got the checksum error, you should force the redownload of the data (before the fix, you just downloaded and cached the virus scan warning page, instead of the data file): ```shell load_dataset("...", download_mode="force_redownload") ``` CC: @lhoestq
When using datasets.load_dataset method to load cnn_dailymail dataset, got error as below: - windows os: FileNotFoundError: [WinError 3] 系统找不到指定的路径。: 'D:\\SourceCode\\DataScience\\HuggingFace\\Data\\downloads\\1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b\\cnn\\stories' - google colab: NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' The code is to load dataset: windows os: ``` from datasets import load_dataset dataset = load_dataset("cnn_dailymail", "3.0.0", cache_dir="D:\\SourceCode\\DataScience\\HuggingFace\\Data") ``` google colab: ``` import datasets train_data = datasets.load_dataset("cnn_dailymail", "3.0.0", split="train") ```
129
Got error when load cnn_dailymail dataset When using datasets.load_dataset method to load cnn_dailymail dataset, got error as below: - windows os: FileNotFoundError: [WinError 3] 系统找不到指定的路径。: 'D:\\SourceCode\\DataScience\\HuggingFace\\Data\\downloads\\1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b\\cnn\\stories' - google colab: NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' The code is to load dataset: windows os: ``` from datasets import load_dataset dataset = load_dataset("cnn_dailymail", "3.0.0", cache_dir="D:\\SourceCode\\DataScience\\HuggingFace\\Data") ``` google colab: ``` import datasets train_data = datasets.load_dataset("cnn_dailymail", "3.0.0", split="train") ``` Hi @jon-tow, thanks for reporting. And hi @dynamicwebpaige, thanks for your investigation. This issue was already reported - #3784 and its root cause is a change in the Google Drive service. See: - #3786 We have already fixed it. See: - #3787 We are planning to make a patch release today (indeed, we were planning to do it last Friday). In the meantime, you can get this fix by installing our library from the GitHub master branch: ```shell pip install git+https://github.com/huggingface/datasets#egg=datasets ``` Then, if you had previously tried to load the data and got the checksum error, you should force the redownload of the data (before the fix, you just downloaded and cached the virus scan warning page, instead of the data file): ```shell load_dataset("...", download_mode="force_redownload") ``` CC: @lhoestq
[ -0.1300634295, 0.2179487199, 0.022833854, 0.3490008712, 0.2328821421, 0.1309629232, 0.5199148655, -0.0454560816, 0.0150798168, 0.2289736271, -0.1221061125, 0.1092229187, -0.3064778149, 0.3377999365, -0.1343074143, 0.0932021588, 0.1022375524, 0.0350106098, 0.0430555679, 0.0189731736, -0.2948889732, 0.4258313477, -0.2512711287, -0.1685949415, -0.4487774372, -0.0156316087, 0.0029485135, 0.4556183219, -0.126627028, -0.0711078867, 0.0653891861, -0.1180319861, 0.2960484922, 0.5225614905, -0.0001227905, 0.1965463459, 0.3566413522, -0.0430716574, -0.3295639157, -0.408652693, 0.2129572332, -0.0869971663, 0.0831427872, -0.0650508553, -0.0329388268, 0.1074594334, 0.1283163428, 0.1214419603, 0.27643767, 0.448582083, 0.1044512019, 0.1832554489, 0.1414559186, 0.0417594649, 0.0738785565, -0.0670370832, -0.0125065977, 0.789943397, -0.215771392, 0.0075157271, 0.3022471964, 0.1367965043, -0.2080564499, -0.0462153666, 0.055843506, 0.2570539713, -0.1646828949, -0.4824424088, 0.1632401198, 0.0499979258, 0.3487246931, -0.0297542401, -0.235728994, -0.0355175734, 0.1729051322, -0.2818133235, 0.4703402817, 0.3068805933, -0.0234874748, 0.0273354426, -0.3240554333, -0.0684164092, -0.12230362, 0.3630577326, -0.181369558, 0.1860185415, -0.2319848537, 0.0025240267, 0.191363886, -0.0744602755, 0.285671711, 0.0261714812, -0.0160095096, 0.1185464635, -0.0261130333, 0.0654891431, -0.1349329352, 0.3606563509, -0.0634359419, 0.1861918271, -0.1586191058, -0.0797814727, -0.2605511248, 0.0592534766, -0.0170423444, 0.2563008666, 0.0543771386, 0.1345098466, 0.3591724634, 0.4540006518, -0.0307419226, -0.0460631773, -0.3418284059, -0.3121160865, 0.0092392955, 0.0478786565, 0.5888530016, -0.1525264829, -0.3313107789, -0.108010076, -0.4425867796, 0.0087911673, 0.238733381, 0.5910139084, -0.0982723609, -0.2586021125, 0.0367916189, 0.0564686805, 0.1179805771, 0.200385347, -0.2167100012, 0.1732979715, -0.1978275031, 0.2794423103, 0.3365637362, -0.5867109299, 0.2475164235, 0.0210709982, 0.1793159097, -0.1805920452, -0.3009418249, -0.1179841682, -0.2420507222, 0.4113146365, -0.0687329248, -0.0028588865, 0.2277712226, -0.2253912985, -0.1228832826, 0.2161221057, -0.5137172341, -0.5094754696, -0.0610443726, 0.0139433034, -0.3341474831, -0.1934872717, -0.1768106967, -0.0429053344, -0.1805645227, -0.1818278879, -0.0993327349, 0.1232758313, -0.4425276816, -0.1622212678, 0.2184720337, 0.5684313774, -0.5083070993, -0.1108252332, -0.1232597604, -0.3132513762, 0.0786502808, 0.4274800122, -0.0878604501, 0.0228756499, -0.3197790384, -0.0962967873, 0.0230486803, -0.0281978007, -0.5154523253, -0.049132131, -0.061600931, 0.0609677285, -0.0504841357, 0.0012747919, -0.1749138981, -0.0775731951, 0.155961439, 0.1646884084, -0.026718758, 0.1023700237, -0.1472013742, -0.2874498069, 0.0354620367, 0.3345776796, 0.1644116193, 0.2551052868, 0.3015436232, -0.2435940802, -0.0343245193, -0.2236667573, -0.1603402793, 0.2831117511, 0.5587393045, 0.038591668, 0.1359024495, 0.1647965014, -0.6818865538, 0.209448874, 0.1438337117, 0.360198468, -0.2499181181, -0.0177621916, -0.1806571931, -0.103973493, -0.1213545874, -0.0413321927, 0.0009641252, 0.041734919, -0.0101776747, 0.2440993339, -0.0987061858, 0.3540973365, -0.3289841115, 0.1726150066, -0.2347595096, 0.6144315004, -0.0322708711, -0.2267041802, -0.0388201028, 0.0663308948, 0.1161678359, -0.2704023719, -0.2473481894, 0.2456151992, -0.0760614797, 0.268784076, 0.0929932073, 0.2088283151, 0.1341518015, -0.1062735096, 0.1251795888, 0.3223005235, 0.0668259412, 0.0589933433, -0.0647090673, 0.3350734413, -0.1625284255, 0.046299275, -0.0039061971, -0.0422445759, 0.0377166606, -0.0939725563, 0.0415270105, -0.1894846261, 0.1918632686, -0.1058394238, 0.483838886, 0.0010295699, -0.1328932941, -0.1949914694, 0.2370427847, -0.1423299611, 0.0079144184, 0.2776373327, -0.3640571833, -0.0251511037, -0.2545516789, 0.4079102874, 0.5681413412, 0.02838061, -0.0167466346, 0.3545247614, 0.1662514806, -0.1596454084, 0.3021810353, 0.1289911419, 0.3483665586, 0.3190677166, -0.0366592072, 0.1171063408, -0.4024394155, -0.2268186361, 0.1602364779, 0.4657438993, -0.4294167459, -0.0495047458, -0.0283099245, -0.2418710589, -0.1595685184, -0.2126122564, -0.317296654, -0.1564163566, -0.1657288522, 0.2885158956, 0.0347379297, -0.0773447901, 0.1446500272, 0.2817661464, 0.0911582932, -0.2832787931, -0.1989644021, 0.0096123908, -0.0208560899, -0.0625779927, 0.5678500533, -0.1708389819, 0.1300823987, -0.2539514303, 0.0198737234, -0.5079567432, -0.3405902684, 0.1488910019, -0.1355289966, 0.5889443159, -0.0560969301, 0.1709727943, -0.1280335039, -0.1756123453, 0.1317172199, -0.1821890771, -0.1463347673, 0.0779615045, -0.2671393752, 0.1212029457, -0.080462113, -0.2877449095, -0.4566756785, -0.1328057647, 0.165623039, -0.1192121729, 0.1555557996, 0.4012332559, -0.0019093393, 0.1481708586, 0.1829362959, 0.0272111874, -0.2391099334, -0.434407264, 0.3606857657, -0.249632597, -0.3173506558, 0.1859596372, 0.0513903722, -0.1684067547, -0.2418546826, -0.4128282666, -0.6787147522, -0.0898199826, -0.3303911388, 0.1014553756, -0.2042478323, 0.1198499352, -0.0861460492, 0.0189332739, 0.1067004129, -0.3549135625, -0.0416603461, 0.0296636969, -0.0172178857, 0.0617828481, 0.4844845533, -0.1785948575, 0.4035844803, 0.1789197326, -0.058306843, 0.3741360307, -0.0455020629, 0.227679044, 0.1101734787, -0.379460901, 0.0556969903, 0.0883779302, -0.2541041374, 0.4931950867, 0.1123334914, -0.3678251803, -0.1357218772, -0.4384354353, -0.4458965659, -0.162279442, 0.1544205546, 0.2316493094, 0.039893534, -0.0953077301, -0.2256143093, 0.0275554806, -0.4880638719, 0.0891492292, 0.6194334626, -0.0735186562, -0.0584834926, 0.1848312318, -0.2012172043, -0.4196085632, 0.4340585768, -0.0596985891, 0.1531144381, -0.1631335765, 0.1495886296, 0.153135702, -0.0820653066, 0.5710678697, -0.1929426938, -0.0089219837, 0.0208759103, 0.1083713621, 0.0778462589, -0.3193872869, -0.4425836504, 0.0555264503, 0.2409595549, 0.7514569759, 0.009736984, -0.1777392626, 0.6015978456, 0.1401512623, -0.1588430107, -0.3376880586, -0.3180812597, -0.3572993279, -0.3581478894, -0.1200484857, -0.2905834913, 0.3001078069, -0.1232965738, 0.0075254356, 0.0926512778, -0.0214456823, 0.2650277913, -0.1621678174, 0.2922253609, 0.3029133081, 0.0862904191, 0.1426714063, 0.2507828474, 0.3215059936, 0.7400478125, -0.0362675041, -0.226630792, 0.1507583112, 0.101864405, -0.0315875746, 0.382643342, -0.2327225804, -0.2475093454, 0.141759932, 0.4048098028, -0.0498561412, 0.0460534543, 0.361464262, 0.0742046908, -0.4182457328, -0.0745398477, 0.453576237, 0.1522010267, 0.0055180392, 0.1342505515, 0.1532314867, -0.2634542286, 0.2213868946, 0.0304302387, 1.0127350092, -0.1173334494, 0.0023981729, 0.4705313444, 0.2759788632, 0.3938235044, 0.0079316366, 0.0002721545, -0.315351665, -0.5866020322, -0.1837548614, -0.1168721691, 0.0784379244, 0.2087648958, -0.1287035793, 0.3242974281, -0.0000743845, 0.2693217695, 0.1278037727, 0.2416030467, -0.3603482246, 0.0147137474, -0.0903455243, 0.0190279726, -0.0910039023, 0.3299334049, -0.2439098656, 0.0687192231, -0.0217845421, -0.1166161373, -0.3386684656, 0.1968111694, -0.384827137, 0.1994724125, 0.0299811549, -0.2435787022, -0.0674178526, 0.3080703616, 0.4909735024, -0.1388209313, -0.1746353954, 0.071368821, -0.1294576377, -0.2561298907, -0.286557734, -0.2202899903, 0.4133270085, -0.0859879181, -0.223760739, -0.2808836401, -0.1336205453, -0.3354204893, -0.0105898222, 0.0988040864, -0.2865546048, -0.0963417962, -0.353684932, -0.0707112327, 0.0449858345, -0.0931038037, 0.0189786218, 0.0177121162, 0.0412439704, 0.0499460548, 0.0139419762, -0.4749698937, -0.110361591, 0.2412401736, -0.1174969971, -0.2641789615, 0.6031966805, 0.1539247632, -0.0713559464, -0.0548208617, 0.1376878768, 0.0433290266, -0.3000157475, 0.1863078475, 0.2580364048, 0.3675200641, 0.0162798446, 0.378906399, 0.2422380894, 0.2119099051, -0.1203883588, -0.7557977438, -0.0173999462, 0.3436772823, 0.0044497745, 0.2536673248, -0.0839912891, -0.0300693531, 0.1107717603, -0.4230600595, -0.2164453268, 0.4868034422, -0.1437090933, -0.1616514772, 0.2523181736, -0.0030917791, 0.6339271665, 0.0439262651, 0.0101963971, 0.0021848103, -0.0002371375, -0.1567286402, -0.0408564247, 0.1694275737, 0.062779136, -0.0298855491, 0.0744567066, 0.0456744023, -0.1467023641, -0.0506302528, 0.2836778462, 0.328925252, 0.0566505492, -0.2299720794, 0.0846681744, 0.1072487906, -0.0966856107, 0.0772865415, -0.1022475064, 0.3242802024, 0.1274974942, 0.240373984, -0.0626876652, 0.0729845092, 0.1020997688, -0.0314560346, -0.0028181321, 0.0589544848, 0.0411495417, -0.3234440386, -0.0826556683, -0.0093296515, 0.2025967985, 0.0999949425, -0.4644294977, 0.018803237, 0.3715128303, 0.0625081435, -0.1167784035, -0.063343659, 0.1244619638, -0.1902558655, 0.0232748333, 0.3049055338, 0.0535276905, 0.3011428118, -0.0867819041, 0.0091636553, 0.4794132411, 0.2368937135, 0.102599293, 0.0542332083, -0.0439429358, 0.3129592538, 0.2839518487, -0.0592237376, 0.1064246073, 0.199795872, -0.2020636946, 0.0042059957, -0.2443704307, 0.2695833445, 0.209279567, -0.6072751284, 0.3863107264, 0.3649275303, -0.2710696161, 0.0066574188, -0.0886540189, 0.5886100531, -0.3937424421, 0.106614016, -0.4377591908, 0.3101498485, -0.0739259198, 0.0143187838, 0.0161902718, -0.2262272537, -0.1838118434, 0.3866819739, 0.1250124127, -0.3123530447, -0.1929467022, 0.3770984709, -0.4343470633, 0.1451736838, -0.1580658406, 0.3967547715, -0.0864939913, -0.1777062714, 0.3147438467, 0.0004900387, -0.0073353662, 0.0064265216, 0.4145897329, 0.3953951895, 0.3215374351, 0.271050781, 0.105215691, 0.1322258264, -0.0329281874, 0.1794402152, 0.1001408175, 0.3490256071, 0.2284121662, 0.0486241505, 0.1048866436, -0.1470794231, 0.0841861963, -0.0842197165, 0.1726451516, 0.0399647541, 0.1884557605, -0.1062238365, 0.1212585941, -0.2453847975, -0.1451918781, -0.4508959055, 0.0302596781, 0.197721526, -0.0100597106, 0.0636693686, 0.165751189, 0.0220094658, 0.1152268201, 0.2801783383, 0.4464454949, 0.4350807071, -0.2884490192, -0.3450743258, -0.679838419, 0.163019672, 0.2174051851, 0.393037051, -0.260724932, -0.1299112886, -0.2225720882, 0.1150629595, 0.1554627568, 0.0204690918, 0.028976094, -0.1226557866, -0.2071961462, 0.0553055592, 0.2463060617, -0.0650552884, -0.0726512223, -0.3547628224, -0.065336585, -0.4222726226, -0.1737667024, -0.0058433441, 0.0382875316, -0.4624644816, -0.1555776447, 0.4704168737, 0.0250972528, 0.6418492198, -0.056299679, -0.1226224825, -0.199794963, -0.2223839909, -0.2325709015, 0.2440707833, 0.1372234672, 0.4380357265, -0.0477356389, -0.1900885999, -0.2601234317, 0.2274240255, -0.0293353554, -0.1156325191, -0.2843642533, 0.0633660704, 0.057199914, 0.1073418856, 0.0923593789, 0.135384649, -0.0535164177, 0.1432620734, -0.1672876179, -0.2706226707, 0.5450863242, -0.3761098385, 0.0010456654, 0.0501842313, 0.1842291802, 0.0695414692, -0.1855597198, -0.5381104946, 0.2098688036, 0.1717993468, 0.1076341942, -0.3465572298, 0.1472225338, 0.1298366338, 0.026645869, -0.010529127, 0.2029095143, 0.1474777609, -0.3733092248, 0.0701166689, -0.2374893427 ]
https://github.com/huggingface/datasets/issues/3829
[📄 Docs] Create a `datasets` performance guide.
Hi ! Yes this is definitely something we'll explore, since optimizing processing pipelines can be challenging and because performance is key here: we want anyone to be able to play with large-scale datasets more easily. I think we'll start by documenting the performance of the dataset transforms we provide, and then we can have some tools to help debugging/optimizing them
## Brief Overview Downloading, saving, and preprocessing large datasets from the `datasets` library can often result in [performance bottlenecks](https://github.com/huggingface/datasets/issues/3735). These performance snags can be challenging to identify and to debug, especially for users who are less experienced with building deep learning experiments. ## Feature Request Could we create a performance guide for using `datasets`, similar to: * [Better performance with the `tf.data` API](https://github.com/huggingface/datasets/issues/3735) * [Analyze `tf.data` performance with the TF Profiler](https://www.tensorflow.org/guide/data_performance_analysis) This performance guide should detail practical options for improving performance with `datasets`, and enumerate any common best practices. It should also show how to use tools like the PyTorch Profiler or the TF Profiler to identify any performance bottlenecks (example below). ![image](https://user-images.githubusercontent.com/3712347/156859152-a3cb9565-3ec6-4d39-8e77-56d0a75a4954.png) ## Related Issues * [wiki_dpr pre-processing performance #1670](https://github.com/huggingface/datasets/issues/1670) * [Adjusting chunk size for streaming datasets #3499](https://github.com/huggingface/datasets/issues/3499) * [how large datasets are handled under the hood #1004](https://github.com/huggingface/datasets/issues/1004) * [using map on loaded Tokenizer 10x - 100x slower than default Tokenizer? #1830](https://github.com/huggingface/datasets/issues/1830) * [Best way to batch a large dataset? #315](https://github.com/huggingface/datasets/issues/315) * [Saving processed dataset running infinitely #1911](https://github.com/huggingface/datasets/issues/1911)
60
[📄 Docs] Create a `datasets` performance guide. ## Brief Overview Downloading, saving, and preprocessing large datasets from the `datasets` library can often result in [performance bottlenecks](https://github.com/huggingface/datasets/issues/3735). These performance snags can be challenging to identify and to debug, especially for users who are less experienced with building deep learning experiments. ## Feature Request Could we create a performance guide for using `datasets`, similar to: * [Better performance with the `tf.data` API](https://github.com/huggingface/datasets/issues/3735) * [Analyze `tf.data` performance with the TF Profiler](https://www.tensorflow.org/guide/data_performance_analysis) This performance guide should detail practical options for improving performance with `datasets`, and enumerate any common best practices. It should also show how to use tools like the PyTorch Profiler or the TF Profiler to identify any performance bottlenecks (example below). ![image](https://user-images.githubusercontent.com/3712347/156859152-a3cb9565-3ec6-4d39-8e77-56d0a75a4954.png) ## Related Issues * [wiki_dpr pre-processing performance #1670](https://github.com/huggingface/datasets/issues/1670) * [Adjusting chunk size for streaming datasets #3499](https://github.com/huggingface/datasets/issues/3499) * [how large datasets are handled under the hood #1004](https://github.com/huggingface/datasets/issues/1004) * [using map on loaded Tokenizer 10x - 100x slower than default Tokenizer? #1830](https://github.com/huggingface/datasets/issues/1830) * [Best way to batch a large dataset? #315](https://github.com/huggingface/datasets/issues/315) * [Saving processed dataset running infinitely #1911](https://github.com/huggingface/datasets/issues/1911) Hi ! Yes this is definitely something we'll explore, since optimizing processing pipelines can be challenging and because performance is key here: we want anyone to be able to play with large-scale datasets more easily. I think we'll start by documenting the performance of the dataset transforms we provide, and then we can have some tools to help debugging/optimizing them
[ -0.3263997734, -0.067276217, -0.1491247565, 0.0796751156, 0.1978186816, 0.1243428662, -0.0817878321, 0.4515270591, -0.2909837365, 0.0455370173, -0.0428125598, 0.2855461538, -0.3281092048, 0.4099058807, 0.2774599791, -0.3230414093, -0.1052235588, 0.0541575961, -0.0467099287, 0.2728016675, 0.2644216716, -0.0850743726, 0.1813231111, 0.0402292572, -0.2391878963, -0.1211327389, 0.0761184096, -0.1559121609, -0.3433637619, -0.4508426785, 0.1139681637, 0.2355311364, 0.1917217523, 0.5568242669, -0.0001061001, 0.031297639, 0.0062972307, 0.0781592354, -0.0564724691, 0.0241218954, -0.3465357721, -0.4599179327, 0.1184705794, -0.2379988879, 0.0715492368, -0.208466351, -0.056389913, -0.1556214094, 0.1767452061, 0.4197972715, 0.2017509937, 0.501251936, -0.0323938169, 0.1390966177, -0.1044533774, 0.2189446986, -0.5867089033, -0.0648492202, 0.2524335086, 0.0401316956, -0.1872052103, 0.2084728479, -0.0654993504, -0.0117916809, 0.4738067389, -0.0849085525, -0.2327143699, -0.2614554465, -0.1477260292, 0.5364258885, 0.4791148603, -0.3459098339, -0.4647690356, -0.4730127454, -0.1995131075, -0.2476201653, -0.0866095945, -0.0763061866, -0.0808995441, 0.0736455992, -0.4500612915, -0.1940011829, -0.1187437475, -0.0027096539, 0.1636569798, -0.0273988806, -0.0348190479, -0.1289123595, 0.2690831125, 0.0132343508, -0.1243846044, -0.1610612869, 0.0885846093, -0.034505751, -0.6336913109, -0.4494910836, 0.3769185841, -0.0405874997, 0.4990197122, 0.1062201932, 0.2711894214, 0.1955433339, -0.1856006682, 0.0374258943, 0.1465313733, 0.1469932348, 0.0162655879, -0.0837500691, 0.2072177827, 0.0128923617, 0.0964670703, 0.1816276908, 0.2329196483, 0.0560590886, -0.0620326288, -0.1192814112, -0.2027623057, -0.1952691674, -0.1679732502, -0.0070617516, 0.0473810546, -0.329375416, 0.1967925578, 0.2415254265, -0.0808450952, -0.0381426178, -0.1095697656, -0.1094691008, -0.2331586927, -0.1299683303, -0.1584755927, 0.0585162602, -0.2665052414, 0.2813126743, 0.0878845528, -0.2203249037, 0.1554383934, -0.1856837273, 0.1880731881, 0.0675186068, 0.3004241884, 0.0011141138, -0.0532335155, 0.1553979218, -0.1961371452, -0.0043532252, -0.0468517914, 0.3219885826, -0.356361866, 0.0999303982, -0.1478640139, -0.545751214, 0.0889048576, 0.1789742708, -0.2666707635, -0.2046281397, -0.3942294121, 0.7601329684, -0.1813786328, 0.1888857782, 0.0428417996, 0.1493186653, -0.6066029668, -0.2440284789, 0.2899290323, 0.2103256136, -0.3450984955, -0.1088344753, -0.0102773234, -0.0206428748, -0.1500911862, 0.402077347, -0.2733125985, 0.312977463, -0.1208620593, 0.228860572, 0.4433622062, -0.1086372733, 0.0547267012, 0.3320768178, -0.1791610271, -0.0508075617, 0.1727006882, 0.1037737578, 0.1674324423, -0.2862800658, 0.0105297845, 0.0672566444, -0.0796886384, 0.0001808149, -0.0740414411, -0.4640647471, -0.0060774325, 0.0783305168, -0.0693697929, -0.1080638915, -0.1384074837, -0.0470115803, -0.0158423893, -0.1966395825, -0.1857056618, 0.385070771, 0.1510402709, 0.2176741064, 0.0210486054, -0.1705006808, -0.3443336487, 0.2474393249, 0.3754791915, 0.0141353309, 0.2750579417, -0.2102040648, 0.0766194984, -0.0887507349, 0.0701818243, 0.0209778771, 0.0969835967, -0.3917261362, 0.2942528725, 0.0527805611, -0.2536874712, 0.2526647449, -0.48357445, 0.0970925838, -0.2009816468, 0.111795634, 0.1265899688, 0.0206103548, 0.1676582694, 0.0972546339, -0.2307769209, 0.0939925313, -0.1601706743, 0.195558086, -0.0525111482, 0.1757805943, 0.0586971007, 0.9100502133, 0.2235708982, -0.0569515564, -0.0830822885, -0.0718039274, -0.1564469188, -0.042950999, -0.2149282247, 0.3367480934, -0.0723711625, 0.2215080857, 0.1544149965, -0.1974440366, -0.0061811646, 0.0835218802, -0.090636611, 0.1149456725, 0.4543448091, -0.059166722, 0.1857532412, 0.0404204614, -0.3067842126, 0.2421416938, 0.3511916995, -0.1023896784, -0.0220312346, 0.505648315, 0.1731330752, -0.0750633553, 0.0895356461, 0.1644131392, 0.3836786747, 0.2676310539, 0.0767657608, -0.1252447516, -0.0971910283, -0.0956018269, 0.2376919985, 0.2848191559, -0.1640802324, 0.0028896548, -0.1599066556, 0.0994385928, -0.3033535182, -0.4112362564, -0.106004104, 0.2437673211, -0.3391507268, -0.2697493732, 0.0259627216, -0.3236511946, 0.0707404464, 0.0086294571, -0.0569151714, -0.1723959744, 0.0235008802, 0.0125376172, 0.0534065515, 0.0767992586, -0.2117454559, 0.2614077628, -0.0640675873, -0.0514105596, -0.2297798544, -0.1596080065, -0.1065583229, 0.1232892871, 0.2051989138, 0.063815929, 0.4398846626, 0.0043705269, 0.3025689423, -0.3117903173, -0.5977795124, 0.0202930234, -0.2105545104, 0.2067115754, 0.0599434078, 0.2758260667, -0.2165827155, -0.1545364261, 0.0634708479, -0.1348528117, -0.0856625885, -0.1799233556, 0.103002049, -0.041864533, 0.0353493653, -0.3086977005, -0.0158612989, -0.4798064828, 0.2777673602, -0.1838226616, 0.1451109201, 0.1535090804, 0.1052517071, 0.443077445, -0.1762319058, 0.2009648979, -0.0091128005, -0.3386204541, 0.188780725, -0.1472556442, -0.2319750637, -0.0633143261, 0.1222567111, 0.040821597, 0.0920946375, -0.5262890458, -0.1136243865, -0.49088642, 0.1950220317, 0.0036787237, 0.1693668067, 0.1843556464, -0.0214977898, -0.071278967, 0.0014193318, -0.3739385009, -0.13970083, -0.1389690787, 0.0188623499, 0.047233969, 0.5734776258, 0.3551221192, 0.6103292704, 0.2854107022, -0.1770605892, 0.1909428239, 0.0406640731, 0.2482173294, 0.0028383639, -0.2358935773, 0.1446667612, -0.1959296167, 0.1882504076, 0.2255769223, 0.2334775776, 0.0320308357, -0.0901570469, 0.114304252, 0.0868047029, -0.1758802235, 0.1989401281, -0.1727520227, 0.3688085675, -0.1180021539, 0.0557056777, -0.2409535199, -0.1402310729, 0.2172724605, 0.3341640234, 0.2608107924, -0.0349038355, -0.3975584805, 0.0584293567, -0.7665649056, 0.0329426341, 0.0258037746, 0.1286604255, -0.3158968091, 0.2215983719, -0.0536547303, 0.1513264328, 0.4344957173, -0.1577406228, -0.2168475389, -0.0934147015, -0.2713425756, -0.1685383022, 0.2362948954, -0.0571354739, 0.1084824502, 0.1668100357, 0.2836964428, -0.3196153343, -0.3981747925, 0.1858492792, 0.0633650944, 0.08168751, -0.0741386712, 0.0071442155, -0.2938909531, 0.1568241268, 0.0421164036, 0.0742523819, -0.2612600327, 0.0953571871, -0.1141713485, 0.0827641264, 0.0516642593, 0.2740310431, -0.1655174494, 0.0522736199, 0.2831909657, 0.4402817786, 0.1243483797, -0.2956735194, 0.0412666425, 0.0435153805, -0.2365284413, -0.243865326, -0.0714320615, 0.2101288885, 0.1385373324, 0.1372987926, -0.0440471247, 0.3009705245, -0.2768232524, 0.2988300025, -0.3249208629, 0.2565743923, 0.3272574842, 0.155779928, -0.4196681082, -0.6115364432, 0.7559631467, 0.4524335861, 0.1457656771, 0.4619272351, 0.3167774677, -0.1879250705, 0.0902620926, 0.1072565839, 0.6965726614, -0.2630916834, 0.1346340775, 0.2176748663, -0.152162835, 0.6455492377, -0.4448188543, -0.266179502, 0.0527219512, -0.3291157782, -0.006475524, -0.2282572538, 0.0914335251, 0.1288202256, -0.229596287, 0.1939061284, 0.1349648088, -0.1177983582, 0.1755945981, 0.5448282957, 0.1122137457, -0.3320010304, -0.135879308, 0.2126970291, -0.1964511424, -0.0009569272, 0.0923202261, -0.0959732831, -0.0177653674, 0.1569265872, -0.4257289171, -0.5620253682, -0.1310916841, 0.209681347, -0.2342906594, -0.4055528939, 0.4837881327, 0.2786533237, 0.088439852, -0.0831559449, -0.3669203222, 0.1623728275, -0.3181137443, -0.0190081466, 0.2501879632, -0.2869674265, 0.1754329056, -0.0140183568, 0.1258661151, 0.0201704148, -0.0378655866, -0.1893991381, -0.2011550218, -0.1764567196, -0.0454244278, -0.2359697819, -0.2071188092, -0.022174798, -0.1911551356, 0.037295308, 0.1721887738, 0.3738800287, -0.0583099127, 0.4379396141, 0.0638146251, -0.0798072666, -0.1702060699, 0.1500635892, -0.0555701144, -0.0702611357, 0.0078309877, 0.2978148162, -0.2815305293, -0.1158050299, 0.2551414371, 0.2833437622, 0.0201259032, 0.0003827752, -0.0455017872, 0.1643081158, 0.0016015555, -0.0177086424, -0.0148742162, -0.1019266173, 0.0929699913, -0.000121623, -0.2928129733, 0.2482242733, -0.1934714019, 0.3476355076, -0.1835396886, -0.0501124598, 0.014918549, 0.3391470909, -0.3150189221, -0.1056748852, -0.0032505668, 0.0148035875, 0.36520046, 0.1382782906, 0.2777037919, -0.165356338, -0.0040097618, 0.1100304276, -0.268217057, -0.2431407273, -0.1224167347, 0.1003825814, -0.1045662165, -0.1199268922, 0.1362411529, 0.0747989193, -0.3503621519, -0.1042229161, 0.0688877925, 0.297152698, -0.1734260321, 0.0455310158, -0.0918148533, -0.2444330007, -0.0777737945, 0.0808281451, 0.1537601054, 0.3214564919, 0.2414746583, 0.2636275589, -0.0963918194, -0.1887571216, 0.0445766412, 0.1779625267, 0.2043708265, -0.1540431827, 0.0948481634, -0.0423426591, -0.0597548783, -0.0388605259, 0.3687959313, 0.2973077893, -0.129677549, 0.0424941964, 0.179713279, 0.1862885654, 0.1551193744, -0.2081887424, 0.2097042352, 0.0539043881, 0.3035127223, 0.0723459497, 0.2409961224, 0.5006548762, 0.1342462152, -0.0084213745, 0.2118449807, -0.0553728491, 0.1871682107, 0.1027468219, 0.1903113574, -0.1039228141, 0.269731909, 0.1439160556, 0.2426929474, 0.0647306144, 0.0801926702, 0.5881047249, 0.0585594699, 0.3788888454, 0.0069328113, -0.345937103, -0.0355610624, 0.1201340109, -0.317502141, -0.0228053555, -0.0129699362, 0.4428535104, -0.0223566182, -0.2406941801, 0.0293801427, 0.0209041163, -0.0006195551, -0.0427465662, 0.167486161, -0.074050203, -0.026085617, 0.0053380146, 0.0282030925, -0.2378995419, 0.1231660172, -0.017756246, 0.2131434232, -0.1067873389, -0.0361225419, 0.1138335019, 0.2551340461, 0.0460352153, 0.038050741, -0.2601968348, -0.1779878139, -0.2521893382, 0.4811787605, 0.2669992745, -0.149989143, 0.0119250799, 0.160270229, -0.1188869029, -0.0290038474, 0.2048967034, 0.277654767, -0.3282003999, -0.1863711625, 0.1419718862, 0.1191610247, -0.1976630241, -0.1329931617, -0.1867286712, -0.0040223692, -0.5799302459, 0.0634672642, 0.039406199, -0.2105916739, 0.0575510263, -0.1460209191, -0.2724711895, 0.0735547617, 0.7938803434, -0.2428747565, -0.18052347, -0.0761422589, 0.1122635305, -0.0401310436, 0.5394902825, 0.3269633055, 0.3836184442, -0.3709958196, -0.2016863674, -0.303971678, -0.3855135739, -0.0985159203, 0.0267813504, 0.3531937897, 0.0778206289, -0.1949793398, 0.4618412852, 0.1780473441, -0.1319315135, -0.0144137284, 0.0508528799, -0.3338011801, -0.0802827179, -0.3840508163, 0.1407691091, -0.0831653625, -0.0285342094, 0.1081855074, -0.0230087042, 0.0033339988, -0.3799420595, 0.2034355402, 0.2969147265, 0.2593715489, 0.3404971361, 0.0310729705, 0.4189486504, 0.1496943682, -0.1078746244, -0.0503532477, 0.0083603654, 0.0909270495, 0.1991798729, -0.0222658664, 0.2096443176, -0.3480031788, -0.3522108495, -0.190683648, 0.2745206356, 0.1251706332, -0.2809517682, -0.0554156937, 0.0447918698, 0.0986941606, 0.1735192537, 0.2164400816, 0.740216136, -0.1012765318, 0.2626567185, -0.2878421545, -0.2105941474, 0.2670093477, -0.4190958142, 0.0873470902, 0.1195643842, 0.0706947669, 0.2395303398, -0.1357627511, -0.683167696, -0.1463113576, 0.2170877457, 0.0077303373, -0.2992525995, 0.5346403122, 0.0849684551, 0.1201111227, -0.0306306481, 0.4891035855, -0.0231610909, -0.1790958494, 0.2182544619, -0.0723369792 ]
https://github.com/huggingface/datasets/issues/3828
The Pile's _FEATURE spec seems to be incorrect
Hi @dlwh, thanks for reporting. Please note, that the source data files for "all" config are different from the other configurations. The "all" config contains the official Pile data files, from https://mystic.the-eye.eu/public/AI/pile/ All data examples contain a "meta" dict with a single "pile_set_name" key: ```python In [1]: from datasets import load_dataset ds = load_dataset("the_pile", "all", split="train", streaming=True) item = next(iter(ds)) Downloading builder script: 9.09kB [00:00, 4.42MB/s] In [3]: item["meta"] Out[3]: {'pile_set_name': 'Pile-CC'} ``` On the other hand, all the other subset configs data files come from the Pile preliminary components directory: https://mystic.the-eye.eu/public/AI/pile_preliminary_components/ For theses components, the "meta" field may have different keys depending on the subset: "id", "language", "pmid",... Because of that, if we had kept the `dict` data format for the "meta" field, we would have an error when trying to concatenate different subsets, whose "meta" keys are not identical. In order to avoid that, the "meta" field is cast to `str` in all these cases, so that there is no incompatibility in their "meta" data type when concatenating. You can check, for example, that for "pubmed_central" the "meta" field is cast to `str`: ```python In [4]: from datasets import load_dataset ds = load_dataset("the_pile", "pubmed_central", split="train", streaming=True) item = next(iter(ds)) In [5]: item["meta"] Out[5]: "{'id': 'PMC6071596'}" ``` Feel free to reopen this issue if you have further questions.
## Describe the bug If you look at https://huggingface.co/datasets/the_pile/blob/main/the_pile.py: For "all" * the pile_set_name is never set for data * there's actually an id field inside of "meta" For subcorpora pubmed_central and hacker_news: * the meta is specified to be a string, but it's actually a dict with an id field inside. ## Steps to reproduce the bug ## Expected results Feature spec should match the data I'd think? ## Actual results Specify the actual results or traceback. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
219
The Pile's _FEATURE spec seems to be incorrect ## Describe the bug If you look at https://huggingface.co/datasets/the_pile/blob/main/the_pile.py: For "all" * the pile_set_name is never set for data * there's actually an id field inside of "meta" For subcorpora pubmed_central and hacker_news: * the meta is specified to be a string, but it's actually a dict with an id field inside. ## Steps to reproduce the bug ## Expected results Feature spec should match the data I'd think? ## Actual results Specify the actual results or traceback. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version: Hi @dlwh, thanks for reporting. Please note, that the source data files for "all" config are different from the other configurations. The "all" config contains the official Pile data files, from https://mystic.the-eye.eu/public/AI/pile/ All data examples contain a "meta" dict with a single "pile_set_name" key: ```python In [1]: from datasets import load_dataset ds = load_dataset("the_pile", "all", split="train", streaming=True) item = next(iter(ds)) Downloading builder script: 9.09kB [00:00, 4.42MB/s] In [3]: item["meta"] Out[3]: {'pile_set_name': 'Pile-CC'} ``` On the other hand, all the other subset configs data files come from the Pile preliminary components directory: https://mystic.the-eye.eu/public/AI/pile_preliminary_components/ For theses components, the "meta" field may have different keys depending on the subset: "id", "language", "pmid",... Because of that, if we had kept the `dict` data format for the "meta" field, we would have an error when trying to concatenate different subsets, whose "meta" keys are not identical. In order to avoid that, the "meta" field is cast to `str` in all these cases, so that there is no incompatibility in their "meta" data type when concatenating. You can check, for example, that for "pubmed_central" the "meta" field is cast to `str`: ```python In [4]: from datasets import load_dataset ds = load_dataset("the_pile", "pubmed_central", split="train", streaming=True) item = next(iter(ds)) In [5]: item["meta"] Out[5]: "{'id': 'PMC6071596'}" ``` Feel free to reopen this issue if you have further questions.
[ -0.0291287582, -0.0090103708, 0.0997361913, 0.1450235695, 0.3251174688, -0.0145726111, 0.5119669437, 0.2684321404, -0.2205349058, 0.1227269843, -0.1169431806, 0.3082396984, 0.2474182248, 0.3708834946, -0.0749322399, 0.1385888159, 0.2165843546, -0.1402181834, 0.1202760488, -0.1687898636, -0.0406837463, 0.105113253, -0.2738404274, -0.048575256, -0.1679657996, 0.2991246879, -0.2451974899, 0.0311371144, -0.1860475987, -0.302128613, 0.2103230953, 0.0843927562, -0.1898958832, 0.5995330215, -0.0001117417, 0.0303301234, 0.2264463305, -0.1954045296, -0.3208147883, -0.4287766218, -0.0424135141, -0.5505396724, 0.0012864692, -0.4069972634, 0.0392623693, -0.0926212743, 0.1107553393, -0.1663828045, -0.1735827625, 0.2162780613, 0.1885697097, 0.4782646894, 0.0988761559, -0.0958586559, 0.3971675634, 0.0425353535, -0.5402696133, 0.3837114275, 0.0925671682, 0.2168297619, 0.0143310828, 0.3321696222, 0.0152881891, 0.1324571371, 0.2208224237, 0.3705257773, 0.2862395048, -0.3443374336, -0.1506866962, 0.4699771702, 0.2301459908, -0.3511729836, -0.4661000073, -0.1572918892, -0.1161423028, -0.1404337734, 0.1263166368, 0.4039556086, -0.0097233225, 0.0942720771, 0.2184391618, 0.3921529651, 0.0956302658, 0.2332694083, -0.0177283399, 0.0733697265, -0.1990642846, 0.0699407458, -0.1886277348, -0.1055477187, -0.0844179988, 0.0105934655, -0.0282077678, -0.0955799744, -0.4643937349, -0.1695884317, 0.1245592907, 0.0002185157, 0.2077026367, 0.162711814, 0.2819618583, 0.1857860088, 0.1638553441, 0.0894468799, 0.5152339935, 0.0703875795, 0.0403907448, -0.158030808, 0.3049032986, 0.351526171, 0.0278042257, -0.0296877585, 0.1397057325, 0.1050764397, 0.0860835835, -0.2760535479, 0.534230113, 0.0454346277, -0.1121944413, 0.0334009156, 0.2784461081, -0.126604557, -0.0984859839, 0.3492753506, -0.2170656621, 0.2983132899, -0.3323326111, 0.3300400972, -0.0430385657, -0.1086183339, -0.3084418178, -0.0200205278, -0.2929322422, 0.0555386357, 0.213595584, -0.3843566775, 0.4038350582, 0.0625977591, 0.3123230636, 0.0990023911, -0.1365769058, -0.2498093545, 0.2847175598, 0.163582176, 0.0635677651, 0.0952840447, 0.2144211382, 0.2274410874, -0.1849106848, -0.0711427703, -0.2132182717, -0.1963569671, -0.3548822403, 0.1677917689, -0.3532656133, 0.0628078207, -0.2718471587, 0.2239508778, 0.1661539376, 0.0975102335, 0.0536101125, -0.1772306561, 0.085431546, -0.3035121858, 0.2661134601, 0.285061568, -0.1062529683, -0.1644150913, -0.2512858212, 0.1637925357, 0.1891175807, 0.0707561225, 0.0475105681, -0.0450148135, -0.1871286631, 0.1176839098, 0.6021225452, -0.0311866775, -0.413892895, 0.0755235627, 0.0501255281, -0.0500162914, 0.153234601, 0.1134752631, 0.0011688763, -0.1751265377, -0.063821502, 0.1818762273, -0.0507824048, 0.0276502874, -0.2598005235, -0.4174285531, -0.0578066446, 0.0162297972, -0.05063425, 0.0885836482, 0.1527718306, -0.2162069976, 0.2929187119, 0.2386126667, -0.0100936554, -0.2951330245, 0.337913841, 0.0482273027, 0.4168722928, -0.2778223455, -0.4659337699, 0.2903229892, -0.0871137008, 0.3329510689, -0.1442107409, -0.2281320691, -0.3172799051, 0.0180024356, -0.1170704141, -0.1281707585, 0.1409192979, 0.3256779015, -0.2292250693, -0.2725644708, -0.4675865769, -0.0796726048, -0.1614770293, 0.100015752, -0.4110551775, 0.4026990533, -0.384049207, -0.2857259214, -0.1490974426, 0.0571563616, 0.1006356403, -0.0479427688, 0.0623501688, 0.4887063801, -0.2160990834, -0.0291789565, 0.1092041284, 0.2147594243, 0.1285683066, -0.2995302677, 0.315369606, 0.0991043448, 0.1577847302, -0.1199917123, -0.2572142184, 0.1809549034, 0.2282978147, 0.2681285441, 0.178642869, -0.0016709619, 0.2078127712, 0.0055145854, -0.0954968259, -0.3759803474, -0.1951085329, 0.0975382105, -0.2393023372, 0.0433828011, -0.1811477095, 0.1885976195, 0.6393438578, 0.0694843084, 0.2402864993, 0.040696349, -0.0371097475, -0.3657982349, -0.2272658199, -0.2080893815, 0.3652798831, 0.1584490985, 0.0289779045, 0.0032601557, 0.1593935788, -0.1556952298, 0.0938359797, 0.2160115689, -0.2974951267, 0.0824902877, 0.3899600208, 0.0721475706, -0.1692439616, -0.1407489479, 0.2118918747, 0.0093557015, -0.3722252846, -0.1019101515, -0.0664013848, 0.0301328469, -0.039466057, 0.0289035682, -0.067407079, -0.3687915206, -0.244229719, -0.0032643608, -0.1473223716, 0.1637413353, -0.3513911366, 0.0991054922, 0.0747358128, -0.0357748903, -0.2509860098, 0.0143783027, -0.2329130322, 0.0177970789, -0.1093473285, 0.1887099594, 0.0687683821, -0.2111525238, -0.3601159751, -0.2628219128, -0.4499484003, 0.3538541794, -0.204238534, 0.4392033815, 0.2951968908, 0.237173304, 0.0141072087, -0.202388823, 0.4782606363, -0.2401257604, -0.1555173397, 0.1501454711, 0.0889504328, -0.1404493302, -0.0871046558, -0.5808002949, -0.2035024911, -0.3904547393, 0.1508889645, -0.0164652336, 0.1111927554, 0.2342038453, 0.0596038736, -0.0388656035, 0.0556621291, 0.0850800648, -0.242603302, -0.333643347, 0.5162988901, -0.0555502959, -0.3999705315, -0.0267483294, -0.1135391966, -0.2588894665, -0.009229647, -0.2930511534, -0.1904014796, -0.3699252307, 0.1749026328, 0.3107158542, 0.2696797252, 0.2099151164, -0.1605229229, -0.0834764019, -0.134098649, -0.4975980222, 0.244267866, 0.5948391557, 0.1165995672, 0.0531898774, 0.1755330414, 0.1662946343, 0.5355655551, -0.0507580005, -0.054478161, 0.4430641234, -0.1261192411, 0.4311722815, -0.1140504703, -0.3840387762, 0.3135921359, -0.0002817005, 0.0264411401, 0.2353970408, -0.002765889, -0.07550136, -0.1636521369, 0.0940995291, 0.0394563302, -0.2431107461, -0.0566368774, 0.092562668, -0.0591130517, 0.0820425898, 0.072961472, -0.0722479373, -0.2118161619, 0.1772482246, 0.3357821405, -0.262260884, 0.0249909032, -0.3793745637, 0.2024398893, -0.2420312911, 0.1630574912, -0.0314899236, 0.0833776966, 0.1669737399, -0.4283899665, -0.0482893549, 0.1205425188, 0.2786277831, -0.1408642232, 0.0233557913, 0.3170280457, 0.1939083487, -0.2341787219, -0.438462168, -0.2607819736, -0.09409374, 0.670144558, 0.5184796453, -0.3138003945, -0.1077233702, 0.4866923094, -0.0134403966, 0.0314907543, -0.1984863877, -0.3600539863, -0.2243693322, -0.1256851852, -0.1091784984, 0.163904503, 0.004013774, 0.0324690901, -0.2648366988, 0.0287666563, -0.1220719516, 0.0924093872, 0.2892343104, 0.2243620902, 0.204388544, 0.2774738371, 0.027104212, 0.3687570989, 0.230318889, 0.5356805325, -0.0338260792, -0.2617738247, 0.2631409466, -0.4308783412, 0.1013901532, 0.2391331643, -0.1339850128, -0.0386926048, -0.1900963187, 0.244936794, -0.0721128657, 0.2804843783, 0.4475503266, -0.1945853084, -0.1286409944, -0.4716854692, 0.5783671737, -0.2772528231, 0.003327904, 0.1808753312, 0.1469894648, -0.0275315233, 0.4753021598, -0.0764512122, 0.9810550213, 0.2454363257, -0.0115601746, 0.1487165987, 0.2113637626, 0.2609815896, -0.1338390112, -0.0120179867, -0.3309966326, -0.4386113584, 0.0410346501, -0.1935068518, 0.022015484, 0.2874639928, -0.280825913, 0.4709160328, -0.3779143095, 0.2869621813, -0.0729663372, 0.1487796009, -0.1979219019, -0.2269128859, -0.1114894673, 0.1037997827, 0.1254247725, 0.2061472684, 0.11227981, -0.0766253546, -0.1191463247, 0.1096657738, -0.3605322242, 0.1840015203, 0.0309922751, -0.2011462152, 0.1699909717, -0.0831176564, 0.0746066421, 0.0944580212, 0.4040804207, 0.0269741155, 0.0039910665, 0.1686284244, 0.2111412883, 0.1236306727, 0.4679034054, -0.0326147936, 0.3688678145, -0.0776029751, -0.2185034305, -0.1307371408, -0.0162824914, 0.0946354121, 0.0354714431, -0.0468679965, 0.2682518661, -0.4395723939, 0.0807621405, -0.1343880594, 0.0910658315, -0.3810276687, 0.1294395477, 0.2179949582, -0.0665323958, 0.201566413, -0.1264272183, -0.2235929519, -0.2619526982, 0.0639899001, 0.1396130025, -0.1549814492, 0.1910720021, 0.0654311031, -0.0711076483, -0.1790455133, -0.1248527989, -0.0509513728, -0.2781631947, 0.2084004283, -0.1012296081, -0.3026395142, -0.0325079523, 0.5742726326, 0.165932864, 0.1529958844, -0.1691793799, -0.3460102081, -0.0966795236, -0.086285755, 0.0142042292, 0.088621296, -0.1341684312, -0.0626558661, 0.283059746, -0.0345198363, -0.3541983366, -0.087734282, -0.171680823, 0.1657724231, 0.00241122, -0.0260955542, 0.3601745367, -0.1254217774, 0.1507727653, -0.190816924, -0.1474720389, -0.1906411052, -0.2597092688, 0.1233727559, 0.0133660082, 0.0373837985, -0.0854435638, -0.0939040557, -0.3410867453, -0.469370991, 0.1400943547, 0.1513405442, 0.112663798, 0.0973968506, 0.1225971431, 0.0692350194, 0.1240170673, -0.018459117, 0.1748269498, 0.0573985241, 0.2037384659, 0.1292687804, -0.3463356495, 0.0203663334, 0.1178857237, 0.0338686742, -0.098872222, 0.3792506754, 0.3479803503, -0.0880734995, -0.3615898192, 0.2004610449, 0.2809891403, 0.5254900455, -0.1169177666, -0.127819553, 0.0701188892, 0.2437188625, -0.4962288439, -0.0307836309, 0.2719279826, 0.1042119041, 0.2141991407, 0.1854763627, 0.2274234295, -0.0396566615, -0.2348632365, 0.1698898524, 0.2800545096, -0.1111481562, 0.2195038348, 0.1474367678, 0.1248267218, 0.2474218607, 0.5613325238, 0.002672636, 0.3098240793, 0.1748828143, 0.1753716171, -0.0295517612, 0.3172982633, 0.1257305294, 0.2021354288, -0.1404764354, 0.2493452132, 0.4766398072, -0.0219834428, 0.1118167564, -0.0317763239, 0.1202970445, 0.0137021383, -0.0194333605, -0.2735220492, -0.2898277938, 0.0390785076, -0.0506251268, 0.2186006457, -0.1318232864, -0.1720639318, -0.2293463349, 0.043868918, -0.1611652821, 0.1388998628, -0.1050478444, -0.1001740918, -0.4088263512, 0.0551498495, 0.1690633148, 0.2856796682, -0.3281772435, 0.1339650154, 0.0733117387, -0.3250156641, -0.0062621259, 0.3845962882, 0.3033682108, 0.3037433624, 0.3479709625, -0.0064282133, 0.2640427351, -0.2573382556, -0.2134606987, -0.0736980662, -0.108367078, 0.2181087285, 0.2418715954, 0.1271538138, -0.2492144257, -0.2954617739, -0.0353459641, 0.347632885, -0.3469287753, 0.6806968451, -0.1771022975, -0.1037369817, 0.0255794227, -0.1287659407, -0.4823792875, -0.4015613794, 0.5172954202, 0.0955531448, 0.1431629956, -0.0748794824, 0.1056312621, 0.02617977, 0.2375852317, 0.3514145017, -0.40256989, -0.0010590305, 0.0661922842, -0.6135246158, 0.2014503479, 0.2804806232, 0.0068595791, 0.2689407468, 0.6454809904, 0.1882423908, 0.008137756, 0.0683538616, -0.094454959, 0.0699003115, 0.2847633064, -0.3343136311, -0.2335765362, -0.5877875686, 0.2099293619, 0.1035762876, -0.0854815543, 0.0789655223, -0.1892639697, -0.0279670432, -0.0712843239, -0.4328725934, 0.3585278094, -0.5295684934, 0.4505727291, -0.2208236158, 0.0231835432, 0.0026245473, -0.0096074659, -0.3402826786, -0.1273676753, -0.3171199262, 0.1332512498, -0.1570033133, 0.2367822528, -0.020907294, 0.4191598296, -0.2792061567, 0.2280880362, 0.1633585244, -0.385198772, -0.0020052306, 0.220111832, 0.1361264586, -0.0420416109, -0.0460171998, -0.0599383079, -0.0760499761, -0.0646195337, -0.1620265841, -0.5269706845, 0.4588068128, -0.2822158635, -0.3082824051, -0.5190446377, 0.349031955, -0.0341827795, 0.2541344166, -0.6219788194, 0.1623711884, 0.3509637713, 0.0195023455, -0.3037330508, -0.0992800891, -0.3208308518, 0.1359657943, -0.1864008605, 0.0408644974, 0.1398793906, -0.3239902556, -0.1722641587, -0.0728172585 ]
https://github.com/huggingface/datasets/issues/3823
500 internal server error when trying to open a dataset composed of Zarr stores
Hi @jacobbieker, thanks for reporting! I have transferred this issue to our Hub team and they are investigating it. I keep you informed.
## Describe the bug The dataset [openclimatefix/mrms](https://huggingface.co/datasets/openclimatefix/mrms) gives a 500 server error when trying to open it on the website, or through code. The dataset doesn't have a loading script yet, and I did push two [xarray](https://docs.xarray.dev/en/stable/) Zarr stores of data there recentlyish. The Zarr stores are composed of lots of small files, which I am guessing is probably the problem, as we have another [OCF dataset](https://huggingface.co/datasets/openclimatefix/eumetsat_uk_hrv) using xarray and Zarr, but with the Zarr stored on GCP public datasets instead of directly in HF datasets, and that one opens fine. In general, we were hoping to use HF datasets to release some more public geospatial datasets as benchmarks, which are commonly stored as Zarr stores as they can be compressed well and deal with the multi-dimensional data and coordinates fairly easily compared to other formats, but with this error, I'm assuming we should try a different format? For context, we are trying to have complete public model+data reimplementations of some SOTA weather and solar nowcasting models, like [MetNet, MetNet-2,](https://github.com/openclimatefix/metnet) [DGMR](https://github.com/openclimatefix/skillful_nowcasting), and [others](https://github.com/openclimatefix/graph_weather), which all have large, complex datasets. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("openclimatefix/mrms") ``` ## Expected results The dataset should be downloaded or open up ## Actual results A 500 internal server error ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.15.25-1-MANJARO-x86_64-with-glibc2.35 - Python version: 3.9.10 - PyArrow version: 7.0.0
23
500 internal server error when trying to open a dataset composed of Zarr stores ## Describe the bug The dataset [openclimatefix/mrms](https://huggingface.co/datasets/openclimatefix/mrms) gives a 500 server error when trying to open it on the website, or through code. The dataset doesn't have a loading script yet, and I did push two [xarray](https://docs.xarray.dev/en/stable/) Zarr stores of data there recentlyish. The Zarr stores are composed of lots of small files, which I am guessing is probably the problem, as we have another [OCF dataset](https://huggingface.co/datasets/openclimatefix/eumetsat_uk_hrv) using xarray and Zarr, but with the Zarr stored on GCP public datasets instead of directly in HF datasets, and that one opens fine. In general, we were hoping to use HF datasets to release some more public geospatial datasets as benchmarks, which are commonly stored as Zarr stores as they can be compressed well and deal with the multi-dimensional data and coordinates fairly easily compared to other formats, but with this error, I'm assuming we should try a different format? For context, we are trying to have complete public model+data reimplementations of some SOTA weather and solar nowcasting models, like [MetNet, MetNet-2,](https://github.com/openclimatefix/metnet) [DGMR](https://github.com/openclimatefix/skillful_nowcasting), and [others](https://github.com/openclimatefix/graph_weather), which all have large, complex datasets. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("openclimatefix/mrms") ``` ## Expected results The dataset should be downloaded or open up ## Actual results A 500 internal server error ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.15.25-1-MANJARO-x86_64-with-glibc2.35 - Python version: 3.9.10 - PyArrow version: 7.0.0 Hi @jacobbieker, thanks for reporting! I have transferred this issue to our Hub team and they are investigating it. I keep you informed.
[ -0.3984364271, 0.1099737883, 0.0756590962, 0.2678704262, 0.3084725738, -0.0378655791, 0.3065187633, 0.1853011996, 0.1879682988, 0.1837238818, -0.3976977468, 0.252807498, 0.0605284162, 0.3931142986, -0.1333766282, 0.1691716313, -0.0300634038, 0.0935496241, -0.1518300325, 0.0744264349, -0.298404038, -0.0941733345, -0.0876865014, 0.1554762572, -0.1840731502, -0.1944513172, 0.1473210752, 0.4725469053, -0.3037491739, -0.3931906521, -0.0050850953, -0.1785397232, 0.5827431083, 0.3816311359, -0.0001187077, 0.2011726201, 0.3711711168, -0.0413791463, -0.2092221081, -0.155502677, -0.241422981, -0.2809562981, -0.0461832099, 0.1089153066, 0.3819030225, -0.2584907413, 0.0185770001, -0.4012303352, 0.3119852543, 0.3165648878, 0.0565305911, 0.0047619585, -0.0007187448, -0.2311093509, 0.357283175, -0.0311906766, -0.1348468661, -0.0575642362, 0.0255002603, 0.1946509629, -0.2854173183, 0.2130113989, -0.2188450098, 0.0953580961, 0.2666233778, -0.0507088751, -0.4268052876, -0.0319819674, 0.1751130074, 0.3958953321, 0.9463436007, -0.10778936, -0.3681567013, -0.0369999819, -0.1416633725, -0.3509469032, 0.2388868928, 0.6036017537, 0.1060879007, 0.1252226979, -0.3666580915, 0.036646273, -0.2769366801, 0.2287322283, -0.2805306017, 0.4499383271, -0.0520050935, 0.0792874396, 0.3091820776, -0.1299467534, 0.68266958, -0.1095184758, -0.0622526519, -0.0981559977, -0.4054395258, 0.213105157, -0.0509692021, -0.1125348657, 0.4870853126, 0.3105383813, -0.0315176137, 0.1096203998, -0.168297559, -0.0865037367, 0.2324779183, 0.3147867322, -0.3461239934, 0.1032886729, 0.1426676959, 0.1056239679, -0.2557893097, -0.1429653913, -0.0894411057, -0.0408837907, -0.2812504768, -0.1094471887, 0.3046712577, -0.329342097, -0.0518087894, 0.1893704832, -0.7700586915, -0.169846043, -0.0743685588, 0.3433125317, 0.0922392309, 0.239371255, -0.1660359949, 0.1535543501, -0.0043019736, -0.2439788729, 0.0406888723, -0.1460739076, -0.2566799223, 0.2699207366, -0.1131685302, -0.1292408407, -0.0489293858, 0.0598609485, 0.4044991732, -0.1443607509, 0.4734456539, -0.0547607504, 0.1505471021, 0.4587120414, 0.2154916376, 0.1447969675, 0.112520963, 0.1140172035, 0.1160088331, 0.0641443357, -0.5008353591, -0.6754110456, -0.2095431983, 0.0050729574, -0.0345576666, -0.0692091361, 0.2799400091, -0.3113850355, -0.1680424064, -0.4405532479, -0.1308545023, 0.0747524425, -0.1943157613, -0.0809453949, -0.0466812067, 0.4341386557, 0.0101579847, 0.465501219, -0.3387540281, 0.3258253038, 0.2160001397, 0.3854429126, -0.4366688728, 0.1190591156, -0.2459864318, -0.169996053, -0.0610178038, -0.3542782366, -0.4915453196, 0.3505572677, 0.0113619585, -0.1363785565, 0.0153880212, -0.1025777012, 0.1342599541, 0.1121682897, 0.2090391517, -0.0106123639, -0.1441092491, 0.1603747159, -0.3339030445, -0.3214693964, -0.1609582305, 0.2681576014, 0.1380610019, 0.0132280439, 0.2260376811, -0.0840099528, 0.1535698771, -0.1950402111, -0.3086580038, 0.1893526018, 0.0060898359, -0.0449679978, 0.012065812, 0.2088164836, -0.2857758105, 0.0931548327, -0.4490286708, 0.2647959888, 0.2011951506, 0.1252957731, -0.3098516762, 0.1922798306, -0.050806094, -0.0774892643, -0.0087119164, 0.2236855775, -0.2901361287, -0.1002730653, -0.0999598429, 0.4725527465, 0.2169277668, 0.0113420459, -0.2596186399, 0.2975617647, -0.0867863446, 0.1032014713, 0.1341406703, -0.066784367, 0.1808623374, -0.0030177692, -0.4009098411, 0.2010197937, 0.1720316857, -0.000875308, 0.3186069727, 0.3717554212, 0.1363968402, -0.1478191018, 0.1456035823, 0.1837509722, 0.0407227725, 0.2259514928, -0.1382211596, 0.2717611194, -0.1824481487, 0.1195556149, -0.2139184177, 0.3813347518, 0.1200455204, -0.0451890603, -0.1890977174, -0.1203496978, 0.3008342981, 0.1318986863, 0.4435285032, 0.1602232456, -0.2849338055, -0.1777033806, -0.0373542309, -0.0678613335, 0.0508500338, 0.0876591578, -0.2496500909, -0.0065744109, 0.2016919702, 0.4746958017, 0.3439954817, 0.1430421323, -0.5446860194, 0.1564784944, -0.2423100919, -0.0653164238, 0.0419887565, 0.4042564332, 0.799530983, 0.3407512903, 0.2375747114, 0.1434384584, -0.1769741774, -0.5317545533, -0.0321369246, 0.1390383244, -0.3055349588, 0.1423567384, -0.165213868, -0.0799649879, -0.0950533524, 0.2459660918, -0.3469237983, -0.3239183426, -0.2535284162, -0.0951099768, -0.3008132875, 0.0498623326, -0.2183541059, 0.1295085698, -0.1331196725, 0.162942782, 0.0998254418, -0.2597860992, -0.0271435995, -0.1238229349, 0.4707910419, -0.4197958112, 0.0541696101, -0.0264256597, 0.3818325102, -0.4889295101, -0.035155233, 0.3380056322, 0.2338467985, 0.0094702728, 0.0229984634, 0.1243387237, -0.2394215167, 0.139359042, 0.1937303692, 0.0927355066, 0.1157071069, 0.088827908, -0.2749527991, 0.0302495174, 0.2273087502, -0.1381049603, -0.2600734234, -0.5794453025, -0.2574005425, -0.1094790623, 0.0124930898, 0.3392299414, 0.0574956052, 0.0196224526, -0.3005957603, -0.3893892169, -0.1530476213, -0.3725295067, 0.3347473741, -0.2403355837, -0.3761213124, -0.0669842437, -0.0053697522, -0.1082745492, 0.325297147, -0.258626014, 0.1385421157, -0.1027743667, -0.3008290827, -0.3487481773, -0.2146426737, 0.3086973131, -0.0066606603, 0.0235156789, -0.1421518773, -0.1536326855, -0.032646317, 0.1009543762, 0.0798701346, -0.2318490893, 0.1732762456, -0.013606675, 0.489948988, 0.0183370467, 0.041012425, 0.3530102074, -0.0754280239, 0.2036314756, -0.0883294269, -0.0987281278, -0.081076175, -0.2365387678, -0.4626399279, 0.261118114, 0.0163497701, -0.2330008596, -0.2622843981, -0.0103610437, -0.1329097003, -0.1302018166, 0.2175570726, -0.0234430153, 0.2797940969, 0.4184543788, 0.1260451674, -0.1676569134, -0.2894488275, -0.0402169004, -0.1784400791, 0.1376597285, 0.0850660428, -0.4755240381, -0.1418833435, 0.0153503949, 0.5629484057, 0.2790478766, 0.266448915, 0.0562909469, 0.1216609105, 0.0124234483, -0.0142720789, 0.2789755166, -0.3323042691, -0.2947866023, 0.3065204024, 0.0500750206, -0.3117166162, -0.2010315508, -0.1129828095, 0.1508456767, -0.3056462407, 0.2859794796, 0.0516498424, -0.1508154422, -0.0035470256, 0.2105450481, 0.0045501362, -0.1460813135, -0.2058088034, -0.2920076251, -0.3549547791, -0.2170702666, -0.2375379503, 0.1729534268, 0.0299738813, 0.0783418566, -0.1048291251, 0.1445637345, 0.1581829339, -0.0865746215, 0.6396425962, 0.1419457942, 0.0837986469, 0.1421864629, 0.4292030632, 0.2492868006, 0.5170938969, 0.1743270606, -0.0605393127, 0.2262769341, -0.1207122058, -0.0648655146, 0.2901926041, 0.0866376534, -0.5511313677, 0.1101887301, 0.1306858212, 0.0238755774, 0.1194942966, 0.0031261081, -0.1218700036, -0.518555522, -0.0157196783, 0.5977814198, 0.1177162006, -0.1492429972, 0.4217753708, 0.0484671667, 0.1130754873, 0.4315870106, 0.3920227885, 0.8132181168, -0.3727678657, 0.309987694, 0.3599860966, -0.1006113142, 0.3033598959, -0.5267519951, 0.2220107019, -0.4671823382, -0.3839354217, -0.1527762711, -0.3235842586, 0.0602616854, 0.108881481, 0.0987464041, -0.0321684033, 0.0409011692, 0.3075298965, 0.29575032, 0.2937303483, -0.1966475993, -0.3030505478, -0.3169522583, 0.0018365534, -0.157107383, 0.0116637731, -0.1933354586, -0.2457238734, -0.3024581671, 0.1231676042, -0.1837744117, 0.1953161806, -0.2293215543, 0.2378341705, 0.0539734885, -0.0059991465, -0.0230477918, 0.3239497244, 0.0372445658, -0.1280936003, -0.3260896206, 0.1920062155, -0.1183481514, -0.1236851811, 0.1163537428, -0.0324891694, 0.361585021, -0.107514143, 0.0253839158, 0.1774843931, -0.0864026472, -0.0424724557, -0.3627002239, 0.1979419291, 0.0859792084, -0.4183753729, -0.1271253377, -0.1472034305, 0.0630406663, 0.0215347707, -0.0189498663, 0.0746409148, 0.3671872616, 0.1284414083, 0.1852453351, -0.5114939213, -0.0415339507, 0.1710737795, 0.0229336377, 0.2699216306, 0.0829544887, 0.1748909652, 0.0597574711, -0.0076104957, 0.621000886, -0.031495925, -0.5102538466, 0.1400609463, -0.3123990595, -0.152668044, -0.1207193062, 0.2815561295, 0.2005137652, -0.2985934615, 0.2338714302, -0.4860272408, -0.1580059826, 0.4720728397, -0.1265212297, -0.0300581548, 0.1656559855, 0.1540387571, -0.0821904019, -0.4261887968, -0.126955241, -0.0355421863, -0.073641561, -0.1407363117, -0.15012604, -0.1797098666, 0.3474860191, -0.0327320173, -0.0962145925, 0.1989418119, -0.3620199859, -0.0256790966, -0.0408891663, 0.2469365746, 0.1083300933, -0.3801206052, 0.1773704886, -0.2720494568, -0.2283119261, -0.1331447363, -0.0832139403, 0.1348802, -0.0293509495, -0.3988728523, -0.3249543905, -0.1711190045, -0.5501369238, 0.2114420086, 0.2953191102, 0.2235857099, 0.052156847, 0.2150833458, 0.0871220753, -0.1603892446, -0.4201211929, 0.0488331616, 0.1763528436, 0.1018226743, 0.5127035975, -0.527068615, 0.1742648184, 0.4486143887, 0.3451080322, 0.0336033329, -0.2696173191, -0.0849368647, -0.1800715923, 0.0095857773, -0.1603617966, -0.110388644, 0.0432873294, 0.0793397725, -0.1819105297, 0.0932891518, 0.4428078532, -0.1137863323, -0.2394121438, 0.0782992318, 0.4777612984, 0.0938749388, 0.1749623418, 0.272967279, -0.1434314996, 0.1530943662, -0.0153257018, 0.0305593237, 0.2085233778, 0.5171519518, 0.1548725814, 0.23313649, 0.1091671735, 0.1705237478, -0.043944601, -0.6614460349, 0.2371499091, 0.4233318865, 0.1951131225, -0.0223741829, -0.1165511385, 0.0163388439, 0.0787447244, -0.0622038208, -0.2638103068, 0.1335688084, 0.1478733718, 0.0588517226, -0.0143173067, -0.1976594776, 0.0420002565, 0.3851833344, -0.0647559389, 0.2431203276, 0.1213988066, 0.2162996829, 0.0343878381, -0.1891795099, 0.29764691, 0.4485317767, 0.03121778, -0.3981818557, 0.1707991213, 0.1389469802, -0.2967087626, 0.1859606504, 0.0313350409, 0.5322250128, 0.1447331905, -0.305431813, 0.0846366659, -0.2328578979, 0.1680818051, 0.2225365192, -0.1559191048, 0.2153177559, 0.0652341396, 0.5209812522, -0.0413669683, -0.0336656496, 0.033173725, -0.1468723565, 0.3198465705, 0.0334146619, -0.1648712605, 0.1090423539, -0.0322910026, 0.1054921672, 0.0712449178, -0.1164997295, 0.105309397, 0.2834140658, 0.0281254649, 0.056233678, -0.0553975068, -0.0186001621, -0.0595594607, 0.3683056533, 0.1419217288, 0.3338602781, -0.1206214204, -0.1345631927, -0.5409656763, 0.292311281, -0.2239699513, 0.0809733644, 0.2422300577, -0.0902830884, 0.3014988899, 0.232818976, 0.2796936333, 0.2568820715, -0.0441855453, 0.0666969195, -0.2333853543, -0.0496067628, -0.0624470785, 0.0815428421, -0.1773659438, -0.284425199, 0.2202054262, -0.2628389895, 0.0084859114, -0.0301760901, -0.1314434707, -0.2066946924, -0.3477855325, 0.2716788948, 0.0815996677, 0.3368171155, 0.0401128381, -0.1988704801, -0.316367954, -0.2064466625, 0.0882844478, -0.0846299082, 0.3121272027, 0.4762713611, -0.1441267431, 0.324695766, -0.3888739049, 0.2804833651, 0.0048888018, 0.3377467692, -0.2858344913, 0.1942296624, -0.2582117617, -0.0169331226, 0.2614155412, 0.3332202435, 0.1697106957, 0.1679909974, -0.0677419901, -0.3816129267, 0.5351587534, -0.1083742678, -0.0318189152, 0.2700533867, 0.093596518, 0.0316486396, -0.0005789706, -0.2213091105, 0.1424933076, 0.0519432798, 0.0977687463, -0.1560103297, -0.2733042836, 0.2976016104, -0.2585594058, -0.0808835924, 0.3145340383, 0.0625649914, -0.3507772088, -0.0571558513, 0.3165157735 ]
https://github.com/huggingface/datasets/issues/3823
500 internal server error when trying to open a dataset composed of Zarr stores
Hi @jacobbieker, we are investigating this issue on our side and we'll see if we can fix it, but please note that your repo is considered problematic for git. Here are the results of running https://github.com/github/git-sizer on it: ``` Processing blobs: 147448 Processing trees: 27 Processing commits: 4 Matching commits to trees: 4 Processing annotated tags: 0 Processing references: 3 | Name | Value | Level of concern | | ---------------------------- | --------- | ------------------------------ | | Biggest objects | | | | * Trees | | | | * Maximum entries [1] | 167 k | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | | | | | | Biggest checkouts | | | | * Number of files [2] | 189 k | *** | [1] aa057d2667c34c70c6146efc631f5c9917ff326e (refs/heads/main:2016.zarr/unknown) [2] 6897b7bf6440fdd16b2c39d08085a669e7eaa59d (refs/heads/main^{tree}) ``` You can check https://github.com/github/git-sizer for more information on how to avoid such pathological structures.
## Describe the bug The dataset [openclimatefix/mrms](https://huggingface.co/datasets/openclimatefix/mrms) gives a 500 server error when trying to open it on the website, or through code. The dataset doesn't have a loading script yet, and I did push two [xarray](https://docs.xarray.dev/en/stable/) Zarr stores of data there recentlyish. The Zarr stores are composed of lots of small files, which I am guessing is probably the problem, as we have another [OCF dataset](https://huggingface.co/datasets/openclimatefix/eumetsat_uk_hrv) using xarray and Zarr, but with the Zarr stored on GCP public datasets instead of directly in HF datasets, and that one opens fine. In general, we were hoping to use HF datasets to release some more public geospatial datasets as benchmarks, which are commonly stored as Zarr stores as they can be compressed well and deal with the multi-dimensional data and coordinates fairly easily compared to other formats, but with this error, I'm assuming we should try a different format? For context, we are trying to have complete public model+data reimplementations of some SOTA weather and solar nowcasting models, like [MetNet, MetNet-2,](https://github.com/openclimatefix/metnet) [DGMR](https://github.com/openclimatefix/skillful_nowcasting), and [others](https://github.com/openclimatefix/graph_weather), which all have large, complex datasets. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("openclimatefix/mrms") ``` ## Expected results The dataset should be downloaded or open up ## Actual results A 500 internal server error ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.15.25-1-MANJARO-x86_64-with-glibc2.35 - Python version: 3.9.10 - PyArrow version: 7.0.0
142
500 internal server error when trying to open a dataset composed of Zarr stores ## Describe the bug The dataset [openclimatefix/mrms](https://huggingface.co/datasets/openclimatefix/mrms) gives a 500 server error when trying to open it on the website, or through code. The dataset doesn't have a loading script yet, and I did push two [xarray](https://docs.xarray.dev/en/stable/) Zarr stores of data there recentlyish. The Zarr stores are composed of lots of small files, which I am guessing is probably the problem, as we have another [OCF dataset](https://huggingface.co/datasets/openclimatefix/eumetsat_uk_hrv) using xarray and Zarr, but with the Zarr stored on GCP public datasets instead of directly in HF datasets, and that one opens fine. In general, we were hoping to use HF datasets to release some more public geospatial datasets as benchmarks, which are commonly stored as Zarr stores as they can be compressed well and deal with the multi-dimensional data and coordinates fairly easily compared to other formats, but with this error, I'm assuming we should try a different format? For context, we are trying to have complete public model+data reimplementations of some SOTA weather and solar nowcasting models, like [MetNet, MetNet-2,](https://github.com/openclimatefix/metnet) [DGMR](https://github.com/openclimatefix/skillful_nowcasting), and [others](https://github.com/openclimatefix/graph_weather), which all have large, complex datasets. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("openclimatefix/mrms") ``` ## Expected results The dataset should be downloaded or open up ## Actual results A 500 internal server error ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.15.25-1-MANJARO-x86_64-with-glibc2.35 - Python version: 3.9.10 - PyArrow version: 7.0.0 Hi @jacobbieker, we are investigating this issue on our side and we'll see if we can fix it, but please note that your repo is considered problematic for git. Here are the results of running https://github.com/github/git-sizer on it: ``` Processing blobs: 147448 Processing trees: 27 Processing commits: 4 Matching commits to trees: 4 Processing annotated tags: 0 Processing references: 3 | Name | Value | Level of concern | | ---------------------------- | --------- | ------------------------------ | | Biggest objects | | | | * Trees | | | | * Maximum entries [1] | 167 k | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | | | | | | Biggest checkouts | | | | * Number of files [2] | 189 k | *** | [1] aa057d2667c34c70c6146efc631f5c9917ff326e (refs/heads/main:2016.zarr/unknown) [2] 6897b7bf6440fdd16b2c39d08085a669e7eaa59d (refs/heads/main^{tree}) ``` You can check https://github.com/github/git-sizer for more information on how to avoid such pathological structures.
[ -0.3984364271, 0.1099737883, 0.0756590962, 0.2678704262, 0.3084725738, -0.0378655791, 0.3065187633, 0.1853011996, 0.1879682988, 0.1837238818, -0.3976977468, 0.252807498, 0.0605284162, 0.3931142986, -0.1333766282, 0.1691716313, -0.0300634038, 0.0935496241, -0.1518300325, 0.0744264349, -0.298404038, -0.0941733345, -0.0876865014, 0.1554762572, -0.1840731502, -0.1944513172, 0.1473210752, 0.4725469053, -0.3037491739, -0.3931906521, -0.0050850953, -0.1785397232, 0.5827431083, 0.3816311359, -0.0001187077, 0.2011726201, 0.3711711168, -0.0413791463, -0.2092221081, -0.155502677, -0.241422981, -0.2809562981, -0.0461832099, 0.1089153066, 0.3819030225, -0.2584907413, 0.0185770001, -0.4012303352, 0.3119852543, 0.3165648878, 0.0565305911, 0.0047619585, -0.0007187448, -0.2311093509, 0.357283175, -0.0311906766, -0.1348468661, -0.0575642362, 0.0255002603, 0.1946509629, -0.2854173183, 0.2130113989, -0.2188450098, 0.0953580961, 0.2666233778, -0.0507088751, -0.4268052876, -0.0319819674, 0.1751130074, 0.3958953321, 0.9463436007, -0.10778936, -0.3681567013, -0.0369999819, -0.1416633725, -0.3509469032, 0.2388868928, 0.6036017537, 0.1060879007, 0.1252226979, -0.3666580915, 0.036646273, -0.2769366801, 0.2287322283, -0.2805306017, 0.4499383271, -0.0520050935, 0.0792874396, 0.3091820776, -0.1299467534, 0.68266958, -0.1095184758, -0.0622526519, -0.0981559977, -0.4054395258, 0.213105157, -0.0509692021, -0.1125348657, 0.4870853126, 0.3105383813, -0.0315176137, 0.1096203998, -0.168297559, -0.0865037367, 0.2324779183, 0.3147867322, -0.3461239934, 0.1032886729, 0.1426676959, 0.1056239679, -0.2557893097, -0.1429653913, -0.0894411057, -0.0408837907, -0.2812504768, -0.1094471887, 0.3046712577, -0.329342097, -0.0518087894, 0.1893704832, -0.7700586915, -0.169846043, -0.0743685588, 0.3433125317, 0.0922392309, 0.239371255, -0.1660359949, 0.1535543501, -0.0043019736, -0.2439788729, 0.0406888723, -0.1460739076, -0.2566799223, 0.2699207366, -0.1131685302, -0.1292408407, -0.0489293858, 0.0598609485, 0.4044991732, -0.1443607509, 0.4734456539, -0.0547607504, 0.1505471021, 0.4587120414, 0.2154916376, 0.1447969675, 0.112520963, 0.1140172035, 0.1160088331, 0.0641443357, -0.5008353591, -0.6754110456, -0.2095431983, 0.0050729574, -0.0345576666, -0.0692091361, 0.2799400091, -0.3113850355, -0.1680424064, -0.4405532479, -0.1308545023, 0.0747524425, -0.1943157613, -0.0809453949, -0.0466812067, 0.4341386557, 0.0101579847, 0.465501219, -0.3387540281, 0.3258253038, 0.2160001397, 0.3854429126, -0.4366688728, 0.1190591156, -0.2459864318, -0.169996053, -0.0610178038, -0.3542782366, -0.4915453196, 0.3505572677, 0.0113619585, -0.1363785565, 0.0153880212, -0.1025777012, 0.1342599541, 0.1121682897, 0.2090391517, -0.0106123639, -0.1441092491, 0.1603747159, -0.3339030445, -0.3214693964, -0.1609582305, 0.2681576014, 0.1380610019, 0.0132280439, 0.2260376811, -0.0840099528, 0.1535698771, -0.1950402111, -0.3086580038, 0.1893526018, 0.0060898359, -0.0449679978, 0.012065812, 0.2088164836, -0.2857758105, 0.0931548327, -0.4490286708, 0.2647959888, 0.2011951506, 0.1252957731, -0.3098516762, 0.1922798306, -0.050806094, -0.0774892643, -0.0087119164, 0.2236855775, -0.2901361287, -0.1002730653, -0.0999598429, 0.4725527465, 0.2169277668, 0.0113420459, -0.2596186399, 0.2975617647, -0.0867863446, 0.1032014713, 0.1341406703, -0.066784367, 0.1808623374, -0.0030177692, -0.4009098411, 0.2010197937, 0.1720316857, -0.000875308, 0.3186069727, 0.3717554212, 0.1363968402, -0.1478191018, 0.1456035823, 0.1837509722, 0.0407227725, 0.2259514928, -0.1382211596, 0.2717611194, -0.1824481487, 0.1195556149, -0.2139184177, 0.3813347518, 0.1200455204, -0.0451890603, -0.1890977174, -0.1203496978, 0.3008342981, 0.1318986863, 0.4435285032, 0.1602232456, -0.2849338055, -0.1777033806, -0.0373542309, -0.0678613335, 0.0508500338, 0.0876591578, -0.2496500909, -0.0065744109, 0.2016919702, 0.4746958017, 0.3439954817, 0.1430421323, -0.5446860194, 0.1564784944, -0.2423100919, -0.0653164238, 0.0419887565, 0.4042564332, 0.799530983, 0.3407512903, 0.2375747114, 0.1434384584, -0.1769741774, -0.5317545533, -0.0321369246, 0.1390383244, -0.3055349588, 0.1423567384, -0.165213868, -0.0799649879, -0.0950533524, 0.2459660918, -0.3469237983, -0.3239183426, -0.2535284162, -0.0951099768, -0.3008132875, 0.0498623326, -0.2183541059, 0.1295085698, -0.1331196725, 0.162942782, 0.0998254418, -0.2597860992, -0.0271435995, -0.1238229349, 0.4707910419, -0.4197958112, 0.0541696101, -0.0264256597, 0.3818325102, -0.4889295101, -0.035155233, 0.3380056322, 0.2338467985, 0.0094702728, 0.0229984634, 0.1243387237, -0.2394215167, 0.139359042, 0.1937303692, 0.0927355066, 0.1157071069, 0.088827908, -0.2749527991, 0.0302495174, 0.2273087502, -0.1381049603, -0.2600734234, -0.5794453025, -0.2574005425, -0.1094790623, 0.0124930898, 0.3392299414, 0.0574956052, 0.0196224526, -0.3005957603, -0.3893892169, -0.1530476213, -0.3725295067, 0.3347473741, -0.2403355837, -0.3761213124, -0.0669842437, -0.0053697522, -0.1082745492, 0.325297147, -0.258626014, 0.1385421157, -0.1027743667, -0.3008290827, -0.3487481773, -0.2146426737, 0.3086973131, -0.0066606603, 0.0235156789, -0.1421518773, -0.1536326855, -0.032646317, 0.1009543762, 0.0798701346, -0.2318490893, 0.1732762456, -0.013606675, 0.489948988, 0.0183370467, 0.041012425, 0.3530102074, -0.0754280239, 0.2036314756, -0.0883294269, -0.0987281278, -0.081076175, -0.2365387678, -0.4626399279, 0.261118114, 0.0163497701, -0.2330008596, -0.2622843981, -0.0103610437, -0.1329097003, -0.1302018166, 0.2175570726, -0.0234430153, 0.2797940969, 0.4184543788, 0.1260451674, -0.1676569134, -0.2894488275, -0.0402169004, -0.1784400791, 0.1376597285, 0.0850660428, -0.4755240381, -0.1418833435, 0.0153503949, 0.5629484057, 0.2790478766, 0.266448915, 0.0562909469, 0.1216609105, 0.0124234483, -0.0142720789, 0.2789755166, -0.3323042691, -0.2947866023, 0.3065204024, 0.0500750206, -0.3117166162, -0.2010315508, -0.1129828095, 0.1508456767, -0.3056462407, 0.2859794796, 0.0516498424, -0.1508154422, -0.0035470256, 0.2105450481, 0.0045501362, -0.1460813135, -0.2058088034, -0.2920076251, -0.3549547791, -0.2170702666, -0.2375379503, 0.1729534268, 0.0299738813, 0.0783418566, -0.1048291251, 0.1445637345, 0.1581829339, -0.0865746215, 0.6396425962, 0.1419457942, 0.0837986469, 0.1421864629, 0.4292030632, 0.2492868006, 0.5170938969, 0.1743270606, -0.0605393127, 0.2262769341, -0.1207122058, -0.0648655146, 0.2901926041, 0.0866376534, -0.5511313677, 0.1101887301, 0.1306858212, 0.0238755774, 0.1194942966, 0.0031261081, -0.1218700036, -0.518555522, -0.0157196783, 0.5977814198, 0.1177162006, -0.1492429972, 0.4217753708, 0.0484671667, 0.1130754873, 0.4315870106, 0.3920227885, 0.8132181168, -0.3727678657, 0.309987694, 0.3599860966, -0.1006113142, 0.3033598959, -0.5267519951, 0.2220107019, -0.4671823382, -0.3839354217, -0.1527762711, -0.3235842586, 0.0602616854, 0.108881481, 0.0987464041, -0.0321684033, 0.0409011692, 0.3075298965, 0.29575032, 0.2937303483, -0.1966475993, -0.3030505478, -0.3169522583, 0.0018365534, -0.157107383, 0.0116637731, -0.1933354586, -0.2457238734, -0.3024581671, 0.1231676042, -0.1837744117, 0.1953161806, -0.2293215543, 0.2378341705, 0.0539734885, -0.0059991465, -0.0230477918, 0.3239497244, 0.0372445658, -0.1280936003, -0.3260896206, 0.1920062155, -0.1183481514, -0.1236851811, 0.1163537428, -0.0324891694, 0.361585021, -0.107514143, 0.0253839158, 0.1774843931, -0.0864026472, -0.0424724557, -0.3627002239, 0.1979419291, 0.0859792084, -0.4183753729, -0.1271253377, -0.1472034305, 0.0630406663, 0.0215347707, -0.0189498663, 0.0746409148, 0.3671872616, 0.1284414083, 0.1852453351, -0.5114939213, -0.0415339507, 0.1710737795, 0.0229336377, 0.2699216306, 0.0829544887, 0.1748909652, 0.0597574711, -0.0076104957, 0.621000886, -0.031495925, -0.5102538466, 0.1400609463, -0.3123990595, -0.152668044, -0.1207193062, 0.2815561295, 0.2005137652, -0.2985934615, 0.2338714302, -0.4860272408, -0.1580059826, 0.4720728397, -0.1265212297, -0.0300581548, 0.1656559855, 0.1540387571, -0.0821904019, -0.4261887968, -0.126955241, -0.0355421863, -0.073641561, -0.1407363117, -0.15012604, -0.1797098666, 0.3474860191, -0.0327320173, -0.0962145925, 0.1989418119, -0.3620199859, -0.0256790966, -0.0408891663, 0.2469365746, 0.1083300933, -0.3801206052, 0.1773704886, -0.2720494568, -0.2283119261, -0.1331447363, -0.0832139403, 0.1348802, -0.0293509495, -0.3988728523, -0.3249543905, -0.1711190045, -0.5501369238, 0.2114420086, 0.2953191102, 0.2235857099, 0.052156847, 0.2150833458, 0.0871220753, -0.1603892446, -0.4201211929, 0.0488331616, 0.1763528436, 0.1018226743, 0.5127035975, -0.527068615, 0.1742648184, 0.4486143887, 0.3451080322, 0.0336033329, -0.2696173191, -0.0849368647, -0.1800715923, 0.0095857773, -0.1603617966, -0.110388644, 0.0432873294, 0.0793397725, -0.1819105297, 0.0932891518, 0.4428078532, -0.1137863323, -0.2394121438, 0.0782992318, 0.4777612984, 0.0938749388, 0.1749623418, 0.272967279, -0.1434314996, 0.1530943662, -0.0153257018, 0.0305593237, 0.2085233778, 0.5171519518, 0.1548725814, 0.23313649, 0.1091671735, 0.1705237478, -0.043944601, -0.6614460349, 0.2371499091, 0.4233318865, 0.1951131225, -0.0223741829, -0.1165511385, 0.0163388439, 0.0787447244, -0.0622038208, -0.2638103068, 0.1335688084, 0.1478733718, 0.0588517226, -0.0143173067, -0.1976594776, 0.0420002565, 0.3851833344, -0.0647559389, 0.2431203276, 0.1213988066, 0.2162996829, 0.0343878381, -0.1891795099, 0.29764691, 0.4485317767, 0.03121778, -0.3981818557, 0.1707991213, 0.1389469802, -0.2967087626, 0.1859606504, 0.0313350409, 0.5322250128, 0.1447331905, -0.305431813, 0.0846366659, -0.2328578979, 0.1680818051, 0.2225365192, -0.1559191048, 0.2153177559, 0.0652341396, 0.5209812522, -0.0413669683, -0.0336656496, 0.033173725, -0.1468723565, 0.3198465705, 0.0334146619, -0.1648712605, 0.1090423539, -0.0322910026, 0.1054921672, 0.0712449178, -0.1164997295, 0.105309397, 0.2834140658, 0.0281254649, 0.056233678, -0.0553975068, -0.0186001621, -0.0595594607, 0.3683056533, 0.1419217288, 0.3338602781, -0.1206214204, -0.1345631927, -0.5409656763, 0.292311281, -0.2239699513, 0.0809733644, 0.2422300577, -0.0902830884, 0.3014988899, 0.232818976, 0.2796936333, 0.2568820715, -0.0441855453, 0.0666969195, -0.2333853543, -0.0496067628, -0.0624470785, 0.0815428421, -0.1773659438, -0.284425199, 0.2202054262, -0.2628389895, 0.0084859114, -0.0301760901, -0.1314434707, -0.2066946924, -0.3477855325, 0.2716788948, 0.0815996677, 0.3368171155, 0.0401128381, -0.1988704801, -0.316367954, -0.2064466625, 0.0882844478, -0.0846299082, 0.3121272027, 0.4762713611, -0.1441267431, 0.324695766, -0.3888739049, 0.2804833651, 0.0048888018, 0.3377467692, -0.2858344913, 0.1942296624, -0.2582117617, -0.0169331226, 0.2614155412, 0.3332202435, 0.1697106957, 0.1679909974, -0.0677419901, -0.3816129267, 0.5351587534, -0.1083742678, -0.0318189152, 0.2700533867, 0.093596518, 0.0316486396, -0.0005789706, -0.2213091105, 0.1424933076, 0.0519432798, 0.0977687463, -0.1560103297, -0.2733042836, 0.2976016104, -0.2585594058, -0.0808835924, 0.3145340383, 0.0625649914, -0.3507772088, -0.0571558513, 0.3165157735 ]
https://github.com/huggingface/datasets/issues/3823
500 internal server error when trying to open a dataset composed of Zarr stores
Hi, thanks for getting back to me so quick! And yeah, I figured that was probably the problem. I was going to try to delete the repo, but couldn't through the website, so if that's the easiest way to solve it, I can regenerate the dataset in a different format with less tiny files, and you guys can delete the repo as it is. Zarr just saves everything as lots of small files to make chunks easy to load, which is why I was preferring that format, but maybne that just doesn't work well for HF datasets.
## Describe the bug The dataset [openclimatefix/mrms](https://huggingface.co/datasets/openclimatefix/mrms) gives a 500 server error when trying to open it on the website, or through code. The dataset doesn't have a loading script yet, and I did push two [xarray](https://docs.xarray.dev/en/stable/) Zarr stores of data there recentlyish. The Zarr stores are composed of lots of small files, which I am guessing is probably the problem, as we have another [OCF dataset](https://huggingface.co/datasets/openclimatefix/eumetsat_uk_hrv) using xarray and Zarr, but with the Zarr stored on GCP public datasets instead of directly in HF datasets, and that one opens fine. In general, we were hoping to use HF datasets to release some more public geospatial datasets as benchmarks, which are commonly stored as Zarr stores as they can be compressed well and deal with the multi-dimensional data and coordinates fairly easily compared to other formats, but with this error, I'm assuming we should try a different format? For context, we are trying to have complete public model+data reimplementations of some SOTA weather and solar nowcasting models, like [MetNet, MetNet-2,](https://github.com/openclimatefix/metnet) [DGMR](https://github.com/openclimatefix/skillful_nowcasting), and [others](https://github.com/openclimatefix/graph_weather), which all have large, complex datasets. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("openclimatefix/mrms") ``` ## Expected results The dataset should be downloaded or open up ## Actual results A 500 internal server error ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.15.25-1-MANJARO-x86_64-with-glibc2.35 - Python version: 3.9.10 - PyArrow version: 7.0.0
97
500 internal server error when trying to open a dataset composed of Zarr stores ## Describe the bug The dataset [openclimatefix/mrms](https://huggingface.co/datasets/openclimatefix/mrms) gives a 500 server error when trying to open it on the website, or through code. The dataset doesn't have a loading script yet, and I did push two [xarray](https://docs.xarray.dev/en/stable/) Zarr stores of data there recentlyish. The Zarr stores are composed of lots of small files, which I am guessing is probably the problem, as we have another [OCF dataset](https://huggingface.co/datasets/openclimatefix/eumetsat_uk_hrv) using xarray and Zarr, but with the Zarr stored on GCP public datasets instead of directly in HF datasets, and that one opens fine. In general, we were hoping to use HF datasets to release some more public geospatial datasets as benchmarks, which are commonly stored as Zarr stores as they can be compressed well and deal with the multi-dimensional data and coordinates fairly easily compared to other formats, but with this error, I'm assuming we should try a different format? For context, we are trying to have complete public model+data reimplementations of some SOTA weather and solar nowcasting models, like [MetNet, MetNet-2,](https://github.com/openclimatefix/metnet) [DGMR](https://github.com/openclimatefix/skillful_nowcasting), and [others](https://github.com/openclimatefix/graph_weather), which all have large, complex datasets. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("openclimatefix/mrms") ``` ## Expected results The dataset should be downloaded or open up ## Actual results A 500 internal server error ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.15.25-1-MANJARO-x86_64-with-glibc2.35 - Python version: 3.9.10 - PyArrow version: 7.0.0 Hi, thanks for getting back to me so quick! And yeah, I figured that was probably the problem. I was going to try to delete the repo, but couldn't through the website, so if that's the easiest way to solve it, I can regenerate the dataset in a different format with less tiny files, and you guys can delete the repo as it is. Zarr just saves everything as lots of small files to make chunks easy to load, which is why I was preferring that format, but maybne that just doesn't work well for HF datasets.
[ -0.3984364271, 0.1099737883, 0.0756590962, 0.2678704262, 0.3084725738, -0.0378655791, 0.3065187633, 0.1853011996, 0.1879682988, 0.1837238818, -0.3976977468, 0.252807498, 0.0605284162, 0.3931142986, -0.1333766282, 0.1691716313, -0.0300634038, 0.0935496241, -0.1518300325, 0.0744264349, -0.298404038, -0.0941733345, -0.0876865014, 0.1554762572, -0.1840731502, -0.1944513172, 0.1473210752, 0.4725469053, -0.3037491739, -0.3931906521, -0.0050850953, -0.1785397232, 0.5827431083, 0.3816311359, -0.0001187077, 0.2011726201, 0.3711711168, -0.0413791463, -0.2092221081, -0.155502677, -0.241422981, -0.2809562981, -0.0461832099, 0.1089153066, 0.3819030225, -0.2584907413, 0.0185770001, -0.4012303352, 0.3119852543, 0.3165648878, 0.0565305911, 0.0047619585, -0.0007187448, -0.2311093509, 0.357283175, -0.0311906766, -0.1348468661, -0.0575642362, 0.0255002603, 0.1946509629, -0.2854173183, 0.2130113989, -0.2188450098, 0.0953580961, 0.2666233778, -0.0507088751, -0.4268052876, -0.0319819674, 0.1751130074, 0.3958953321, 0.9463436007, -0.10778936, -0.3681567013, -0.0369999819, -0.1416633725, -0.3509469032, 0.2388868928, 0.6036017537, 0.1060879007, 0.1252226979, -0.3666580915, 0.036646273, -0.2769366801, 0.2287322283, -0.2805306017, 0.4499383271, -0.0520050935, 0.0792874396, 0.3091820776, -0.1299467534, 0.68266958, -0.1095184758, -0.0622526519, -0.0981559977, -0.4054395258, 0.213105157, -0.0509692021, -0.1125348657, 0.4870853126, 0.3105383813, -0.0315176137, 0.1096203998, -0.168297559, -0.0865037367, 0.2324779183, 0.3147867322, -0.3461239934, 0.1032886729, 0.1426676959, 0.1056239679, -0.2557893097, -0.1429653913, -0.0894411057, -0.0408837907, -0.2812504768, -0.1094471887, 0.3046712577, -0.329342097, -0.0518087894, 0.1893704832, -0.7700586915, -0.169846043, -0.0743685588, 0.3433125317, 0.0922392309, 0.239371255, -0.1660359949, 0.1535543501, -0.0043019736, -0.2439788729, 0.0406888723, -0.1460739076, -0.2566799223, 0.2699207366, -0.1131685302, -0.1292408407, -0.0489293858, 0.0598609485, 0.4044991732, -0.1443607509, 0.4734456539, -0.0547607504, 0.1505471021, 0.4587120414, 0.2154916376, 0.1447969675, 0.112520963, 0.1140172035, 0.1160088331, 0.0641443357, -0.5008353591, -0.6754110456, -0.2095431983, 0.0050729574, -0.0345576666, -0.0692091361, 0.2799400091, -0.3113850355, -0.1680424064, -0.4405532479, -0.1308545023, 0.0747524425, -0.1943157613, -0.0809453949, -0.0466812067, 0.4341386557, 0.0101579847, 0.465501219, -0.3387540281, 0.3258253038, 0.2160001397, 0.3854429126, -0.4366688728, 0.1190591156, -0.2459864318, -0.169996053, -0.0610178038, -0.3542782366, -0.4915453196, 0.3505572677, 0.0113619585, -0.1363785565, 0.0153880212, -0.1025777012, 0.1342599541, 0.1121682897, 0.2090391517, -0.0106123639, -0.1441092491, 0.1603747159, -0.3339030445, -0.3214693964, -0.1609582305, 0.2681576014, 0.1380610019, 0.0132280439, 0.2260376811, -0.0840099528, 0.1535698771, -0.1950402111, -0.3086580038, 0.1893526018, 0.0060898359, -0.0449679978, 0.012065812, 0.2088164836, -0.2857758105, 0.0931548327, -0.4490286708, 0.2647959888, 0.2011951506, 0.1252957731, -0.3098516762, 0.1922798306, -0.050806094, -0.0774892643, -0.0087119164, 0.2236855775, -0.2901361287, -0.1002730653, -0.0999598429, 0.4725527465, 0.2169277668, 0.0113420459, -0.2596186399, 0.2975617647, -0.0867863446, 0.1032014713, 0.1341406703, -0.066784367, 0.1808623374, -0.0030177692, -0.4009098411, 0.2010197937, 0.1720316857, -0.000875308, 0.3186069727, 0.3717554212, 0.1363968402, -0.1478191018, 0.1456035823, 0.1837509722, 0.0407227725, 0.2259514928, -0.1382211596, 0.2717611194, -0.1824481487, 0.1195556149, -0.2139184177, 0.3813347518, 0.1200455204, -0.0451890603, -0.1890977174, -0.1203496978, 0.3008342981, 0.1318986863, 0.4435285032, 0.1602232456, -0.2849338055, -0.1777033806, -0.0373542309, -0.0678613335, 0.0508500338, 0.0876591578, -0.2496500909, -0.0065744109, 0.2016919702, 0.4746958017, 0.3439954817, 0.1430421323, -0.5446860194, 0.1564784944, -0.2423100919, -0.0653164238, 0.0419887565, 0.4042564332, 0.799530983, 0.3407512903, 0.2375747114, 0.1434384584, -0.1769741774, -0.5317545533, -0.0321369246, 0.1390383244, -0.3055349588, 0.1423567384, -0.165213868, -0.0799649879, -0.0950533524, 0.2459660918, -0.3469237983, -0.3239183426, -0.2535284162, -0.0951099768, -0.3008132875, 0.0498623326, -0.2183541059, 0.1295085698, -0.1331196725, 0.162942782, 0.0998254418, -0.2597860992, -0.0271435995, -0.1238229349, 0.4707910419, -0.4197958112, 0.0541696101, -0.0264256597, 0.3818325102, -0.4889295101, -0.035155233, 0.3380056322, 0.2338467985, 0.0094702728, 0.0229984634, 0.1243387237, -0.2394215167, 0.139359042, 0.1937303692, 0.0927355066, 0.1157071069, 0.088827908, -0.2749527991, 0.0302495174, 0.2273087502, -0.1381049603, -0.2600734234, -0.5794453025, -0.2574005425, -0.1094790623, 0.0124930898, 0.3392299414, 0.0574956052, 0.0196224526, -0.3005957603, -0.3893892169, -0.1530476213, -0.3725295067, 0.3347473741, -0.2403355837, -0.3761213124, -0.0669842437, -0.0053697522, -0.1082745492, 0.325297147, -0.258626014, 0.1385421157, -0.1027743667, -0.3008290827, -0.3487481773, -0.2146426737, 0.3086973131, -0.0066606603, 0.0235156789, -0.1421518773, -0.1536326855, -0.032646317, 0.1009543762, 0.0798701346, -0.2318490893, 0.1732762456, -0.013606675, 0.489948988, 0.0183370467, 0.041012425, 0.3530102074, -0.0754280239, 0.2036314756, -0.0883294269, -0.0987281278, -0.081076175, -0.2365387678, -0.4626399279, 0.261118114, 0.0163497701, -0.2330008596, -0.2622843981, -0.0103610437, -0.1329097003, -0.1302018166, 0.2175570726, -0.0234430153, 0.2797940969, 0.4184543788, 0.1260451674, -0.1676569134, -0.2894488275, -0.0402169004, -0.1784400791, 0.1376597285, 0.0850660428, -0.4755240381, -0.1418833435, 0.0153503949, 0.5629484057, 0.2790478766, 0.266448915, 0.0562909469, 0.1216609105, 0.0124234483, -0.0142720789, 0.2789755166, -0.3323042691, -0.2947866023, 0.3065204024, 0.0500750206, -0.3117166162, -0.2010315508, -0.1129828095, 0.1508456767, -0.3056462407, 0.2859794796, 0.0516498424, -0.1508154422, -0.0035470256, 0.2105450481, 0.0045501362, -0.1460813135, -0.2058088034, -0.2920076251, -0.3549547791, -0.2170702666, -0.2375379503, 0.1729534268, 0.0299738813, 0.0783418566, -0.1048291251, 0.1445637345, 0.1581829339, -0.0865746215, 0.6396425962, 0.1419457942, 0.0837986469, 0.1421864629, 0.4292030632, 0.2492868006, 0.5170938969, 0.1743270606, -0.0605393127, 0.2262769341, -0.1207122058, -0.0648655146, 0.2901926041, 0.0866376534, -0.5511313677, 0.1101887301, 0.1306858212, 0.0238755774, 0.1194942966, 0.0031261081, -0.1218700036, -0.518555522, -0.0157196783, 0.5977814198, 0.1177162006, -0.1492429972, 0.4217753708, 0.0484671667, 0.1130754873, 0.4315870106, 0.3920227885, 0.8132181168, -0.3727678657, 0.309987694, 0.3599860966, -0.1006113142, 0.3033598959, -0.5267519951, 0.2220107019, -0.4671823382, -0.3839354217, -0.1527762711, -0.3235842586, 0.0602616854, 0.108881481, 0.0987464041, -0.0321684033, 0.0409011692, 0.3075298965, 0.29575032, 0.2937303483, -0.1966475993, -0.3030505478, -0.3169522583, 0.0018365534, -0.157107383, 0.0116637731, -0.1933354586, -0.2457238734, -0.3024581671, 0.1231676042, -0.1837744117, 0.1953161806, -0.2293215543, 0.2378341705, 0.0539734885, -0.0059991465, -0.0230477918, 0.3239497244, 0.0372445658, -0.1280936003, -0.3260896206, 0.1920062155, -0.1183481514, -0.1236851811, 0.1163537428, -0.0324891694, 0.361585021, -0.107514143, 0.0253839158, 0.1774843931, -0.0864026472, -0.0424724557, -0.3627002239, 0.1979419291, 0.0859792084, -0.4183753729, -0.1271253377, -0.1472034305, 0.0630406663, 0.0215347707, -0.0189498663, 0.0746409148, 0.3671872616, 0.1284414083, 0.1852453351, -0.5114939213, -0.0415339507, 0.1710737795, 0.0229336377, 0.2699216306, 0.0829544887, 0.1748909652, 0.0597574711, -0.0076104957, 0.621000886, -0.031495925, -0.5102538466, 0.1400609463, -0.3123990595, -0.152668044, -0.1207193062, 0.2815561295, 0.2005137652, -0.2985934615, 0.2338714302, -0.4860272408, -0.1580059826, 0.4720728397, -0.1265212297, -0.0300581548, 0.1656559855, 0.1540387571, -0.0821904019, -0.4261887968, -0.126955241, -0.0355421863, -0.073641561, -0.1407363117, -0.15012604, -0.1797098666, 0.3474860191, -0.0327320173, -0.0962145925, 0.1989418119, -0.3620199859, -0.0256790966, -0.0408891663, 0.2469365746, 0.1083300933, -0.3801206052, 0.1773704886, -0.2720494568, -0.2283119261, -0.1331447363, -0.0832139403, 0.1348802, -0.0293509495, -0.3988728523, -0.3249543905, -0.1711190045, -0.5501369238, 0.2114420086, 0.2953191102, 0.2235857099, 0.052156847, 0.2150833458, 0.0871220753, -0.1603892446, -0.4201211929, 0.0488331616, 0.1763528436, 0.1018226743, 0.5127035975, -0.527068615, 0.1742648184, 0.4486143887, 0.3451080322, 0.0336033329, -0.2696173191, -0.0849368647, -0.1800715923, 0.0095857773, -0.1603617966, -0.110388644, 0.0432873294, 0.0793397725, -0.1819105297, 0.0932891518, 0.4428078532, -0.1137863323, -0.2394121438, 0.0782992318, 0.4777612984, 0.0938749388, 0.1749623418, 0.272967279, -0.1434314996, 0.1530943662, -0.0153257018, 0.0305593237, 0.2085233778, 0.5171519518, 0.1548725814, 0.23313649, 0.1091671735, 0.1705237478, -0.043944601, -0.6614460349, 0.2371499091, 0.4233318865, 0.1951131225, -0.0223741829, -0.1165511385, 0.0163388439, 0.0787447244, -0.0622038208, -0.2638103068, 0.1335688084, 0.1478733718, 0.0588517226, -0.0143173067, -0.1976594776, 0.0420002565, 0.3851833344, -0.0647559389, 0.2431203276, 0.1213988066, 0.2162996829, 0.0343878381, -0.1891795099, 0.29764691, 0.4485317767, 0.03121778, -0.3981818557, 0.1707991213, 0.1389469802, -0.2967087626, 0.1859606504, 0.0313350409, 0.5322250128, 0.1447331905, -0.305431813, 0.0846366659, -0.2328578979, 0.1680818051, 0.2225365192, -0.1559191048, 0.2153177559, 0.0652341396, 0.5209812522, -0.0413669683, -0.0336656496, 0.033173725, -0.1468723565, 0.3198465705, 0.0334146619, -0.1648712605, 0.1090423539, -0.0322910026, 0.1054921672, 0.0712449178, -0.1164997295, 0.105309397, 0.2834140658, 0.0281254649, 0.056233678, -0.0553975068, -0.0186001621, -0.0595594607, 0.3683056533, 0.1419217288, 0.3338602781, -0.1206214204, -0.1345631927, -0.5409656763, 0.292311281, -0.2239699513, 0.0809733644, 0.2422300577, -0.0902830884, 0.3014988899, 0.232818976, 0.2796936333, 0.2568820715, -0.0441855453, 0.0666969195, -0.2333853543, -0.0496067628, -0.0624470785, 0.0815428421, -0.1773659438, -0.284425199, 0.2202054262, -0.2628389895, 0.0084859114, -0.0301760901, -0.1314434707, -0.2066946924, -0.3477855325, 0.2716788948, 0.0815996677, 0.3368171155, 0.0401128381, -0.1988704801, -0.316367954, -0.2064466625, 0.0882844478, -0.0846299082, 0.3121272027, 0.4762713611, -0.1441267431, 0.324695766, -0.3888739049, 0.2804833651, 0.0048888018, 0.3377467692, -0.2858344913, 0.1942296624, -0.2582117617, -0.0169331226, 0.2614155412, 0.3332202435, 0.1697106957, 0.1679909974, -0.0677419901, -0.3816129267, 0.5351587534, -0.1083742678, -0.0318189152, 0.2700533867, 0.093596518, 0.0316486396, -0.0005789706, -0.2213091105, 0.1424933076, 0.0519432798, 0.0977687463, -0.1560103297, -0.2733042836, 0.2976016104, -0.2585594058, -0.0808835924, 0.3145340383, 0.0625649914, -0.3507772088, -0.0571558513, 0.3165157735 ]
https://github.com/huggingface/datasets/issues/3823
500 internal server error when trying to open a dataset composed of Zarr stores
Hi @jacobbieker, For future use cases, our Hub team is still pondering whether to limit the maximum number of files per repo to avoid technical issues... On the meantime, they have made a fix and your dataset is working: https://huggingface.co/datasets/openclimatefix/mrms
## Describe the bug The dataset [openclimatefix/mrms](https://huggingface.co/datasets/openclimatefix/mrms) gives a 500 server error when trying to open it on the website, or through code. The dataset doesn't have a loading script yet, and I did push two [xarray](https://docs.xarray.dev/en/stable/) Zarr stores of data there recentlyish. The Zarr stores are composed of lots of small files, which I am guessing is probably the problem, as we have another [OCF dataset](https://huggingface.co/datasets/openclimatefix/eumetsat_uk_hrv) using xarray and Zarr, but with the Zarr stored on GCP public datasets instead of directly in HF datasets, and that one opens fine. In general, we were hoping to use HF datasets to release some more public geospatial datasets as benchmarks, which are commonly stored as Zarr stores as they can be compressed well and deal with the multi-dimensional data and coordinates fairly easily compared to other formats, but with this error, I'm assuming we should try a different format? For context, we are trying to have complete public model+data reimplementations of some SOTA weather and solar nowcasting models, like [MetNet, MetNet-2,](https://github.com/openclimatefix/metnet) [DGMR](https://github.com/openclimatefix/skillful_nowcasting), and [others](https://github.com/openclimatefix/graph_weather), which all have large, complex datasets. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("openclimatefix/mrms") ``` ## Expected results The dataset should be downloaded or open up ## Actual results A 500 internal server error ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.15.25-1-MANJARO-x86_64-with-glibc2.35 - Python version: 3.9.10 - PyArrow version: 7.0.0
40
500 internal server error when trying to open a dataset composed of Zarr stores ## Describe the bug The dataset [openclimatefix/mrms](https://huggingface.co/datasets/openclimatefix/mrms) gives a 500 server error when trying to open it on the website, or through code. The dataset doesn't have a loading script yet, and I did push two [xarray](https://docs.xarray.dev/en/stable/) Zarr stores of data there recentlyish. The Zarr stores are composed of lots of small files, which I am guessing is probably the problem, as we have another [OCF dataset](https://huggingface.co/datasets/openclimatefix/eumetsat_uk_hrv) using xarray and Zarr, but with the Zarr stored on GCP public datasets instead of directly in HF datasets, and that one opens fine. In general, we were hoping to use HF datasets to release some more public geospatial datasets as benchmarks, which are commonly stored as Zarr stores as they can be compressed well and deal with the multi-dimensional data and coordinates fairly easily compared to other formats, but with this error, I'm assuming we should try a different format? For context, we are trying to have complete public model+data reimplementations of some SOTA weather and solar nowcasting models, like [MetNet, MetNet-2,](https://github.com/openclimatefix/metnet) [DGMR](https://github.com/openclimatefix/skillful_nowcasting), and [others](https://github.com/openclimatefix/graph_weather), which all have large, complex datasets. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("openclimatefix/mrms") ``` ## Expected results The dataset should be downloaded or open up ## Actual results A 500 internal server error ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.15.25-1-MANJARO-x86_64-with-glibc2.35 - Python version: 3.9.10 - PyArrow version: 7.0.0 Hi @jacobbieker, For future use cases, our Hub team is still pondering whether to limit the maximum number of files per repo to avoid technical issues... On the meantime, they have made a fix and your dataset is working: https://huggingface.co/datasets/openclimatefix/mrms
[ -0.3984364271, 0.1099737883, 0.0756590962, 0.2678704262, 0.3084725738, -0.0378655791, 0.3065187633, 0.1853011996, 0.1879682988, 0.1837238818, -0.3976977468, 0.252807498, 0.0605284162, 0.3931142986, -0.1333766282, 0.1691716313, -0.0300634038, 0.0935496241, -0.1518300325, 0.0744264349, -0.298404038, -0.0941733345, -0.0876865014, 0.1554762572, -0.1840731502, -0.1944513172, 0.1473210752, 0.4725469053, -0.3037491739, -0.3931906521, -0.0050850953, -0.1785397232, 0.5827431083, 0.3816311359, -0.0001187077, 0.2011726201, 0.3711711168, -0.0413791463, -0.2092221081, -0.155502677, -0.241422981, -0.2809562981, -0.0461832099, 0.1089153066, 0.3819030225, -0.2584907413, 0.0185770001, -0.4012303352, 0.3119852543, 0.3165648878, 0.0565305911, 0.0047619585, -0.0007187448, -0.2311093509, 0.357283175, -0.0311906766, -0.1348468661, -0.0575642362, 0.0255002603, 0.1946509629, -0.2854173183, 0.2130113989, -0.2188450098, 0.0953580961, 0.2666233778, -0.0507088751, -0.4268052876, -0.0319819674, 0.1751130074, 0.3958953321, 0.9463436007, -0.10778936, -0.3681567013, -0.0369999819, -0.1416633725, -0.3509469032, 0.2388868928, 0.6036017537, 0.1060879007, 0.1252226979, -0.3666580915, 0.036646273, -0.2769366801, 0.2287322283, -0.2805306017, 0.4499383271, -0.0520050935, 0.0792874396, 0.3091820776, -0.1299467534, 0.68266958, -0.1095184758, -0.0622526519, -0.0981559977, -0.4054395258, 0.213105157, -0.0509692021, -0.1125348657, 0.4870853126, 0.3105383813, -0.0315176137, 0.1096203998, -0.168297559, -0.0865037367, 0.2324779183, 0.3147867322, -0.3461239934, 0.1032886729, 0.1426676959, 0.1056239679, -0.2557893097, -0.1429653913, -0.0894411057, -0.0408837907, -0.2812504768, -0.1094471887, 0.3046712577, -0.329342097, -0.0518087894, 0.1893704832, -0.7700586915, -0.169846043, -0.0743685588, 0.3433125317, 0.0922392309, 0.239371255, -0.1660359949, 0.1535543501, -0.0043019736, -0.2439788729, 0.0406888723, -0.1460739076, -0.2566799223, 0.2699207366, -0.1131685302, -0.1292408407, -0.0489293858, 0.0598609485, 0.4044991732, -0.1443607509, 0.4734456539, -0.0547607504, 0.1505471021, 0.4587120414, 0.2154916376, 0.1447969675, 0.112520963, 0.1140172035, 0.1160088331, 0.0641443357, -0.5008353591, -0.6754110456, -0.2095431983, 0.0050729574, -0.0345576666, -0.0692091361, 0.2799400091, -0.3113850355, -0.1680424064, -0.4405532479, -0.1308545023, 0.0747524425, -0.1943157613, -0.0809453949, -0.0466812067, 0.4341386557, 0.0101579847, 0.465501219, -0.3387540281, 0.3258253038, 0.2160001397, 0.3854429126, -0.4366688728, 0.1190591156, -0.2459864318, -0.169996053, -0.0610178038, -0.3542782366, -0.4915453196, 0.3505572677, 0.0113619585, -0.1363785565, 0.0153880212, -0.1025777012, 0.1342599541, 0.1121682897, 0.2090391517, -0.0106123639, -0.1441092491, 0.1603747159, -0.3339030445, -0.3214693964, -0.1609582305, 0.2681576014, 0.1380610019, 0.0132280439, 0.2260376811, -0.0840099528, 0.1535698771, -0.1950402111, -0.3086580038, 0.1893526018, 0.0060898359, -0.0449679978, 0.012065812, 0.2088164836, -0.2857758105, 0.0931548327, -0.4490286708, 0.2647959888, 0.2011951506, 0.1252957731, -0.3098516762, 0.1922798306, -0.050806094, -0.0774892643, -0.0087119164, 0.2236855775, -0.2901361287, -0.1002730653, -0.0999598429, 0.4725527465, 0.2169277668, 0.0113420459, -0.2596186399, 0.2975617647, -0.0867863446, 0.1032014713, 0.1341406703, -0.066784367, 0.1808623374, -0.0030177692, -0.4009098411, 0.2010197937, 0.1720316857, -0.000875308, 0.3186069727, 0.3717554212, 0.1363968402, -0.1478191018, 0.1456035823, 0.1837509722, 0.0407227725, 0.2259514928, -0.1382211596, 0.2717611194, -0.1824481487, 0.1195556149, -0.2139184177, 0.3813347518, 0.1200455204, -0.0451890603, -0.1890977174, -0.1203496978, 0.3008342981, 0.1318986863, 0.4435285032, 0.1602232456, -0.2849338055, -0.1777033806, -0.0373542309, -0.0678613335, 0.0508500338, 0.0876591578, -0.2496500909, -0.0065744109, 0.2016919702, 0.4746958017, 0.3439954817, 0.1430421323, -0.5446860194, 0.1564784944, -0.2423100919, -0.0653164238, 0.0419887565, 0.4042564332, 0.799530983, 0.3407512903, 0.2375747114, 0.1434384584, -0.1769741774, -0.5317545533, -0.0321369246, 0.1390383244, -0.3055349588, 0.1423567384, -0.165213868, -0.0799649879, -0.0950533524, 0.2459660918, -0.3469237983, -0.3239183426, -0.2535284162, -0.0951099768, -0.3008132875, 0.0498623326, -0.2183541059, 0.1295085698, -0.1331196725, 0.162942782, 0.0998254418, -0.2597860992, -0.0271435995, -0.1238229349, 0.4707910419, -0.4197958112, 0.0541696101, -0.0264256597, 0.3818325102, -0.4889295101, -0.035155233, 0.3380056322, 0.2338467985, 0.0094702728, 0.0229984634, 0.1243387237, -0.2394215167, 0.139359042, 0.1937303692, 0.0927355066, 0.1157071069, 0.088827908, -0.2749527991, 0.0302495174, 0.2273087502, -0.1381049603, -0.2600734234, -0.5794453025, -0.2574005425, -0.1094790623, 0.0124930898, 0.3392299414, 0.0574956052, 0.0196224526, -0.3005957603, -0.3893892169, -0.1530476213, -0.3725295067, 0.3347473741, -0.2403355837, -0.3761213124, -0.0669842437, -0.0053697522, -0.1082745492, 0.325297147, -0.258626014, 0.1385421157, -0.1027743667, -0.3008290827, -0.3487481773, -0.2146426737, 0.3086973131, -0.0066606603, 0.0235156789, -0.1421518773, -0.1536326855, -0.032646317, 0.1009543762, 0.0798701346, -0.2318490893, 0.1732762456, -0.013606675, 0.489948988, 0.0183370467, 0.041012425, 0.3530102074, -0.0754280239, 0.2036314756, -0.0883294269, -0.0987281278, -0.081076175, -0.2365387678, -0.4626399279, 0.261118114, 0.0163497701, -0.2330008596, -0.2622843981, -0.0103610437, -0.1329097003, -0.1302018166, 0.2175570726, -0.0234430153, 0.2797940969, 0.4184543788, 0.1260451674, -0.1676569134, -0.2894488275, -0.0402169004, -0.1784400791, 0.1376597285, 0.0850660428, -0.4755240381, -0.1418833435, 0.0153503949, 0.5629484057, 0.2790478766, 0.266448915, 0.0562909469, 0.1216609105, 0.0124234483, -0.0142720789, 0.2789755166, -0.3323042691, -0.2947866023, 0.3065204024, 0.0500750206, -0.3117166162, -0.2010315508, -0.1129828095, 0.1508456767, -0.3056462407, 0.2859794796, 0.0516498424, -0.1508154422, -0.0035470256, 0.2105450481, 0.0045501362, -0.1460813135, -0.2058088034, -0.2920076251, -0.3549547791, -0.2170702666, -0.2375379503, 0.1729534268, 0.0299738813, 0.0783418566, -0.1048291251, 0.1445637345, 0.1581829339, -0.0865746215, 0.6396425962, 0.1419457942, 0.0837986469, 0.1421864629, 0.4292030632, 0.2492868006, 0.5170938969, 0.1743270606, -0.0605393127, 0.2262769341, -0.1207122058, -0.0648655146, 0.2901926041, 0.0866376534, -0.5511313677, 0.1101887301, 0.1306858212, 0.0238755774, 0.1194942966, 0.0031261081, -0.1218700036, -0.518555522, -0.0157196783, 0.5977814198, 0.1177162006, -0.1492429972, 0.4217753708, 0.0484671667, 0.1130754873, 0.4315870106, 0.3920227885, 0.8132181168, -0.3727678657, 0.309987694, 0.3599860966, -0.1006113142, 0.3033598959, -0.5267519951, 0.2220107019, -0.4671823382, -0.3839354217, -0.1527762711, -0.3235842586, 0.0602616854, 0.108881481, 0.0987464041, -0.0321684033, 0.0409011692, 0.3075298965, 0.29575032, 0.2937303483, -0.1966475993, -0.3030505478, -0.3169522583, 0.0018365534, -0.157107383, 0.0116637731, -0.1933354586, -0.2457238734, -0.3024581671, 0.1231676042, -0.1837744117, 0.1953161806, -0.2293215543, 0.2378341705, 0.0539734885, -0.0059991465, -0.0230477918, 0.3239497244, 0.0372445658, -0.1280936003, -0.3260896206, 0.1920062155, -0.1183481514, -0.1236851811, 0.1163537428, -0.0324891694, 0.361585021, -0.107514143, 0.0253839158, 0.1774843931, -0.0864026472, -0.0424724557, -0.3627002239, 0.1979419291, 0.0859792084, -0.4183753729, -0.1271253377, -0.1472034305, 0.0630406663, 0.0215347707, -0.0189498663, 0.0746409148, 0.3671872616, 0.1284414083, 0.1852453351, -0.5114939213, -0.0415339507, 0.1710737795, 0.0229336377, 0.2699216306, 0.0829544887, 0.1748909652, 0.0597574711, -0.0076104957, 0.621000886, -0.031495925, -0.5102538466, 0.1400609463, -0.3123990595, -0.152668044, -0.1207193062, 0.2815561295, 0.2005137652, -0.2985934615, 0.2338714302, -0.4860272408, -0.1580059826, 0.4720728397, -0.1265212297, -0.0300581548, 0.1656559855, 0.1540387571, -0.0821904019, -0.4261887968, -0.126955241, -0.0355421863, -0.073641561, -0.1407363117, -0.15012604, -0.1797098666, 0.3474860191, -0.0327320173, -0.0962145925, 0.1989418119, -0.3620199859, -0.0256790966, -0.0408891663, 0.2469365746, 0.1083300933, -0.3801206052, 0.1773704886, -0.2720494568, -0.2283119261, -0.1331447363, -0.0832139403, 0.1348802, -0.0293509495, -0.3988728523, -0.3249543905, -0.1711190045, -0.5501369238, 0.2114420086, 0.2953191102, 0.2235857099, 0.052156847, 0.2150833458, 0.0871220753, -0.1603892446, -0.4201211929, 0.0488331616, 0.1763528436, 0.1018226743, 0.5127035975, -0.527068615, 0.1742648184, 0.4486143887, 0.3451080322, 0.0336033329, -0.2696173191, -0.0849368647, -0.1800715923, 0.0095857773, -0.1603617966, -0.110388644, 0.0432873294, 0.0793397725, -0.1819105297, 0.0932891518, 0.4428078532, -0.1137863323, -0.2394121438, 0.0782992318, 0.4777612984, 0.0938749388, 0.1749623418, 0.272967279, -0.1434314996, 0.1530943662, -0.0153257018, 0.0305593237, 0.2085233778, 0.5171519518, 0.1548725814, 0.23313649, 0.1091671735, 0.1705237478, -0.043944601, -0.6614460349, 0.2371499091, 0.4233318865, 0.1951131225, -0.0223741829, -0.1165511385, 0.0163388439, 0.0787447244, -0.0622038208, -0.2638103068, 0.1335688084, 0.1478733718, 0.0588517226, -0.0143173067, -0.1976594776, 0.0420002565, 0.3851833344, -0.0647559389, 0.2431203276, 0.1213988066, 0.2162996829, 0.0343878381, -0.1891795099, 0.29764691, 0.4485317767, 0.03121778, -0.3981818557, 0.1707991213, 0.1389469802, -0.2967087626, 0.1859606504, 0.0313350409, 0.5322250128, 0.1447331905, -0.305431813, 0.0846366659, -0.2328578979, 0.1680818051, 0.2225365192, -0.1559191048, 0.2153177559, 0.0652341396, 0.5209812522, -0.0413669683, -0.0336656496, 0.033173725, -0.1468723565, 0.3198465705, 0.0334146619, -0.1648712605, 0.1090423539, -0.0322910026, 0.1054921672, 0.0712449178, -0.1164997295, 0.105309397, 0.2834140658, 0.0281254649, 0.056233678, -0.0553975068, -0.0186001621, -0.0595594607, 0.3683056533, 0.1419217288, 0.3338602781, -0.1206214204, -0.1345631927, -0.5409656763, 0.292311281, -0.2239699513, 0.0809733644, 0.2422300577, -0.0902830884, 0.3014988899, 0.232818976, 0.2796936333, 0.2568820715, -0.0441855453, 0.0666969195, -0.2333853543, -0.0496067628, -0.0624470785, 0.0815428421, -0.1773659438, -0.284425199, 0.2202054262, -0.2628389895, 0.0084859114, -0.0301760901, -0.1314434707, -0.2066946924, -0.3477855325, 0.2716788948, 0.0815996677, 0.3368171155, 0.0401128381, -0.1988704801, -0.316367954, -0.2064466625, 0.0882844478, -0.0846299082, 0.3121272027, 0.4762713611, -0.1441267431, 0.324695766, -0.3888739049, 0.2804833651, 0.0048888018, 0.3377467692, -0.2858344913, 0.1942296624, -0.2582117617, -0.0169331226, 0.2614155412, 0.3332202435, 0.1697106957, 0.1679909974, -0.0677419901, -0.3816129267, 0.5351587534, -0.1083742678, -0.0318189152, 0.2700533867, 0.093596518, 0.0316486396, -0.0005789706, -0.2213091105, 0.1424933076, 0.0519432798, 0.0977687463, -0.1560103297, -0.2733042836, 0.2976016104, -0.2585594058, -0.0808835924, 0.3145340383, 0.0625649914, -0.3507772088, -0.0571558513, 0.3165157735 ]
https://github.com/huggingface/datasets/issues/3822
Add Biwi Kinect Head Pose Database
Official dataset location : https://icu.ee.ethz.ch/research/datsets.html In the "Biwi Kinect Head Pose Database" section, I do not find any information regarding "Downloading the dataset." . Do we mail the authors regarding this ? I found the dataset on Kaggle : [Link](https://www.kaggle.com/kmader/biwi-kinect-head-pose-database) , but since 🤗 does not host any of the datasets, this would require the user to provide their Kaggle username and API key to download. Any inputs on how we could proceed ? Thank you. [ Need your inputs here, @lhoestq or @mariosasko ]
## Adding a Dataset - **Name:** Biwi Kinect Head Pose Database - **Description:** Over 15K images of 20 people recorded with a Kinect while turning their heads around freely. For each frame, depth and rgb images are provided, together with ground in the form of the 3D location of the head and its rotation angles. - **Data:** [*link to the Github repository or current dataset location*](https://icu.ee.ethz.ch/research/datsets.html) - **Motivation:** Useful pose estimation dataset Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
85
Add Biwi Kinect Head Pose Database ## Adding a Dataset - **Name:** Biwi Kinect Head Pose Database - **Description:** Over 15K images of 20 people recorded with a Kinect while turning their heads around freely. For each frame, depth and rgb images are provided, together with ground in the form of the 3D location of the head and its rotation angles. - **Data:** [*link to the Github repository or current dataset location*](https://icu.ee.ethz.ch/research/datsets.html) - **Motivation:** Useful pose estimation dataset Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Official dataset location : https://icu.ee.ethz.ch/research/datsets.html In the "Biwi Kinect Head Pose Database" section, I do not find any information regarding "Downloading the dataset." . Do we mail the authors regarding this ? I found the dataset on Kaggle : [Link](https://www.kaggle.com/kmader/biwi-kinect-head-pose-database) , but since 🤗 does not host any of the datasets, this would require the user to provide their Kaggle username and API key to download. Any inputs on how we could proceed ? Thank you. [ Need your inputs here, @lhoestq or @mariosasko ]
[ 0.0941344947, 0.0514211543, -0.0333518162, 0.2105914205, -0.376519382, 0.4054467082, 0.1258431822, 0.1778405458, 0.2764806747, 0.1559714377, -0.0106995897, -0.179984346, 0.1005421579, 0.1961019039, 0.1111485437, -0.0773014128, 0.0561022758, -0.0838734061, 0.2623635232, -0.2103261203, -0.1619487405, 0.0092649665, -0.0196094401, -0.2681525946, -0.2831791639, -0.4066944122, -0.226045683, 0.1415686458, -0.3369927108, -0.2637181282, 0.4439834058, 0.11567083, 0.1898874193, 0.0742278919, -0.0001192601, -0.1033367813, 0.0527120419, -0.2356937528, -0.0110879689, 0.0576064512, -0.5756689906, -0.2989247143, -0.2486608922, -0.3991958499, 0.0097306026, 0.3580460548, 0.1494076103, -0.182731837, 0.0073734256, 0.161455065, 0.1023986191, 0.1191932485, 0.1586507112, -0.2979940474, 0.2113945782, 0.2969589531, -0.0956250578, -0.0300700087, 0.0477905422, 0.2333861142, -0.0339679495, 0.2189382315, 0.0094930967, 0.0492563322, 0.1390036643, 0.2067006379, 0.1707316339, -0.5475082397, 0.2872775197, 0.0933005884, 0.6698592305, -0.0497612841, -0.2444591969, -0.0092349472, 0.3526723981, 0.073981531, 0.1538797915, 0.5694818497, -0.3432710469, -0.2204055041, -0.3089029789, -0.4445102513, -0.2990525663, 0.0922410637, -0.2237787396, 0.417644918, 0.0990106016, -0.0752854198, -0.0728212819, 0.0359473601, 0.2629647255, -0.0660005584, 0.0584804714, 0.130606696, -0.0943221599, -0.0269616041, 0.0343292505, 0.4317730367, 0.3823194504, 0.0465891846, 0.1844281405, -0.1222571731, -0.1416310817, -0.0143682789, 0.2274149358, -0.2533207834, -0.0255415682, 0.050907813, 0.1600071937, 0.3557752967, 0.3564312458, -0.1078538969, 0.0042363643, 0.0314130262, -0.3505022228, -0.1993350238, 0.2251067162, -0.1601242125, -0.125595063, -0.1053408384, -0.3025932014, 0.013479731, -0.0729357749, 0.227293089, -0.2051985562, -0.1114994138, 0.3086686432, 0.0000369427, 0.0147741921, 0.1204613745, -0.2184099108, 0.1873029619, 0.0362243727, -0.0043380572, 0.2221926302, -0.4249073267, 0.2675151229, -0.1937244534, 0.3881500065, 0.0289628524, 0.0126319993, 0.2062347978, 0.2500223219, 0.3449632525, 0.2377293855, 0.0854476467, -0.3491503894, -0.0723812729, -0.2852597535, 0.2127086818, -0.3035059571, -0.0790794343, -0.3375260532, 0.0435615964, -0.1865535676, -0.2252173722, 0.0499530658, 0.2323067337, -0.0675449744, -0.0884346664, 0.2290558517, 0.4585990012, -0.3232207894, -0.3684557378, 0.4989709556, 0.5692396164, -0.3336054981, -0.0739649236, -0.0151779531, 0.2666885257, -0.1025399864, 0.1621719003, -0.1619493365, 0.3108873963, -0.2691164613, -0.1097046286, 0.2958830893, -0.5843715668, -0.2913611829, -0.6096634269, -0.2002947628, -0.1860062033, 0.0302006956, 0.4294590056, 0.0544615537, -0.2338530421, -0.3288490176, 0.3962262869, -0.261199981, -0.0488908067, 0.1197777539, -0.3265255094, -0.1448609084, 0.2697723806, 0.0960680917, -0.2063265741, 0.4805858433, 0.4230888486, 0.2369404733, -0.0414127745, 0.0713610277, 0.2087297142, -0.1076653674, -0.0816073716, -0.1300687939, 0.120268628, -0.4002212584, 0.0590503626, -0.0167293139, 0.1145128459, -0.3026624918, -0.2708401978, -0.1511598676, 0.103511706, -0.2431458682, -0.0345087722, 0.0656169727, 0.0507442951, 0.3842450976, 0.2510993183, -0.1198475435, 0.1775940061, 0.0061356155, -0.0580159537, -0.6463118792, 0.339084357, 0.1120931134, 0.2071854174, -0.0424403362, 0.3018843532, 0.0889112949, -0.0721221492, 0.2147473395, 0.2220050842, -0.0028939841, 0.2063741237, 0.3781709969, 0.2083508372, 0.3393722177, -0.3275665939, 0.4322512448, -0.2370541543, 0.0434242114, -0.190311566, -0.3089826107, 0.1673778743, -0.3071620166, -0.0096222125, -0.2100953162, 0.1804732382, 0.020882301, 0.1114384159, 0.0605093017, -0.1304569989, -0.0773583204, 0.1498486847, -0.0372278541, -0.1536021382, -0.2907834053, -0.0094874185, 0.4822546244, 0.0490121394, 0.2125633508, -0.144314453, -0.1335880905, -0.0565045029, 0.1677414924, 0.0841449052, 0.0223953407, 0.0121219326, 0.2023932487, -0.1267768592, 0.2541951537, -0.1143807471, 0.0749027878, 0.158656776, -0.0223272666, -0.0721526667, 0.0580789633, -0.0107357586, 0.0067299134, 0.049399171, 0.0365417078, -0.159912169, -0.0806242526, -0.3222394884, 0.1178521812, -0.1496367753, -0.1293907613, -0.2693134546, -0.2574304044, -0.1493403018, 0.110975638, -0.051618848, 0.1877565831, 0.05541794, -0.0744291916, 0.6403452158, -0.0959702209, -0.328540951, -0.0282157362, -0.0771129057, 0.0792465135, 0.0845909715, 0.0377958454, 0.0610026494, 0.428843528, -0.4109117985, 0.5638785958, -0.5343513489, -0.4746135473, -0.0950315595, 0.1391030103, -0.0571639836, 0.2595434189, 0.2581932545, -0.2353051156, -0.1266116947, -0.074653469, 0.2074793577, -0.171009317, -0.0764355958, -0.1416878551, 0.1064481884, 0.1230903044, -0.0413634181, -0.4215524197, -0.1205440164, 0.2479079664, 0.5945839286, 0.0722369105, -0.3230952621, 0.0641537979, 0.1500745267, -0.1412392557, 0.0107906675, 0.0966787338, -0.6578966379, 0.4996115565, -0.269928664, -0.3931701183, 0.436157763, 0.0211408902, 0.3017811775, -0.0139811831, -0.5926598907, -0.1209935471, -0.0033054086, 0.781966269, 0.1388587952, 0.4464098811, 0.4231775701, 0.1131455451, 0.1028362587, -0.1593634784, -0.5519499183, 0.0113383327, 0.2923408151, 0.3630939126, -0.0941945985, -0.1171185747, 0.0785184428, 0.738491714, 0.3325371444, -0.2121269852, -0.0008041086, 0.1544218361, 0.2078675926, 0.1882728785, -0.2735124528, 0.108058773, 0.193696633, -0.067998372, 0.0955046564, 0.1243462563, -0.1446853131, -0.4847531617, -0.2176665515, -0.2286930382, -0.2503573895, -0.319265157, 0.0577412248, 0.2481042743, -0.218585968, 0.0312576294, -0.1443569362, -0.4191484451, 0.2390330583, 0.1339356452, -0.0237458833, 0.0506330542, -0.2506969869, -0.3227424622, -0.352532506, 0.3100244105, 0.1067752093, -0.0107001076, 0.0128939888, 0.0946393013, 0.271914959, -0.1519498527, 0.3553992212, -0.2777015269, -0.0293413624, -0.4018203318, 0.0573308319, 0.1724210978, 0.2197736502, -0.0828846917, 0.1518076062, -0.0981479213, -0.4742473662, -0.2843989432, 0.0828747451, 0.4678201079, 0.0084798271, -0.3408733308, -0.0464916043, -0.0300197322, -0.4772433341, -0.1853362471, -0.0256529097, -0.1612497568, -0.0354967192, 0.4743635058, -0.046010375, 0.0642244145, 0.3931789696, -0.078807883, -0.0543211326, -0.1976354718, 0.5778359771, -0.0255068038, 0.410803169, -0.0789885446, 0.4218088388, 0.6974049211, 0.2335605174, -0.1793620139, -0.1020019948, 0.1582816839, 0.2558416128, 0.3502992094, 0.2234247029, 0.1199846044, 0.2880988717, -0.1303315163, -0.2567512393, 0.0122184176, 0.2467061877, -0.2727804184, -0.3374753892, -0.3052404821, 0.3772102296, 0.0895378739, 0.0825524554, 0.0841389969, 0.4025006294, -0.1522505879, 0.0629438832, 0.4580269158, 1.0340520144, -0.1162131652, 0.0302277338, -0.1079247817, -0.6249095201, 1.0073676109, -0.1301965564, -0.0549995601, -0.122318022, 0.2924104035, -0.2590862513, -0.0612429269, 0.0143062556, -0.3218325675, 0.0117254723, -0.0707417056, -0.1932398379, -0.1068961099, -0.174445495, 0.4901516736, -0.0801797435, -0.3526840508, -0.0554417558, 0.0452475585, -0.28107813, 0.091235809, -0.0442675427, -0.2793384492, -0.1214906871, 0.2140342444, -0.3593364656, 0.1208514124, -0.3466925621, 0.1348420084, -0.364164412, -0.0658082962, 0.1352161467, 0.4880518615, 0.2739380002, -0.0217773654, -0.445296526, 0.3239400387, -0.0574927106, -0.414116472, 0.2746149004, 0.1438497752, 0.1195008159, -0.0701691583, -0.1522785872, 0.2605254054, 0.1078504845, -0.0759033114, -0.2603954971, 0.1638633162, 0.1392305195, 0.0517525561, -0.1801482588, 0.1826573312, -0.1184599102, 0.000487861, 0.0682635233, 0.4443543553, -0.033131931, 0.0941222981, 0.1409493536, -0.1586762816, -0.2123822719, 0.4660410285, -0.1569524407, -0.2375913113, 0.0976496562, 0.2162709981, -0.1330245286, 0.0012349036, -0.0358304977, 0.0320186876, -0.7682159543, -0.2518621087, 0.3504326046, 0.2069012672, -0.2937892675, 0.2942594886, 0.2070790976, -0.3601507843, 0.1010464802, -0.2075520903, -0.2482477129, 0.3894262016, -0.0219843835, 0.3131379783, 0.0342405848, -0.1253769845, -0.0312666558, 0.1852450073, -0.2066931278, 0.0539464131, -0.2050518245, -0.0832911953, -0.0499913916, 0.2411773652, 0.1813886613, 0.0269620065, 0.0147527745, -0.1914392412, -0.308868736, -0.0195458233, 0.0982101411, 0.1978404224, 0.073696278, 0.0205023158, -0.0519876964, -0.6277327538, -0.1253992468, 0.0873260051, 0.0684259906, 0.1848267168, 0.0343208089, -0.0203857124, 0.1212896258, 0.0770964995, -0.3208410144, -0.0086858422, 0.2932102084, -0.0411262102, -0.1200040132, 0.0534571223, -0.2636511922, -0.1102252305, 0.4672061205, 0.2948861122, 0.1038614064, 0.0301900115, 0.4301929176, -0.0960784405, 0.1330244243, 0.2521173358, 0.0064949184, 0.0156472921, -0.1502498686, 0.0739029497, -0.1226496398, 0.1142096743, -0.2699340284, -0.1403426081, -0.0799717382, 0.0912665427, -0.054730054, 0.3927519321, 0.2273034453, 0.0386088192, 0.0737680122, -0.0046729045, -0.0217460152, -0.3738799989, 0.1243041605, 0.3837042153, -0.2020488083, 0.1116886064, 0.2218186408, 0.534098208, -0.0507072099, 0.1831047535, 0.0205956064, 0.3021988273, 0.4935665727, -0.2608445585, 0.3487219214, -0.2015127242, 0.4240610301, 0.084184289, 0.3157956004, 0.0695117265, 0.0726734549, -0.0097034769, -0.0290404223, -0.0330810286, -0.3646168113, 0.0565151125, 0.0421540812, 0.2865552902, -0.3993334472, -0.2654203475, -0.0111233816, 0.123057425, 0.1510085166, -0.4752569497, 0.2632128298, -0.0442797616, -0.2202738822, -0.1210090294, -0.0011152505, 0.0333303697, 0.3100727499, -0.1180844605, 0.1928517073, 0.1412592381, -0.2263348997, 0.2165949494, 0.4811115265, -0.0058611319, 0.0037332634, 0.0416052639, 0.4955739677, 0.2698547542, -0.2059394717, 0.1965375841, 0.2651031911, 0.2492858917, -0.0446762331, 0.1528970897, 0.0740530565, -0.0543555021, -0.0577193387, 0.1235767007, 0.0504680239, -0.0950260237, 0.1682279855, -0.5067197084, -0.1862798482, -0.1268650889, 0.029336229, -0.1499526799, -0.2780543566, 0.1805157512, -0.1641841978, -0.0963852555, -0.2853677571, 0.0067923549, -0.0167292412, 0.3905350566, 0.4442763925, 0.2618546486, -0.1252668053, -0.0712751299, -0.2768112421, -0.0559564494, 0.2772008181, -0.3076072037, 0.0636346862, 0.2703670263, 0.0444672666, -0.0078702634, 0.1054247171, -0.3644639552, 0.5541276932, 0.2049053758, -0.2485292256, -0.1316935569, -0.1047552675, 0.0673791096, -0.0125419721, -0.1110535711, 0.2266282439, -0.2577795386, -0.0949743837, -0.2298426479, -0.1187986508, 0.0197272655, 0.4046797752, 0.2708373964, -0.1492461115, 0.2449425161, -0.1583341062, -0.1343679577, -0.2762105465, 0.1452668607, -0.1286010593, 0.3109965324, -0.0570160076, 0.4902239144, -0.0516580008, -0.1711472422, 0.0887870044, -0.0844151452, -0.0377170034, 0.2073192447, -0.0886128694, -0.0493010506, -0.2973868251, 0.063381575, 0.6342898607, 0.0796813741, -0.0892238095, -0.0607157014, -0.1361341774, -0.2247407436, 0.3609425724, 0.0180363227, -0.1144025922, 0.2246612608, 0.2120931596, -0.0191978365, 0.0330108926, -0.7726346254, 0.3557832241, 0.2965498269, -0.0656459183, -0.1471960694, 0.3104008734, -0.0736137033, -0.079750821, -0.1645938009, 0.380908519, -0.2124832869, -0.222734049, -0.0831104144, -0.2689836621 ]
https://github.com/huggingface/datasets/issues/3820
`pubmed_qa` checksum mismatch
Hi @jon-tow, thanks for reporting. This issue was already reported and its root cause is a change in the Google Drive service. See: - #3786 We have already fixed it. See: - #3787 We are planning to make a patch release today. In the meantime, you can get this fix by installing our library from the GitHub master branch: ```shell pip install git+https://github.com/huggingface/datasets#egg=datasets ``` Then, if you had previously tried to load the data and got the checksum error, you should force the redownload of the data (before the fix, you just downloaded and cached the virus scan warning page, instead of the data file): ```shell load_dataset("...", download_mode="force_redownload") ```
## Describe the bug Loading [`pubmed_qa`](https://huggingface.co/datasets/pubmed_qa) results in a mismatched checksum error. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug import datasets try: datasets.load_dataset("pubmed_qa", "pqa_labeled") except Exception as e: print(e) try: datasets.load_dataset("pubmed_qa", "pqa_unlabeled") except Exception as e: print(e) try: datasets.load_dataset("pubmed_qa", "pqa_artificial") except Exception as e: print(e) ``` ## Expected results Successful download. ## Actual results Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.9/site-packages/datasets/load.py", line 1702, in load_dataset builder_instance.download_and_prepare( File "/usr/local/lib/python3.9/site-packages/datasets/builder.py", line 594, in download_and_prepare self._download_and_prepare( File "/usr/local/lib/python3.9/site-packages/datasets/builder.py", line 665, in _download_and_prepare verify_checksums( File "/usr/local/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1RsGLINVce-0GsDkCLDuLZmoLuzfmoCuQ', 'https://drive.google.com/uc?export=download&id=15v1x6aQDlZymaHGP7cZJZZYFfeJt2NdS'] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: macOS - Python version: 3.8.1 - PyArrow version: 3.0.0
109
`pubmed_qa` checksum mismatch ## Describe the bug Loading [`pubmed_qa`](https://huggingface.co/datasets/pubmed_qa) results in a mismatched checksum error. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug import datasets try: datasets.load_dataset("pubmed_qa", "pqa_labeled") except Exception as e: print(e) try: datasets.load_dataset("pubmed_qa", "pqa_unlabeled") except Exception as e: print(e) try: datasets.load_dataset("pubmed_qa", "pqa_artificial") except Exception as e: print(e) ``` ## Expected results Successful download. ## Actual results Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.9/site-packages/datasets/load.py", line 1702, in load_dataset builder_instance.download_and_prepare( File "/usr/local/lib/python3.9/site-packages/datasets/builder.py", line 594, in download_and_prepare self._download_and_prepare( File "/usr/local/lib/python3.9/site-packages/datasets/builder.py", line 665, in _download_and_prepare verify_checksums( File "/usr/local/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1RsGLINVce-0GsDkCLDuLZmoLuzfmoCuQ', 'https://drive.google.com/uc?export=download&id=15v1x6aQDlZymaHGP7cZJZZYFfeJt2NdS'] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: macOS - Python version: 3.8.1 - PyArrow version: 3.0.0 Hi @jon-tow, thanks for reporting. This issue was already reported and its root cause is a change in the Google Drive service. See: - #3786 We have already fixed it. See: - #3787 We are planning to make a patch release today. In the meantime, you can get this fix by installing our library from the GitHub master branch: ```shell pip install git+https://github.com/huggingface/datasets#egg=datasets ``` Then, if you had previously tried to load the data and got the checksum error, you should force the redownload of the data (before the fix, you just downloaded and cached the virus scan warning page, instead of the data file): ```shell load_dataset("...", download_mode="force_redownload") ```
[ -0.0026249781, 0.1502344012, -0.0901137516, 0.1827036589, 0.303847611, -0.052858986, 0.2118268609, 0.3324446678, 0.0343839563, 0.1883317232, -0.0766895041, 0.1153618395, 0.3035593629, 0.0669022799, 0.0802896619, 0.0465416312, 0.0497064032, -0.0326129794, -0.017424209, -0.020458173, -0.2244304717, 0.3450913429, -0.2007197589, -0.0885898024, 0.4203205109, 0.0858869702, 0.2313582599, 0.169588089, -0.0631338879, -0.3160686791, 0.122203961, 0.0863687098, -0.2612048686, 0.5264264345, -0.0001103089, 0.0344840176, 0.3809785247, -0.016994698, -0.2685241103, 0.0333844945, -0.2106979787, -0.2016788274, -0.1557296067, -0.2083813399, 0.0900616646, -0.120665431, -0.079278551, -0.1835963726, -0.1101809889, 0.2240871191, 0.2462406754, 0.5687361956, 0.1278003156, -0.079131566, 0.1922242045, -0.4594304264, 0.1090764478, 0.4872736931, 0.4018705487, 0.1178182438, 0.1158603653, 0.2178651541, -0.1647205949, -0.0780975223, 0.1283899695, 0.0525797866, 0.0142566534, -0.0145609779, 0.1534485966, 0.3935365975, 0.138975516, -0.3990595937, -0.3674913645, -0.1277901679, -0.0702861547, -0.0017434438, 0.3739834428, 0.0878923759, -0.1285223365, -0.0528366193, -0.1974689215, 0.1455551088, 0.1516221911, -0.0219794624, -0.0003776549, 0.0259034131, 0.0400113538, 0.0043403949, -0.0073261005, -0.0287415907, -0.0159017295, -0.1487454325, -0.0068126898, 0.0652955472, -0.3758664429, -0.0783470571, 0.0088743428, 0.1867602766, 0.4948836267, 0.4220804572, 0.2280326784, 0.1475583911, -0.0596163273, 0.0582184047, 0.0429626554, 0.0027748377, -0.133525759, 0.2007652819, 0.3923037052, 0.5517104864, 0.0345013104, 0.0858489871, 0.1782538444, -0.1993532032, 0.3639612198, 0.157954812, 0.1357574761, -0.4726054966, -0.3926685154, 0.2499886006, 0.0634562224, -0.145926699, -0.1217160746, 0.3019624352, -0.189856723, -0.0783416778, 0.0793355703, 0.1711893231, -0.3312102556, -0.0188763011, -0.2691604495, -0.1015063226, -0.0265914276, -0.0181249417, 0.1537374109, -0.3991447389, 0.3094806373, -0.1782107651, 0.2519921362, -0.1236377358, 0.065164648, 0.0155563187, -0.1878654957, 0.381911844, -0.0464066304, 0.0987263247, 0.1738620847, -0.1328560263, -0.142281875, 0.0405222103, -0.1885633916, -0.0477260277, -0.1744929999, 0.2967730165, -0.2863497138, -0.0524323955, -0.183113575, -0.2661021352, 0.2263148427, -0.3986723125, 0.0449798852, -0.08935038, -0.1263543665, -0.2974004745, 0.4194729924, 0.218929559, 0.0201688185, -0.12335518, -0.0673746541, -0.172315523, 0.0426776186, 0.2151161134, -0.048320882, 0.0827603191, -0.2745405734, 0.0193221327, 0.1840739846, -0.5328788757, -0.7661892176, -0.1329650581, 0.0261428468, 0.1692039371, 0.0028228723, -0.0657260418, 0.0554983951, -0.207824707, 0.1561964601, 0.2263737768, 0.0469168052, 0.2051308602, -0.4043136537, -0.3778977394, 0.0578209311, 0.1304062009, 0.0679548755, -0.0262512863, 0.3796048462, -0.0651818812, 0.3314708769, 0.0231579803, -0.2612693906, 0.1637848467, 0.2633995414, -0.0850046948, 0.1477191746, -0.3369230926, -0.3175119758, 0.4038660526, -0.3184612989, 0.1423314661, -0.3370382786, -0.2060530633, -0.42667979, -0.1250558794, -0.0500601903, -0.1250366271, 0.1738368869, 0.2788873911, 0.1509411186, 0.3079705238, -0.0776698142, -0.0301155485, -0.2269473821, 0.137152493, -0.4714036286, 0.2691248655, -0.1356674135, -0.0065414459, 0.1588380635, 0.1832669526, 0.0389535837, 0.0562338419, -0.1083952934, 0.5022916198, -0.066712454, 0.2418552041, 0.1468857527, 0.1739689708, 0.0576413125, -0.3471580446, -0.0905515254, 0.3580245972, 0.2346954048, 0.0541057065, -0.1796024889, 0.2575968504, -0.2281070799, 0.0152468886, 0.0334696695, -0.0984365642, 0.2091040909, -0.044180911, -0.1490540206, -0.2471698672, 0.3133169711, 0.3841621578, -0.1194545478, -0.0515967421, 0.0100298105, 0.0925336108, 0.4808618128, -0.2687680125, -0.0293682665, -0.0976506621, -0.0070053916, 0.0752708018, -0.0591620356, 0.3960862458, 0.3434847295, 0.1565674841, 0.0479348861, 0.1654676795, -0.1657170355, -0.2134303749, 0.0139212105, 0.0843566284, 0.0144022685, 0.3533492982, 0.1549678892, 0.049713511, -0.1387681961, 0.0805102363, 0.012654773, 0.184430331, -0.516888082, 0.0290000495, -0.2334519178, 0.0703492612, -0.3359555304, -0.0452866443, -0.2127529234, -0.3675153255, -0.0572512373, 0.2249248028, -0.0751385018, 0.2436243147, -0.3425509632, 0.0516193546, -0.0065371515, -0.4962708056, 0.2402110994, 0.1743940711, -0.0533209369, 0.1112091988, 0.3545042276, 0.1013081595, 0.4781611562, -0.3472070694, -0.1323993802, -0.3636714816, -0.4309229553, 0.0484449379, -0.1348739415, 0.529869616, 0.2115855515, 0.0810502917, 0.0510994792, -0.1143640205, 0.2148192376, -0.026770426, -0.3574826419, 0.2004788965, 0.1229525805, 0.0308585539, -0.0013483289, -0.3538349867, 0.0718203261, -0.2202579379, -0.3336039484, -0.1184885129, 0.1804867238, 0.0028021957, -0.0813712999, 0.1224870905, -0.028011566, 0.279973954, -0.309363544, -0.3594479561, 0.3444039524, 0.0307574756, -0.4610400796, -0.0786340311, 0.0264563281, 0.0677834526, 0.2043425143, -0.5702887177, -0.4192377031, -0.1666986048, 0.0692161322, 0.2069514841, -0.0335253365, 0.2707752585, -0.1066513434, -0.1019371375, -0.1528158337, -0.2389532775, 0.0679608956, -0.2102670074, 0.3185427785, -0.092804499, 0.1813012362, -0.0767412409, 0.588696301, 0.4875960946, 0.0557858683, 0.1298520863, 0.0581746697, 0.4549062848, -0.03655627, -0.1437530071, -0.0306544323, 0.0940683931, 0.2014573961, 0.2350603342, -0.0764056519, 0.1526726633, -0.0956346244, -0.1207929701, -0.4975615442, -0.3683647215, -0.0402925313, -0.2521105409, 0.2129117846, 0.071669668, 0.1064313352, 0.0465834886, -0.2060692608, 0.2552363276, 0.4480427802, -0.1977404356, -0.0226145554, -0.2280346006, -0.1321951449, -0.147527054, 0.2992931902, 0.1591038555, 0.3050867319, -0.0466566905, -0.2199051529, 0.007517417, -0.2153013349, 0.3735542595, -0.3341570199, 0.333019942, 0.0655172765, 0.2024062425, -0.2136638612, -0.1614277959, -0.114835389, -0.2331018895, -0.0434255302, 0.3547385037, -0.4409036338, 0.2001453936, 0.2800093889, 0.2469725758, -0.2074751556, -0.1774331331, -0.4695775509, -0.5096510649, -0.5273477435, -0.100480184, -0.0928748474, 0.302739948, -0.1784527153, -0.0956302881, 0.0692121238, 0.0368207432, 0.1065999418, 0.1342200935, 0.3872177899, -0.0730235875, 0.3340388536, 0.0711401775, -0.0675181448, 0.2179123908, 0.7537617087, -0.2964293361, -0.2526217997, -0.069564119, -0.1397638768, -0.2937844992, 0.1792844683, -0.1017571986, 0.1609551162, 0.4952754974, -0.0138676288, -0.0027669747, -0.138767451, 0.1707001626, 0.1298695952, -0.1721715629, -0.305963546, 0.2878883779, 0.0079271505, -0.1431861371, 0.1703276336, 0.4125828445, -0.2227496505, 0.1642688513, 0.1169693619, 0.894582212, -0.1503621489, -0.0489504151, 0.2460404187, -0.1624917239, 0.239497602, 0.1434447467, 0.0446565337, -0.4514522552, -0.6278318763, 0.0088287145, -0.1185050234, 0.0386456661, -0.2326886952, -0.1143609285, 0.3001151085, -0.1078100428, 0.1345793158, 0.2466001064, 0.0676577538, -0.2649535537, 0.1443075538, -0.2659947574, 0.2119426727, -0.0516845696, 0.1371227801, -0.1674667746, 0.1504170448, -0.3039942682, -0.2038091272, -0.3843487501, 0.1956379265, 0.0345806815, -0.0587425157, 0.3326114714, -0.1008891836, -0.1697355062, 0.1543464363, 0.3518927693, 0.2844885588, -0.2241057158, 0.1758495867, 0.0448532924, 0.10623914, 0.2045329362, -0.1544385999, 0.4437108636, -0.1645072699, -0.351734817, 0.1287895888, 0.0292435084, -0.4660774767, -0.0046458915, -0.1088218912, -0.1360123605, -0.1601656526, 0.021099437, -0.1812039465, 0.1112634465, -0.1653357148, 0.1779844016, 0.1958697289, -0.0552918315, 0.2607036233, 0.2099144608, -0.3570988774, -0.0437290668, 0.420278728, 0.2259164751, -0.1566365361, 0.4615396261, -0.0527348556, -0.1133595183, -0.1767658889, -0.2914076746, -0.1035618037, -0.2328338027, 0.0500126258, -0.3835843801, 0.1589874625, 0.0723627433, 0.4081910253, 0.2638124228, -0.1359486878, 0.1155504063, -0.7190187573, 0.0571981147, 0.203416422, -0.0085890573, 0.1618444324, 0.1197126284, -0.1078365967, -0.1758804917, -0.1203037575, -0.377789557, 0.1200843155, -0.2994731367, -0.0514950827, -0.0099732261, 0.1008838192, 0.2923786342, -0.0969370529, 0.1748334318, 0.133780852, -0.0370944887, -0.2587073743, -0.0690329224, 0.1461732537, -0.01386113, -0.0708711818, 0.0680611953, -0.125745073, -0.0198683199, -0.1117671654, 0.2377483547, -0.0286357217, 0.0584427305, -0.1672598422, 0.1593702585, 0.1857200563, -0.0630164444, 0.0354896411, -0.4569388032, -0.02171956, 0.1515977681, 0.0356582254, -0.1651496738, 0.053586185, 0.2203829587, 0.2402390689, 0.2298699319, 0.2127240747, 0.4325380027, -0.1080611199, -0.0619401112, 0.2405744195, 0.2936141193, 0.2622773647, -0.6192499995, -0.2854440808, 0.085803099, 0.2788311243, -0.3973078728, 0.0020444302, -0.2458651662, -0.1314217597, 0.0083031589, 0.2014197856, 0.1408410817, -0.3015935123, 0.171531111, 0.1203651279, 0.5387967825, -0.1289633065, 0.1249227747, 0.1889270991, -0.0182112958, 0.0742600188, 0.1790251285, -0.2076654285, -0.0956135467, 0.0186027475, 0.0373079255, 0.2332402766, -0.2499923259, 0.0775655806, -0.1768734306, -0.361528337, 0.5529688001, 0.3551421165, 0.033343222, 0.1458971649, 0.2772227526, 0.1343822777, -0.158677429, 0.2749403119, -0.4358689189, 0.0958828256, 0.0637401193, -0.0416765176, -0.1085782349, -0.3106750548, 0.0006767666, 0.0981581733, 0.0230421592, -0.1629488915, 0.0438686907, -0.0419674926, -0.3954894841, -0.5578053594, -0.0685887113, 0.038425535, 0.2474293411, -0.2092491686, 0.2065282017, 0.2459986061, -0.0827294961, 0.2738959789, 0.4361353517, 0.2642965615, 0.1834424287, 0.1170779094, -0.1509222239, 0.0726163164, 0.2004087865, 0.117679581, 0.3958210945, 0.0396190025, 0.0442034863, 0.3996728957, 0.2249960303, -0.1926324219, -0.0878990889, 0.0669955984, 0.1105531901, -0.1534329951, 0.4179057479, -0.3064267337, 0.2961877882, -0.1843957901, 0.0856363401, -0.4674463272, -0.1483746469, 0.1100297496, 0.090135403, 0.2098993212, -0.0777599365, 0.1194563732, 0.2190877199, 0.4410602152, 0.2902701497, 0.0125501901, -0.084623605, -0.2164401859, -0.8468667865, 0.45023489, -0.0127155529, 0.0627815574, -0.0559789352, 0.06056289, 0.0696063638, 0.0958905146, 0.3606429696, 0.1257355809, -0.1772328764, -0.0804856569, -0.252814889, -0.4541129172, -0.1726872921, -0.2853082418, -0.1514486521, -0.3142205179, 0.1973397732, -0.1746144593, 0.1525475383, 0.0901074037, -0.1343618035, 0.1489249021, 0.0297805183, 0.3062994778, 0.2348193973, 0.465659678, -0.0911541432, -0.3071609139, -0.1143492833, 0.0813346058, -0.2999769449, 0.4516861141, -0.0496537536, 0.1025941819, 0.1958928406, -0.076428555, -0.120342344, 0.488035053, 0.1137423813, -0.3558675349, -0.318879813, -0.0272035971, 0.2302909344, -0.1772958189, 0.0633278266, 0.0477587283, 0.058173608, 0.4495607913, -0.1602635533, -0.3871804476, 0.3369973004, -0.1490029395, 0.0249808524, 0.0041611074, 0.2970675528, -0.4105067849, -0.1290943623, -0.9376075268, 0.1682419926, 0.3792922497, -0.0079422416, -0.0933455974, 0.2466647476, -0.2413898855, 0.0969300419, -0.02278818, 0.1518229842, 0.0326646343, -0.2888322473, 0.0817064941, -0.0447711162 ]
https://github.com/huggingface/datasets/issues/3818
Support for "sources" parameter in the add() and add_batch() methods in datasets.metric - SARI
Hi, thanks for reporting! We can add a `sources: datasets.Value("string")` feature to the `Features` dict in the `SARI` script to fix this. Would you be interested in submitting a PR?
**Is your feature request related to a problem? Please describe.** The methods `add_batch` and `add` from the `Metric` [class](https://github.com/huggingface/datasets/blob/1675ad6a958435b675a849eafa8a7f10fe0f43bc/src/datasets/metric.py) does not work with [SARI](https://github.com/huggingface/datasets/blob/master/metrics/sari/sari.py) metric. This metric not only relies on the predictions and references, but also in the input. For example, when the `add_batch` method is used, then the `compute()` method fails: ``` metric = load_metric("sari") metric.add_batch( predictions=["About 95 you now get in ."], references=[["About 95 species are currently known .","About 95 species are now accepted .","95 species are now accepted ."]]) metric.compute() > TypeError: _compute() missing 1 required positional argument: 'sources' ``` Therefore, the `compute() `method can only be used standalone: ``` metric = load_metric("sari") result = metric.compute( sources=["About 95 species are currently accepted ."], predictions=["About 95 you now get in ."], references=[["About 95 species are currently known .","About 95 species are now accepted .","95 species are now accepted ."]]) > {'sari': 26.953601953601954} ``` **Describe the solution you'd like** Support for an additional parameter `sources` in the `add_batch` and `add` of the `Metric` class. ``` add_batch(*, sources=None, predictions=None, references=None, **kwargs) add(*, sources=None, predictions=None, references=None, **kwargs) compute() ``` **Describe alternatives you've considered** I've tried to override the `add_batch` and `add`, however, these are highly dependent to the `Metric` class. We could also write a simple function that compute the scores of a sentences list, but then we lose the functionality from the original [add](https://huggingface.co/docs/datasets/_modules/datasets/metric.html#Metric.add) and [add_batch method](https://huggingface.co/docs/datasets/_modules/datasets/metric.html#Metric.add_batch). **Additional context** These methods are used in the transformers [pytorch examples](https://github.com/huggingface/transformers/blob/master/examples/pytorch/summarization/run_summarization_no_trainer.py).
30
Support for "sources" parameter in the add() and add_batch() methods in datasets.metric - SARI **Is your feature request related to a problem? Please describe.** The methods `add_batch` and `add` from the `Metric` [class](https://github.com/huggingface/datasets/blob/1675ad6a958435b675a849eafa8a7f10fe0f43bc/src/datasets/metric.py) does not work with [SARI](https://github.com/huggingface/datasets/blob/master/metrics/sari/sari.py) metric. This metric not only relies on the predictions and references, but also in the input. For example, when the `add_batch` method is used, then the `compute()` method fails: ``` metric = load_metric("sari") metric.add_batch( predictions=["About 95 you now get in ."], references=[["About 95 species are currently known .","About 95 species are now accepted .","95 species are now accepted ."]]) metric.compute() > TypeError: _compute() missing 1 required positional argument: 'sources' ``` Therefore, the `compute() `method can only be used standalone: ``` metric = load_metric("sari") result = metric.compute( sources=["About 95 species are currently accepted ."], predictions=["About 95 you now get in ."], references=[["About 95 species are currently known .","About 95 species are now accepted .","95 species are now accepted ."]]) > {'sari': 26.953601953601954} ``` **Describe the solution you'd like** Support for an additional parameter `sources` in the `add_batch` and `add` of the `Metric` class. ``` add_batch(*, sources=None, predictions=None, references=None, **kwargs) add(*, sources=None, predictions=None, references=None, **kwargs) compute() ``` **Describe alternatives you've considered** I've tried to override the `add_batch` and `add`, however, these are highly dependent to the `Metric` class. We could also write a simple function that compute the scores of a sentences list, but then we lose the functionality from the original [add](https://huggingface.co/docs/datasets/_modules/datasets/metric.html#Metric.add) and [add_batch method](https://huggingface.co/docs/datasets/_modules/datasets/metric.html#Metric.add_batch). **Additional context** These methods are used in the transformers [pytorch examples](https://github.com/huggingface/transformers/blob/master/examples/pytorch/summarization/run_summarization_no_trainer.py). Hi, thanks for reporting! We can add a `sources: datasets.Value("string")` feature to the `Features` dict in the `SARI` script to fix this. Would you be interested in submitting a PR?
[ -0.4188570678, 0.2724249363, -0.0092955474, -0.1095037237, 0.1228538156, -0.0708656386, 0.2320678234, 0.2151487321, -0.1837127805, 0.2203431129, -0.2901642919, 0.2855444551, 0.1346973926, 0.0324126184, 0.0896022469, -0.3678044677, 0.0503035076, 0.1437144727, -0.0944617316, 0.1511003226, -0.5576463938, 0.0884082094, -0.1839936227, -0.239821434, -0.1274913251, 0.0271714777, -0.2369704247, -0.1809158027, -0.2423044294, -0.5351156592, 0.212813437, 0.1841915548, 0.0300274957, 0.32877931, -0.0001185521, 0.1109371334, 0.2762511969, -0.132873565, -0.4383607805, -0.1820883602, -0.3840429187, -0.2386551052, -0.2554565072, -0.2883082628, -0.0669751912, 0.101483874, -0.2451186478, -0.0378110595, -0.1235948205, 0.2556289136, 0.1296488941, 0.436493963, 0.1177333295, -0.3196767271, 0.1126789898, 0.1221244857, -0.2314323336, 0.1621472538, 0.2862775028, 0.2523856759, 0.1044623181, 0.357545495, -0.1011637002, -0.1528927386, 0.3361629844, 0.1865538359, 0.2177976817, -0.112414889, 0.072144933, -0.0221291482, 0.4007413387, -0.2246418446, -0.7027823329, -0.1128433719, 0.0156835634, -0.4567685723, -0.1005975828, 0.0173967034, -0.370431006, 0.0589393713, -0.2042919248, -0.2757097185, -0.4550824165, -0.0204547085, 0.2664701641, 0.480687499, -0.0108990306, 0.1277373731, 0.2977893651, -0.1493106335, -0.2083182931, -0.2281208038, -0.0354336835, 0.2015784234, -0.2583949864, -0.1311886758, 0.0373130217, 0.2627393603, 0.3208864331, -0.1454827785, -0.1214293987, 0.0887123719, 0.1068652943, 0.1863660365, 0.0315010622, 0.1831671, 0.1211114228, 0.128656283, 0.1919878572, 0.140594393, 0.4344312251, -0.1230262965, 0.3087743521, -0.5872985721, 0.1333308816, 0.0711452216, 0.1389214844, 0.0042201658, -0.0917381272, -0.2361578047, 0.1970169991, -0.2742693126, 0.3080245554, 0.1325075179, 0.0801051632, 0.2156479955, 0.0563334972, 0.3079833388, 0.0338776782, -0.2010414749, -0.1755244136, 0.1349954009, -0.3487781286, 0.3339532018, 0.0842801854, -0.4369001389, 0.2398523837, 0.1866851151, 0.3053177297, 0.2414406985, -0.1046386883, -0.0915887356, 0.0677317753, 0.2685291767, -0.1755869389, -0.1076951027, -0.0455672406, -0.0763390511, -0.1254889965, 0.2220956385, -0.3980188072, -0.2488850504, -0.0216516145, 0.0888484493, -0.2236713171, 0.0860222504, -0.4042805135, 0.4411891103, -0.0536085106, -0.1159335226, -0.1312451065, 0.024575267, -0.439568609, -0.2581740022, 0.4780133069, 0.3768756986, -0.2705854774, -0.2682242095, 0.0152600063, -0.2777919173, -0.0001743717, -0.0487129427, -0.1349849701, 0.2266245782, -0.0900653228, 0.0091335615, 0.4235929847, -0.6044471264, -0.2491820604, 0.1749854386, 0.2629354596, 0.0213299282, 0.2808436155, 0.2441940457, 0.3655674458, -0.1035804302, 0.58320719, -0.0100743743, 0.0577994063, -0.1951376349, -0.0983804837, -0.215464741, -0.3887763321, 0.1491800994, 0.3146129251, 0.2870125771, 0.1172081903, -0.2743911743, 0.1582756191, -0.2240351588, 0.1490289271, 0.210322395, 0.428442955, -0.1786860973, 0.0095947543, -0.4675134122, -0.1849883646, 0.235361442, -0.0387836061, 0.1429478228, -0.1661320925, -0.233710289, -0.4295107424, 0.2337549627, 0.0730379671, 0.1595890522, 0.0083178664, 0.0193770565, 0.1887285411, -0.0650200993, -0.1504932493, -0.0511035696, -0.0218408238, 0.1324142814, -0.0735512078, 0.2290124297, 0.0087167397, -0.2423765361, 0.1229097992, 0.2345897704, 0.3444212675, -0.005803437, 0.0699786991, 0.4360875785, -0.1422572583, 0.2842973769, 0.1106192395, 0.4046298862, 0.2912037671, 0.1582603604, 0.0404241942, -0.355653882, 0.1786971092, -0.0360756069, 0.0573327951, 0.3717135191, -0.0458058119, 0.2234574705, 0.0395644978, 0.0530335866, 0.3049706221, -0.0233937651, -0.3434019089, -0.3567791879, -0.1145394146, -0.3208927214, -0.0697285682, -0.0580250844, -0.1654669493, -0.0241014566, 0.1833823919, -0.015596427, 0.120432198, 0.0668272078, -0.073001273, 0.0985991508, -0.135738492, 0.0695262626, 0.5584737659, 0.1500828862, -0.0911996961, -0.0373592414, -0.0241184123, -0.2028726935, 0.2230866998, 0.247009322, -0.2515797913, 0.1927698106, -0.0019769452, 0.0067642657, 0.0543680936, 0.1213757396, 0.0380903259, 0.0263196696, -0.3169481456, -0.0031071235, 0.043769978, 0.1455574483, -0.2943176031, -0.4739556015, 0.0568016879, -0.0962100998, 0.0918492228, 0.1123279855, 0.0360781997, 0.2308141887, -0.0924544185, 0.4944138229, -0.0593256541, -0.3651406467, -0.1701655537, -0.1873134971, 0.1883336753, 0.0158795621, -0.0531544834, 0.0299406815, 0.3106328249, -0.1446075886, 0.2041735202, -0.465036869, -0.4353865087, -0.0289643798, 0.0004463665, 0.7503470182, 0.2831507325, -0.0092194797, 0.136537075, -0.1327081919, 0.296518445, -0.0779575855, 0.1647881269, -0.1711975187, -0.2469158024, -0.1490930021, -0.2791827023, -0.2390077114, -0.0450830609, -0.2869668007, -0.2676414847, -0.1203173697, -0.1854649335, 0.1274612248, 0.4413747489, 0.195352152, 0.3598145843, -0.0427216738, -0.0141190914, -0.3076483905, 0.6466606855, -0.3484896123, -0.2277253717, 0.1127130389, -0.2207896858, 0.3151364625, 0.4210929573, -0.1847182512, -0.6845132709, -0.1306389123, 0.2173568904, 0.0551279485, 0.210615471, 0.07816948, 0.0405419245, -0.0389557034, -0.291051209, -0.541805923, 0.1473374367, -0.2379997373, 0.1455720216, 0.2954826057, 0.4121638238, -0.004101601, 1.1683142185, 0.0577900819, -0.2287494987, 0.1821617633, 0.3092636168, 0.4385363758, 0.3150938451, -0.3524238467, 0.2687490284, 0.1835826933, 0.0522748902, 0.0897949636, 0.2009445131, 0.1160587668, -0.3454355896, -0.2579373121, -0.1142811999, -0.243895784, 0.0573165305, 0.2957511544, 0.8740596771, -0.1203410029, 0.1087318659, -0.4995089471, -0.1224758923, -0.109537296, 0.2359758466, 0.3663057983, -0.1178420931, -0.316283077, 0.1505136043, -0.5581770539, 0.360462606, 0.2752198279, 0.1755860746, -0.0771232694, 0.2998442352, -0.0510993712, 0.0491788611, 0.4413939118, -0.2446662188, -0.1455822736, -0.1387904137, -0.1109325588, -0.3128044009, 0.0853614807, -0.0220029373, 0.0805801749, 0.0380798206, 0.6715146303, -0.4198099673, -0.1815273017, 0.3010108471, 0.1576238126, -0.1056080088, -0.2584737241, -0.2796652317, -0.3872826695, -0.0925729573, 0.0182473753, 0.170243293, 0.1976525486, 0.1540756971, -0.0602812357, 0.18772237, 0.0684689358, 0.2498713732, 0.0781470165, 0.0441871546, 0.3356934488, 0.1431898177, 0.0124886902, -0.1678510308, 0.593716085, 0.359801054, -0.5014068484, -0.6765730977, -0.1656689346, -0.0053056469, 0.4782356322, 0.2610815167, -0.1754037142, 0.2721252739, 0.0404676907, -0.0439799353, -0.2732144892, -0.0928817615, 0.4048778415, -0.0060182051, -0.2668345571, -0.3853677511, 0.2860565186, 0.2028251737, -0.1247773543, 0.0575089268, 0.2685805261, -0.2931140363, -0.1260361522, 0.2827648818, 0.8093622923, 0.1849649101, -0.1987417042, 0.2373571992, -0.3912991583, 0.173537448, 0.3258040249, 0.196446687, -0.0715219378, -0.1676861942, 0.0033901052, -0.1912415177, 0.2198758125, 0.0391988941, -0.2002632022, 0.1879970729, -0.262717098, -0.0207862929, 0.193449825, 0.0626147985, 0.0155754862, -0.3994121253, -0.1405239403, 0.1267430484, -0.1385297179, -0.2877708972, -0.1625532061, -0.3271583915, 0.231189996, -0.0307224691, -0.2496199906, -0.1372492462, 0.0416251123, -0.1120521352, 0.4278144836, -0.1560522169, 0.3618403673, 0.4231205881, 0.6328619123, -0.0470049791, -0.0190402027, 0.2865562141, -0.5811445117, 0.1091978848, -0.0695248544, 0.0211543813, 0.3637413085, -0.1128058881, -0.2683667243, 0.3951807916, 0.0380441695, -0.4126927853, -0.4083384275, -0.1285869032, 0.1550991386, -0.1274903268, -0.0171378739, -0.0913219526, 0.145759657, -0.1762225628, 0.0560123026, 0.0455905572, -0.1964067817, 0.3602042496, -0.3595478833, -0.0421959274, 0.1359839886, 0.3274926543, -0.0708404258, -0.3127803504, 0.1771444529, -0.209814772, -0.1180575714, -0.036436379, -0.299982667, -0.4740269184, -0.1864714921, 0.3557361364, 0.5639718771, 0.2545345426, 0.0353913382, 0.4465864003, -0.0116801579, -0.0004460505, -0.0947292969, -0.3009783924, -0.0858173445, 0.10689722, -0.1283161193, 0.0593386665, -0.0455943085, -0.1575060636, -0.0142669426, 0.2850861251, -0.2998135388, -0.1791308224, -0.1738781184, 0.1690597832, 0.2116369158, 0.0805575475, 0.0373448208, 0.1546747983, -0.0308614224, -0.0432401113, -0.2993810475, -0.056006901, -0.2180894464, 0.1570655406, -0.1570738107, 0.0631045923, -0.029802667, -0.0698799193, -0.0987458974, -0.0464133397, 0.2455899119, 0.5867990851, -0.2052562982, 0.1078127399, -0.0015991507, 0.3424165547, 0.1623529941, 0.1291881353, 0.2090315819, 0.1955407709, 0.1599395126, 0.2476127446, -0.1988438815, -0.1812788844, 0.1239388883, 0.0727789477, 0.4560316801, 0.0527789965, 0.163534224, 0.0405099392, -0.0102357017, 0.4819698334, 0.1377206147, -0.2007444203, -0.120163016, 0.1447820067, 0.1110789552, 0.1384047568, -0.2659983039, -0.1894512028, -0.1060647145, 0.0513122678, 0.2744714022, 0.2343546897, 0.2734924257, -0.2574242651, 0.5626612306, -0.0297078677, 0.1185634881, 0.0176919624, 0.3184840977, 0.2137351781, 0.1904300898, 0.0412620082, 0.3799007535, 0.0723516047, 0.2668747604, 0.0019169252, -0.371742785, 0.4069311023, -0.0323268361, -0.0772476494, 0.1201292053, 0.1861526817, -0.1353024542, 0.0174217857, -0.1263231635, 0.1072564423, -0.1331617981, 0.3626314402, -0.2339184284, -0.0809923634, -0.2220791876, -0.0083949165, 0.0099412883, -0.1028231308, -0.3553735614, -0.2131821662, -0.0188034829, -0.0919617116, 0.1498167515, 0.0012931345, 0.2425648421, -0.1724211574, 0.0984691605, 0.2135775983, -0.0405048877, 0.426107645, 0.1163485125, 0.0125820916, -0.0161054041, 0.1985406429, -0.0138625847, 0.2789874971, 0.4825236201, 0.3078970611, 0.3683632314, 0.3962291777, -0.0219077729, -0.1184015796, 0.0749702826, 0.1280101538, 0.1586242914, 0.1807725728, -0.2740677297, 0.3758146167, 0.1079416797, -0.1389626861, 0.2080849558, -0.1870904267, 0.2756527066, -0.6289277077, 0.5551918745, -0.0579849444, -0.0312923193, -0.0170016792, -0.1161435321, -0.2227245569, -0.2297754735, 0.3234793246, -0.3631407917, -0.1576040834, -0.1457936466, 0.0454435758, 0.0724264234, 0.2747466266, 0.2144140452, -0.0693702623, -0.4105353653, -0.155532524, -0.4921957552, -0.2448460609, 0.2484085262, 0.2172076106, -0.1504328251, 0.01173326, -0.0199131016, 0.1489444822, 0.1280374229, -0.5978549719, -0.051556997, -0.0526895039, -0.3882860839, 0.091761753, -0.3581451476, -0.1270922422, 0.1564722508, -0.0785273835, -0.198147893, -0.1317709535, 0.0013393566, -0.2321285009, 0.0127551127, 0.2574653625, 0.2629474103, 0.3509388268, 0.183926031, 0.3252234161, -0.1365436465, 0.0124189872, -0.1016331017, -0.1668960601, -0.0971492454, -0.096138984, -0.1320751756, 0.2179102451, -0.348080039, -0.1149002016, -0.2573506236, 0.2019798458, 0.0800143853, -0.4574617445, 0.1099625379, 0.1568263471, -0.3049021661, -0.2306828946, 0.3611064553, 0.2639637291, -0.0522824526, 0.2535315156, -0.0056813899, -0.1993613094, 0.4320396781, -0.311562717, -0.2318362594, -0.1553097665, 0.3251450956, -0.1144868135, 0.0445431918, -0.487683326, 0.0030510109, 0.2869815826, 0.3000856638, 0.0199706908, 0.3764805198, -0.0516788699, 0.0520113632, -0.0505387001, -0.4221268296, 0.1774389595, -0.0019384369, -0.0168022271, -0.2132992446 ]
https://github.com/huggingface/datasets/issues/3818
Support for "sources" parameter in the add() and add_batch() methods in datasets.metric - SARI
Hi Mario, Thanks for your message. I did try to add `sources` into the `Features` dict using a script for the metric: ``` features=datasets.Features( { "sources": datasets.Value("string", id="sequence"), "predictions": datasets.Value("string", id="sequence"), "references": datasets.Sequence(datasets.Value("string", id="sequence"), id="references"), } ), ``` But that only avoids a failure in `encode_batch` in the `add_batch` method: ``` batch = {"predictions": predictions, "references": references} batch = self.info.features.encode_batch(batch) ``` The real problem is that `add_batch()`, `add()` and `compute()` does not receive a `sources` param: ``` def add_batch(self, *, predictions=None, references=None): def add(self, *, prediction=None, reference=None): def compute(self, *, predictions=None, references=None, **kwargs) ``` And then, it fails: `TypeError: add_batch() got an unexpected keyword argument sources` I need this for adding any metric based on SARI or alike, not only for sari.py :) Let me know if I understood correctly the proposed solution.
**Is your feature request related to a problem? Please describe.** The methods `add_batch` and `add` from the `Metric` [class](https://github.com/huggingface/datasets/blob/1675ad6a958435b675a849eafa8a7f10fe0f43bc/src/datasets/metric.py) does not work with [SARI](https://github.com/huggingface/datasets/blob/master/metrics/sari/sari.py) metric. This metric not only relies on the predictions and references, but also in the input. For example, when the `add_batch` method is used, then the `compute()` method fails: ``` metric = load_metric("sari") metric.add_batch( predictions=["About 95 you now get in ."], references=[["About 95 species are currently known .","About 95 species are now accepted .","95 species are now accepted ."]]) metric.compute() > TypeError: _compute() missing 1 required positional argument: 'sources' ``` Therefore, the `compute() `method can only be used standalone: ``` metric = load_metric("sari") result = metric.compute( sources=["About 95 species are currently accepted ."], predictions=["About 95 you now get in ."], references=[["About 95 species are currently known .","About 95 species are now accepted .","95 species are now accepted ."]]) > {'sari': 26.953601953601954} ``` **Describe the solution you'd like** Support for an additional parameter `sources` in the `add_batch` and `add` of the `Metric` class. ``` add_batch(*, sources=None, predictions=None, references=None, **kwargs) add(*, sources=None, predictions=None, references=None, **kwargs) compute() ``` **Describe alternatives you've considered** I've tried to override the `add_batch` and `add`, however, these are highly dependent to the `Metric` class. We could also write a simple function that compute the scores of a sentences list, but then we lose the functionality from the original [add](https://huggingface.co/docs/datasets/_modules/datasets/metric.html#Metric.add) and [add_batch method](https://huggingface.co/docs/datasets/_modules/datasets/metric.html#Metric.add_batch). **Additional context** These methods are used in the transformers [pytorch examples](https://github.com/huggingface/transformers/blob/master/examples/pytorch/summarization/run_summarization_no_trainer.py).
133
Support for "sources" parameter in the add() and add_batch() methods in datasets.metric - SARI **Is your feature request related to a problem? Please describe.** The methods `add_batch` and `add` from the `Metric` [class](https://github.com/huggingface/datasets/blob/1675ad6a958435b675a849eafa8a7f10fe0f43bc/src/datasets/metric.py) does not work with [SARI](https://github.com/huggingface/datasets/blob/master/metrics/sari/sari.py) metric. This metric not only relies on the predictions and references, but also in the input. For example, when the `add_batch` method is used, then the `compute()` method fails: ``` metric = load_metric("sari") metric.add_batch( predictions=["About 95 you now get in ."], references=[["About 95 species are currently known .","About 95 species are now accepted .","95 species are now accepted ."]]) metric.compute() > TypeError: _compute() missing 1 required positional argument: 'sources' ``` Therefore, the `compute() `method can only be used standalone: ``` metric = load_metric("sari") result = metric.compute( sources=["About 95 species are currently accepted ."], predictions=["About 95 you now get in ."], references=[["About 95 species are currently known .","About 95 species are now accepted .","95 species are now accepted ."]]) > {'sari': 26.953601953601954} ``` **Describe the solution you'd like** Support for an additional parameter `sources` in the `add_batch` and `add` of the `Metric` class. ``` add_batch(*, sources=None, predictions=None, references=None, **kwargs) add(*, sources=None, predictions=None, references=None, **kwargs) compute() ``` **Describe alternatives you've considered** I've tried to override the `add_batch` and `add`, however, these are highly dependent to the `Metric` class. We could also write a simple function that compute the scores of a sentences list, but then we lose the functionality from the original [add](https://huggingface.co/docs/datasets/_modules/datasets/metric.html#Metric.add) and [add_batch method](https://huggingface.co/docs/datasets/_modules/datasets/metric.html#Metric.add_batch). **Additional context** These methods are used in the transformers [pytorch examples](https://github.com/huggingface/transformers/blob/master/examples/pytorch/summarization/run_summarization_no_trainer.py). Hi Mario, Thanks for your message. I did try to add `sources` into the `Features` dict using a script for the metric: ``` features=datasets.Features( { "sources": datasets.Value("string", id="sequence"), "predictions": datasets.Value("string", id="sequence"), "references": datasets.Sequence(datasets.Value("string", id="sequence"), id="references"), } ), ``` But that only avoids a failure in `encode_batch` in the `add_batch` method: ``` batch = {"predictions": predictions, "references": references} batch = self.info.features.encode_batch(batch) ``` The real problem is that `add_batch()`, `add()` and `compute()` does not receive a `sources` param: ``` def add_batch(self, *, predictions=None, references=None): def add(self, *, prediction=None, reference=None): def compute(self, *, predictions=None, references=None, **kwargs) ``` And then, it fails: `TypeError: add_batch() got an unexpected keyword argument sources` I need this for adding any metric based on SARI or alike, not only for sari.py :) Let me know if I understood correctly the proposed solution.
[ -0.4188570678, 0.2724249363, -0.0092955474, -0.1095037237, 0.1228538156, -0.0708656386, 0.2320678234, 0.2151487321, -0.1837127805, 0.2203431129, -0.2901642919, 0.2855444551, 0.1346973926, 0.0324126184, 0.0896022469, -0.3678044677, 0.0503035076, 0.1437144727, -0.0944617316, 0.1511003226, -0.5576463938, 0.0884082094, -0.1839936227, -0.239821434, -0.1274913251, 0.0271714777, -0.2369704247, -0.1809158027, -0.2423044294, -0.5351156592, 0.212813437, 0.1841915548, 0.0300274957, 0.32877931, -0.0001185521, 0.1109371334, 0.2762511969, -0.132873565, -0.4383607805, -0.1820883602, -0.3840429187, -0.2386551052, -0.2554565072, -0.2883082628, -0.0669751912, 0.101483874, -0.2451186478, -0.0378110595, -0.1235948205, 0.2556289136, 0.1296488941, 0.436493963, 0.1177333295, -0.3196767271, 0.1126789898, 0.1221244857, -0.2314323336, 0.1621472538, 0.2862775028, 0.2523856759, 0.1044623181, 0.357545495, -0.1011637002, -0.1528927386, 0.3361629844, 0.1865538359, 0.2177976817, -0.112414889, 0.072144933, -0.0221291482, 0.4007413387, -0.2246418446, -0.7027823329, -0.1128433719, 0.0156835634, -0.4567685723, -0.1005975828, 0.0173967034, -0.370431006, 0.0589393713, -0.2042919248, -0.2757097185, -0.4550824165, -0.0204547085, 0.2664701641, 0.480687499, -0.0108990306, 0.1277373731, 0.2977893651, -0.1493106335, -0.2083182931, -0.2281208038, -0.0354336835, 0.2015784234, -0.2583949864, -0.1311886758, 0.0373130217, 0.2627393603, 0.3208864331, -0.1454827785, -0.1214293987, 0.0887123719, 0.1068652943, 0.1863660365, 0.0315010622, 0.1831671, 0.1211114228, 0.128656283, 0.1919878572, 0.140594393, 0.4344312251, -0.1230262965, 0.3087743521, -0.5872985721, 0.1333308816, 0.0711452216, 0.1389214844, 0.0042201658, -0.0917381272, -0.2361578047, 0.1970169991, -0.2742693126, 0.3080245554, 0.1325075179, 0.0801051632, 0.2156479955, 0.0563334972, 0.3079833388, 0.0338776782, -0.2010414749, -0.1755244136, 0.1349954009, -0.3487781286, 0.3339532018, 0.0842801854, -0.4369001389, 0.2398523837, 0.1866851151, 0.3053177297, 0.2414406985, -0.1046386883, -0.0915887356, 0.0677317753, 0.2685291767, -0.1755869389, -0.1076951027, -0.0455672406, -0.0763390511, -0.1254889965, 0.2220956385, -0.3980188072, -0.2488850504, -0.0216516145, 0.0888484493, -0.2236713171, 0.0860222504, -0.4042805135, 0.4411891103, -0.0536085106, -0.1159335226, -0.1312451065, 0.024575267, -0.439568609, -0.2581740022, 0.4780133069, 0.3768756986, -0.2705854774, -0.2682242095, 0.0152600063, -0.2777919173, -0.0001743717, -0.0487129427, -0.1349849701, 0.2266245782, -0.0900653228, 0.0091335615, 0.4235929847, -0.6044471264, -0.2491820604, 0.1749854386, 0.2629354596, 0.0213299282, 0.2808436155, 0.2441940457, 0.3655674458, -0.1035804302, 0.58320719, -0.0100743743, 0.0577994063, -0.1951376349, -0.0983804837, -0.215464741, -0.3887763321, 0.1491800994, 0.3146129251, 0.2870125771, 0.1172081903, -0.2743911743, 0.1582756191, -0.2240351588, 0.1490289271, 0.210322395, 0.428442955, -0.1786860973, 0.0095947543, -0.4675134122, -0.1849883646, 0.235361442, -0.0387836061, 0.1429478228, -0.1661320925, -0.233710289, -0.4295107424, 0.2337549627, 0.0730379671, 0.1595890522, 0.0083178664, 0.0193770565, 0.1887285411, -0.0650200993, -0.1504932493, -0.0511035696, -0.0218408238, 0.1324142814, -0.0735512078, 0.2290124297, 0.0087167397, -0.2423765361, 0.1229097992, 0.2345897704, 0.3444212675, -0.005803437, 0.0699786991, 0.4360875785, -0.1422572583, 0.2842973769, 0.1106192395, 0.4046298862, 0.2912037671, 0.1582603604, 0.0404241942, -0.355653882, 0.1786971092, -0.0360756069, 0.0573327951, 0.3717135191, -0.0458058119, 0.2234574705, 0.0395644978, 0.0530335866, 0.3049706221, -0.0233937651, -0.3434019089, -0.3567791879, -0.1145394146, -0.3208927214, -0.0697285682, -0.0580250844, -0.1654669493, -0.0241014566, 0.1833823919, -0.015596427, 0.120432198, 0.0668272078, -0.073001273, 0.0985991508, -0.135738492, 0.0695262626, 0.5584737659, 0.1500828862, -0.0911996961, -0.0373592414, -0.0241184123, -0.2028726935, 0.2230866998, 0.247009322, -0.2515797913, 0.1927698106, -0.0019769452, 0.0067642657, 0.0543680936, 0.1213757396, 0.0380903259, 0.0263196696, -0.3169481456, -0.0031071235, 0.043769978, 0.1455574483, -0.2943176031, -0.4739556015, 0.0568016879, -0.0962100998, 0.0918492228, 0.1123279855, 0.0360781997, 0.2308141887, -0.0924544185, 0.4944138229, -0.0593256541, -0.3651406467, -0.1701655537, -0.1873134971, 0.1883336753, 0.0158795621, -0.0531544834, 0.0299406815, 0.3106328249, -0.1446075886, 0.2041735202, -0.465036869, -0.4353865087, -0.0289643798, 0.0004463665, 0.7503470182, 0.2831507325, -0.0092194797, 0.136537075, -0.1327081919, 0.296518445, -0.0779575855, 0.1647881269, -0.1711975187, -0.2469158024, -0.1490930021, -0.2791827023, -0.2390077114, -0.0450830609, -0.2869668007, -0.2676414847, -0.1203173697, -0.1854649335, 0.1274612248, 0.4413747489, 0.195352152, 0.3598145843, -0.0427216738, -0.0141190914, -0.3076483905, 0.6466606855, -0.3484896123, -0.2277253717, 0.1127130389, -0.2207896858, 0.3151364625, 0.4210929573, -0.1847182512, -0.6845132709, -0.1306389123, 0.2173568904, 0.0551279485, 0.210615471, 0.07816948, 0.0405419245, -0.0389557034, -0.291051209, -0.541805923, 0.1473374367, -0.2379997373, 0.1455720216, 0.2954826057, 0.4121638238, -0.004101601, 1.1683142185, 0.0577900819, -0.2287494987, 0.1821617633, 0.3092636168, 0.4385363758, 0.3150938451, -0.3524238467, 0.2687490284, 0.1835826933, 0.0522748902, 0.0897949636, 0.2009445131, 0.1160587668, -0.3454355896, -0.2579373121, -0.1142811999, -0.243895784, 0.0573165305, 0.2957511544, 0.8740596771, -0.1203410029, 0.1087318659, -0.4995089471, -0.1224758923, -0.109537296, 0.2359758466, 0.3663057983, -0.1178420931, -0.316283077, 0.1505136043, -0.5581770539, 0.360462606, 0.2752198279, 0.1755860746, -0.0771232694, 0.2998442352, -0.0510993712, 0.0491788611, 0.4413939118, -0.2446662188, -0.1455822736, -0.1387904137, -0.1109325588, -0.3128044009, 0.0853614807, -0.0220029373, 0.0805801749, 0.0380798206, 0.6715146303, -0.4198099673, -0.1815273017, 0.3010108471, 0.1576238126, -0.1056080088, -0.2584737241, -0.2796652317, -0.3872826695, -0.0925729573, 0.0182473753, 0.170243293, 0.1976525486, 0.1540756971, -0.0602812357, 0.18772237, 0.0684689358, 0.2498713732, 0.0781470165, 0.0441871546, 0.3356934488, 0.1431898177, 0.0124886902, -0.1678510308, 0.593716085, 0.359801054, -0.5014068484, -0.6765730977, -0.1656689346, -0.0053056469, 0.4782356322, 0.2610815167, -0.1754037142, 0.2721252739, 0.0404676907, -0.0439799353, -0.2732144892, -0.0928817615, 0.4048778415, -0.0060182051, -0.2668345571, -0.3853677511, 0.2860565186, 0.2028251737, -0.1247773543, 0.0575089268, 0.2685805261, -0.2931140363, -0.1260361522, 0.2827648818, 0.8093622923, 0.1849649101, -0.1987417042, 0.2373571992, -0.3912991583, 0.173537448, 0.3258040249, 0.196446687, -0.0715219378, -0.1676861942, 0.0033901052, -0.1912415177, 0.2198758125, 0.0391988941, -0.2002632022, 0.1879970729, -0.262717098, -0.0207862929, 0.193449825, 0.0626147985, 0.0155754862, -0.3994121253, -0.1405239403, 0.1267430484, -0.1385297179, -0.2877708972, -0.1625532061, -0.3271583915, 0.231189996, -0.0307224691, -0.2496199906, -0.1372492462, 0.0416251123, -0.1120521352, 0.4278144836, -0.1560522169, 0.3618403673, 0.4231205881, 0.6328619123, -0.0470049791, -0.0190402027, 0.2865562141, -0.5811445117, 0.1091978848, -0.0695248544, 0.0211543813, 0.3637413085, -0.1128058881, -0.2683667243, 0.3951807916, 0.0380441695, -0.4126927853, -0.4083384275, -0.1285869032, 0.1550991386, -0.1274903268, -0.0171378739, -0.0913219526, 0.145759657, -0.1762225628, 0.0560123026, 0.0455905572, -0.1964067817, 0.3602042496, -0.3595478833, -0.0421959274, 0.1359839886, 0.3274926543, -0.0708404258, -0.3127803504, 0.1771444529, -0.209814772, -0.1180575714, -0.036436379, -0.299982667, -0.4740269184, -0.1864714921, 0.3557361364, 0.5639718771, 0.2545345426, 0.0353913382, 0.4465864003, -0.0116801579, -0.0004460505, -0.0947292969, -0.3009783924, -0.0858173445, 0.10689722, -0.1283161193, 0.0593386665, -0.0455943085, -0.1575060636, -0.0142669426, 0.2850861251, -0.2998135388, -0.1791308224, -0.1738781184, 0.1690597832, 0.2116369158, 0.0805575475, 0.0373448208, 0.1546747983, -0.0308614224, -0.0432401113, -0.2993810475, -0.056006901, -0.2180894464, 0.1570655406, -0.1570738107, 0.0631045923, -0.029802667, -0.0698799193, -0.0987458974, -0.0464133397, 0.2455899119, 0.5867990851, -0.2052562982, 0.1078127399, -0.0015991507, 0.3424165547, 0.1623529941, 0.1291881353, 0.2090315819, 0.1955407709, 0.1599395126, 0.2476127446, -0.1988438815, -0.1812788844, 0.1239388883, 0.0727789477, 0.4560316801, 0.0527789965, 0.163534224, 0.0405099392, -0.0102357017, 0.4819698334, 0.1377206147, -0.2007444203, -0.120163016, 0.1447820067, 0.1110789552, 0.1384047568, -0.2659983039, -0.1894512028, -0.1060647145, 0.0513122678, 0.2744714022, 0.2343546897, 0.2734924257, -0.2574242651, 0.5626612306, -0.0297078677, 0.1185634881, 0.0176919624, 0.3184840977, 0.2137351781, 0.1904300898, 0.0412620082, 0.3799007535, 0.0723516047, 0.2668747604, 0.0019169252, -0.371742785, 0.4069311023, -0.0323268361, -0.0772476494, 0.1201292053, 0.1861526817, -0.1353024542, 0.0174217857, -0.1263231635, 0.1072564423, -0.1331617981, 0.3626314402, -0.2339184284, -0.0809923634, -0.2220791876, -0.0083949165, 0.0099412883, -0.1028231308, -0.3553735614, -0.2131821662, -0.0188034829, -0.0919617116, 0.1498167515, 0.0012931345, 0.2425648421, -0.1724211574, 0.0984691605, 0.2135775983, -0.0405048877, 0.426107645, 0.1163485125, 0.0125820916, -0.0161054041, 0.1985406429, -0.0138625847, 0.2789874971, 0.4825236201, 0.3078970611, 0.3683632314, 0.3962291777, -0.0219077729, -0.1184015796, 0.0749702826, 0.1280101538, 0.1586242914, 0.1807725728, -0.2740677297, 0.3758146167, 0.1079416797, -0.1389626861, 0.2080849558, -0.1870904267, 0.2756527066, -0.6289277077, 0.5551918745, -0.0579849444, -0.0312923193, -0.0170016792, -0.1161435321, -0.2227245569, -0.2297754735, 0.3234793246, -0.3631407917, -0.1576040834, -0.1457936466, 0.0454435758, 0.0724264234, 0.2747466266, 0.2144140452, -0.0693702623, -0.4105353653, -0.155532524, -0.4921957552, -0.2448460609, 0.2484085262, 0.2172076106, -0.1504328251, 0.01173326, -0.0199131016, 0.1489444822, 0.1280374229, -0.5978549719, -0.051556997, -0.0526895039, -0.3882860839, 0.091761753, -0.3581451476, -0.1270922422, 0.1564722508, -0.0785273835, -0.198147893, -0.1317709535, 0.0013393566, -0.2321285009, 0.0127551127, 0.2574653625, 0.2629474103, 0.3509388268, 0.183926031, 0.3252234161, -0.1365436465, 0.0124189872, -0.1016331017, -0.1668960601, -0.0971492454, -0.096138984, -0.1320751756, 0.2179102451, -0.348080039, -0.1149002016, -0.2573506236, 0.2019798458, 0.0800143853, -0.4574617445, 0.1099625379, 0.1568263471, -0.3049021661, -0.2306828946, 0.3611064553, 0.2639637291, -0.0522824526, 0.2535315156, -0.0056813899, -0.1993613094, 0.4320396781, -0.311562717, -0.2318362594, -0.1553097665, 0.3251450956, -0.1144868135, 0.0445431918, -0.487683326, 0.0030510109, 0.2869815826, 0.3000856638, 0.0199706908, 0.3764805198, -0.0516788699, 0.0520113632, -0.0505387001, -0.4221268296, 0.1774389595, -0.0019384369, -0.0168022271, -0.2132992446 ]
https://github.com/huggingface/datasets/issues/3818
Support for "sources" parameter in the add() and add_batch() methods in datasets.metric - SARI
The `Metric` class has been modified recently to support this use-case, but the `add_batch` + `compute` pattern still doesn't work correctly. I'll open a PR.
**Is your feature request related to a problem? Please describe.** The methods `add_batch` and `add` from the `Metric` [class](https://github.com/huggingface/datasets/blob/1675ad6a958435b675a849eafa8a7f10fe0f43bc/src/datasets/metric.py) does not work with [SARI](https://github.com/huggingface/datasets/blob/master/metrics/sari/sari.py) metric. This metric not only relies on the predictions and references, but also in the input. For example, when the `add_batch` method is used, then the `compute()` method fails: ``` metric = load_metric("sari") metric.add_batch( predictions=["About 95 you now get in ."], references=[["About 95 species are currently known .","About 95 species are now accepted .","95 species are now accepted ."]]) metric.compute() > TypeError: _compute() missing 1 required positional argument: 'sources' ``` Therefore, the `compute() `method can only be used standalone: ``` metric = load_metric("sari") result = metric.compute( sources=["About 95 species are currently accepted ."], predictions=["About 95 you now get in ."], references=[["About 95 species are currently known .","About 95 species are now accepted .","95 species are now accepted ."]]) > {'sari': 26.953601953601954} ``` **Describe the solution you'd like** Support for an additional parameter `sources` in the `add_batch` and `add` of the `Metric` class. ``` add_batch(*, sources=None, predictions=None, references=None, **kwargs) add(*, sources=None, predictions=None, references=None, **kwargs) compute() ``` **Describe alternatives you've considered** I've tried to override the `add_batch` and `add`, however, these are highly dependent to the `Metric` class. We could also write a simple function that compute the scores of a sentences list, but then we lose the functionality from the original [add](https://huggingface.co/docs/datasets/_modules/datasets/metric.html#Metric.add) and [add_batch method](https://huggingface.co/docs/datasets/_modules/datasets/metric.html#Metric.add_batch). **Additional context** These methods are used in the transformers [pytorch examples](https://github.com/huggingface/transformers/blob/master/examples/pytorch/summarization/run_summarization_no_trainer.py).
25
Support for "sources" parameter in the add() and add_batch() methods in datasets.metric - SARI **Is your feature request related to a problem? Please describe.** The methods `add_batch` and `add` from the `Metric` [class](https://github.com/huggingface/datasets/blob/1675ad6a958435b675a849eafa8a7f10fe0f43bc/src/datasets/metric.py) does not work with [SARI](https://github.com/huggingface/datasets/blob/master/metrics/sari/sari.py) metric. This metric not only relies on the predictions and references, but also in the input. For example, when the `add_batch` method is used, then the `compute()` method fails: ``` metric = load_metric("sari") metric.add_batch( predictions=["About 95 you now get in ."], references=[["About 95 species are currently known .","About 95 species are now accepted .","95 species are now accepted ."]]) metric.compute() > TypeError: _compute() missing 1 required positional argument: 'sources' ``` Therefore, the `compute() `method can only be used standalone: ``` metric = load_metric("sari") result = metric.compute( sources=["About 95 species are currently accepted ."], predictions=["About 95 you now get in ."], references=[["About 95 species are currently known .","About 95 species are now accepted .","95 species are now accepted ."]]) > {'sari': 26.953601953601954} ``` **Describe the solution you'd like** Support for an additional parameter `sources` in the `add_batch` and `add` of the `Metric` class. ``` add_batch(*, sources=None, predictions=None, references=None, **kwargs) add(*, sources=None, predictions=None, references=None, **kwargs) compute() ``` **Describe alternatives you've considered** I've tried to override the `add_batch` and `add`, however, these are highly dependent to the `Metric` class. We could also write a simple function that compute the scores of a sentences list, but then we lose the functionality from the original [add](https://huggingface.co/docs/datasets/_modules/datasets/metric.html#Metric.add) and [add_batch method](https://huggingface.co/docs/datasets/_modules/datasets/metric.html#Metric.add_batch). **Additional context** These methods are used in the transformers [pytorch examples](https://github.com/huggingface/transformers/blob/master/examples/pytorch/summarization/run_summarization_no_trainer.py). The `Metric` class has been modified recently to support this use-case, but the `add_batch` + `compute` pattern still doesn't work correctly. I'll open a PR.
[ -0.4188570678, 0.2724249363, -0.0092955474, -0.1095037237, 0.1228538156, -0.0708656386, 0.2320678234, 0.2151487321, -0.1837127805, 0.2203431129, -0.2901642919, 0.2855444551, 0.1346973926, 0.0324126184, 0.0896022469, -0.3678044677, 0.0503035076, 0.1437144727, -0.0944617316, 0.1511003226, -0.5576463938, 0.0884082094, -0.1839936227, -0.239821434, -0.1274913251, 0.0271714777, -0.2369704247, -0.1809158027, -0.2423044294, -0.5351156592, 0.212813437, 0.1841915548, 0.0300274957, 0.32877931, -0.0001185521, 0.1109371334, 0.2762511969, -0.132873565, -0.4383607805, -0.1820883602, -0.3840429187, -0.2386551052, -0.2554565072, -0.2883082628, -0.0669751912, 0.101483874, -0.2451186478, -0.0378110595, -0.1235948205, 0.2556289136, 0.1296488941, 0.436493963, 0.1177333295, -0.3196767271, 0.1126789898, 0.1221244857, -0.2314323336, 0.1621472538, 0.2862775028, 0.2523856759, 0.1044623181, 0.357545495, -0.1011637002, -0.1528927386, 0.3361629844, 0.1865538359, 0.2177976817, -0.112414889, 0.072144933, -0.0221291482, 0.4007413387, -0.2246418446, -0.7027823329, -0.1128433719, 0.0156835634, -0.4567685723, -0.1005975828, 0.0173967034, -0.370431006, 0.0589393713, -0.2042919248, -0.2757097185, -0.4550824165, -0.0204547085, 0.2664701641, 0.480687499, -0.0108990306, 0.1277373731, 0.2977893651, -0.1493106335, -0.2083182931, -0.2281208038, -0.0354336835, 0.2015784234, -0.2583949864, -0.1311886758, 0.0373130217, 0.2627393603, 0.3208864331, -0.1454827785, -0.1214293987, 0.0887123719, 0.1068652943, 0.1863660365, 0.0315010622, 0.1831671, 0.1211114228, 0.128656283, 0.1919878572, 0.140594393, 0.4344312251, -0.1230262965, 0.3087743521, -0.5872985721, 0.1333308816, 0.0711452216, 0.1389214844, 0.0042201658, -0.0917381272, -0.2361578047, 0.1970169991, -0.2742693126, 0.3080245554, 0.1325075179, 0.0801051632, 0.2156479955, 0.0563334972, 0.3079833388, 0.0338776782, -0.2010414749, -0.1755244136, 0.1349954009, -0.3487781286, 0.3339532018, 0.0842801854, -0.4369001389, 0.2398523837, 0.1866851151, 0.3053177297, 0.2414406985, -0.1046386883, -0.0915887356, 0.0677317753, 0.2685291767, -0.1755869389, -0.1076951027, -0.0455672406, -0.0763390511, -0.1254889965, 0.2220956385, -0.3980188072, -0.2488850504, -0.0216516145, 0.0888484493, -0.2236713171, 0.0860222504, -0.4042805135, 0.4411891103, -0.0536085106, -0.1159335226, -0.1312451065, 0.024575267, -0.439568609, -0.2581740022, 0.4780133069, 0.3768756986, -0.2705854774, -0.2682242095, 0.0152600063, -0.2777919173, -0.0001743717, -0.0487129427, -0.1349849701, 0.2266245782, -0.0900653228, 0.0091335615, 0.4235929847, -0.6044471264, -0.2491820604, 0.1749854386, 0.2629354596, 0.0213299282, 0.2808436155, 0.2441940457, 0.3655674458, -0.1035804302, 0.58320719, -0.0100743743, 0.0577994063, -0.1951376349, -0.0983804837, -0.215464741, -0.3887763321, 0.1491800994, 0.3146129251, 0.2870125771, 0.1172081903, -0.2743911743, 0.1582756191, -0.2240351588, 0.1490289271, 0.210322395, 0.428442955, -0.1786860973, 0.0095947543, -0.4675134122, -0.1849883646, 0.235361442, -0.0387836061, 0.1429478228, -0.1661320925, -0.233710289, -0.4295107424, 0.2337549627, 0.0730379671, 0.1595890522, 0.0083178664, 0.0193770565, 0.1887285411, -0.0650200993, -0.1504932493, -0.0511035696, -0.0218408238, 0.1324142814, -0.0735512078, 0.2290124297, 0.0087167397, -0.2423765361, 0.1229097992, 0.2345897704, 0.3444212675, -0.005803437, 0.0699786991, 0.4360875785, -0.1422572583, 0.2842973769, 0.1106192395, 0.4046298862, 0.2912037671, 0.1582603604, 0.0404241942, -0.355653882, 0.1786971092, -0.0360756069, 0.0573327951, 0.3717135191, -0.0458058119, 0.2234574705, 0.0395644978, 0.0530335866, 0.3049706221, -0.0233937651, -0.3434019089, -0.3567791879, -0.1145394146, -0.3208927214, -0.0697285682, -0.0580250844, -0.1654669493, -0.0241014566, 0.1833823919, -0.015596427, 0.120432198, 0.0668272078, -0.073001273, 0.0985991508, -0.135738492, 0.0695262626, 0.5584737659, 0.1500828862, -0.0911996961, -0.0373592414, -0.0241184123, -0.2028726935, 0.2230866998, 0.247009322, -0.2515797913, 0.1927698106, -0.0019769452, 0.0067642657, 0.0543680936, 0.1213757396, 0.0380903259, 0.0263196696, -0.3169481456, -0.0031071235, 0.043769978, 0.1455574483, -0.2943176031, -0.4739556015, 0.0568016879, -0.0962100998, 0.0918492228, 0.1123279855, 0.0360781997, 0.2308141887, -0.0924544185, 0.4944138229, -0.0593256541, -0.3651406467, -0.1701655537, -0.1873134971, 0.1883336753, 0.0158795621, -0.0531544834, 0.0299406815, 0.3106328249, -0.1446075886, 0.2041735202, -0.465036869, -0.4353865087, -0.0289643798, 0.0004463665, 0.7503470182, 0.2831507325, -0.0092194797, 0.136537075, -0.1327081919, 0.296518445, -0.0779575855, 0.1647881269, -0.1711975187, -0.2469158024, -0.1490930021, -0.2791827023, -0.2390077114, -0.0450830609, -0.2869668007, -0.2676414847, -0.1203173697, -0.1854649335, 0.1274612248, 0.4413747489, 0.195352152, 0.3598145843, -0.0427216738, -0.0141190914, -0.3076483905, 0.6466606855, -0.3484896123, -0.2277253717, 0.1127130389, -0.2207896858, 0.3151364625, 0.4210929573, -0.1847182512, -0.6845132709, -0.1306389123, 0.2173568904, 0.0551279485, 0.210615471, 0.07816948, 0.0405419245, -0.0389557034, -0.291051209, -0.541805923, 0.1473374367, -0.2379997373, 0.1455720216, 0.2954826057, 0.4121638238, -0.004101601, 1.1683142185, 0.0577900819, -0.2287494987, 0.1821617633, 0.3092636168, 0.4385363758, 0.3150938451, -0.3524238467, 0.2687490284, 0.1835826933, 0.0522748902, 0.0897949636, 0.2009445131, 0.1160587668, -0.3454355896, -0.2579373121, -0.1142811999, -0.243895784, 0.0573165305, 0.2957511544, 0.8740596771, -0.1203410029, 0.1087318659, -0.4995089471, -0.1224758923, -0.109537296, 0.2359758466, 0.3663057983, -0.1178420931, -0.316283077, 0.1505136043, -0.5581770539, 0.360462606, 0.2752198279, 0.1755860746, -0.0771232694, 0.2998442352, -0.0510993712, 0.0491788611, 0.4413939118, -0.2446662188, -0.1455822736, -0.1387904137, -0.1109325588, -0.3128044009, 0.0853614807, -0.0220029373, 0.0805801749, 0.0380798206, 0.6715146303, -0.4198099673, -0.1815273017, 0.3010108471, 0.1576238126, -0.1056080088, -0.2584737241, -0.2796652317, -0.3872826695, -0.0925729573, 0.0182473753, 0.170243293, 0.1976525486, 0.1540756971, -0.0602812357, 0.18772237, 0.0684689358, 0.2498713732, 0.0781470165, 0.0441871546, 0.3356934488, 0.1431898177, 0.0124886902, -0.1678510308, 0.593716085, 0.359801054, -0.5014068484, -0.6765730977, -0.1656689346, -0.0053056469, 0.4782356322, 0.2610815167, -0.1754037142, 0.2721252739, 0.0404676907, -0.0439799353, -0.2732144892, -0.0928817615, 0.4048778415, -0.0060182051, -0.2668345571, -0.3853677511, 0.2860565186, 0.2028251737, -0.1247773543, 0.0575089268, 0.2685805261, -0.2931140363, -0.1260361522, 0.2827648818, 0.8093622923, 0.1849649101, -0.1987417042, 0.2373571992, -0.3912991583, 0.173537448, 0.3258040249, 0.196446687, -0.0715219378, -0.1676861942, 0.0033901052, -0.1912415177, 0.2198758125, 0.0391988941, -0.2002632022, 0.1879970729, -0.262717098, -0.0207862929, 0.193449825, 0.0626147985, 0.0155754862, -0.3994121253, -0.1405239403, 0.1267430484, -0.1385297179, -0.2877708972, -0.1625532061, -0.3271583915, 0.231189996, -0.0307224691, -0.2496199906, -0.1372492462, 0.0416251123, -0.1120521352, 0.4278144836, -0.1560522169, 0.3618403673, 0.4231205881, 0.6328619123, -0.0470049791, -0.0190402027, 0.2865562141, -0.5811445117, 0.1091978848, -0.0695248544, 0.0211543813, 0.3637413085, -0.1128058881, -0.2683667243, 0.3951807916, 0.0380441695, -0.4126927853, -0.4083384275, -0.1285869032, 0.1550991386, -0.1274903268, -0.0171378739, -0.0913219526, 0.145759657, -0.1762225628, 0.0560123026, 0.0455905572, -0.1964067817, 0.3602042496, -0.3595478833, -0.0421959274, 0.1359839886, 0.3274926543, -0.0708404258, -0.3127803504, 0.1771444529, -0.209814772, -0.1180575714, -0.036436379, -0.299982667, -0.4740269184, -0.1864714921, 0.3557361364, 0.5639718771, 0.2545345426, 0.0353913382, 0.4465864003, -0.0116801579, -0.0004460505, -0.0947292969, -0.3009783924, -0.0858173445, 0.10689722, -0.1283161193, 0.0593386665, -0.0455943085, -0.1575060636, -0.0142669426, 0.2850861251, -0.2998135388, -0.1791308224, -0.1738781184, 0.1690597832, 0.2116369158, 0.0805575475, 0.0373448208, 0.1546747983, -0.0308614224, -0.0432401113, -0.2993810475, -0.056006901, -0.2180894464, 0.1570655406, -0.1570738107, 0.0631045923, -0.029802667, -0.0698799193, -0.0987458974, -0.0464133397, 0.2455899119, 0.5867990851, -0.2052562982, 0.1078127399, -0.0015991507, 0.3424165547, 0.1623529941, 0.1291881353, 0.2090315819, 0.1955407709, 0.1599395126, 0.2476127446, -0.1988438815, -0.1812788844, 0.1239388883, 0.0727789477, 0.4560316801, 0.0527789965, 0.163534224, 0.0405099392, -0.0102357017, 0.4819698334, 0.1377206147, -0.2007444203, -0.120163016, 0.1447820067, 0.1110789552, 0.1384047568, -0.2659983039, -0.1894512028, -0.1060647145, 0.0513122678, 0.2744714022, 0.2343546897, 0.2734924257, -0.2574242651, 0.5626612306, -0.0297078677, 0.1185634881, 0.0176919624, 0.3184840977, 0.2137351781, 0.1904300898, 0.0412620082, 0.3799007535, 0.0723516047, 0.2668747604, 0.0019169252, -0.371742785, 0.4069311023, -0.0323268361, -0.0772476494, 0.1201292053, 0.1861526817, -0.1353024542, 0.0174217857, -0.1263231635, 0.1072564423, -0.1331617981, 0.3626314402, -0.2339184284, -0.0809923634, -0.2220791876, -0.0083949165, 0.0099412883, -0.1028231308, -0.3553735614, -0.2131821662, -0.0188034829, -0.0919617116, 0.1498167515, 0.0012931345, 0.2425648421, -0.1724211574, 0.0984691605, 0.2135775983, -0.0405048877, 0.426107645, 0.1163485125, 0.0125820916, -0.0161054041, 0.1985406429, -0.0138625847, 0.2789874971, 0.4825236201, 0.3078970611, 0.3683632314, 0.3962291777, -0.0219077729, -0.1184015796, 0.0749702826, 0.1280101538, 0.1586242914, 0.1807725728, -0.2740677297, 0.3758146167, 0.1079416797, -0.1389626861, 0.2080849558, -0.1870904267, 0.2756527066, -0.6289277077, 0.5551918745, -0.0579849444, -0.0312923193, -0.0170016792, -0.1161435321, -0.2227245569, -0.2297754735, 0.3234793246, -0.3631407917, -0.1576040834, -0.1457936466, 0.0454435758, 0.0724264234, 0.2747466266, 0.2144140452, -0.0693702623, -0.4105353653, -0.155532524, -0.4921957552, -0.2448460609, 0.2484085262, 0.2172076106, -0.1504328251, 0.01173326, -0.0199131016, 0.1489444822, 0.1280374229, -0.5978549719, -0.051556997, -0.0526895039, -0.3882860839, 0.091761753, -0.3581451476, -0.1270922422, 0.1564722508, -0.0785273835, -0.198147893, -0.1317709535, 0.0013393566, -0.2321285009, 0.0127551127, 0.2574653625, 0.2629474103, 0.3509388268, 0.183926031, 0.3252234161, -0.1365436465, 0.0124189872, -0.1016331017, -0.1668960601, -0.0971492454, -0.096138984, -0.1320751756, 0.2179102451, -0.348080039, -0.1149002016, -0.2573506236, 0.2019798458, 0.0800143853, -0.4574617445, 0.1099625379, 0.1568263471, -0.3049021661, -0.2306828946, 0.3611064553, 0.2639637291, -0.0522824526, 0.2535315156, -0.0056813899, -0.1993613094, 0.4320396781, -0.311562717, -0.2318362594, -0.1553097665, 0.3251450956, -0.1144868135, 0.0445431918, -0.487683326, 0.0030510109, 0.2869815826, 0.3000856638, 0.0199706908, 0.3764805198, -0.0516788699, 0.0520113632, -0.0505387001, -0.4221268296, 0.1774389595, -0.0019384369, -0.0168022271, -0.2132992446 ]
https://github.com/huggingface/datasets/issues/3813
Add MetaShift dataset
I would like to take this up and give it a shot. Any image specific - dataset guidelines to keep in mind ? Thank you.
## Adding a Dataset - **Name:** MetaShift - **Description:** collection of 12,868 sets of natural images across 410 classes- - **Paper:** https://arxiv.org/abs/2202.06523v1 - **Data:** https://github.com/weixin-liang/metashift Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
25
Add MetaShift dataset ## Adding a Dataset - **Name:** MetaShift - **Description:** collection of 12,868 sets of natural images across 410 classes- - **Paper:** https://arxiv.org/abs/2202.06523v1 - **Data:** https://github.com/weixin-liang/metashift Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). I would like to take this up and give it a shot. Any image specific - dataset guidelines to keep in mind ? Thank you.
[ -0.0806370303, -0.0981557444, -0.1193474159, 0.0553121865, 0.3078885972, -0.1292070001, 0.0209145881, -0.0056071752, 0.1324978173, -0.047706224, 0.0888745859, -0.0332621783, -0.2426599562, 0.2571821213, 0.0837727934, -0.1063219234, 0.1582997441, -0.0881593153, -0.102236174, -0.1867655367, -0.244970724, -0.3292393684, 0.2425888032, -0.2965028286, -0.3616741598, -0.103089422, -0.2439591587, 0.1631546319, -0.3346954882, -0.1375023872, -0.0018791761, 0.21875678, 0.0880532861, 0.5687716007, -0.0001072236, -0.0870248526, -0.0431332514, -0.2751209438, 0.1904851347, -0.0804945976, -0.4750129282, -0.2762613893, -0.27499488, -0.2058664411, -0.0771297887, -0.1004361734, 0.0959043577, -0.1323484182, 0.5059862137, 0.2707300782, 0.2471279651, -0.3086116016, -0.1492788643, 0.0247355867, 0.2044592351, 0.6788597107, -0.266726613, -0.2112791091, 0.2783688605, 0.259160459, 0.0180460569, 0.2829155922, 0.0579104796, 0.1840455085, 0.6363851428, -0.1290771365, -0.2395906597, -0.3995324075, -0.1944016069, 0.4912955165, 0.336404711, 0.0559905544, -0.2499863207, -0.2782714963, -0.1760130227, 0.0057298909, 0.0431156531, 0.4577920139, -0.0915558189, -0.1188666448, -0.3102505207, -0.1286113858, -0.2617159188, 0.1167683005, 0.0060849693, 0.1250901669, -0.0367568173, 0.0922939703, 0.1488386244, -0.1808018982, -0.350350529, -0.1428171843, -0.0255699176, 0.0121924356, -0.005233462, -0.1164409369, 0.0522361062, 0.0274931863, 0.431555599, -0.0517660007, -0.0143394461, -0.0293268021, -0.1567589343, -0.0261765532, 0.2056242526, -0.3562363386, -0.1891970634, -0.0611068383, 0.033332333, -0.0837024078, -0.0582027398, -0.0433067605, 0.1015504599, -0.0447882935, -0.2981714308, -0.3654579222, 0.2336856872, -0.2841868103, 0.0996450856, -0.0581564382, 0.3467350602, -0.2967642546, -0.0557832457, 0.0594360605, 0.339995265, -0.3247307241, -0.1192370206, 0.3492453098, 0.001401829, -0.153354466, -0.1125263497, 0.1896641254, -0.2921927571, 0.1068832353, 0.1308776289, 0.1000950709, 0.0136616835, -0.0310705397, 0.102634497, 0.1736069769, 0.1944710761, -0.1298077554, 0.5268262625, 0.3511087894, -0.0813112929, -0.0806330889, -0.1648838073, 0.3052348197, -0.3161437809, 0.2688784301, -0.0768254846, -0.1164691895, -0.129830882, 0.1944043189, -0.3713923693, -0.1132453978, -0.2412792593, 0.4663456976, -0.2068301588, 0.1627431363, 0.2716244459, 0.1168862656, -0.2839522362, -0.2506493032, -0.0663662329, 0.4393609166, -0.179412052, 0.1206074357, -0.0912522972, -0.0400546715, -0.1385926008, 0.1362894028, -0.0775693133, 0.1682337523, -0.0660631061, 0.0870502368, 0.1911990196, -0.0596692897, -0.0910241753, -0.0764424056, 0.0007624831, -0.1495527327, 0.1060776189, 0.4495442212, 0.1980765909, -0.3665606081, -0.2991309166, 0.344769001, -0.3825095594, 0.1332362592, 0.0128852846, -0.3783045411, -0.1573279351, 0.1935901046, -0.0133972447, -0.2210228741, 0.1875379831, -0.0656863675, -0.2725297511, -0.3347983658, 0.0280286111, -0.0398732871, 0.4994840026, 0.0537785217, -0.1659397334, -0.0165584907, -0.3880642056, 0.2039658129, 0.408215791, 0.3886152208, -0.1101715639, -0.0821508691, 0.2972350717, -0.2280924618, -0.2682794929, -0.073520869, 0.18635571, -0.0205731802, 0.0863027722, -0.2469977289, -0.135283649, -0.1253521293, -0.0719894394, 0.198431924, 0.015013393, 0.2216191441, 0.0879131854, -0.0665143803, -0.0980481952, -0.0116574839, 0.0965062752, -0.2961216867, -0.0308173802, 0.1577619314, 0.0749461353, 0.2068415731, 0.205937773, 0.5141113997, 0.312154144, -0.4466287196, 0.4281505942, -0.2516676486, -0.0421580076, -0.201438427, -0.2720138133, 0.0802601501, -0.2733396292, 0.112206459, -0.1533189118, 0.0226520319, 0.1232230291, -0.0630743206, -0.0559190549, -0.1632847935, 0.1542351991, 0.4310770631, -0.0820226893, 0.048948139, -0.0690181926, 0.0351813026, 0.1547565609, -0.017040005, 0.1516803652, 0.2868843079, 0.0593497418, 0.1336823255, 0.2283476889, 0.1495657861, 0.275118053, 0.3341161013, -0.1657235771, -0.0026586957, -0.0418219082, -0.1028194502, 0.0143933743, 0.3576340973, 0.2339669466, -0.3091070056, 0.0760600418, 0.1671629399, -0.4774658382, -0.1646912545, -0.1061158925, -0.0682464391, -0.0654434636, -0.0674616247, 0.1684142351, -0.1984787881, -0.0375807881, -0.0642304868, -0.2903845012, -0.1140811816, 0.0581375584, -0.2823925018, -0.2082515359, -0.0254751444, -0.1248733252, 0.4227747619, -0.2267550081, -0.2609772086, 0.0212909132, -0.1984197497, -0.0083946502, 0.1850646287, 0.41272524, 0.0226877835, 0.8276758194, -0.1950946897, 0.229457885, -0.2050997168, -0.6781933308, 0.1127841026, -0.3867534101, 0.118428953, 0.1493427604, 0.4177561402, 0.2646808028, 0.1319987625, 0.1613959372, -0.067612879, -0.0069796043, -0.0183106344, -0.0761121884, -0.0493327007, -0.1688329875, 0.0080136796, -0.0752812922, -0.1250627637, 0.2304821163, 0.3919711709, 0.1168536991, 0.1816569567, 0.3658493161, -0.2039576769, -0.26006037, 0.2470445186, -0.1743070483, -0.4022273719, 0.1596035957, -0.1208004355, -0.3903037608, 0.3028557599, 0.019155005, -0.0608487241, 0.2590587139, -0.4030800462, -0.2714332938, -0.1416621357, 0.1536109447, 0.3207375407, 0.1175634786, 0.1091606244, 0.0865800977, -0.1305453777, -0.2348520905, -0.1817723364, 0.2536051273, 0.1961794198, 0.0717478469, 0.1912801266, 0.3176031411, 0.2021816969, 0.4311878681, 0.0350573808, -0.3972939551, 0.4045542777, -0.0958912075, 0.2444385886, 0.0072905659, -0.1448664069, 0.6722420454, 0.06789767, -0.1028516293, -0.0357821062, 0.2370907366, 0.2454211712, -0.1405242532, 0.4610107243, -0.3729977906, -0.1936481595, 0.2577970922, 0.233009547, 0.0606729947, -0.1171733961, -0.2740776539, -0.2732435465, -0.1581560075, 0.0791406855, 0.3757719994, -0.0083034253, -0.0959535465, -0.369163841, 0.0514928252, -0.4022350609, 0.2582144439, 0.0423012599, -0.0779386163, -0.2139539719, -0.0392649658, -0.0311109107, 0.0139514785, 0.4281026423, -0.4014830291, -0.1075553894, -0.1105871275, -0.017656384, -0.1977564543, 0.0109560285, -0.1464560628, -0.0475535691, -0.0333622172, 0.0651618764, -0.3153390884, -0.0980371609, 0.2087445408, 0.0597827323, -0.0038958951, 0.0470169783, 0.0389089733, -0.3472653031, -0.2192991227, -0.1534260064, 0.0163734555, -0.2492151856, 0.1989759356, -0.1714543104, 0.0060271639, 0.1258598417, 0.1748084575, -0.040210586, -0.1244705021, 0.4378029108, 0.2688243687, 0.119062759, 0.0048952997, 0.5409365892, 0.7483998537, -0.3648609817, 0.0737137571, -0.0801926181, -0.2837705016, -0.0143370805, 0.3699571788, 0.4072831571, -0.3313988745, -0.202854529, 0.0186521318, -0.5730273724, 0.2688637078, 0.3190245032, 0.051710479, -0.2655496299, -0.3594279289, 0.5206124187, 0.1408437937, -0.050640747, 0.2843953669, 0.3970043361, -0.3059146106, -0.0642489567, 0.6364044547, 0.9744564891, -0.2444977462, 0.2436482906, 0.1243400127, 0.0107459174, 0.3346883655, 0.1149414182, -0.3636956513, 0.013865795, -0.2134399414, -0.1554255933, -0.2868441939, 0.2556644976, 0.1474501789, 0.0924508274, -0.1211272478, 0.2065973878, 0.2817016542, -0.0462520793, 0.3123421967, 0.0325431935, -0.3529043794, -0.0211029649, 0.285141319, -0.1120816022, -0.1106907949, -0.0428661741, -0.1588117629, -0.3090383708, 0.0156267639, -0.2212914079, -0.2078662664, -0.0833661333, -0.2863386273, -0.1897534579, -0.1983577609, 0.2352216393, -0.163674742, 0.3441658616, -0.3037938774, -0.258081615, 0.167452693, 0.0139302602, 0.0527082123, -0.10236229, -0.1668518186, 0.1860718727, 0.0125825079, 0.0823950171, -0.0856861547, 0.1571673602, 0.1585590541, -0.3501048088, -0.2880981863, 0.1281698197, -0.2897835672, -0.1779716164, 0.1147024408, -0.0449025743, 0.0556409881, 0.1717837751, 0.1524998993, 0.2471007407, 0.3299956322, 0.0638036728, 0.0479041673, -0.1401399225, -0.0848911181, 0.1417279094, -0.1286270469, -0.1421264112, 0.0418316983, 0.0476448126, -0.2300723344, 0.2865242958, 0.0723614544, -0.4040723741, -0.1908683926, -0.0935263112, -0.1207300946, -0.0203564744, 0.4407080114, 0.3264051974, -0.1622592211, 0.4150432646, 0.0630301312, -0.1866278946, 0.3412209153, -0.252784282, 0.4649757445, -0.4006934762, 0.0857865512, 0.1622787565, 0.3142687082, -0.3981637657, 0.110550262, 0.3170068562, 0.1133159027, 0.2881738842, 0.2055784166, -0.0026734029, -0.3297706544, 0.0323815197, 0.0303011332, -0.5007466078, -0.182218343, 0.0151922759, 0.1268428266, 0.2648880482, -0.2642149925, 0.0853733197, -0.2576351166, -0.177006796, -0.0306917261, -0.0794699639, -0.0588521026, -0.3734802902, 0.0175024141, 0.2210800499, -0.17065005, 0.2074452043, 0.0508231595, -0.0631253868, 0.5235399604, 0.3338226974, -0.0055484883, 0.0353793986, -0.14949736, -0.0029756951, 0.2809776664, 0.018406814, 0.0487260483, 0.017133262, 0.0915753841, 0.3017185032, 0.2522340715, 0.5027558208, 0.159766838, -0.5128323436, 0.0935685188, -0.0069818306, 0.3016486764, -0.1791479439, 0.0118523575, 0.2232936919, 0.0609162562, 0.21182172, 0.3779042065, 0.3133518994, 0.2706944346, -0.2023993284, 0.1270796955, 0.253038466, 0.1496857554, 0.2210448384, 0.1259212792, -0.4002992213, 0.0483123213, 0.3773489594, 0.3669812679, 0.1512404531, 0.3962554932, -0.0973781049, 0.5817508698, 0.0846051127, -0.0718904659, 0.2441295981, -0.3328928351, 0.6117126942, 0.2239007056, 0.2260995656, 0.0662569553, 0.069858782, -0.0120732179, 0.1254310161, -0.3815158904, -0.0559307635, 0.1955531389, 0.1574841738, 0.2581780851, -0.4971390367, -0.2591101527, -0.0751903206, -0.063828215, -0.0990015492, -0.6088516116, 0.4781713486, 0.137673676, 0.125502944, -0.0446392931, 0.0065693934, -0.1454226673, 0.160050109, -0.0150951268, 0.1711781919, 0.293797493, -0.2759497762, 0.6234054565, 0.4399831295, 0.1957956553, 0.0395404361, -0.1228767186, 0.5196823478, 0.1570762396, -0.1791645437, -0.0362044573, 0.097364001, -0.0935746655, 0.0212936159, 0.2102246433, 0.1893487126, -0.1798331738, -0.0785859749, 0.0220104046, -0.0553455539, -0.2317841053, -0.1073317304, 0.0385759398, -0.0036294567, -0.10193941, -0.0818692595, -0.2545028925, -0.358956039, 0.1897141337, -0.4692098498, 0.0028573165, 0.1237739399, 0.0932160839, 0.0051692491, 0.1868786514, 0.1213696003, 0.0767326355, -0.1605027169, -0.31188187, -0.6393013, -0.0134159345, -0.2556948662, -0.3857096136, -0.0025242013, 0.0023120341, 0.2733487189, 0.2239297926, 0.2988898158, -0.1775604635, -0.0393381976, 0.3680678904, -0.2517457902, 0.07488814, 0.0504048429, 0.327963531, -0.0477754287, 0.0095228078, 0.2377230376, 0.0497567393, 0.1057003886, -0.231174022, 0.0238096118, -0.0546229035, -0.1720269769, 0.4442472458, -0.015425588, 0.3146854043, -0.1700832695, -0.2322072387, -0.0134894131, 0.1340521723, -0.1880667955, 0.1195755377, 0.0030668874, 0.3986950517, -0.1680341959, 0.0741688982, -0.1395298839, -0.2001485378, -0.0627672449, 0.1615573764, -0.5420818329, 0.2234780192, -0.0189337805, -0.0557691194, 0.11990574, 0.241597414, 0.0715739653, -0.0450662188, -0.1747364104, -0.2723182142, 0.4008316398, -0.1861956269, -0.0223087519, -0.1347289532, 0.0011788076, -0.4077858329, 0.1839793921, -0.3789190948, 0.1483035237, 0.2403672785, -0.0451445505, -0.1484275013, 0.3348761797, 0.0634249896, -0.4245302677, -0.0537200421, 0.0562402904, -0.2321216762, -0.1354753524, -0.1041428894, -0.026687799 ]
https://github.com/huggingface/datasets/issues/3813
Add MetaShift dataset
I've started working on adding this dataset. I require some inputs on the following : Ref for the initial draft [here](https://github.com/dnaveenr/datasets/blob/add_metashift_dataset/datasets/metashift/metashift.py) 1. The dataset does not have a typical - train/test/val split. What do we do for the _split_generators() function ? How do we go about this ? 2. This dataset builds on the Visual Genome dataset, using a metadata file. The dataset is generated using generate_full_MetaShift.py script. By default, the authors choose to generate the dataset only for a SELECTED_CLASSES. The following script is used : Code : https://github.com/Weixin-Liang/MetaShift/blob/main/dataset/generate_full_MetaShift.py Info : https://metashift.readthedocs.io/en/latest/sub_pages/download_MetaShift.html#generate-the-full-metashift-dataset Can I just copy over the required functions into the metashift.py to generate the dataset ? 3. How do we complete the _generate_examples for this dataset ? The user has the ability to use default selected classes, get the complete dataset or add more specific additional classes. I think config would be a good option here. Inputs, suggestions would be helpful. Thank you.
## Adding a Dataset - **Name:** MetaShift - **Description:** collection of 12,868 sets of natural images across 410 classes- - **Paper:** https://arxiv.org/abs/2202.06523v1 - **Data:** https://github.com/weixin-liang/metashift Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
156
Add MetaShift dataset ## Adding a Dataset - **Name:** MetaShift - **Description:** collection of 12,868 sets of natural images across 410 classes- - **Paper:** https://arxiv.org/abs/2202.06523v1 - **Data:** https://github.com/weixin-liang/metashift Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). I've started working on adding this dataset. I require some inputs on the following : Ref for the initial draft [here](https://github.com/dnaveenr/datasets/blob/add_metashift_dataset/datasets/metashift/metashift.py) 1. The dataset does not have a typical - train/test/val split. What do we do for the _split_generators() function ? How do we go about this ? 2. This dataset builds on the Visual Genome dataset, using a metadata file. The dataset is generated using generate_full_MetaShift.py script. By default, the authors choose to generate the dataset only for a SELECTED_CLASSES. The following script is used : Code : https://github.com/Weixin-Liang/MetaShift/blob/main/dataset/generate_full_MetaShift.py Info : https://metashift.readthedocs.io/en/latest/sub_pages/download_MetaShift.html#generate-the-full-metashift-dataset Can I just copy over the required functions into the metashift.py to generate the dataset ? 3. How do we complete the _generate_examples for this dataset ? The user has the ability to use default selected classes, get the complete dataset or add more specific additional classes. I think config would be a good option here. Inputs, suggestions would be helpful. Thank you.
[ -0.0206870008, -0.1677132696, -0.0047672577, 0.0912782624, 0.3228175342, 0.0555274636, 0.2001730204, 0.3405480087, -0.0290364902, 0.0101518529, 0.0464552864, 0.1604141742, -0.1158286855, 0.3556983769, 0.2689017355, -0.2559720874, 0.0439613946, 0.1324379891, -0.1062055752, -0.3909783661, -0.2499924451, -0.3070371449, 0.1598403752, -0.1281542927, -0.2444309443, -0.0779452845, -0.1818042248, 0.3909647167, -0.4350219071, -0.1963995546, 0.0291268639, 0.1213014051, -0.0169660803, 0.4419445693, -0.000111722, -0.1091140136, -0.0916456282, -0.2711811364, -0.0842127651, -0.2686050236, -0.4963569939, -0.1005345955, -0.2525038421, -0.2369919419, -0.1385634989, -0.0824788436, -0.0090834256, -0.2119811624, 0.4098370075, 0.3120226264, 0.1434290111, -0.3956242204, -0.0441239811, -0.0744818226, 0.3937605619, 0.6580713391, -0.1962923557, -0.093156822, 0.2014018595, 0.182464242, 0.0413863137, 0.2327768952, 0.2404886782, -0.1474274844, 0.5799272656, 0.0772381797, -0.2742070854, -0.6429896951, -0.206227541, 0.4753023684, 0.2426241636, -0.123916328, -0.1912631243, -0.2493995279, -0.0269041918, -0.2995619476, 0.1317993999, 0.3998022377, -0.2664476633, -0.054498598, -0.1656279415, -0.2559871376, -0.3928062618, 0.1306178272, 0.2978367805, 0.0651292726, -0.0202441067, 0.0749250874, 0.2489349395, -0.1285969913, -0.360581696, -0.3436279595, 0.1539209485, 0.2429580539, -0.1309266984, -0.1436077505, 0.1041335315, -0.225635618, 0.2891850173, 0.0887635723, -0.0092595834, -0.0185131878, -0.1693698466, -0.0756868646, 0.0806859359, -0.0848652795, 0.0612286851, 0.2900938094, 0.0167254359, 0.0265629925, 0.0144288596, -0.0024004702, -0.0010856221, -0.130127281, -0.1827524751, 0.0140463021, 0.0579115972, -0.0783402622, 0.2900909483, 0.1426201463, 0.0089290636, -0.2557220459, 0.0415957794, 0.3251180947, 0.1258871853, -0.1469596922, -0.0222136788, 0.2676904798, -0.1402261853, -0.1935175955, -0.0802986994, 0.2297556996, -0.2912946641, 0.0705841929, 0.2716200948, 0.1323473752, 0.0630827546, 0.0371183529, 0.0444604307, -0.0375171639, 0.0502144285, -0.0796193704, 0.5250806212, 0.3514079154, -0.0123785166, 0.1954167187, -0.0439860076, 0.2448291481, -0.3101830184, 0.1991020888, -0.0871983692, -0.2950673699, 0.1652222574, 0.1696424186, -0.2600920796, 0.0632174611, 0.0197329037, 0.3013644516, -0.1650488079, 0.1794356406, 0.0503386036, -0.1709411442, -0.115299888, -0.4966236651, 0.4196907878, 0.50852561, -0.3890302777, -0.0913624167, 0.0314374603, -0.1265831292, -0.034499567, -0.0918602422, -0.1008228511, 0.4223151505, -0.024818128, 0.1993246526, 0.5740743876, -0.0453843772, -0.0882893056, -0.0271027572, 0.0049860789, 0.0299827997, 0.15153566, 0.4034028351, 0.1813434809, -0.2238190919, -0.1309161335, 0.4798490107, -0.5663670301, -0.1215898767, 0.0345708281, -0.1969622672, -0.1125413403, 0.2804908752, 0.0934780911, -0.350461781, 0.1107509732, -0.1924483925, -0.0269556437, -0.5108347535, 0.2164858133, 0.0375496373, 0.4890039861, 0.3026669025, -0.0492419563, -0.0031066218, -0.2808519304, 0.2572236657, 0.0887562037, 0.3705159426, 0.000328905, -0.1296640188, -0.163785398, -0.1484258175, -0.4111128151, 0.0287300926, 0.0884607807, -0.1245359853, 0.0896505639, -0.3035778701, -0.1188172027, -0.1795923561, -0.3262939751, 0.2600653768, -0.3436361551, 0.2735228837, -0.1596628129, -0.1154859886, 0.0233696029, 0.2172012329, 0.0443482324, -0.3216702342, -0.046801962, 0.3044572771, 0.1252995133, -0.0101730693, 0.0490588434, 0.6786633134, 0.2033859044, -0.4108331203, 0.3198062181, -0.3394107223, 0.1257299185, -0.1778269261, -0.2861720324, 0.2128637135, -0.1967024803, 0.0453293435, 0.0255223662, 0.1087111309, 0.3296042979, -0.1676030457, -0.0856234357, -0.1093834937, -0.1090738699, 0.1451795697, -0.1595843285, -0.0758409128, -0.2565892935, 0.3288547397, 0.3633606136, -0.1129022837, 0.0620537736, 0.104059495, -0.2001903206, 0.1019148752, 0.0164945889, 0.2406654656, 0.2199081481, 0.1744931936, -0.1010545865, 0.096014455, -0.1851558387, -0.0761644095, 0.2030176818, 0.3190694153, 0.3147056401, 0.020540759, -0.3371984661, 0.1843080372, -0.201863721, -0.0406996086, 0.0032966831, 0.02888011, -0.301736325, -0.0415872149, 0.1439261585, -0.0701706484, -0.1521503329, -0.3320417404, -0.0076606204, -0.1994323432, 0.0714874417, -0.4183245301, -0.2813175917, 0.1624472439, 0.018840231, 0.2417123169, 0.0435713269, -0.2766415775, 0.1167270839, -0.2544826567, -0.0260235984, 0.1190796793, 0.3677418232, 0.2760867178, 0.5672628284, -0.2306263745, 0.1738227159, 0.0749150887, -0.4850106537, 0.2090518177, -0.4541380703, 0.2838903964, 0.2077138424, 0.1805722415, 0.4613542557, -0.1369626224, 0.2027042359, -0.1510691345, 0.0146871656, -0.071145907, -0.0210819952, -0.1815547347, -0.2233416885, -0.6576334238, 0.0150764743, -0.1379156709, -0.0126120849, 0.4338310361, 0.3187154531, 0.0270072315, 0.3651018143, -0.0407468416, -0.2175848931, 0.2905583978, -0.1510997117, -0.3285253942, 0.3293649256, -0.2897960544, -0.3502067626, 0.4592913091, -0.2511922419, 0.0227446444, 0.0659946501, -0.2032961249, 0.0767147765, -0.2045246661, 0.257796973, 0.0334642082, 0.3147861362, 0.3088254631, 0.1490120143, 0.0122097507, -0.2746922672, -0.136361748, 0.3795559108, 0.0447274819, 0.2309138775, -0.1625014246, 0.4871056974, 0.0930196419, 0.7472661734, 0.1488719881, -0.2902459502, -0.1279805899, -0.0414365306, 0.136426568, 0.1167053133, -0.1813891232, 0.4593185782, 0.0186696928, 0.119280979, 0.1194811612, 0.1972838789, 0.3516223133, -0.1187376156, 0.3840291202, -0.4362191558, -0.4795180261, 0.4784617424, -0.033452116, 0.1625839919, -0.1931671947, -0.0584904216, -0.4938772321, -0.0421742089, -0.0009740681, 0.3321523368, 0.1504935175, -0.1274774224, -0.3814040422, 0.0240396634, -0.2826142609, 0.1139321998, 0.1989084184, -0.0273576099, -0.1018312871, -0.2783421278, -0.0160432011, -0.0040557925, 0.4298833609, -0.4356580973, 0.1381879747, 0.1162608713, -0.0191742964, 0.0427413434, 0.0074102264, -0.3253684044, -0.09934026, 0.2625595331, -0.0085662147, -0.4066396058, -0.1716265529, 0.5531160235, 0.1734378636, -0.18523103, -0.0017160121, 0.1481565535, -0.0637959316, -0.2961034775, -0.2740314007, -0.1636249125, -0.0233639292, -0.2036774307, -0.1180030853, 0.1899758875, 0.0053693075, 0.4580476582, 0.192161262, 0.0056903646, 0.3197057545, 0.1169544756, 0.0813606754, -0.272970885, 0.4433220029, 0.6283639073, -0.1851071864, -0.0472658202, -0.0327146836, -0.2739842236, 0.3351777792, 0.2180559635, 0.1127604321, -0.3588091731, -0.2391165495, -0.1129456982, -0.6224666238, 0.3992765844, 0.3437924087, -0.0400552377, -0.233479321, -0.549911797, 0.3618712723, -0.0448480025, -0.162106365, 0.33626315, 0.2256336957, -0.2975133061, 0.0836925581, 0.4588201046, 0.9775354862, -0.2634730935, 0.0917843729, 0.1646101177, 0.2002259642, 0.3880780935, -0.0112101575, -0.1841475964, -0.2557600439, -0.2201363593, -0.0766823366, -0.3108587563, 0.3348846138, 0.0976748466, -0.1719680727, -0.0176678728, 0.0550677851, 0.4461129308, 0.0187961422, 0.3136586249, 0.2016458809, -0.418733865, 0.0554073676, 0.1630214602, -0.0002256523, -0.1447317749, -0.0267878883, -0.26827389, -0.5852990746, -0.0126281409, -0.1091506109, 0.1425766796, -0.0402769484, -0.2716515362, -0.2478560805, -0.2270763069, 0.4115321934, -0.0204864163, 0.2854507267, 0.0989554673, -0.1184755564, 0.2686870694, 0.1157123297, -0.0371216722, -0.0183554199, 0.0810547024, 0.4845935106, 0.0244134776, -0.0546061508, 0.2411739677, -0.0511787683, 0.1363641918, -0.2682851553, -0.3735938966, 0.3063685894, -0.4563587606, -0.1451472789, 0.1182754114, -0.1746521294, -0.0383655839, 0.1038833186, 0.2679069936, -0.1609492451, 0.320815891, -0.1460088193, 0.0189582277, -0.1529765725, -0.2488794923, 0.1403747052, -0.1182485372, 0.1146658361, 0.1266317815, 0.1343752146, -0.2229558676, 0.180068776, 0.0532864444, -0.4186314642, -0.1533053964, 0.0892651528, -0.1126283482, 0.0779031813, 0.4223361909, 0.210454151, -0.0778883398, 0.1382928789, -0.0471170656, -0.2263682336, 0.1179218814, -0.252063185, 0.3860791624, -0.2922424674, 0.3882600665, 0.1037952751, 0.5354459882, -0.3375140131, -0.0390146673, 0.0449089855, 0.2392085791, 0.3541895449, 0.1144855842, -0.0530678108, -0.30616045, -0.0017853627, -0.2661618888, -0.5317454934, -0.1367786676, -0.0498507619, 0.1214908659, 0.1036785617, -0.0461350456, 0.0299373716, -0.2166044861, -0.2245073318, -0.1208156198, 0.0424523205, -0.1573768705, -0.2642156184, 0.2155788094, 0.2458130717, -0.0775585696, 0.0584873594, 0.1333838701, -0.2403199971, 0.4727024138, 0.1708657295, -0.0516504832, -0.1378908455, -0.3213906586, -0.1308575571, 0.3449852467, 0.1613769978, -0.0140294973, 0.4436876774, 0.0550399497, 0.2196877301, 0.0820287988, 0.1934059858, 0.2811769545, -0.2969959974, 0.2625176311, -0.0341504365, 0.194320932, -0.1097381487, 0.1455192417, 0.1039183363, 0.0183834527, 0.3435489535, 0.4586850703, 0.3477520645, 0.232011646, -0.2224408239, 0.0255563408, 0.1324331015, 0.2979478836, 0.5305930972, 0.5526993275, -0.3979465663, -0.008523942, 0.3096054494, 0.1694812328, 0.1794417053, 0.1886904836, -0.0133108106, 0.3336208463, 0.0446840152, -0.1029551849, 0.2200246155, -0.4729062617, 0.2029672563, -0.0134493457, -0.0448713116, 0.1704663336, 0.0173758212, 0.1283815205, 0.0382345505, -0.3916572332, -0.0176399481, 0.2704817057, 0.130002439, 0.2170154303, -0.6855769753, -0.2329997718, -0.1202681139, -0.2255647182, -0.0779560283, -0.4536446929, 0.2064364254, 0.0581348576, 0.084866114, 0.1338532716, 0.1159742102, 0.0413747579, 0.0353603587, -0.0965647772, 0.1069556847, 0.2296676785, -0.2310430259, 0.2944244146, 0.053479217, 0.1027550474, 0.2051409036, -0.2099773586, 0.4530540705, 0.2638404369, -0.1307158321, 0.114697367, -0.0091963401, -0.0176373199, 0.0982854366, 0.3419568241, 0.1410006881, -0.1511861533, -0.370718807, 0.0182183869, 0.1439659148, -0.0378530659, 0.17771101, 0.2154853642, -0.1881745458, -0.1555302888, -0.0281242114, -0.3235589862, -0.3003585935, 0.2999061346, -0.1997899115, 0.0512278378, -0.2371748388, 0.0764630437, -0.0299446918, 0.4849900007, -0.0127605191, -0.148257032, -0.3857290149, -0.3253655434, -0.5345596671, -0.2750479877, -0.2070435286, -0.3626802564, 0.0384801514, 0.1458020955, 0.4566161633, 0.1435870677, 0.1082376465, -0.136223048, 0.0711785406, 0.2770996392, -0.1768907756, -0.1459781229, -0.1422332227, 0.1616126746, -0.134682104, -0.0639073774, 0.1582864374, -0.1263236701, 0.0502627306, 0.101259537, -0.0239754003, 0.1363421977, -0.1312256902, 0.4564641416, 0.0877277702, 0.3061665595, -0.1251771748, -0.1654678732, -0.1378639638, 0.1009870917, -0.0471578762, 0.2315354496, -0.0460787602, 0.4959160984, -0.1128270924, 0.1384916008, -0.4054858983, -0.2431106865, 0.08009547, 0.0848674551, -0.4320896268, 0.2401940823, -0.21864371, 0.2660849392, 0.449365139, 0.3407478929, -0.1758118868, 0.1427793205, -0.1538808197, -0.229560405, 0.3135377765, -0.0042629717, -0.2148848176, -0.2641887069, 0.1324352771, -0.2028687447, 0.4226033092, -0.3184986115, 0.1358311325, 0.2385021299, -0.0316024423, -0.1346714944, 0.297172159, -0.2098098099, -0.2677960694, -0.0262022428, 0.0938920602, -0.1069721356, 0.137044698, -0.1914513856, -0.1776191294 ]
https://github.com/huggingface/datasets/issues/3813
Add MetaShift dataset
Hi ! Thanks for adding this dataset :) Let me answer your questions: 1. in this case you can put everything in the "train" split 2. Yes you can copy the script (provided you also include the MIT license of the code in the file header for example). Though we ideally try to not create new directories nor files when generating dataset, so if possible this script should be adapted to not create the file structure they mentioned, but instead yield the images one by one in `_generate_examples`. Let me know if you think this is feasible 3. see point 2 haha > The user has the ability to use default selected classes, get the complete dataset or add more specific additional classes. I think config would be a good option here. Yup ! We can also define a `selected_classes` parameter such that users can do ```python load_dataset("metashift", selected_classes=["cat", "dog", ...]) ```
## Adding a Dataset - **Name:** MetaShift - **Description:** collection of 12,868 sets of natural images across 410 classes- - **Paper:** https://arxiv.org/abs/2202.06523v1 - **Data:** https://github.com/weixin-liang/metashift Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
152
Add MetaShift dataset ## Adding a Dataset - **Name:** MetaShift - **Description:** collection of 12,868 sets of natural images across 410 classes- - **Paper:** https://arxiv.org/abs/2202.06523v1 - **Data:** https://github.com/weixin-liang/metashift Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Hi ! Thanks for adding this dataset :) Let me answer your questions: 1. in this case you can put everything in the "train" split 2. Yes you can copy the script (provided you also include the MIT license of the code in the file header for example). Though we ideally try to not create new directories nor files when generating dataset, so if possible this script should be adapted to not create the file structure they mentioned, but instead yield the images one by one in `_generate_examples`. Let me know if you think this is feasible 3. see point 2 haha > The user has the ability to use default selected classes, get the complete dataset or add more specific additional classes. I think config would be a good option here. Yup ! We can also define a `selected_classes` parameter such that users can do ```python load_dataset("metashift", selected_classes=["cat", "dog", ...]) ```
[ -0.1713750213, -0.085492596, -0.1429995298, 0.1220314503, 0.2432813346, 0.0219148509, 0.5056431293, 0.2920890749, 0.1803073138, 0.1295088828, -0.1259089857, 0.3187862933, -0.3814881146, 0.3359365761, 0.2225328386, -0.3426352739, -0.0453623272, -0.0169433877, -0.4357622564, -0.2787139714, -0.1351093799, -0.1734781265, 0.1918792427, -0.167146191, -0.1744368076, -0.100368835, -0.2789420784, 0.2975195348, -0.2775051296, -0.210395962, 0.0295087863, 0.1951225549, 0.1212305129, 0.4812792242, -0.000102626, -0.0359663218, -0.2641311288, -0.2260330617, 0.0262495391, -0.2793754935, -0.1735372394, 0.0321361311, -0.185378179, -0.4760912359, -0.2596639097, 0.054311756, 0.1492690146, -0.1845446825, 0.6137753129, 0.2783638239, 0.2564156353, -0.243326053, -0.2556640804, -0.028624123, 0.2965324819, 0.4603509605, -0.1727157235, 0.0737155601, 0.214024052, 0.1322759986, 0.0043364214, 0.256950289, 0.1680523306, -0.2418022305, 0.4714137018, 0.1708839089, -0.0644063652, -0.6214827299, -0.1912196428, 0.4629723132, 0.1736661941, -0.1054152995, -0.1764009148, -0.1933260113, -0.0077534313, -0.1363964975, -0.1740732938, 0.5972145796, -0.2103252113, 0.0638873726, -0.2337102294, 0.0149948988, -0.4762998819, 0.0660967901, 0.2260617614, 0.0706617311, -0.0515928082, 0.0574236736, 0.1356960237, 0.0078311618, -0.0939605981, -0.1884720027, 0.2775956392, 0.2086523622, 0.0953164026, -0.1730406582, -0.0506587401, -0.1825265735, 0.3284853101, 0.235530436, 0.0881974027, 0.0513952859, -0.025858894, 0.0604431368, 0.2010169178, -0.2231750339, -0.1864123344, 0.0769947171, 0.0346665867, 0.1075371578, -0.1812855452, 0.0072395219, -0.0626483187, -0.0196464173, -0.2486251295, 0.0067529706, -0.0218963921, 0.1194235682, 0.2223732322, 0.0212792885, 0.221363917, -0.1038262025, -0.0980476812, 0.4619572163, 0.0358572006, -0.167996034, 0.1324819028, 0.1421524584, -0.0541661903, -0.1343388408, -0.0755054578, 0.2693355083, -0.2499655336, 0.1333352625, 0.0659326389, 0.0768385231, 0.1974928975, -0.0878075585, 0.3309434652, 0.0629933625, 0.2227968872, -0.1693211049, 0.3840783536, 0.1725316346, -0.0114067355, -0.1005859375, -0.0580082797, 0.1741983294, -0.4390956163, 0.1745891571, -0.0884140357, -0.1512620598, 0.1041461378, 0.263245672, -0.0522920974, -0.1010666862, -0.1502707601, 0.3087924421, -0.2092508823, 0.2581182718, 0.156403169, -0.181483224, -0.1651246697, -0.450486511, 0.1124442071, 0.5075387955, -0.0842101872, -0.1288881451, 0.1051090285, -0.1167284772, -0.0043172529, -0.0736995116, -0.2457020879, 0.3596147299, -0.1327021271, 0.1980877668, 0.4703371227, -0.0575627796, -0.0710506663, -0.1511608511, 0.0338464603, 0.0658744499, 0.2130271345, 0.4191643, 0.3640284836, -0.206769228, -0.1200645342, 0.5442053676, -0.2732967436, 0.0468798466, 0.1305382848, -0.3632336557, -0.043324735, 0.3602816761, 0.218693465, -0.0541144796, 0.1300497055, -0.0066274176, 0.2039381117, -0.5015252233, 0.0386706069, 0.0448498949, 0.3631574512, 0.3604660332, -0.0297615286, -0.3296713829, -0.2181914896, 0.19916825, 0.0754171237, 0.2173470557, -0.099885717, -0.3326766193, -0.0508980677, -0.1881195307, -0.3735208511, -0.0269675814, 0.1971254051, -0.112506412, 0.0784415379, -0.2277383059, -0.2712686956, -0.1036009192, -0.3305698037, 0.2257073969, -0.1282522976, 0.2994077802, -0.2091211528, -0.0003202002, 0.0119477268, 0.0451564044, -0.1072060317, -0.3808166981, 0.1719533205, 0.3074438274, 0.1491850466, -0.008669626, 0.0205514338, 0.4042966664, 0.1519865096, -0.4811360538, 0.3169349432, -0.0345087983, 0.0450383946, 0.0589549169, -0.2861289978, 0.4348739684, -0.1321584135, 0.0429566726, 0.2507202029, 0.0200448222, 0.1081311852, -0.1908349097, -0.0535074994, -0.0968623236, -0.1193716452, 0.2038124353, -0.1054714397, -0.0281326883, -0.2974166572, 0.2492842972, 0.503988862, 0.0445757657, 0.0181444306, 0.0571762919, -0.0705770403, 0.2856908739, -0.0116460128, 0.1380452961, 0.3094792068, 0.3308017552, -0.0780398622, 0.1010680273, 0.0013267946, -0.0228293352, 0.2193143666, 0.1523889899, 0.1907721609, -0.063564077, -0.1739768237, 0.1385085732, -0.4159287512, -0.3361180425, -0.1038815826, -0.1864597499, -0.0118742846, 0.1094726995, 0.1973597854, -0.1469489187, -0.164633885, 0.0570024252, -0.0772196278, 0.1209651902, 0.1977941096, -0.2975296974, -0.2712242007, 0.0935018137, -0.155076921, 0.4223381877, -0.063741751, -0.1330344528, 0.1484809518, -0.089609988, 0.0195231605, 0.2001467794, 0.3811110854, 0.009381244, 0.6987695694, -0.2212854922, -0.0354378857, -0.0886408463, -0.3641218245, 0.1965439469, -0.2550825477, 0.0815307871, 0.2120425403, 0.298391968, 0.2065591365, -0.1129945144, 0.2723436058, -0.1536826491, -0.1097237393, -0.2439023852, 0.2379832417, -0.0766621754, -0.3094434142, -0.5846554041, -0.3071858287, -0.2087838948, 0.1934526265, 0.6218827367, 0.341973871, 0.0532948896, 0.3993543386, -0.0739387274, -0.1481507123, 0.4150900841, -0.1228411943, -0.3477104604, 0.1952228397, -0.3329268992, -0.4700804651, 0.1345830262, -0.1847296804, -0.0553875566, 0.0930153057, -0.3589763939, -0.3498621285, -0.1599856317, 0.1779901385, -0.0883943811, 0.3428149819, 0.2566939294, 0.0870729759, -0.1553485096, -0.1967137307, 0.0975370705, 0.2550488114, -0.063798897, 0.0102864141, 0.0288996752, 0.2491101772, 0.1602263004, 0.6947700381, 0.1918841749, -0.257765919, 0.1521681249, -0.163844049, 0.1408079416, -0.0512357093, -0.0637976155, 0.3741256297, -0.0803086236, 0.0314422064, 0.1596000195, 0.0882655159, 0.2263370156, -0.0203966387, 0.4339140058, -0.4578201473, -0.3888855577, 0.4166070521, 0.1762268692, 0.0750090554, -0.2799718082, -0.1776193529, -0.2899003923, 0.0213008802, 0.2009114027, 0.4565481544, 0.0097000264, -0.1441374719, -0.462220788, -0.0301445238, -0.2263126373, 0.099426195, 0.1111989021, -0.3457049131, -0.11700546, -0.2174890786, 0.1627174914, -0.1278489977, 0.5118938088, -0.2191422731, -0.0530982427, -0.0387358814, -0.1713977307, -0.0818221942, 0.0535545945, -0.2580016851, -0.2222839892, 0.140083611, -0.0157037918, -0.3985551298, -0.1508038789, 0.3671634495, 0.1371809244, -0.3048361242, -0.023449285, 0.0969529822, -0.1925137639, -0.3605979085, -0.105924122, 0.046754919, -0.055602558, -0.166571483, -0.1818298697, 0.0076072267, 0.0023785203, 0.2851446271, 0.0589717217, 0.1625800133, 0.2394664437, 0.010115996, -0.1350413114, -0.0268644318, 0.4288630784, 0.7318587899, -0.3714846671, 0.0079816636, -0.178384915, -0.1400384605, 0.2276456952, 0.3970361352, 0.1518533826, -0.2940836251, -0.1189476326, 0.0000898034, -0.3728365302, 0.3405440152, 0.1910012811, -0.2063312531, -0.0628833473, -0.6923651695, 0.3114459515, -0.0152778635, 0.0138246221, 0.0117551498, 0.0009456684, -0.3985522091, 0.2643419504, 0.4365751147, 1.0492807627, -0.373093307, 0.5925389528, -0.011666907, 0.2067042142, 0.3642188609, -0.0194438901, -0.1303369403, -0.3114546537, -0.2088882774, -0.1567117274, -0.2576847076, 0.086704053, 0.2108981758, -0.1501865536, -0.0784661099, -0.0798174962, 0.2631130219, -0.1587352306, 0.2318564057, -0.093111679, -0.3588761389, -0.1122391373, 0.2530232966, 0.1526796967, -0.1119570658, -0.0494275354, -0.261513561, -0.4399633408, 0.0544726327, -0.0397426635, 0.1197684482, -0.2039830238, -0.0694963038, -0.2666222155, -0.222827822, 0.1062502787, 0.2328055352, 0.0790033489, 0.0002154252, 0.0222347621, 0.1201971918, 0.0017732969, -0.0407605916, -0.0344880931, 0.1000053808, 0.4632275701, -0.0055898759, 0.1632535011, 0.0996351987, 0.0469023399, 0.0002733713, -0.2660754025, -0.1352389455, 0.4589259624, -0.3629359007, -0.2624050379, 0.0708140358, -0.2445580214, -0.0394442715, 0.1930917203, 0.0970187858, -0.0400144048, 0.3169273138, -0.0241465066, 0.0088755805, -0.0754293129, -0.153808251, 0.3424280882, -0.0607255995, 0.1320157647, 0.0706484765, 0.0427799858, -0.3247106373, 0.1553314924, 0.1496732831, -0.3937917352, 0.0886954963, -0.0633357465, -0.0748840123, -0.0397460684, 0.3471169472, 0.2451772392, -0.1330291778, -0.0064806812, -0.0652006865, -0.2312782854, 0.2009813935, 0.0349504352, 0.5911200643, -0.1675924957, 0.3338262439, -0.0490605272, 0.0699382722, -0.452216357, 0.0089368327, -0.0408588089, 0.0562878028, 0.2876766026, 0.2249340713, -0.0537550747, -0.082401894, 0.1148521304, 0.0108319735, -0.4080406427, -0.2973953485, -0.2215548754, 0.0782760084, 0.1810978055, -0.0560991019, 0.0452534035, -0.1162150353, -0.2052589357, -0.0511617772, 0.1542740464, -0.055705443, -0.2080819607, 0.1045366079, 0.2223122418, -0.0252235364, 0.0815239549, 0.0481107719, -0.2766691148, 0.4342246056, 0.2893523574, -0.0189223625, -0.1444743574, -0.2215044051, 0.0374040082, 0.1955359578, 0.252004832, 0.0533722639, 0.290237546, 0.0913986191, 0.118646659, -0.054707814, 0.3013140261, 0.368614167, -0.461663872, 0.229518041, 0.2766411006, 0.3226155937, -0.2257637382, 0.064016901, 0.0911171585, -0.233994633, 0.2125747204, 0.5097536445, 0.1074849516, 0.2491633296, -0.2670202553, -0.0082419394, 0.048988048, 0.2668742239, 0.4016723633, 0.3006325662, -0.2260635048, 0.1004418656, 0.199015528, 0.3176676035, 0.2704274356, 0.219958961, -0.1778485924, 0.410172224, -0.0592880659, -0.1393279135, 0.2358576506, -0.1663208902, 0.3143167794, 0.0522173047, 0.2262737304, 0.3060293794, -0.0123755494, 0.2491708547, -0.0258585773, -0.460878998, -0.0152414823, 0.2486916929, 0.1064963639, 0.1413371414, -0.4958563745, -0.1157984063, -0.0768573731, -0.0188660156, -0.0521011725, -0.5386422873, 0.151755318, 0.1435253024, 0.0847107694, 0.0566169582, -0.1277737916, -0.0627323762, 0.0934615284, -0.1483483613, -0.0128713474, 0.1482757479, -0.0590928942, 0.2561348379, 0.102694869, 0.0310543031, 0.2272706628, -0.0617814772, 0.2345454097, 0.205399394, -0.0124763176, -0.0397495404, -0.2503640056, 0.2009277493, 0.1512046307, 0.3146498799, 0.1746395528, -0.2678672671, -0.2865404487, 0.0658730567, 0.0003209342, -0.1587201804, 0.0815435126, 0.2075735778, -0.2403516769, -0.1410746723, -0.0835173875, -0.5823758245, -0.3269882202, 0.2096962929, -0.2150696814, 0.1112011895, -0.0899048001, 0.1192547902, 0.0460382923, 0.3758812845, -0.0015451376, -0.0004075259, -0.1595731974, -0.2289543897, -0.416236192, -0.1394820213, -0.1635233909, -0.3949638903, -0.0685458928, 0.1626785547, 0.2201621234, 0.1415698975, 0.2644252777, -0.1463187784, 0.1813503802, 0.3989312649, -0.3308021724, -0.0314890519, -0.067661643, 0.4287992418, 0.0534447394, -0.1010253578, 0.0117170867, -0.2241369337, 0.1241452098, 0.0397013687, 0.0461235456, -0.0858101696, -0.31595999, 0.5329832435, -0.1814406365, 0.231939733, -0.1686737686, -0.1130884439, 0.033305753, -0.0171221234, -0.1550546438, 0.088146463, 0.1398642808, 0.4393787682, -0.1626633257, -0.0713318065, -0.1725961864, -0.0760544538, 0.1533250064, -0.1420600265, -0.2454482317, 0.0654785335, -0.025282817, 0.1291854233, 0.1288651824, 0.4807789326, -0.2128305584, -0.1871894151, -0.2190365642, -0.3157360554, 0.4578386545, -0.2314428091, -0.3065198958, -0.1335588098, 0.0687145665, -0.3296821117, 0.4015076458, -0.3300411403, 0.1675632, 0.1631664634, -0.0673758909, -0.1537960023, 0.4520431161, -0.2154611051, -0.3184318542, -0.0492184795, -0.0104788123, -0.1713729352, -0.0494865775, -0.2350658476, -0.28907305 ]
https://github.com/huggingface/datasets/issues/3813
Add MetaShift dataset
Great. This is helpful. Thanks @lhoestq . Regarding Point 2, I'll try using yield instead of creating the directories and see if its feasible. selected_classes config sounds good.
## Adding a Dataset - **Name:** MetaShift - **Description:** collection of 12,868 sets of natural images across 410 classes- - **Paper:** https://arxiv.org/abs/2202.06523v1 - **Data:** https://github.com/weixin-liang/metashift Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
28
Add MetaShift dataset ## Adding a Dataset - **Name:** MetaShift - **Description:** collection of 12,868 sets of natural images across 410 classes- - **Paper:** https://arxiv.org/abs/2202.06523v1 - **Data:** https://github.com/weixin-liang/metashift Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Great. This is helpful. Thanks @lhoestq . Regarding Point 2, I'll try using yield instead of creating the directories and see if its feasible. selected_classes config sounds good.
[ -0.3895172775, -0.0509430468, -0.1791785359, 0.1671943367, 0.3236090839, -0.2388732135, 0.2462814003, 0.2632824481, 0.1178998202, 0.3443958163, -0.1489603668, 0.1883939207, -0.1833632588, 0.2654520869, -0.0889893472, -0.1708958149, 0.0098175835, 0.0219870359, -0.4625787735, -0.3382689357, -0.2971763313, -0.026423756, 0.1553835571, -0.2777855992, -0.2578546107, 0.1134652421, -0.1777400672, 0.320022583, -0.2286585569, -0.1323252916, 0.0234170277, 0.1727738082, 0.0294275321, 0.4867741764, -0.0000973617, -0.0728515461, -0.1010106206, -0.2816464007, -0.0792608261, 0.0239016041, -0.1853613108, -0.026451759, -0.2507655025, -0.3703629673, -0.3569296896, 0.0649829134, 0.0275255982, -0.1632047147, 0.2688806653, 0.0341939367, 0.3701206148, -0.2361433804, -0.1796729714, -0.1605499238, 0.2042284161, 0.6134074926, -0.3163790107, 0.0039529582, 0.2658746839, 0.0525672249, -0.0340577215, 0.4224967659, 0.1473829597, -0.0329412036, 0.4840034842, 0.3195941746, -0.0030699219, -0.3683844507, -0.1413715482, 0.1382097453, 0.1955311149, -0.0124416454, -0.1594638079, -0.2242227644, -0.2817412317, -0.0663038269, 0.1102386862, 0.4969944358, -0.0924625471, -0.0306904428, -0.2818900049, 0.0445022732, -0.3980394602, 0.1095728353, 0.3819838166, 0.1387382746, -0.0635416731, -0.0686143041, 0.2186119109, -0.0802064389, -0.3090290427, -0.2534578145, 0.0862243101, 0.0886061192, 0.0791005269, -0.1761443168, 0.2053527236, -0.0414041691, 0.3619939983, 0.2026762813, -0.0681606755, 0.157246694, -0.0208875127, 0.0299310256, 0.0183792133, -0.003468334, 0.0210331809, -0.0077196178, 0.2574494183, 0.3339689076, -0.1832004189, 0.0611404143, 0.1674731821, -0.0677269995, -0.2930778861, -0.0372547694, -0.0814450607, -0.0802385211, 0.244518429, -0.0408576019, 0.3105844557, -0.1755672991, -0.101937063, 0.4551902711, 0.1626971662, -0.2059165537, 0.1878746748, 0.1487485468, -0.1627421677, -0.1761188805, -0.1838410348, 0.0996399969, -0.3680686951, 0.1892021149, 0.0859309286, 0.1859131008, 0.1560722739, -0.1687856615, 0.2741816342, 0.1172120944, 0.0070697432, -0.0109480983, 0.2854574919, 0.2076706588, -0.0818252414, -0.1442198157, 0.0098515889, 0.0835354701, -0.3049460351, 0.0439242944, 0.1504564285, -0.2718987167, 0.0929067284, 0.3082819879, 0.2105260789, 0.0550087988, -0.1048372015, 0.4233041406, -0.1487235427, 0.2918604016, 0.0914670005, 0.104593657, -0.0767088458, -0.2651067078, 0.1456791162, 0.5464301705, -0.0344934165, -0.1847728193, 0.1367259324, -0.1353982687, 0.0619912371, 0.1142804846, -0.2255957127, 0.04589938, -0.2396720797, 0.2657377422, 0.2419469953, -0.1014279872, -0.1763137281, -0.1654966027, -0.0845164284, -0.2033252567, 0.2644900382, 0.3263711035, 0.1442272365, -0.3142994046, -0.123671554, 0.4259984791, -0.3158284724, 0.2198039442, -0.133999154, -0.3348039389, -0.2860125005, 0.2864801288, 0.1712377518, -0.0684226304, 0.2690222859, -0.1139632612, 0.1214428246, -0.5862210989, 0.2238143086, 0.0973813608, 0.4004169405, 0.1138347238, -0.0757971331, -0.1372194886, -0.2899137437, 0.1901642382, -0.1328296214, 0.418366611, -0.0016059269, -0.2518886626, 0.0940780044, -0.1187577397, -0.1984104067, -0.0874867216, 0.2967779338, 0.0535658859, 0.1572417319, -0.2649131417, -0.0304407068, -0.3413161039, -0.2619582117, 0.2032008916, -0.0475010984, 0.3176575303, -0.245019868, -0.1494391263, 0.0399552472, -0.0973620936, -0.0049367435, -0.3266832232, 0.0426661, 0.2407744676, -0.0444509611, 0.0821468979, 0.2627735138, 0.50956738, 0.1272096336, -0.3854148984, 0.2497275621, -0.0685310289, -0.101434499, -0.0005714655, -0.2917215228, 0.3151196241, 0.0013700791, 0.1033901572, 0.1957832128, -0.0733652264, 0.1828742176, -0.1554610282, 0.1398689747, -0.1962129921, 0.0307325479, 0.2486641705, -0.2442179918, 0.0985161364, -0.2401112914, 0.3804861307, 0.2350237966, 0.163030833, 0.226859495, 0.3321474195, -0.0061087115, 0.1834580749, 0.0524328463, 0.0845034644, 0.3677016795, 0.3613256812, 0.0345837884, -0.0593258478, -0.0538702719, -0.1421616375, 0.3206610084, 0.0245689321, 0.1097795889, 0.1540374309, -0.0031672101, -0.1286776066, -0.5678729415, -0.1797195226, -0.2292708755, -0.1612040848, 0.0926897526, 0.0764432102, 0.2609699965, -0.1551157236, 0.1066297367, -0.1292444319, -0.04549288, 0.0618670098, 0.3464683294, 0.0185322091, -0.4552506804, 0.1877952963, -0.0464998484, 0.4725928605, -0.0013100941, -0.0803339258, -0.0556891933, -0.0109874094, -0.0876668766, 0.2106459141, 0.2844857872, -0.1625899374, 0.5464718342, -0.1218208894, 0.1917263716, -0.3975761235, -0.3066881597, 0.136507526, -0.1862077713, 0.1208977178, 0.1627813131, 0.191003114, 0.2794445157, -0.0860696286, 0.513556838, -0.2169615775, -0.1126908362, -0.1972813755, 0.1650838703, -0.0345438309, -0.3470689654, -0.4522973895, -0.1201259419, -0.4027172327, 0.2353227288, 0.4801425636, 0.3007180989, 0.1928518116, 0.2721500993, -0.2154014856, -0.1439515501, 0.3441699743, -0.173307091, -0.2845413685, 0.2100910842, -0.2663010657, -0.3854210973, 0.0562641062, -0.2343223095, -0.1032487229, 0.0305342358, -0.2833215892, -0.2240445465, -0.1344725341, 0.2315271944, 0.0754680037, 0.2604394555, 0.3394794762, 0.1626917869, -0.3701767027, -0.1624215394, 0.0633871034, 0.3434886634, -0.0051955152, 0.1685743034, -0.1865461469, 0.102549836, -0.0169831645, 0.533188343, -0.0058509624, -0.1075250804, 0.3847067952, 0.0428627878, 0.2067606747, -0.0129134897, -0.040983811, 0.364228785, 0.0409317203, 0.0052908598, 0.3603672087, 0.3996040225, 0.0800651312, -0.1447893977, 0.327637285, -0.3367678523, -0.4067909122, 0.2468308955, 0.410879761, 0.1539955735, -0.1323136091, -0.2322430015, -0.0448772721, 0.0814466178, 0.288569659, 0.2883553803, -0.0689890906, -0.2414093614, -0.3822082877, 0.0384326354, -0.2896497548, 0.1303912848, 0.1240923405, -0.4308367372, -0.2740218639, -0.2695977986, 0.0543045551, -0.0900124609, 0.560680747, -0.1611694247, 0.0074573099, 0.026292542, -0.2679102421, 0.0239142198, 0.0801224038, -0.2175015509, -0.3662862182, 0.0707673728, 0.1670299619, -0.6060905457, -0.1167590991, 0.112323381, 0.056045197, -0.1732219458, 0.0434237458, 0.0354299061, -0.0972190201, -0.3334940374, -0.0918876454, -0.0686757192, -0.0513369888, -0.0280254837, -0.2006210238, 0.1333464831, -0.0890378058, 0.0817551836, -0.0395049751, 0.2597325742, 0.2624523938, -0.0023444367, -0.0287224986, 0.0037743389, 0.4788920283, 0.5992901921, -0.2414592505, 0.1002750248, -0.0641136989, -0.0729470924, 0.0054031024, 0.3178960681, 0.1683000326, -0.1146723703, -0.1761229485, 0.1501787007, -0.4167315662, 0.1647757143, 0.1038267314, -0.0295705013, 0.1700479537, -0.194107458, 0.2865141034, -0.2348079979, -0.1262892187, 0.1837955117, 0.0740268454, -0.4090924263, 0.0172727928, 0.4515482485, 0.9946403503, -0.0982153267, 0.3818638325, 0.1087692082, 0.0199237261, 0.2647595108, -0.0530895106, -0.0063171345, -0.2899804413, -0.2597538829, 0.0504992269, -0.1833406091, 0.0263854396, 0.1988968104, -0.1587741822, -0.0686574876, 0.0150899179, 0.0464466326, -0.1893246025, -0.0100238612, -0.00014998, -0.4950079918, -0.266918242, 0.327495873, 0.0287517793, 0.0057753464, -0.1368543357, -0.1619487256, -0.3224554062, -0.0186869726, 0.108739458, 0.1414627582, -0.0326224007, -0.0263128877, 0.0069999625, -0.1383217871, -0.1181999892, 0.0963958502, 0.1352024823, -0.1188623533, -0.0890360847, 0.109211728, -0.0795866847, 0.1449684799, -0.0884971917, -0.030475786, 0.1956861019, 0.014798223, 0.1870813668, -0.0758265629, -0.0599772334, -0.066421546, -0.2753633559, -0.2141753733, 0.2541155815, -0.1685587615, -0.0051219328, 0.0361394137, -0.3471733034, -0.0714393482, 0.2493535578, 0.0760212094, 0.0291619096, 0.2801447809, 0.1607572138, 0.007439489, -0.1578312367, 0.0561851077, 0.1664794981, -0.0068817586, -0.0611197166, 0.2073805481, -0.1019631326, -0.3732454777, 0.0973509923, -0.0251590982, -0.3076420426, 0.2205107361, 0.0928746834, -0.3703435063, 0.0485867225, 0.556807816, 0.4162534475, -0.0682880729, -0.0291598476, 0.0662020072, -0.3293246031, 0.2718060017, -0.1574089378, 0.4422109425, -0.1578827202, 0.1677374989, 0.1162516251, 0.0365885347, -0.513335824, -0.1530177593, -0.2469344139, 0.0690108612, 0.161686331, 0.0373649672, 0.137179926, 0.0038422479, 0.1485146731, -0.1649549603, -0.457626909, -0.3581531644, -0.0018949229, 0.0656682104, 0.1537656635, 0.0816368014, 0.0744809881, -0.1420711279, -0.1837358624, -0.1455022097, -0.0007659673, -0.2282764614, -0.2630844712, -0.1588905901, 0.2086731195, -0.2106470615, 0.1219383404, 0.0155924652, -0.142503202, 0.2989778817, 0.0752708912, -0.2948008478, -0.1737376451, -0.3731651902, 0.0206549782, 0.278092593, 0.1976983994, 0.2085847855, 0.2755492032, 0.0911174789, -0.0572461784, 0.1400055289, 0.4960273802, -0.0556063205, -0.2892431617, 0.0844538435, 0.0673567578, 0.4176347554, -0.2771666944, -0.1785768121, -0.1497335732, -0.1996852309, 0.3120504022, 0.4022648633, -0.0044480376, 0.0885200053, -0.1336889267, 0.2137743384, -0.0179109853, 0.2215381265, 0.1471634954, 0.0614497848, -0.2117010951, 0.1375497431, 0.4522514641, 0.0912107676, 0.3482075036, 0.1495200247, -0.0606387183, 0.4340366721, -0.123110041, -0.0068707662, 0.0410049185, -0.0695485026, 0.1995074451, -0.0615264401, 0.2325931042, 0.1486137956, -0.0528891571, 0.1167941764, -0.214095816, -0.4317283928, -0.0485561378, 0.2662402093, -0.0345356315, 0.0668622553, -0.3771697581, -0.1725184619, 0.2302626669, -0.1053251252, 0.0134151056, -0.1984356344, 0.2540777326, -0.0037257436, 0.2828125358, -0.232472837, 0.0741473362, 0.0851800889, 0.2279747128, -0.0884444937, 0.2019281387, 0.3537359536, -0.1083546057, 0.1979455054, 0.3159045577, -0.0182593577, 0.3189220726, -0.0863373801, 0.1014214009, 0.0485436283, -0.0185180958, -0.2837886512, -0.1604982764, 0.2213280946, -0.0557726957, 0.2784119844, 0.2384827286, -0.3945305943, -0.164015919, 0.0039494443, 0.0484548472, 0.1096893698, -0.0137182195, 0.1880554259, -0.1872403175, -0.0654602945, -0.1315596849, -0.4640168548, -0.2285928875, 0.0695676655, -0.3546331525, 0.1308366209, -0.060836684, 0.159187004, 0.1264298707, 0.4311939776, -0.2042620331, -0.0332056694, -0.1965620965, -0.312087059, -0.4114454389, -0.0878797919, 0.0191863049, -0.2005413771, -0.2633372247, 0.239485994, 0.3135234714, 0.0377348624, 0.2874735892, -0.0577261597, 0.2377531528, 0.1873173416, -0.4524021447, -0.025071485, -0.0243450571, 0.2797810733, 0.1395417303, -0.1889427602, 0.1976314783, -0.1390480101, 0.2175578773, 0.0862344876, 0.2177014798, -0.1143927127, -0.0260013063, 0.4300468266, -0.015770128, 0.1316465735, -0.2807146907, -0.1903045326, 0.0494908579, -0.2404806316, -0.0013580082, -0.0778655633, 0.0934520811, 0.5253414512, -0.2336665094, 0.0037360389, -0.2742931545, -0.0170622785, 0.3429443836, 0.0134452824, -0.2434310466, 0.1854009032, 0.0488582551, 0.01338147, -0.0467526205, 0.2840175629, -0.0509283915, -0.1149864271, -0.1740853786, -0.4737701118, 0.5490755439, -0.0602989942, -0.3951079547, 0.0084509617, 0.1570821404, -0.1285904497, 0.1309138387, -0.0388810597, 0.1481378824, 0.0814445093, 0.0893718973, -0.2597881854, 0.2636964917, -0.2973169088, -0.3618442118, -0.0224033929, 0.097054638, -0.0829652697, -0.0386458188, -0.1162702516, -0.1991455406 ]
https://github.com/huggingface/datasets/issues/3809
Checksums didn't match for datasets on Google Drive
Hi @muelletm, thanks for reporting. This issue was already reported and its root cause is a change in the Google Drive service. See: - #3786 We have already fixed it. See: - #3787 Until our next `datasets` library release, you can get this fix by installing our library from the GitHub master branch: ```shell pip install git+https://github.com/huggingface/datasets#egg=datasets ``` Then, if you had previously tried to load the data and got the checksum error, you should force the redownload of the data (before the fix, you just downloaded and cached the virus scan warning page, instead of the data file): ```shell load_dataset("...", download_mode="force_redownload") ```
## Describe the bug Datasets hosted on Google Drive do not seem to work right now. Loading them fails with a checksum error. ## Steps to reproduce the bug ```python from datasets import load_dataset for dataset in ["head_qa", "yelp_review_full"]: try: load_dataset(dataset) except Exception as exception: print("Error", dataset, exception) ``` Here is a [colab](https://colab.research.google.com/drive/1wOtHBmL8I65NmUYakzPV5zhVCtHhi7uQ#scrollTo=cDzdCLlk-Bo4). ## Expected results The datasets should be loaded. ## Actual results ``` Downloading and preparing dataset head_qa/es (download: 75.69 MiB, generated: 2.86 MiB, post-processed: Unknown size, total: 78.55 MiB) to /root/.cache/huggingface/datasets/head_qa/es/1.1.0/583ab408e8baf54aab378c93715fadc4d8aa51b393e27c3484a877e2ac0278e9... Error head_qa Checksums didn't match for dataset source files: ['https://drive.google.com/u/0/uc?export=download&id=1a_95N5zQQoUCq8IBNVZgziHbeM-QxG2t'] Downloading and preparing dataset yelp_review_full/yelp_review_full (download: 187.06 MiB, generated: 496.94 MiB, post-processed: Unknown size, total: 684.00 MiB) to /root/.cache/huggingface/datasets/yelp_review_full/yelp_review_full/1.0.0/13c31a618ba62568ec8572a222a283dfc29a6517776a3ac5945fb508877dde43... Error yelp_review_full Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=0Bz8a_Dbh9QhbZlU4dXhHTFhZQU0'] ``` ## Environment info - `datasets` version: 1.18.3 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 6.0.1
103
Checksums didn't match for datasets on Google Drive ## Describe the bug Datasets hosted on Google Drive do not seem to work right now. Loading them fails with a checksum error. ## Steps to reproduce the bug ```python from datasets import load_dataset for dataset in ["head_qa", "yelp_review_full"]: try: load_dataset(dataset) except Exception as exception: print("Error", dataset, exception) ``` Here is a [colab](https://colab.research.google.com/drive/1wOtHBmL8I65NmUYakzPV5zhVCtHhi7uQ#scrollTo=cDzdCLlk-Bo4). ## Expected results The datasets should be loaded. ## Actual results ``` Downloading and preparing dataset head_qa/es (download: 75.69 MiB, generated: 2.86 MiB, post-processed: Unknown size, total: 78.55 MiB) to /root/.cache/huggingface/datasets/head_qa/es/1.1.0/583ab408e8baf54aab378c93715fadc4d8aa51b393e27c3484a877e2ac0278e9... Error head_qa Checksums didn't match for dataset source files: ['https://drive.google.com/u/0/uc?export=download&id=1a_95N5zQQoUCq8IBNVZgziHbeM-QxG2t'] Downloading and preparing dataset yelp_review_full/yelp_review_full (download: 187.06 MiB, generated: 496.94 MiB, post-processed: Unknown size, total: 684.00 MiB) to /root/.cache/huggingface/datasets/yelp_review_full/yelp_review_full/1.0.0/13c31a618ba62568ec8572a222a283dfc29a6517776a3ac5945fb508877dde43... Error yelp_review_full Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=0Bz8a_Dbh9QhbZlU4dXhHTFhZQU0'] ``` ## Environment info - `datasets` version: 1.18.3 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 6.0.1 Hi @muelletm, thanks for reporting. This issue was already reported and its root cause is a change in the Google Drive service. See: - #3786 We have already fixed it. See: - #3787 Until our next `datasets` library release, you can get this fix by installing our library from the GitHub master branch: ```shell pip install git+https://github.com/huggingface/datasets#egg=datasets ``` Then, if you had previously tried to load the data and got the checksum error, you should force the redownload of the data (before the fix, you just downloaded and cached the virus scan warning page, instead of the data file): ```shell load_dataset("...", download_mode="force_redownload") ```
[ -0.2004948854, 0.1379584223, -0.0935079902, 0.3851814568, 0.1761959642, 0.0669628307, 0.2867941856, 0.2709661126, 0.3133203685, 0.0352175608, -0.2274777889, -0.1330032945, 0.0922784582, 0.474976927, -0.0118396608, 0.0952155665, 0.2046585679, -0.2078854144, -0.1187623516, -0.0767440572, -0.2440576255, 0.2734455466, -0.1281363666, -0.2654191256, -0.0844997019, 0.1922452599, 0.1089078262, 0.0303905588, -0.1364765465, -0.0768342912, 0.3176573515, 0.1080403775, -0.0438727438, 0.6045646071, -0.0001152937, 0.1691471636, 0.5119218826, -0.1030110419, -0.253203541, -0.135590449, -0.2083259076, -0.2300940007, -0.1154299751, -0.0566902235, 0.0270776059, -0.0767161399, -0.0418022312, -0.2278388888, 0.0343273878, 0.1657444388, 0.2046627104, 0.2291150987, 0.1648136377, 0.0777764693, 0.3041200936, -0.0231116824, -0.0295951609, 0.5944209099, 0.2160039842, -0.1312048882, 0.1098718718, -0.0194703266, -0.152447626, -0.1210944131, 0.1067794114, -0.0484523885, -0.1900159121, -0.0585196391, 0.1944257766, 0.3027799726, 0.2271394283, -0.2340976596, -0.391851455, -0.2272474915, -0.0718824938, -0.030380683, 0.4662080407, 0.363342762, 0.0533340983, -0.0099211857, -0.6728943586, 0.1784310639, 0.166513294, 0.034195058, -0.0722636878, 0.2899853885, 0.1073192656, -0.045937866, -0.0090738507, -0.0415417589, 0.3304324448, -0.2977484763, -0.3184591532, -0.0589789823, -0.4302058518, -0.0319446251, -0.0218981188, 0.6578828096, 0.3799869716, 0.4241063595, 0.1344641745, 0.1401679665, -0.2275056094, 0.1371593475, 0.1466055065, 0.1741496474, 0.0507914424, 0.1522996575, 0.4568638802, 0.4636968076, 0.0660017729, 0.1024536565, 0.2478537261, -0.2429819405, 0.0757969841, 0.1941559911, 0.2457557768, -0.4055295885, -0.3348593414, 0.2787911594, -0.2281609178, -0.2902030945, 0.1522620469, 0.3259161711, -0.1612102538, -0.1942270845, 0.0551247112, 0.209365204, -0.0999331549, 0.1333681643, -0.2791703939, 0.0698436722, -0.0279426929, 0.0597438738, 0.3519744575, -0.5087800622, 0.4866890311, -0.0784822255, 0.2107610703, -0.2716503143, -0.1715470552, -0.1565556824, -0.1211887896, 0.2372382134, 0.1546695232, -0.0397477932, 0.0902512297, -0.1428678632, -0.0540084131, 0.2020210177, -0.3572334647, 0.0197774228, -0.0073939762, 0.1894226074, -0.5425912142, 0.0429066122, -0.5800551176, -0.1823515743, 0.1249119937, -0.1873636097, 0.0450215898, -0.2815031409, -0.2106221616, -0.1320469677, 0.3063297272, 0.3215174973, -0.1896941513, 0.0244250614, -0.0885228068, -0.1065401956, 0.0131457029, 0.361610204, 0.1162984446, 0.1736357361, -0.4544725716, -0.0351740122, -0.1976672858, -0.3839848936, -0.5300043225, -0.2486231178, 0.2050873041, 0.1399908662, -0.1048651934, -0.2803533673, 0.1224822327, -0.1864455044, 0.0401995704, 0.3333052099, -0.0003988295, 0.2669269741, -0.1876938492, -0.2228948772, -0.138624832, 0.1718875468, -0.0415619574, 0.0259692241, 0.3742717803, -0.3643814623, 0.0710174367, -0.0413157754, 0.0141008832, 0.3013989627, 0.5576108694, -0.1074369103, 0.1119197235, -0.0610984229, -0.7031597495, 0.4163666368, -0.1611442566, -0.0506536514, -0.2387709022, 0.005008752, -0.4453287125, -0.1038251445, -0.1254403889, -0.0159322564, 0.0952857435, 0.1702823788, -0.002061812, 0.2192337513, 0.0235986598, 0.0235021133, -0.1645485908, -0.0052667027, -0.0646829605, 0.6858769655, -0.1069709286, -0.2457266897, 0.3047252595, 0.0825409442, 0.2195355445, -0.0828085989, -0.0937416255, 0.371724993, -0.0015268377, 0.4066153169, 0.059027601, 0.27691558, 0.1922563463, -0.3241864741, 0.0135880345, 0.2911354303, 0.2097777277, -0.2174916863, -0.3539373875, 0.4361312985, -0.1927622855, 0.1003943682, -0.1224748418, -0.0607693605, 0.2534863651, -0.0373134725, -0.0905817896, -0.204693526, 0.2763152122, 0.2808553576, 0.3398905396, -0.0402724035, 0.0056837234, -0.0251366105, 0.4558701217, -0.1191224679, -0.0448765308, 0.0108555257, 0.0516639315, -0.1181830317, 0.2301989049, 0.3681415617, 0.231842339, 0.0965976492, 0.0978781059, 0.1922646761, -0.0474935807, -0.2538550198, 0.01956819, 0.0056932494, 0.0939343572, 0.4377788305, 0.1351937205, -0.1153590158, -0.2053841799, 0.0138617903, -0.0341965854, 0.1547341943, -0.5353251696, -0.0549459793, -0.1626687199, 0.1231436729, -0.1970637888, 0.0183843933, -0.3379387259, -0.4040557444, -0.0577250794, 0.3487563729, -0.1331400275, 0.1675657779, 0.1188038364, 0.2955755591, 0.1296312809, -0.3248253167, -0.0774452984, -0.0039878008, -0.0432775691, 0.0814708546, 0.5646165609, 0.0741603449, 0.2197892815, -0.2283278704, -0.0163753368, -0.6965925097, -0.142394498, 0.1218653396, -0.2779049873, 0.6852676272, -0.0469575189, 0.1490631402, -0.2466883361, -0.1222146153, 0.0865605772, 0.1151095554, -0.4383165836, 0.144960314, 0.0722437128, -0.002382471, 0.0772543922, 0.0885816813, 0.1688697487, -0.1789821088, 0.0141761843, 0.1095075607, 0.1390976608, -0.1263240874, 0.0315192118, 0.0769813955, 0.2355529368, -0.0686866567, -0.2250457257, -0.5468579531, 0.4623745978, -0.0581724867, -0.3421659768, 0.0213013664, 0.1161959022, 0.0273350291, 0.1276451945, -0.5016132593, -0.3997256756, -0.2580123842, 0.0086076027, 0.3434934616, 0.0918344259, 0.128129214, -0.0985982046, 0.1352147013, -0.1599446088, -0.3696447909, 0.0605696812, 0.0010757064, 0.3646297157, -0.0184579864, 0.2252980024, -0.2633543313, 0.4675223231, 0.4486226141, 0.0984251499, 0.3147242665, 0.2940501273, 0.3990005255, -0.2211804241, -0.1643423587, 0.0164092034, 0.0237777494, -0.2055810541, 0.3020839989, 0.0261418279, -0.0607976764, -0.1858874559, -0.1002105623, -0.5017098784, -0.1785879582, -0.2020505071, -0.1277989149, 0.0897222757, -0.0667975917, 0.0054222569, 0.2872886956, -0.4536360502, 0.1878582537, 0.2612083256, 0.1137570292, 0.0451475568, -0.2743210793, -0.301460743, -0.0696953908, 0.3541306257, 0.016902728, 0.3585525453, -0.1382156461, -0.0142162275, -0.0308639575, -0.1184372827, 0.2764213085, -0.2703553736, 0.472432524, -0.0714036226, 0.1477030218, 0.1448208988, -0.2917378247, -0.1768539399, -0.1277257949, 0.1293254048, 0.2888329327, -0.3822841942, 0.2203148156, 0.1354030222, 0.2335305661, -0.0698422194, -0.1208027154, -0.2305004895, -0.4189129472, -0.2830308974, 0.0897263661, 0.0920945928, 0.1301354468, -0.2968703508, -0.0804702789, 0.0752264261, -0.3016201854, 0.1557859182, -0.0769059509, 0.341956526, 0.0949997902, 0.3571746945, -0.1015513614, -0.1204166561, 0.3626659214, 0.8842463493, -0.0769395977, -0.0047669811, 0.0932635292, -0.1839803755, -0.0921665728, 0.2439235896, -0.0335746109, -0.0881301165, 0.1624965221, 0.0050508757, -0.0007814649, -0.2508610785, -0.1929686815, 0.2473395765, -0.4154587388, -0.11936225, 0.4404607415, 0.1204403415, -0.055729825, 0.1948885173, 0.4694539905, -0.2719290555, 0.3003104031, 0.284560293, 0.8265957832, -0.2893969715, -0.1447911412, 0.0350283608, -0.1426327229, 0.0970752612, -0.0141012901, -0.126427412, -0.3921388984, -0.3846449554, 0.0164034367, -0.129309833, -0.0391374603, -0.0021457074, -0.1179817989, 0.33973822, -0.1140203774, 0.0018317862, 0.0277822409, 0.1247323975, -0.3248076737, 0.1265995055, 0.003256547, 0.1494746804, -0.1340841502, 0.2480423898, -0.1252733767, 0.1688612401, -0.2506326735, -0.0602914616, -0.6115701199, 0.1490909904, -0.0761456043, -0.1152249798, 0.2112947702, -0.4906224012, -0.0121204099, 0.201634407, 0.371829778, 0.3856648803, -0.4005654454, 0.2007801682, 0.1052263826, 0.1518891901, 0.0302912034, -0.1191169098, 0.3277147412, -0.0724715739, -0.2490973771, -0.1121759117, 0.0757059753, -0.5582979918, -0.0453107171, 0.0502590053, -0.6676182151, -0.2785411477, -0.2246037424, -0.2955379486, -0.0686991885, -0.1026060656, 0.1575305909, 0.2158152461, 0.2338969409, 0.1171985641, 0.3820905685, -0.2897892892, -0.1350111216, 0.4126471579, -0.0841182768, -0.2164540589, 0.5251408815, 0.249307394, -0.0977363661, -0.1175112873, -0.2057429254, -0.065933682, -0.0841161609, 0.0899837166, -0.4900367558, 0.1550628692, -0.1451402158, 0.3562946022, 0.4360494614, 0.1956023872, 0.3178127408, -0.8237503767, 0.0316871963, 0.3284597099, -0.0406524613, 0.2587673962, -0.0917541683, -0.118355386, 0.0154596008, -0.0347821303, -0.3064877987, 0.1419272572, -0.3337416053, -0.0906469822, 0.0667897761, 0.0849625766, 0.1310900897, -0.2323202193, 0.1457826644, -0.0892713517, -0.0798121169, -0.2031282485, -0.0104774749, 0.1039222777, 0.1726272106, -0.1375917494, -0.001421051, -0.2037658989, -0.0243916865, -0.2172434926, 0.1088611484, 0.056961678, -0.0302543715, -0.0890678614, 0.3750669956, -0.0348468684, -0.1871804148, -0.1149474606, -0.2617886961, -0.2128513753, -0.0996783376, -0.0353562683, 0.1363292634, 0.1032320336, 0.0599105656, 0.0853704065, 0.0056874771, 0.3824941814, 0.4369843006, -0.1044258252, -0.0940291882, 0.2236580253, 0.3768749833, 0.1638248265, -0.4093818367, -0.0819411576, 0.364046663, 0.1579012871, -0.2425424755, -0.0551116541, 0.0080278916, 0.0988386199, 0.000201142, 0.2121816874, 0.302908808, -0.1234365329, -0.0439636856, 0.2118950784, 0.4691699147, 0.0941433161, 0.2368853986, 0.045904804, 0.0170079917, 0.1515729278, 0.1702906042, -0.4965451062, -0.0736345202, -0.1161626056, 0.0840245634, 0.147278294, -0.274722904, 0.2102447152, -0.002015616, -0.6126351357, 0.464107424, 0.0308101308, -0.2054240555, 0.0779041573, 0.1324013919, 0.230379343, -0.3137660027, 0.1803621352, -0.4721145034, 0.1687435955, 0.0042152181, 0.0538170114, -0.0879019797, -0.3016020358, -0.0213476624, 0.2604185641, 0.0127855735, -0.0823855847, -0.0639645904, 0.176492393, -0.3536228836, 0.0071588494, 0.0230750218, 0.0113292271, 0.2244571149, -0.1803304255, 0.3358857632, 0.0037585963, -0.1644438952, -0.0204647761, 0.4924584925, 0.221971184, 0.2876986563, 0.1971738189, -0.1158725768, 0.0506488718, -0.0085809771, 0.0610118583, 0.5031026602, 0.0039153658, -0.2822237015, 0.1866057813, 0.2535426319, -0.1021367535, 0.060196463, -0.0803574547, -0.0369684808, -0.1586215943, 0.1864743382, -0.075428091, 0.1219019666, -0.1724702865, -0.133422181, -0.2340104729, -0.2592119873, 0.1620032042, 0.0380740091, 0.1469449103, -0.0562411994, 0.0864529386, 0.1011087298, 0.4304230511, 0.5367584229, 0.0889749303, -0.1568216532, -0.3129063547, -0.4790745378, 0.0947200954, -0.1254839301, 0.3279232681, -0.0033966401, 0.080162853, -0.1949429661, 0.1563000977, 0.2278447598, 0.231312722, -0.1149624363, -0.0484738871, -0.4276287854, -0.3509793282, -0.209449172, -0.2590512633, -0.1522229165, -0.2784147859, 0.2535112798, 0.0460927449, 0.0358871222, -0.0283303689, -0.0141943181, -0.0122310454, 0.0457742587, 0.255592376, 0.113038227, 0.6449958086, -0.0207815543, -0.0295361858, -0.2785924077, -0.1619173288, -0.0876931846, 0.3821879923, -0.1987381727, 0.3756823242, 0.1806065738, -0.2473869473, -0.0715909079, 0.5380215645, -0.0547238849, -0.1552123576, -0.2668092549, -0.2162924856, -0.0995257944, -0.1745996028, 0.1276596189, -0.0224470366, -0.0590161197, 0.3237236738, -0.2381408513, -0.4005387127, 0.3428794146, 0.0471891612, 0.1233905628, -0.0028897945, 0.1587841064, -0.1446529627, -0.1149706095, -0.6839457154, 0.0639705807, 0.2666627169, -0.0176538974, -0.0509367138, 0.2697366178, -0.0870036557, 0.1659562737, -0.0383910984, 0.1029499099, 0.0952496454, -0.2319504023, -0.0096237073, -0.0920924097 ]
https://github.com/huggingface/datasets/issues/3808
Pre-Processing Cache Fails when using a Factory pattern
Ok - this is still an issue but I believe the root cause is different than I originally thought. I'm now able to get caching to work consistently with the above example as long as I fix the python hash seed `export PYTHONHASHSEED=1234`
## Describe the bug If you utilize a pre-processing function which is created using a factory pattern, the function hash changes on each run (even if the function is identical) and therefore the data will be reproduced each time. ## Steps to reproduce the bug ```python def preprocess_function_factory(augmentation=None): def preprocess_function(examples): # Tokenize the texts if augmentation: conversions1 = [ augmentation(example) for example in examples[sentence1_key] ] if sentence2_key is None: args = (conversions1,) else: conversions2 = [ augmentation(example) for example in examples[sentence2_key] ] args = (conversions1, conversions2) else: args = ( (examples[sentence1_key],) if sentence2_key is None else (examples[sentence1_key], examples[sentence2_key]) ) result = tokenizer( *args, padding=padding, max_length=max_seq_length, truncation=True ) # Map labels to IDs (not necessary for GLUE tasks) if label_to_id is not None and "label" in examples: result["label"] = [ (label_to_id[l] if l != -1 else -1) for l in examples["label"] ] return result return preprocess_function capitalize = lambda x: x.capitalize() preprocess_function = preprocess_function_factory(augmentation=capitalize) print(hash(preprocess_function)) # This will change on each run raw_datasets = raw_datasets.map( preprocess_function, batched=True, load_from_cache_file=True, desc="Running transformation and tokenizer on dataset", ) ``` ## Expected results Running the code twice will cause the cache to be re-used. ## Actual results Running the code twice causes the whole dataset to be re-processed
43
Pre-Processing Cache Fails when using a Factory pattern ## Describe the bug If you utilize a pre-processing function which is created using a factory pattern, the function hash changes on each run (even if the function is identical) and therefore the data will be reproduced each time. ## Steps to reproduce the bug ```python def preprocess_function_factory(augmentation=None): def preprocess_function(examples): # Tokenize the texts if augmentation: conversions1 = [ augmentation(example) for example in examples[sentence1_key] ] if sentence2_key is None: args = (conversions1,) else: conversions2 = [ augmentation(example) for example in examples[sentence2_key] ] args = (conversions1, conversions2) else: args = ( (examples[sentence1_key],) if sentence2_key is None else (examples[sentence1_key], examples[sentence2_key]) ) result = tokenizer( *args, padding=padding, max_length=max_seq_length, truncation=True ) # Map labels to IDs (not necessary for GLUE tasks) if label_to_id is not None and "label" in examples: result["label"] = [ (label_to_id[l] if l != -1 else -1) for l in examples["label"] ] return result return preprocess_function capitalize = lambda x: x.capitalize() preprocess_function = preprocess_function_factory(augmentation=capitalize) print(hash(preprocess_function)) # This will change on each run raw_datasets = raw_datasets.map( preprocess_function, batched=True, load_from_cache_file=True, desc="Running transformation and tokenizer on dataset", ) ``` ## Expected results Running the code twice will cause the cache to be re-used. ## Actual results Running the code twice causes the whole dataset to be re-processed Ok - this is still an issue but I believe the root cause is different than I originally thought. I'm now able to get caching to work consistently with the above example as long as I fix the python hash seed `export PYTHONHASHSEED=1234`
[ 0.0456963852, 0.1248688474, -0.0719592646, 0.0149069047, 0.1925102174, -0.2458245307, 0.3033486307, 0.2505906522, -0.1709433496, -0.0935291499, 0.3817081153, 0.1764904559, -0.0578019097, 0.1592745632, -0.028878998, 0.2823105156, 0.10336487, 0.0291133188, 0.137967512, 0.1007418633, -0.0800648853, 0.248573944, -0.1161686406, -0.1958499998, -0.541692853, 0.0676572099, -0.0201424863, -0.018981589, 0.2371914834, -0.3668443561, 0.197212249, 0.259136945, -0.0720029101, 0.2479804009, -0.000105411, 0.0464214757, 0.0639768392, -0.08144705, -0.0731293932, 0.1504324973, -0.0691975355, 0.0178502202, -0.2451061308, -0.0602696799, -0.1350518316, 0.1314964741, -0.0941768065, -0.1808630526, 0.5449667573, 0.1449245811, 0.2465327084, -0.1861840338, -0.0643516257, 0.0863700286, 0.0364234969, 0.0405696221, -0.0299792811, 0.0607045926, 0.1179360151, -0.3218594491, -0.2412461191, 0.3902333677, -0.0975796878, 0.0375882871, 0.0428437702, 0.0680184215, 0.397172451, -0.3617627621, 0.351697892, 0.0097576175, 0.0865323171, -0.3855114281, -0.3593823612, -0.251785934, -0.243160367, -0.526129663, 0.2035593837, -0.1297149956, 0.1842716336, 0.2602302134, -0.0903076604, 0.195839569, 0.2555772364, -0.123759374, 0.1055023298, 0.1235569939, -0.0928359702, -0.0610964485, -0.0307797287, -0.0858911052, 0.1240144745, -0.1514682472, -0.1585734338, 0.2280305475, -0.3372973502, -0.0885638967, 0.1210485175, 0.0989694372, -0.1266082823, 0.3710226119, -0.1102143452, 0.4977488518, 0.1706073433, -0.031652052, -0.2520304918, 0.4655743539, 0.0256700087, 0.0649999082, 0.0326911211, -0.052038759, -0.4685492516, 0.0164387077, 0.1555426419, -0.1298957914, 0.4857164919, -0.0403085724, -0.1535482556, -0.0239619818, -0.1194340661, 0.2522542179, -0.3497689366, -0.0694608316, 0.0842122659, 0.2620868385, 0.0678773671, 0.4173575342, 0.0374124534, 0.1150104329, -0.1090938225, -0.0628098175, -0.2806389928, -0.1082488596, -0.3581156731, 0.3813703358, 0.2507965267, 0.2573085427, 0.132699281, 0.3986762762, 0.0697284415, -0.3648740649, 0.400806576, -0.1041193828, 0.165595606, 0.1037977859, -0.2898261547, 0.2746483088, 0.1954705566, 0.0604337752, 0.0097905779, -0.0068804175, -0.279514581, -0.2965004146, 0.4834581614, 0.2435308099, -0.293582201, 0.1636571735, 0.2248637527, 0.0681069791, 0.6252422929, 0.0472569987, -0.0182968415, -0.1044631898, -0.3627283573, -0.1888827682, 0.0600561611, 0.3668992519, -0.1207936481, 0.056088496, 0.0927148163, 0.2912809253, 0.1975052804, -0.0573641807, -0.1802624166, 0.3179452717, -0.1916021109, -0.0067739752, -0.0182125792, -0.0897727981, -0.3484691978, 0.2480016053, -0.150086537, 0.397849679, 0.0247409474, -0.2147209793, -0.1667919159, -0.2847123742, 0.084112443, -0.0176526867, 0.014908256, -0.0204603188, -0.4096455574, 0.0794572011, 0.0145382341, -0.0950632021, 0.2921405435, 0.159086898, -0.3811905086, 0.0131445769, -0.0853996202, -0.1212218329, 0.1601062715, 0.2697560489, -0.0718591511, 0.2368420959, 0.2776414454, -0.1201668754, 0.0515585355, 0.4406793118, -0.6433761716, -0.1299445778, 0.1402322948, -0.0921195894, -0.0211395174, -0.0011981728, -0.0860446766, -0.2770483792, 0.2311261147, 0.0967890918, 0.0826524198, -0.1550433785, 0.0788848475, 0.7570072412, 0.2576472461, -0.0964328423, -0.0270177349, -0.1529266387, -0.0977962688, -0.3181847334, -0.3564855754, 0.1077907607, 0.2533866465, 0.0738194883, -0.0975336209, 0.2303782552, 0.2986834645, 0.0035053999, -0.365223676, 0.3176150024, -0.1558324248, 0.1644413322, -0.1470405012, 0.0477363914, 0.1641553342, -0.2811577916, 0.359772712, 0.3201104105, 0.4750668705, -0.0216859765, -0.2141994834, -0.1584864408, 0.1648906022, -0.1886813045, -0.1442542821, -0.1528809369, 0.0551827177, -0.189466089, 0.2607521117, 0.0770419091, -0.0162041578, 0.2817666829, 0.22227557, 0.2565099299, 0.0804802701, -0.1750166714, -0.1940776557, -0.2560103834, -0.1260131299, 0.0893575549, 0.2545469701, 0.0670899078, -0.1539220065, 0.1554887146, -0.0450450405, -0.1584916264, 0.051182203, -0.0432374924, 0.1076254696, 0.0555945337, 0.1042589173, 0.0946779698, 0.021965174, -0.1271414757, 0.2352602184, -0.0726793632, -0.3075748086, 0.208180964, -0.3199577332, 0.1508258283, -0.1578311473, -0.0465277396, 0.1318395734, -0.2882291675, -0.0100272447, 0.2483005822, -0.2241468728, 0.1460739523, -0.1138980761, 0.2523193955, -0.1186323389, -0.237226814, -0.1758289635, -0.0909784734, -0.4563420415, -0.0191872846, 0.1571178138, -0.1960429847, 0.1081634834, -0.0784313008, -0.1306916624, -0.0833198652, -0.2311929166, 0.0450626984, 0.0845388621, 0.1727327257, -0.0895872116, -0.3067459762, -0.2428516895, -0.0794412494, 0.2815026939, -0.0465856493, 0.089066267, 0.1597576737, -0.0452729762, -0.1930976659, -0.236929208, 0.1631683856, 0.0723862201, -0.0516342074, -0.2821212411, -0.1722447574, -0.0787850991, 0.165973857, -0.1869213581, -0.1365909427, -0.0707419068, -0.0755904242, -0.4030573666, -0.434412688, 0.2246762812, -0.1496447623, -0.0150584839, -0.0178565234, -0.2553580701, 0.1477360725, 0.3506807089, -0.1855642796, -0.2685706019, -0.0395464599, 0.0536513366, 0.0474615581, -0.040218208, 0.3134656549, 0.1309646815, -0.0940997377, -0.236920774, -0.2920288146, 0.2122036368, -0.1130898595, 0.1740327477, 0.0096678529, -0.1413848847, 0.2157324404, 0.8573883772, 0.2007498592, -0.1847024709, 0.3335925043, 0.2402950674, 0.2742701471, 0.0091093816, -0.0894078389, -0.2826068997, -0.3114882112, 0.0189483855, 0.0328151062, -0.0807165951, -0.1762592196, 0.0263286512, 0.3427582085, -0.1033610478, -0.2804981172, 0.3657506108, -0.7275707126, 0.4170519114, 0.2290149778, 0.1586094648, -0.2913654745, 0.0503846817, -0.08899232, -0.3363463879, 0.0848637298, -0.0653920397, -0.229856059, 0.0828208551, -0.1675446928, 0.1810901314, 0.2356974632, 0.2651070952, 0.0913889855, -0.1432355791, -0.1619043946, -0.1117556766, 0.5956315994, -0.4450289011, 0.0522438772, 0.2775437534, -0.5397011638, -0.1674864143, -0.3085364699, 0.133760646, 0.2199245393, 0.2793783844, 0.1639778763, -0.1350435615, -0.0423229225, -0.4214200974, -0.0535627045, -0.0968572497, -0.2259101719, -0.1440181881, 0.0156665482, -0.0901572108, 0.1737824678, 0.1898636073, 0.1404558271, -0.0177606121, 0.1020968556, -0.1487947553, -0.0019613807, 0.1480576396, 0.1111387238, 0.3864549994, -0.2851443291, 0.2021272033, 0.1088657826, -0.057546746, -0.4372369051, 0.0665799752, -0.3373876214, -0.1586041152, 0.0373385213, 0.180986762, -0.1487825215, 0.5458495021, -0.1778637767, -0.1806885451, 0.1323682219, -0.000054552, -0.3209450245, 0.1224003434, 0.0953604206, 0.0229726825, -0.4157460034, -0.4712384939, 0.0681238174, 0.0631750673, -0.2619725466, 0.0149485962, -0.0642779395, -0.2572620511, 0.4777868688, -0.0727025196, 0.8190410733, 0.1509304047, 0.1186564118, -0.0786112845, 0.3799363375, 0.0840455815, -0.3193815053, 0.3461748362, -0.166967392, -0.2764661014, 0.1335754693, -0.1909843832, -0.1075923964, 0.2136552036, -0.0141702769, 0.2669380605, 0.0850541145, 0.3783532977, 0.1278027445, -0.0337613784, 0.0349206999, -0.2054251432, 0.2886404693, 0.2393943369, 0.147596404, 0.2823200226, -0.2628073692, -0.0556271151, 0.0437148921, -0.0960540399, -0.3007795215, 0.2321832478, -0.2905553579, 0.0417276286, 0.1303644776, 0.342467308, -0.2018809021, -0.0497828126, 0.4828456938, 0.1790926903, -0.2000059634, 0.0170648955, 0.1322652996, 0.2883608341, 0.0897156745, -0.2565869987, 0.3912474811, -0.0291081294, 0.0212727394, -0.1570523977, -0.0555922017, -0.0664571151, -0.3351103365, 0.1588425487, -0.2219091058, -0.182575658, -0.1071208566, 0.3014310598, 0.0863964707, -0.1938115954, 0.2549118102, 0.1759399772, -0.3164389431, 0.4819489121, -0.576431036, -0.1673731059, -0.1064286903, 0.2363086939, 0.0469786897, -0.0803631619, 0.20928137, -0.1276567876, -0.1344127506, -0.1479282677, -0.4042909145, 0.0832956582, -0.5157436132, 0.3075658381, -0.2293634564, -0.3244158626, 0.1456694007, -0.3469675183, 0.1159348786, 0.0945253223, 0.1575877815, -0.2242307812, -0.0801376998, -0.1710329205, -0.0277386513, 0.1793915629, 0.1143868566, 0.361243993, -0.078021422, 0.3185453713, -0.3916130662, 0.013955472, 0.0440990701, 0.1711403579, -0.1389599442, -0.1375406533, 0.0772576034, 0.0542168058, 0.0893855467, 0.3874701262, -0.2968813479, -0.2763401568, -0.1819467396, 0.028481951, 0.0245767776, -0.1083186492, 0.2197120786, 0.135968551, 0.1598481983, -0.2542190254, 0.2826974988, 0.2283375561, -0.1520391405, 0.017501127, 0.1087454781, 0.3112780452, -0.0421460271, -0.0433334671, -0.0335923806, 0.1726468205, 0.1336848438, 0.2423156053, 0.0473783202, -0.0046634884, 0.0351112001, -0.0229270719, 0.1829531491, -0.0626150072, 0.1893704087, -0.3246572316, -0.0911160558, 0.158849448, 0.0084367655, 0.2360999584, -0.0978564247, -0.239082247, 0.4132911265, 0.3243743181, -0.0899004266, -0.0360738039, 0.1401486546, 0.0447415411, 0.0627814382, 0.3087027371, 0.5497660041, -0.0757270381, 0.2667420805, 0.243037343, 0.4430553913, -0.4420723617, 0.1774405837, -0.077715084, 0.0744989067, 0.3344453275, 0.3511629403, 0.171224162, -0.0009673354, 0.3073454201, 0.2797529101, 0.6400581002, 0.0409744084, 0.0549230203, -0.1376101673, -0.4330230355, -0.1453854442, 0.4910924733, -0.0755035654, 0.3664462864, -0.2452007085, -0.2183458656, -0.0825489834, -0.1460323632, -0.1728798151, 0.1935127079, -0.2881785929, -0.2119140327, 0.3340420723, -0.0632304773, 0.0170583036, -0.1254680455, 0.0009143625, 0.1640369147, 0.4722037911, -0.0229450818, -0.1438625455, -0.0675911605, -0.4202506542, -0.1310821921, 0.2850760818, -0.2044886351, 0.2308169752, -0.0646049753, -0.4490765631, -0.1172664165, 0.2171580791, 0.4995148182, 0.3511252403, -0.1698569953, -0.0921833888, -0.092131488, 0.0485496521, -0.3510474265, 0.3180857599, 0.1634436697, -0.3878644407, -0.0817951784, 0.1593059897, -0.2241025269, -0.0632315129, 0.1796680689, 0.4934214056, -0.1316122711, 0.3949705064, 0.1571550667, 0.1990952939, 0.0388480388, 0.3299763799, -0.2686960399, 0.215032354, 0.3334113061, -0.1410924047, 0.0804981366, -0.1518864483, 0.1482234895, 0.2269648463, 0.3815827668, 0.1199859232, -0.1285805553, -0.295987159, 0.0874557346, -0.2414398342, 0.2041242123, -0.3399091363, 0.3912338316, -0.1255623102, 0.123270832, -0.1047433987, 0.009438863, 0.0350313522, -0.0838272199, -0.2087261379, 0.1998763531, -0.3727504611, 0.1196409538, 0.0123368828, -0.0212325305, 0.22673814, -0.3464798629, 0.0924280435, 0.1606637985, 0.2573827803, -0.0308294836, -0.306052804, 0.1736138165, -0.0570807792, 0.5417149663, 0.4230364859, -0.1906692684, 0.0907323286, 0.01008878, -0.5292707086, 0.0117216576, -0.1749296188, -0.2727436423, 0.1145313159, 0.1196709722, -0.5027313232, -0.048141785, -0.1420676261, -0.1009302363, 0.1704240143, -0.0806938931, -0.2690238655, -0.0018720691, -0.1929294169, 0.2824201882, -0.0236347839, 0.6254022121, -0.0290049054, 0.3842317462, -0.3253872395, -0.1578699201, 0.2071376592, -0.3203805089, -0.5285026431, -0.2681722641, 0.2351974994, -0.32445243, -0.1137212515, -0.0594669208, 0.0041297679, 0.0224814489, 0.1863667369, -0.2811482847, 0.2066888958, -0.0417693667, 0.0496168658, -0.1176217347, -0.0058111344, 0.2353485227, -0.0366863795, 0.074928537, -0.2167401314 ]
https://github.com/huggingface/datasets/issues/3808
Pre-Processing Cache Fails when using a Factory pattern
Hi! Yes, our hasher should work with decorators. For instance, this dummy example: ```python def f(arg): def f1(ex): return {"a": ex["col1"] + arg} return f1 ``` gives the same hash across different Python sessions (`datasets.fingerprint.Hasher.hash(f("string1")` returns `"408c9059f89dbd6c"` on my machine). Could you please make the example self-contained? This way, we can reproduce the bug. Additionally, you can try to find the problematic object yourself by testing their hash with `datasets.fingerprint.Hasher.hash(obj)` This could be related to https://github.com/huggingface/datasets/issues/3638.
## Describe the bug If you utilize a pre-processing function which is created using a factory pattern, the function hash changes on each run (even if the function is identical) and therefore the data will be reproduced each time. ## Steps to reproduce the bug ```python def preprocess_function_factory(augmentation=None): def preprocess_function(examples): # Tokenize the texts if augmentation: conversions1 = [ augmentation(example) for example in examples[sentence1_key] ] if sentence2_key is None: args = (conversions1,) else: conversions2 = [ augmentation(example) for example in examples[sentence2_key] ] args = (conversions1, conversions2) else: args = ( (examples[sentence1_key],) if sentence2_key is None else (examples[sentence1_key], examples[sentence2_key]) ) result = tokenizer( *args, padding=padding, max_length=max_seq_length, truncation=True ) # Map labels to IDs (not necessary for GLUE tasks) if label_to_id is not None and "label" in examples: result["label"] = [ (label_to_id[l] if l != -1 else -1) for l in examples["label"] ] return result return preprocess_function capitalize = lambda x: x.capitalize() preprocess_function = preprocess_function_factory(augmentation=capitalize) print(hash(preprocess_function)) # This will change on each run raw_datasets = raw_datasets.map( preprocess_function, batched=True, load_from_cache_file=True, desc="Running transformation and tokenizer on dataset", ) ``` ## Expected results Running the code twice will cause the cache to be re-used. ## Actual results Running the code twice causes the whole dataset to be re-processed
76
Pre-Processing Cache Fails when using a Factory pattern ## Describe the bug If you utilize a pre-processing function which is created using a factory pattern, the function hash changes on each run (even if the function is identical) and therefore the data will be reproduced each time. ## Steps to reproduce the bug ```python def preprocess_function_factory(augmentation=None): def preprocess_function(examples): # Tokenize the texts if augmentation: conversions1 = [ augmentation(example) for example in examples[sentence1_key] ] if sentence2_key is None: args = (conversions1,) else: conversions2 = [ augmentation(example) for example in examples[sentence2_key] ] args = (conversions1, conversions2) else: args = ( (examples[sentence1_key],) if sentence2_key is None else (examples[sentence1_key], examples[sentence2_key]) ) result = tokenizer( *args, padding=padding, max_length=max_seq_length, truncation=True ) # Map labels to IDs (not necessary for GLUE tasks) if label_to_id is not None and "label" in examples: result["label"] = [ (label_to_id[l] if l != -1 else -1) for l in examples["label"] ] return result return preprocess_function capitalize = lambda x: x.capitalize() preprocess_function = preprocess_function_factory(augmentation=capitalize) print(hash(preprocess_function)) # This will change on each run raw_datasets = raw_datasets.map( preprocess_function, batched=True, load_from_cache_file=True, desc="Running transformation and tokenizer on dataset", ) ``` ## Expected results Running the code twice will cause the cache to be re-used. ## Actual results Running the code twice causes the whole dataset to be re-processed Hi! Yes, our hasher should work with decorators. For instance, this dummy example: ```python def f(arg): def f1(ex): return {"a": ex["col1"] + arg} return f1 ``` gives the same hash across different Python sessions (`datasets.fingerprint.Hasher.hash(f("string1")` returns `"408c9059f89dbd6c"` on my machine). Could you please make the example self-contained? This way, we can reproduce the bug. Additionally, you can try to find the problematic object yourself by testing their hash with `datasets.fingerprint.Hasher.hash(obj)` This could be related to https://github.com/huggingface/datasets/issues/3638.
[ -0.0620613508, 0.1236684546, -0.0902339444, 0.0906542242, 0.1542715728, -0.239038527, 0.3725143671, 0.1926223636, -0.2423103899, 0.1052962765, 0.4187673926, 0.1436964422, -0.2627628148, 0.0627106354, -0.0321045108, 0.2822058797, 0.0156636052, 0.1075155661, 0.1408684105, 0.1510554701, -0.0684494674, 0.2015593797, 0.0096538123, -0.1195458546, -0.5152248144, 0.0751600564, -0.0482059084, 0.0026573355, 0.0664530396, -0.4019341171, 0.1446279585, 0.2565312088, -0.0128911659, 0.3057131767, -0.0001054864, 0.1628534049, 0.0616885088, -0.0653818473, 0.0152942212, 0.1102630869, -0.0613924116, -0.0911326334, -0.291089803, -0.1497636437, -0.1515438855, 0.1063492373, -0.0768349469, 0.0303307995, 0.4954397976, 0.1672427505, 0.2263519913, -0.3021934032, -0.0579566695, 0.170079276, 0.1229029298, -0.0066575427, -0.0178082064, 0.2024968565, -0.0088681215, -0.100643836, -0.2753632665, 0.4482294023, -0.1389074177, 0.0110376589, 0.0025622635, 0.1406018734, 0.587659359, -0.327606529, 0.2174794972, -0.0633458048, -0.0489894859, -0.3940426707, -0.207391575, -0.1415271014, -0.2807800174, -0.6380514503, 0.1990480274, -0.2292873412, 0.1595846266, 0.1655128747, -0.0855661184, 0.0525376312, 0.2540950477, -0.1240687296, 0.1573062986, 0.0449578539, -0.1525188237, -0.0540121868, -0.0427496359, -0.0195491202, 0.1485747099, -0.1385909766, -0.1261907071, 0.1758722812, -0.1428723037, -0.1384238154, 0.1148364842, 0.0662831441, -0.2514894009, 0.4752094448, -0.0038887109, 0.4604195654, 0.1926215738, 0.1259582639, -0.3425795734, 0.4094690681, 0.110088557, 0.0508366078, 0.1101966798, -0.0030263998, -0.4895801544, -0.0045208144, 0.1759972125, -0.241237998, 0.5337756872, 0.1409318596, -0.0929804221, 0.0574245714, 0.0273519121, 0.2721281946, -0.3257071972, -0.0725228041, 0.0561764762, 0.3007160425, -0.0477880985, 0.2964472771, 0.0872785375, -0.0584970154, -0.0271752384, 0.0281488467, -0.2899160087, 0.0254058465, -0.2662343383, 0.3557650149, 0.0624498948, 0.0032462531, 0.1655953377, 0.3438793719, 0.2089619488, -0.2088248581, 0.3667632043, -0.1252298206, 0.241888836, 0.0439813882, -0.1855009943, 0.180578202, 0.1791794747, -0.1426582634, -0.0791163146, -0.0960299149, -0.2476249635, -0.3119927943, 0.5255041122, 0.2651926279, -0.2829464972, 0.2601411641, 0.1746838242, 0.0032522904, 0.6141094565, 0.0712559074, 0.0233584996, -0.1973849684, -0.3598616123, -0.2974454165, 0.0169789176, 0.3339504302, -0.1431952417, -0.0853583589, 0.0868129134, 0.1032704934, 0.2292221487, -0.0813168064, -0.058166828, 0.3116133511, -0.2671947479, -0.1292684823, 0.1042291895, -0.0283636693, -0.3186795115, 0.258225739, -0.2035989463, 0.4261790812, 0.1219199672, -0.2674521506, -0.0920608044, -0.2959535122, 0.0668024495, -0.0583800748, 0.0240434799, -0.0518483259, -0.4311165512, 0.0940724462, 0.0878733993, -0.0819048509, 0.3880837858, 0.1310265809, -0.493837446, 0.0326739624, -0.193291381, -0.0768394992, 0.2337360978, 0.2223432213, -0.0394753516, 0.308513999, 0.2856858969, -0.145083636, 0.2150052935, 0.3718965054, -0.6784282327, 0.0342339911, 0.1212674454, -0.0517457798, 0.0495643876, 0.0456894301, -0.1298305541, -0.4243763387, 0.2357674092, 0.1588112861, 0.1562710106, -0.2222516984, 0.0366104059, 0.6537882686, 0.0988536701, -0.0671386197, -0.0329095013, -0.1207574755, -0.1402733475, -0.3794025481, -0.3581215143, 0.0821615979, 0.0994128138, 0.0159153137, -0.0206307247, 0.2065402716, 0.2557741106, -0.1629953384, -0.4880127311, 0.323415041, -0.1654228717, 0.1393086165, -0.1825595498, 0.1144192293, 0.0923042893, -0.2055994272, 0.4152273238, 0.3127866387, 0.4920142591, 0.0048485864, -0.2875191271, -0.1497831941, 0.1791170239, -0.1749926358, -0.0633018985, -0.2371491492, 0.0272276588, -0.3438030779, 0.294157356, 0.1021303758, 0.1702029407, 0.0991171822, 0.1633833796, 0.2768984437, 0.1209584698, -0.0937046856, -0.2662438154, -0.2355819792, -0.2491424382, -0.1190616786, 0.2770529985, 0.0819175169, -0.1813865751, 0.2219795734, 0.1601839066, -0.1306650341, 0.0478774011, -0.0490111187, 0.1543432623, 0.0672846586, 0.0605296753, 0.044877138, -0.0029562211, -0.2299288064, 0.2815261185, 0.0445581973, -0.2940048873, -0.0055060806, -0.3183041811, 0.1401886791, -0.1089270934, -0.0333261974, 0.0795840174, -0.2421364635, 0.0272101406, 0.2224445343, -0.2469775379, 0.0793833286, 0.1280411482, 0.1789473444, -0.0530033298, -0.1701990813, -0.2192521542, -0.1861513257, -0.4006759524, 0.0312000178, 0.1132155433, -0.2760975361, 0.0940035284, 0.0172623862, -0.0620528497, -0.0964812264, -0.3340963125, 0.1603153646, 0.0168767162, 0.2541256547, 0.1646116376, -0.2480515838, -0.1452464908, -0.1275634915, 0.284224093, 0.0121318586, 0.0082620475, 0.1031867266, -0.0690861046, -0.1105931252, -0.1872848719, 0.1974331141, -0.0287267882, -0.0949207321, -0.3025702834, 0.0238963217, -0.0273412429, -0.0268850029, -0.1628063172, -0.1156077161, -0.0303757377, 0.026675906, -0.3090045154, -0.5517362952, 0.1979113668, -0.2744882703, 0.0925377831, -0.1235139444, -0.3144636452, 0.1956991404, 0.1724538058, -0.2606756389, -0.3253968656, -0.0667716786, 0.0666738078, 0.168765381, -0.0827034786, 0.3635726869, 0.1551755667, -0.1329023391, -0.1831144243, -0.2263166457, 0.196621865, -0.2118058205, 0.143637985, 0.1152812243, -0.0098815262, 0.312754631, 0.8620078564, 0.1895893812, -0.2615768611, 0.2438985109, 0.1799741238, 0.2370048165, -0.0206971802, -0.0979118794, -0.2906299829, -0.2282557189, 0.0152072245, 0.0190344471, -0.0894628316, -0.0851466954, 0.0313557349, 0.1084375083, -0.1046128944, -0.3332359195, 0.4001171589, -0.7761693597, 0.3989943266, 0.0641951784, -0.0228676703, -0.2388508767, 0.0632284805, 0.0721026734, -0.1590928584, 0.133467257, -0.1198138222, -0.3388198912, 0.163339287, -0.0188576411, 0.1816114187, 0.3516007066, 0.1185645014, 0.0739511773, -0.2192720324, -0.252076447, -0.1877416372, 0.6344171762, -0.5378006697, 0.077147603, 0.3278227746, -0.6463571787, -0.0922500566, -0.2208566666, 0.1212163866, 0.2656267583, 0.2591635287, 0.1735259742, -0.1646547467, -0.0042485725, -0.3214534223, -0.1699667573, -0.2096653581, -0.1047699675, -0.1862462759, 0.1088273898, -0.1960968077, 0.2668653429, -0.0405964293, 0.1441060305, 0.0662993565, 0.0697923452, -0.142190814, -0.1137007251, 0.2289785743, 0.0626885816, 0.2481379658, -0.3316910565, 0.1208952069, 0.009271672, -0.0838417932, -0.535670042, 0.0393255837, -0.2876245379, -0.3879236579, 0.062083941, 0.2282439321, 0.0025386226, 0.4425700009, -0.2318260074, -0.0734600499, 0.0038631968, 0.1798682511, -0.2054218352, 0.2274993807, 0.0083997194, 0.0424067266, -0.3657491803, -0.4448680878, 0.0630149692, 0.1976542026, -0.250266552, -0.059165474, -0.0921026543, -0.2718105614, 0.5486246943, 0.0780311078, 0.8655492663, 0.228514865, 0.0998637378, -0.0756597146, 0.3378518224, 0.1450892985, -0.3780706227, 0.1882094741, -0.2643517852, -0.3842632473, 0.1512310207, -0.1862000823, 0.0690971687, 0.17883645, -0.0940259472, 0.1737239063, 0.0505339727, 0.4900103509, 0.164301604, 0.0254834853, -0.0641057268, -0.2257114202, 0.2860798836, 0.2328047901, 0.2098690122, 0.2417134941, -0.2558231056, -0.0456429906, 0.0802476332, -0.1208273992, -0.1577979475, 0.2301944494, -0.2551763058, 0.1881299317, 0.1548601836, 0.3102459311, -0.2477157563, -0.0422008224, 0.4577347636, 0.2794031501, -0.0167167522, 0.0211273879, 0.2089251131, 0.2468343973, 0.2708875537, -0.1793331802, 0.4347178042, -0.1104119793, 0.0816969946, -0.0651193932, -0.0004573262, -0.1990421563, -0.2641010582, 0.1111031324, -0.1795107424, -0.2072508633, -0.182686165, 0.2204651833, -0.0476662219, -0.1496378779, 0.2486631274, 0.1614105105, -0.3761648536, 0.4023040533, -0.4784770608, -0.1604694128, -0.0326325148, 0.2246872932, 0.2117951661, -0.0992525741, 0.1726800203, -0.1142876372, -0.1529769897, -0.1689481884, -0.3056710064, 0.1323668212, -0.4067096412, 0.4676314592, -0.1041507125, -0.2905581892, 0.1106665209, -0.2751239538, 0.0596095137, 0.1529954225, -0.0357105322, -0.243960157, -0.1330286115, -0.1603979617, -0.0502233431, 0.1649035811, 0.1386950612, 0.3853681684, -0.1721686274, 0.4312052727, -0.4134090841, -0.0106487442, -0.0374812521, 0.2346376926, -0.0695615858, -0.0681985617, 0.0079552187, 0.1418821663, 0.1017610207, 0.5341262221, -0.2424624711, -0.2995387018, -0.1331280917, 0.043039266, 0.0361552015, 0.0368102565, 0.1237683296, 0.3105250299, 0.2121505141, -0.1744273752, 0.392975688, 0.1741904169, -0.2112472802, 0.0310304202, -0.0623694994, 0.2711457014, -0.0631370023, -0.0518970937, -0.170944944, 0.178945601, 0.1832749397, 0.2234017104, -0.0353880003, -0.0330553278, 0.1728027612, 0.0545460097, 0.2580458522, -0.1178049073, 0.3020305037, -0.2575837076, -0.1802404076, 0.1203785986, -0.0553832501, 0.0526924431, -0.0707940534, -0.156444326, 0.3984674811, 0.3101150692, -0.1604435593, -0.0058119735, 0.0896178409, -0.0253858995, 0.1312792748, 0.3003702164, 0.4465777278, 0.0638603196, 0.2181674689, 0.1793531179, 0.429082185, -0.5399746299, 0.0847532973, 0.0464239903, -0.0595404208, 0.2982599437, 0.4275735915, 0.1326863617, 0.0132211857, 0.2357814461, 0.3375466764, 0.6847515702, 0.0412726663, 0.0517067984, 0.0250393059, -0.388163358, -0.1860620826, 0.5179769993, 0.0895124748, 0.3295302391, -0.2483713478, -0.1331443191, 0.1333207637, -0.0256883129, -0.1005236804, 0.2445479035, -0.2329918444, -0.1721517891, 0.1977441609, -0.0345707312, -0.195629999, -0.0705958307, 0.0439008959, -0.0150356712, 0.3724045455, 0.0153917195, -0.1118614376, 0.0612603165, -0.40142712, -0.0986682847, 0.1966488212, -0.2784189582, 0.0889049321, 0.017671166, -0.3104665577, -0.1898657233, 0.1993711889, 0.4681720436, 0.3005537391, -0.145622611, -0.1295620501, -0.150858447, 0.001189323, -0.4340543747, 0.3036145866, 0.0960843861, -0.3336111307, -0.0492533967, 0.2009965479, -0.3131391704, -0.0886994824, 0.2790938914, 0.5201127529, -0.0241809152, 0.4064782858, 0.2867174745, 0.2007054538, 0.0811727196, 0.2836693227, -0.3922215402, -0.1686956733, 0.3281968832, -0.1419004798, 0.0596388616, -0.2633063793, 0.1477344036, 0.2568478286, 0.3786867559, 0.1420763284, -0.1043600067, -0.2842992246, 0.0389724597, -0.1311364919, 0.1825637072, -0.1590051055, 0.2730747163, -0.2322082669, 0.0978364199, 0.0384983867, 0.1221530214, -0.2234329879, 0.0207009111, -0.2043763399, 0.2131436467, -0.3636440337, 0.180506587, 0.005489652, 0.0290346164, 0.2612078786, -0.3028436601, 0.0353354663, 0.1248376891, 0.2691268325, -0.0164808221, -0.3966354132, 0.1838880926, -0.0778466761, 0.6289038658, 0.3833132684, -0.1839217097, -0.0373295955, 0.109819144, -0.3726139069, 0.0675235912, -0.1886755824, -0.1588711143, 0.1987510771, 0.191803515, -0.4332893491, -0.0246590488, -0.1213231236, -0.0595594496, 0.0925789475, -0.0320942588, -0.2579948604, 0.03171755, -0.2026173174, 0.273247391, -0.1152070463, 0.5321646929, 0.0174352657, 0.1930981576, -0.297408402, -0.1640722603, 0.241986841, -0.2773623168, -0.426830709, -0.3165667355, 0.1541333497, -0.1960180402, -0.1335575879, 0.0292216558, -0.1339567453, 0.042874597, 0.2368887067, -0.3069871068, 0.2326336652, 0.0633204207, 0.1200792268, -0.1713072509, -0.1302256733, 0.0950148329, 0.023306625, -0.0702733696, -0.3290368319 ]
https://github.com/huggingface/datasets/issues/3807
NonMatchingChecksumError in xcopa dataset
Hi @afcruzs-ms, thanks for opening this separate issue for your problem. The root problem in the other issue (#3792) was a change in the service of Google Drive. But in your case, the `xcopa` dataset is not hosted on Google Drive. Therefore, the root cause should be a different one. Let me look at it...
## Describe the bug Loading the xcopa dataset doesn't work, it fails due to a mismatch in the checksum. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("xcopa", "it") ``` ## Expected results The dataset should be loaded correctly. ## Actual results Fails with: ```python in verify_checksums(expected_checksums, recorded_checksums, verification_name) 38 if len(bad_urls) > 0: 39 error_msg = "Checksums didn't match" + for_verification_name + ":\n" ---> 40 raise NonMatchingChecksumError(error_msg + str(bad_urls)) 41 logger.info("All the checksums matched successfully" + for_verification_name) 42 NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://github.com/cambridgeltl/xcopa/archive/master.zip'] ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3, and 1.18.4.dev0 - Platform: - Python version: 3.8 - PyArrow version:
55
NonMatchingChecksumError in xcopa dataset ## Describe the bug Loading the xcopa dataset doesn't work, it fails due to a mismatch in the checksum. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("xcopa", "it") ``` ## Expected results The dataset should be loaded correctly. ## Actual results Fails with: ```python in verify_checksums(expected_checksums, recorded_checksums, verification_name) 38 if len(bad_urls) > 0: 39 error_msg = "Checksums didn't match" + for_verification_name + ":\n" ---> 40 raise NonMatchingChecksumError(error_msg + str(bad_urls)) 41 logger.info("All the checksums matched successfully" + for_verification_name) 42 NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://github.com/cambridgeltl/xcopa/archive/master.zip'] ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3, and 1.18.4.dev0 - Platform: - Python version: 3.8 - PyArrow version: Hi @afcruzs-ms, thanks for opening this separate issue for your problem. The root problem in the other issue (#3792) was a change in the service of Google Drive. But in your case, the `xcopa` dataset is not hosted on Google Drive. Therefore, the root cause should be a different one. Let me look at it...
[ -0.1377996951, 0.1573126018, -0.0541850813, 0.1144582108, 0.0819765702, -0.0180446301, 0.179325521, 0.2524214983, 0.2048439831, 0.1784925908, 0.1794354916, 0.108845681, 0.2294791341, 0.0596829355, -0.2593921125, 0.4399090409, 0.0824891105, -0.0298399944, 0.0789924189, -0.0527300835, -0.3766101897, 0.2331942618, -0.0687966943, -0.2699417174, -0.0771368444, 0.2596864104, 0.1271084696, 0.0319937356, -0.0509704649, -0.3427154124, 0.3536837399, 0.1484927088, -0.1209219098, 0.287502557, -0.0001079103, 0.1774748266, 0.5239647031, 0.1124401689, -0.242422238, -0.1062211171, -0.5625214577, -0.3199850917, -0.1697114557, -0.1376317143, 0.1010175645, 0.068177022, -0.0580158345, 0.0857400298, 0.0731885731, 0.1331859231, 0.2339019477, 0.4367142022, -0.0004432653, -0.0674577355, 0.3653744757, -0.2094613314, -0.0294243973, 0.3617849648, 0.2616722882, -0.0581608377, -0.1868710816, 0.0730720237, -0.1329909265, -0.047556974, -0.0728623047, 0.0555400774, 0.1154493019, -0.1035933346, 0.2725288868, 0.1946080476, 0.2091863602, -0.2111512423, -0.2347674221, -0.2218531817, -0.154448241, -0.2692393661, 0.7162629962, 0.1035645679, 0.005197091, -0.0357303023, -0.3016203344, 0.4348997772, 0.1118822023, 0.0985448882, -0.0909362584, 0.0978478715, 0.0673778579, 0.0120799728, -0.04923499, -0.0927847773, 0.4911743999, -0.2794588804, -0.0759196877, -0.0431821011, -0.4587828815, -0.0269456822, 0.104620032, 0.4203362763, 0.3585043252, 0.4143474698, 0.239953056, 0.2049794048, -0.164465487, 0.2018525153, -0.0423663631, 0.336484164, -0.0724251047, 0.0944488719, 0.2512942851, 0.1894854009, -0.1218818724, 0.0333405845, 0.125458762, -0.3153840601, 0.549595654, 0.3572717309, 0.2342158407, -0.4123001993, -0.3189835548, 0.1881919205, -0.0154906679, -0.1912803948, 0.0979278982, 0.3223875165, -0.1111305803, 0.0698540062, -0.1097788513, 0.0532875061, -0.116770871, 0.0751222372, -0.2299499512, -0.0782294273, -0.2449656129, 0.1934441626, 0.2325484008, -0.3872141242, 0.2300944626, 0.0470814593, 0.1583111733, -0.2323665321, 0.1668219715, -0.1289631575, -0.1461554766, 0.3324533701, 0.138346076, -0.0491602756, 0.0540701747, -0.0188223086, -0.1124880686, 0.1361052394, -0.2881700993, -0.0912775397, 0.1897295564, 0.2989951074, -0.4367679358, -0.1443204284, -0.1374756098, -0.413856715, 0.0543406084, -0.3036083281, -0.0632939562, -0.1790438145, 0.0235121269, -0.228997618, -0.0652539879, 0.07725472, 0.3097788692, 0.0565501265, -0.0875411108, -0.0808355212, 0.2054038793, 0.0013639258, -0.0416859426, 0.0835247263, -0.3418317139, 0.1073311865, -0.0558188409, -0.4534271955, -0.6790646315, -0.0140492553, 0.0255700611, 0.2276982367, -0.0398854837, -0.0705684796, -0.0028640747, -0.1427678019, -0.105304502, 0.0223647673, 0.0789185613, 0.2231299877, -0.3148570657, -0.2273600399, 0.0228258464, 0.1083656624, 0.1819587201, 0.0498658717, 0.3929026127, -0.5257888436, -0.0112202801, -0.0704889521, -0.138304159, 0.1642573625, 0.4214242697, -0.1207689345, 0.1377740353, 0.1259239763, -0.4432356358, 0.442098856, -0.1861627996, 0.0411108807, -0.0006306369, -0.0638743788, -0.2502095699, -0.1864621341, -0.1506249607, 0.0835400298, 0.205711022, 0.398950398, 0.2875108123, 0.0321183652, 0.1665733904, 0.0834119692, -0.2389040142, 0.0234958418, -0.2599077523, 0.4096887112, 0.022109488, -0.1432234794, 0.2103854418, 0.0822035372, 0.3558482826, -0.0347645096, -0.1904274523, 0.3523112535, 0.1009479612, 0.4597894549, -0.075892292, 0.4332897663, -0.0176641736, -0.2942335308, -0.0653464794, 0.5005335212, 0.1275780052, -0.0336139575, -0.2609812319, 0.5045989752, 0.0574154258, 0.1020225212, 0.0559607781, -0.0700904727, 0.2251838148, -0.4201725125, -0.2254263759, -0.0231265966, 0.1604853719, 0.2245302349, 0.314242661, 0.0784012601, 0.0578593239, 0.0388844013, 0.4135455489, -0.1872437596, -0.0199459828, 0.1710809767, 0.0416536331, -0.026721986, -0.0120056868, 0.776297152, 0.4038244188, 0.1005647182, -0.1152016073, 0.0698616654, -0.2147972137, -0.0766966045, 0.1013783962, 0.0461333282, -0.0253496468, 0.5941995978, 0.2999816239, -0.1033672094, -0.3602049351, -0.2012025267, -0.0271361824, 0.1822433323, -0.2904809713, -0.1019283235, -0.1815993488, -0.1187902987, -0.2082357556, 0.114009507, -0.0234393384, -0.518273294, -0.0254987776, 0.2660339177, -0.148244828, 0.1874380559, -0.3829044998, 0.1078672782, -0.0422126241, -0.3431220651, -0.0295130275, 0.0592669621, -0.1002281085, 0.0674280152, 0.4670019448, -0.0488452651, 0.3510495424, -0.301969409, 0.0127249463, -0.5899690986, -0.3604611754, 0.155254811, -0.3017240465, -0.0801052228, 0.0837647766, -0.1219000444, 0.031808231, -0.2657271028, 0.2150076777, -0.1660633683, -0.3266937137, 0.225766167, -0.0594317205, -0.0635883287, 0.0364033021, -0.2286472619, 0.0894983411, -0.1404520869, -0.0592132285, 0.1492618024, 0.1346839815, 0.0373294316, -0.0553827323, -0.0208848473, 0.1417584568, -0.0085085724, -0.3456139863, -0.5789302588, 0.3348194659, 0.0654317811, -0.3798399568, 0.0748322085, -0.1879071593, 0.2280129194, 0.2470107377, -0.3227660954, -0.311594367, -0.392504096, 0.1904238611, 0.2609835863, -0.1207248569, 0.3494982421, 0.1320932806, -0.1761505306, -0.1528457999, -0.3358908892, 0.0274962857, 0.1419687122, 0.256557852, 0.0752720982, 0.1512418687, -0.2064659297, 0.2492571175, 0.2062170357, 0.0894572213, 0.2887158692, 0.0750409961, 0.1896804124, -0.0334491357, -0.0258535482, 0.021560628, -0.0788646638, -0.1651370972, 0.1553492099, 0.0107239792, -0.2451010644, -0.0456828326, -0.1911693215, -0.5048606992, -0.2776010036, -0.0853374526, 0.2413499504, 0.2365655899, 0.0196836945, 0.0020001235, -0.1844520718, -0.3070820272, 0.1314553022, 0.1305481791, -0.0818083212, -0.2105205804, -0.3981352448, 0.060651008, -0.1977222562, 0.3811142445, 0.0837520063, 0.3094967306, 0.1036142856, -0.3309760392, 0.039486479, -0.2919834554, 0.0654445961, -0.2800309062, 0.2777667046, 0.0863896236, -0.0137421312, 0.1528246105, -0.3384636939, -0.0754340068, -0.058888603, 0.0876195431, 0.3530220985, -0.2570474148, 0.1082915217, -0.0347995199, 0.2310831249, -0.1031911373, -0.3214277029, -0.256354183, -0.2763985693, -0.3005068302, -0.0808043852, -0.0912232623, 0.1528704762, -0.3892833591, -0.0487158708, -0.0228364076, -0.179068312, 0.2358463556, 0.0859273076, 0.2308281362, -0.1966748834, 0.3536865413, -0.016840715, 0.0462572016, 0.3450326324, 0.8101040125, -0.0299586784, -0.1772155166, 0.2269881219, -0.2262265086, -0.3026672602, 0.144287318, -0.0076312218, -0.0044894102, 0.0776418969, 0.0346424244, -0.1569043547, -0.2478740662, 0.0008176443, 0.2420844436, -0.3319909871, -0.036703676, 0.2397197634, 0.1057514697, -0.3147876859, 0.3705184162, 0.0493855439, -0.2157800496, 0.3761843741, 0.1287151426, 0.9009119272, -0.0975814685, -0.1036141813, 0.1051651984, 0.1795816869, 0.1085838601, -0.187269032, 0.2099031806, -0.418230623, -0.6335650682, -0.0151888262, -0.2335329503, 0.0598130785, -0.0825015381, -0.0958340615, 0.3559360206, -0.0664294809, 0.1316668242, 0.1486592591, 0.1123366877, -0.5630484819, 0.0093851564, 0.1435263902, 0.2065258026, 0.0850597993, 0.267623812, -0.0418442823, 0.1093405783, -0.2506035566, -0.3205968738, -0.3354600966, 0.228836447, 0.018981766, -0.1050442979, 0.4177194536, 0.1317844391, -0.3203864396, 0.0239869896, 0.3009025455, -0.0035422742, -0.2955179513, 0.2206119597, 0.3049247861, 0.2325906605, 0.0049242959, -0.3242491186, 0.2955785692, -0.0923322067, -0.22649014, 0.0131540932, 0.0019895374, -0.4635477364, -0.1110867187, 0.0790630057, -0.3759459853, -0.2323355526, -0.0141807767, -0.0771912634, -0.1653082073, -0.2471143454, 0.2302453071, 0.1698122919, 0.1333736777, 0.3054413497, 0.0768300742, -0.3837897778, -0.0947337896, 0.3317111135, 0.104636535, -0.2035904676, 0.3592783511, -0.2723417878, -0.0930055976, -0.2092840523, -0.1579179317, -0.0169301666, -0.3251159191, -0.117672883, -0.4298066199, 0.1434763372, 0.135542959, 0.4311827123, 0.3064831495, 0.4027598202, 0.1550700665, -0.6578933001, 0.0749359801, 0.0141716739, 0.0524585582, 0.2932660282, -0.3777860105, 0.0114835687, 0.0293857437, -0.2309972793, -0.3909300566, 0.1742722392, -0.3357924521, -0.0275297407, 0.0385443941, 0.0388377383, 0.2996908128, -0.0776087791, 0.2884529233, 0.1023637652, -0.1036749706, -0.2443583608, -0.0713172629, 0.1090254262, 0.1748162806, -0.0581675805, -0.0564938486, 0.0112097403, 0.1443538666, -0.0958311036, 0.0238279663, 0.0787758827, -0.2136315107, -0.1604109704, 0.0482825302, -0.0627621934, -0.0194883011, -0.0663901865, -0.372253269, -0.0901559517, -0.0193262585, -0.0117525831, -0.1568103731, 0.1700864136, 0.1708756685, 0.1076375023, 0.0736189336, 0.1617373824, 0.3169378042, -0.016518129, -0.0945626721, 0.1907990277, 0.2111217231, 0.1728803515, -0.4433249533, -0.1164698675, 0.2522093356, 0.3310530782, -0.2447228879, -0.0930540636, 0.0343846716, -0.060407199, 0.1355779916, 0.1205969527, 0.3251362741, -0.410094589, 0.3145189881, 0.0138147147, 0.5163813829, -0.2887159586, 0.1507748365, 0.341229111, -0.0369253308, 0.0976713672, 0.1831871867, -0.3179923892, -0.2197185606, -0.1632980406, -0.1059480831, 0.2706536949, -0.1736597568, 0.186698392, -0.2303609699, -0.5291451216, 0.5492296219, 0.2006518245, -0.1864976138, 0.0479598045, 0.1404765248, 0.0475078821, -0.0145541439, 0.4268657565, -0.6220315099, 0.0389343835, 0.0462964065, -0.1087094322, -0.1675898284, -0.2337095141, -0.0807462558, 0.1875544786, 0.0595522821, -0.0553714037, 0.184872672, 0.17230542, -0.2054191977, -0.0948084295, -0.168573007, 0.0001015512, 0.1398389488, -0.1843571216, 0.3106747568, 0.0840703174, -0.1604893208, 0.0883621573, 0.4040276408, 0.5066378117, 0.4093861282, 0.1211162955, -0.021760786, -0.0093565751, 0.0965403989, 0.007119956, 0.6516667604, -0.0469320379, -0.1360123307, 0.2628248632, 0.2844964564, -0.244701758, -0.0875098407, -0.2413414717, -0.0965176225, -0.0438837744, 0.1357377619, 0.1509346515, 0.3564540446, -0.0936444178, 0.277805239, -0.4690014124, -0.2657953501, 0.228002876, 0.1460129619, 0.2982304692, 0.0840531886, 0.1240220442, -0.1947556734, 0.221824795, 0.3051168025, -0.05099345, -0.1892796457, -0.3065974414, -0.5408636332, 0.3148412406, -0.2320871204, 0.0201799162, -0.0382469743, 0.0946971104, -0.1807657927, 0.0632113218, 0.4162254035, 0.1320181191, 0.0037103244, 0.0356727242, -0.2124885768, -0.0651728958, 0.2476053238, -0.2361907959, -0.1229794919, -0.3464532197, 0.1050704867, 0.1927863508, 0.2287886143, -0.0605687983, -0.0243635718, -0.2168073356, 0.1226783916, 0.3915025592, 0.2028970122, 0.4989645183, -0.1522261649, -0.1153091788, -0.3501824439, -0.166214034, -0.0088612475, 0.1641065776, 0.0669791326, 0.0797054321, 0.1641559005, 0.0946380273, -0.1923060715, 0.3203835487, 0.10141588, -0.3075587451, -0.2085140646, 0.1248640493, -0.1608516723, 0.0457339771, -0.0757761151, 0.1005453914, 0.238817215, 0.2782417536, -0.1816295534, -0.3167460561, 0.2549265921, -0.2184009254, -0.0521060042, -0.0855726674, 0.2054125071, -0.0801414475, 0.1129677668, -0.3738334477, 0.2281294465, 0.288210094, 0.0748663321, -0.1536893398, 0.017830193, -0.1428060085, 0.1285948902, 0.1191066504, 0.086581327, 0.1937057525, -0.1189921722, -0.0234632958, 0.0218665916 ]
https://github.com/huggingface/datasets/issues/3807
NonMatchingChecksumError in xcopa dataset
@afcruzs-ms, I'm not able to reproduce the issue you reported: ```python In [1]: from datasets import load_dataset ...: dataset = load_dataset("xcopa", "it") Downloading builder script: 5.21kB [00:00, 2.75MB/s] Downloading metadata: 28.6kB [00:00, 14.5MB/s] Downloading and preparing dataset xcopa/it (download: 627.09 KiB, generated: 76.43 KiB, post-processed: Unknown size, total: 703.52 KiB) to .../.cache/huggingface/datasets/xcopa/it/1.0.0/e1fab65f984b24c8b66bcf7ac27a26a1182f84adfb2e74035861be65e214b9e6... Downloading data: 642kB [00:00, 5.42MB/s] Dataset xcopa downloaded and prepared to .../.cache/huggingface/datasets/xcopa/it/1.0.0/e1fab65f984b24c8b66bcf7ac27a26a1182f84adfb2e74035861be65e214b9e6. Subsequent calls will reuse this data. 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 733.27it/s] In [2]: dataset Out[2]: DatasetDict({ test: Dataset({ features: ['premise', 'choice1', 'choice2', 'question', 'label', 'idx', 'changed'], num_rows: 500 }) validation: Dataset({ features: ['premise', 'choice1', 'choice2', 'question', 'label', 'idx', 'changed'], num_rows: 100 }) }) ``` Maybe you have some issue with your cached data... Could you please try to force the redownload of the data? ```python dataset = load_dataset("xcopa", "it", download_mode="force_redownload") ```
## Describe the bug Loading the xcopa dataset doesn't work, it fails due to a mismatch in the checksum. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("xcopa", "it") ``` ## Expected results The dataset should be loaded correctly. ## Actual results Fails with: ```python in verify_checksums(expected_checksums, recorded_checksums, verification_name) 38 if len(bad_urls) > 0: 39 error_msg = "Checksums didn't match" + for_verification_name + ":\n" ---> 40 raise NonMatchingChecksumError(error_msg + str(bad_urls)) 41 logger.info("All the checksums matched successfully" + for_verification_name) 42 NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://github.com/cambridgeltl/xcopa/archive/master.zip'] ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3, and 1.18.4.dev0 - Platform: - Python version: 3.8 - PyArrow version:
134
NonMatchingChecksumError in xcopa dataset ## Describe the bug Loading the xcopa dataset doesn't work, it fails due to a mismatch in the checksum. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("xcopa", "it") ``` ## Expected results The dataset should be loaded correctly. ## Actual results Fails with: ```python in verify_checksums(expected_checksums, recorded_checksums, verification_name) 38 if len(bad_urls) > 0: 39 error_msg = "Checksums didn't match" + for_verification_name + ":\n" ---> 40 raise NonMatchingChecksumError(error_msg + str(bad_urls)) 41 logger.info("All the checksums matched successfully" + for_verification_name) 42 NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://github.com/cambridgeltl/xcopa/archive/master.zip'] ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3, and 1.18.4.dev0 - Platform: - Python version: 3.8 - PyArrow version: @afcruzs-ms, I'm not able to reproduce the issue you reported: ```python In [1]: from datasets import load_dataset ...: dataset = load_dataset("xcopa", "it") Downloading builder script: 5.21kB [00:00, 2.75MB/s] Downloading metadata: 28.6kB [00:00, 14.5MB/s] Downloading and preparing dataset xcopa/it (download: 627.09 KiB, generated: 76.43 KiB, post-processed: Unknown size, total: 703.52 KiB) to .../.cache/huggingface/datasets/xcopa/it/1.0.0/e1fab65f984b24c8b66bcf7ac27a26a1182f84adfb2e74035861be65e214b9e6... Downloading data: 642kB [00:00, 5.42MB/s] Dataset xcopa downloaded and prepared to .../.cache/huggingface/datasets/xcopa/it/1.0.0/e1fab65f984b24c8b66bcf7ac27a26a1182f84adfb2e74035861be65e214b9e6. Subsequent calls will reuse this data. 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 733.27it/s] In [2]: dataset Out[2]: DatasetDict({ test: Dataset({ features: ['premise', 'choice1', 'choice2', 'question', 'label', 'idx', 'changed'], num_rows: 500 }) validation: Dataset({ features: ['premise', 'choice1', 'choice2', 'question', 'label', 'idx', 'changed'], num_rows: 100 }) }) ``` Maybe you have some issue with your cached data... Could you please try to force the redownload of the data? ```python dataset = load_dataset("xcopa", "it", download_mode="force_redownload") ```
[ -0.1630280316, 0.0196220763, -0.0325452425, 0.1558003873, 0.0957748666, 0.0057952977, -0.053499531, 0.3396128714, 0.1612436324, 0.1424918771, 0.0743285194, 0.2626977563, 0.2402617633, -0.0465791449, -0.2578478456, 0.5077952147, 0.0184930693, 0.0516374335, -0.0691120252, -0.0200470053, -0.3381710947, 0.1675314605, -0.1068768352, -0.2577941716, -0.0699750558, 0.3129391372, 0.1021472812, 0.0197591167, -0.084832482, -0.4102775455, 0.5081362128, 0.1342603266, -0.1595920771, 0.2846820652, -0.0001107674, 0.1174915507, 0.4348938167, 0.0707354173, -0.1852410883, -0.1114564687, -0.6668503881, -0.419570446, -0.1980727762, -0.1390823424, 0.0490854122, 0.2461084425, -0.024499448, -0.0086540468, 0.0091824718, 0.0390246436, 0.2191254944, 0.4661895931, 0.0923239663, -0.0671026632, 0.2599255741, -0.1323125064, -0.041128777, 0.1999800652, 0.261295259, 0.0908374041, -0.1941882521, 0.1393453777, -0.1561116874, -0.0067771818, -0.0351887234, -0.0359181836, 0.3015657961, -0.1108343974, 0.160098657, 0.2649768293, 0.1825533807, -0.3546310067, -0.2549883425, -0.1719808429, -0.2659867704, -0.3805515766, 0.508228898, 0.113021642, -0.1822007596, -0.0390745439, -0.3337229788, 0.393999815, 0.1228016764, 0.1146050021, 0.1019064635, 0.0496847183, 0.0606864952, -0.0057837917, -0.0462536104, -0.0275497679, 0.4868714511, -0.2417345494, -0.0734858215, 0.1453173161, -0.6300262213, -0.0187822636, -0.0471841171, 0.4338579774, 0.5211069584, 0.3476893604, 0.1900653243, 0.1839286685, -0.0309148189, 0.2191929519, -0.0961961076, 0.3911281526, -0.030200433, 0.2282930464, 0.1320429295, 0.2424548864, -0.1278650165, 0.021550674, 0.1405363977, -0.272023648, 0.6138055325, 0.2848961651, 0.1505546868, -0.5430353284, -0.3608474135, 0.2732504308, 0.0497500673, -0.1036085114, 0.2006331682, 0.291667819, -0.2110146582, 0.3041426837, -0.0419298112, -0.054022871, -0.1170178354, -0.025767494, -0.2434249967, -0.1080279052, -0.2720142603, 0.1454721689, 0.145195663, -0.3726762831, 0.3002811074, 0.0459556617, 0.3244916797, -0.2155844271, 0.2108269185, -0.0337592848, -0.0660988837, 0.3783192337, 0.0209684297, 0.0132465092, 0.1291053146, 0.0710548609, -0.1205466539, 0.0651150048, -0.2788104713, -0.1115036234, 0.1945994794, 0.2823566198, -0.4579562247, -0.0661630183, 0.0016551862, -0.5158343911, 0.3368553519, -0.2236976922, 0.0099047525, -0.1620804816, -0.1049052551, -0.2464489043, 0.0138955582, 0.0679684728, 0.2439546883, -0.0104044871, 0.0495400541, -0.0507251285, 0.3463053107, -0.0009119165, 0.002024129, -0.0006272116, -0.3001214862, 0.0023424968, 0.0401543751, -0.5451784134, -0.7369338274, 0.0377641618, 0.1057408005, 0.4105996788, 0.0402794145, 0.029390214, -0.1434261203, -0.2682659328, -0.1283809841, -0.0371711776, 0.0196169, 0.1885871589, -0.3790685534, -0.2511390448, 0.1605480164, 0.0605144128, 0.1122561172, 0.0171209853, 0.1704020798, -0.3401183486, 0.1999273002, -0.0398574844, -0.1464655697, 0.0066433805, 0.3712926805, -0.0998434126, 0.1164768487, -0.0991421044, -0.316493094, 0.4549770355, -0.224702388, 0.020488834, 0.1431209743, -0.144241944, -0.2842845023, -0.1183461919, -0.273447454, 0.0490888655, 0.162386477, 0.342289418, 0.3776513338, -0.1331892014, 0.0296693258, 0.3447776437, -0.3273168206, 0.0948441699, -0.4133951366, 0.1628821641, 0.1240400076, -0.039340876, 0.0959394723, 0.2538575232, 0.2497412562, -0.0038450039, -0.181404531, 0.4333850443, 0.2362216115, 0.1082587689, -0.154880479, 0.3445703685, -0.0450416394, -0.2898602188, -0.2100030929, 0.5267947316, 0.1590740979, -0.028837027, -0.0378662571, 0.4066281319, 0.0937271267, 0.1982616782, 0.0780408755, -0.0627799034, 0.2250870019, -0.3693935573, -0.3576958179, -0.0346525721, 0.3355724812, -0.0124366116, 0.1336478293, 0.1152093112, 0.1392540038, -0.0599096194, 0.2191556245, -0.1110503897, -0.0005873639, 0.1385694593, 0.1532253027, 0.0270944536, -0.0598817356, 0.5775926709, 0.3819386363, 0.0947238803, -0.1162263304, 0.1021439359, -0.2558651865, 0.0474637747, -0.0305190179, 0.1065813079, 0.0766427144, 0.5775948167, 0.1974819899, -0.1472820491, -0.2701245844, -0.1835305691, -0.1193982512, 0.2002582401, -0.3634487391, -0.1279533356, -0.2516431808, -0.2012149394, -0.2214490175, -0.0732319131, -0.0166904684, -0.4669904411, -0.0811073631, 0.1946983337, 0.0422419682, 0.2715639174, -0.6162658334, -0.0091979327, -0.0808919817, -0.2440529615, 0.0234184097, 0.1384817809, -0.0638388842, 0.0574087314, 0.3847287297, -0.0635787025, 0.3465326428, -0.4222983122, -0.0142084695, -0.3125958443, -0.3614786863, 0.1421037614, -0.111285612, -0.1554397345, 0.2120659947, -0.1255964041, 0.0641667694, -0.2318176031, 0.2537806034, -0.1121113896, -0.4089604616, 0.2661271095, -0.0828235, -0.1111421883, 0.0894845575, -0.1588226408, 0.0174812935, -0.2103402019, -0.0565736964, 0.1686774194, 0.1754661053, 0.1384277791, -0.0726519078, -0.010340319, -0.1047432497, 0.1048792899, -0.3309298456, -0.7593181729, 0.3389305174, 0.1170583665, -0.3031060994, 0.0147880157, -0.1892265975, 0.4114170074, 0.1725504547, -0.3298169672, -0.1705541313, -0.3609612584, 0.1544080824, 0.2018370926, -0.0166146364, 0.1844696254, 0.0448261239, -0.1298665851, -0.2199916095, -0.1843511909, 0.0185371507, -0.0479694679, 0.4424382746, -0.0179089382, 0.0763168037, -0.0220830217, 0.2242677808, 0.4968604147, 0.0235715788, 0.2313228548, 0.0661174357, 0.2258280963, -0.0272849109, -0.1361354142, -0.0325981826, -0.0638401136, -0.0799697787, -0.0320043303, 0.055690527, -0.0667214468, -0.0936733931, -0.1288656294, -0.3300745487, -0.256175667, -0.0869783685, 0.1426430345, 0.2179460675, 0.0288427565, -0.0128511433, -0.1575710624, -0.3179535568, 0.157578215, 0.2137759477, -0.1594014168, -0.2113180906, -0.4722226858, 0.0479736589, -0.1587521285, 0.3235284984, 0.1832573712, 0.365211755, 0.1973114163, -0.3504923582, -0.0534148291, -0.143319875, 0.1980004758, -0.1939233392, 0.2016590238, 0.0934713557, -0.0717743039, -0.0190468393, -0.1713996679, 0.1425616741, -0.0123113981, 0.1909568906, 0.232636407, -0.283296138, 0.1678856015, -0.0511166751, 0.3766336739, -0.1655101776, -0.4507184625, -0.3547609746, -0.1678020209, -0.3456156254, -0.1038910523, 0.006367689, 0.1942203939, -0.1505722702, -0.1514493227, -0.0873629972, -0.0754191205, 0.327147007, 0.2173600793, 0.2134216279, -0.2198462188, 0.4435964823, -0.0801874846, -0.0118723772, 0.2308960408, 0.7811758518, -0.0767491162, -0.3583190143, 0.0451097414, -0.1345677376, -0.0991484821, 0.0088425577, -0.0481001921, -0.0190006979, 0.1304495484, -0.0493004993, -0.112669155, -0.2056065053, -0.0478747673, 0.2251469791, -0.3398164213, -0.1620635539, 0.1338662058, 0.1023748741, -0.1559460908, 0.3924916387, -0.1092188135, -0.0805376694, 0.216468364, 0.1537855715, 0.9247259498, -0.0381061174, -0.0580579415, 0.0209261272, 0.215808019, 0.1628937721, -0.1658839732, 0.114349775, -0.4143995941, -0.6261752248, -0.0100577576, -0.2618857622, 0.1755547673, -0.1409347355, -0.0465616062, 0.4476446807, -0.1096960455, 0.1418255866, 0.1682021171, 0.064876914, -0.5371583104, -0.0797749087, 0.0428199731, 0.1968167722, 0.0687040389, 0.2652944624, -0.0349074639, 0.1370434165, -0.263936758, -0.2380245924, -0.3133665621, 0.3121688068, 0.0166561771, -0.1136180535, 0.5042078495, 0.2637645304, -0.344843179, 0.071167849, 0.2602382004, 0.0354823023, -0.194732666, 0.1005958691, 0.4536650777, 0.2235272825, 0.1201466843, -0.2358566672, 0.2446574122, -0.1252656877, -0.1791400909, 0.1616600007, 0.0394115485, -0.3650515079, 0.1495148242, -0.047306329, -0.016208794, -0.3903439343, -0.0037633812, -0.0712247863, 0.0338430218, -0.2504701018, 0.2034956813, 0.3276951313, -0.185616076, 0.3609456122, 0.0653449744, -0.3658398688, -0.0630903468, 0.3674624264, 0.1799035072, -0.238646552, 0.2242407948, -0.2659057975, -0.1332241595, -0.15490821, -0.1206377968, 0.0057957689, -0.4658884406, -0.1301371455, -0.2891965508, 0.1656662226, -0.0111067044, 0.5253897309, 0.3771254122, 0.2688368857, 0.1039737016, -0.6363803148, -0.1080307364, -0.0711608231, 0.1520062536, 0.3390894532, -0.4162046015, 0.0016172378, -0.0573049299, -0.0943294466, -0.3471104503, -0.1044440866, -0.3649513721, -0.0308992509, -0.085738115, 0.1842218637, 0.1682709605, -0.0664018169, 0.2699080408, 0.2776052654, -0.1436409801, -0.2514587343, -0.194721818, 0.1065871939, 0.1887286603, -0.0360310562, 0.0382723063, 0.0985024348, 0.1200711653, -0.1548236161, -0.0609169118, 0.1166606322, -0.1185080409, 0.0600591153, 0.1119894534, -0.1002084911, -0.0529848151, -0.0091340765, -0.2911120951, -0.1054596826, 0.0710708722, -0.0505560748, -0.2160429955, 0.1018230394, 0.2929026783, 0.1186653152, 0.0845596865, -0.0301524326, 0.3028791845, -0.1115695909, 0.0239116736, 0.371660918, 0.1881091893, 0.2690602243, -0.35612306, -0.0724083409, 0.2292741388, 0.2950707972, -0.3363313079, -0.1276910454, 0.083992146, 0.0816524178, 0.1263591796, 0.1858716756, 0.1878030747, -0.5746520162, 0.508074522, -0.0739681199, 0.3743038177, -0.250661701, 0.1543366164, 0.5682209134, 0.0181500018, 0.1027067453, 0.1764255464, -0.2142160386, -0.1644574404, -0.1500570029, -0.0922155008, 0.3908784688, -0.2824785709, 0.2561035752, -0.3602474332, -0.4953057766, 0.4332661331, 0.229145363, -0.0192642137, 0.097074002, 0.1610930264, 0.0986949131, 0.1499403417, 0.4035170972, -0.5139325857, -0.0160201415, 0.0384013094, -0.0799635723, -0.1944992244, -0.2232462913, -0.0679864362, 0.0312127564, 0.0793156847, -0.0197537225, 0.2852090895, 0.0140088145, -0.1669411659, -0.1977051347, -0.2289592773, 0.0821722373, 0.1043841317, -0.2228232324, 0.2910065353, 0.1571781784, -0.1861790717, 0.0956771895, 0.3284164667, 0.4941262007, 0.4228340089, 0.1841455698, 0.0306125507, -0.0440612026, 0.1013449803, -0.0476146713, 0.7084617615, -0.1272248328, -0.1445444077, 0.3068700433, 0.2031953186, -0.2322350442, -0.1229014993, -0.2277958989, 0.024112789, -0.0400202014, 0.363622278, 0.1066587791, 0.3859625757, -0.0482178815, 0.3256987631, -0.4465434253, -0.2555350661, 0.1888070405, -0.000134249, 0.2241543382, 0.0777582303, 0.1057004631, -0.3286653757, 0.1680940688, 0.2577144802, -0.1647688299, -0.2815744579, -0.3001517355, -0.6647702456, 0.3878759742, -0.2774918377, -0.1633133292, 0.0564305075, 0.0773503631, -0.0956018865, 0.2305645347, 0.370087266, -0.0418906473, 0.0413518585, 0.0656356812, -0.0821093917, -0.1079138294, 0.1526280493, -0.2358178347, 0.0234758779, -0.3429808021, 0.0691334382, 0.2004070133, 0.2251804024, -0.0211359244, -0.130003497, -0.0819839016, 0.0659948364, 0.1888476014, 0.1472745538, 0.3928874433, -0.1110964641, -0.0979757607, -0.2117649019, -0.1128303558, -0.0714526772, 0.219674632, 0.0025482657, 0.076119177, 0.0749981776, 0.16818811, -0.275695622, 0.2955363393, 0.1889643222, -0.4573281109, -0.1708710939, 0.172231704, -0.1974625736, 0.0674517304, -0.0748496354, 0.0934517309, 0.1738561988, 0.3965123296, -0.0807008073, -0.2687869966, 0.3701741993, -0.2686362565, -0.0532324947, -0.136577785, 0.1749208122, -0.1717081666, -0.0411220826, -0.4613742828, 0.1591995507, 0.3710483909, 0.0991741419, -0.1016368046, 0.0580924973, -0.3189026713, 0.2256695032, 0.1071938202, 0.2250496, 0.1064532027, -0.09296716, 0.0214458182, -0.0604554191 ]
https://github.com/huggingface/datasets/issues/3804
Text builder with custom separator line boundaries
Hi ! Interresting :) Could you give more details on what kind of separators you would like to use instead ?
**Is your feature request related to a problem? Please describe.** The current [Text](https://github.com/huggingface/datasets/blob/207be676bffe9d164740a41a883af6125edef135/src/datasets/packaged_modules/text/text.py#L23) builder implementation splits texts with `splitlines()` which splits the text on several line boundaries. Not all of them are always wanted. **Describe the solution you'd like** ```python if self.config.sample_by == "line": batch_idx = 0 while True: batch = f.read(self.config.chunksize) if not batch: break batch += f.readline() # finish current line if self.config.custom_newline is None: batch = batch.splitlines(keepends=self.config.keep_linebreaks) else: batch = batch.split(self.config.custom_newline)[:-1] pa_table = pa.Table.from_arrays([pa.array(batch)], schema=schema) # Uncomment for debugging (will print the Arrow table size and elements) # logger.warning(f"pa_table: {pa_table} num rows: {pa_table.num_rows}") # logger.warning('\n'.join(str(pa_table.slice(i, 1).to_pydict()) for i in range(pa_table.num_rows))) yield (file_idx, batch_idx), pa_table batch_idx += 1 ``` **A clear and concise description of what you want to happen.** Creating the dataset rows with a subset of the `splitlines()` line boundaries.
21
Text builder with custom separator line boundaries **Is your feature request related to a problem? Please describe.** The current [Text](https://github.com/huggingface/datasets/blob/207be676bffe9d164740a41a883af6125edef135/src/datasets/packaged_modules/text/text.py#L23) builder implementation splits texts with `splitlines()` which splits the text on several line boundaries. Not all of them are always wanted. **Describe the solution you'd like** ```python if self.config.sample_by == "line": batch_idx = 0 while True: batch = f.read(self.config.chunksize) if not batch: break batch += f.readline() # finish current line if self.config.custom_newline is None: batch = batch.splitlines(keepends=self.config.keep_linebreaks) else: batch = batch.split(self.config.custom_newline)[:-1] pa_table = pa.Table.from_arrays([pa.array(batch)], schema=schema) # Uncomment for debugging (will print the Arrow table size and elements) # logger.warning(f"pa_table: {pa_table} num rows: {pa_table.num_rows}") # logger.warning('\n'.join(str(pa_table.slice(i, 1).to_pydict()) for i in range(pa_table.num_rows))) yield (file_idx, batch_idx), pa_table batch_idx += 1 ``` **A clear and concise description of what you want to happen.** Creating the dataset rows with a subset of the `splitlines()` line boundaries. Hi ! Interresting :) Could you give more details on what kind of separators you would like to use instead ?
[ -0.5105410218, 0.0709034652, -0.1626145095, 0.1696151048, -0.163427785, -0.1772655547, 0.5803586841, 0.2326490432, 0.0360539034, 0.1621047556, 0.0860821605, 0.1326724887, -0.0996955633, 0.3431820273, 0.0255903751, -0.2169986069, -0.2595998943, 0.3339993656, 0.1591252685, 0.2512857318, -0.2046904117, 0.0663501173, -0.1600431055, -0.1460518241, -0.4101542532, -0.0118660089, -0.1335936636, -0.0771963969, -0.1833970398, -0.2509314716, 0.170700565, 0.3973205686, -0.130774036, 0.4159770608, -0.0000953394, -0.18191953, -0.2980453074, -0.1232017279, -0.2431834787, -0.2108721733, -0.1854924858, -0.4676288962, -0.08389768, -0.1482423544, -0.2223796546, -0.0037671246, -0.3861866593, 0.0126486486, 0.2697353959, 0.3825805485, 0.3011375666, 0.0777679384, -0.1019896492, 0.0018243599, 0.4143537581, 0.2241314501, -0.2460653186, -0.1475102454, 0.0670383498, 0.0668280199, -0.3004586101, 0.2855548561, -0.1808425933, 0.016984012, 0.1483173072, 0.2713690698, -0.0332113169, 0.0056135049, 0.1207315624, 0.4696066976, 0.325415045, -0.2517814934, -0.1614411771, -0.574813664, -0.0891656652, -0.3474500179, 0.0015880265, 0.2614518404, -0.2596246004, 0.0444258638, -0.1881829053, -0.1139976904, -0.4083538353, -0.1610409766, -0.2492599785, 0.1137787476, -0.2341102064, -0.1925504208, 0.1470004916, 0.0004177745, 0.199998036, -0.2961182892, 0.0675488189, 0.0246359371, -0.0494066998, -0.1487272084, -0.1958459914, -0.2196192741, 0.1628918648, 0.1729707271, 0.1416390091, 0.042403087, 0.1744268537, -0.0696362928, -0.0228271745, 0.0651856065, 0.3073053658, 0.1330087036, 0.1101607606, 0.2420986295, -0.0300852526, -0.0233574323, -0.1146843135, -0.2951869667, 0.0803548098, 0.0232346915, 0.1237648278, 0.0734066665, -0.1645444036, 0.0721508488, 0.1137621254, -0.1407918185, 0.046242062, 0.0509012304, 0.1588585079, -0.1251943409, -0.1673440635, -0.0974575877, -0.0731903315, -0.3160554171, -0.1550323963, -0.1683429033, -0.1387773007, 0.0999902636, 0.2665541172, -0.1165935248, -0.039864514, 0.1991268396, 0.0552742928, -0.1568936855, -0.1390535682, -0.1967244446, 0.1644973159, -0.0365407392, -0.0258555673, -0.1519773304, -0.0582190268, -0.1966842562, -0.1317003965, 0.192888692, -0.0160129536, -0.0913168862, -0.3178988397, 0.3425037265, 0.0419410393, 0.0123485876, -0.1186402217, 0.301935792, 0.3676420152, 0.1297876686, 0.2794992626, -0.0604860894, -0.3084899783, -0.1287568808, 0.115566656, 0.2883869112, -0.5893890858, -0.1864902079, -0.0096425517, -0.1018368825, 0.123118192, 0.1832202673, 0.1050069034, 0.2665603459, 0.0124630071, 0.4303410053, 0.2995427251, 0.2454539686, -0.29030478, 0.3480561674, 0.0365007706, 0.0586767755, 0.2369947284, -0.197613284, 0.6573281288, 0.0894884169, 0.1872105896, 0.3095731437, 0.068741858, 0.0860732645, 0.0493091121, -0.190091148, 0.0285850968, 0.1983834952, -0.0071859937, -0.3065693974, -0.1021695286, -0.3812046051, 0.2367327213, -0.2338473946, 0.2087820172, 0.0571908951, 0.2272759676, 0.4038720727, -0.0520815328, -0.6515724063, -0.3576351702, 0.0119422646, 0.0877235681, 0.11927782, -0.0690680444, -0.2320705503, -0.1803793609, 0.0004470192, -0.2596519589, -0.129388392, 0.2495499998, 0.0375869088, 0.1514309049, -0.2473902106, -0.2637774348, 0.0701457858, -0.04161001, 0.3207961321, 0.0026813813, 0.2481205165, 0.0958282426, -0.1760385782, 0.0516569242, 0.6159962416, 0.0032656998, 0.1141414568, 0.0823293775, 0.2856471539, 0.0893702209, -0.1628285944, -0.2790035605, -0.0735684782, 0.1858614534, 0.0671133995, 0.1512430012, -0.0964693427, -0.1195995063, 0.0357096083, -0.2586422265, 0.5091933608, -0.1078768522, 0.3971794546, 0.0010358411, -0.0782804266, 0.075083591, -0.3078022003, 0.243463248, -0.4716216922, 0.2531740665, 0.0132652344, 0.2941814363, 0.1653731763, -0.0350344814, 0.3017355502, 0.3625214994, -0.0343173407, 0.0965627059, 0.1748576164, -0.1348732561, 0.0752435476, -0.0885478854, 0.2758381665, 0.0042582997, 0.334457159, 0.0574656464, 0.1300680637, -0.1221512258, -0.2482261658, 0.3204553127, 0.0090437643, -0.2235598117, 0.4388743341, 0.125240311, -0.1065056846, -0.3016260862, -0.0391187742, -0.200623855, -0.001253139, -0.1668127775, -0.0922482014, -0.2244573534, -0.3620779514, -0.3352632821, -0.268240273, -0.1099543422, 0.0419785492, 0.2439066023, -0.0312604085, -0.0908779353, 0.087807022, 0.2067945153, 0.3776074648, -0.0536578968, -0.0454110391, 0.0461135022, -0.2302702516, 0.0720304549, 0.2870162129, 0.0811499804, 0.3109460473, 0.3854493499, -0.0648353696, 0.1522285342, -0.1327845007, -0.0501068197, 0.1860569119, -0.1564155817, -0.0381424278, 0.5177101493, -0.1054298803, 0.3196314573, -0.2468905896, 0.0487941466, -0.0588911697, -0.3156741261, -0.1668431461, -0.0313173421, -0.0589829274, -0.183374688, -0.2597485185, -0.1399553567, -0.3942988813, 0.3853557706, 0.139792487, 0.3623081446, -0.1220879331, 0.0187083036, 0.1065315977, -0.045385398, 0.0011196012, -0.0969473049, -0.1477624625, 0.1010689661, -0.3655279875, -0.0265427995, 0.040729057, -0.1227735355, 0.0212787949, 0.0033445356, -0.1754683405, 0.2774882615, -0.2442315072, 0.356769383, 0.1036139429, 0.2120708823, 0.2190549225, 0.1903656423, -0.076234892, -0.0962244868, -0.0622897595, 0.2135061324, -0.1745711863, -0.1280338019, -0.1573346555, 0.4150920808, -0.0150218019, 0.3648042381, 0.1650543511, 0.0565488674, 0.0137775112, -0.3030066788, 0.0521947667, -0.1443646103, -0.2650174797, -0.0495363548, 0.0480760783, 0.0882432684, 0.3259746432, 0.1521895826, 0.1837824732, 0.1208766922, -0.3995389342, 0.0500386879, -0.4131453931, 0.2070338875, 0.0141192721, 0.3627157211, -0.2404894829, -0.2104044408, -0.1821115315, -0.1568874866, -0.2287854552, -0.0799891576, 0.1699730009, -0.3056322336, -0.2722326219, 0.2685584128, -0.1489003599, 0.1872279942, 0.4425394535, -0.3051483631, 0.0431950726, 0.0414528325, -0.0638073608, 0.2202050835, 0.4553042352, -0.1749691516, -0.242539838, -0.0246501472, 0.0311504286, -0.220946297, -0.032345213, -0.0387667902, 0.2733104825, 0.1631097794, 0.1683320254, -0.4261732399, -0.1645205617, 0.515639782, 0.2905923128, -0.1454678178, -0.2442102134, -0.0211220477, 0.1361083388, -0.2347460687, 0.3046038747, 0.102626428, 0.3756609857, 0.128176108, -0.1544795036, 0.2177836895, -0.2381311506, 0.0076762456, -0.0391761288, 0.1191374585, -0.3370441496, 0.1196174845, 0.0371129587, 0.090391919, 0.3397731185, 0.3698996305, -0.372117877, -0.484197706, -0.086545229, -0.3775992692, 0.6037832499, 0.188451767, -0.0132748391, 0.3208793104, -0.0491417684, 0.2529623806, -0.0081033902, -0.1918730289, 0.0154988104, 0.063012369, -0.0610394552, -0.5345195532, 0.2268186212, -0.1610508114, 0.1787236929, 0.1194327995, 0.1212004051, -0.5102614164, 0.2626184821, 0.0328346305, 0.6449908614, 0.3371168375, 0.1273727715, -0.0538525879, -0.1585850716, 0.2144470513, -0.0500461757, 0.0799637511, -0.4085971713, 0.0255233161, -0.110442549, -0.0085658152, 0.2150770277, 0.2644883692, -0.1347531825, 0.1129938215, -0.1338010877, 0.2774863541, 0.0186755974, 0.0018135728, -0.2701376081, -0.4321318567, -0.1354737133, 0.1142456383, -0.0011177614, -0.4023538232, 0.0471982472, 0.1383940428, 0.1574412137, 0.0298160706, -0.4279101789, -0.1752462089, -0.4210193455, -0.1838988811, 0.3456918299, -0.3163649738, 0.2330024391, -0.0290500876, 0.2160483301, 0.266145885, 0.0405926853, 0.0321603194, 0.0229524039, 0.3005960882, 0.0471519269, -0.043699041, 0.2034831494, -0.1577673554, -0.2401926219, -0.2049354464, 0.2397565544, -0.390114516, -0.0834412575, -0.0371081419, 0.0587983504, -0.5814213753, 0.06965442, -0.1995534897, 0.2685623169, -0.3249532878, 0.2570614517, -0.0498177297, -0.1053886861, -0.005533766, -0.2469965518, 0.0101505164, -0.1560914814, 0.0738583133, 0.1071439236, 0.0374350324, 0.3046176434, 0.3305525482, -0.2444333285, -0.4940878153, 0.1480524093, 0.2835585177, -0.3006587923, 0.2117775977, -0.0313749537, -0.1587620229, 0.1622487754, 0.4410000741, 0.0604952015, 0.2984677553, -0.155607149, -0.1039345562, 0.0194814578, -0.2093251646, 0.2604185045, 0.1691960245, 0.0522091128, 0.4070845842, -0.0661906302, 0.0699886605, -0.4569957554, 0.2079034001, 0.0574917644, -0.0396242067, -0.1030517519, -0.111304082, -0.0205371901, 0.0236051548, 0.2094885558, 0.1869536042, 0.061906606, -0.4037297368, -0.4332245886, 0.0225310419, -0.0608075857, -0.0311865341, -0.1192603931, 0.2487420142, -0.2751185298, -0.1221273839, 0.3600118458, -0.0643967614, -0.0221779495, 0.0789386034, -0.0576408468, -0.0642043129, -0.3051676154, -0.0172086377, -0.1450958699, 0.1702070236, 0.2301826775, 0.1975815147, -0.3257766664, 0.0868969262, 0.1838129312, 0.2091845572, 0.2569139302, -0.0460129194, 0.2979732752, -0.1228135601, -0.2992171943, 0.1611919105, 0.473406285, 0.2198241949, -0.0563242175, 0.017826654, 0.0827001482, 0.4623862505, -0.2454343587, -0.1577494889, 0.3802319765, -0.2789556086, 0.3893281817, 0.3914401829, 0.1293203682, -0.0642154664, -0.037605118, 0.031416744, 0.1752382964, -0.0077486909, 0.0658607557, 0.6231890321, 0.0069977609, 0.0634276047, 0.4931994975, 0.109045364, 0.3413821757, 0.3606383502, -0.0192217901, 0.3144158423, 0.0819170624, 0.0027317831, 0.2229631245, -0.1536952108, 0.0388039015, -0.1182788312, 0.040101856, -0.0325185619, -0.2900084853, 0.2536438406, -0.1915825158, 0.1360617578, -0.0866373554, 0.2512264848, -0.0934117064, -0.0839079693, -0.2922402322, -0.1558530629, -0.0647085905, -0.133522436, 0.0160773043, -0.1066477969, -0.1374870986, -0.138893798, 0.2204909921, -0.0370888226, 0.1843648702, -0.3228895068, 0.2143986225, -0.1999405026, 0.1138946116, 0.1189162359, 0.0246163812, 0.0179222748, 0.1657024026, 0.1192104965, 0.065277122, -0.0615110807, -0.1711952686, -0.4256634116, -0.0269086659, -0.2033919692, 0.1318073124, -0.0505013838, 0.3500775099, 0.2391646802, 0.2038587928, -0.2565515935, 0.1441008002, 0.2720744014, -0.0787593648, -0.3279590309, 0.0777960792, 0.2685219944, -0.3520693481, -0.0605187342, -0.016515417, -0.1004510373, -0.1976965964, 0.5090714097, -0.178958267, 0.095058471, -0.0056036348, 0.1534720957, 0.1219680905, 0.3896290958, 0.0946798325, 0.0937783569, -0.0100639081, -0.2412316799, -0.1804788709, -0.1099415943, -0.0578332432, -0.1491216868, 0.2026129514, 0.1220213473, -0.1063233465, 0.1629061848, -0.0025078452, 0.0872525424, 0.009572451, -0.100285612, -0.3322277367, 0.178835094, 0.2125620544, -0.0495468974, 0.0676315874, -0.1216816753, 0.0822785124, 0.0812445432, 0.1185612604, -0.0353488438, 0.3402520716, 0.4187330306, -0.2227915078, -0.1659771502, 0.0172721054, 0.0753230304, -0.0169363599, 0.1132629886, -0.1300802678, 0.1190173998, -0.4900011718, 0.3359584808, 0.3456833959, 0.2733862698, 0.0280125402, -0.0985619202, -0.1797260195, 0.2547077537, 0.2044855505, 0.139418453, -0.033080779, 0.0753294677, 0.0523510203, -0.1042371616, 0.0977737978, 0.137046501, -0.2473465651, 0.1165043041, 0.0438192934, -0.3086134493, -0.0309953038, -0.1147792861, -0.5013341308, -0.0532899685, 0.2995176315, 0.4748438299, -0.2438246161, -0.5324756503, -0.118636921, 0.3585936725, -0.0856377557, -0.1234007999, 0.194844231, 0.1524627656, 0.0571354143, 0.1274920106, 0.0962870121, 0.1406879872, -0.1284007728, -0.2240018696, -0.394895792 ]
https://github.com/huggingface/datasets/issues/3804
Text builder with custom separator line boundaries
Ok I see, maybe there can be a `sep` parameter to allow users to specify what line/paragraph separator they'd like to use
**Is your feature request related to a problem? Please describe.** The current [Text](https://github.com/huggingface/datasets/blob/207be676bffe9d164740a41a883af6125edef135/src/datasets/packaged_modules/text/text.py#L23) builder implementation splits texts with `splitlines()` which splits the text on several line boundaries. Not all of them are always wanted. **Describe the solution you'd like** ```python if self.config.sample_by == "line": batch_idx = 0 while True: batch = f.read(self.config.chunksize) if not batch: break batch += f.readline() # finish current line if self.config.custom_newline is None: batch = batch.splitlines(keepends=self.config.keep_linebreaks) else: batch = batch.split(self.config.custom_newline)[:-1] pa_table = pa.Table.from_arrays([pa.array(batch)], schema=schema) # Uncomment for debugging (will print the Arrow table size and elements) # logger.warning(f"pa_table: {pa_table} num rows: {pa_table.num_rows}") # logger.warning('\n'.join(str(pa_table.slice(i, 1).to_pydict()) for i in range(pa_table.num_rows))) yield (file_idx, batch_idx), pa_table batch_idx += 1 ``` **A clear and concise description of what you want to happen.** Creating the dataset rows with a subset of the `splitlines()` line boundaries.
22
Text builder with custom separator line boundaries **Is your feature request related to a problem? Please describe.** The current [Text](https://github.com/huggingface/datasets/blob/207be676bffe9d164740a41a883af6125edef135/src/datasets/packaged_modules/text/text.py#L23) builder implementation splits texts with `splitlines()` which splits the text on several line boundaries. Not all of them are always wanted. **Describe the solution you'd like** ```python if self.config.sample_by == "line": batch_idx = 0 while True: batch = f.read(self.config.chunksize) if not batch: break batch += f.readline() # finish current line if self.config.custom_newline is None: batch = batch.splitlines(keepends=self.config.keep_linebreaks) else: batch = batch.split(self.config.custom_newline)[:-1] pa_table = pa.Table.from_arrays([pa.array(batch)], schema=schema) # Uncomment for debugging (will print the Arrow table size and elements) # logger.warning(f"pa_table: {pa_table} num rows: {pa_table.num_rows}") # logger.warning('\n'.join(str(pa_table.slice(i, 1).to_pydict()) for i in range(pa_table.num_rows))) yield (file_idx, batch_idx), pa_table batch_idx += 1 ``` **A clear and concise description of what you want to happen.** Creating the dataset rows with a subset of the `splitlines()` line boundaries. Ok I see, maybe there can be a `sep` parameter to allow users to specify what line/paragraph separator they'd like to use
[ -0.4740251005, 0.032496769, -0.1551950425, 0.123829253, -0.1683721095, -0.1784347743, 0.6166985631, 0.2291660756, 0.02003536, 0.2053591609, 0.0969709009, 0.1254847795, -0.0567381233, 0.3359189332, 0.0088384207, -0.211790204, -0.2759430408, 0.3095940053, 0.1675323099, 0.251483053, -0.2111619562, 0.0539633632, -0.1351201683, -0.1041118577, -0.3737978041, -0.0106073031, -0.1133759543, -0.0828595981, -0.1860802025, -0.2347658128, 0.1782044768, 0.4116267264, -0.1803232282, 0.3764731884, -0.0000933356, -0.1885418892, -0.2967974842, -0.0933551863, -0.2809925079, -0.2200730443, -0.1426218748, -0.4317094982, -0.0813248008, -0.1590586901, -0.2638039589, -0.0036332177, -0.3241408765, -0.0129263354, 0.2873972356, 0.3372323215, 0.3278980255, 0.1241734177, -0.1560233682, 0.001552835, 0.3172156513, 0.2365474254, -0.2825537324, -0.2077050656, 0.0697880983, 0.0205111131, -0.2749799788, 0.2589175105, -0.1625395119, 0.0147904335, 0.1825096756, 0.2314289212, -0.0803527832, 0.0253846217, 0.0978899747, 0.5028623343, 0.320394963, -0.2545517087, -0.1673878431, -0.5474452376, -0.0792150795, -0.3245663643, -0.0255961679, 0.2701872289, -0.2906091809, 0.0402142853, -0.1784123927, -0.1196264327, -0.3637406826, -0.1488520503, -0.2839438617, 0.1522618681, -0.2372272313, -0.2003965825, 0.1524230242, -0.0231174808, 0.1580973715, -0.3076292872, 0.123278141, 0.0343765393, -0.0442700759, -0.1683247387, -0.1528760046, -0.2151438147, 0.1233090684, 0.1544462889, 0.2017149031, 0.0587735847, 0.148486495, -0.0681150109, 0.0245691929, 0.0438426919, 0.3095394969, 0.1101315543, 0.1600102782, 0.220557496, 0.0301558655, -0.0338631831, -0.118620649, -0.2615046799, 0.042139601, -0.0026438707, 0.1354531944, 0.0774509534, -0.2092428356, 0.078643553, 0.0898971185, -0.1159014776, -0.0065622698, 0.0459831804, 0.1593015194, -0.1405729502, -0.1341997683, -0.096224457, -0.0787893683, -0.2762514055, -0.1652630419, -0.1660345346, -0.183640793, 0.1379668713, 0.2594227195, -0.1252107769, -0.0752213448, 0.1851406842, 0.0401956178, -0.1587084681, -0.1426178515, -0.1727009565, 0.1140804738, -0.0611569732, -0.0530285351, -0.1474401355, -0.045077648, -0.1616756469, -0.1544726938, 0.185006544, -0.0033077612, -0.0826663673, -0.2942371368, 0.3558354676, 0.0415582806, -0.0127343861, -0.0788185745, 0.3324791491, 0.3510143459, 0.1121847704, 0.2611929774, -0.0093968762, -0.3172889352, -0.1243909225, 0.0982547551, 0.3402666152, -0.5613870621, -0.206143856, -0.0361419655, -0.0909771845, 0.0739973038, 0.1970067471, 0.0626765192, 0.2605577409, 0.0272147972, 0.4517372251, 0.3153339028, 0.2574655712, -0.2431510389, 0.3307920396, 0.0113977445, 0.0754020438, 0.2279399335, -0.2027252018, 0.6057588458, 0.0478498526, 0.1828036159, 0.2892163992, 0.1000040472, 0.1221814752, 0.0303939693, -0.2103389353, -0.004267714, 0.184036538, 0.0184339117, -0.2791784406, -0.0561560206, -0.3116215467, 0.2434459329, -0.2434828132, 0.205138132, 0.0535463393, 0.2486231774, 0.3895974159, -0.0509985648, -0.650482595, -0.3728111088, -0.0019266506, 0.1782888025, 0.151137799, -0.0634905696, -0.2788800895, -0.1768061817, -0.027329307, -0.2356451452, -0.1470134258, 0.2826472521, 0.0648996457, 0.0764892027, -0.2605960369, -0.2553196251, 0.0926303566, -0.0372367352, 0.3158455789, 0.0038096791, 0.228733331, 0.0901141539, -0.1429737359, 0.0251794737, 0.6023528576, -0.0247079581, 0.105898954, 0.1009393483, 0.2863113284, 0.0263727922, -0.1124827191, -0.2644975781, -0.0295466091, 0.1622294188, 0.0562583357, 0.1723575443, -0.131321013, -0.1337785572, 0.049178917, -0.2677433789, 0.4793362916, -0.0767823458, 0.3786787391, 0.0243561734, -0.0820991695, 0.0129058706, -0.3038104773, 0.2126756608, -0.4468043745, 0.2379276305, 0.0586970337, 0.2805559933, 0.1600411534, -0.0810444802, 0.3153683841, 0.3525796533, 0.0151652582, 0.1272479296, 0.1436395049, -0.1063890979, 0.0803027824, -0.0797306746, 0.2314089537, 0.0064613852, 0.3390571773, 0.0864771605, 0.1255258769, -0.1235762909, -0.2645677924, 0.2633472383, 0.0101819187, -0.2139317244, 0.3901353478, 0.1096307561, -0.0869640782, -0.3384310603, -0.0090724509, -0.1695204973, -0.0349444561, -0.1602482945, -0.0544652343, -0.2266971767, -0.3474931121, -0.3482079208, -0.2666228116, -0.0845543593, -0.0017943224, 0.2774225473, -0.0539388545, -0.106109418, 0.0700621977, 0.1978539824, 0.451921612, -0.0826868415, -0.0419718251, 0.0409707949, -0.2497227192, 0.1056565568, 0.3248047233, 0.0776191801, 0.2915719151, 0.3854217529, -0.0384583995, 0.1291139573, -0.1679801345, -0.0672500208, 0.181141898, -0.1359022111, -0.001181766, 0.4786899388, -0.0842036828, 0.3474818766, -0.2230608612, 0.0525456518, -0.0246328656, -0.3239576519, -0.1775679141, 0.0036538369, -0.0393480472, -0.2339954674, -0.2548279762, -0.1062552705, -0.4006589353, 0.3992506862, 0.1150352582, 0.322150737, -0.1060047671, 0.0307988692, 0.0619505011, -0.0260456875, 0.0302689858, -0.1382616311, -0.1147222295, 0.0422457084, -0.355035454, -0.0395657793, -0.0125766769, -0.0661439896, 0.0480290949, 0.0442549363, -0.1804813594, 0.2100562453, -0.2275766134, 0.3556147218, 0.1159958616, 0.1902062595, 0.2442777604, 0.1716303378, -0.1048587188, -0.1062087342, -0.0626028702, 0.2017573565, -0.1952932328, -0.1395532638, -0.1746307909, 0.3729284704, 0.0572808199, 0.3804050386, 0.1549255252, 0.0465232432, 0.0587040223, -0.2712293565, 0.1022734269, -0.1480661333, -0.2596624494, -0.0055139968, 0.0516895913, 0.100201793, 0.341686219, 0.143388629, 0.1437261701, 0.1297858804, -0.3730128706, 0.0186813474, -0.4232412279, 0.1926835477, 0.0573872961, 0.3882801831, -0.1757127941, -0.1730965376, -0.1783016324, -0.1455375105, -0.2181120664, -0.0118830809, 0.1561906636, -0.2803664505, -0.1967004091, 0.2839769721, -0.1346360594, 0.2026776224, 0.4096885324, -0.3136233687, 0.0274440907, 0.0016552823, -0.0527466871, 0.1756211072, 0.4241943955, -0.1397157013, -0.2969335616, -0.0488687307, 0.0360032097, -0.2315686345, 0.0081278663, -0.0243517719, 0.2223727703, 0.1755573153, 0.1992416531, -0.4595786631, -0.1884941459, 0.5015150309, 0.2460186332, -0.1279085129, -0.240291819, 0.0034986546, 0.1825076342, -0.2233498544, 0.2938411832, 0.0780377015, 0.316337496, 0.1392055899, -0.1415964663, 0.2051855773, -0.2185020745, -0.0018304825, -0.0140594831, 0.0943635479, -0.3494327366, 0.0771347955, 0.022523161, 0.0538082905, 0.3488560915, 0.3698965609, -0.3721769154, -0.4012497365, -0.0652846247, -0.305739373, 0.5578648448, 0.2657140791, 0.0015900767, 0.2809159756, -0.0530439913, 0.2523078918, -0.02611956, -0.1472982466, 0.0623072609, 0.0744709671, -0.0465369858, -0.561586082, 0.2312952876, -0.1424669474, 0.1340491772, 0.0846114308, 0.1659744829, -0.4922574461, 0.2049855292, 0.0551530384, 0.6634004116, 0.3066174388, 0.1780264974, -0.1112600565, -0.0953029171, 0.2117304206, -0.1073514, 0.0425662249, -0.3713160157, 0.074092783, -0.1022800729, 0.0190896913, 0.2295910716, 0.2429561466, -0.1355795562, 0.0757224262, -0.0604039356, 0.2427879274, 0.0002101103, -0.0170302521, -0.3287827969, -0.425375551, -0.1190555766, 0.1554705799, -0.0131831225, -0.3663108945, 0.0383446142, 0.1425379515, 0.1423960179, 0.0397865064, -0.4241611362, -0.1611435264, -0.3900197446, -0.2109195143, 0.3070517778, -0.3323216438, 0.2316365689, -0.0632780194, 0.2150125206, 0.2917485237, 0.0046397918, 0.0161628872, 0.0226251706, 0.2653591335, 0.0117276153, -0.0197592154, 0.2402695864, -0.1216983274, -0.2100505978, -0.2067828476, 0.2656881809, -0.3811159432, -0.0939065069, -0.0310972203, 0.0677099228, -0.6005355716, 0.1010632068, -0.1395002455, 0.2960273027, -0.3467589915, 0.2856593728, -0.0475038886, -0.060948547, -0.0380575396, -0.207501471, 0.0088105183, -0.1692841649, 0.0235793535, 0.0947065949, 0.0501235239, 0.2827942967, 0.2939499915, -0.2670966983, -0.5089960694, 0.107028164, 0.262781471, -0.2458220124, 0.1940283477, -0.0183070414, -0.2036181837, 0.1681540608, 0.4639029503, 0.0197270568, 0.2439946681, -0.1694348007, -0.0812933818, 0.081080012, -0.2009994686, 0.1946419477, 0.2026030421, 0.0290025547, 0.4413318932, -0.061850898, 0.0387886278, -0.4907031655, 0.1488200575, 0.0499350131, -0.0412421189, -0.0213431213, -0.1134783402, 0.0054780026, 0.0051989849, 0.2204034328, 0.2055699378, 0.0159109905, -0.4353395402, -0.4599207938, 0.02528009, -0.039376583, -0.0186277945, -0.0913278535, 0.2482617348, -0.213126272, -0.158601895, 0.368914634, -0.0336542577, -0.0040739034, 0.0980783254, 0.004504927, -0.0338872559, -0.2165378481, -0.023855567, -0.1187468693, 0.1554963738, 0.1985412687, 0.1688523889, -0.3581954837, 0.1036406904, 0.2099703252, 0.2331225127, 0.3123562336, 0.0075939135, 0.2242050618, -0.1131984591, -0.2652896047, 0.1041258276, 0.4810104072, 0.242107287, -0.0364079811, 0.0044694548, 0.0884035602, 0.4737594128, -0.2107120007, -0.111230351, 0.3062842488, -0.3216776848, 0.4248236716, 0.4494510889, 0.0946447402, -0.0499871857, -0.0134625044, -0.0092130043, 0.1651886702, -0.0465881526, 0.0545510687, 0.57586658, 0.0321288928, 0.0616129637, 0.5050679445, 0.0903357342, 0.3124868572, 0.326472044, -0.0040131425, 0.2569727898, 0.0744281262, 0.0260540023, 0.2218580097, -0.1273105294, 0.1086276248, -0.1531695276, 0.0586305857, -0.0060532624, -0.249132663, 0.2632278502, -0.1970360279, 0.1584676206, -0.1071398854, 0.2966512442, -0.1177647859, -0.1339815706, -0.2795615494, -0.1502976418, -0.029343294, -0.1727401018, 0.0068221493, -0.1342889667, -0.1457006782, -0.1573536843, 0.2471046001, -0.0404950939, 0.1796509773, -0.3436451852, 0.2295123041, -0.1868747026, 0.0899811909, 0.0253699757, 0.0110116499, -0.0111353397, 0.1944530457, 0.0824153051, 0.0559080504, -0.0228432119, -0.1543884873, -0.4298482537, -0.0367640816, -0.2199046612, 0.0945138186, -0.027424179, 0.3908786774, 0.2473995984, 0.2290243953, -0.2935704887, 0.1549034119, 0.243181318, -0.0805370882, -0.3803883195, 0.0933596641, 0.2484714687, -0.3529321551, -0.0417268798, -0.0042690211, -0.1187274158, -0.1824267805, 0.4536191821, -0.191419512, 0.0960737467, -0.0472141765, 0.1706967205, 0.1965213269, 0.3671593666, 0.0658674091, 0.1003431827, 0.0302775744, -0.225462079, -0.2395162433, -0.081622161, -0.1045012772, -0.1668474376, 0.1468891054, 0.1017480344, -0.0645461231, 0.2042326927, -0.028131865, 0.0905097276, 0.0202317461, -0.1019077227, -0.3698650002, 0.1374129504, 0.2205093056, -0.0990483537, 0.0800589249, -0.0896763802, 0.0450619012, 0.0472136401, 0.1527467221, 0.002271441, 0.2996141016, 0.4256592095, -0.1728256643, -0.1491008699, -0.0251173321, 0.064867571, -0.0200152006, 0.0863919705, -0.1443840712, 0.115528971, -0.4866453111, 0.2851131856, 0.3160069287, 0.2611702383, -0.0003501247, -0.1511390656, -0.1455470473, 0.2130793929, 0.2099571824, 0.1124761775, 0.0211878102, 0.0579827614, 0.0699645504, -0.1185847968, 0.0721187294, 0.1844306141, -0.2072517574, 0.0812786743, 0.0532137007, -0.3453811109, -0.0302706286, -0.1180927232, -0.4684034288, -0.0252240859, 0.2785657346, 0.4525904059, -0.2886057794, -0.5620504022, -0.0823861659, 0.3372797072, -0.0490658097, -0.101543583, 0.1906843483, 0.0866822973, 0.0308229569, 0.0832381845, 0.1127491742, 0.14945741, -0.1512934417, -0.2141270638, -0.3975326717 ]
https://github.com/huggingface/datasets/issues/3804
Text builder with custom separator line boundaries
Thanks for requesting this enhancement. We have recently found a somehow related issue with another dataset: - #3704 Let me make a PR proposal.
**Is your feature request related to a problem? Please describe.** The current [Text](https://github.com/huggingface/datasets/blob/207be676bffe9d164740a41a883af6125edef135/src/datasets/packaged_modules/text/text.py#L23) builder implementation splits texts with `splitlines()` which splits the text on several line boundaries. Not all of them are always wanted. **Describe the solution you'd like** ```python if self.config.sample_by == "line": batch_idx = 0 while True: batch = f.read(self.config.chunksize) if not batch: break batch += f.readline() # finish current line if self.config.custom_newline is None: batch = batch.splitlines(keepends=self.config.keep_linebreaks) else: batch = batch.split(self.config.custom_newline)[:-1] pa_table = pa.Table.from_arrays([pa.array(batch)], schema=schema) # Uncomment for debugging (will print the Arrow table size and elements) # logger.warning(f"pa_table: {pa_table} num rows: {pa_table.num_rows}") # logger.warning('\n'.join(str(pa_table.slice(i, 1).to_pydict()) for i in range(pa_table.num_rows))) yield (file_idx, batch_idx), pa_table batch_idx += 1 ``` **A clear and concise description of what you want to happen.** Creating the dataset rows with a subset of the `splitlines()` line boundaries.
24
Text builder with custom separator line boundaries **Is your feature request related to a problem? Please describe.** The current [Text](https://github.com/huggingface/datasets/blob/207be676bffe9d164740a41a883af6125edef135/src/datasets/packaged_modules/text/text.py#L23) builder implementation splits texts with `splitlines()` which splits the text on several line boundaries. Not all of them are always wanted. **Describe the solution you'd like** ```python if self.config.sample_by == "line": batch_idx = 0 while True: batch = f.read(self.config.chunksize) if not batch: break batch += f.readline() # finish current line if self.config.custom_newline is None: batch = batch.splitlines(keepends=self.config.keep_linebreaks) else: batch = batch.split(self.config.custom_newline)[:-1] pa_table = pa.Table.from_arrays([pa.array(batch)], schema=schema) # Uncomment for debugging (will print the Arrow table size and elements) # logger.warning(f"pa_table: {pa_table} num rows: {pa_table.num_rows}") # logger.warning('\n'.join(str(pa_table.slice(i, 1).to_pydict()) for i in range(pa_table.num_rows))) yield (file_idx, batch_idx), pa_table batch_idx += 1 ``` **A clear and concise description of what you want to happen.** Creating the dataset rows with a subset of the `splitlines()` line boundaries. Thanks for requesting this enhancement. We have recently found a somehow related issue with another dataset: - #3704 Let me make a PR proposal.
[ -0.4503132403, 0.0747961923, -0.1288341433, 0.2104608119, -0.1013789847, -0.18994008, 0.6217502952, 0.2234782875, 0.0198681597, 0.1670010388, 0.0657704398, 0.1434783041, -0.0569494888, 0.3055794239, 0.0026092897, -0.2434875071, -0.2827084661, 0.2772156298, 0.1772622764, 0.2359315306, -0.2001572996, 0.1065786034, -0.1743894368, -0.1252598763, -0.4215908945, -0.0156587195, -0.1075533405, -0.0707255676, -0.0852706283, -0.2567597032, 0.1928038299, 0.3010950089, -0.2299876809, 0.4306170642, -0.000096046, -0.172126472, -0.2392145246, -0.0833008289, -0.260817647, -0.2584209144, -0.1408490986, -0.4668600559, -0.0657950267, -0.1172914207, -0.2218180895, 0.0509112179, -0.4160744548, 0.0028376894, 0.276748389, 0.3362384439, 0.3173390627, 0.1585381031, -0.1395400167, -0.0423304811, 0.426961869, 0.2250968218, -0.2683513165, -0.1177479178, 0.0758820698, 0.0283109061, -0.2942315042, 0.3081378341, -0.1828731596, 0.0808142945, 0.1060442254, 0.2269659787, -0.0707490966, -0.0007669935, 0.1320341974, 0.4570731819, 0.2524109483, -0.2099050283, -0.1868516803, -0.5941706896, -0.054402899, -0.3425973356, 0.0383554436, 0.279613167, -0.2877874672, 0.0532042831, -0.1744434386, -0.0608927496, -0.3819035888, -0.1624465436, -0.3151248693, 0.0961749107, -0.2584429681, -0.1666647345, 0.0774435923, 0.0204649344, 0.1514895856, -0.2565637529, 0.0978811458, -0.006804619, -0.0984375849, -0.0726694763, -0.1624202132, -0.229220584, 0.1241190657, 0.1794797629, 0.1801632345, 0.08047086, 0.1959437728, -0.0669993982, 0.0582647435, 0.0583138354, 0.2712082267, 0.1010801271, 0.1700242907, 0.3145927787, -0.0751633942, 0.0013066973, -0.1068171337, -0.2777061462, 0.1137466878, 0.0123040294, 0.1806454062, 0.0163176339, -0.2668164074, 0.1544481814, 0.0951209068, -0.1067077518, 0.0012157833, 0.0291100871, 0.1699145138, -0.0984050855, -0.1137347966, -0.0848718956, -0.0873564109, -0.3259404004, -0.1712639332, -0.2313368022, -0.205332458, 0.1074972004, 0.2783016264, -0.1235442758, -0.0523581505, 0.2151484787, 0.032345295, -0.1675094366, -0.1942750812, -0.2107168436, 0.1764557809, 0.0250367094, -0.0246796664, -0.1045438796, -0.0649843737, -0.081635572, -0.0780769363, 0.1871970445, 0.0205196552, -0.1049849391, -0.2959198654, 0.336458385, -0.0194369014, 0.0581444837, -0.0713789836, 0.2770936489, 0.4173924327, 0.0800592452, 0.2124153376, -0.0447964296, -0.331936717, -0.1318041384, 0.1225217208, 0.3104377389, -0.5823673606, -0.160438925, -0.0285236035, -0.0851993561, 0.1969324201, 0.2706177235, 0.0590295903, 0.2355436981, -0.0548668876, 0.4100705087, 0.2378141284, 0.2568543851, -0.356135726, 0.3386345208, -0.0021631364, 0.1555817127, 0.1728300005, -0.3054492772, 0.6606843472, 0.1149239019, 0.2502601743, 0.2612507343, 0.1006111801, 0.1078605279, -0.0808525532, -0.1648232341, -0.0192284491, 0.1754953861, 0.0389285758, -0.2970476747, -0.0394589081, -0.3648351431, 0.2033344209, -0.1742988974, 0.2555994391, 0.0378713235, 0.2332731187, 0.3847270906, 0.0157626066, -0.6501405835, -0.3218582869, 0.0160227288, 0.05090563, 0.1482608318, -0.134640038, -0.2081368566, -0.1547176391, 0.0150545165, -0.2668055892, -0.1678614616, 0.2617923617, 0.0704240501, 0.0568117611, -0.2058558017, -0.2500185966, 0.0871575549, -0.094444409, 0.2797542512, 0.0738233924, 0.2781917155, 0.1051913649, -0.1759430915, -0.0275490265, 0.6358811855, 0.0061069042, 0.0893453136, 0.025199078, 0.2427850813, 0.0425509103, -0.1191493645, -0.3129196167, -0.1512593031, 0.1671089679, 0.0483940952, 0.1235191599, -0.1008598208, -0.0999944955, 0.0112664523, -0.2103915513, 0.4641406536, -0.1178227887, 0.3721242249, 0.0056628794, -0.0773556232, 0.0983833671, -0.3224307895, 0.2388186455, -0.4719053209, 0.2728686333, 0.0464555472, 0.3311288953, 0.1743887514, -0.080115892, 0.3212556541, 0.3898847997, -0.0095732566, 0.1456760019, 0.1718282104, -0.1322623491, 0.0392074995, -0.1051186174, 0.3313698471, 0.0755301714, 0.3149424493, 0.0839978755, 0.1368946582, -0.0685121119, -0.261349082, 0.3387508988, 0.0771786422, -0.2015601248, 0.522378087, 0.2033179402, -0.0344459377, -0.3635412157, 0.0059235296, -0.1225246042, -0.0140964929, -0.2295741588, -0.0890752971, -0.2525791228, -0.2830497622, -0.3814735115, -0.2431194186, -0.1124622375, -0.0127149643, 0.2188561857, -0.047505144, -0.122694917, 0.0922061577, 0.2214668393, 0.4175423682, -0.0993994251, -0.0161719192, 0.0713785142, -0.2438630164, -0.0138108488, 0.2630322278, 0.0822925344, 0.2670972645, 0.3506161571, -0.0479390509, 0.127701968, -0.1708740443, -0.1123295575, 0.1972996593, -0.0963987485, 0.0081845187, 0.4884719253, -0.1206292287, 0.345754683, -0.2653591037, 0.041911006, -0.0667348951, -0.3116087914, -0.1618131995, -0.0521855429, -0.0620337278, -0.2484730035, -0.2569602132, -0.1212989092, -0.4216474891, 0.4431916773, 0.0485585369, 0.2694495022, -0.107379429, -0.0900107846, 0.1225551292, -0.0568394549, -0.0344273634, -0.1762221605, -0.1278197169, 0.104727082, -0.3778499067, -0.1156513765, 0.0512748249, -0.0888800696, 0.1113872454, 0.0704648569, -0.2511371076, 0.3246636689, -0.2252772897, 0.4000567496, 0.0825535879, 0.1319587082, 0.208978802, 0.113001205, -0.1063687652, -0.1593795568, -0.0974482819, 0.2232800871, -0.1906406134, -0.1244892776, -0.1843601614, 0.4161755741, 0.0551030971, 0.3614324033, 0.1238085404, 0.0818405896, 0.0759559199, -0.2364010513, 0.134882018, -0.1898606569, -0.2970341146, -0.0018110342, 0.0211492814, 0.0355958119, 0.3330543339, 0.1127681509, 0.1214847937, 0.1187777966, -0.4624397457, 0.0678973198, -0.4560063183, 0.1464841366, 0.049908299, 0.4184628427, -0.1235615462, -0.142694667, -0.1416102648, -0.1442563683, -0.212553978, -0.068506822, 0.1771839559, -0.3342881799, -0.2624251544, 0.2950213552, -0.1496875435, 0.1548194885, 0.4286059737, -0.2257753164, -0.0111198649, 0.0139325233, -0.0223697368, 0.1831593215, 0.5062941909, -0.1335956603, -0.2480519563, -0.0281226523, -0.0092504127, -0.2826530635, -0.0544552468, -0.0232030116, 0.2443448156, 0.2379994094, 0.1484325528, -0.4253044724, -0.1306393147, 0.5525535941, 0.256036967, -0.0925195143, -0.2095355392, 0.0175489467, 0.1347694695, -0.1926598698, 0.2999759912, 0.1024707407, 0.3146749139, 0.0810874775, -0.1568335891, 0.213518396, -0.2179429829, -0.0128975231, -0.0376102105, 0.1474849135, -0.3261499107, 0.186766997, 0.0447476804, 0.0667387992, 0.3689202964, 0.4202347696, -0.3620735109, -0.4876176119, -0.0230256878, -0.4199164212, 0.5337613821, 0.3127367198, 0.007287099, 0.3218523264, -0.1502414942, 0.273162514, 0.0386865251, -0.1961724311, 0.0734737515, 0.0767056271, -0.0152194146, -0.4760546684, 0.1801590919, -0.1977414042, 0.1368038356, 0.159865737, 0.0931167677, -0.4808255136, 0.2744944096, -0.0174385216, 0.6881250143, 0.3481351137, 0.1478028148, -0.0465402827, -0.1980868131, 0.2203065604, -0.0139131518, 0.0595624782, -0.3838295937, 0.0569246709, -0.0614777766, 0.0498155653, 0.2398880273, 0.2334613949, -0.1176539585, 0.0590616278, -0.1200270131, 0.2448003888, 0.0207498688, -0.0507507883, -0.2562716603, -0.429549545, -0.1847887784, 0.1167850792, -0.0052330433, -0.3239198327, 0.0197203755, 0.1243746281, 0.1376020908, 0.0075151855, -0.4421745539, -0.0768077001, -0.3923560083, -0.1386564374, 0.3712051511, -0.2901166975, 0.2646175921, -0.1287144423, 0.206505686, 0.2367495149, -0.0155169377, 0.1104721129, 0.0416104943, 0.2723004818, 0.0504785143, -0.0261532646, 0.244228363, -0.1588462442, -0.2943627834, -0.2590224445, 0.1993580908, -0.3320812881, -0.1425126195, 0.0356565863, 0.0288408715, -0.6118538976, 0.0790628865, -0.2061780244, 0.3662700653, -0.3893717229, 0.2618275583, -0.0700493082, -0.0812318996, -0.021747753, -0.2355812043, -0.0372076184, -0.1407848895, 0.1239430085, 0.0681756884, 0.0728642419, 0.355368048, 0.3012816608, -0.240383178, -0.494081676, 0.1088117063, 0.2703810334, -0.3563146889, 0.2133996934, -0.0870177522, -0.1429909468, 0.1877905428, 0.4542470574, 0.04224509, 0.20882608, -0.1647894979, -0.1445046514, 0.0575575344, -0.2445679605, 0.199760735, 0.1379827857, 0.0924815834, 0.4372940361, -0.0414660498, 0.0766604915, -0.4577438235, 0.2534348369, 0.0426964089, -0.024500398, -0.0824278593, -0.2030530423, 0.0377072096, -0.002104291, 0.2156723142, 0.2601075768, 0.0595598668, -0.3957599103, -0.4330906868, 0.0333725959, -0.0787598193, -0.0186697803, -0.1177574843, 0.2655400932, -0.2822770774, -0.1066379175, 0.4086618721, -0.0143861203, -0.0256877076, 0.0382881202, -0.043713659, -0.0316179916, -0.2262798548, 0.0134496158, -0.1605197191, 0.1661281884, 0.2332518101, 0.170129925, -0.3538943231, 0.097578153, 0.147801578, 0.1281659752, 0.1883384436, 0.0574814752, 0.3115116358, -0.188404873, -0.2590675354, 0.152389884, 0.4903310239, 0.2195779085, -0.0809311643, -0.0559189096, 0.0408753902, 0.4448831379, -0.2796022594, -0.1634574533, 0.3720166683, -0.2408449799, 0.3177186847, 0.3252246678, 0.2170183659, -0.0735756457, 0.0042950446, 0.0360574275, 0.2392603904, -0.0451957285, 0.0915317312, 0.6110445261, 0.030825058, 0.1055315584, 0.4440589547, 0.0518463813, 0.325776428, 0.3773940504, 0.0123218605, 0.3177515864, 0.0458706096, 0.0451643728, 0.2516267896, -0.2217487544, 0.0662622452, -0.1398919374, 0.0224571433, 0.0356355496, -0.2896040082, 0.2760149837, -0.2250608653, 0.0917517543, -0.1227885112, 0.2859103382, -0.1475036293, -0.1019843519, -0.2938479483, -0.1641229391, -0.0198073499, -0.1076811627, 0.0177032389, 0.0055742697, -0.0963875875, -0.114522472, 0.1651131511, -0.0583286025, 0.1230867207, -0.3436641991, 0.2646510601, -0.1731927991, 0.1177446395, 0.1474287659, 0.0061297915, 0.0326285362, 0.2070074081, 0.1793108732, 0.1076469943, -0.0057595237, -0.2560366094, -0.3723907471, -0.0074557709, -0.2094005495, 0.1783769727, -0.013085206, 0.3964239061, 0.2681625485, 0.1843150556, -0.2724789083, 0.1616821289, 0.3003122509, -0.0444619693, -0.3788261712, 0.1271332651, 0.1879876405, -0.3403922021, -0.138709709, -0.0493159108, -0.0825913846, -0.2176508456, 0.5075954199, -0.1703746766, 0.0982666239, -0.0283127911, 0.1521329433, 0.1119572744, 0.3924167454, 0.0497795455, 0.0357458517, 0.0427401699, -0.2299169153, -0.2497006804, -0.0032912828, -0.0900687054, -0.0914230347, 0.2580419481, 0.0951154977, -0.1285468936, 0.0682348162, 0.0114484848, 0.0533329882, 0.0114557287, -0.1489811242, -0.4454911649, 0.1695078313, 0.2328027189, -0.1450553983, 0.0885084644, -0.120913282, 0.0701054409, 0.0701369271, 0.1114039049, 0.0163492132, 0.2935566604, 0.3800865114, -0.157065779, -0.1368972659, 0.0263034292, 0.1198458001, 0.0012262965, 0.0756458491, -0.2357741296, 0.0530783013, -0.4024483562, 0.4099163413, 0.3047164381, 0.2899969518, 0.0388202183, -0.1804512292, -0.1475120038, 0.2325152457, 0.1753026992, 0.1815445572, -0.0347835273, 0.0716677457, 0.0552159101, -0.0612781756, 0.15290232, 0.1687535942, -0.2326469421, 0.0756928772, 0.0106889624, -0.341850698, 0.0205867104, -0.1657137126, -0.503923893, -0.0784967765, 0.3318512142, 0.4348869622, -0.3049586415, -0.6315885782, -0.1600347906, 0.3752625585, -0.0662724972, -0.1404121667, 0.1883900017, 0.1039393321, 0.0225720778, 0.1289729774, 0.1277356297, 0.1591405272, -0.2173313498, -0.1260531694, -0.3379951119 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
Same issue with `dataset = load_dataset("dbpedia_14")` ``` NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=0Bz8a_Dbh9QhbQ2Vic1kxMmZZQ1k']
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
16
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No Same issue with `dataset = load_dataset("dbpedia_14")` ``` NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=0Bz8a_Dbh9QhbQ2Vic1kxMmZZQ1k']
[ -0.3649029136, 0.2177056968, -0.1216040552, 0.3296720088, 0.1562197655, -0.0154084451, 0.2091432065, 0.3848863244, 0.0918231234, 0.0392360054, -0.0339915752, 0.0775723755, 0.0966653079, 0.1967636943, -0.0677056685, 0.1878269464, 0.2903296053, 0.012819198, -0.2121758312, -0.1110439971, -0.2556397617, 0.0795855075, 0.0540445447, -0.2795995772, -0.2061446607, 0.1816610843, 0.0376115441, -0.278157413, -0.2194003761, -0.2239099294, 0.4459533691, 0.2312394232, 0.0221346747, 0.332960397, -0.0001146543, 0.1809763014, 0.274906069, -0.0818753541, -0.1815723628, 0.0576613657, -0.4351556897, -0.2422602624, -0.1929509342, -0.1235466599, -0.1279496104, 0.0748814791, -0.0712577328, -0.1821264178, 0.0285773613, 0.2947609723, 0.2457016855, 0.2427362502, 0.1084382012, -0.0278314278, 0.1827466339, -0.0666249618, 0.0569026843, 0.0922837332, 0.0409263037, 0.0948610827, -0.2160366178, 0.2534383535, -0.0407755822, -0.1019151136, 0.1129592508, -0.3297679126, -0.0108676646, -0.2410482317, 0.2879573703, 0.4076490998, 0.6579326391, 0.0070108809, -0.3093770742, 0.0387544632, -0.1418040395, 0.0298884455, 0.3959034979, 0.1147582233, 0.0535105467, 0.0862993672, -0.3739292622, 0.0844850764, 0.0329435579, 0.1442817301, -0.1206050366, 0.3449737728, 0.0611073114, -0.085979268, 0.0656648949, -0.0771890432, 0.5353930593, -0.2648798227, -0.394887954, 0.1479445994, -0.3148164451, -0.0398622826, -0.0611161515, 0.567124784, 0.2706226707, 0.1746226251, -0.1588138491, 0.299479872, -0.2750311792, 0.095477201, 0.0121346889, 0.012972407, 0.037349876, 0.3075271249, 0.2601932883, 0.146444425, -0.0413884223, 0.1546759605, 0.110994339, -0.3335037529, 0.2497601062, -0.0206517652, -0.0673594177, -0.2686177194, -0.2288762033, 0.3417771161, -0.0001859356, -0.3383463919, 0.1826904714, 0.3188610077, -0.2053702176, 0.2338350117, -0.2201311439, 0.1664159447, -0.113145262, -0.1544610858, -0.2869799137, 0.0147219952, -0.0550083444, -0.1112671718, 0.2444157749, -0.150823608, 0.3748758137, -0.0179978665, 0.0475723743, -0.2206419408, -0.0010539007, -0.1582076252, -0.0572836511, 0.2545311749, -0.053144414, 0.1298470348, 0.0727795139, -0.1604270339, 0.0026078485, 0.1967169493, -0.2892291844, -0.1030645445, -0.2647081614, 0.2805674076, -0.461533457, -0.1673067957, -0.2637936771, -0.1185106784, 0.233191058, -0.358441174, 0.012085882, -0.1307671964, -0.2124182135, -0.1538971066, 0.168814823, 0.2531227767, -0.445317179, 0.0830681473, -0.1450185925, -0.216160804, 0.1936566681, 0.0866254196, -0.1379621476, 0.3038460612, -0.3273009658, -0.022040844, 0.3407530785, -0.4240176678, -0.6227238774, -0.0717077926, 0.247841239, 0.2293114811, 0.2188718319, 0.0245557558, 0.1278185546, 0.0889290571, -0.1366317421, 0.0003222446, 0.2668473125, 0.0986519828, -0.2074388415, -0.0505463444, 0.2802022994, 0.2321519107, 0.198994413, -0.1253506094, 0.3417196572, -0.0179805979, 0.3225954771, -0.2155807465, -0.024820352, 0.1675180048, 0.3492805958, -0.0511826724, 0.0367113985, -0.1486383528, -0.2442848533, 0.2688597441, -0.1106798798, 0.0441483706, -0.048520375, -0.0611572377, -0.2876095176, -0.2925643623, -0.5006020069, -0.0853028521, 0.1696050763, 0.3580904007, -0.0344223939, 0.0460707135, 0.0287743956, 0.1205475777, -0.4129574299, -0.0433142185, -0.0909728184, 0.3206452131, -0.1181430593, 0.0078690294, 0.1174005866, 0.152528584, 0.0791542456, -0.0500095859, -0.1982108951, 0.3576850593, 0.5002592802, 0.1929208934, 0.1882381588, 0.1937171072, 0.0526379347, -0.4197151065, -0.0231959503, 0.1176179945, 0.0387950763, -0.2102444023, -0.197171405, 0.3995686769, -0.0320381261, -0.0831792653, -0.1058800295, -0.0247242358, 0.4654823542, 0.0004976665, -0.0916765109, -0.2901567817, 0.1740637869, 0.1931733787, 0.0682369098, 0.2972054482, -0.0790607259, -0.1444650739, 0.4361293912, -0.0851718336, -0.0075313053, 0.0083236694, 0.1757788211, -0.0206252448, 0.1431411654, 0.4108363092, 0.2403099388, 0.0946323946, 0.1471965611, 0.0790065452, -0.1075948253, -0.1215288192, 0.0327910036, -0.1278115809, 0.2749177217, 0.4040733576, -0.0770676583, -0.1183869019, -0.5369077325, 0.116151236, 0.0795433074, 0.2669072747, -0.3878563643, -0.2201349139, -0.2954813838, -0.1838362515, -0.3417538702, -0.0592276193, -0.3989606798, -0.4087985158, -0.0720125735, 0.0878602862, 0.1517201662, 0.2855071425, -0.3101961613, -0.0444947444, -0.1141895503, -0.0902250037, 0.0242438316, -0.0026126096, -0.1002305672, 0.1211646572, 0.5357840061, 0.1033028886, 0.2642095089, -0.378066659, 0.1168262288, -0.3832776546, -0.3633140326, -0.0476150848, -0.1077934653, 0.283970207, 0.0693666786, 0.2792648971, -0.2618947923, -0.2803564966, 0.0149788549, 0.2981515527, -0.3457278311, 0.1085590497, -0.1944727451, -0.1510725766, 0.2430068105, -0.1896778047, -0.1954578459, -0.1979665458, -0.1396525055, 0.2346079201, 0.1411794275, -0.1097816899, -0.0566731915, 0.1576396525, 0.0274013169, 0.1884323955, -0.3134537041, -0.5128034353, 0.5660227537, -0.086194858, -0.2589721382, 0.1475931108, 0.002612388, 0.395901978, -0.0370114334, -0.5061164498, -0.0590619408, -0.2451227307, 0.2143707126, 0.3440832496, 0.0358337425, 0.2615751922, 0.1069056317, 0.0754875615, -0.2287041396, -0.2131374627, 0.009654494, -0.1612933874, 0.529094398, -0.2973438203, 0.2049853057, -0.1540609598, 0.6229285598, 0.4757350087, 0.1157682836, 0.3147070408, 0.1023173779, 0.4130565822, -0.2773050964, -0.2252025604, -0.0127218543, -0.1273842454, 0.0157152843, 0.1537098289, -0.2323221117, -0.1322768927, -0.1949608028, -0.1973794848, -0.419277221, -0.096710518, -0.0790664032, -0.4615331888, 0.186557427, -0.0036944055, 0.1181789637, -0.0176586322, -0.4798564911, 0.1129834354, 0.3211399317, -0.1637868583, -0.1205844358, -0.5975080729, -0.0548824221, 0.0426282249, 0.2411579341, 0.0728301033, 0.4328292012, 0.0623316094, 0.0557998195, -0.0110658798, -0.0688656196, 0.4116073847, -0.601768434, 0.1552908719, -0.2124674618, 0.1444237083, 0.0048390725, -0.2223331928, 0.0477265157, -0.1693935096, 0.1379283369, 0.2981897593, -0.1115620807, 0.1064493433, 0.2793003917, 0.2308186442, -0.2594901919, -0.2674630284, -0.3349483907, -0.1206806749, -0.1242031455, -0.0299654026, -0.0168911051, 0.1953858435, -0.1072866097, -0.2022250444, 0.0251993276, -0.0995355919, 0.3559601605, 0.0484608747, 0.2284876555, 0.2697349191, 0.2210431397, 0.0291663408, 0.1537774354, 0.3548716903, 0.6989079714, -0.3369460404, -0.4483469129, -0.0375567935, -0.434112519, 0.1932956427, 0.1124787182, 0.1424315721, 0.037213847, 0.5796594024, -0.3264187574, 0.0513934381, -0.0938903764, 0.1932143718, 0.141294837, -0.5615639687, -0.4119921327, -0.0040106801, 0.0423768796, -0.0967134312, 0.2378809601, 0.0793251917, -0.2388200164, 0.1904711127, 0.253046602, 0.8737897277, 0.07049153, -0.0794532821, -0.0642718673, -0.189317435, 0.0464267991, -0.196805954, -0.0868665427, -0.3743272722, -0.3899000883, -0.1873633564, -0.1423009783, 0.1856767237, -0.0137159005, -0.1317883283, 0.2313341349, -0.1079943255, 0.2639499307, -0.0247252341, 0.2619436979, -0.0049059242, 0.1357351094, 0.1220561564, 0.1336811632, -0.0385268927, 0.0735174716, -0.1324234605, -0.0378003344, -0.100422062, -0.1828638017, -0.4104845524, 0.1444918066, -0.0338463895, 0.2034220994, 0.2149365842, 0.0119974669, -0.0431426875, 0.6133922935, 0.3136987388, 0.1889474243, -0.1416826546, 0.3560324311, 0.4579289854, 0.2132622749, 0.0384243317, -0.1096917838, 0.3922374547, -0.1240164787, -0.3456228673, 0.1918273717, -0.199469611, -0.3762372136, -0.1112313271, -0.2151062787, -0.1597342789, -0.3586968184, -0.1631505638, -0.0849573836, -0.0323124826, -0.2210327238, 0.1909137517, 0.0701784492, -0.1613291055, 0.2884736061, 0.1388653368, -0.3214938343, -0.2068157792, 0.5858421922, 0.1525138766, -0.1172070503, 0.6038297415, -0.1253499985, -0.3797366321, -0.1852383316, 0.137652725, 0.1880918592, -0.3002533317, -0.3847317398, -0.1628990173, 0.1002727076, 0.0576536059, 0.3911542892, 0.4089023471, 0.1778011322, 0.101023674, -0.5213763714, -0.1237895489, -0.1029873714, 0.0603595637, 0.3386267126, -0.2349548787, -0.2120550573, 0.0970206857, 0.0762031376, -0.3076387644, -0.128563717, -0.2400466055, 0.0303168986, -0.1861426383, 0.2193729877, -0.0147318002, -0.1834845841, 0.1939671189, -0.1173013896, -0.1520412862, -0.206251502, -0.0663023368, 0.0966512859, 0.2512031198, -0.1610306501, 0.018106835, -0.2089951783, -0.0551461391, 0.0295853503, -0.0563343279, 0.039320305, -0.0480168164, 0.2185878158, 0.2485577315, -0.062120337, -0.0092336023, -0.2318532318, -0.2856706381, -0.0251906905, 0.0525289774, 0.0452999026, 0.1173315421, -0.1047892869, 0.2339225709, 0.1572004706, -0.0531303175, 0.1304548234, 0.1557040364, -0.2466570139, 0.0871172473, 0.5006186366, 0.2681243718, 0.4583010674, -0.3800362647, -0.098228164, 0.4022524357, 0.2104887962, -0.4091912508, -0.1232199445, 0.3993289471, 0.0976279378, -0.030712178, 0.0273829829, 0.3627255261, -0.3508783877, 0.4281263351, 0.0677919313, -0.0630650222, -0.4628230333, 0.5634920597, 0.5726665854, -0.1844168901, 0.0495304652, 0.3009141684, -0.1783201247, -0.2806833088, 0.4028719366, 0.008277216, 0.2742637992, -0.2474207282, 0.1843288243, -0.1022585556, -0.4537478387, 0.5784425139, 0.026481837, -0.2526767254, -0.0386072658, 0.2283294499, 0.2229349464, 0.0611177497, 0.1598569155, -0.6353683472, 0.0112713808, -0.2033488005, -0.0284748152, -0.2074572891, -0.3816239238, 0.0035402772, 0.2563326955, 0.0179018565, 0.1886622906, -0.145497784, 0.1517069489, -0.4186585248, -0.1251870096, 0.0955602005, -0.3259389102, 0.0853381753, -0.1395632625, 0.3551484644, 0.0204336736, -0.0491841622, 0.0989870429, 0.3512275815, 0.1085669026, 0.3977328241, 0.2541282773, -0.0621863976, 0.1659404933, 0.0278190058, 0.0322646499, 0.6587764621, 0.192212984, -0.0281940307, 0.4193046391, 0.1796215773, -0.1312924027, 0.146686703, -0.0384485349, -0.0758423582, -0.0689370483, 0.1745801568, 0.0379210971, 0.1747411191, -0.1830192953, 0.0771823004, -0.2778857648, -0.0279773977, 0.3013489842, 0.112675786, 0.1509108096, -0.1267264485, 0.0853645951, 0.1163402051, 0.4511093199, 0.2780207992, -0.1355489939, -0.1540831029, -0.3502717912, -0.7570393085, 0.165569514, -0.1336416751, 0.3356768787, -0.0936096162, 0.0545653552, -0.0167193022, -0.0422497615, 0.3696323037, -0.289147526, -0.1946714818, 0.1501283497, -0.1550624818, -0.0406612754, -0.1094270572, 0.0260424837, -0.2313121706, -0.2506295741, 0.3951558471, 0.166423589, 0.1196223795, -0.0055046664, -0.1055971384, -0.0574735589, 0.1220589131, 0.1461790204, 0.0277171321, 0.7979419231, -0.0652458668, 0.1384169757, -0.1356119663, -0.1705920547, -0.1283736527, 0.5534185171, 0.0031707587, 0.3673008978, 0.1479008794, -0.0724257529, -0.129036516, 0.2636117637, 0.080602631, -0.0927166566, -0.2872908115, -0.2151007801, 0.0411375575, -0.214576751, 0.2096662074, -0.0405197628, 0.0027451455, 0.2029380202, -0.0655341819, -0.1440401375, 0.1860827804, -0.0619772077, 0.0215566307, -0.2046146393, 0.0259839259, -0.0786105394, -0.0740882456, -0.6824564934, 0.0425985567, 0.5329431891, -0.1022921801, 0.1065834165, 0.2531552911, -0.0182863437, 0.3677713573, -0.0414837748, -0.0025776287, 0.0199531093, -0.2046767473, -0.0753544569, -0.1308555007 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
I think this is a side-effect of #3787. The checksums won't match because the URLs have changed. @rafikg @Y0mingZhang, while this is fixed, maybe you can load the datasets as such: `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]", ignore_verifications=True)` `dataset = load_dataset("dbpedia_14", ignore_verifications=True)` This will, most probably, skip the verifications and integrity checks listed [here](https://huggingface.co/docs/datasets/loading_datasets.html#integrity-verifications)
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
53
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No I think this is a side-effect of #3787. The checksums won't match because the URLs have changed. @rafikg @Y0mingZhang, while this is fixed, maybe you can load the datasets as such: `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]", ignore_verifications=True)` `dataset = load_dataset("dbpedia_14", ignore_verifications=True)` This will, most probably, skip the verifications and integrity checks listed [here](https://huggingface.co/docs/datasets/loading_datasets.html#integrity-verifications)
[ -0.2045929879, 0.0499821641, -0.0409405828, 0.3436928689, 0.3134645522, -0.0442949049, 0.131984666, 0.3513386846, 0.19094491, 0.1721866876, -0.0847845525, 0.0363085344, 0.2098386139, 0.3477252424, 0.0919780657, -0.1228861585, 0.144551903, -0.1180747747, -0.1569825262, -0.0561239757, -0.2454425842, 0.2008163929, 0.0101411147, -0.1498648822, -0.1615553498, 0.1497004628, -0.0422698185, 0.0061741271, -0.2791851163, -0.3509842455, 0.2837843597, 0.2591961622, 0.0221885368, 0.5167743564, -0.0001059076, 0.1817238629, 0.2788508236, -0.0544549786, -0.2185789198, 0.0053353682, -0.1336800009, -0.2181916237, -0.0988244638, -0.143514201, -0.1919463426, -0.0384767726, -0.0646074712, 0.0666945353, 0.2925494909, 0.3108712137, 0.2933388352, 0.4503678083, 0.1255121082, -0.0889572427, 0.04391855, -0.173440963, -0.0084536709, 0.2341272533, -0.1377686262, 0.0882319435, -0.1138202772, 0.3634387851, -0.0031581381, -0.1495631039, 0.0591810159, -0.128462553, -0.0705373287, -0.2126497328, 0.2750130296, 0.3576301932, 0.3475845158, 0.0603177398, -0.3010665476, -0.1159007326, -0.1458379775, -0.1816123426, 0.4123071134, 0.066048108, 0.0504798554, 0.1404724121, -0.2799023092, 0.010035675, 0.0810059682, 0.0945099965, -0.1979287714, 0.1856488585, -0.0088506304, -0.0758888349, 0.2972289324, -0.0708641633, 0.0819234252, -0.0453966931, -0.2888205647, 0.055568859, -0.0609607138, -0.0368577689, 0.2151443064, 0.5738309622, 0.4007826447, 0.1417338699, -0.1439328343, 0.3508079946, -0.3113020658, 0.0235248916, -0.0490985252, 0.2295141816, -0.002649189, 0.1744660437, 0.4023958743, 0.4902510047, -0.0269676261, 0.0950662792, 0.1599119157, -0.3208343983, -0.0654279441, 0.0728860646, -0.0062203459, -0.2769301832, -0.1062522009, 0.2125693709, 0.0340954922, -0.1504906118, 0.0487224236, 0.4110958576, -0.1610015333, 0.0875271782, -0.0169913508, 0.2025011778, -0.2712936401, -0.1537724733, -0.2571967244, -0.0528934672, -0.1375509948, 0.2296415418, 0.2375566512, -0.1699536443, 0.4323852956, 0.0009105965, 0.129780665, -0.1600060165, -0.0894809738, -0.0671902895, 0.0484972224, 0.340952307, 0.0448330566, 0.032643225, 0.1413494498, -0.3650870621, -0.0537728332, -0.0361867808, -0.2702426314, -0.2387633324, -0.1221854538, 0.2776732743, -0.382691741, -0.1581916958, -0.3471931517, 0.0815514028, 0.074045226, -0.2356496006, 0.0212733187, -0.0552967191, -0.4379698634, -0.0690520257, 0.297308147, 0.4789754748, -0.1768089533, -0.1351738572, 0.1087999046, -0.2522639334, -0.1322875023, 0.226091072, -0.1989189386, 0.2180226743, -0.3373157382, 0.0570317358, 0.0185214728, -0.4569879472, -0.4088693261, -0.0932644457, 0.0531150736, 0.2925180495, 0.0464234389, -0.2249039114, 0.0804271698, 0.0488745049, -0.0867393687, 0.1501293629, 0.2505806386, 0.1453009993, -0.4023272097, -0.175337553, 0.1931770891, 0.148595199, 0.1321050078, -0.0694798604, 0.1069653407, -0.1847571135, 0.2373339385, -0.2791361511, -0.0247462671, 0.2078895867, 0.3626115024, 0.1107613146, 0.037618421, -0.0513957627, -0.3563475907, 0.2752532661, -0.0532932542, 0.4054985344, -0.1176225096, -0.2050203532, -0.2304688394, -0.1972173154, -0.4626145959, -0.3365755379, 0.2169032246, 0.1790505648, 0.0814637244, 0.2475305647, 0.0312343407, 0.1189847589, -0.3311952353, 0.1841158271, -0.2519908845, 0.3930297196, -0.236309424, 0.1076006815, 0.0512533002, 0.112963967, 0.1015026122, -0.1342887282, -0.0710749775, 0.4831624031, 0.2615130246, 0.1237618551, 0.2876464427, 0.3033982217, 0.2425055653, -0.3200924098, -0.1311347038, 0.0922806859, 0.006726915, 0.0474456809, -0.3048245609, 0.5961133838, -0.0612142198, 0.0148727689, 0.174021259, -0.0298649427, 0.548933506, -0.0555430204, -0.2239996046, -0.3151456118, 0.1672936976, 0.0672293231, -0.1168357059, 0.1503603607, -0.2175284922, 0.0019414229, 0.4143001735, -0.1108245999, -0.0675587729, 0.0943150073, 0.1372824758, -0.0689139739, 0.087040484, 0.3184408545, 0.1427509934, 0.1674800515, 0.0931454003, 0.2329991758, -0.129483059, -0.1769054979, 0.1441846192, -0.1496905535, 0.1218139902, 0.3058900833, -0.0017518842, -0.0859405771, -0.6696029305, 0.1511680037, 0.0378381722, 0.1872386038, -0.3923250437, -0.0262116361, -0.2305267006, -0.1947760135, -0.3927035034, -0.0757095367, -0.5519010425, -0.3827620745, 0.0902184471, 0.1249617413, -0.1205908507, 0.3284857571, -0.1108797118, 0.1560671628, -0.0401974842, -0.0615166612, -0.0440312847, -0.1102373376, -0.1202025712, 0.07234063, 0.51806283, 0.134564206, 0.3707784116, -0.4430658221, -0.0474797562, -0.5338810086, -0.5941339731, 0.0855123028, -0.2172039896, 0.3467794061, 0.0718882307, 0.3222481608, -0.1653076708, -0.2213836014, 0.2801700234, -0.0119658634, -0.2537446916, 0.0600437671, -0.0828088149, -0.0795689672, -0.0310910605, -0.2878460884, -0.0753912851, -0.1612486094, 0.1451288462, 0.1559240371, 0.1318142861, 0.2021941543, 0.1026341543, 0.1391445249, -0.1262353659, 0.1383772492, -0.4692172408, -0.5948308706, 0.3494367301, -0.3374530971, -0.4291022122, 0.1259703785, 0.0387249179, 0.3264412582, -0.1050734073, -0.5396086574, -0.4145405889, -0.1647655815, 0.3804252744, 0.2890506983, 0.10395246, 0.3047820628, 0.0348578803, -0.1062473431, -0.1404031068, -0.274933666, 0.0772826448, -0.1626512557, 0.354912132, -0.3090598881, 0.2292612344, -0.0377389155, 0.6058037281, 0.2294939309, 0.1801400781, 0.3483633399, -0.0259356014, 0.4931238592, -0.3707179427, -0.1837933362, -0.0313727744, -0.245114848, 0.020724697, 0.2558887303, -0.0916038603, 0.1161728576, -0.249235943, -0.009100263, -0.3706530035, -0.3378813863, -0.0505223162, -0.0582241304, 0.2148543894, 0.1624264866, 0.0421520807, -0.1203820407, -0.3302100599, 0.2743933201, 0.4070270956, -0.0998583511, -0.0992381647, -0.5904611945, -0.0842451006, -0.1382849663, 0.2617669404, 0.1318719238, 0.2611729801, -0.0255951434, -0.0999005213, 0.0631948486, -0.1350285709, 0.470041573, -0.4406874776, 0.100269787, -0.199849993, -0.1280120462, 0.0392438658, -0.1475904435, 0.0054113255, -0.2205693424, 0.0832930654, 0.5316205621, -0.3768821955, -0.0247719586, 0.2080846727, 0.2551954687, -0.1853655428, 0.0450067818, -0.5225488544, -0.2743219137, -0.2673296034, 0.1175495982, 0.0730656981, 0.1927992105, -0.2836002707, 0.0391820595, 0.1282622665, 0.0128777875, 0.1672664583, 0.1811289936, 0.2546113133, 0.2672311366, 0.0896387398, 0.1617835611, 0.0223882422, 0.2730730176, 0.7549672723, -0.3580087125, -0.4337779582, -0.2094985992, -0.258693248, -0.0256759487, 0.3565618098, 0.1385073066, 0.0314647295, 0.5810601115, -0.0310195871, -0.124808535, -0.0186958592, 0.2388108969, 0.1684415638, -0.3403440416, -0.2173868865, 0.1492070407, 0.0670274422, -0.0265764147, 0.2155732363, 0.52417171, -0.2915430963, 0.2677404583, 0.1046958268, 0.9712944627, -0.0513007939, 0.0146253528, 0.2826682627, -0.0646690801, 0.1600548774, -0.1889657229, 0.0606074631, -0.2448054403, -0.3718186915, -0.0542147942, 0.0463832356, 0.1643317193, -0.2394155264, -0.1702646017, 0.2086688578, 0.0199820343, 0.2297159284, -0.0485005639, 0.2935306728, -0.1094704345, 0.0077147395, -0.2393314093, 0.2205357254, 0.0413198695, 0.1696004122, -0.1645897031, -0.0866768584, -0.0894494057, -0.2595409751, -0.2203413844, 0.0160593428, -0.0885630697, 0.0988676921, 0.2392030209, -0.0535305552, -0.1691367328, 0.3666543365, 0.4079746902, 0.0890827775, -0.3205659389, 0.2968277931, 0.037535578, 0.034138117, -0.0754279643, -0.1683667898, 0.4082521498, -0.1420074105, -0.304279089, 0.0151825864, -0.1526314616, -0.240871042, -0.0659041107, -0.227836132, -0.3441037834, -0.3126769662, 0.0135988081, -0.0372327268, -0.0114781428, -0.2891103625, 0.2187577337, -0.1664532274, -0.1535903811, -0.0967706814, 0.3619916439, -0.2586088181, -0.1300252229, 0.5224837065, -0.0988894254, -0.0998414233, 0.4407002032, 0.0995216817, -0.3088722527, -0.2174311131, -0.0409696922, 0.2803188562, -0.3879502118, -0.1502484083, -0.0273534879, 0.014200368, -0.1731105, 0.4820372462, 0.2716564536, 0.0634973422, 0.1338063776, -0.4397142231, -0.2041644007, 0.1890871525, 0.0335900523, 0.1909493655, -0.1830836236, 0.1493046433, 0.0777142197, 0.0292393118, -0.393381983, 0.147251755, -0.3070621192, 0.0611704178, 0.0339135267, 0.0418648124, 0.1403426528, -0.146752432, 0.160025537, -0.0480738655, -0.189076975, -0.2606948912, -0.1496258527, 0.0914693177, 0.1586449891, -0.154327184, 0.1617933363, 0.0283154026, -0.0061316988, -0.036675211, 0.1404276192, 0.0951738432, -0.1025270894, 0.1634080857, 0.0590257943, 0.2026594132, 0.1593206376, -0.1876849085, -0.1156386137, 0.0906582624, 0.0680677295, -0.1386191398, -0.1674189717, 0.0148778968, 0.1880928427, 0.2380457819, 0.0140067199, 0.1575198323, 0.1130169481, -0.170451358, 0.0427057408, 0.3590008616, 0.3773376048, 0.4569860399, -0.3858258426, 0.014024769, 0.3667421341, 0.2673902214, -0.3532000184, -0.0036528143, 0.3641582429, -0.2102551609, -0.0083031617, 0.0928478613, 0.2990559936, -0.1344833076, 0.2599923313, 0.1525993347, -0.0029827186, -0.4068235159, 0.3897910118, 0.271707207, -0.2447027713, 0.092060633, 0.2807003856, -0.1851310283, -0.1391932219, 0.1286328733, -0.1707265526, 0.2179331183, -0.3611043096, 0.2588365078, -0.0086616101, -0.3453399837, 0.354272306, -0.0044352654, -0.1045535207, -0.157126978, 0.0532512926, 0.5139864683, -0.152513504, -0.0577155612, -0.5526160002, 0.2185471803, -0.210539192, -0.1315910071, -0.1411316693, -0.2823321521, -0.0800393894, 0.2895846963, 0.0618372709, -0.0569924228, 0.0808670297, 0.1134362817, -0.4536083341, -0.2915498912, -0.1182681993, -0.2209449708, 0.1594152451, -0.0516238473, 0.3006875217, 0.1871030778, -0.1151444688, 0.0802697837, 0.3740274012, 0.1915431917, 0.1715781391, 0.0939136669, 0.0043002218, -0.0492693, 0.0868654698, -0.0082497643, 0.5600604415, 0.3256468773, 0.0374168716, 0.3739023507, 0.1822606176, -0.2347875535, 0.0099155838, -0.0761976913, 0.0433437526, -0.0838982686, 0.0838620961, -0.0318208784, 0.1615008116, -0.32253021, -0.0565626174, -0.2615377903, 0.1171248406, 0.0812689364, 0.0957089067, 0.170499891, -0.2461785972, 0.1208397672, 0.1784508377, 0.5619293451, 0.4187160134, -0.0900828838, -0.1423564404, -0.2652588785, -0.8294320703, 0.1026631072, -0.1104916409, 0.2700327635, -0.2122975588, 0.0512443632, -0.0681367144, 0.1793616414, 0.0506005473, -0.2804316878, 0.0536026061, -0.0491170734, -0.1940419227, 0.070800297, -0.145692423, 0.0586455241, -0.0869666114, -0.1570789665, 0.2841814756, 0.0451291203, 0.116667293, 0.1920998394, 0.0507463291, -0.298546046, 0.0780008435, 0.2406865358, 0.2563105822, 0.59523803, -0.1032271534, -0.0459587425, -0.2225433737, -0.2140059471, -0.1814226508, 0.4938440919, -0.0391271263, 0.2002179921, 0.2301773876, -0.1807687134, -0.2458812594, 0.3878765106, 0.1971477419, 0.0090516135, -0.3906331658, -0.1281242073, 0.2048780471, -0.2041525841, 0.1588745713, 0.1776405573, -0.0159126688, 0.1090127975, -0.2384064645, -0.2060718685, 0.4573281705, -0.2517169714, 0.0070422916, -0.0312508754, 0.1286207139, 0.1363922209, -0.2774198949, -0.8137667775, 0.1357623488, 0.1831259876, -0.0198104866, -0.1872828156, 0.2692303061, -0.2351887971, 0.2512155473, -0.1044628322, 0.1397912949, 0.1614057422, -0.1558278948, 0.05674446, -0.064204365 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
Hi! Installing the `datasets` package from master (`pip install git+https://github.com/huggingface/datasets.git`) and then redownloading the datasets with `download_mode` set to `force_redownload` (e.g. `dataset = load_dataset("dbpedia_14", download_mode="force_redownload")`) should fix the issue.
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
29
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No Hi! Installing the `datasets` package from master (`pip install git+https://github.com/huggingface/datasets.git`) and then redownloading the datasets with `download_mode` set to `force_redownload` (e.g. `dataset = load_dataset("dbpedia_14", download_mode="force_redownload")`) should fix the issue.
[ -0.3843276799, 0.1996199936, -0.1146312505, 0.3184933364, 0.3418926001, -0.0549485311, 0.200097084, 0.4718802869, 0.2195709348, 0.1365334988, -0.0418279245, 0.1422183663, 0.0903076679, 0.2628116906, -0.1015564501, 0.0394689292, 0.1799626201, -0.0340435393, -0.2078184932, -0.0768615007, -0.191539064, 0.1063365787, 0.03445182, -0.221737951, -0.0929523408, 0.0861782581, 0.1301288605, -0.2222317308, -0.2963680625, -0.2892341912, 0.3145427406, 0.1696397662, -0.009938146, 0.3620099127, -0.0001084645, 0.194280073, 0.2652549148, -0.0476232097, -0.1484381557, 0.0197354779, -0.2634497583, -0.276725024, -0.1532464027, -0.2055438906, -0.1644623727, 0.0543406904, -0.0669102669, -0.1006302312, 0.1104780063, 0.3617457449, 0.2780791819, 0.2687547207, 0.060944628, -0.0268980395, 0.2514069378, -0.1411159933, -0.072207883, 0.1025844514, 0.0252458807, 0.0471417829, -0.1745989025, 0.3599441051, -0.047710862, -0.1480887681, -0.0467781723, -0.2324599475, 0.0243945643, -0.2691167891, 0.3035476804, 0.415912807, 0.5679680705, -0.0935106948, -0.2494805604, -0.0043526785, -0.0871254206, -0.0179783776, 0.4270201027, 0.1005478427, -0.0197122842, 0.1088712886, -0.1632159948, 0.0853787363, 0.061880663, 0.155064702, -0.1376385242, 0.451194942, 0.0409422144, -0.0813256055, 0.1466953456, -0.1026491001, 0.3637425005, -0.0867573321, -0.3400508165, 0.178269431, -0.249297455, -0.0034739678, 0.1027374789, 0.4441787899, 0.2588039935, 0.123033762, -0.1921143234, 0.3690145612, -0.2198887765, 0.1032394543, 0.0359563418, 0.0342204012, 0.0171559546, 0.2700172663, 0.3391149938, 0.2140992135, -0.0472619981, 0.0868126899, 0.0238358695, -0.3039550781, 0.1656915694, 0.0427196361, -0.0595512353, -0.2528945506, -0.1355081946, 0.2907097936, 0.0695383623, -0.2092569768, 0.1584472954, 0.3685162961, -0.238625735, 0.1860362589, -0.1233368367, 0.2094330192, -0.242395401, -0.0541643426, -0.2264982313, -0.0069356905, -0.133471787, -0.1894691586, 0.2906649411, -0.1472396553, 0.3984571099, 0.0116374874, 0.1061033458, -0.1797089726, 0.0394120589, -0.1450638026, -0.0774656162, 0.3287843764, -0.0111268759, 0.1284159273, 0.1471381634, -0.2689658999, -0.0495600812, 0.1300311685, -0.2608905733, -0.0888915509, -0.2755621076, 0.2991395891, -0.420789212, -0.1017171144, -0.2454638779, -0.0766066089, 0.2398967147, -0.3894560337, 0.0406305194, -0.1682788432, -0.1784970164, -0.1528404802, 0.2252544612, 0.2241905183, -0.396458298, -0.0315975584, -0.1463180035, -0.3034141362, 0.1900309026, 0.1561886668, -0.1573352516, 0.2516013086, -0.2913596034, 0.0918922275, 0.3398217559, -0.399695307, -0.6684724092, -0.0990194678, 0.1540709585, 0.2284635454, 0.1357446313, 0.0018618533, 0.1128629521, 0.148622036, -0.1454503983, 0.0945101529, 0.2838035226, 0.1412258446, -0.3691076338, -0.0740121454, 0.2144916356, 0.2248088419, 0.2869904041, -0.1816123128, 0.3549658954, 0.0223874506, 0.2754330635, -0.2505273521, 0.0659250244, 0.1877002567, 0.4286671877, 0.0824066848, 0.0638338476, -0.180814147, -0.1734493524, 0.279329896, -0.1826714724, 0.1876139492, -0.2149436921, -0.1493429691, -0.2822322249, -0.2316585183, -0.4474290013, -0.1235040873, 0.2271804661, 0.2625792027, -0.0763247535, 0.2321339697, 0.1237300932, 0.0623154566, -0.3883274794, -0.0347069725, -0.0381856412, 0.3368137479, -0.2364786863, -0.0294524673, 0.0083057424, 0.185009554, -0.0096317753, -0.0642378181, -0.19206357, 0.3274855316, 0.3743821979, 0.1920056343, 0.1116969585, 0.140852645, 0.0946311057, -0.3516252637, -0.052000355, 0.1021592766, 0.0449458137, -0.1429371238, -0.3604609072, 0.4549179375, -0.0137830414, -0.0226713251, -0.0332514495, 0.0190724339, 0.5954867601, -0.0272521991, -0.1094342694, -0.2923298478, 0.1823416799, 0.1124072522, -0.0006335992, 0.207915768, -0.1104110554, -0.0956946239, 0.5075257421, -0.0016572892, 0.1460803449, 0.0597454049, 0.1969856024, 0.0265680552, 0.1508779973, 0.3506394029, 0.1465795338, 0.1382735968, 0.1861892343, 0.1440740228, -0.1056074351, -0.1167042255, 0.0636477247, -0.1386870295, 0.2452025115, 0.4381195009, -0.070865877, -0.1806445271, -0.5865633488, 0.1104298532, 0.0626306757, 0.3339018226, -0.2749205232, -0.1332772523, -0.2363476008, -0.1486177295, -0.2926534116, -0.0897348598, -0.4221861959, -0.3990252018, 0.0064315889, 0.0751575753, 0.0113360025, 0.3187353015, -0.2051644623, -0.0544295721, -0.0317234322, -0.168752715, 0.0801390707, -0.1552420557, -0.1114951745, 0.1352196634, 0.5495533943, 0.1693428308, 0.3197669387, -0.3259675801, 0.0363655128, -0.3678118289, -0.5230374932, 0.058706142, -0.173636198, 0.3409516215, 0.1046387553, 0.2746559978, -0.2745893598, -0.269335866, 0.1489975899, 0.142133534, -0.2392740697, 0.1834196746, -0.1712830961, -0.1189066917, 0.0832986608, -0.336342901, -0.201417923, -0.2744334936, -0.0413240753, 0.2167356908, 0.1784881055, -0.0176532436, 0.1119579747, 0.1595246643, 0.026303282, 0.1731655747, -0.3424068987, -0.4936474264, 0.5090579391, -0.165339455, -0.3562132716, 0.1753049046, 0.0122890901, 0.443884939, 0.0354996026, -0.5916404128, -0.1255010217, -0.1875084043, 0.2895797789, 0.288526088, 0.0759867057, 0.2897723317, 0.1140786707, -0.0101582874, -0.2763187885, -0.0379829258, 0.0185766332, -0.1822773218, 0.481885165, -0.320119828, 0.2641132176, -0.016828239, 0.6856334805, 0.3063668609, 0.2493685484, 0.2688686252, 0.0281609371, 0.4016678035, -0.2479358017, -0.2423771173, 0.062969178, -0.1685069799, -0.0092686359, 0.2120865136, -0.1621498615, -0.2116305232, -0.2295711488, -0.0534160845, -0.358920753, -0.2393506318, 0.0558534153, -0.273676157, 0.2332633585, 0.0434709005, 0.1092564315, -0.1063807085, -0.4012132287, 0.1375104636, 0.2855918407, -0.337310493, -0.1083696559, -0.5687127709, -0.1561141014, -0.0767055228, 0.1068637297, 0.1275320351, 0.3594199717, -0.0088115651, 0.0140993884, 0.0378670283, -0.1057129204, 0.4002229869, -0.6115930676, 0.1592637002, -0.0997758433, 0.192607224, -0.0648009852, -0.2407378405, -0.1414492428, -0.1708966941, 0.198391363, 0.2516285777, -0.2490036786, 0.0955330282, 0.1963420361, 0.2349805087, -0.1709537059, -0.1022681445, -0.4294641316, -0.1900590956, -0.2845539749, 0.1481567919, 0.0778979138, 0.2340896279, -0.167727083, -0.0656350851, 0.0239370614, 0.0821329653, 0.1718129814, 0.086979121, 0.2978684604, 0.2606116831, 0.1297743022, -0.1192478538, 0.0376402214, 0.2627325654, 0.7651149035, -0.2839830518, -0.3797217607, -0.0875132009, -0.4477350116, 0.0852798745, 0.1029785052, 0.0960268304, -0.0089593204, 0.5147514343, -0.130678013, 0.0414521955, 0.0967908278, 0.1995922476, 0.1361137331, -0.4526549578, -0.385030508, 0.0690312088, 0.0663425326, -0.0715414509, 0.2353792787, 0.1994638741, -0.2436796427, 0.2677060366, 0.2134979665, 0.8498635888, 0.0092014791, -0.0952222124, 0.0698408484, -0.0744851083, 0.0634375215, -0.3042663932, 0.02244303, -0.3036514521, -0.3996011615, -0.0891721621, -0.0196841825, 0.1358010322, -0.0908511356, -0.2227353901, 0.1639191955, -0.0044246106, 0.1881367415, -0.0608169511, 0.2151766121, -0.0729111135, 0.0309176333, 0.0832456276, 0.1761827767, -0.071164079, 0.1148788035, -0.1619275063, -0.0202678759, -0.0778139234, -0.1785097122, -0.4061168432, 0.0988180488, -0.0351515822, 0.221242696, 0.0619164072, 0.0051639499, -0.0291062463, 0.5106828809, 0.2580235004, 0.3516238332, -0.2548210323, 0.3578076959, 0.3114034235, 0.0901487023, 0.0760410205, -0.0220459215, 0.3566155136, -0.1186630279, -0.4029879272, 0.1040367261, -0.2091037929, -0.2719201148, -0.050705038, -0.1960194409, -0.0861788988, -0.3162295818, -0.0910325721, -0.0628352985, -0.1303651333, -0.2360290438, 0.2346990854, 0.0212959498, -0.2387056947, 0.2669453919, 0.1456002146, -0.3017158508, -0.1463777274, 0.5712713599, 0.0624014288, -0.1387033463, 0.5099579692, 0.0705284923, -0.409442544, -0.2630648315, 0.0443050079, 0.0923455879, -0.3192020953, -0.3569148779, -0.1357153803, -0.0400599204, -0.010355683, 0.36828053, 0.327699244, 0.0793327615, 0.0759736449, -0.4968286753, -0.2059357762, 0.0119863758, 0.0993052647, 0.2751449347, -0.2057310492, -0.1467968076, 0.1023234352, 0.021570405, -0.3737361729, -0.04475471, -0.3425647318, 0.1222201735, -0.1355280429, 0.1254091859, 0.0063607246, -0.1743604392, 0.2007502913, -0.0831396207, -0.1417773813, -0.2748917043, -0.0719275549, 0.0870099366, 0.1663575768, -0.1459420174, 0.1614929289, -0.1884261221, -0.0604438856, -0.0604083464, 0.0164378919, 0.0538200364, -0.1296303421, 0.2579450905, 0.1587560773, 0.0974797606, 0.0886213034, -0.2107195258, -0.230473429, -0.058605805, 0.0096320594, 0.0308269914, 0.1270562559, -0.0245230757, 0.250289768, 0.150550127, -0.0237017274, 0.2085059434, 0.1825244129, -0.2574319541, 0.1112487018, 0.5019441843, 0.2933608294, 0.4899547994, -0.3846408129, -0.0335276425, 0.4352293611, 0.2795093656, -0.4313292801, -0.1424396336, 0.343845427, -0.059489429, 0.0479103997, 0.0575924255, 0.3537676036, -0.3315737247, 0.4014071524, 0.0998882502, -0.0514926314, -0.5166435838, 0.4906992018, 0.5822538733, -0.1762200445, 0.0139653934, 0.2338673472, -0.1937605143, -0.260132581, 0.4445168674, -0.0996595994, 0.2785471976, -0.271430403, 0.218341127, -0.161816448, -0.3675087094, 0.511141479, 0.0087866988, -0.3009900153, -0.0101519041, 0.1710071564, 0.2483953685, -0.0148152579, 0.1433380544, -0.5335069299, 0.0398749746, -0.2956821322, -0.0781908259, -0.1801400781, -0.3081397414, -0.0268758871, 0.2671483457, 0.0571496859, 0.1896677166, -0.1126874536, 0.2238969803, -0.412142396, -0.2224280685, 0.0120008718, -0.2091283053, 0.0672260225, -0.2181441486, 0.2956625521, 0.0717036873, -0.0852959082, -0.0831450298, 0.3293936253, 0.1504167318, 0.3595738113, 0.1194353774, -0.0295500327, 0.0934529081, 0.0239854231, -0.103837043, 0.5730041265, 0.2886635661, 0.1170374453, 0.3657898009, 0.2016593814, -0.2456644773, 0.0379581153, -0.0219288468, -0.1610398144, 0.0276502818, 0.1020369604, 0.0629698262, 0.0955420434, -0.2664394677, -0.0726914033, -0.385635823, 0.0133249322, 0.2603091598, 0.1855479777, 0.2366305739, -0.2536383569, 0.117555514, 0.1600580961, 0.4743384719, 0.2317597866, -0.1643287688, -0.113657549, -0.2967485487, -0.8407056928, 0.1478814036, -0.1978451014, 0.2172444612, -0.0572251119, 0.0898631066, -0.097510241, 0.083366029, 0.2746023238, -0.2274030596, -0.0705047548, 0.0581836589, -0.229958415, -0.0706625879, -0.0106938034, 0.0142835658, -0.1235473678, -0.2542904019, 0.289121151, 0.1282407045, 0.1812745184, -0.019628115, -0.1371448785, -0.1589413285, 0.1218883246, 0.2405365855, 0.1041825712, 0.6670491099, -0.0990387201, 0.0875857994, -0.1535289139, -0.1734921932, -0.0943500921, 0.4762188792, 0.050980337, 0.365691632, 0.1242827177, -0.1815532744, -0.1728194952, 0.216137141, 0.173083365, -0.0382532738, -0.2831012905, -0.17908369, 0.1192404255, -0.1319337636, 0.0706575513, 0.043281313, -0.0144816935, 0.1466923654, -0.1610117704, -0.2846429944, 0.1631979346, -0.0782256722, -0.0476147532, -0.1482431144, 0.0183034465, -0.0898359716, -0.1023245603, -0.7109649181, 0.1180412844, 0.3617345095, -0.0354795866, -0.0426425897, 0.2263603657, -0.0837073401, 0.3192931712, -0.0654965639, 0.1218590215, 0.0678667724, -0.1764353514, -0.0251932759, -0.1995829344 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
Hi @rafikg and @Y0mingZhang, thanks for reporting. Indeed it seems that Google Drive changed their way to access their data files. We have recently handled that change: - #3787 but it will be accessible to users only in our next release of the `datasets` version. - Note that our latest release (version 1.18.3) was made before this fix: https://github.com/huggingface/datasets/releases/tag/1.18.3 In the meantime, as @mariosasko explained, you can incorporate this "fix" by installing our library from the GitHub master branch: ```shell pip install git+https://github.com/huggingface/datasets#egg=datasets ``` Then, you should force the redownload of the data (before the fix, you are just downloading/caching the virus scan warning page, instead of the data file): ```shell data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]", download_mode="force_redownload")
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
117
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No Hi @rafikg and @Y0mingZhang, thanks for reporting. Indeed it seems that Google Drive changed their way to access their data files. We have recently handled that change: - #3787 but it will be accessible to users only in our next release of the `datasets` version. - Note that our latest release (version 1.18.3) was made before this fix: https://github.com/huggingface/datasets/releases/tag/1.18.3 In the meantime, as @mariosasko explained, you can incorporate this "fix" by installing our library from the GitHub master branch: ```shell pip install git+https://github.com/huggingface/datasets#egg=datasets ``` Then, you should force the redownload of the data (before the fix, you are just downloading/caching the virus scan warning page, instead of the data file): ```shell data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]", download_mode="force_redownload")
[ -0.2806977928, 0.1842425019, -0.0431707464, 0.2063535154, 0.3406103849, 0.1340312958, 0.2423329055, 0.3014310002, 0.2834569216, 0.2202183157, -0.0751204342, -0.1180787981, 0.04707174, 0.4092033803, -0.1184175238, 0.0272027273, 0.1333744973, -0.151443243, 0.0380049944, 0.0343717001, -0.3451865017, 0.1651112735, -0.0846884325, -0.1403910667, -0.0485461913, 0.043625053, 0.0023897036, -0.0327417962, -0.1069305688, -0.5085650086, 0.243050158, 0.0947880223, 0.1389131844, 0.4133017361, -0.0001084545, 0.2546437085, 0.4067671299, -0.0624670312, -0.1534775794, 0.0180754717, -0.0347881578, -0.0910986736, -0.1902337819, -0.222766012, -0.1181090251, -0.0754292756, 0.0292310044, -0.1275213659, 0.0166124478, 0.419462949, 0.239995122, 0.2643742561, 0.1732940823, 0.066103816, 0.3712894022, -0.2725652158, -0.0888267085, 0.3760094941, 0.061193496, 0.2021662593, -0.1436439902, 0.3161388338, -0.034181837, -0.1472382396, 0.0488390587, 0.0372639038, -0.1075872928, -0.2263088375, 0.3227772713, 0.3171148598, 0.3297154903, -0.098549217, -0.2089859694, -0.1295855194, -0.0139481565, -0.1774873286, 0.6740051508, 0.0424485803, 0.0781810433, 0.1186482683, -0.3517784774, 0.1347696781, 0.0834437534, 0.0189658497, -0.2183812857, 0.2313462496, -0.0822962224, 0.0327604935, 0.2084723264, -0.1423193365, 0.1729555875, -0.0706114545, -0.2974681854, 0.1347071379, -0.1392705441, -0.0381055921, 0.0945120901, 0.3085162044, 0.4922870696, 0.0767580718, -0.3269599676, 0.0419317856, -0.3647182882, -0.025791673, 0.1512063891, 0.0453801714, -0.0666871816, 0.112537913, 0.3515544832, 0.4029658139, 0.0724027753, 0.0197227802, 0.1376428306, -0.3669954538, 0.3511628211, 0.2463803142, 0.0305847414, -0.2350474447, -0.1849404275, 0.2504474521, 0.0101539474, -0.218747437, 0.0613341406, 0.3727707267, -0.0051798522, -0.1084935069, -0.0428544432, 0.1350509226, -0.100691922, -0.0495889708, -0.1773462147, 0.0806769207, -0.2313712239, 0.0178127605, 0.2771870792, -0.3870119452, 0.2303081602, -0.0180282723, 0.1170353815, -0.1404740512, -0.1997599155, -0.1823634207, -0.0155403949, 0.3104735613, 0.1280609369, 0.0866651982, 0.1533958316, -0.2373285443, -0.1051268429, 0.1469210982, -0.3772842288, -0.0067258389, -0.065195933, 0.2036556602, -0.3899036944, -0.0674373135, -0.1547540873, -0.1299335063, 0.0029346813, -0.3752027154, -0.1046102345, -0.2060658932, -0.4055343866, -0.2473146468, 0.2051640302, 0.402748853, -0.2309566438, 0.123114191, 0.0566093139, -0.3296224773, -0.0897901878, 0.1836731285, -0.09443333, 0.1881726682, -0.4774871767, 0.1908775419, -0.1059473231, -0.2502762079, -0.5926554203, -0.1481299698, -0.0188871659, 0.1667482108, -0.0521166623, -0.071212478, 0.0237572677, 0.0900957212, -0.0789547712, 0.1266408861, 0.2598065138, 0.2229456604, -0.2670014203, -0.3738029003, 0.1871028543, 0.1169930398, 0.204823643, 0.0643002391, 0.5371848345, -0.3551629484, 0.2681358159, -0.2922659218, 0.0668215901, 0.274322629, 0.4069173336, 0.1358007491, 0.1353732198, 0.0541508943, -0.5511990786, 0.2991275191, -0.1138398722, 0.0180059988, -0.304397881, -0.1786100119, -0.3630911112, -0.318358928, -0.4063476026, -0.1445736438, 0.1915813684, 0.2052732259, 0.094764486, 0.337688446, 0.2154134512, -0.0525888726, -0.3357269466, -0.0082433028, -0.0837394744, 0.5770993233, -0.2828864455, -0.0813775584, 0.1508817971, -0.0044825426, 0.1730349958, -0.0560904779, -0.1819312125, 0.3738621771, 0.2025899142, 0.2947710752, 0.1643805206, 0.2622050345, 0.1132966727, -0.3060263395, 0.0486356355, 0.1693636626, 0.146222651, -0.0118631432, -0.5752344131, 0.4183233678, -0.1716964394, 0.0713654831, -0.0284684524, 0.1201795936, 0.4608350396, -0.1210545301, 0.001764252, -0.1878712773, -0.0006640331, 0.3077032268, 0.0985912457, -0.0435264744, -0.103795737, -0.1184849292, 0.5224276781, 0.0012734239, 0.1268101633, 0.1414400935, 0.0457556173, -0.0243495665, 0.0985069424, 0.4228600264, 0.1318579018, 0.1070044786, 0.1968849003, 0.2121443003, -0.1387597173, -0.0896672457, 0.055862084, -0.1442406923, 0.3520455062, 0.5106646419, -0.0088528534, -0.0417733639, -0.6307208538, 0.0292043556, 0.1313727647, 0.3394634426, -0.4060428143, -0.0564498268, -0.0851312503, -0.0475083068, -0.1892305762, 0.2275417596, -0.4634401202, -0.5150539279, -0.0582738742, 0.1681046337, -0.2088484168, 0.0605603084, -0.187483266, 0.0518669002, -0.0309050158, -0.2380194664, -0.0417054631, -0.1542363465, -0.1478380859, 0.1115004793, 0.5178376436, 0.0236187708, 0.3159515262, -0.2510505319, 0.0593383983, -0.639326334, -0.3777700067, 0.1005239561, -0.2437070012, 0.3291920125, 0.0916450024, 0.3190778494, -0.3589507639, -0.33533445, 0.1264747083, -0.1117309704, -0.3317469954, 0.0628844872, -0.046106942, -0.0360028744, 0.0215898976, -0.3601583242, 0.0591644198, -0.15227139, -0.0953407884, 0.0888913721, 0.165780738, 0.0812889859, 0.175952971, 0.2426646054, 0.0841046646, 0.0292826444, -0.4623933434, -0.4235394597, 0.4938864112, -0.1987028271, -0.4403117895, 0.2561228275, -0.0506555066, 0.0861607939, 0.121538423, -0.6318221688, -0.2949472666, -0.3726100326, 0.2260108143, 0.3153222203, 0.0529725663, 0.2384328842, 0.0824151486, -0.0273636021, -0.0853575468, -0.2098319232, 0.0102281729, -0.1507215053, 0.2676157355, -0.0062821265, 0.331305474, 0.0809750557, 0.5084471107, 0.2393155843, 0.1608807892, 0.2514974177, -0.0708472729, 0.5218964815, -0.2169977129, -0.106677711, 0.1782226861, -0.1425723284, -0.062911123, 0.2049586773, -0.1638705879, -0.0327933058, -0.0749801323, -0.1083781347, -0.4681526423, -0.3612998128, -0.0612253994, 0.212452516, 0.1923900098, -0.0454667546, 0.0395638421, -0.0971859321, -0.4403096735, 0.2529796958, 0.4942783713, -0.0523966812, -0.0309314188, -0.4867756665, -0.1140211597, -0.2404134423, 0.2075483203, 0.1665859669, 0.3056859672, -0.106225878, 0.0480439886, 0.0946797207, -0.2794604003, 0.4427731931, -0.4948526621, 0.4075449705, 0.0047206716, 0.2128069401, 0.2792291939, -0.2672908604, -0.2716397643, -0.3847767115, 0.1439042836, 0.1887225807, -0.2736792564, 0.0501509942, 0.427633971, 0.2185216248, -0.1008085534, -0.010007224, -0.298981607, -0.3459979892, -0.4356516302, 0.2340001911, 0.1328024268, 0.2917995155, -0.3656436205, 0.0593174286, 0.0728436485, -0.157267794, 0.0175896753, -0.0027228317, 0.414294064, 0.4513290823, 0.0754364133, 0.1145057902, 0.0758850351, 0.1953843087, 0.7881801724, -0.2433184832, -0.2673375905, 0.0389489122, -0.4671713412, -0.1548529267, 0.1654696316, 0.0527440682, -0.1118452176, 0.4084879756, -0.063481614, -0.1884548664, -0.0961846039, 0.223797217, 0.1109996885, -0.1938692182, -0.0806083679, 0.330632776, 0.0898279175, -0.2066836804, 0.3229089677, 0.4701556265, -0.3605422676, 0.295950681, 0.2533293068, 0.8441259265, -0.2295018286, -0.0282334555, 0.1663307548, 0.1032533124, 0.0405239873, -0.0545014404, 0.0403704681, -0.3457323909, -0.4335058033, -0.0125851892, -0.0427009948, 0.0790875256, -0.04411662, -0.2324676961, 0.1852975637, -0.0700501725, 0.0976635516, -0.120336242, 0.3227909803, -0.1537977159, 0.0729490444, 0.2760545015, 0.1264305115, 0.0837959126, 0.2819461823, -0.0487097353, 0.0302140713, -0.0138291214, -0.2299990952, -0.4949425161, 0.1391982138, -0.0641082227, 0.1303692311, 0.0475583635, -0.0232972261, 0.0805885494, 0.4226197004, 0.4526764452, 0.4138726592, -0.3569617569, 0.3153573871, 0.24203448, 0.0030329842, -0.0839422718, -0.1121099219, 0.2830417752, -0.0229308866, -0.364893198, 0.0982137471, -0.0638499707, -0.4253056347, -0.2229622602, -0.1403989494, -0.3989607692, -0.3168037534, 0.0426890776, -0.0547573045, -0.1818602681, -0.187284112, 0.1717106104, 0.1674350649, 0.1188816428, -0.0189521555, 0.1688421518, -0.2960577905, -0.025776891, 0.4221486449, 0.1461546421, -0.3596982062, 0.5701934099, 0.181211859, -0.3296341896, -0.2405461371, -0.0049076905, 0.1638406366, -0.1257906854, -0.2110205293, -0.0886259079, 0.1491271704, -0.0975610465, 0.3242236674, 0.1742026508, 0.1840687543, 0.1610455513, -0.5939844847, -0.0726412237, 0.1562956572, -0.1240777969, 0.2878466845, -0.04860989, -0.1321098506, 0.174690038, -0.2037520707, -0.3523623049, 0.2233741134, -0.3136393726, -0.0010384745, 0.0915989429, 0.1844623983, 0.2167341709, -0.1719354093, 0.1815358102, -0.1081909984, -0.0614042133, -0.1801534444, -0.1090082079, 0.1065961868, 0.1336376369, -0.0606299751, 0.0877202898, -0.2363393307, -0.0439994745, -0.0697283968, 0.209710896, 0.175547123, -0.1410001218, 0.1190129519, 0.0685031787, 0.0271737166, -0.0428356528, -0.1258149743, -0.3538303971, -0.0772419572, -0.0499137379, 0.113466613, -0.0181393865, 0.1342901886, 0.1476329118, 0.1754266322, -0.0819797963, 0.2292063534, 0.1957079172, 0.005268896, -0.0635005236, 0.2504721284, 0.1384445727, 0.2967576683, -0.531946063, -0.0997327492, 0.3515157998, 0.2253946215, -0.3627787232, -0.1543185413, 0.0443036184, -0.1124938503, 0.095070757, -0.0102035962, 0.2499060482, -0.0311722383, 0.2030106187, 0.0508854836, 0.1312268972, -0.3295038939, 0.3512324393, 0.431188494, -0.051885888, -0.0240972284, 0.1715749204, -0.3035588264, -0.1802653819, 0.2381729782, -0.0764432028, 0.0986355394, -0.3706402183, 0.1558174491, -0.1782102585, -0.4267652333, 0.5236538649, 0.2044690996, -0.4516574442, 0.0354068652, 0.184519738, 0.2045163959, -0.0869654715, 0.1473676264, -0.5687937737, -0.0263384134, -0.110509634, -0.1128308401, -0.2659010887, -0.3145596087, -0.1966098845, 0.4510315359, 0.0641705617, -0.0466738828, -0.0442692451, 0.1379221678, -0.3877146244, 0.018509306, -0.0457080603, -0.0074416003, 0.1188340783, -0.1579972953, 0.1589965373, 0.0999134779, -0.0235026199, 0.1490709782, 0.4796385169, 0.2180424482, 0.201198414, 0.2440330088, -0.1030180231, 0.0091968412, 0.0228548683, 0.0119009726, 0.4340294898, 0.0966070592, -0.0965022072, 0.4312103987, 0.2114251256, -0.1678544879, -0.1488027126, -0.010032203, -0.1103715971, 0.0172918029, 0.0383286551, -0.0125054689, 0.1646626443, -0.1996620446, 0.0060100788, -0.2418759167, -0.0799090639, 0.1458997279, -0.0010997241, 0.2225716561, -0.1953929067, 0.1035011858, 0.2759414613, 0.4047956467, 0.4882459044, -0.083995454, -0.1877331883, -0.247341916, -0.8066404462, 0.0784053728, -0.2083010077, 0.1768451184, -0.0198041406, 0.0849725902, -0.2967522144, 0.2051030546, 0.3343216479, 0.0555829592, -0.2027768195, -0.0478132255, -0.1650997698, -0.0839443654, 0.2250950634, -0.0739927143, -0.2001875788, -0.2677527964, 0.3622249067, 0.046021983, 0.0814586952, 0.0337039605, 0.1764988005, -0.2458066493, -0.041200351, 0.3493338823, 0.1685803235, 0.6656024456, -0.1391767412, -0.0674584135, -0.3791237175, -0.0993906409, -0.1586612016, 0.2735415101, 0.0964314789, 0.3749119937, 0.1672883332, -0.3657746613, -0.1283337474, 0.3410059214, 0.0712799951, 0.18301934, -0.2861828208, 0.0404235721, 0.1033050194, -0.0332484283, 0.1759580225, 0.0024204957, 0.0656414181, 0.1818737835, -0.1898434609, -0.2757285535, 0.1310694963, -0.1231128126, 0.0141078634, -0.1855999529, 0.0576847941, -0.0205807984, -0.0323454067, -0.6431209445, 0.2277529687, 0.1723906845, 0.1854981929, -0.2491556704, 0.0427826941, -0.0874218494, 0.0521101095, -0.0115305353, 0.1245181486, 0.1937060505, -0.254693985, -0.053233631, -0.1534723938 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
@albertvillanova by running: ``` pip install git+https://github.com/huggingface/datasets#egg=datasets data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]", download_mode="force_redownload", ignore_verifications=True) ``` I had a pickle error **UnpicklingError: invalid load key, '<'** in this part of code both `locally and on google colab`: ``` """Yields examples.""" with open(filepath, "rb") as f: data = pickle.load(f) for id_, row in enumerate(data.items()): yield id_, {"url": row[0], "article": self._process_article(row[1])} ```
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
59
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No @albertvillanova by running: ``` pip install git+https://github.com/huggingface/datasets#egg=datasets data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]", download_mode="force_redownload", ignore_verifications=True) ``` I had a pickle error **UnpicklingError: invalid load key, '<'** in this part of code both `locally and on google colab`: ``` """Yields examples.""" with open(filepath, "rb") as f: data = pickle.load(f) for id_, row in enumerate(data.items()): yield id_, {"url": row[0], "article": self._process_article(row[1])} ```
[ -0.2528680563, 0.1900031567, -0.0636426732, 0.314026624, 0.0766305625, -0.0666098222, 0.1628495455, 0.2162663639, 0.5342547894, 0.1638112515, -0.0650474429, 0.4586707056, -0.0562347211, 0.4272357523, 0.033776667, 0.0887800977, 0.151322335, -0.0304990485, -0.2259759903, -0.104560487, -0.2315221131, 0.2674272954, 0.0334857032, -0.2563100159, -0.0576736331, -0.013430818, 0.0152932014, 0.0463459678, -0.2251956612, -0.3198206425, 0.3860785961, 0.2138684094, -0.0832515955, 0.4209756255, -0.0001190723, 0.2136952579, 0.3132317364, -0.1055531725, -0.4403301477, -0.1635104418, -0.2478758246, -0.3826876879, 0.0440249853, -0.3404948413, -0.1322966069, 0.2774427831, -0.1330312639, -0.1618738919, 0.1938680559, 0.1893191636, 0.1775745749, 0.3448015153, 0.291497916, 0.1409092844, 0.330018729, -0.1042357683, -0.0304450933, 0.4530504048, 0.0681269318, 0.1778017431, -0.0668461993, 0.2753111422, -0.0559268072, -0.135375008, 0.0447452962, -0.0413340628, -0.2361439019, -0.322116673, 0.1678913683, 0.3900490999, 0.5455674529, -0.2098401934, -0.4568276703, -0.1291813403, -0.1173150316, -0.0720620155, 0.3100496233, 0.2226851135, 0.0060891113, 0.1375880688, -0.2757737637, -0.1037341952, 0.1708631665, 0.2109020501, 0.1327079833, 0.4865165651, 0.0225962233, 0.0699373484, 0.135082975, -0.0442112535, 0.1837429404, -0.1763032675, -0.2440822423, 0.3063012362, -0.1139808223, -0.0929234102, 0.0179315209, 0.4175485969, 0.2382953316, 0.2549823225, -0.1215658486, 0.1396265179, -0.3940806389, 0.1429610699, 0.1983418018, 0.0739569739, -0.1244783625, 0.3982482851, 0.3807309866, 0.1585373133, 0.0239547323, 0.1444156915, 0.0738766044, -0.2767380178, 0.014323784, 0.0933525264, 0.0566632822, -0.2888740003, -0.2668403685, 0.1693913937, -0.0135264844, -0.3217416108, -0.0092746736, 0.2382357121, -0.2409550995, 0.0155593092, -0.1244160607, 0.1569008529, -0.2585908473, -0.0233079605, -0.226898998, 0.2363653034, -0.049573008, -0.0415502302, 0.1220440418, -0.3013803661, 0.464929074, 0.0178392008, 0.0202265698, -0.1493331939, -0.1376054734, -0.1730492413, -0.2541312277, 0.3896597326, 0.0117370319, -0.0446534716, 0.3086326718, -0.4884029329, -0.1425710469, 0.2305214703, -0.3667358756, -0.0927729607, -0.2011179477, 0.1401479393, -0.6305918097, -0.1462282985, -0.6764228344, -0.1142534316, 0.2172011584, -0.3185862303, 0.0925923437, -0.1673713923, -0.1711812466, -0.2270737886, 0.1974533796, 0.3427016735, -0.3239116371, -0.1362418085, -0.1404356509, -0.0910108984, 0.2624059021, 0.17255418, -0.1236182675, 0.3524591029, -0.287866205, 0.0640753359, 0.4019038975, -0.3472412527, -0.6560377479, -0.0823612511, 0.0952944756, 0.3186148107, 0.0613341369, 0.011804861, -0.0731989071, -0.0371898003, -0.0376702212, 0.1327903122, 0.2623272836, 0.1589771807, -0.3625709414, -0.3252064288, 0.1628903449, 0.165382579, 0.2095090896, -0.156700179, 0.4243595004, -0.506172359, 0.3508397937, -0.2134559453, -0.0995203778, 0.1817171425, 0.57155931, -0.0149309086, 0.0156952888, -0.0553812906, -0.5021440387, 0.3713902235, -0.2201074809, 0.1815866977, -0.4506590068, -0.0991211981, -0.3539782763, -0.1530147642, -0.4353385568, -0.026032459, 0.030603746, 0.2311024517, 0.1153793484, 0.2346290946, 0.0978080705, -0.0081237573, -0.2779417634, 0.1182963029, -0.2313802838, 0.3536604941, -0.1937052906, -0.1283808351, 0.1254197061, 0.0892496035, 0.0987060964, -0.2664652169, -0.1558884978, 0.3263129592, 0.4375667572, 0.2257626057, 0.2605550587, -0.0144996941, 0.108879745, -0.4124883413, -0.0447090156, 0.2842773497, 0.2253891677, -0.134785369, -0.3102373481, 0.6110120416, -0.1842079312, -0.067026794, -0.1094426587, -0.0608631149, 0.2484118789, 0.0308065563, -0.0784367844, -0.1149244159, 0.1970294863, 0.2878172994, 0.1909894794, 0.1616835892, -0.2053564638, 0.0189960897, 0.4041165411, -0.045721408, 0.1566770524, 0.2113804966, 0.1638679355, -0.1065176576, 0.1382414401, 0.1597612202, 0.2561875284, 0.1205290779, -0.0183553528, 0.0309297349, 0.0087493313, -0.1049487963, 0.1266599149, 0.0004001737, 0.0812386498, 0.4319370985, -0.0219748504, -0.0782150254, -0.4160595834, 0.1681731194, -0.046372816, 0.3713011146, -0.3852730989, 0.0951860473, -0.1990464479, -0.0051374403, -0.1033413932, -0.1734512597, -0.2557071447, -0.4192433953, -0.1311059594, 0.1337614059, -0.0148984399, 0.2001954168, -0.2309559435, -0.060064055, -0.081131421, -0.2992198467, -0.0568286143, -0.3598297238, -0.1563222557, 0.0772357881, 0.6690938473, 0.1273955554, 0.3829647303, -0.2178859711, -0.0853117928, -0.3214855194, -0.3296698332, 0.0051944959, -0.3213548958, 0.6249522567, 0.1242415607, 0.2854343653, -0.4078522325, -0.2364945263, 0.1086362675, 0.1833010912, -0.3653050661, -0.0600076728, -0.0595200807, -0.1118507236, 0.1301991791, -0.2831463516, -0.333073318, -0.1814831644, 0.1838856786, 0.2822107673, 0.2557508349, 0.1599109024, 0.0943194702, 0.1940939277, 0.3727251887, 0.1214916483, -0.311245501, -0.4904226661, 0.4961254597, 0.0050636311, -0.2876057625, 0.0660959631, -0.1709684879, 0.0848918855, -0.0454866476, -0.5297895074, -0.0850809216, -0.2827374041, 0.3480734825, 0.2950772047, 0.2237145603, 0.2349915504, 0.1556833237, 0.0884659886, -0.097244449, -0.1059787795, -0.0316702202, -0.0017057247, 0.3416726589, 0.0350562781, 0.0747757778, -0.1968629211, 1.0584330559, 0.3284489512, 0.12606664, 0.3611394167, 0.0191696286, 0.3261515796, -0.2551496327, -0.3157656193, 0.0181573015, -0.2170125693, -0.0249766428, 0.2143524438, -0.1787575632, -0.0829394907, -0.2347738445, 0.0486875549, -0.5095450878, -0.271717608, 0.0307429191, -0.0107923523, -0.0053098123, -0.0922982171, 0.0092092929, -0.0350291729, -0.3652913272, 0.1714365333, 0.383254081, -0.0019710534, -0.038260892, -0.2833001018, -0.281223923, -0.2027672976, 0.323336482, 0.2237627655, -0.045787774, 0.0580649897, -0.0717140287, 0.0803263113, -0.2113503963, 0.3853125572, -0.3805702031, 0.1542936563, -0.0136801852, 0.141811192, 0.0332157612, -0.2062977999, -0.1055314988, 0.0378719531, 0.1335168183, 0.3648934364, -0.4491068423, 0.2180993855, 0.2967195511, 0.2576186955, -0.2538684309, -0.2365667373, -0.4447088838, -0.4062426686, -0.2678616941, 0.1264285892, 0.0052246456, 0.2607584298, -0.1895536184, 0.1541581005, -0.0374607295, -0.0555300117, 0.1550615281, -0.047185462, 0.4021716714, 0.3072290719, 0.2023460269, -0.0293171294, -0.0277512632, 0.2202353328, 1.0473840237, -0.2881187797, -0.0804766938, -0.1406080872, -0.2991217971, -0.03295945, 0.1702373922, 0.1949180067, 0.0343436971, 0.4006980062, -0.0595417321, 0.1370402277, -0.00286226, -0.0872189924, 0.1275191307, -0.377445519, -0.5363624692, 0.4229120612, 0.0247706696, -0.1776144207, 0.3338432312, 0.4384979308, -0.2254613936, 0.2058245987, 0.1650266349, 1.1332867146, 0.0255513601, -0.0002792914, 0.2296256423, 0.0399787687, 0.2546223402, -0.0206020437, -0.142177999, -0.43169716, -0.1875571907, -0.0866281316, -0.1441339403, 0.1575265229, -0.2279494852, -0.3694621325, 0.356921345, -0.1255384982, -0.2099999487, -0.0134736765, 0.2991180718, -0.0278241262, 0.1989501268, 0.1615518332, 0.0904342681, -0.1562866718, 0.4305739105, -0.121643737, -0.0566229075, -0.340928942, -0.2180105001, -0.5564700961, 0.1192784831, -0.1566758454, 0.3164459467, 0.2444177717, -0.4617933035, 0.0049006343, 0.4427811205, 0.185712412, 0.1018818095, -0.1363315731, 0.2635627985, 0.2622304261, 0.0850751847, 0.0058224304, -0.0015142502, 0.3795973361, -0.044047609, -0.3011518419, 0.0412513986, -0.2881397903, -0.3768722713, 0.0932819024, -0.0911989287, -0.2724258304, -0.3497746885, -0.2909796238, -0.1041861475, -0.1159964129, -0.1779256463, 0.0836328939, 0.1964322478, 0.0132688982, 0.2829496562, 0.0939575359, -0.2846499383, -0.1099697426, 0.3933941126, 0.1643624604, 0.0887021571, 0.5874890685, 0.0812648833, -0.3691160679, -0.1336648613, 0.0157324728, -0.1257461756, -0.159774974, -0.0531036966, -0.072817266, 0.2497234941, -0.195742771, 0.560419023, 0.405688405, 0.2848636508, 0.0915964171, -0.4844654799, -0.1782173663, 0.0992549509, 0.0414644554, 0.2843768299, -0.1425755471, -0.326808542, 0.1206772774, 0.0343029425, -0.2661230564, -0.0659135208, -0.3571274877, -0.0443014875, 0.2925257981, 0.142998606, 0.1409369409, -0.221740216, 0.1203578711, -0.1837029904, -0.1043332443, -0.1869873703, -0.1057702899, 0.1260635853, 0.1691461653, -0.1625258923, 0.0154822385, -0.0558046289, 0.2384854108, -0.0238457937, 0.0772825032, -0.0149319768, -0.0010662192, 0.2441025823, 0.1718757004, 0.090009138, -0.0884647369, 0.0281397253, -0.3103895485, 0.0314634629, 0.0917420983, 0.0681759566, 0.195751369, -0.0335499644, 0.2206876874, 0.0395802297, 0.1578248888, 0.1248195395, 0.1457690895, -0.2732664645, 0.0283224545, 0.1420571208, 0.2033638358, 0.4841385782, -0.402038157, -0.0658924729, 0.3933433294, 0.148339808, -0.413695693, -0.038760975, 0.1746306717, 0.1487277299, 0.0535772182, 0.1238752082, 0.1212367415, -0.0670669302, -0.0474323034, 0.0372994319, 0.2137592584, -0.1116777658, 0.3254680634, 0.3175757825, -0.1022651717, 0.1618783921, 0.1098046079, -0.1054504216, -0.183280617, -0.0118036382, -0.229063049, 0.1142969728, -0.2984221578, 0.1298010647, -0.1981253624, -0.5445816517, 0.6311425567, 0.1838153005, -0.2134898454, 0.029719159, 0.3698219955, 0.6354862452, -0.0231287573, 0.0793553889, -0.3799664974, 0.3340437412, -0.1454836577, -0.1893928945, -0.3082921207, -0.230220437, -0.1497268379, 0.4225941896, -0.0677271411, -0.0020548664, -0.0107805161, 0.2415931374, -0.4203873873, -0.1841668636, -0.1146254018, -0.1166310832, 0.1868873686, -0.1919074506, 0.2752705514, 0.1903666705, -0.1626629978, -0.2581556141, 0.3990325034, 0.329669714, 0.2826641202, -0.0068850066, -0.0957700089, 0.1848735809, -0.0295320842, 0.008208151, 0.3049193919, 0.0841344818, -0.0671338588, 0.3654753268, 0.1145002693, -0.1722509563, 0.189676553, 0.0220454354, 0.0378573611, -0.1274794489, 0.0691740066, -0.1290115565, -0.0312208552, -0.1221403331, 0.0500914007, -0.4001248181, 0.1318157017, 0.0997724012, 0.1939652413, 0.1779118925, 0.024036292, 0.0566898212, 0.1119201481, 0.5662873983, 0.4304271042, 0.0304261595, -0.293503046, -0.1264559627, -0.674739778, 0.0180197358, -0.2390190512, -0.0856698975, -0.113424845, 0.0138862729, -0.0696027875, 0.3237024248, 0.093535237, -0.0385508686, 0.0130437333, 0.1490168571, -0.1852122992, -0.0485235341, -0.046581395, -0.1478690058, -0.1257226318, -0.3615867794, 0.2034866512, 0.0309390035, 0.0259301905, -0.0803099349, -0.11305435, -0.0212638136, 0.1573309302, 0.1862976402, 0.0359494947, 0.8354505897, -0.0720006451, -0.0274728388, 0.0659766197, -0.2274353057, -0.1745809615, 0.4723903537, -0.0231618769, 0.4531108141, 0.1458142102, -0.0829679817, -0.2036625296, 0.3880119026, 0.1289217919, 0.0299286116, -0.1969649792, -0.4042124748, -0.0115616694, -0.2369793206, 0.1068337932, 0.0055139512, -0.0784719363, 0.1544046402, -0.2403483987, -0.2857055962, 0.3671651781, -0.2139906585, 0.0366031192, -0.1596376151, -0.0088570807, -0.1286714375, -0.1678911448, -0.5538070202, 0.0885231793, 0.3781118691, -0.0930704623, -0.0250029359, 0.3017267287, 0.0266231354, 0.2426158637, -0.1181835681, 0.3720200658, -0.0429842733, -0.1658056378, -0.1774549633, -0.2838242948 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
This issue impacts many more datasets than the ones mention in this thread. Can we post # of downloads for each dataset by day (by successes and failures)? If so, it should be obvious which ones are failing.
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
38
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No This issue impacts many more datasets than the ones mention in this thread. Can we post # of downloads for each dataset by day (by successes and failures)? If so, it should be obvious which ones are failing.
[ -0.3122647703, 0.2210709304, -0.0906830654, 0.2768563628, 0.2292595357, -0.0886908248, 0.2925544381, 0.3545769453, 0.1828720719, 0.2068864405, 0.1387791336, -0.0111588202, 0.0016289384, 0.1781060994, -0.0697038993, 0.1052992493, 0.3057503998, -0.0951659307, -0.1911695302, -0.0606807321, -0.3206846416, 0.1676613986, 0.0921662599, -0.2944571972, -0.1731499881, 0.184999451, -0.0621066503, -0.2069590539, -0.2465740591, -0.4182299972, 0.4067118764, 0.2116329074, -0.0132813742, 0.4017716348, -0.0001121963, 0.1463090628, 0.3609667718, -0.0118748369, -0.2743211687, 0.0589584634, -0.3574694097, -0.4000298083, -0.2054270953, -0.1293688267, 0.0501883179, 0.1765699536, 0.0909596086, -0.0960204676, 0.0456650183, 0.3521713614, 0.2322650403, 0.3720604777, 0.120658718, -0.1288905591, 0.3179792166, -0.0899650976, -0.0678586811, 0.2471774817, 0.115135394, 0.0584351681, -0.2333067209, 0.26373595, 0.0712570399, -0.1435857266, 0.1074530035, -0.1782396436, -0.0344054326, -0.3530971408, 0.2641153932, 0.4801808596, 0.7626395822, 0.067147851, -0.3485156596, -0.0574802086, -0.1447701603, -0.0353274494, 0.4738018513, 0.1406771988, 0.030864913, 0.0727359056, -0.2538781464, 0.2222839296, -0.0102371918, 0.2292406112, -0.0895997509, 0.2683905363, 0.0254792757, 0.0054685408, 0.0467840731, -0.073785834, 0.3437826335, -0.1402773559, -0.2881657183, 0.0911719278, -0.230981037, -0.0309530776, 0.1132082045, 0.3474101424, 0.3019768, 0.1324879527, -0.077262722, 0.2700100839, -0.2145813257, 0.1422058791, 0.1329951733, 0.0609979518, 0.021231709, 0.2251033485, 0.3896214366, 0.2267390192, 0.0899352804, 0.1189350262, 0.0310908314, -0.3178119957, 0.2106016278, -0.0249812491, -0.0529022366, -0.3350431025, -0.2397470027, 0.3281224668, -0.0459095128, -0.3272864819, 0.0117565785, 0.2553392649, -0.2220917642, 0.2956216037, -0.2900613248, 0.200878635, 0.011630117, -0.0393690802, -0.2468171269, 0.03921251, -0.2411167473, -0.0887132883, 0.2798561454, -0.0857619941, 0.275914669, -0.0155424159, 0.0552603193, -0.2210910022, -0.0446361452, -0.0334916599, -0.2132917792, 0.3799151778, -0.0787835121, 0.1663915217, 0.0699696019, -0.1595644206, -0.0371517986, 0.0764044598, -0.1545031965, -0.1747360677, -0.1084293649, 0.2518773377, -0.4321027696, -0.2231096774, -0.1340696961, 0.0163280629, 0.117895253, -0.3149433136, 0.0129273143, -0.1260066628, -0.1943877935, -0.2618550658, 0.1870054305, 0.4019263387, -0.3023402095, -0.0232707988, -0.1823228747, -0.284827739, 0.2355713546, 0.1609024405, -0.1289332956, 0.1814380884, -0.2432225049, -0.0052915066, 0.2092022449, -0.2908587754, -0.6658648252, 0.0049503013, 0.0380913578, 0.1542324722, 0.2416580617, 0.0621552579, 0.0861421302, -0.0564694181, -0.1621897668, 0.0558741018, 0.0746805668, 0.0451983623, -0.3278887272, -0.1714452654, 0.2115720361, 0.3938112557, 0.4312631488, -0.2194579542, 0.4997038245, 0.0074162781, 0.1939437389, -0.2174017429, -0.0024493681, 0.0845105127, 0.3978990912, -0.0799846575, 0.023713259, -0.0413202234, -0.3278669715, 0.4429023266, -0.0391470604, 0.0405076817, -0.0520953201, -0.12669833, -0.271276474, -0.1623122096, -0.3423415422, -0.0554055758, 0.1371206641, 0.3026054502, -0.0158609357, 0.2044568956, 0.0273738168, 0.1284891367, -0.5256738067, 0.0420431718, 0.0481822118, 0.2597940266, -0.1240629628, 0.0058828453, 0.1246682853, 0.0992970765, 0.0987914428, -0.0470512174, -0.1909766048, 0.3082259893, 0.2828398049, 0.2788022161, 0.1735418141, 0.1547736228, 0.1121040136, -0.3107187748, -0.0820141807, 0.2652204633, -0.1046790853, -0.2542715669, -0.3573022485, 0.4060258865, -0.0496168137, -0.0325203836, -0.0627220571, 0.1177698299, 0.3678384423, -0.0515310057, -0.1578395963, -0.2539518178, 0.3428279757, 0.07265082, 0.1073363423, 0.1226062924, -0.2330143154, -0.0700387955, 0.4974801838, -0.145506382, -0.0020781001, 0.1813171953, 0.2159092724, -0.0173030812, 0.1314569265, 0.52135849, 0.1450691968, 0.0896788687, 0.2361617833, 0.0518188775, -0.1459525377, -0.1474685371, -0.0182253215, -0.074384056, 0.1252346635, 0.4634183645, -0.0918280929, -0.016151594, -0.6106398702, 0.0051127863, 0.0962449089, 0.3151153326, -0.2992806137, -0.2282572538, -0.0880936608, -0.138259232, -0.315415442, -0.0629923344, -0.4115452766, -0.5413972735, -0.004087389, 0.0362323634, 0.0005863333, 0.1515586823, -0.3392376006, 0.0682109669, -0.171921134, 0.0220043827, 0.05922563, 0.0131761516, -0.1600787044, 0.1361154169, 0.643056035, -0.0059279026, 0.4341422915, -0.4331227541, 0.0553330071, -0.4075478613, -0.4340150654, 0.0458609946, -0.1136180088, 0.1817964911, 0.0553388521, 0.1882716417, -0.2814408243, -0.2978281677, 0.057482969, 0.115840435, -0.1857206374, 0.2240146697, -0.1445130706, -0.1537801921, 0.0844442397, -0.2872749865, -0.1813552678, -0.2275400907, 0.0015404827, 0.0912523866, 0.2049351335, 0.0019290126, -0.0294950716, 0.2374272645, -0.0749902204, 0.1122087017, -0.2473241389, -0.5432507396, 0.541539669, -0.1286886036, -0.3952293992, 0.238993451, 0.0579359829, 0.1832259595, 0.1102750078, -0.6624624133, -0.0184650999, -0.2211352289, 0.2416521311, 0.2560698688, 0.0205149408, 0.3066313565, 0.0761024207, -0.0208981968, -0.2089377642, -0.0228607506, -0.0473885611, -0.1169828847, 0.5548337102, -0.3558394611, 0.282697469, 0.0112470863, 0.7115709782, 0.3619566262, 0.1010401174, 0.2355142683, 0.119609572, 0.4429763854, 0.0093333665, -0.1098078936, 0.2277194709, -0.3095940948, -0.1276212931, 0.3517260253, -0.0971311182, -0.2874934971, -0.2891195714, -0.0230203681, -0.2868081927, -0.1588059217, -0.011629248, -0.2746293247, 0.2497251034, -0.0342070647, 0.1556484699, -0.0345640928, -0.3581036329, 0.2504662573, 0.3412089944, -0.1776503772, -0.1394559741, -0.5780329704, -0.1017406434, -0.2105921954, 0.1399424523, 0.0564429127, 0.4263204038, -0.1391598731, 0.0934852287, -0.0207334571, -0.1740332097, 0.402890712, -0.6320542097, 0.1331567019, -0.1070837304, 0.194128558, -0.016536044, -0.2562409639, -0.1552896053, -0.0989624485, 0.2430929095, 0.1909290105, -0.3003506064, 0.1916973591, 0.2821142972, 0.3068682551, -0.1341222078, -0.2055131346, -0.2489888072, -0.1855868399, -0.1025235653, 0.0955209956, -0.0050773872, 0.1048212051, -0.2150095403, -0.0609644353, 0.034459386, 0.0853234977, 0.2776673734, -0.005089575, 0.1195643097, 0.3759468496, 0.2603721023, -0.0099586146, 0.010591276, 0.2855477035, 0.792975843, -0.2066679597, -0.3299407959, -0.0220236722, -0.464404583, -0.0758641288, 0.3000057042, 0.1054897532, -0.1046773866, 0.477660805, -0.1492584646, 0.1929715723, 0.0276314765, 0.3113021255, 0.0651325732, -0.5762146711, -0.2994310558, 0.1800295264, 0.0540647842, -0.0911931843, 0.4034285545, 0.1139010116, -0.1618091613, 0.1401606798, 0.1852488965, 0.9065539837, -0.0883192867, 0.0051343292, 0.0850197598, -0.1564732045, 0.1460812837, -0.206489414, -0.1242254674, -0.2893838584, -0.3590064645, -0.1685237586, -0.1002535075, 0.1999050379, -0.0198979639, -0.173428297, 0.2014436126, -0.043446146, 0.3870297074, 0.0553174093, 0.2879033089, -0.2543852627, 0.003542329, 0.0959182084, 0.1357626617, -0.0360528193, 0.0978304148, -0.1895660311, -0.0591926463, -0.0716223493, -0.1316195279, -0.567062676, 0.1328613758, 0.0793286338, 0.0913984329, 0.201539278, -0.101296939, 0.0109591866, 0.5014885068, 0.4240870774, 0.120773688, -0.2556740344, 0.3244326115, 0.2611975372, 0.1340689808, 0.1143831089, -0.1142128855, 0.3521732092, -0.1796777695, -0.2389579266, 0.1625952125, -0.2159946263, -0.2577542365, -0.1763629168, -0.2062766403, -0.2281087339, -0.2432601005, -0.1578402072, 0.0160907116, -0.1765634567, -0.2648538351, 0.1953225732, 0.2053898424, -0.1067498252, 0.3219233155, 0.0478057526, -0.1733448207, -0.2469690293, 0.4864710867, -0.0772842318, -0.2179633677, 0.372846961, 0.1044338048, -0.323884964, -0.1592887193, 0.084044151, 0.1189377606, -0.374168694, -0.3728067279, -0.3173364401, 0.0852361023, 0.0108060818, 0.434776932, 0.4808287919, 0.1086805984, 0.1935251206, -0.5308428407, -0.1534623653, 0.0308681428, 0.1942666024, 0.3674349785, -0.404145211, -0.2772809267, 0.1877484769, -0.0724910721, -0.3335558474, -0.1197405979, -0.2054001391, -0.0253032278, -0.0619572885, 0.161898151, 0.087777473, -0.2106649131, 0.1259081066, -0.1199794784, -0.2330161333, -0.1691282541, -0.1095471382, 0.1325066239, 0.2720010579, -0.0783467665, 0.1959628314, -0.2915342152, 0.0108677177, 0.0816563889, -0.0374804139, 0.1195244864, -0.168417275, 0.0900535658, 0.2148121893, 0.1011115983, 0.0214049406, -0.1318855435, -0.2800796032, 0.068586193, 0.0285463631, -0.0282947961, 0.2519230247, -0.0619653873, 0.1850538552, 0.1734404713, -0.1153479517, 0.0740565434, 0.2842767537, -0.3043803573, 0.0796320066, 0.4003631771, 0.380245626, 0.5603520274, -0.4356019497, -0.0276741926, 0.4018414617, 0.2327748984, -0.3677325249, -0.1732645631, 0.2290306538, 0.1816267669, -0.034654405, -0.0092540998, 0.3343524635, -0.4934135973, 0.4440360069, 0.1682320982, -0.0415191166, -0.4181084633, 0.4029769003, 0.6176370382, -0.181291014, 0.1379186362, 0.2069429606, -0.2488133907, -0.2326359749, 0.260631144, -0.0298259109, 0.3266485631, -0.1936119199, 0.1419975758, -0.1711499244, -0.3987632692, 0.6434701681, 0.0683232173, -0.3435639739, 0.0043174918, 0.2330909818, 0.2992977798, -0.0939558074, 0.2245432436, -0.6349982023, -0.0985109359, -0.1355163306, 0.0031439234, -0.2462889105, -0.3027894199, -0.0642252192, 0.3353810906, -0.1121764258, 0.0971076861, -0.0527519844, 0.2741307914, -0.4017369151, -0.2304773033, 0.004655174, -0.3276812732, 0.2821129262, -0.2547485828, 0.1956744939, 0.077850394, -0.1493588239, 0.0248061568, 0.2773587108, 0.2114954293, 0.3314644098, 0.1284664273, -0.031944681, 0.1624027193, 0.0492329784, 0.0135096544, 0.576282382, 0.240574792, 0.0077212085, 0.4135954082, 0.1530102789, -0.2103035152, 0.2717005908, -0.1533905417, -0.1308336705, -0.1383735389, 0.1699821502, -0.0598071739, 0.1250157207, -0.1643882841, 0.0164770391, -0.3708808422, 0.0223224033, 0.2438339442, 0.2063221484, 0.1576701105, -0.1936303377, 0.090067111, 0.1720416695, 0.4127338827, 0.3325987756, -0.0221087076, -0.1403412968, -0.3617286086, -0.8754769564, 0.2293620259, -0.225134328, 0.2739360332, -0.0276543871, 0.0042452025, -0.0382894427, 0.1166279465, 0.3134618402, -0.1361171007, -0.2415893376, 0.1224875823, -0.1818809062, -0.0943871289, -0.0892553255, 0.05976988, -0.1835642606, -0.2614558637, 0.4266708791, -0.0452458486, 0.0857357979, -0.0023914338, -0.216865465, -0.0999499187, 0.1037550867, 0.2703511715, -0.0022479987, 0.7235940695, -0.0937837586, -0.0837388411, -0.3090671301, -0.2716639936, -0.1342144161, 0.3897967637, -0.1653951108, 0.5563836694, 0.1646447033, -0.0548349954, -0.1006105691, 0.1927266568, 0.1382348835, 0.0615388118, -0.1492010206, -0.1895350367, 0.1230991483, -0.1394973993, 0.3151596785, 0.0950052589, 0.0479438268, 0.0341502763, -0.1363588572, -0.3330022395, 0.1974919736, -0.1975666285, -0.004540781, -0.248860985, 0.0340966247, -0.1660919189, -0.0897194371, -0.5596006513, 0.0604790822, 0.3483455479, -0.0154237729, -0.0943460986, 0.1488525122, 0.0079917088, 0.1212232038, 0.0029006926, 0.1616553217, -0.0643388629, -0.2888343036, 0.0096586989, -0.2657346129 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
I can see this problem too in xcopa, unfortunately installing the latest master (1.18.4.dev0) doesn't work, @albertvillanova . ``` from datasets import load_dataset dataset = load_dataset("xcopa", "it") ``` Throws ``` in verify_checksums(expected_checksums, recorded_checksums, verification_name) 38 if len(bad_urls) > 0: 39 error_msg = "Checksums didn't match" + for_verification_name + ":\n" ---> 40 raise NonMatchingChecksumError(error_msg + str(bad_urls)) 41 logger.info("All the checksums matched successfully" + for_verification_name) 42 NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://github.com/cambridgeltl/xcopa/archive/master.zip'] ```
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
74
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No I can see this problem too in xcopa, unfortunately installing the latest master (1.18.4.dev0) doesn't work, @albertvillanova . ``` from datasets import load_dataset dataset = load_dataset("xcopa", "it") ``` Throws ``` in verify_checksums(expected_checksums, recorded_checksums, verification_name) 38 if len(bad_urls) > 0: 39 error_msg = "Checksums didn't match" + for_verification_name + ":\n" ---> 40 raise NonMatchingChecksumError(error_msg + str(bad_urls)) 41 logger.info("All the checksums matched successfully" + for_verification_name) 42 NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://github.com/cambridgeltl/xcopa/archive/master.zip'] ```
[ -0.3634573221, 0.2217582166, -0.0390356928, 0.1520665884, 0.1960245818, -0.0046920897, -0.016568698, 0.4806540906, 0.0124927619, 0.1067954972, 0.0860225409, 0.1600408703, 0.2092339993, 0.1283581704, -0.1657698601, 0.3392213881, 0.2206757218, 0.0590420403, -0.2113899887, -0.0897831768, -0.3299868107, -0.0092421463, 0.0434560217, -0.3702936471, -0.2110364586, 0.2245365679, 0.0093348622, -0.3594245613, -0.3264990151, -0.4185554981, 0.5466646552, 0.2197136879, -0.0881338939, 0.2510865033, -0.0001139345, 0.2255783975, 0.4916991293, -0.0334921405, -0.1301147044, 0.0573250726, -0.5727484226, -0.2505688667, -0.2062242627, -0.1000929177, -0.0513586961, 0.1637927443, -0.0833978876, -0.0672476813, -0.072388202, 0.242549628, 0.1950820684, 0.355071485, 0.1313629895, -0.0388003588, 0.2899053693, -0.0501925759, -0.0310711619, 0.1560602188, 0.1035278663, 0.1247444674, -0.1135008037, 0.2756742239, -0.0733578503, -0.2580089569, -0.0850613192, -0.2370333225, 0.1488456428, -0.183450073, 0.2543840706, 0.4078856409, 0.5357618928, -0.1486240923, -0.3351546526, -0.0596356466, -0.1194320545, -0.1829404682, 0.4538166523, 0.0964056179, -0.0209471844, 0.0660034567, -0.1946442574, 0.2606696486, 0.0211784411, 0.2225609124, -0.0251126513, 0.3371700048, 0.128389284, -0.0029068878, 0.1510203928, -0.0360054821, 0.5746415257, -0.1349977553, -0.3604211211, 0.166350022, -0.3483102322, -0.0014672299, -0.0002132818, 0.4169414937, 0.4714284539, 0.0882288963, -0.0827084854, 0.2438015193, -0.1719439477, 0.1578947604, -0.0447790697, 0.2244597822, -0.0235704519, 0.388078928, 0.1165979356, 0.1886936277, -0.0718721375, 0.1159353852, 0.124801293, -0.3089083731, 0.2137678117, 0.2668445706, 0.02469966, -0.4375728071, -0.2234166414, 0.3009350896, 0.0163319428, -0.2949092686, 0.2497535944, 0.2732068002, -0.102242969, 0.5024857521, -0.2264558524, 0.1637039632, -0.1313104779, -0.1101759896, -0.2292999476, -0.0158862956, -0.2489551753, -0.0269960705, 0.2081589401, -0.3280997574, 0.3740616143, -0.0025190995, 0.2814955711, -0.2433121204, -0.0138612976, -0.113536194, -0.1100089997, 0.2595210671, -0.0732936636, 0.017546095, 0.0914086252, -0.0348765217, -0.0794272497, 0.0835394189, -0.3359378278, -0.0633797199, 0.0041350522, 0.2597444355, -0.4431792498, -0.1055692434, -0.1516691893, -0.2823311687, 0.2714229226, -0.1195514202, -0.0062137255, -0.167093724, 0.0071557416, -0.199366346, 0.0804665312, 0.1566428989, -0.1580190659, 0.0762370899, -0.0275204163, -0.1368152052, 0.1813880503, -0.0126274405, -0.0944507644, 0.3111424148, -0.1911142617, -0.0500599854, 0.1041202471, -0.5962737799, -0.7689025998, -0.1865933239, 0.3095913529, 0.2092161477, 0.173878029, -0.0858601332, 0.1033188403, -0.1357979774, -0.3754766583, -0.0541894585, 0.1690144688, 0.0986005068, -0.2438967377, -0.1508105695, 0.0396001823, 0.2239179164, 0.1962785274, -0.234500438, 0.287627697, -0.1017187163, 0.245759815, -0.2485964, 0.0269930158, 0.0971402004, 0.431155324, -0.0168644879, 0.0510398895, 0.0154451169, -0.0233340561, 0.386248827, -0.0511805378, 0.161893636, -0.0453082137, -0.1407321393, -0.2795665264, -0.16331397, -0.4493745267, -0.0144459223, 0.1493973583, 0.2919469178, 0.0842829719, 0.1570370793, 0.0710934028, 0.1438406855, -0.5047531724, 0.0067185946, -0.1339939833, 0.1448826492, -0.0282203238, 0.0071027847, 0.1917279512, 0.3070705235, 0.1832425892, -0.0377742872, -0.2340924591, 0.3226475418, 0.3398546875, 0.2355362773, -0.0184577908, 0.2227363884, 0.1116510257, -0.5854957104, -0.0470594577, 0.2284665704, 0.0506337322, -0.1292463988, -0.1104486808, 0.4017411768, 0.040966019, -0.0432967693, -0.0806945711, -0.0254895836, 0.4137809575, -0.1971381903, -0.2287991494, -0.2732155323, 0.2030036151, 0.2050539702, 0.0971649811, 0.2035532445, 0.2256782502, -0.0754480734, 0.4232519567, -0.1062709913, 0.037356481, 0.1138800904, 0.2194246799, 0.1228872985, -0.0364865512, 0.5303390622, 0.1804707795, 0.1211037636, 0.0328634158, 0.1150276437, -0.3244566917, -0.0255212523, -0.0019360428, -0.0347805247, 0.2392192185, 0.42846331, -0.1507628709, -0.0787221566, -0.4129522443, -0.0385005288, -0.0201826505, 0.3083796799, -0.3606129885, -0.2553162575, -0.3567479849, -0.3168809116, -0.1933463216, 0.0418622121, -0.1216752678, -0.4632620513, -0.0543207526, -0.0195360351, -0.0061783073, 0.3221710026, -0.5358049273, -0.0642521307, -0.1387611479, -0.1890019774, 0.1294365972, -0.1025478765, -0.033603508, 0.091457516, 0.5303921103, -0.059939608, 0.2663107812, -0.4404430091, 0.1127862334, -0.2505290806, -0.4522189498, 0.0925040618, -0.2644736469, -0.015387848, 0.0138085643, 0.0914319307, -0.1202025488, -0.3200678527, 0.0816799328, 0.1290529221, -0.3398221135, 0.1617749482, -0.2297863364, -0.2532000244, 0.1172393486, -0.2593001723, -0.0783352405, -0.1527516991, -0.1914141625, 0.2056280375, 0.1268027425, -0.0792863667, 0.0557547621, 0.1161812469, -0.1673594564, -0.0227522627, -0.2798980176, -0.7397509813, 0.5351418257, 0.0111237932, -0.3585604727, 0.1192597747, -0.1775103211, 0.5888105035, 0.0698418245, -0.468411684, 0.0231009815, -0.1784364134, 0.1969543099, 0.4038407505, 0.0500997119, 0.2320294827, 0.1058007851, 0.0384810679, -0.2956574857, -0.0791114047, 0.0240641478, -0.0895502716, 0.5666339397, -0.2072358727, 0.1848534942, -0.0280257668, 0.5037477016, 0.4361941814, 0.2030820847, 0.388571471, 0.1375207156, 0.3585475981, -0.1939565539, -0.1922462434, 0.1172613278, -0.1737772077, -0.0012925357, -0.0123919118, -0.0643631741, -0.1229471415, -0.1391903609, -0.1871790886, -0.5072657466, -0.1990104914, -0.0315355882, -0.1416000426, 0.2040146291, -0.0973492041, 0.0713105351, -0.0777870193, -0.464381367, 0.162309736, 0.2989318967, -0.2026147693, -0.1169180423, -0.6668239832, -0.0637287498, -0.0957245976, 0.2471214533, 0.1292241514, 0.3670236468, 0.1369214207, -0.0432823338, -0.0887347385, -0.1037759706, 0.2071006596, -0.3519766033, 0.1614109725, 0.0411610678, 0.0852708369, -0.0130485483, -0.2124811113, 0.0495570786, -0.3370874822, 0.071734339, 0.0936836675, -0.2212761045, 0.2348219603, 0.0241316985, 0.3059916794, -0.1803626269, -0.1814723015, -0.3244777322, -0.1924930662, -0.2281086594, -0.0014831462, 0.062992081, 0.2394641042, -0.1906569004, -0.1302717179, -0.0726893917, -0.1352385879, 0.2846513987, 0.1867978126, 0.2607541084, 0.0541950837, 0.2659834921, -0.0470318273, 0.0122122662, 0.4053132534, 0.7856934071, -0.1380911022, -0.4249725044, -0.1540711671, -0.4115915596, 0.1467024535, 0.003651015, 0.0752658099, 0.0050397716, 0.2612486482, -0.3312098384, -0.0270339493, -0.0184113756, 0.0126109859, 0.2048458457, -0.6091312766, -0.258209765, 0.1725807935, 0.076318115, -0.1009340435, 0.4174735546, 0.1300457269, -0.2401965559, 0.2051633447, 0.3496789038, 0.8791460991, -0.0495725423, -0.122412093, 0.0241495445, 0.1834742427, 0.125151217, -0.2188594043, 0.008542005, -0.3101395071, -0.4599716067, -0.0971537754, -0.2073599696, 0.3309385777, -0.0879692957, -0.2445931584, 0.2134608328, -0.0962973833, 0.136541903, 0.0620743334, 0.2420773655, -0.2512411475, 0.0065891249, 0.2692484856, 0.1360147297, 0.1035709605, 0.1292553544, -0.0398275256, -0.029487785, -0.3021467328, -0.2045472562, -0.4149215519, 0.2861692011, -0.002208804, -0.0174129363, 0.3039288819, 0.1844183058, -0.0762051046, 0.3437405825, 0.3560351729, 0.1671728641, -0.2121596783, 0.3771031201, 0.3957270682, 0.1151439548, 0.1972666085, -0.1807259917, 0.3155065477, -0.1819701642, -0.3715263903, 0.2733804584, -0.0602231808, -0.3675970435, -0.0166586861, -0.2412792593, -0.0846926644, -0.339212656, -0.0664509237, -0.0065850965, -0.1021986008, -0.2229675055, 0.1760689914, 0.2458362728, -0.1837857217, 0.2567531765, 0.043585185, -0.3045629561, -0.0876660571, 0.3572773039, 0.1614842862, -0.1592826992, 0.4566824436, -0.1727924049, -0.200152874, -0.1668107808, 0.1205601692, 0.0614201166, -0.4787353575, -0.4713894427, -0.2419715375, -0.0312966332, 0.0838214979, 0.4181940854, 0.4039136469, 0.217961818, 0.0705798641, -0.6135215163, -0.1956000477, -0.0659155026, -0.0466526337, 0.2806245685, -0.4515789151, -0.0057050139, 0.1243958324, 0.0494224094, -0.2754029632, -0.1863231361, -0.2376628965, 0.047734946, -0.0911159068, 0.2596861422, 0.0375624672, -0.2078907341, 0.2003356516, 0.0709726438, -0.1309775412, -0.1921981126, -0.1737885326, 0.1026126668, 0.2710535526, -0.0601180382, 0.0925628841, -0.0685493201, 0.0897084922, -0.043942757, -0.053043738, -0.0378662869, -0.1689551622, 0.2951086164, 0.1849519014, -0.0843830779, 0.0056566442, -0.1260869205, -0.3298452497, -0.1180799231, 0.033794947, 0.0134415608, 0.0470674522, -0.0342144147, 0.1941424906, 0.1660080105, -0.1359723508, 0.1722242087, 0.2598154843, -0.0736003146, 0.1869965941, 0.4962015152, 0.1402038485, 0.2916101515, -0.3536539674, -0.0234072488, 0.4794994593, 0.198118329, -0.4694268703, -0.1827058196, 0.2257519662, 0.2494769245, 0.0446770638, 0.0172779169, 0.3572230935, -0.5105644464, 0.4647780955, -0.0293392763, 0.0247201249, -0.2563377321, 0.5868944526, 0.8178571463, -0.0281517208, 0.0652349368, 0.1356885433, -0.3078013659, -0.2340218872, 0.2054088414, -0.1143509224, 0.4320076704, -0.2840560675, 0.2566130459, -0.1668201536, -0.4245359302, 0.4803496599, 0.0418821983, -0.2928909361, 0.0621473975, 0.1582822949, 0.1537425369, 0.2714036703, 0.1935057938, -0.603083849, -0.0387037806, -0.02476326, -0.0606385544, -0.2899235189, -0.2323318124, 0.0296620689, 0.152068764, 0.127731815, 0.0681080967, 0.0118038906, 0.1404333264, -0.4092500806, -0.0511903837, -0.0856301636, -0.2357095927, 0.1663615108, -0.0942832828, 0.3169236481, 0.0059796963, -0.1597352475, 0.0640118718, 0.3693749905, 0.2557518184, 0.414406687, 0.2399012744, 0.0482586771, 0.0828903466, 0.1054530218, 0.0758893639, 0.6630914807, 0.128777355, -0.0341464169, 0.3724921346, 0.1857577562, -0.1226664633, -0.1284184456, -0.1625555456, -0.0544975474, 0.0036932896, 0.134440437, 0.1880929768, 0.3500260413, -0.085112527, 0.2644189596, -0.3373855054, -0.0511075817, 0.3944269717, 0.0583456419, 0.1443983614, -0.1295519173, 0.0866185203, -0.1224195212, 0.3859564662, 0.2878337502, -0.2044998556, -0.247179389, -0.3604895771, -0.7882748246, 0.1461727768, -0.2977527082, -0.0704835802, 0.0352101922, 0.0043281838, -0.0293074939, 0.1939623654, 0.3660513163, -0.1538200825, -0.0079886951, 0.0370257273, -0.2140233964, -0.0646595657, -0.0748304576, -0.062474262, -0.135485515, -0.2481793463, 0.2703085542, 0.2150871903, 0.1675119996, 0.0490617752, -0.0555116199, -0.0537810437, 0.0562309586, 0.1954620928, 0.0641697645, 0.532238543, -0.0465493612, 0.0349756405, -0.308886081, -0.1474563479, -0.0756339282, 0.4101512432, 0.061171364, 0.2801378071, 0.0930631682, 0.1286674738, -0.1434540898, 0.2945933342, 0.1739763469, -0.2733500302, -0.3375013173, -0.0011500493, -0.0670108125, -0.1258277744, 0.186224103, 0.0436574966, 0.0306950845, 0.2505968511, 0.0159153361, -0.2013186365, 0.1466928571, -0.2370879501, 0.1278299242, -0.1464563757, -0.0356917568, -0.0981668904, 0.0650200099, -0.6526027918, 0.1276972592, 0.4094690382, 0.0307440013, -0.0629570782, 0.1139331907, 0.0562706254, 0.2443683594, 0.0359403864, 0.0552498847, -0.0227636583, -0.1008456275, 0.0800025836, -0.1000506356 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
Hi @rafikg, I think that is another different issue. Let me check it... I guess maybe you are using a different Python version that the one the dataset owner used to create the pickle file...
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
35
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No Hi @rafikg, I think that is another different issue. Let me check it... I guess maybe you are using a different Python version that the one the dataset owner used to create the pickle file...
[ -0.1837106794, 0.1279495656, -0.0920477808, 0.2596702278, 0.250797838, -0.0687125847, 0.1381366551, 0.4400169253, 0.4555806816, 0.1520557553, 0.0166322291, 0.4371010959, -0.0223840903, 0.2981742322, -0.1252115518, 0.0508493707, 0.2061954588, 0.0645043701, -0.3080223501, -0.1772564948, -0.183379963, 0.0459082089, 0.042642463, -0.2525209188, -0.2048215121, 0.0198515225, 0.0159438625, 0.0702446997, -0.2179638147, -0.3563273847, 0.2247383595, 0.0803571716, 0.0169110652, 0.3639424145, -0.0001098583, 0.1953142136, 0.2266062945, -0.0610340126, -0.1925610602, 0.0254566018, -0.2994519472, -0.3886964619, -0.1018153504, -0.2876324654, -0.1001750901, 0.1234685704, -0.0243179854, -0.2047750354, 0.2083334476, 0.3270480037, 0.2862397432, 0.4228649437, 0.1678297818, 0.1190710738, 0.2620044053, -0.1490418613, -0.0685956329, 0.2557103336, -0.0603151694, 0.0888671875, -0.2249463052, 0.2761290073, 0.0354711264, -0.1054694131, -0.0711271837, -0.1122573018, -0.1392607689, -0.2311637253, 0.1794042289, 0.4440362453, 0.5254741311, -0.0637522861, -0.3858267665, -0.0568045489, -0.1382534951, -0.0540765822, 0.3208707273, 0.2015171349, 0.0418240465, 0.0703693479, 0.0656210631, 0.0275270808, 0.1179615334, 0.1669703871, 0.1519867033, 0.4212057292, 0.0426651686, -0.0297996942, 0.1475410908, -0.1493615061, 0.1190248132, -0.1159613878, -0.2355286181, 0.2588360608, -0.1586147547, -0.0794005468, 0.0832495987, 0.2105811089, 0.2272725105, 0.1582142115, -0.206115976, 0.2631705105, -0.5139995217, 0.0970157087, 0.1250506192, -0.0995834693, -0.0054050223, 0.4181598425, 0.2440286279, 0.1126210839, -0.2319517583, 0.1042946279, 0.0145255718, -0.330154568, 0.168752715, -0.0371954069, -0.0530338623, -0.2394012511, -0.0520341918, 0.2708120644, 0.0187946837, -0.2278484106, 0.0342284963, 0.2991210818, -0.2435111254, 0.1506123245, -0.1739815027, 0.2190240026, -0.2628976107, -0.0296106227, -0.2792403698, 0.1497236937, -0.1236692667, -0.1439273804, 0.1465772539, -0.2184090316, 0.4484279454, 0.0282988008, 0.0213179644, -0.0990246832, 0.003460736, -0.16309084, -0.1197389513, 0.2568807304, -0.038630899, 0.031872876, 0.293702364, -0.3306816816, -0.0754775777, 0.1215505525, -0.3162703216, -0.0432148576, -0.2383592576, 0.2684857249, -0.3696349263, -0.1251151413, -0.1562824845, -0.2218887508, 0.2508494556, -0.3410389125, 0.0346542895, -0.248742789, -0.1786742657, -0.2333723158, 0.0210007429, 0.2397783846, -0.4336729944, 0.0455386303, -0.0677605644, -0.1925333589, 0.278519392, 0.1883740574, -0.0684209093, 0.1143827066, -0.3408777714, 0.3613529205, 0.3370781243, -0.2554219663, -0.5596560836, -0.0669446364, 0.2126807421, 0.1853817105, 0.1174375266, 0.0607455187, -0.1334761232, 0.0740352571, -0.0898519233, 0.0596645847, 0.3936369717, 0.172651574, -0.3381372988, -0.0394435041, 0.350918442, 0.1663111448, 0.1363600641, -0.1765655279, 0.2964217663, -0.3152950704, 0.4309864342, -0.126952678, 0.0001769798, 0.1553296, 0.5322552323, 0.0730093792, -0.0088883964, -0.1401402652, -0.0647077337, 0.3137409985, -0.1866510957, 0.1931515783, -0.110760808, -0.0919201449, -0.2524578869, -0.1420798004, -0.4565196931, -0.0252677146, 0.1868504286, 0.1929930747, 0.0897422656, 0.2391290963, 0.0715043917, -0.0307856835, -0.5189890265, -0.0203907266, -0.1414519697, 0.3249925375, -0.2267251015, -0.1608241796, 0.0063768155, 0.1558340192, 0.0248465016, -0.0202004854, -0.2362949401, 0.2243084013, 0.641677618, 0.0033626761, 0.1569417417, 0.031694483, -0.1279967278, -0.2826163173, -0.0336734541, 0.3249646127, 0.1470144838, -0.0985000134, -0.2763731182, 0.5556147695, 0.0352925546, -0.069494918, -0.009489378, 0.0311424565, 0.4056506157, 0.0189012215, -0.1136310548, -0.2747991085, 0.0642351508, 0.0418617576, 0.1189542785, 0.1752709001, -0.2464985251, -0.0633246154, 0.4687607586, -0.0300361365, 0.2200409621, 0.1378833055, 0.2034178078, -0.0776545405, 0.0857032537, 0.2691552341, 0.2426615059, 0.1494556069, 0.1267056018, 0.0099030957, -0.0842584223, -0.0640886202, 0.0147187198, -0.1871045083, 0.2280610651, 0.4420962036, -0.0329046771, -0.1883386225, -0.4598088264, 0.1113866121, -0.1529736966, 0.293387264, -0.233351022, -0.0517878979, -0.3318135738, -0.0445075519, -0.3081261218, -0.1152398065, -0.3320174217, -0.4242045283, 0.0004067883, 0.0024835928, -0.0777878165, 0.2671740353, -0.4119134843, -0.1786642671, 0.0536812134, -0.0781375021, 0.043931555, -0.2255784571, -0.1414554417, 0.1240782887, 0.5758266449, 0.1559127718, 0.3514198065, -0.1338613182, -0.119498007, -0.3694280982, -0.2386046201, 0.006837368, -0.1855194569, 0.3731231689, 0.2028132379, 0.3383084834, -0.2931672931, -0.1705396175, 0.1574045122, 0.0745807141, -0.3471683264, 0.1264226139, -0.0103799039, -0.0779267773, 0.1646077782, -0.3944219649, -0.2597931325, -0.2405375689, -0.0421294942, 0.3098192513, 0.2361101508, 0.1788619906, 0.140259251, 0.2043360621, 0.1547925472, 0.1862904131, -0.3219769895, -0.4618421197, 0.5113164186, -0.1372174323, -0.4123414457, 0.119118169, -0.2202099562, 0.2088119388, -0.1857350469, -0.4163480103, 0.0272200275, -0.3612753451, 0.3696192503, 0.194527939, 0.2611678243, 0.2279690504, 0.1481056362, -0.0379106514, -0.2633202672, 0.0542690791, 0.0402434096, -0.0090998104, 0.343387574, -0.1509934366, 0.0712009147, -0.1638161689, 0.7019245028, 0.3543436527, 0.0210625827, 0.4377120435, -0.085913673, 0.2890711427, -0.2627668381, -0.2535892427, 0.0583992153, -0.1795857102, 0.0243144706, 0.0966960713, -0.1135188639, -0.0227100793, -0.0874096975, -0.0097313961, -0.4314146042, -0.208554998, 0.1055367216, -0.1933891624, 0.1096616909, -0.0750275701, 0.0356615856, -0.0838818699, -0.2418972701, -0.008776756, 0.3082973361, -0.0939187855, -0.1610276401, -0.4316221178, -0.2189794928, -0.0907796696, 0.0977080241, 0.1934302002, 0.180573985, 0.0753227919, -0.2069531828, -0.0103106266, -0.0861868933, 0.4149079621, -0.43884781, 0.2019740194, 0.0159851406, 0.2233088911, -0.0654834136, -0.2312259972, -0.1096827388, 0.0286614075, 0.0901118144, 0.2488556802, -0.2414717078, 0.1236292124, 0.0998589471, 0.3781714141, -0.2140522748, -0.2405861914, -0.5649895668, -0.1547680497, -0.2260806113, 0.1543027461, -0.0157357007, 0.2755842507, -0.2032549977, 0.0715251267, 0.0154116517, -0.0385855138, 0.1040713266, 0.0483643301, 0.3691205978, 0.213402018, 0.2196919769, -0.2272252887, 0.0538532808, 0.1301749498, 0.8239239454, -0.3572696447, -0.1671994925, -0.159109354, -0.4157259166, 0.0844007283, 0.0264699664, 0.1864124835, 0.0963857621, 0.3853492439, -0.1278585196, 0.0714400709, -0.0281665307, 0.1590173542, 0.101962693, -0.3739685416, -0.4796409309, 0.2160266936, -0.0966939852, -0.004542002, 0.2480698228, 0.2409733087, -0.1148021147, 0.2913430333, 0.1354798377, 0.9651499391, 0.0277143475, 0.0819702968, 0.3054384291, -0.0308651235, 0.159406051, -0.0544903316, -0.1078274921, -0.4667628407, -0.1897677481, -0.0175294057, -0.1176577434, 0.1780209839, -0.0231574364, -0.2170659155, 0.1534739286, -0.2281330824, -0.2000838816, -0.1075423285, 0.3291357756, -0.0646277517, 0.107783325, -0.0389210731, 0.2165105343, -0.0148838228, 0.1344371438, -0.0340154991, -0.0342937186, -0.1802309006, -0.1894558519, -0.3533744514, 0.1878864914, 0.279987365, 0.333207041, 0.384922415, -0.1259967387, 0.0008044409, 0.4622661769, 0.1378219724, 0.3060857356, -0.1186504588, 0.1697201729, 0.4038593173, -0.0022010666, 0.0675049126, 0.0531978086, 0.4678396285, -0.1308311075, -0.4377484918, 0.0788051188, -0.265583694, -0.3044766486, -0.0573686175, -0.0942582265, -0.1909906864, -0.4872121811, -0.3572174013, -0.0245891064, -0.1699288189, -0.1986519545, 0.214303568, 0.2076743841, -0.1817979217, 0.2571424246, 0.2159377635, -0.1491537243, -0.0555356964, 0.3740110099, 0.0605991818, 0.2695731819, 0.582685113, 0.1478764266, -0.3904737234, -0.2696422935, 0.1364225298, 0.0071131559, -0.0340895317, -0.2123747319, 0.0555299483, 0.1432090253, -0.1994425654, 0.4007021189, 0.2390317023, 0.1562390178, 0.0552491993, -0.4479150176, -0.26674968, -0.0458796136, 0.059948165, 0.3073368073, -0.2801733017, -0.1436554641, 0.0676647499, 0.0826841816, -0.3667374253, -0.0221121833, -0.3698690534, -0.032990016, 0.015170184, 0.1682016253, -0.0313087925, -0.1955702603, 0.2529392242, -0.1626544446, -0.1565857381, -0.2878296971, -0.185393855, 0.0501551479, 0.2593301833, -0.1250991076, 0.1054486334, -0.1526991129, 0.0056317579, -0.0443189368, -0.1369684935, 0.0535654686, -0.1198607832, 0.5308384299, 0.1915671527, 0.0732491463, 0.0193540063, -0.0652684569, -0.3584549725, -0.0705486536, 0.0433909185, -0.0890883207, 0.2522699237, -0.0463600531, 0.1881341189, 0.0582502969, -0.0913202688, 0.1468560994, 0.1828294247, -0.2698331475, 0.1150008291, 0.222940132, 0.3607220054, 0.4802424908, -0.3778283894, 0.0289403815, 0.5161424279, 0.2927516401, -0.5840247869, -0.1249180287, 0.2563697398, -0.0275625605, 0.1140041575, 0.0072175395, 0.0017609784, -0.1246284992, 0.0119644161, 0.0720831826, -0.1716446131, -0.3347996473, 0.2622317672, 0.4503182769, -0.1031351388, 0.0064793839, 0.1575983316, -0.2755384743, -0.1984488666, 0.2701227367, -0.0746919066, 0.3542864919, -0.3607937992, 0.0274728686, -0.2068647891, -0.5330364108, 0.6377869248, 0.1421993226, -0.2854976952, -0.0158081707, 0.21350348, 0.5844807625, -0.1096998751, 0.1307899654, -0.3838480115, 0.1098557264, -0.2256573886, -0.1679660529, -0.2074356973, -0.2122693956, 0.0221667588, 0.2550572753, 0.0289524272, 0.2261865288, -0.0379687101, 0.2186109275, -0.2801235318, -0.1795904636, -0.0485279225, -0.1880629212, 0.156653598, -0.1575041562, 0.0861350074, 0.1070370898, -0.0170657244, -0.1837701201, 0.1667316705, 0.2785693109, 0.2636847198, 0.0307412799, -0.0949731767, 0.0547932945, -0.0450358018, -0.0716600269, 0.5374295115, 0.1605736017, 0.0058990051, 0.4068491161, 0.2030324638, -0.2427920848, 0.115525201, 0.0718119293, -0.0676866919, -0.0456065796, 0.0610629395, 0.0307856947, -0.0006729864, -0.2671037018, 0.0300383195, -0.3674256504, 0.0609422848, 0.1943763047, 0.2460953444, 0.2223071307, -0.2331279665, 0.1159702912, 0.0976582617, 0.5910805464, 0.2527142167, 0.030372072, -0.200423494, -0.126015842, -0.6755934358, 0.1689569503, -0.3916090429, -0.1584317386, -0.1693795919, 0.018885918, -0.0020295668, 0.1517658234, 0.2228219062, -0.0448993966, -0.1815894395, 0.2028096914, -0.1365494877, -0.1465552449, -0.0892341584, -0.1104701981, -0.0950941294, -0.2667475939, 0.1782622933, 0.2029943019, 0.1966129392, -0.0221158415, -0.1500288695, -0.0539156795, 0.1747645736, 0.2517797351, 0.0873765945, 0.7677543163, -0.1830126643, -0.0698796958, -0.05739519, -0.1689027548, -0.1816823632, 0.3339101374, -0.0349698178, 0.4828410745, 0.1119006351, -0.0458288155, -0.2675414383, 0.375400871, 0.1333477497, -0.0224298649, -0.1739837527, -0.1028456017, 0.1118222624, -0.2486648858, 0.0439308397, 0.0564248674, -0.1203033701, 0.1168444976, -0.1275915653, -0.2123718858, 0.3341433108, -0.157080546, -0.0695559457, -0.211921528, -0.0616589822, -0.2215581685, -0.1025441512, -0.6306802034, 0.053935878, 0.3109161854, 0.0671363249, -0.046124164, 0.1928775012, -0.0176188238, 0.2482444495, -0.0524557196, 0.4796328843, -0.1044382527, -0.0248349383, -0.0228750743, -0.2361401767 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
@kwchurch the datasets impacted for this specific issue are the ones which are hosted at Google Drive.
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
17
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No @kwchurch the datasets impacted for this specific issue are the ones which are hosted at Google Drive.
[ -0.27233392, 0.2513685524, -0.0825369731, 0.3092967868, 0.1599651575, 0.0824245438, 0.3484656811, 0.2746692896, 0.1714856476, 0.1092719883, 0.0492886454, -0.0215489492, 0.0095687564, 0.1690100133, 0.0618317537, 0.1273817122, 0.3405562937, -0.0278939791, -0.0939082131, -0.1078559235, -0.3145874441, 0.0975557044, 0.11532747, -0.323389858, -0.243877694, 0.1783366203, -0.0035284171, -0.1137212664, -0.1283456832, -0.2508127391, 0.4510059655, 0.2048406005, -0.0686402023, 0.2762999833, -0.0001145766, 0.2477978468, 0.2989667952, -0.079335086, -0.204735592, 0.0862704515, -0.3544011712, -0.2196480036, -0.2651647031, -0.1107303947, -0.0322946832, 0.1767449379, 0.0624945089, -0.209094882, -0.0070212963, 0.3188160956, 0.2185307145, 0.2424390018, 0.0754044205, 0.034716405, 0.3117447793, -0.1165857837, 0.0225456301, 0.2062902302, 0.0305087473, 0.0892167911, -0.2469035089, 0.2390478253, -0.0375032984, -0.2095545828, 0.1398578733, -0.197123155, -0.0954736173, -0.3128154576, 0.3226428926, 0.3903720975, 0.6708317995, 0.0972240046, -0.2421489209, 0.0010654955, -0.1493711472, 0.0949156135, 0.5306345224, 0.1641936451, 0.0793970823, 0.0428056605, -0.365904659, 0.0237538498, 0.0036731728, 0.1766431481, -0.1912416667, 0.4262518585, 0.0560175925, -0.0187229402, -0.0107066613, -0.0029437952, 0.3388336599, -0.2383148521, -0.4136507809, 0.155184567, -0.241952613, -0.0156481341, 0.0417981669, 0.5411643386, 0.2527106702, 0.1475378573, -0.1343052685, 0.2664244473, -0.3098731041, 0.0469851866, 0.0392501205, 0.0939106196, -0.027028488, 0.2620168328, 0.3438669443, 0.106769979, 0.036325343, 0.0938947275, 0.0344166122, -0.35395962, 0.2297631055, 0.0283335373, 0.106705606, -0.2699972093, -0.3008375168, 0.3605431616, -0.1247453466, -0.3415851295, 0.071076639, 0.2549732029, -0.1273254752, 0.1563390493, -0.1915257424, 0.235892877, -0.1011281386, -0.0106269047, -0.247839272, 0.052753374, -0.0950689316, -0.1324325204, 0.205567196, -0.167324096, 0.2335174829, 0.0006800975, 0.0993371159, -0.208373338, -0.0317185856, 0.0061002467, -0.1578670889, 0.2877130806, -0.0488167331, 0.1319362521, 0.1153221354, -0.223364532, -0.0451093577, 0.2538072467, -0.3779258132, -0.1248988658, -0.1644553095, 0.2427509576, -0.5262755752, -0.1828801483, -0.1847951263, -0.11291603, 0.1976964176, -0.3604327738, 0.0837237611, -0.1343088746, -0.2451505214, -0.2365827709, 0.0703600273, 0.3157678843, -0.4315353334, -0.0100124013, -0.1763360202, -0.2845640779, 0.2102935612, 0.0798704103, -0.0890830308, 0.2305531949, -0.2634394169, 0.060047254, 0.2795994282, -0.227174744, -0.6469711065, -0.1539810598, 0.0029056137, 0.2863564789, 0.2006393671, 0.0970984027, 0.0147228129, 0.0208055228, -0.0249726754, 0.0459180288, 0.2296459526, 0.0803338289, -0.1814259142, -0.1337168664, 0.2289815396, 0.3443879485, 0.3398492336, -0.1576298028, 0.4693033099, -0.0961969495, 0.2432924062, -0.3280800283, 0.0181432255, 0.2173152864, 0.4514325559, -0.0433377847, 0.0666928068, -0.081732288, -0.3092252612, 0.3514638841, -0.0895544663, 0.08072979, -0.083282575, -0.0657704771, -0.2799892128, -0.2635654807, -0.4767208099, -0.0782958567, 0.1282376945, 0.3685257137, -0.060679175, 0.1194753051, 0.1359124482, 0.1021014601, -0.4171817899, -0.0279558655, -0.0955391899, 0.3264540732, -0.0929248855, 0.0225501154, 0.0966102034, 0.150217548, 0.0747103989, -0.1519428641, -0.2158575058, 0.3250207901, 0.3738476634, 0.3647753298, 0.1323141456, 0.2315989435, 0.0471107922, -0.3811603785, 0.1337623, 0.2042316496, 0.0145298773, -0.2559154928, -0.2813607156, 0.5126299262, -0.0662731379, -0.0854260772, -0.1891554743, 0.1124317721, 0.3620567322, -0.0205363985, -0.0451587364, -0.2293640822, 0.2820291519, 0.2297661752, 0.1275691092, 0.2351492196, -0.1988066584, -0.0717136338, 0.4776216745, -0.1367522478, -0.0243383143, 0.1185948774, 0.0629580915, 0.0170541611, 0.0891247019, 0.4566437006, 0.2358925492, 0.0889462978, 0.1303948909, 0.1283758581, -0.0516430251, -0.1467848867, 0.0638574436, -0.0625070632, 0.259973526, 0.4403769374, 0.0140719479, -0.0667077228, -0.6534077525, 0.2014601529, 0.056473814, 0.2341958284, -0.4103151262, -0.0448586196, -0.1236978099, -0.0358946174, -0.3355345726, -0.0356204957, -0.525093317, -0.4948503673, 0.0127808163, -0.0151135419, 0.0592064075, 0.1758826077, -0.2985754609, 0.0677089691, -0.0812291279, -0.1393884718, 0.0059018699, -0.1117296666, -0.1506039202, 0.1320695728, 0.6315674186, 0.0748754889, 0.3743739724, -0.2744449675, 0.1719205528, -0.4168558717, -0.4322855473, -0.0825856477, -0.2360454798, 0.2696229219, 0.078111276, 0.2739156485, -0.2623963356, -0.2785969973, 0.000749375, 0.1780048907, -0.338794589, 0.0985372216, -0.1419023871, -0.1319003403, 0.1496269554, -0.2089826912, -0.1171506047, -0.0974804237, 0.0123604974, 0.2124985605, 0.1718705595, -0.0812836215, -0.0763620734, 0.1866646856, 0.1223134249, 0.0582355782, -0.3626249731, -0.5182879567, 0.6088277102, -0.0402953774, -0.2906511128, 0.2036107033, 0.0250938889, 0.2092009783, 0.113100715, -0.5993534327, -0.0930881649, -0.2408189327, 0.2119828761, 0.3013292253, 0.0006267244, 0.3328784704, 0.0692604706, 0.0650761649, -0.2517602146, -0.1411409676, -0.0585933626, -0.0899616554, 0.4592780173, -0.3273324966, 0.3235732019, -0.2007875443, 0.7698404789, 0.285658896, 0.202016592, 0.1788972318, 0.0838187709, 0.439825356, -0.1810168624, -0.163422823, 0.1356588453, -0.2291380763, -0.1856915951, 0.26272735, -0.1736327559, -0.2209005356, -0.1534751952, -0.178797096, -0.3255558908, -0.1646653712, 0.0110748038, -0.3257803321, 0.2311756015, -0.066393517, -0.003457363, -0.1206247658, -0.5092253685, 0.1365627944, 0.3747030497, -0.1227855757, -0.1120013222, -0.5656753182, -0.0807181522, -0.1430185288, 0.2682316601, 0.0717378706, 0.3374302983, -0.0449691527, 0.0523048043, 0.1099787578, -0.1777421236, 0.4247927666, -0.6040694118, 0.14654392, -0.1028188169, 0.2787946761, 0.1314074099, -0.2846525013, -0.1497435868, -0.0872719362, 0.182251215, 0.3021269143, -0.0933831856, 0.1674877107, 0.299023807, 0.2139792144, -0.2688418925, -0.1998451501, -0.3796595633, -0.2161561549, -0.1386836022, 0.0934468508, -0.0160071645, 0.1600093544, -0.1790223569, -0.0052022892, 0.0552322231, 0.0463874601, 0.3719211221, -0.1216146648, 0.1435356289, 0.3787505031, 0.1131781787, 0.045621559, 0.1824893951, 0.2407391965, 0.7863066196, -0.1238147244, -0.3098621666, 0.0029400217, -0.4609662294, 0.1448205113, 0.2455569953, 0.1471232027, -0.0211280882, 0.5179055929, -0.2509155869, 0.0049636466, -0.0673053637, 0.1848176569, 0.1461620033, -0.5775725245, -0.305732131, 0.1831154376, 0.0560716763, -0.1450748146, 0.3075100183, 0.2375341356, -0.338452071, 0.1254934072, 0.3301222026, 0.9545761943, -0.0159882102, 0.0039300355, 0.0795010701, -0.1368592978, 0.0504765809, -0.2862408161, -0.0704282373, -0.3654605448, -0.3615970314, -0.2230835259, -0.1961540282, 0.2145924419, -0.0629356578, -0.1306261569, 0.1276642531, -0.1428046972, 0.2965088785, 0.0468906648, 0.2248985618, -0.1234149262, 0.0977057964, 0.184026733, 0.1276352257, -0.0367984772, 0.1221895516, -0.2112573236, -0.0573195182, -0.113182351, -0.2060851753, -0.5002743006, 0.1491676271, -0.0261414386, 0.1937762201, 0.2059719712, -0.1460480094, 0.0801999867, 0.5281069279, 0.3951433003, 0.1649877876, -0.2353577763, 0.4203829169, 0.3549429178, 0.1520091891, 0.0914067328, -0.1593154669, 0.3427988887, -0.095421955, -0.3086629212, 0.1198492348, -0.2654450536, -0.4546569288, -0.2296428978, -0.2096483558, -0.2991652191, -0.2557342649, -0.1983119249, -0.0809566081, -0.0823578611, -0.181091547, 0.1738953739, 0.069857575, -0.0406851061, 0.1245998293, 0.0705902576, -0.2636470795, -0.1900818944, 0.4860655963, 0.1568141431, -0.1547529995, 0.64324826, -0.0943031088, -0.3599780798, -0.176301688, 0.1156260967, 0.105674535, -0.2541892231, -0.41193524, -0.1754650176, 0.1698278487, 0.0182865541, 0.3729301691, 0.3585658669, 0.2528617084, 0.1203283295, -0.6030188203, -0.1102845371, -0.0552476496, 0.0662633628, 0.3937571049, -0.2916144431, -0.2547559738, 0.134636879, 0.0006661818, -0.304090023, -0.1077496931, -0.2026876807, -0.0525546484, -0.0185687281, 0.184418112, 0.0493776537, -0.2304051816, 0.1459480077, -0.18122603, -0.1698425114, -0.174073413, -0.0311099235, 0.1375415921, 0.2061082125, -0.1572012305, 0.1203862056, -0.2145083547, 0.0142466612, 0.112051256, 0.102512069, 0.111769706, -0.1210908294, 0.0666030869, 0.2171645164, 0.0024234436, -0.0390388817, -0.1848583817, -0.3529025614, -0.0502520725, 0.0026846537, 0.0312500671, 0.164758563, 0.0030272291, 0.245130986, 0.2285292149, 0.0041262796, 0.1729022264, 0.1688528955, -0.2983981073, 0.0351014249, 0.3330925405, 0.1761898547, 0.4609261751, -0.4955814481, -0.0430093035, 0.3250374198, 0.1889064461, -0.3661251366, -0.1644835919, 0.3497407138, 0.0022251599, -0.1001626849, -0.0336277597, 0.3834808469, -0.3320055902, 0.347877562, 0.1051659286, -0.0335238948, -0.4193279743, 0.5362786651, 0.5248644352, -0.1579236835, 0.1243479028, 0.3303272426, -0.2226885706, -0.3281892836, 0.2891123593, 0.0877837241, 0.2554866374, -0.1863993853, 0.1327955872, -0.1827552468, -0.4592941105, 0.6310582161, 0.0685320869, -0.4089570343, -0.0434162058, 0.2802552879, 0.2953549922, -0.0133862318, 0.2148372382, -0.7035685182, 0.0105427457, -0.2225706428, -0.088502124, -0.2154279947, -0.3889085352, -0.0126571488, 0.4288870096, -0.0657657087, 0.1365050524, -0.1600064337, 0.2028328329, -0.3972985148, 0.0135875195, 0.0555168651, -0.2954573333, 0.0871956795, -0.2383589596, 0.2056816667, 0.0149206212, -0.0942538977, 0.0991920829, 0.236755535, 0.1960147768, 0.3157266974, 0.2388621718, -0.0555694327, 0.1645815372, 0.0186074805, 0.103942126, 0.6412161589, 0.2430538833, -0.0494618565, 0.381215632, 0.1659860462, -0.1425832361, 0.2235463411, -0.016594585, -0.0790689439, -0.1212627888, 0.0862443745, -0.1234648004, 0.1298075467, -0.2146143019, 0.067496866, -0.2522164285, -0.0360988081, 0.3031847775, 0.2851331234, 0.1480800956, -0.078041099, 0.0807197765, 0.1228736639, 0.5207427144, 0.3375206292, -0.17067267, -0.0772201121, -0.4199639261, -0.7990906835, 0.1957015097, -0.1421325207, 0.2864174843, -0.0638158321, -0.0616459474, -0.0126519073, -0.0175248086, 0.2941528261, -0.1368904859, -0.2628740668, 0.0354134701, -0.11117962, -0.0059917937, -0.0213202909, -0.0076195882, -0.2872840762, -0.2373061478, 0.3496040404, 0.205791533, 0.096669212, -0.0677299947, -0.0382578708, -0.1479965597, 0.1840017885, 0.1240508109, 0.0348295644, 0.8909019232, -0.0697666258, 0.0871131346, -0.2339634001, -0.2684779465, -0.1246300712, 0.4521155357, -0.1279318035, 0.5183524489, 0.2162443399, -0.0858935341, -0.0641833469, 0.2889887094, 0.1024923623, 0.0457235985, -0.3028631508, -0.1547967494, -0.0974458754, -0.0765077546, 0.2919465303, 0.0316481702, 0.1160413399, 0.0542673916, -0.0874135941, -0.1931200922, 0.1075046211, -0.143511489, -0.1041434929, -0.1811251938, 0.0107914871, -0.2281883806, -0.0535813756, -0.6558889151, 0.072799705, 0.491242528, -0.1196600497, 0.0292986352, 0.2673870623, 0.0047369837, 0.2136861384, -0.0675471202, -0.0011731215, -0.0624713488, -0.1653930843, -0.1072019488, -0.2141740024 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
@afcruzs-ms I think your issue is a different one, because that dataset is not hosted at Google Drive. Would you mind open another issue for that other problem, please? Thanks! :)
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
31
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No @afcruzs-ms I think your issue is a different one, because that dataset is not hosted at Google Drive. Would you mind open another issue for that other problem, please? Thanks! :)
[ -0.338044852, 0.2343494892, -0.1028938442, 0.2488979846, 0.2559024394, 0.0522294119, 0.2988871634, 0.3855467439, 0.1882091761, 0.1851580292, 0.0704605952, -0.0634310022, 0.0281986184, 0.2961125076, -0.1326325685, 0.0332363434, 0.247208029, -0.0536762178, -0.0801993161, -0.0937801152, -0.2452125996, 0.1056139246, 0.0454946794, -0.3578786254, -0.1754430234, 0.0557987019, 0.0265301242, -0.1015070081, -0.1868118942, -0.1320728064, 0.2757667899, 0.193514213, 0.0177054796, 0.3420609534, -0.0001092242, 0.2025672644, 0.318906039, -0.0392766222, -0.1414839625, 0.0173741151, -0.2754642367, -0.1982259303, -0.3047448397, -0.1761558205, -0.1218793318, 0.1576601565, -0.024558749, -0.1557565778, 0.0668027699, 0.3204371035, 0.2601000369, 0.2424914688, -0.006379026, 0.0409340486, 0.3197225928, -0.2059232593, -0.0037874298, 0.2122246474, -0.035535641, 0.0667069331, -0.1772193164, 0.3169080019, 0.0364933684, -0.1566311866, -0.0380719602, -0.1515897512, -0.1121649146, -0.2184418291, 0.303847611, 0.3827913105, 0.5677096248, -0.0013481176, -0.2554211318, -0.0218642261, -0.1111453772, 0.0108612226, 0.5845533609, 0.1662684381, 0.0802182779, 0.0621080399, -0.3437231779, 0.0615605414, -0.0045966692, 0.1440806389, -0.1313808262, 0.3763409257, 0.067631416, -0.084686406, 0.0635057613, -0.0921646059, 0.2676401138, -0.2179324329, -0.3177542686, 0.1551636308, -0.2418037206, -0.0847037509, 0.0666567087, 0.5523622036, 0.3174319267, 0.2485672385, -0.0877160802, 0.2815704048, -0.3112300038, 0.0842641592, 0.0384594724, 0.0540732481, 0.0013162462, 0.1828890443, 0.3838078976, 0.216789782, -0.0529594868, 0.0623809285, -0.0076657222, -0.3790988922, 0.2950049043, 0.10324049, -0.005080055, -0.2510634065, -0.1929872334, 0.2914765179, -0.0182556976, -0.2955553532, 0.1408374459, 0.357437402, -0.1777165532, 0.0357862934, -0.1714898348, 0.2136806101, -0.1469276547, 0.0091006467, -0.2632762492, 0.0831266344, -0.1656716019, -0.0656590387, 0.2587563097, -0.1491794139, 0.3266260028, -0.0343002416, 0.0913028345, -0.0800336078, 0.0065422193, -0.1011545733, -0.193715319, 0.2423559874, 0.0273597725, 0.1248837486, 0.0709658712, -0.2270926982, -0.0647628233, 0.1799408346, -0.3245858848, -0.0466015153, -0.1454951763, 0.2965415418, -0.5014673471, -0.1282915026, -0.1817838997, -0.1498235464, 0.1220889837, -0.3781958818, 0.0275921058, -0.1473528445, -0.2177444845, -0.2023107857, 0.1200095639, 0.1850228459, -0.3365172744, 0.0185866412, -0.0978591964, -0.3010310531, 0.1582404226, 0.1767713279, -0.0232073404, 0.1248750687, -0.3458483815, 0.2398735136, 0.2266589999, -0.2644090354, -0.6744809747, -0.103358984, 0.0529536828, 0.1326450706, 0.1617002487, 0.0370390229, 0.0526810773, 0.0841980278, -0.052495338, 0.1293567419, 0.229256779, 0.1339053214, -0.2464105934, -0.0930176824, 0.1905465573, 0.3017822206, 0.234712109, -0.1220689192, 0.5012941957, -0.1854777932, 0.2362605929, -0.3278015554, 0.0284675751, 0.2979687452, 0.5141527653, -0.0618613847, 0.0391759649, -0.0910602286, -0.3323040903, 0.3291971087, -0.1160509065, 0.1131640077, -0.1256314963, -0.0741624013, -0.2423066348, -0.3082357645, -0.3783040047, 0.0308118183, 0.2030455321, 0.3021928072, 0.0019485001, 0.1493044198, 0.201651454, -0.0021480175, -0.3958663642, -0.0770234019, -0.074196443, 0.436057061, -0.2015352547, -0.0990776941, 0.1895359606, 0.0805698782, 0.0659322515, -0.0864226222, -0.2383996099, 0.3621042669, 0.3474034071, 0.3443082571, 0.1455611736, 0.3726139367, 0.0917083547, -0.3004088998, 0.0040682564, 0.2221591026, 0.0175635647, -0.1593922079, -0.4458492398, 0.5872711539, -0.0658744201, -0.0856307596, -0.0263808183, 0.0316442102, 0.4443443418, -0.0717975274, -0.0807649717, -0.2925046682, 0.2081335336, 0.2028688788, 0.1410698891, 0.1500438154, -0.1758101583, -0.0862627625, 0.4904080331, -0.057347022, 0.071708478, 0.0262974277, 0.0738569051, -0.0192493927, 0.1963524371, 0.4488588274, 0.1767580807, 0.172619313, 0.1972249001, 0.1110131964, -0.0605817996, -0.1586005986, 0.0087660998, -0.1965081394, 0.3126207888, 0.46058321, 0.0286645573, -0.1718843579, -0.5524846911, 0.1573195904, 0.0522706248, 0.2303786874, -0.3260913789, -0.1293133646, -0.1828868836, -0.0011747335, -0.3017398417, 0.0435380824, -0.4925373495, -0.375600338, 0.0499366485, 0.0898954049, -0.0845504552, 0.2213478386, -0.2084253877, 0.0050454699, 0.0626790524, -0.2625904381, 0.0597737953, -0.1069898456, -0.070215039, 0.1544025093, 0.5582306981, 0.1363087296, 0.3809382021, -0.2153826356, 0.1323179007, -0.5136095285, -0.4490846992, 0.0204252191, -0.2300572842, 0.2673543096, 0.0696011409, 0.2216570377, -0.2743832171, -0.2196322381, 0.092313841, 0.0870946199, -0.354319036, 0.1700356007, -0.0874857232, -0.0971323773, 0.10930904, -0.2499427199, -0.0489850789, -0.1354364753, -0.0572792888, 0.2669952214, 0.1611169726, -0.0636639819, 0.1088096872, 0.136900261, 0.1823075861, 0.0659756064, -0.3855848014, -0.5822989941, 0.6266956925, -0.1113214269, -0.4261172414, 0.1962723434, -0.0671035349, 0.2151007056, 0.1369964778, -0.5321981311, -0.2014539689, -0.2606827915, 0.2562438846, 0.3483715951, 0.0194807146, 0.3805532753, 0.0557816364, -0.0154183228, -0.2793956995, -0.1734299213, 0.0915935934, -0.0232593417, 0.437879622, -0.3108058274, 0.2881207168, -0.1734596193, 0.6061873436, 0.1848784387, 0.1707123965, 0.2367137969, -0.0025895985, 0.370944649, -0.1239984855, -0.0808342621, 0.1754387617, -0.141012609, -0.1694915146, 0.3402810693, -0.1254202574, -0.2325818539, -0.1776457131, -0.1497777402, -0.3536735773, -0.2021362334, 0.0329630114, -0.2414656729, 0.283957541, -0.0352941342, -0.0327685662, -0.0968897268, -0.4489498734, 0.1766523272, 0.2693774402, -0.1280518472, -0.1946013719, -0.5382353663, -0.1765517592, -0.1091089621, 0.2192605883, 0.1842781752, 0.2604586184, -0.0385467187, -0.0107650645, 0.0408606827, -0.1760740727, 0.338619858, -0.7007242441, 0.2303014845, -0.111070931, 0.2832644284, 0.1541058272, -0.2625439167, -0.2624100149, -0.1965987235, 0.1476189792, 0.3449228406, -0.1904699951, 0.1731592417, 0.1880201697, 0.2144750655, -0.2234988213, -0.2006751746, -0.3923857212, -0.172565192, -0.304482013, 0.1370081902, -0.0155647323, 0.2391234487, -0.2112841606, 0.0127404528, 0.1287921667, -0.0305488445, 0.2543919384, -0.0355396643, 0.2307085246, 0.2804848552, 0.118595995, -0.0769200623, 0.128329888, 0.2852979898, 0.7789700031, -0.1364997625, -0.2173607945, 0.0553160273, -0.4734214544, 0.0538319796, 0.0844466016, 0.1442819089, -0.0547428839, 0.5237067938, -0.1013683975, -0.0026064287, -0.0312546007, 0.1398925483, 0.1775948405, -0.4316186607, -0.2112534195, 0.1044676378, 0.0010348002, -0.1033699661, 0.1868373752, 0.302547276, -0.2986645997, 0.1813444644, 0.3147750497, 0.86487782, -0.0247780867, -0.1126319692, 0.1106406078, -0.0949111581, 0.0174404941, -0.178252086, -0.0337637812, -0.3615466654, -0.437086314, -0.1195178553, -0.1146544069, 0.1414099932, 0.0753026828, -0.185769558, 0.1207881421, -0.0560183115, 0.275823772, -0.0146103241, 0.2605411708, -0.1078775227, 0.0852311328, 0.1178845316, 0.177031219, -0.0047027282, 0.1108178571, -0.1605336517, -0.0357888937, -0.0972704887, -0.2242777199, -0.3768295944, 0.1426386982, 0.0103200637, 0.1143961698, 0.1355318129, -0.1769261807, 0.0296830162, 0.4481648803, 0.4444622993, 0.2937294841, -0.3243668675, 0.3500079215, 0.287434876, 0.0498093963, -0.0066810776, -0.0922969058, 0.427039206, -0.1524793655, -0.3322747946, 0.0971217752, -0.1569474787, -0.3993494511, -0.1690933406, -0.2680366039, -0.414732784, -0.2920857072, -0.1363372803, -0.073586978, -0.186934337, -0.1749544889, 0.2273661047, 0.039866861, -0.0678485781, 0.1187099069, 0.2383763939, -0.1677629948, -0.1279710382, 0.5169398785, 0.0941233337, -0.1538487226, 0.6009729505, 0.0302582011, -0.3384082913, -0.2892248631, -0.0011633092, 0.1567177624, -0.0957186297, -0.3490856886, -0.1757622808, 0.1137235761, -0.06223749, 0.3274284899, 0.3306714594, 0.2170978338, 0.2026953697, -0.5351163149, -0.1703525484, 0.0432533175, 0.0293747112, 0.3180959523, -0.3451043665, -0.1667466015, 0.1317864656, -0.0422849581, -0.3898834288, -0.0503674261, -0.3117591143, 0.0133940261, 0.0001183062, 0.1546669304, 0.0403293967, -0.1861346811, 0.2156253904, -0.218383342, -0.1397860497, -0.2462336719, -0.0274518169, 0.0940100774, 0.2070861012, -0.0819303319, 0.1591642797, -0.1881348938, -0.0700002238, 0.0184897296, 0.0954964608, 0.017244013, -0.147051841, 0.114902854, 0.2132133245, 0.0138003211, -0.1141721532, -0.2682634294, -0.3862912953, -0.0698766112, -0.0635589287, -0.0178622995, 0.1635696888, -0.016440589, 0.2606609762, 0.1445610821, 0.0301498082, 0.2400162071, 0.2274243087, -0.2570409775, 0.0224431567, 0.3517276049, 0.3498352468, 0.2444201857, -0.4757148325, 0.0144434338, 0.4015745223, 0.2984529734, -0.4144440889, -0.0859602243, 0.2482579201, -0.1618256867, 0.0823143572, 0.0131608956, 0.3288063705, -0.2099710405, 0.3155535161, 0.0946239606, -0.0245687366, -0.396541059, 0.370993644, 0.4842270613, -0.155684039, 0.0086034033, 0.3410401046, -0.2834120095, -0.2655014694, 0.1446511894, 0.0332374163, 0.2145154178, -0.1718492508, 0.1446538419, -0.1399235725, -0.4169750512, 0.5122893453, 0.0311099309, -0.2923535109, -0.0504599698, 0.1500689536, 0.2283031493, -0.0334881283, 0.2372363508, -0.5918678045, 0.0569868833, -0.1842996031, -0.0401032344, -0.2699761391, -0.3681993783, -0.0739948899, 0.3741931021, 0.0122932009, 0.1588620394, -0.1317358762, 0.2105450332, -0.3075546026, -0.0000202822, 0.0274605118, -0.1641414762, 0.052302815, -0.2171741575, 0.268125385, -0.0077996203, -0.0851970166, 0.0391894393, 0.2498316616, 0.1276540011, 0.2671804428, 0.1296171993, -0.049547255, 0.1239778697, -0.0281826742, 0.0463085435, 0.655426681, 0.2732628584, -0.0258201044, 0.3777599633, 0.2146895826, -0.2254104167, 0.209808737, -0.0433971547, -0.2212929577, -0.0132378563, 0.0518070087, 0.0824719593, 0.1045946032, -0.2815063298, -0.0905529559, -0.3019674718, -0.0828094259, 0.1854272187, 0.1589275002, 0.2096537501, -0.104074724, 0.1176586524, 0.1473632902, 0.5252745152, 0.2696766555, -0.0447151139, -0.0751239955, -0.417522192, -0.7947529554, 0.1289274544, -0.1825612932, 0.2120484412, -0.1139626577, 0.0597859509, -0.0605645105, 0.0448680632, 0.3479359746, -0.0707685426, -0.297380358, -0.0342708044, -0.1944359541, -0.0351877213, 0.0249243882, -0.043410331, -0.2508898377, -0.2278575897, 0.2877320051, 0.2165299952, 0.1755727381, -0.0179405604, 0.0088270782, -0.2361790538, 0.1063277945, 0.2155414522, 0.0837476775, 0.7930045724, -0.1708277762, 0.0973258018, -0.1653032601, -0.1566266716, -0.1851340681, 0.3173952103, -0.0405094884, 0.5030090809, 0.2239035368, -0.1692036837, -0.1088676378, 0.3022899926, 0.1312694997, -0.0556522012, -0.297701031, -0.0934937149, 0.0175716672, -0.0948917121, 0.1551863998, -0.0451779664, 0.0347568691, 0.0853840038, -0.1606950313, -0.2406527698, 0.1472219527, -0.0544900298, -0.0750819594, -0.102277711, 0.0805101842, -0.1391067207, 0.0132997278, -0.6928950548, 0.1571632177, 0.3661345541, 0.0115314908, -0.0595106445, 0.2014264315, 0.0075053885, 0.220800817, 0.0233906657, 0.0105322786, 0.0439123921, -0.1082349271, -0.1698980033, -0.2043395638 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
@albertvillanova just to let you know that I tried it locally and on colab and it is the same error
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
20
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No @albertvillanova just to let you know that I tried it locally and on colab and it is the same error
[ -0.3873740733, 0.2373123765, -0.0824100897, 0.3719082177, 0.2275023013, -0.0049790237, 0.1810005456, 0.3520689011, 0.1753032058, 0.1124963388, -0.0698555857, 0.0891029462, 0.0238753799, 0.2454140037, -0.0977155194, 0.0805002674, 0.2709171176, 0.0180112012, -0.2669120729, -0.0381144248, -0.287545234, 0.1000636071, -0.0191111285, -0.285055995, -0.2242526114, 0.1182514578, 0.0407911763, -0.2390292883, -0.2257381529, -0.1934921592, 0.4914730787, 0.1483862996, 0.0737663805, 0.3963168263, -0.0001144888, 0.2044275999, 0.2644136846, -0.0823889673, -0.153091982, -0.004317964, -0.4366198778, -0.2904206216, -0.1879495978, -0.163654387, -0.1195642501, 0.230677709, 0.0319029354, -0.182070598, 0.0357101746, 0.3506130576, 0.2389424443, 0.2096551508, 0.1583425403, 0.0147006549, 0.2757307887, -0.0870665908, 0.0039270758, 0.1537488401, 0.0328365192, 0.1501542032, -0.1278076768, 0.2669777572, -0.0610047206, -0.1490532011, 0.0947665498, -0.3035598993, -0.0367272422, -0.3440997601, 0.3330574334, 0.4070837796, 0.6930857301, -0.0349279307, -0.1812816709, 0.1301520169, -0.0807467327, 0.0314869732, 0.4441695213, 0.1426074952, -0.0203825999, 0.0674297661, -0.2940244675, 0.0506418869, -0.0415648781, 0.1912655085, -0.0124069629, 0.4687061906, 0.0293728039, -0.0473023951, 0.0440342464, -0.1066336036, 0.5398304462, -0.2378362268, -0.3618006706, 0.2516004741, -0.3341666162, -0.0062196036, -0.1466691345, 0.5456805825, 0.2707473934, 0.0829090774, -0.1635314673, 0.2418561876, -0.2620737255, 0.1147948951, -0.0159059912, 0.0401258767, -0.0182713922, 0.2896164358, 0.2473930568, 0.1673128307, -0.083749406, 0.1173278168, -0.0154248569, -0.4389245808, 0.1872457564, 0.0529443808, -0.0747521594, -0.3144617379, -0.205425635, 0.3248929679, -0.0657196119, -0.3262005448, 0.1804489642, 0.3013956249, -0.1989021748, 0.204619363, -0.2174809277, 0.1643422544, -0.0992890671, -0.0382628664, -0.2259388864, 0.0966477394, -0.1288301498, -0.0826634318, 0.2514101863, -0.1916667521, 0.3408080637, -0.0576453172, 0.1553329676, -0.1247645244, -0.0397524424, -0.1004401445, -0.1316548288, 0.2832606435, -0.0129249971, 0.1011036038, 0.122142911, -0.1848685443, -0.0257064775, 0.2239616066, -0.3420377672, -0.1660693288, -0.2242327929, 0.2477961183, -0.4321504831, -0.1552160978, -0.1788852513, -0.1366764903, 0.2629215419, -0.3568660915, -0.0063427524, -0.1504597962, -0.2349774539, -0.1966186762, 0.1424056292, 0.2320972383, -0.4391748011, 0.0336352848, -0.0732899755, -0.2484793365, 0.2936117351, 0.1112540141, -0.0975730792, 0.198770985, -0.2821417749, 0.0312428139, 0.2990908027, -0.2145704776, -0.6865372658, -0.0977104381, 0.1778273284, 0.19199422, 0.2213245481, 0.1300694048, 0.0369618721, 0.0804644823, -0.1170896217, -0.0139653431, 0.233855918, 0.0996874645, -0.2158296108, -0.1193430796, 0.3088146746, 0.2696032524, 0.2697467208, -0.1500300914, 0.3792372942, -0.0486916564, 0.299322933, -0.313067317, -0.0086730057, 0.1537798643, 0.5309932828, -0.0587607026, 0.0425426364, -0.109932825, -0.2123455852, 0.3066339791, -0.0485861637, 0.1309425682, -0.0866837725, -0.038937673, -0.2812841833, -0.2382824123, -0.4406083822, -0.0238167029, 0.1255405992, 0.2842606604, -0.049333781, 0.0638396889, 0.05881612, 0.1652356088, -0.4701364338, -0.0418397896, -0.0790291801, 0.3589641154, -0.1929353774, 0.0297460537, 0.0727656558, 0.138462618, 0.0347253159, -0.0994309783, -0.2661091685, 0.2672632039, 0.3873007596, 0.142412588, 0.1312460899, 0.1552256346, 0.099411495, -0.4390265048, -0.033823628, 0.1353191435, 0.0310634375, -0.1501327008, -0.1709095091, 0.418933183, -0.1106578037, -0.1052817255, -0.1465723664, 0.0208271481, 0.4537901878, 0.0241789855, -0.0543290414, -0.217844978, 0.2676338255, 0.1426606178, -0.006431031, 0.2213164121, -0.0907422826, -0.1963502169, 0.3994525969, -0.0053330334, 0.0337554216, 0.0288801491, 0.1289830953, 0.0184784736, 0.1656972617, 0.3875592947, 0.2157540619, 0.0959017575, 0.0755861625, 0.1123892963, -0.1315512359, -0.0998507515, 0.0393900238, -0.111980319, 0.3893286884, 0.4901268482, -0.1116554886, -0.0743087903, -0.5724047422, 0.094461754, 0.0397414304, 0.351878494, -0.3241583705, -0.1709279567, -0.1657179147, -0.1974051893, -0.3489172757, -0.0736528933, -0.40271312, -0.3916336, -0.0803679749, 0.0265674833, 0.1340560168, 0.3227304518, -0.2867649198, -0.0150848934, -0.0740038604, -0.107340306, 0.0995983183, -0.0938935578, -0.0614011586, 0.1278840899, 0.6395921707, 0.0901676863, 0.2577971816, -0.3189165592, 0.1206051409, -0.3440067172, -0.4535849094, 0.0076004886, -0.1180507839, 0.2545840442, 0.0452971868, 0.2363485992, -0.3233428299, -0.3459739387, 0.0152929313, 0.2156959921, -0.3002874553, 0.1356071979, -0.2736187279, -0.1891298741, 0.1971976906, -0.2516733408, -0.196715191, -0.1636254936, -0.1499282569, 0.2357476503, 0.1922660917, -0.0657028332, 0.0385860279, 0.1781272888, 0.0871261433, 0.1671444476, -0.3002987206, -0.6020169854, 0.642731607, -0.0676671043, -0.3106472194, 0.2161925733, -0.0425416492, 0.3593714535, 0.0508555397, -0.5779352784, -0.1164365411, -0.197435379, 0.1735741794, 0.3323959708, 0.0768520236, 0.2347911745, 0.0364444368, 0.092593655, -0.2479863763, -0.1317109168, -0.0184468683, -0.1263779998, 0.5518276691, -0.2978224158, 0.3197314739, -0.1686132848, 0.6876216531, 0.4003273249, 0.1108194068, 0.2498562336, 0.0610609651, 0.3811837137, -0.1872999817, -0.2483904809, 0.1715604514, -0.2233643085, -0.0929216444, 0.1872397214, -0.1981179565, -0.198324725, -0.2282153815, -0.1823245138, -0.334856987, -0.1157856286, -0.050596945, -0.2329595983, 0.2631691098, 0.0199156869, 0.0133646335, -0.0918280631, -0.5170347691, 0.1553125978, 0.395645082, -0.2367310226, -0.125422731, -0.5609811544, -0.1781350374, -0.0954025984, 0.2484253943, 0.1575172693, 0.3496271968, 0.0515233837, 0.0646973252, -0.0025908519, -0.1040970087, 0.4129316211, -0.6249051094, 0.0858385414, -0.1377488673, 0.2304891497, 0.0565192029, -0.1867843121, -0.0683531761, -0.1044313312, 0.1677277535, 0.2865019739, -0.0793447942, 0.2049278915, 0.2964862883, 0.2591986954, -0.2840613723, -0.2937768698, -0.3558664322, -0.1387224048, -0.2423363179, 0.0574552566, -0.065709129, 0.3121579587, -0.0349760614, -0.0700393468, -0.0164987799, 0.0118107283, 0.3651595414, 0.0499754287, 0.199627921, 0.4131353199, 0.1976841539, -0.0754726008, 0.1518252492, 0.3245755732, 0.7941065431, -0.3393057883, -0.4219212532, -0.0720562935, -0.416588068, 0.1729497463, 0.0759253427, 0.1313589364, -0.0550828241, 0.5225023031, -0.2657535374, 0.1300613433, 0.0141824391, 0.1464008391, 0.2182721645, -0.6199938059, -0.3375708163, 0.0508103333, 0.0709671602, -0.0397072844, 0.2004268616, 0.1492645442, -0.2253780216, 0.1246953532, 0.3271878362, 0.8938012123, -0.0061793318, -0.0483793877, 0.0220051836, -0.1130518243, 0.127479285, -0.2204900086, -0.0568026677, -0.4038398266, -0.4223959744, -0.164459452, -0.1745214611, 0.1828869879, -0.0512600541, -0.2178734094, 0.1537533104, -0.0592947304, 0.3001016974, -0.0471881256, 0.2265731692, 0.0234108642, 0.071550779, 0.1376436204, 0.1296240091, -0.0841265023, 0.1388301551, -0.1776122898, -0.0262135118, -0.0790800154, -0.0991104543, -0.3997842669, 0.1790070087, -0.0695483088, 0.1868677735, 0.2844103873, -0.0560150892, 0.0981577858, 0.5449663401, 0.4146101475, 0.2674542665, -0.2077519894, 0.2831662893, 0.4102762341, 0.0622703023, 0.0147085935, -0.0517813452, 0.3793761134, -0.1307868958, -0.2739436626, 0.17474325, -0.158543542, -0.3523582816, -0.0548871271, -0.2979905605, -0.0939029679, -0.3730123043, -0.2329535186, -0.0087368749, -0.0506416038, -0.2049797028, 0.1764322966, 0.0972085595, -0.2629183233, 0.243922025, 0.1628459096, -0.2709802389, -0.1401397586, 0.4507972002, 0.1277687252, -0.1066784263, 0.5798223615, 0.0145063149, -0.3711270392, -0.1788017452, 0.1534800231, 0.1134753004, -0.3276232183, -0.4314547479, -0.100767374, 0.0783772022, -0.0254565086, 0.43125844, 0.4370369911, 0.2243284285, 0.1754120141, -0.5305550098, -0.2316022962, -0.0984696671, 0.0862358138, 0.3497875333, -0.2479846925, -0.2270024717, 0.1426389366, 0.0981135517, -0.2976437807, -0.126717329, -0.2336870581, -0.0124661932, -0.1077625379, 0.22896415, -0.0520084724, -0.1838356256, 0.1500559002, -0.1203253493, -0.1821433455, -0.1838487983, -0.077394627, 0.1104085371, 0.2958632112, -0.1927149892, 0.0828798637, -0.2631966174, -0.0865848511, 0.0224585291, -0.0318973884, 0.0585661642, -0.1144163311, 0.172120288, 0.2832434773, -0.1115972027, -0.1007188261, -0.1133143529, -0.2244352102, -0.0261010341, 0.0331218727, 0.0256003775, 0.19878757, -0.0653820485, 0.3142737448, 0.181803599, -0.0245786719, 0.0984692052, 0.1187950596, -0.3638101518, 0.1489358097, 0.4348104596, 0.2406904846, 0.4003734589, -0.3566619158, 0.0113840951, 0.4704614282, 0.1783095896, -0.5043600798, -0.171583429, 0.366027236, 0.0490582846, -0.0424355604, -0.0057490249, 0.2967102826, -0.2781401575, 0.4661042094, 0.1052961573, -0.1206042022, -0.33157897, 0.491879046, 0.5647232533, -0.151066497, 0.0727327764, 0.2589703798, -0.1945707947, -0.2999488115, 0.2932031155, -0.0386258885, 0.3077791929, -0.2038996667, 0.187793076, -0.0984334126, -0.4262791574, 0.6074656248, 0.0425304435, -0.3054999709, -0.0833338946, 0.1909393668, 0.2719782591, 0.0791158751, 0.1542383581, -0.5744516253, 0.0128211277, -0.2332604676, -0.0710144266, -0.2732838392, -0.3387743235, -0.0149381999, 0.3412645459, -0.0302309524, 0.1946230531, -0.1489964873, 0.179858014, -0.3852187693, -0.0407344513, 0.057662297, -0.1627324969, -0.0195015557, -0.1323379725, 0.3157146573, -0.0149757126, -0.1051621586, 0.0240798816, 0.3086979985, 0.1354635507, 0.3607067764, 0.1760375053, -0.0643903688, 0.168184489, 0.0591208972, 0.0968913436, 0.5890873671, 0.247509703, -0.0467205942, 0.4114403427, 0.137508139, -0.148880586, 0.1996377558, -0.0472722091, -0.1336752474, -0.0364468768, 0.0877410024, 0.0499053895, 0.193481341, -0.2054525614, 0.0616448112, -0.3045835495, 0.0481352471, 0.304613024, 0.0918106958, 0.1585426629, -0.0870856717, 0.0886133984, 0.0584857278, 0.523892045, 0.2518497705, -0.0950920433, -0.131521374, -0.3987616003, -0.8981031179, 0.2192336619, -0.1326768249, 0.1904102713, -0.0903963968, -0.0477028564, -0.0156876314, 0.0872580037, 0.3024258614, -0.2319352031, -0.1907743514, 0.0351703875, -0.1877272129, -0.0751193017, -0.0276305079, -0.026967369, -0.2160740942, -0.2109431475, 0.3061743081, 0.1498883665, 0.1086842269, -0.0311831757, -0.1044480428, -0.1520152837, 0.1046767235, 0.0598912202, -0.0104902713, 0.7761982083, -0.0945753083, 0.1889770925, -0.0250125211, -0.2530233264, -0.1413274705, 0.4707529545, 0.0556929186, 0.4869844019, 0.1359594464, -0.0905773044, -0.1200733706, 0.1434053183, 0.124871321, -0.0372551531, -0.3183305264, -0.1604771912, 0.0093089743, -0.1225332096, 0.2351945192, 0.0008792878, 0.0210102312, 0.1597706974, -0.0709145293, -0.1220859513, 0.2159632742, -0.1510360688, -0.0582979433, -0.2760842741, -0.091375865, -0.1880649179, -0.0980388373, -0.6677838564, 0.0997264013, 0.4531087875, -0.1318277419, 0.050127916, 0.2690262496, -0.0532060377, 0.2836872935, -0.0610460043, 0.0280129239, 0.026364211, -0.1767821461, -0.1630324721, -0.2551242411 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
There are many many datasets on HugggingFace that are receiving this checksum error. Some of these datasets are very popular. There must be a way to track these errors, or to do regression testing. We don't want to catch each of these errors on each dataset, one at a time.
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
50
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No There are many many datasets on HugggingFace that are receiving this checksum error. Some of these datasets are very popular. There must be a way to track these errors, or to do regression testing. We don't want to catch each of these errors on each dataset, one at a time.
[ -0.0298189111, -0.2039603293, 0.021170957, 0.4256593585, 0.290446192, 0.0431604907, 0.1427193582, 0.1986541897, 0.2408197373, 0.2792515159, 0.1181162894, -0.1039062366, -0.1298159063, 0.2413554192, 0.2599909902, 0.1816885918, 0.3475727141, -0.0357042402, -0.1994270831, -0.0176086593, -0.07657478, 0.2514492869, 0.1913540959, -0.0831412673, -0.2702051997, 0.1435402334, -0.0374766886, -0.045860827, -0.0961847454, -0.3156241477, 0.4989827275, -0.0580950156, -0.2143418342, 0.4947701097, -0.0001180434, 0.1260472387, 0.202056855, -0.0915214568, -0.3524875045, 0.1506559551, -0.1200505942, -0.2884404361, -0.2091124952, -0.1103010178, -0.0529422946, 0.0407884158, 0.0784728229, -0.1119007543, 0.1138561592, 0.1694881171, 0.1817380786, 0.5020493269, 0.2283350676, -0.0369311385, 0.2585994005, 0.0330206119, 0.0187478252, 0.3099556565, 0.0157413837, 0.1295991391, -0.2918392122, 0.2564729154, -0.0213226434, -0.2818879783, 0.1807874292, -0.2144158334, -0.0499077104, -0.2514432669, 0.1440910101, 0.5065050125, 0.3222167194, -0.0372436158, -0.3060802817, -0.2644796371, -0.0246048477, -0.0330630057, 0.4261020124, 0.0601158813, 0.0508357584, 0.0170916691, -0.3233961165, 0.0237503964, 0.0715178996, 0.0460330024, 0.1099431664, 0.0430744402, -0.081760779, 0.0820085555, 0.2388524115, 0.079457134, -0.1852267236, -0.1573904753, -0.3557602763, 0.1577067077, -0.4075603783, -0.0857751146, 0.1556489617, 0.6347828507, 0.3955193758, 0.2877065837, -0.1362094134, 0.1935844421, -0.3457140923, 0.1565325856, 0.046228718, 0.1461419761, -0.1365960091, 0.0742460638, 0.3876877725, 0.129332006, 0.2060496211, 0.1797100157, 0.1156405434, -0.2909773588, 0.2242578417, 0.0114413789, 0.0541279726, -0.4145083725, -0.2349790037, 0.3199023604, -0.0710402876, -0.2167423964, 0.3191267252, 0.2758597136, -0.1634838432, 0.0615206733, -0.2063803226, 0.1218392029, -0.1293508857, -0.0168274138, -0.2721394897, 0.0369143635, -0.1433354914, 0.0763733163, 0.220117867, -0.4969217479, 0.2221264988, -0.0333808064, 0.1537830085, -0.2805456519, -0.1816652268, -0.0340405889, -0.1686592698, 0.3325066566, -0.1957550645, 0.0950591639, 0.212884903, -0.076477319, -0.1874416918, -0.1008342355, -0.2800809741, -0.4415449798, -0.1067213938, 0.1462281495, -0.5534386039, -0.1503221095, -0.2834894359, -0.0062786555, 0.0948240831, -0.1711054146, 0.0709259585, 0.0067567215, -0.3037881255, -0.1643491685, 0.2234367728, 0.4157786369, -0.0638968199, -0.1970604956, 0.1059154123, -0.3173191249, 0.2351900637, 0.242719695, -0.0921291858, 0.3261113763, -0.3456439376, -0.0237340294, 0.1000948548, -0.2068563104, -0.447039336, -0.2662116289, -0.0250868872, 0.2893113792, 0.22989057, 0.2039140165, -0.1643793434, -0.0036502446, -0.2043405175, -0.054655347, 0.1491594613, 0.0985257775, -0.125772208, -0.1723311841, 0.3890929222, 0.3261502087, 0.1021524072, -0.2429688275, 0.1888467222, -0.0866190344, 0.1704047471, -0.3913202882, -0.1349490732, 0.1472454518, 0.4778810143, 0.1857043505, 0.1283020228, -0.17239815, -0.2918385863, 0.2760455608, 0.0223953743, 0.1127854288, 0.0589622371, -0.1949963868, -0.264590621, -0.1874596477, -0.3120071888, -0.031735383, 0.0349721424, 0.3874692023, 0.1872758865, 0.172081247, -0.167207256, 0.3712115586, -0.4883309305, 0.1626031995, -0.4595719874, 0.1617579907, -0.0656737313, -0.0087374961, 0.1075224429, 0.2758816481, 0.0336643532, -0.1467995197, -0.0675572902, 0.2927708626, 0.2019951791, 0.0657946393, 0.1097145826, 0.2085164487, 0.0377948545, -0.3047081232, -0.2492867559, 0.1600951254, -0.0437269583, -0.1173713431, -0.0503220633, 0.2811782658, -0.1223788187, -0.0567913577, -0.18277435, -0.0356061421, 0.3467237055, -0.0509492755, -0.2397748977, -0.1529222429, 0.4442630708, -0.1366999149, 0.1288744509, 0.1447475255, -0.3557026982, -0.3592734635, 0.4614696205, -0.1522197872, 0.0574386008, 0.3024897575, 0.1784002632, 0.1565833539, 0.0883850828, 0.2087769061, 0.1781832725, 0.0877804458, -0.0247723497, 0.1294392049, -0.1689420193, -0.0142706735, -0.044467248, -0.0566510856, 0.1929568499, 0.3843278885, -0.1598245054, 0.0096174143, -0.7090128064, 0.0399217755, -0.2179626226, 0.2752179205, -0.5447266102, -0.0173723027, -0.2277403027, -0.1776757687, -0.4768341184, -0.239058733, -0.5820467472, -0.3556826711, 0.1131468341, 0.0656422526, -0.0061613307, 0.1265257448, -0.2457875758, 0.3816058338, -0.2001671195, 0.2035471052, -0.1050109938, -0.0678451136, -0.1877449304, 0.0108463774, 0.5554662943, -0.0447264984, 0.4686459303, -0.4204111993, 0.0016957768, -0.3654818535, -0.4313519001, 0.0518052243, -0.2234938294, 0.1508376598, 0.2496617734, 0.1798227876, -0.1458246261, -0.3611706793, 0.0605290011, 0.0204255618, -0.4573237598, 0.2512239218, -0.1501252502, -0.0803688914, -0.0255878456, -0.0521651469, -0.1506507993, -0.1471599042, 0.2278302908, -0.0827529132, 0.1523434222, 0.0577263571, -0.2247160673, 0.4623633325, -0.284532696, 0.359039098, -0.2028537542, -0.5756489038, 0.4379121363, 0.1339502335, -0.2917605639, 0.3269010186, 0.0416173637, 0.0115138078, -0.1123441681, -0.6560751796, -0.3126478493, -0.2025620788, 0.0411032103, 0.1789818406, 0.170477435, 0.2729699016, 0.0283349995, 0.077295877, -0.1937308908, -0.2915949523, 0.0163939185, -0.2694792151, 0.6347647905, -0.3804688454, 0.3180986345, -0.0704908073, 0.3545872867, 0.5337085128, -0.0158616845, 0.2080454975, 0.0877144933, 0.59950459, -0.1969526261, -0.2928667665, 0.0572097935, -0.3334007263, -0.1149436682, 0.1950851232, -0.0922008455, 0.0858368799, -0.1768276691, -0.0894612968, -0.2440315038, -0.2171568871, -0.0601637401, -0.1652778387, 0.0965497494, -0.1847422123, -0.0814037845, -0.0200225692, -0.3554990292, 0.2951549292, 0.4845642745, -0.1196330786, -0.0053613577, -0.4430505037, -0.1056621745, -0.0590892136, 0.3040571809, 0.0060549141, 0.3359311819, -0.1740846187, -0.0393160395, -0.0607999004, -0.0523616485, 0.4912564158, -0.3212644458, 0.0512662865, -0.2610477507, -0.0179771632, 0.0770042762, -0.14778319, -0.0614704713, -0.0414255299, 0.2636996508, 0.5146443248, -0.4544191957, 0.1506443918, 0.3765677214, 0.380834341, -0.2171826214, -0.1257169843, -0.5389561057, -0.2434709519, -0.1308306307, 0.2429092824, -0.0405181944, 0.1129987165, 0.1105616987, 0.0811168253, -0.0852237195, 0.061503049, 0.3486885726, 0.0950654596, 0.1948375851, 0.3405228257, 0.1188208014, 0.072496362, 0.2460623533, 0.1083255932, 0.7924241424, -0.1827904731, -0.5679696202, -0.1553484648, -0.1730141491, 0.2000273615, 0.2715858519, 0.055990506, 0.1465810686, 0.608138442, -0.0878267363, -0.1572339237, -0.0072107241, 0.2318556309, 0.334675163, -0.5906930566, -0.0946202129, 0.0409376211, 0.0384598114, 0.0041802567, 0.3857359886, 0.3075738251, -0.1901162416, 0.2126306742, 0.0998561606, 1.0393140316, -0.2086015195, -0.0169847216, -0.0194908418, -0.1593168825, 0.2012377083, -0.0340918303, -0.0411711968, -0.3481114805, -0.47390607, -0.1340031624, -0.1089841276, 0.3102669716, -0.2443820834, -0.0808098316, 0.2590548992, 0.1262796074, 0.4264635742, -0.2088151723, 0.1648540497, -0.1494481266, -0.0746976212, -0.2741146982, 0.1292948425, -0.2087012827, 0.3278910816, -0.0173268151, -0.0136924488, -0.1062697843, -0.2627678216, -0.4860113263, 0.0432446711, 0.0082898187, -0.0006073863, 0.4712979198, 0.0199300759, -0.111556083, 0.3136342466, 0.5116633773, 0.1350134164, -0.1259937584, 0.0857850239, 0.1253383607, 0.1342882216, -0.0059275059, -0.1890178323, 0.3574005067, -0.0923982933, -0.2432712317, 0.189458251, -0.1562940776, -0.4793680012, 0.0551745296, -0.1531966031, -0.2729766369, -0.1499898434, -0.0433763042, 0.0567791611, 0.1751193851, -0.2384089828, 0.1252512932, 0.248779282, -0.2539996505, 0.2270928621, -0.0412656777, -0.2324082404, -0.2019046098, 0.2834897637, -0.1584379375, -0.0598259158, 0.4186333418, -0.0004808571, -0.2647672594, -0.0261122994, 0.0349466801, 0.2687121928, -0.4811221957, -0.2881511748, -0.0796728879, 0.0590791218, -0.0514306016, 0.3351180851, 0.5612988472, 0.0378351957, 0.0554938912, -0.5458876491, -0.3692086041, 0.0891131237, 0.3456986248, 0.4410815835, -0.1430431604, -0.1712839305, 0.11110349, 0.0686538294, -0.2509777844, -0.2437142432, -0.4349649251, -0.0466171168, 0.0007305531, 0.1476954967, 0.1875841171, -0.1953652352, 0.0613975003, -0.1000835672, -0.147579059, -0.1218141764, -0.0794116408, 0.1319412738, 0.0649583712, 0.0439702533, 0.0682546198, -0.0949131548, 0.1814896315, -0.0008787229, 0.0508064553, 0.1781648844, -0.0337319374, 0.1753702462, 0.2318880558, 0.0500676073, 0.0426946916, -0.2063891292, -0.2151069492, -0.0681228712, 0.1273634881, -0.1620979011, -0.0925900862, -0.0756641701, 0.2215054631, 0.2388237566, 0.1397271752, -0.0419852063, 0.0281331353, -0.1151487604, 0.0290652737, 0.4197596014, 0.4068529904, 0.4002337754, -0.3630634844, 0.0443137623, 0.4505752325, 0.0872211605, -0.3356869221, -0.090656057, 0.5271402597, 0.1047941893, -0.2038523555, 0.1581617743, 0.2129047364, -0.1555077732, 0.3924053907, 0.0532639883, -0.0291387979, -0.3388535678, 0.3528318107, 0.3582603633, -0.2884781361, 0.0698865354, 0.2869614065, -0.1949929148, -0.0681195855, 0.1521481127, -0.0599440038, 0.41106987, -0.4519465268, 0.1443061829, -0.0646430403, -0.3759666383, 0.5603818893, 0.055356767, -0.0949729756, -0.0828594044, 0.1795974076, 0.6410157084, -0.1040082276, 0.0731614754, -0.6223169565, 0.2023781836, -0.2521518767, -0.043393746, -0.228221342, -0.06918329, -0.0319510698, 0.2458900213, 0.0284636375, 0.0709056482, -0.0131073901, 0.2272071987, -0.4073188901, -0.196933791, -0.1834082901, -0.2205007374, 0.3064601719, -0.1449636817, 0.1789001077, 0.1646414399, -0.0362150446, 0.0709549934, 0.3824952245, 0.2985697985, 0.2594674528, 0.3283146024, 0.1392816156, 0.0245277211, 0.2266044915, 0.0107476274, 0.7028865218, -0.0087656789, 0.0221858453, 0.4417330921, 0.0746814087, -0.111980699, 0.277954489, -0.3406538069, 0.0823989809, -0.2046770453, 0.1936635673, -0.2056901902, 0.1757698953, -0.413382709, 0.1932947189, -0.1974767894, 0.1737358868, 0.3496263623, 0.2455881387, 0.0469054468, -0.081376195, 0.0541799739, 0.1922416091, 0.549162209, 0.3427688479, -0.0281373337, -0.0335091874, -0.2092296183, -0.8681666851, 0.2049942762, -0.1292557269, 0.1084703803, -0.0340994336, -0.0935581699, -0.0048348759, 0.0439053699, 0.2465950251, -0.3923764825, -0.0539608411, -0.0338395871, -0.0622416921, -0.0565709248, -0.1238867193, -0.2017193437, 0.005733015, -0.1256870627, 0.358663857, 0.252358973, 0.0104294186, 0.2417224646, -0.1183372214, -0.3385248482, 0.2039922476, 0.0829931647, 0.0428105146, 0.7316064239, 0.0470839888, -0.0426891334, -0.1830776483, -0.3159917891, -0.2034708709, 0.5155565739, -0.1632380337, 0.4220122099, 0.0912488326, -0.1229119003, -0.2189827561, 0.3703345954, 0.2750771642, -0.108448483, -0.1704106629, -0.0719459206, -0.0113059841, -0.1860306412, 0.4145338237, 0.0741844252, 0.1356426477, 0.1564584523, -0.0759256184, -0.1086550727, 0.3581674397, -0.2437886745, 0.0949338973, -0.2286468297, 0.1398640275, 0.0286405869, -0.309471637, -0.8081406951, -0.0048394892, 0.2679563761, 0.0260072388, 0.0757041797, 0.3791436255, -0.2217680365, 0.123498477, 0.0278520565, 0.1039447784, 0.02835894, -0.127976656, 0.2064285278, -0.235434562 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
@rafikg I am sorry, but I can't reproduce your issue. For me it works OK for all languages. See: https://colab.research.google.com/drive/1yIcLw1it118-TYE3ZlFmV7gJcsF6UCsH?usp=sharing
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
20
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No @rafikg I am sorry, but I can't reproduce your issue. For me it works OK for all languages. See: https://colab.research.google.com/drive/1yIcLw1it118-TYE3ZlFmV7gJcsF6UCsH?usp=sharing
[ -0.3512475193, 0.1659745574, -0.0933461264, 0.2689795792, 0.3992979228, -0.1021842584, 0.2309536934, 0.5082909465, 0.2222323269, 0.0973307639, -0.0228513796, 0.1041472405, 0.1113994345, 0.2219659686, -0.1851460338, 0.0578541346, 0.2173553109, -0.0570551865, -0.253385514, -0.1530774683, -0.2149502635, 0.062458273, -0.0554576628, -0.220037654, -0.1602759212, 0.1394704729, 0.0820947662, -0.1524901092, -0.1839217395, -0.1459811926, 0.3293197751, 0.1178592891, 0.0556148551, 0.3236457705, -0.0001070226, 0.204004243, 0.2990836501, -0.0768876597, -0.0912543759, -0.0336382054, -0.3112200499, -0.2986929715, -0.2680979371, -0.1773666441, -0.1828225404, 0.1987102479, 0.0724815875, -0.1671535522, 0.0687084496, 0.3868490458, 0.2962483764, 0.268700093, 0.0334674753, 0.0407550484, 0.254124403, -0.1303070784, -0.0578427203, 0.084400177, -0.0567827411, 0.0805413648, -0.2939056456, 0.2904756069, 0.0570679717, -0.1725801975, -0.1215842515, -0.220440805, -0.0051830364, -0.2169272304, 0.2734149396, 0.4471404254, 0.5685294867, -0.0763234794, -0.170754984, 0.1354051679, -0.1687248498, 0.0271120779, 0.4450662434, 0.1046612635, 0.0166443288, 0.0882178172, -0.1283194721, 0.1812100857, -0.0128593119, 0.2064719796, 0.0011915118, 0.4863917232, 0.0275998283, -0.0272046868, 0.0665919557, -0.133671537, 0.3506411016, -0.1676963419, -0.3299748003, 0.2130671442, -0.3384398818, 0.0351564735, -0.0168430675, 0.4636754692, 0.3403212726, 0.1304294616, -0.1014173478, 0.466218859, -0.2188625485, 0.1009373143, -0.0590827391, 0.0576632321, 0.0901081935, 0.2241659313, 0.3509394228, 0.1442189217, -0.1961075813, 0.0732633993, -0.0143787228, -0.3945170641, 0.2542039752, 0.0440178663, -0.1514140815, -0.3000000417, -0.0558680147, 0.2624027133, -0.0080373436, -0.2529236972, 0.1494963765, 0.3489666581, -0.1697717607, 0.2496063709, -0.2348296195, 0.2139056474, -0.2030971497, -0.0232560094, -0.2385924459, -0.0051277964, -0.236924246, -0.1497153044, 0.2340782136, -0.0105169872, 0.3688213229, 0.0160941016, 0.1878851503, -0.1130307987, 0.0122963842, -0.1416332573, 0.0113734081, 0.1866097599, 0.0047238339, 0.1234263256, 0.1573502421, -0.1416787058, 0.0296636708, 0.1287869364, -0.2851484418, -0.029683087, -0.1501579583, 0.2882273495, -0.349113524, -0.0838890895, -0.0797339901, -0.0562770963, 0.296973139, -0.3960300386, 0.0868874118, -0.1847555637, -0.2750476897, -0.1467105597, 0.1294103414, 0.0881836414, -0.3259648383, 0.0213201456, 0.0726869628, -0.343259573, 0.2998967469, 0.1429449618, -0.0628000498, 0.0922025144, -0.2962133884, 0.2469483167, 0.2433601469, -0.2807214558, -0.6659145951, -0.0469718836, 0.1795028746, 0.1618732363, 0.1357575804, 0.0910635665, 0.0216400921, 0.1293228418, -0.2026774436, 0.0493907817, 0.3155241013, 0.146993354, -0.3158885837, -0.0066748322, 0.3165896237, 0.2735821009, 0.2446404696, -0.2335270792, 0.3639144003, 0.0499181338, 0.3457917869, -0.3562969565, 0.0806926861, 0.1447736472, 0.4330528677, -0.0159325171, 0.1386468709, -0.1745619625, -0.1354890615, 0.3069604933, -0.069731079, 0.1822151244, -0.0300464351, -0.0434209183, -0.1732578725, -0.2805733979, -0.3978430033, -0.0320165157, 0.2236769944, 0.2563427389, -0.0205893535, 0.173976779, 0.1427450925, 0.0905582234, -0.4222582281, -0.1155386344, 0.0050964141, 0.3368243277, -0.2231057584, 0.0037714993, 0.0047884965, 0.187334463, -0.0271904245, -0.044304993, -0.2419205904, 0.3134893477, 0.4701083302, 0.0484208241, 0.0198173393, 0.1671400964, 0.0906080827, -0.3428728282, -0.1127595752, 0.2516054809, 0.0504377782, -0.1518439502, -0.2971697748, 0.4999097884, -0.033022806, -0.0115669649, -0.0218061693, -0.0190689564, 0.517295301, -0.0525531769, -0.1331134886, -0.2569865286, 0.2441074103, -0.0408792682, 0.0003902153, 0.1944841743, -0.1625529826, -0.1632019728, 0.4641732275, 0.0092914589, 0.1717579216, 0.0180271268, 0.1514779776, 0.0339364633, 0.1181817129, 0.2950575054, 0.1390046626, 0.1081276163, 0.1418113858, 0.0777814016, -0.1272166967, -0.1647812426, -0.0170149934, -0.2341511846, 0.371272862, 0.4475245774, -0.0482041948, -0.2246748209, -0.6316119432, 0.1337637603, 0.016725542, 0.2425729483, -0.2643510401, -0.1346792281, -0.2212466151, -0.1324248612, -0.2962604463, -0.0639373362, -0.4264189601, -0.3862215877, -0.0160010811, -0.0804334804, 0.0175884459, 0.378372848, -0.235835582, -0.1345535517, 0.0276110303, -0.0995620415, 0.1409176737, -0.1615405828, -0.149049297, 0.1604712605, 0.5094621778, 0.1349321008, 0.2201649249, -0.2914759815, -0.0170376152, -0.2919809222, -0.5304231048, 0.0413187221, -0.13132447, 0.1775807738, 0.0782508552, 0.1492717564, -0.3588339388, -0.2695963681, 0.1675072908, 0.0906559005, -0.3385856152, 0.2954135239, -0.1829356849, -0.1626642644, 0.0411288254, -0.2949362397, -0.0921770483, -0.1731687486, -0.1102221534, 0.1876832694, 0.1447622925, -0.0025332097, 0.0840765163, 0.149570629, -0.0073392745, 0.1797214299, -0.3518319726, -0.5127820969, 0.5873091221, -0.1157962158, -0.4425736368, 0.0956528261, -0.0046681464, 0.3887701035, 0.0631878003, -0.5137246847, -0.1367836148, -0.2080620527, 0.2949259877, 0.3126197457, 0.0638087913, 0.1734391898, 0.0216413103, 0.0019408927, -0.3571845293, -0.0086981235, 0.155868575, -0.2304262817, 0.4562927186, -0.2781355977, 0.2814542055, -0.0098448843, 0.4831851721, 0.2707049549, 0.1565784216, 0.2876697481, -0.022172058, 0.336255163, -0.2057551742, -0.123203449, 0.2361587286, -0.1871917844, 0.0081507536, 0.2648209929, -0.1659146696, -0.2748817205, -0.1828938276, -0.155223161, -0.2679720819, -0.2156829983, 0.1109749526, -0.2723314762, 0.2638826668, 0.0527562946, 0.0645854026, -0.0564627051, -0.4438378215, 0.2087356001, 0.2349155098, -0.287243247, -0.1176160052, -0.6113219857, -0.1152216122, -0.0738910362, 0.158425197, 0.1941862702, 0.3791825473, 0.0154538853, -0.0748347566, -0.034144368, -0.1627943516, 0.4120713472, -0.5634593964, 0.2159874737, -0.1357989609, 0.1718470454, -0.0294955485, -0.1865469664, -0.1993028969, -0.1436251253, 0.2222082019, 0.2667877078, -0.2489202172, 0.175536707, 0.0183837861, 0.3012197316, -0.1606073081, -0.2211211324, -0.3537578285, -0.0479242951, -0.3028563857, 0.1718882024, 0.0057366216, 0.2690279186, -0.165991962, -0.0670658574, 0.0133132087, -0.0181043018, 0.2579740286, 0.1110678539, 0.234323889, 0.2552952766, 0.1677977443, -0.1949776709, 0.1069070175, 0.2080147415, 0.6726599932, -0.2704197764, -0.3828776181, -0.0853896961, -0.5234767795, 0.1258701831, 0.0347021632, 0.0978291556, -0.0661386102, 0.5032656193, -0.1981858462, 0.1160451472, 0.0124451909, 0.1402715743, 0.2324676067, -0.4709799588, -0.2733977139, -0.0152166421, -0.0259440541, -0.0312525108, 0.0921891257, 0.1576532871, -0.2919796705, 0.2396058738, 0.2532269657, 0.7946581841, 0.0508388579, -0.0210551899, 0.0763614401, -0.0831931829, 0.0082742488, -0.1346917897, -0.0213499945, -0.3813820481, -0.4075852931, -0.067970477, -0.0127969272, 0.0902275592, 0.0708657205, -0.2494337112, 0.1067655161, -0.0390065424, 0.2668912709, -0.0637338832, 0.1574859768, -0.0840213373, 0.0183898509, -0.0028035087, 0.1922022998, 0.0090237381, -0.0337321945, -0.086903356, -0.0719671398, -0.0683828369, -0.1672048271, -0.2530651987, 0.1902310848, 0.0114040198, 0.2197651118, 0.2288617194, 0.0295223016, 0.0140290195, 0.45582515, 0.4209778011, 0.3855939507, -0.2123920918, 0.2927671373, 0.4626759887, 0.0816680193, 0.0647614747, -0.0616390966, 0.3802009225, -0.1341738254, -0.3976742029, 0.0851569772, -0.17724666, -0.2529443204, -0.069367148, -0.2143394053, -0.0991105959, -0.3548663855, -0.1882584989, -0.0419087186, -0.1428556889, -0.2232571989, 0.2401383519, 0.0347226448, -0.2604287565, 0.2316321135, 0.2337538898, -0.2263587117, -0.0971632153, 0.4704761803, 0.0724096596, -0.0495243482, 0.5407129526, 0.126740098, -0.3998068571, -0.2465015799, 0.0744596645, 0.1943216324, -0.293427825, -0.3429068029, -0.0741134882, 0.0459230728, -0.0402661264, 0.3963925838, 0.2311376929, 0.1123809889, 0.1085726842, -0.4979020953, -0.1616007537, -0.0331366062, 0.0721657574, 0.2557288408, -0.2167750597, -0.1274044365, 0.0996457264, 0.0472004525, -0.3700174093, -0.0977035612, -0.2777890563, 0.0929512605, -0.1751040518, 0.1811556965, -0.0380452015, -0.1320195049, 0.1873499602, -0.066567108, -0.1469937265, -0.2778142095, -0.1487622857, 0.0733593553, 0.311308682, -0.1138571575, 0.2081056386, -0.2266473472, -0.1161816567, -0.0613445118, 0.0062319343, 0.0912820697, -0.2010604888, 0.3180844784, 0.207533896, 0.1050838307, -0.0134911938, -0.2008544505, -0.3005419075, -0.1230755225, -0.0344949849, -0.0461966768, 0.1498270482, 0.0217240509, 0.3226404786, 0.1621208936, -0.0490131155, 0.149905622, 0.1292650104, -0.2599211633, 0.1005137041, 0.4243682921, 0.2981753349, 0.3681088686, -0.3284140825, -0.0502196029, 0.3798229694, 0.2678401172, -0.4650591314, -0.1333199888, 0.2788486481, -0.0991824418, 0.113826111, 0.0247440878, 0.2681392133, -0.3926239312, 0.4389480054, 0.0720612556, -0.2536286712, -0.5074808002, 0.3743197024, 0.5749365091, -0.1655178815, 0.0231228285, 0.2271669358, -0.3503568769, -0.2916171849, 0.3849093318, -0.018736776, 0.3351933062, -0.2111372948, 0.2218338996, -0.1741390377, -0.2788486779, 0.4908179641, 0.0247424338, -0.2975631356, -0.0786202028, 0.1923296452, 0.2386765778, 0.0652855486, 0.1763703823, -0.4932512045, -0.0136279128, -0.2546603978, -0.1718672663, -0.2606469393, -0.266769737, -0.0368336998, 0.258451283, -0.0610378943, 0.2682847083, -0.0972677916, 0.2542627454, -0.2765502632, -0.1312220991, -0.0037064662, -0.1532166302, 0.0216055904, -0.1415786147, 0.2739992142, 0.0922414437, -0.0658031628, 0.0249010958, 0.1977488101, 0.1507501602, 0.3542180359, 0.1181479767, -0.0564342029, 0.0965785012, 0.0538868085, -0.0427726395, 0.7113980651, 0.4127125442, 0.0283625256, 0.4358624518, 0.1867501736, -0.2183897942, 0.1136730239, 0.0790888816, -0.1904820502, 0.0716450214, 0.1073072627, 0.1292670965, 0.1642188579, -0.3213479817, 0.0172158089, -0.3084648252, 0.0563612543, 0.1603924036, 0.1273758262, 0.2296085507, -0.2526261508, 0.134457618, 0.123375304, 0.5411763787, 0.088963069, -0.1299439818, -0.1095412448, -0.3228719831, -0.7726905942, 0.2291545421, -0.1596434563, 0.1750103086, -0.1570774466, 0.0236824192, 0.0162242092, 0.0512928702, 0.2643185258, -0.2056706548, -0.2202838659, -0.003292938, -0.2398670167, 0.0056710318, -0.0764100999, 0.0191143062, -0.1736211628, -0.2539068162, 0.2728292942, 0.1535679847, 0.2128162533, 0.0225645266, -0.1167117208, -0.1862537861, 0.0916594043, 0.121673353, 0.0828795731, 0.6560745835, -0.1932126731, 0.1683127582, -0.1166338995, -0.1624779999, -0.1579484493, 0.4457207918, 0.0852086991, 0.4287109971, 0.143058151, -0.1426926404, -0.0639499351, 0.2049692869, 0.1805137694, -0.0994110107, -0.174057886, -0.084665671, 0.1090039089, -0.1639548391, 0.0530290343, 0.0711453184, 0.0037567916, 0.0420451052, -0.1268165857, -0.3031381369, 0.1541500986, -0.16034922, -0.1329540908, -0.2334331721, -0.0482946932, -0.1568963379, -0.0719298273, -0.7501484156, 0.1005058661, 0.3180238903, -0.0224040374, -0.0492750034, 0.157338649, -0.0853543282, 0.3085180223, -0.0813396201, 0.0812067166, 0.118526876, -0.1960238218, -0.1377871484, -0.2309757024 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
@kwchurch the PR #3787 fixes this issue (generated by a change in Google Drive service) for ALL datasets with this issue. Once we make our next library release (in a couple of days), the fix will be accessible to all users that update our library from PyPI.
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
47
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No @kwchurch the PR #3787 fixes this issue (generated by a change in Google Drive service) for ALL datasets with this issue. Once we make our next library release (in a couple of days), the fix will be accessible to all users that update our library from PyPI.
[ -0.2429649383, 0.3284002244, -0.0522092618, 0.2091575712, 0.2420453131, 0.0454644859, 0.4633969069, 0.3967258036, 0.1045799553, 0.163781777, 0.0637601614, 0.0762733221, 0.1462747306, 0.2466353625, 0.0161854606, 0.037288975, 0.3186243176, -0.013912512, 0.0529289022, -0.0484249927, -0.2717499733, 0.0992432237, 0.0516768023, -0.2813888788, -0.1775579005, 0.0915840641, -0.0154969981, -0.1474163979, -0.2145938724, -0.2976880074, 0.3630706668, 0.2711384594, -0.0292166956, 0.2746334672, -0.0001117598, 0.1542523801, 0.3934958875, -0.063198708, -0.2276703268, -0.039915394, -0.161448881, -0.2265231758, -0.1312563121, -0.2220347673, -0.0333575122, -0.0030997945, 0.0003839892, -0.0174435377, -0.0986425132, 0.2395970076, 0.2454053462, 0.2541166842, -0.0100400168, 0.0687777102, 0.335657686, -0.1450099498, -0.0270137656, 0.2756665945, 0.0205962341, -0.0195358787, -0.1914077997, 0.1357621253, -0.0793002397, -0.1961643398, 0.0235942267, -0.0310256779, -0.1670646518, -0.2379554808, 0.2777626514, 0.4272861779, 0.5865117908, -0.0938726738, -0.2626327872, -0.0272868276, -0.084975034, 0.019016197, 0.5566827655, 0.211843282, 0.0474564061, -0.0024929375, -0.1924244165, 0.0940827653, 0.0057482207, 0.1238720492, -0.1686460972, 0.4281398356, 0.1914730519, 0.0343227014, 0.1235836074, 0.0175501537, 0.3288082778, -0.1180142835, -0.4256920516, 0.1470742077, -0.1740648448, -0.0684793442, 0.1330762208, 0.3431575894, 0.2252778709, 0.222404331, -0.1730956286, 0.2877365053, -0.2697230875, 0.1241292059, 0.1302489638, 0.1874376535, -0.0114091057, 0.2733400166, 0.3673292398, 0.1271046996, 0.095917806, 0.0223363843, 0.1017736495, -0.2587530613, 0.2614050806, -0.0202157442, -0.0050802235, -0.2922825217, -0.2627998292, 0.2016362548, -0.1291130334, -0.3730565608, 0.0261178408, 0.2576851249, -0.0466409624, 0.0911153778, -0.2363236398, 0.2688861787, -0.2049576342, 0.1649821252, -0.2533088326, 0.1524675339, -0.1731964648, -0.0278695785, 0.2140697241, -0.2453379482, 0.2710607946, 0.0421766303, 0.0942252874, -0.1241507381, -0.0150729679, -0.0861122608, -0.1308224797, 0.2949566841, 0.0143122468, 0.1004752517, 0.0959798545, -0.2023891211, -0.1175343767, 0.2469301522, -0.36520347, -0.0767875686, -0.2146938592, 0.2596010566, -0.4683570266, -0.1977325529, -0.2112934738, -0.0883968398, 0.2403288186, -0.468139261, 0.1306770295, -0.1794721484, -0.1310586333, -0.2804324031, 0.0372477733, 0.259055078, -0.3779576123, 0.0179072283, -0.1263481975, -0.2976594567, 0.1981603503, 0.1736904681, -0.0948908105, 0.1142624319, -0.3566372693, 0.279433459, 0.0968638137, -0.2543409467, -0.6746223569, -0.1964686364, 0.0540129729, 0.1163604483, 0.167074427, 0.0946894139, 0.117442742, 0.0269523766, -0.1056531146, 0.0656078756, 0.1666384637, 0.1300347596, -0.2482265681, -0.1982772052, 0.2942419052, 0.3028277755, 0.247323364, -0.1520589292, 0.503318727, -0.0608477592, 0.2863865793, -0.2582738698, 0.0216894858, 0.2310228646, 0.5973032117, -0.0587753616, 0.1351693422, -0.036665462, -0.2938264906, 0.313580215, -0.0038312085, 0.2642475665, -0.2495037466, -0.0982117876, -0.1613920629, -0.2126331478, -0.4853449166, -0.1398940831, 0.1694220304, 0.2567935586, -0.0541562475, 0.2334058881, 0.1797386706, -0.0606840625, -0.301022023, -0.0939210877, -0.0425495356, 0.4692882001, -0.2007824928, -0.0214749537, 0.0689440593, 0.2037729174, 0.0624882355, -0.1174392253, -0.2428197861, 0.2975324988, 0.3107623458, 0.3527574241, 0.1219467446, 0.3336085379, 0.1775077581, -0.4689958394, 0.140699774, 0.2660351098, 0.0525826514, -0.1993559152, -0.4282056391, 0.5752823353, -0.0218878016, -0.0322555602, -0.1171925142, 0.0647785589, 0.4082845449, 0.0116084479, -0.0581579655, -0.2659297884, 0.1639701426, 0.2486079782, 0.2323318124, 0.1841919422, -0.0277660061, 0.0080592399, 0.6215817928, -0.1458326727, 0.0326087475, 0.193188116, 0.0849177763, -0.1133328229, 0.1761586517, 0.455732137, 0.1880515069, 0.1165077984, 0.142545864, 0.056768693, -0.1017705426, -0.211974442, 0.052952677, -0.1392191947, 0.1236704886, 0.3288822472, 0.1639999449, -0.1179568321, -0.683447659, 0.1666320711, 0.0753192902, 0.2911660671, -0.2444657981, 0.0078930184, -0.1305849403, -0.1106938347, -0.2580087483, -0.1042098179, -0.4947218895, -0.4992268085, 0.0201151334, 0.0542024747, 0.0456994437, 0.1817440987, -0.1264663935, -0.0398935713, -0.0188536663, -0.3592708707, -0.0414045304, -0.2184319496, -0.1382008791, 0.1234440655, 0.5310227871, 0.0714367926, 0.3775667846, -0.1441093832, 0.0108480956, -0.6092316508, -0.5516392589, 0.0206907131, -0.3562901318, 0.2166653275, 0.1002513319, 0.2772898674, -0.1364315599, -0.3254093528, 0.0813085139, 0.0069436063, -0.3522285819, 0.2524475455, -0.2324385792, -0.0828953087, -0.0077515575, -0.3539752066, -0.0762416124, -0.0621805564, 0.0417259037, 0.2200009078, 0.157865867, -0.0196706112, 0.0875233933, 0.1205255911, 0.1330590397, -0.0840200633, -0.3750455081, -0.4693226218, 0.5122592449, -0.0465383194, -0.3430690169, 0.1174871996, -0.0434299335, 0.1772421747, 0.0321113057, -0.6218960881, -0.3068761826, -0.2643947899, 0.4678969383, 0.3035590947, 0.0458444543, 0.3787959516, 0.1303199232, 0.0149709703, -0.2127067298, -0.2036741227, 0.0849598497, 0.0001446435, 0.4262846112, -0.210015431, 0.3209869862, -0.1780595779, 0.7085472345, 0.1165665835, 0.2349945903, 0.319889456, -0.0115555068, 0.4463346303, -0.2534204125, -0.1288088858, 0.2794123292, -0.199191615, -0.2012404799, 0.2684168816, -0.1337947696, -0.3953402936, -0.1080952883, -0.0658016279, -0.31183061, -0.122129634, 0.0108588971, -0.2016687095, 0.1771048158, -0.0242189337, 0.0707542524, -0.1935251951, -0.5299217105, 0.1312199831, 0.2482064217, -0.1650827527, -0.027661819, -0.4376952946, -0.169331938, -0.2844645679, 0.1365549713, 0.1716264784, 0.2865558565, -0.0967038348, 0.0524816439, 0.1542563587, -0.273699373, 0.3332476914, -0.4369628727, 0.228744939, 0.0110634053, 0.273673147, 0.1473413706, -0.3364426792, -0.2497385889, -0.2060589641, 0.1756139696, 0.3072540462, -0.3043987155, 0.1559169143, 0.2114840597, 0.2314848453, -0.1681036502, -0.1764421612, -0.3526842594, -0.3761280477, -0.25055933, 0.1165137365, -0.0101058101, 0.2119067609, -0.352449894, 0.0302526653, 0.189305529, -0.063525252, 0.1408896446, -0.0203564242, 0.2505300939, 0.1738461703, 0.0887082294, -0.0142945452, 0.0528984107, 0.3703923821, 0.747841835, -0.1142883301, -0.14520289, 0.0608042888, -0.4881267846, 0.0417388901, 0.1168386415, 0.0861859694, 0.0971512422, 0.3814435899, -0.155620113, 0.0134667102, -0.1219457537, 0.165563643, 0.1742862463, -0.4390240312, -0.2902357876, 0.2962832451, 0.0551997162, -0.1243105978, 0.2929747403, 0.279540509, -0.2704806626, 0.3248834312, 0.3208730519, 0.9341353774, -0.0896364003, 0.0399152711, 0.2983727753, -0.0614312254, 0.0841943771, -0.2710008025, 0.0008899619, -0.5131741762, -0.3699735105, -0.1111964956, -0.1480976194, 0.0305406488, -0.085567899, -0.2216016203, 0.1117300689, -0.1935814023, 0.191302225, 0.0762040168, 0.2751662731, -0.2921085656, 0.0985857919, 0.1659409404, 0.1569765955, 0.0210991073, 0.0647054762, -0.1464636475, -0.0758270696, -0.0678212196, -0.2785944939, -0.5444082022, 0.1533259153, 0.020941902, 0.2325354069, 0.2206530571, -0.1831427366, -0.0173426941, 0.3371038735, 0.3275645077, 0.1433909833, -0.2883193195, 0.3456749916, 0.3522233665, 0.0564631075, 0.118194744, -0.0167939533, 0.4020585716, -0.0611916296, -0.3574001193, 0.0575970151, -0.2497923821, -0.5266296864, -0.3268018961, -0.1462601721, -0.3249629736, -0.1703717411, -0.0716822594, -0.1423738003, -0.1716830283, -0.2631750703, 0.1898194849, 0.1723970771, -0.025222009, 0.1105130315, 0.1111275405, -0.2276234776, -0.1575856507, 0.4246812165, 0.1509046108, -0.1136170179, 0.6634492874, 0.0113782622, -0.3126052916, -0.2206000388, 0.0291229077, 0.0205362272, -0.1425441951, -0.3196897209, -0.1135956347, 0.0792068541, -0.0080429455, 0.3527311981, 0.2426917702, 0.2785174549, 0.0005734002, -0.6739804745, -0.1189655364, -0.0168908127, -0.1363281757, 0.3309567273, -0.2031358629, -0.1030137986, 0.1434520334, -0.0063648471, -0.3325096369, -0.0165868066, -0.3050881624, 0.012789323, 0.0671967939, 0.1161008328, 0.0883239806, -0.1891518831, 0.2000572383, -0.1676420271, -0.0890512466, -0.1849864274, -0.0776313022, 0.1087755039, 0.2042902112, -0.1258910298, 0.1050611511, -0.1697976291, -0.0921031237, 0.0878356323, 0.1398207545, 0.1175268888, -0.2316862047, 0.1401516795, 0.2278793156, 0.0272245109, -0.0359246209, -0.1761158854, -0.3437083662, -0.1334033012, -0.0290741324, 0.090835169, 0.0455315337, 0.082674399, 0.2534843385, 0.2215973139, -0.0278097093, 0.2420581579, 0.1026587188, -0.2703699172, 0.1313254088, 0.1954032034, 0.2585739791, 0.3293653429, -0.4289798141, -0.0489448905, 0.4318139255, 0.224751696, -0.3682053089, -0.1848581731, 0.1957910806, -0.0333741568, -0.0264895502, 0.038991984, 0.3761105537, -0.2906590104, 0.2762129009, 0.0558384657, 0.0682285428, -0.4377183318, 0.3662966788, 0.5010697246, -0.2275047004, 0.0551421866, 0.3658064008, -0.3566457927, -0.3362337351, 0.308953166, 0.028795084, 0.2656258047, -0.1666904837, 0.0658177957, -0.1662965119, -0.3730242848, 0.4847821891, -0.0442077518, -0.2629241645, -0.0976080075, 0.2602490485, 0.4022377133, -0.0926894918, 0.2740914226, -0.6113341451, 0.0476233363, -0.2426764518, -0.0587910116, -0.0913774893, -0.3233948946, 0.0683551654, 0.3895214796, -0.0245059039, 0.1032858416, -0.0275041685, 0.2542215586, -0.3689353466, -0.0995221511, 0.098571904, -0.1869722754, 0.06144467, -0.1509865075, 0.2646927536, -0.0489638932, -0.1102140546, 0.0091830604, 0.2180946618, 0.2813158929, 0.3601612151, 0.1446092874, -0.1420615166, 0.0394287109, 0.0415484793, 0.1082034558, 0.5960708857, 0.3086460829, -0.0113733588, 0.3424861431, 0.1872929782, -0.1829467863, 0.1350294203, 0.1000010669, -0.1699775457, 0.0124119492, 0.1952916533, -0.0963928029, 0.0026870621, -0.27241382, 0.0750295967, -0.2355330288, -0.0433662273, 0.2718496323, 0.3151058853, 0.1947133094, -0.172647357, 0.0964561328, 0.1752556115, 0.4958581924, 0.3630921543, -0.0931319371, -0.1335062683, -0.2928734422, -0.7979300618, 0.1813886613, -0.181037128, 0.2974898815, -0.1188950688, 0.0158086196, -0.0672068968, 0.0102792121, 0.3446756005, 0.1433006972, -0.1292518824, -0.053327024, -0.2413874865, -0.0457876772, 0.0025328288, -0.0849210247, -0.3109962344, -0.2284632176, 0.2917111516, 0.0538613461, 0.1724181026, -0.0734023079, 0.0298980139, -0.0885818005, 0.1903158128, 0.2243102491, 0.094329685, 0.8250653744, -0.0675168782, 0.0991617069, -0.2040775865, -0.1937753707, -0.2082732469, 0.2720336318, -0.1430108845, 0.5277923942, 0.2166501731, -0.198014006, -0.1449455917, 0.3739532232, 0.0873996243, -0.0241997838, -0.3734737933, -0.000347857, -0.0245272964, -0.1125010252, 0.1353883892, -0.0141404327, 0.1363887936, 0.0675376505, -0.1380328834, -0.3054530919, 0.0853736997, -0.2334544957, -0.1298563778, -0.104220733, -0.0721645132, -0.1906055808, -0.0415463448, -0.6715533137, 0.1344968826, 0.3232178092, -0.0542368442, -0.1594217867, 0.1420036703, -0.0097919917, 0.2419937849, -0.0627389997, 0.0909446776, 0.0336368345, -0.1401230842, -0.0757489651, -0.1607734263 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
By the way, @rafikg, I discovered the URL for Spanish was wrong. I've created a PR to fix it: - #3806
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
21
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No By the way, @rafikg, I discovered the URL for Spanish was wrong. I've created a PR to fix it: - #3806
[ -0.2747673392, 0.301027149, -0.1136037931, 0.2822934687, 0.2694525123, 0.0328381695, 0.1257394701, 0.2994842231, 0.188693285, 0.1289109886, -0.0369257182, 0.1175513491, 0.0572667196, -0.0736763328, -0.0110750813, 0.1204035059, 0.293395102, -0.1240722165, -0.1735296547, -0.1882572621, -0.2983597815, 0.1554296166, 0.0651386455, -0.2716741562, -0.2064525634, 0.2324306071, -0.0296517517, -0.2186346501, -0.1949300468, -0.2965661287, 0.4300310314, 0.1824832708, -0.0434354097, 0.4026346803, -0.0001101853, 0.1759958714, 0.3358029723, 0.0036810965, -0.1362289041, 0.0292185247, -0.3832550943, -0.3215490282, -0.3535149097, -0.1568922848, -0.1224774346, 0.1357413083, 0.1284572184, -0.2443944812, -0.0298801493, 0.3066392243, 0.2611162663, 0.1288876384, 0.0601747632, -0.1092247516, 0.3212177753, -0.0482525863, -0.0139594153, 0.1175781786, 0.0957020521, 0.0638344511, -0.1586599201, 0.3181695044, 0.0366599448, -0.2912684679, -0.0252107251, -0.1458731294, -0.2081337422, -0.2731756866, 0.2682317197, 0.3927829862, 0.5140830874, 0.0624362454, -0.1927518249, 0.1369575262, -0.1208884493, 0.1363563538, 0.4745446146, 0.1212706119, 0.0101037109, 0.0803121254, -0.1540342271, -0.039032165, 0.0808084607, 0.2731484473, -0.1214013547, 0.5527097583, 0.0586173348, -0.0673203319, 0.0817965791, -0.0092833787, 0.42290622, -0.1969163865, -0.3059392273, 0.2939720154, -0.1675321013, 0.0742374212, -0.0031284203, 0.4239182472, 0.3609691858, -0.1188863367, -0.1722355634, 0.2574379146, -0.254058063, -0.0302181412, 0.0034523145, 0.017426366, -0.0419030748, 0.2623561025, 0.2877274454, 0.1056412384, 0.0225405637, 0.138354376, -0.0242090486, -0.3099301159, 0.1277840585, 0.1306999624, 0.0288060959, -0.2857020497, -0.0650488511, 0.260659039, -0.0048300959, -0.3619925678, 0.0184241403, 0.2694296837, -0.1619016826, 0.2277841419, -0.2589019835, 0.1753344089, -0.1952492595, -0.0995687619, -0.2516344488, 0.0159733966, -0.2652386427, -0.1877465546, 0.1704417765, -0.0552170984, 0.2888258994, -0.0433826819, 0.0606875792, -0.207746923, -0.0821878985, -0.109468624, -0.056582626, 0.1998024136, -0.0066218995, 0.2022216618, 0.1012721211, -0.2391911447, -0.0124541838, 0.2084421664, -0.3656607866, -0.1073539704, -0.2547515333, 0.261829257, -0.370246917, -0.2154138833, -0.0920228884, 0.0446532182, 0.2685894668, -0.3227417767, 0.0392831787, -0.0898657814, -0.2961012125, -0.1193508953, 0.1291219294, 0.3153424263, -0.4379153252, -0.0726519004, -0.1525575817, -0.2522816658, 0.2894393802, 0.1272393018, -0.1220417097, 0.2151862383, -0.3175697923, 0.2143691778, 0.2925317883, -0.2651797831, -0.558222115, -0.1053334996, 0.0881778896, 0.1778778434, 0.1549865603, 0.0950452387, -0.0506609157, 0.0623061322, -0.1044922248, 0.0226135384, 0.2433718294, 0.0552557148, -0.210630253, -0.0856078491, 0.3586612642, 0.3124180436, 0.3535487652, -0.1884135306, 0.4695688784, 0.0154265659, 0.343665868, -0.2574619055, -0.0543815866, 0.2123976648, 0.4002670348, -0.0415755659, 0.0849958509, -0.0648783594, -0.1724902093, 0.2793130279, -0.0686922818, 0.2608095407, -0.1085049585, -0.1294295341, -0.267387867, -0.2155647725, -0.429833889, -0.1228203923, 0.1819299757, 0.35946545, -0.1646109968, 0.1205714345, 0.0665889606, 0.0239465833, -0.4409066439, -0.0508339964, -0.104870759, 0.1924495101, -0.1692166179, 0.1173618436, -0.095542483, 0.2210558057, 0.0725321323, -0.1808868498, -0.1709125042, 0.3467346728, 0.4623944759, 0.2075929344, 0.1514269114, 0.0856706351, 0.0805482343, -0.3710221946, -0.0340396874, 0.1632930189, 0.0153906671, -0.2155438066, -0.2001363188, 0.3940429091, 0.0816029534, -0.0687987581, -0.0909681916, 0.0337239131, 0.5259985328, 0.0239290185, -0.1526989788, -0.2580765188, 0.2948235571, 0.1937362254, -0.0799658597, 0.2167275399, -0.1366118044, -0.1073849574, 0.4995677471, -0.0959512964, 0.0709297061, 0.0762287006, 0.1353186369, 0.0735360086, 0.1272245944, 0.4398851693, 0.1945939809, 0.1292038262, 0.2009279877, 0.1798176914, -0.1681616306, -0.098025471, 0.0078545166, -0.0594397299, 0.28834638, 0.3155454695, -0.1362274736, -0.1434034556, -0.6275159717, 0.1518275142, 0.024202494, 0.188396588, -0.3299642503, -0.0910120159, -0.1596061736, -0.1247408986, -0.3940650821, -0.1663697362, -0.3842592537, -0.4367756248, 0.0606580526, -0.1953186393, 0.0320293978, 0.3216969371, -0.2512389421, 0.0399853364, -0.1696683764, -0.1034086868, 0.1350282878, -0.1872626543, -0.1001115292, 0.1328623444, 0.5902060866, 0.0430051908, 0.2671279013, -0.3270361722, 0.1250500232, -0.2340159863, -0.4666524827, 0.0278484467, -0.2092739046, 0.1618129015, 0.1031107605, 0.1836694032, -0.1856107265, -0.1630022526, 0.0511646941, 0.1552274227, -0.2730132043, 0.1033724025, -0.2306531668, -0.1987732053, 0.0856169835, -0.4321104288, -0.2245005518, -0.0672628284, -0.213433817, 0.2273694128, 0.1054289863, -0.048735965, 0.1347661912, 0.2630507052, 0.0036755183, 0.0394165702, -0.4117257893, -0.4676525593, 0.5888922811, -0.084667854, -0.3107567728, 0.1564543992, 0.0180161837, 0.4113131762, -0.0223120376, -0.6182326078, -0.0132298842, -0.1784754544, 0.2116012573, 0.2146729082, 0.0346474946, 0.3170229197, 0.1345704198, -0.0187064353, -0.2256456614, -0.0926655456, -0.0601132363, -0.1804573238, 0.5820872188, -0.4253261089, 0.2349317074, -0.1169763356, 0.6928613782, 0.227232486, 0.2134335488, 0.2389068902, 0.0034029556, 0.4103201032, -0.1669202, -0.2229841352, 0.1460863948, -0.2328545749, -0.1064797267, 0.2223513424, -0.0777558386, -0.369731456, -0.2179566771, -0.1322936118, -0.2551784515, -0.1308141947, 0.113015011, -0.2245847285, 0.2012909651, 0.0189500581, 0.0883610845, -0.1310581118, -0.4405100942, 0.1209556535, 0.2072716653, -0.2611094117, -0.1397230625, -0.5795043707, -0.089714244, -0.1005446836, 0.1649653167, 0.0907969177, 0.3371973038, -0.0324210636, 0.0940556154, 0.0628555492, -0.1648248881, 0.5077392459, -0.515160203, 0.0539638959, -0.119142808, 0.2498129606, 0.046961762, -0.1871311367, -0.2046595216, -0.1498436332, 0.1607842147, 0.263130933, -0.1583436877, 0.1910227686, 0.1837693006, 0.2830286324, -0.2416190654, -0.2141108662, -0.4036942422, -0.3319489658, -0.1406883001, 0.113416642, 0.1091482118, 0.1208139434, -0.0844632387, -0.1168159023, 0.1078194678, 0.0792590305, 0.2640419006, -0.0008792364, 0.0986542553, 0.4514118433, 0.0210523456, -0.0433797538, 0.1117908284, 0.167943716, 0.785009861, -0.2031580061, -0.3559142053, -0.0219580755, -0.489238739, 0.187507987, 0.2043737173, 0.1909787208, -0.0213260502, 0.6522625089, -0.3098209202, 0.0733833611, 0.0241285302, 0.2770298421, 0.2349792272, -0.5155972838, -0.4372211993, 0.0588608198, 0.0281612892, -0.1274294555, 0.2635927498, 0.2245028764, -0.294806987, 0.1284292489, 0.343590647, 1.0258606672, 0.078998439, 0.0219680537, 0.0413586386, -0.0792822465, 0.1012582779, -0.3198488653, -0.1045050174, -0.2343177944, -0.2868424356, -0.185923934, -0.0746817291, 0.2222400457, -0.1144230813, -0.2220925838, 0.1623714119, -0.1183449477, 0.3830403984, 0.0967726484, 0.1811693907, -0.0442826971, 0.0054976866, 0.1643214673, 0.1705306619, -0.0231769066, -0.0024768498, -0.168154195, 0.0727288723, -0.0621012971, -0.1630277336, -0.3539244831, 0.1822634041, -0.0471149348, 0.214679569, 0.1437859386, -0.0050722337, 0.0217405632, 0.5612518191, 0.3975517154, 0.2683386803, -0.2229464799, 0.4573913813, 0.4547024369, 0.1418542117, 0.1290234327, -0.1780372262, 0.3178582489, -0.1154375225, -0.3635609746, 0.2118674815, -0.1911749095, -0.2607667148, -0.1862299889, -0.2245841026, -0.1628948301, -0.279814899, -0.1830480099, 0.1079696342, -0.0137286335, -0.2629170716, 0.1960257441, 0.0393514819, -0.1293802857, 0.1584466249, 0.245852828, -0.2647210062, -0.1817654818, 0.4691030681, 0.1652252674, -0.1820949316, 0.5801553726, 0.0162656102, -0.4046046138, -0.2136387229, 0.1444726735, 0.1622010916, -0.4307184517, -0.5339164138, -0.2046316713, 0.0498683117, -0.0887964964, 0.2796789408, 0.3644193113, 0.1402744204, 0.0608120784, -0.4507014155, -0.1413819045, -0.0601403005, 0.1190154627, 0.2749142945, -0.3128087521, -0.2261421978, 0.1237764508, 0.0009932407, -0.3433965147, -0.1140566096, -0.3062957525, 0.006216147, -0.1364610195, 0.3312545419, 0.0309432223, -0.2362758666, 0.1600657851, -0.0842967108, -0.1071336418, -0.2109067142, -0.0718602836, 0.1069102213, 0.242675975, -0.1274147481, 0.1703395993, -0.2048945129, -0.0010940654, 0.0610618107, -0.0492213555, 0.0421751067, -0.125659436, 0.2260756642, 0.1209392548, -0.0119928801, 0.0793426856, -0.1277587861, -0.2333569974, 0.0019454114, 0.0590720028, 0.0177988969, 0.2030650675, -0.0584658049, 0.3222153187, 0.2328964472, 0.029826507, 0.274179101, 0.0678873286, -0.2942357361, 0.2175413966, 0.31494838, 0.1673399806, 0.4105360806, -0.491075933, -0.0304236431, 0.4004052281, 0.2336987108, -0.4388534427, -0.0638696402, 0.3276259303, 0.0236093048, 0.0154395774, 0.0722756162, 0.2071933001, -0.2048368603, 0.4439967573, 0.0373164266, -0.0650659874, -0.3811050057, 0.4455946088, 0.5255631208, -0.2262291759, 0.1337037534, 0.2450757027, -0.250174284, -0.3732818961, 0.4081781805, -0.0035555514, 0.4295086861, -0.0225681718, 0.2251605541, -0.2047975063, -0.2992103994, 0.5914183855, 0.0550898649, -0.2887338698, -0.0669170842, 0.2669041157, 0.2562054098, -0.0202770736, 0.122966826, -0.5536435246, -0.0149483541, -0.1960310936, -0.11998377, -0.3210784495, -0.2948639393, -0.0686514378, 0.3112859726, 0.0015368686, 0.1219770014, -0.2030210495, 0.1370917112, -0.4094461203, -0.1283604801, 0.137150377, -0.3730465174, 0.0154803554, -0.2269215733, 0.3273495436, -0.0069890409, -0.0045693135, 0.0629099682, 0.3095303476, 0.1253951639, 0.3644685447, 0.2168649286, -0.0067771222, 0.1602151543, 0.021339424, 0.007260459, 0.6773216724, 0.3346515298, 0.0184579361, 0.449129045, 0.1838493496, -0.1888204515, 0.2911733687, 0.0764105022, -0.0336320661, 0.0573921017, 0.1081060767, -0.106331788, 0.1295301169, -0.2965554297, 0.0555647239, -0.3676752448, 0.0342025161, 0.2933445871, 0.061094936, 0.1800281405, -0.1645920426, 0.113581188, 0.1680239737, 0.5678356886, 0.1374897212, 0.0082433773, -0.1037525758, -0.3965401649, -0.8582459092, 0.2052077204, -0.1849413663, 0.2440215498, -0.2251192033, -0.0964576527, 0.1341097206, 0.1198193282, 0.2811591327, -0.259662956, -0.1581029594, -0.005285128, -0.2188098878, -0.0998181552, 0.0204243883, 0.2098548412, -0.2085163593, -0.1404923201, 0.2722396255, 0.1229765713, 0.1376239657, 0.024563035, -0.1944924593, -0.1400312781, 0.1937949359, 0.1520658731, -0.0044307085, 0.7565632463, -0.1499141306, 0.1076285765, -0.2361860722, -0.3115543723, -0.136024043, 0.4432083368, 0.0558044203, 0.3068816066, 0.1496776193, -0.1451859027, -0.1004133672, 0.2237433344, 0.1240630895, 0.091159828, -0.3207851648, -0.0845310763, 0.0216622595, -0.1690344959, 0.0926802456, -0.0030275912, 0.0191168692, 0.0865952447, -0.0537904128, -0.1468239874, 0.1900360286, 0.0091170976, -0.103297919, -0.1831261516, -0.0622052066, -0.1428137869, -0.1317229867, -0.6840957999, 0.0671798587, 0.376416564, -0.0357137546, -0.0236063935, 0.2509923279, -0.1050872728, 0.2606507838, -0.1040580347, 0.0861944407, -0.0552929267, -0.1696836054, -0.1197075546, -0.241169557 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
I have the same problem with "wider_face" dataset. It seems that "load_dataset" function can not download the dataset from google drive.
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
21
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No I have the same problem with "wider_face" dataset. It seems that "load_dataset" function can not download the dataset from google drive.
[ -0.387026459, 0.140017435, -0.0685568601, 0.4098217487, 0.1368342638, 0.1154296622, 0.3463055491, 0.2142237276, 0.3116495013, 0.1409804523, -0.0570875891, -0.0907565504, 0.1048549861, 0.3408809006, 0.1011659354, 0.0062464438, 0.3096239567, -0.0447073132, -0.0985486656, -0.1369820088, -0.389549166, 0.152292043, 0.0300668925, -0.3277660608, -0.107887432, 0.245717153, 0.0862795562, -0.128235206, -0.1874111891, -0.099182941, 0.4089080691, 0.1647212803, 0.0615658276, 0.2813423872, -0.0001220761, 0.1441068798, 0.3157048821, -0.1743688881, -0.1823501587, -0.0521295816, -0.2492933273, -0.2590536773, -0.2006162405, -0.153961584, -0.0056272391, 0.0647753701, 0.0800055191, -0.1535822004, -0.0038571593, 0.3775042593, 0.1560546309, 0.2232962251, 0.0831582919, 0.0102445716, 0.3163062334, -0.1744630635, 0.0164901782, 0.268453598, -0.0907269642, 0.1136482358, -0.0433469824, 0.1550724059, 0.003848423, -0.0725389868, 0.1849334538, -0.1293469965, -0.2373007089, -0.3392761946, 0.3406577706, 0.4043818414, 0.6937730908, 0.0984031484, -0.2298871726, -0.0627317727, -0.1914068162, 0.0747112259, 0.5149171352, 0.1928583533, 0.0838869363, 0.0049852226, -0.4287889004, 0.0246359557, -0.0246256534, 0.2264683396, -0.2023602575, 0.239789471, 0.0249382127, 0.100539878, 0.1825177222, 0.018416021, 0.394784838, -0.2615340352, -0.3898628056, 0.2102011293, -0.3021520376, 0.0851597413, -0.0198552422, 0.5509445667, 0.3597513139, 0.1973710209, -0.08503142, 0.2087730765, -0.321052283, 0.088074483, 0.128369242, 0.1010304466, -0.1543906331, 0.2088634074, 0.3088054657, 0.1313384622, 0.1078482792, 0.0522969663, 0.0319100767, -0.3589047194, 0.2421357632, -0.0364404432, -0.0061895023, -0.2485122979, -0.2351495177, 0.2204187363, 0.0077829049, -0.4160233736, 0.0503163785, 0.33567366, -0.1351079941, 0.1034392864, -0.1293141395, 0.2679185569, -0.0500292033, -0.1095586494, -0.2235829383, 0.0555844568, -0.0498280302, -0.0295252819, 0.248883903, -0.1961615384, 0.3241274953, -0.1245968267, 0.1628247648, -0.1025360599, -0.0575049706, -0.0527295209, -0.149209708, 0.2675431073, 0.0851702392, 0.0372538418, 0.064978905, -0.134959951, -0.0397345126, 0.2599514425, -0.3634675145, -0.1032149941, -0.2132152915, 0.1430863887, -0.5429010987, -0.0880673751, -0.4190923572, -0.0339896455, -0.024072649, -0.3935297728, 0.0010067854, -0.2298562378, -0.2319900244, -0.2215610296, 0.1850178391, 0.374109149, -0.3954780698, -0.0949995816, -0.2181177288, -0.3359615505, 0.1591139287, 0.1351810694, -0.0890046805, 0.1919354498, -0.430999279, 0.0065702335, 0.3256115913, -0.2116708905, -0.7673969269, -0.0367677398, 0.0541919731, 0.2614412308, 0.176012218, 0.0885022953, 0.0338598378, 0.184385851, -0.0869210884, 0.1613475233, 0.2096322775, 0.0860080421, -0.0634926334, -0.1165886149, 0.3313083649, 0.4137221277, 0.3229614496, 0.0661559999, 0.4945323467, -0.2052890658, 0.2454540133, -0.2724947333, 0.0253692511, 0.2304560095, 0.3948559761, -0.089068234, 0.1553983986, -0.0623174235, -0.4738558829, 0.3743194044, -0.1544815898, -0.0081412401, -0.1454292685, -0.001990933, -0.3293534517, -0.299646616, -0.3863086104, -0.0356251076, -0.0095363706, 0.3652468324, 0.0714244097, 0.1448018104, 0.1412720233, 0.1501615345, -0.372451961, -0.0518122204, -0.1372105032, 0.4498652816, -0.0723243132, 0.0489889234, 0.1256458461, -0.0125417523, 0.0907703117, -0.1924913824, -0.2845330536, 0.2433739603, 0.397366792, 0.3072085977, 0.021053344, 0.2814695835, 0.1074661911, -0.4277844727, 0.0406486019, 0.2487952113, 0.0679652691, -0.1890857071, -0.3086133599, 0.3689646125, -0.108733885, -0.0974207819, -0.1641653627, 0.0490606651, 0.4286229908, 0.0020167225, 0.0448969565, -0.2136000246, 0.1850461066, 0.2802220881, 0.2661920786, 0.0798551068, -0.1881723106, -0.081734553, 0.5695546865, -0.0814620703, 0.0202973932, 0.1499047428, 0.0159501508, -0.0853952989, 0.0806578696, 0.4095087349, 0.2615812421, 0.0251045208, 0.1109338552, 0.2032332122, 0.106683448, -0.0820419416, 0.0399508961, -0.0306095667, 0.2794574797, 0.4648535252, -0.0446225479, -0.1508876979, -0.5298841596, 0.172740221, 0.1353036165, 0.2782872915, -0.3625418544, -0.0239798557, -0.0752060115, -0.072911948, -0.2469872832, 0.1446077824, -0.4725110233, -0.3734747171, -0.2371107191, 0.1989313066, 0.1096148714, 0.0768362433, -0.1911517084, 0.1549809128, 0.0327759832, -0.2866146863, 0.0173173249, -0.036880102, -0.1178934053, 0.0668886527, 0.5276821256, 0.0911609158, 0.1617060602, -0.3210932612, 0.2424295843, -0.6092813611, -0.4101074636, 0.0068858974, -0.2428215146, 0.3545549214, 0.1023254469, 0.2659590542, -0.308878243, -0.1441637278, -0.0717074499, 0.0358530618, -0.3016376793, 0.0348392203, -0.203983292, -0.1250761598, 0.1839554161, -0.1808236837, -0.1277538389, -0.1923332959, 0.1688770354, 0.2665379941, 0.1680293828, -0.193618238, 0.0011776786, 0.0972677022, 0.2534253001, -0.0072111008, -0.372914046, -0.4884802699, 0.6667433381, -0.1516045481, -0.4785185754, 0.2139267474, -0.0218900032, 0.1883078665, 0.1301501095, -0.6123348475, -0.1316715181, -0.1663781554, 0.2181159407, 0.2933683395, 0.0148390345, 0.3023493588, -0.1345150173, 0.2195215076, -0.2458544672, -0.3470201194, -0.0369511023, 0.1217168272, 0.4631714821, -0.10999199, 0.3629831076, -0.3648304641, 0.6309365034, 0.263841778, 0.1869563013, 0.2307759821, 0.0147750489, 0.4591460228, -0.2213194817, -0.190082714, 0.1781311333, -0.1562985331, -0.1387895197, 0.2732174993, -0.2307696939, -0.1640410572, -0.2504718304, -0.2815033495, -0.4041893482, -0.0203284062, -0.0274825972, -0.064032726, 0.1940016598, -0.0195146464, 0.0831388757, -0.1331260949, -0.4698104858, 0.2224665135, 0.2975810766, 0.0633311868, -0.0356277637, -0.5495055318, -0.0535028987, -0.0573011898, 0.3444866836, 0.1138917208, 0.2831639349, -0.0602321699, 0.0429797433, 0.0177199375, -0.1287021041, 0.5799269676, -0.5977916121, 0.2207300663, -0.1319500953, 0.1515041739, 0.0589683615, -0.247067064, -0.0695402101, -0.191959247, 0.1980970353, 0.2426306456, -0.1880577505, 0.2037309408, 0.3631599247, 0.3169658184, -0.2643175423, -0.1791034192, -0.3916346133, -0.1950109154, -0.1986810416, -0.008856101, -0.1104872003, 0.2578099966, -0.1541175395, 0.0879107416, 0.083216913, -0.1226613224, 0.2040994167, -0.051016219, 0.3292499781, 0.3704613447, 0.1216926426, 0.1747969687, 0.0209442619, 0.2357765138, 0.9684816003, -0.1490019262, -0.4792545438, 0.2117636651, -0.3835824728, 0.0830928683, 0.0795064941, 0.0889719352, -0.0734334588, 0.5965079069, -0.1345039159, 0.0681175292, 0.0065839239, 0.1695722193, 0.1947102249, -0.5198321342, -0.4317212701, 0.1802963465, -0.0202261619, -0.0473342314, 0.3445520401, 0.2336588204, -0.2293486297, 0.1070982069, 0.1848535389, 0.8723118901, -0.0408211313, -0.0158058405, 0.0479181409, -0.05373054, 0.0746082962, -0.1815412492, -0.0469085015, -0.3893962801, -0.3320747614, -0.2208416462, -0.1930271685, 0.1367569417, -0.0495083593, -0.0410586633, 0.1983854026, -0.1120145768, 0.4275870323, 0.0051193456, 0.3770999312, -0.0229229387, 0.0831721872, 0.2444067299, 0.0237775091, -0.0897992775, 0.2514630854, -0.1144583076, -0.0833721533, -0.1521643698, -0.2020132691, -0.4402322769, 0.2529988587, -0.0879386216, 0.1481205672, 0.1973135769, -0.278991133, 0.1007363275, 0.5648467541, 0.4015717208, 0.108237043, -0.3469733298, 0.4025011063, 0.1930613667, 0.0064274012, -0.0696793646, -0.1266806275, 0.25999102, -0.0853011161, -0.3572720885, 0.2081334591, -0.1715484411, -0.5501701236, -0.2455216944, -0.1562835425, -0.3691178262, -0.2945387363, -0.2850141525, -0.1718230247, -0.0748823136, -0.186062336, 0.0815469995, 0.1677044183, -0.0195040293, -0.0077363416, 0.2227977812, -0.3025433719, -0.2549695969, 0.4857884943, 0.0417032391, -0.247172147, 0.5696102977, -0.0017070813, -0.2756401002, -0.1391024441, -0.0254311021, 0.2316069752, -0.2681924701, -0.2743700743, -0.1929286718, 0.1959765404, -0.0660672933, 0.3809810579, 0.2773072422, 0.2878043354, 0.1878110617, -0.6676113009, -0.1096293777, -0.0492647663, -0.0633993521, 0.3061364591, -0.0725326687, -0.3632896543, 0.1704377085, 0.019009769, -0.2131282389, -0.0624931902, -0.1699963659, -0.15469037, 0.0659559295, 0.1592042297, 0.182788074, -0.1892780513, 0.0903819427, -0.1345793456, -0.2060013115, -0.0743785128, -0.0881992653, 0.1750905961, 0.2148713917, -0.1789112836, 0.040723972, -0.2994756103, -0.1364769787, 0.0513003878, 0.1961213797, 0.040566802, -0.1094842032, 0.0271927677, 0.1326610148, -0.2370245308, -0.2393820435, -0.1278365403, -0.3109952211, 0.0530992262, 0.0693239942, 0.0981036648, 0.1868068576, 0.035174232, 0.0739222765, 0.1239068434, 0.070160538, 0.0796603113, 0.2947424054, -0.2883751392, 0.1106914207, 0.1739747524, 0.1961271316, 0.3494383693, -0.489561677, 0.0591387749, 0.3359456062, 0.0916746184, -0.4282805324, -0.1901547909, 0.3052355647, -0.0372229367, -0.0409850739, 0.0716009364, 0.4628221989, -0.2444290817, 0.3072069585, 0.0646236092, 0.1777313352, -0.2652513385, 0.4732668996, 0.5217012763, -0.1350565404, 0.1931536943, 0.4049506783, -0.0913299844, -0.2820893824, 0.2818010449, -0.0238377489, 0.1295758039, -0.2687690854, 0.1733461916, -0.0545866936, -0.5807127357, 0.5668656826, 0.051130686, -0.4712404311, 0.0202158839, 0.14343068, 0.141199857, 0.0051529552, 0.2490428984, -0.7117686868, 0.0175050627, -0.1116522402, -0.0050833463, -0.18170847, -0.45906955, 0.0068895663, 0.5294154286, 0.0318124108, -0.0705875233, -0.1318602264, 0.2048320472, -0.435526818, 0.1423411667, -0.0680761486, -0.1898225546, -0.0158321019, -0.1657225937, 0.20719935, -0.0126055563, -0.1400777549, 0.1832286119, 0.2399973124, 0.156481266, 0.2946584523, 0.2391957939, -0.1202615499, 0.2180874944, 0.0142387096, 0.1212321967, 0.5734008551, 0.2142048478, -0.1011671498, 0.3689810038, 0.1092418209, -0.0977029502, 0.1910280883, -0.0317703076, -0.0826585516, -0.207766071, -0.0000144715, -0.1036324725, 0.2356947511, -0.3555153608, 0.0219092146, -0.2932020128, -0.1214150637, 0.2755691707, 0.2623923719, 0.1466645151, -0.0261037182, 0.0233332776, 0.0734876692, 0.5514846444, 0.3637732863, 0.1215987653, -0.0989876613, -0.4029866159, -0.7902924418, 0.2140987664, -0.165876925, 0.2955962718, 0.0633749217, 0.0176338758, -0.0605317913, 0.0375409946, 0.3598912954, 0.0620786287, -0.1326748133, -0.0200319532, -0.1183525845, -0.1651424766, 0.0187166482, 0.0578894019, -0.286249876, -0.3193526268, 0.3908473551, 0.1537372619, 0.0038942136, -0.116060324, 0.0364444591, -0.2350782752, 0.0519337356, 0.3287863433, 0.0191177521, 0.8932209611, -0.0826638266, 0.0589678213, -0.1142636761, -0.2049635649, -0.0924754664, 0.4241430163, -0.1007880419, 0.5381448865, 0.2184045613, -0.1490972638, -0.1708965898, 0.306706965, 0.0898403525, 0.0622357093, -0.2781230807, -0.1254881471, -0.1224522665, -0.097088322, 0.3700856864, -0.0324022472, 0.0460983068, -0.0353931226, -0.0080905221, -0.0103522874, 0.2029765099, -0.153000325, -0.04469008, -0.2021204233, -0.0549080558, -0.1544181854, -0.0610046834, -0.657368958, 0.1779362559, 0.4270516336, -0.0843200758, -0.0358785391, 0.1873639375, -0.1253681332, 0.2209499031, 0.0099547105, 0.0202063005, 0.055914402, -0.2020798326, -0.0947180316, -0.1757688075 ]
https://github.com/huggingface/datasets/issues/3788
Only-data dataset loaded unexpectedly as validation split
I see two options: 1. drop the "dev" keyword since it can be considered too generic 2. improve the pattern to something more reasonable, e.g. asking for a separator before and after "dev" ```python ["*[ ._-]dev[ ._-]*", "dev[ ._-]*"] ``` I think 2. is nice. If we agree on this one we can even decide to require the separation for the other split keywords "train", "test" etc.
## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`.
67
Only-data dataset loaded unexpectedly as validation split ## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`. I see two options: 1. drop the "dev" keyword since it can be considered too generic 2. improve the pattern to something more reasonable, e.g. asking for a separator before and after "dev" ```python ["*[ ._-]dev[ ._-]*", "dev[ ._-]*"] ``` I think 2. is nice. If we agree on this one we can even decide to require the separation for the other split keywords "train", "test" etc.
[ 0.00019797, -0.0223320331, -0.0004890826, 0.0312808827, 0.2191147953, -0.200498417, 0.2411285788, 0.5713531971, -0.2572956681, -0.1379632652, 0.1421869248, 0.1751895398, -0.1989684403, 0.2185006291, 0.0153300706, 0.1457435042, 0.0395135172, 0.3197079599, 0.1515252441, -0.1166349277, -0.2198168933, 0.1000352949, -0.1554950178, 0.1741180271, -0.2647843659, -0.0144032519, 0.2917337418, 0.1512089521, -0.1158300787, -0.4627323151, 0.3759626746, -0.1182533726, -0.2695986629, 0.2173398733, -0.0001187098, 0.0670637041, 0.2198016942, -0.2302666008, -0.0757286698, -0.1834652424, -0.296800375, 0.0022935627, 0.2290694267, -0.0132255238, -0.2151645422, -0.1797981262, -0.0775290802, -0.1169489399, 0.7305973768, 0.4427785277, 0.0973922759, -0.0312434528, -0.2681051791, 0.3042491674, -0.0771688595, 0.4378033876, 0.0383840948, -0.1174183041, 0.4219527245, -0.1886460334, 0.1858577877, 0.213872537, -0.2008198649, -0.0438178927, 0.2713027, 0.0475193299, -0.1084361449, -0.5572146177, -0.0197213087, 0.5428008437, 0.2997434437, -0.1327747852, -0.1505494714, -0.20979321, -0.140762791, -0.1150897443, 0.0635781363, 0.4800372124, -0.2110175937, 0.3628178537, -0.0235653706, -0.0759155154, -0.1258396208, 0.0268492457, -0.3213357329, 0.500445962, 0.0702825785, 0.1447596252, -0.0208693985, 0.2295286655, -0.1455359161, -0.2361266911, -0.3424968719, 0.1734258235, -0.0141095165, -0.1480582654, -0.17099154, -0.2223727554, 0.2963195443, 0.0777173117, -0.1483005434, 0.1062979549, -0.2868789434, -0.0876826644, 0.3269309998, -0.0169974342, 0.3243623078, 0.2379041165, 0.2892568707, -0.2064950168, -0.0579250231, 0.0625749007, 0.3159630001, 0.0265967399, 0.1580867469, 0.0716203377, 0.2357884198, -0.1666553915, -0.2825426459, 0.1444142163, -0.4360743761, -0.1049720943, 0.0461195074, 0.2732689977, 0.2284066975, 0.3492760062, -0.1077299118, 0.2829207182, 0.1363757551, -0.4516978264, -0.0747475475, -0.0007224364, -0.1917083412, -0.1240435913, 0.1909613013, -0.0526442416, -0.0501036905, 0.3578543365, -0.2993477583, -0.3114261329, -0.0408676118, 0.0715258121, 0.3950224519, 0.4694709778, -0.3503126204, 0.1674696207, 0.0929116532, -0.3966755867, -0.1737746, 0.2701395452, -0.2245038897, -0.3606038988, -0.0981091186, 0.1611756384, -0.1568711251, 0.4141389132, 0.0049126842, 0.1541442424, -0.0414364189, -0.0747873262, -0.0423991084, -0.2053509653, 0.171030432, -0.1816764772, 0.0548206158, 0.181331858, -0.4950346351, 0.1291486621, -0.0782894865, -0.2155326456, 0.2049826533, 0.1605439335, -0.3379323781, 0.4154065251, -0.4379731715, 0.2197497338, 0.3838562965, 0.0895198137, -0.2038419396, 0.5850690007, -0.266292721, 0.3065759838, 0.1796212196, -0.1402959675, 0.0960090756, 0.1199406087, 0.0191814974, 0.3970437348, 0.0293735657, 0.0319724903, -0.1577807963, 0.0140120145, 0.101470463, -0.0327382758, 0.344917506, 0.1894327998, -0.0536564365, 0.062878415, 0.6565930247, -0.0571352355, -0.1814222783, -0.0291200913, 0.3136988282, -0.2574158311, 0.1818305254, -0.3609099984, -0.3814878166, 0.001804479, 0.0371708423, -0.1722257286, -0.1603850275, -0.2998898327, -0.2719345093, -0.0251088236, -0.0726617128, 0.1042823046, 0.0654967055, -0.0712940097, 0.0739649981, 0.016068548, -0.3214274347, 0.3262153268, 0.1210259199, 0.2275758386, -0.1379183084, 0.2638798654, 0.1263040155, -0.013199755, -0.2168608755, 0.1602080166, 0.0576326698, -0.3048665226, 0.1424596012, 0.2844198048, 0.3495087922, -0.1497478038, -0.3801064789, 0.0613434315, 0.0664544776, -0.0011008235, -0.229363814, 0.2556699812, 0.1761868, -0.3794988394, 0.0694937557, 0.5455437303, -0.0700094402, 0.1851426214, -0.0660351515, 0.0122106085, 0.2585198581, -0.3102910221, -0.0721624792, -0.2523163557, 0.2616296709, -0.0026385461, 0.1076674536, 0.2218463868, -0.3409272432, -0.102885209, 0.3009595871, -0.3570410609, 0.0651662797, 0.1165599898, -0.1151728854, 0.0394305475, -0.1853945851, 0.4507960975, 0.5713419318, 0.1616580933, -0.2740943134, 0.2514173687, 0.0458087772, -0.1081319228, 0.3707883358, 0.2186808884, -0.2082647681, 0.2608324885, -0.1824760586, -0.1299828887, -0.4495160282, 0.0277999062, 0.0970192179, 0.0403280146, -0.5080072284, 0.1127670854, -0.3519363701, 0.1638837159, -0.3729685247, -0.1554016769, -0.3188844025, -0.3784327507, 0.1092737317, -0.1244727001, -0.1061582565, 0.0464386009, -0.0640704557, 0.1662280858, -0.2400115728, -0.4219296575, -0.2699584365, -0.0596622936, -0.1348635852, -0.0736365095, 0.324308455, 0.196787864, 0.2875962257, -0.0701737478, -0.3039919734, 0.0808185264, -0.3596982062, 0.0858281925, -0.071795322, 0.1786848456, 0.2981573939, 0.2861456275, 0.3875273764, -0.2349980474, -0.1549210399, -0.0596999675, -0.090635322, 0.2013061941, 0.0143207731, 0.1368198693, -0.3090941906, -0.4328055978, -0.1535362452, -0.0837209895, 0.0366733409, -0.2659429908, 0.0205034222, 0.0799614862, -0.3489758074, -0.2700121403, -0.2659590244, -0.0565060414, -0.1243486851, 0.2853248715, 0.2384985983, 0.1248191968, -0.0757757053, 0.0787729695, -0.2477780133, -0.0110458871, -0.0307883583, -0.4505431354, -0.1752439588, -0.2340733707, -0.1334542781, -0.3417870402, -0.1997122616, 0.0707378313, 0.1422649175, 0.111919716, -0.0927640945, 0.0554844625, 0.1857662499, -0.1143317744, -0.0040468303, 0.0895863995, 0.3679287136, 0.240941897, 0.5671690106, -0.091143921, -0.1350568235, -0.0675173327, 0.010743401, 0.2341371924, -0.0835911259, -0.2912348807, -0.1863082349, -0.0142967626, -0.2211537361, 0.1403888762, -0.172749117, 0.1977133453, -0.007702915, 0.1453457922, -0.1375702173, -0.2581812441, 0.3438130915, -0.0841752216, -0.1090979651, 0.3149065375, 0.3291678429, 0.1426775306, -0.0583973974, -0.0637319386, 0.4073390663, 0.1478833556, -0.0837457627, -0.4597442746, -0.0289583467, -0.1895180792, 0.3570019305, -0.0025003469, 0.0359241143, 0.0937966704, -0.0006198166, 0.1648885757, 0.1578322649, 0.7085892558, 0.0526386797, 0.159279421, -0.0388943106, -0.0071198633, -0.0774280429, -0.3858755231, -0.2660959959, 0.1132515296, 0.3255947232, 0.5411129594, -0.3899661899, -0.1857762337, 0.0363560021, 0.3605662286, -0.1307820678, -0.1025897488, -0.2082014978, -0.2964136899, 0.0733134747, 0.2773419023, 0.381722331, 0.0773914754, -0.0556664914, -0.0492154993, -0.0821735635, -0.2134589702, 0.3905292153, 0.0820326433, 0.3139004409, -0.2073687017, 0.1862089187, -0.1493834704, 0.448076129, -0.0623100176, 0.455691278, -0.1476928741, -0.424593091, -0.4914881289, -0.2620456815, 0.491158545, 0.579791069, -0.1261962652, 0.0749277696, 0.0164073408, 0.0825168714, -0.2818475962, 0.3251891434, 0.3016849458, -0.1270635575, -0.6860483289, -0.3371899724, 0.2851076722, -0.0246514436, -0.2848030031, 0.3688291013, 0.1860345155, -0.5046844482, 0.5521909595, -0.2486474514, 0.9538235068, 0.0349559709, 0.1327853054, 0.1290297806, -0.2555446625, 0.1754224747, -0.4655864537, 0.1792345345, -0.4708915651, -0.3182790875, -0.1341019571, -0.2341116071, 0.1260325015, 0.50244838, -0.0529691204, 0.2508698106, -0.2056819946, 0.3391844332, 0.1095456257, 0.2265715152, 0.2198551893, 0.0000995334, -0.2087084055, -0.0593281686, -0.3477523923, 0.0950065777, 0.0069354922, -0.3744823039, 0.1420750469, -0.5063497424, -0.305988431, 0.0903018638, -0.247480914, -0.0100201387, 0.1843830496, -0.1893184334, 0.078204073, 0.2405846119, -0.0890541822, 0.2955697477, -0.0403426774, 0.3793393373, -0.1802250594, 0.2873916328, 0.0101109864, 0.0266021024, 0.4430348277, 0.2101338059, -0.1139504462, -0.0929241404, -0.2430682331, -0.0296643134, -0.2127990276, 0.3238786757, -0.1148227006, -0.4722012579, -0.2262325734, 0.1195932999, 0.3119442165, -0.1122451499, 0.0784794018, 0.1412152499, -0.3753369451, 0.4328152835, -0.2004270256, -0.4809315801, -0.0358544625, 0.0849199891, 0.1138185859, -0.0742860287, 0.5046221614, -0.166154325, -0.0044068615, -0.3018811643, 0.533616066, 0.4437614679, -0.3005977869, 0.426423043, -0.0584298931, -0.1851737946, 0.0598337278, 0.0365939662, 0.1284177005, 0.0170889329, -0.1035940349, -0.4287704825, 0.1096221358, 0.0326732136, -0.1699313074, 0.1310700476, -0.0007414137, 0.2798271179, -0.2001105994, 0.2026311755, -0.2330515683, 0.1192478389, 0.1318664849, 0.1537925303, -0.3605418205, -0.0498953834, 0.2306994498, -0.0000445555, 0.1798219383, 0.0227105767, -0.0526049696, -0.1845129579, -0.1973914951, 0.1756675392, -0.0084203333, 0.2211726904, 0.0522803925, 0.006112502, -0.1116710752, -0.093382664, 0.1822628528, 0.0898184925, 0.1442970634, 0.2797048092, 0.1738041788, 0.0963491499, -0.2142666429, -0.1958499253, -0.396854192, 0.5229963064, 0.0543693155, 0.1409224868, -0.0355687626, 0.0350521132, -0.2721002102, 0.0302885715, 0.018023897, 0.2681161761, 0.1620108634, -0.1335734427, -0.0619506501, 0.0110699246, 0.470031023, 0.6700457335, -0.537696898, 0.1872211546, 0.1703762859, 0.1409417242, -0.2726535797, -0.3511682451, 0.616310358, 0.3085182309, -0.0229879022, 0.2897023261, 0.1904797703, -0.0170056839, -0.0308803432, 0.0193050709, 0.3677353561, -0.2239805311, 0.3090017438, 0.7823269367, -0.129580915, -0.0364027098, 0.1827407777, -0.0678775311, 0.0030337444, 0.7862106562, -0.0963452607, 0.4619961083, 0.1045831814, 0.0208439715, 0.2914489806, -0.1991212815, -0.1758542061, 0.272882551, -0.4284968376, 0.3243761063, 0.2042000592, -0.168926388, -0.3684230745, -0.1848517507, -0.3791832924, -0.2038902491, -0.2261380553, 0.1490868926, 0.1602681577, -0.0728748068, -0.1743685603, 0.212023586, 0.1162171438, 0.0036422599, 0.0749575794, 0.2125976831, 0.0586611927, 0.0853487998, 0.0443805493, -0.1656248122, 0.2764898241, -0.4862480164, -0.0764750093, -0.0482658744, -0.150757432, 0.5332822204, -0.0879996195, 0.2448200732, 0.4429164231, -0.090436317, -0.1691427976, -0.3687307835, -0.1092229262, -0.0825205967, 0.3717934191, 0.0046002208, 0.2648405433, 0.3188353479, 0.1652590036, -0.0503375828, 0.0431648865, 0.2322905064, 0.0261563566, -0.452852726, 0.4932235479, 0.2014744282, -0.249430865, -0.3079505861, -0.0207754336, -0.0901686698, -0.2346813679, 0.2134613991, 0.2817034721, 0.2126813382, -0.1542661935, 0.0472408868, -0.0177346133, 0.3042327464, -0.1126936525, 0.0153803164, -0.2925518155, -0.0136870295, -0.3867606521, -0.0229831003, -0.2399173528, -0.1443843693, 0.3068804443, -0.1508853883, -0.0134745287, 0.1518731117, -0.1062015966, 0.0211335029, -0.0248545632, 0.1129586771, -0.362850666, 0.0938805416, 0.2350414693, 0.0969854519, -0.0769587085, -0.3116647899, 0.3963646591, -0.0257261917, -0.0472654402, 0.0639214888, -0.1670601517, 0.3818323016, 0.4545203745, 0.3510365784, 0.3722222447, 0.3462917805, -0.0203687195, 0.0998134017, -0.0509468205, -0.0087650493, -0.4033440351, 0.381398499, 0.1290156841, 0.2191099674, -0.1736270785, -0.0036077707, -0.2765975595, 0.1005787775, -0.1146546602, 0.016130358, -0.6275088787, 0.0333861634, -0.2085245252, 0.3212141991, 0.1675675958, 0.4369576275, -0.1400511563, -0.1045853049, 0.1316968352, -0.2902426124, 0.2775030434, -0.1960567534, -0.5450373888, -0.0622649789, 0.2458992451, -0.0900916904, -0.0277982801, -0.3853634894, -0.2661912143, 0.3242824376, -0.2007635236, -0.2890168726, -0.0023470386, 0.2883588672, -0.2440823913, -0.0652559474, -0.0731023699, 0.2828903496, -0.4142073691, 0.1549087018, -0.3507867157 ]
https://github.com/huggingface/datasets/issues/3788
Only-data dataset loaded unexpectedly as validation split
Yes, I had something like that on mind: "dev" not being part of a word. ``` "[^a-zA-Z]dev[^a-zA-Z]"
## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`.
17
Only-data dataset loaded unexpectedly as validation split ## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`. Yes, I had something like that on mind: "dev" not being part of a word. ``` "[^a-zA-Z]dev[^a-zA-Z]"
[ -0.0880025104, 0.0279189255, -0.027738167, 0.1770329475, 0.1313008666, -0.2075342238, 0.1929709613, 0.5046431422, -0.2156709433, -0.0228311941, 0.059249986, 0.23835361, -0.0268458817, 0.1029326171, 0.052912578, 0.3532885015, 0.1087847278, 0.3332918882, 0.05071152, -0.1112701148, -0.0983702242, 0.1819354445, -0.1226708665, 0.1927112639, -0.2429806441, -0.0095779495, 0.3027471006, 0.225368768, -0.2820603549, -0.3011003733, 0.3285199702, -0.1348655075, -0.3200428188, 0.2108656317, -0.0001127308, 0.0867367387, 0.3100730479, -0.2425788641, -0.2299485952, -0.1618560255, -0.4661336243, 0.1224443689, 0.0029225582, 0.0030957176, -0.0387957431, -0.1804227084, 0.094215408, -0.2950854897, 0.5840404034, 0.4550176561, 0.1698146015, -0.1399858594, -0.1834511012, 0.0923474059, -0.0159520432, 0.5846719146, -0.0180575997, -0.1214125529, 0.4448791444, -0.0925546587, 0.0198150333, 0.2332059592, -0.0860274658, -0.0585176498, 0.2079605609, -0.045901902, -0.1993396729, -0.3405712247, 0.1373528987, 0.5796715617, 0.4373647571, -0.0347633846, -0.0532056876, -0.0414836816, -0.1772776544, 0.0094452715, 0.2168863863, 0.4902150035, -0.1794682592, 0.28919065, -0.1078631058, 0.0278844908, -0.1414062232, -0.0385289751, -0.3176744282, 0.4120478332, -0.1128460094, 0.097885251, -0.0814167261, 0.1471853107, -0.1225547716, -0.2777604461, -0.6254979968, 0.1018265709, -0.0069129644, -0.1105399132, -0.1370841712, -0.2107053101, 0.469232291, -0.0514994264, -0.0020665312, 0.1048963442, -0.2957265079, -0.0634074956, 0.4367686212, 0.0084860018, 0.4937233627, 0.1586401761, 0.2276134342, -0.3168098629, 0.1089286506, 0.0097503504, 0.2091457844, 0.1643744707, -0.1396289915, -0.0602682792, 0.1203878447, -0.3668875992, -0.3771348, 0.1149876267, -0.3664398193, -0.0535863973, -0.0346778966, 0.2477163523, 0.2028772831, 0.1697877795, -0.1891987473, 0.1361623555, 0.1427056044, -0.4739903808, -0.1517572552, 0.0036459372, -0.3302994967, -0.1633761376, 0.204579547, 0.0305273831, -0.0034880342, 0.2374814302, -0.3042352796, -0.3216202259, -0.0680933967, 0.0701560304, 0.3976744711, 0.4252332747, -0.2087524235, 0.173335135, -0.0136890505, -0.4104903638, -0.1033685356, 0.2410847992, -0.2091009766, -0.2204135507, -0.1063975468, 0.2213605791, -0.1615236104, 0.3692377508, 0.0733218342, 0.2204329967, -0.0304398686, -0.2488640696, -0.0416629501, -0.0866958946, 0.1992296427, -0.0768143237, -0.0028756279, 0.1567746699, -0.6828733087, 0.1623232961, -0.208878547, -0.3590151966, 0.1570588797, 0.0809792131, -0.2639682591, 0.236368373, -0.3801107109, 0.3654719591, 0.3223420978, 0.1786480546, -0.2217073441, 0.6720141768, -0.3073047698, 0.1076051891, 0.0828307122, -0.2031458914, 0.1064691395, 0.1434773207, -0.0469472706, 0.3483629525, 0.0094062164, 0.00127572, -0.1520801932, 0.0238957331, 0.019394869, -0.0648579597, 0.1979693323, 0.1135753319, 0.1969044954, 0.1211755872, 0.5547032356, -0.1058442071, -0.0213079769, 0.0898152739, 0.1741829365, -0.3107303977, 0.2624233663, -0.3220584989, -0.4222829342, -0.0238065142, 0.045632109, -0.2013207525, 0.0430446155, -0.0739950091, -0.2752790749, -0.026902901, 0.0299983732, -0.0017732133, 0.1412220895, 0.1926030517, -0.060783945, -0.0888655335, -0.3319378197, 0.358809799, 0.1489365101, 0.0609433725, -0.1919077486, 0.1062095538, 0.0521469563, 0.0321998708, -0.2016760707, -0.058011651, -0.0203586742, -0.2957910299, 0.0934735462, 0.3168709576, 0.1482021809, -0.0514776818, -0.1993943006, -0.1019799858, 0.1172145009, -0.0518899746, -0.1795443594, 0.0764937103, 0.206774503, -0.4340969622, -0.093254149, 0.3510420024, -0.1695166081, 0.1100167632, -0.1375531405, -0.0136173442, 0.3649040163, -0.359823823, 0.0313149206, -0.3072942495, 0.3389904499, 0.0035048756, 0.0907295644, 0.1931266189, -0.230277285, -0.0402169824, 0.3529290259, -0.2396651506, 0.0377871543, 0.0580871403, -0.173801288, -0.0431299508, -0.1323294789, 0.4132309854, 0.6813960075, 0.172275573, -0.1811077893, 0.0807033703, 0.0889227837, -0.2809719741, 0.2968566418, 0.0638201311, -0.1491854787, 0.404106468, -0.1759461015, -0.1459422708, -0.6729195118, 0.0133937337, 0.2468947023, -0.1380821168, -0.4242044389, 0.1180317551, -0.3977304399, 0.2719244063, -0.1743949801, -0.1022726074, -0.3019561172, -0.2779655159, 0.2254221588, -0.0439368114, -0.10549891, 0.0677053928, 0.0033569967, 0.2840408683, -0.2790234387, -0.1072458327, -0.4919564426, -0.1060433909, -0.2632517815, 0.053760536, 0.2772315741, 0.3794969916, 0.2353535295, 0.0112016601, -0.1672845334, -0.0751404837, -0.2810337245, 0.1681727618, -0.1843732893, 0.1646608859, 0.2467136383, 0.210595578, 0.3654251397, -0.0909523219, -0.1676940024, -0.0394181572, -0.3000720441, 0.1439761966, -0.0147054922, -0.0832974538, -0.4492008388, -0.4140063822, 0.0464801379, -0.0965224802, 0.1044437736, -0.2364017963, -0.0139992414, -0.0258049835, -0.2590018213, -0.0477616191, -0.2779613137, -0.0431848429, -0.3454006016, 0.1615662724, 0.1862962693, -0.0166866817, -0.1711655557, 0.0426374823, -0.0052393312, -0.0720408931, 0.0483889021, -0.5085455179, 0.0424859598, -0.1498480886, -0.2727148533, -0.258382678, -0.350673914, 0.2235364616, 0.0147019997, 0.0100882398, -0.315661341, 0.0077380645, 0.2337889373, -0.145238474, 0.2493915409, -0.1206198782, 0.3022755682, 0.1928417236, 0.4983905256, -0.2180536091, -0.1188880131, 0.0009898153, 0.0539670028, 0.4351736307, -0.1222119331, -0.1371784508, 0.0374048091, -0.0091399886, -0.1752981991, 0.2495661527, -0.1755038649, 0.0762367845, -0.0651127696, 0.1512383372, 0.0030127494, -0.0887239203, 0.2644660771, -0.0776294246, -0.2391635031, 0.4140409231, 0.2732192874, 0.1748205423, -0.0264049098, -0.0599023476, 0.3082095981, 0.1179942191, -0.0739158615, -0.5530251861, 0.1413436532, -0.0352034643, 0.3309532404, -0.0729021728, 0.0128576485, -0.140340969, -0.0055503622, 0.1724569052, 0.040485777, 0.7659430504, 0.1234534904, 0.293492347, 0.0484344624, 0.2014005333, 0.0030553965, -0.2789412141, -0.3090319932, 0.0472014472, 0.3755946159, 0.5868584514, -0.3366974592, -0.0567252859, -0.0442143567, 0.1372570097, -0.085235104, -0.0994250551, -0.141632691, -0.2998006046, 0.1392814815, 0.2094733715, 0.30309394, 0.0160500668, 0.0149597516, -0.1263602376, -0.1374999881, -0.1102333739, 0.2272275686, 0.129939124, 0.0998220667, -0.2754529417, 0.1031957343, -0.05729625, 0.5392696857, 0.1683949083, 0.3882006705, -0.0435805023, -0.2705954909, -0.1400456727, -0.4328639209, 0.273761183, 0.5345051289, -0.05969074, -0.0866013616, 0.2189261913, 0.0311941933, -0.1556341201, 0.2708090246, 0.2408608198, -0.1151221395, -0.5917984247, -0.0468910597, 0.1983632743, -0.0911531374, -0.3132644594, 0.4943895638, 0.1054804474, -0.471103251, 0.4514056742, -0.0845206678, 0.9285580516, 0.1860187054, 0.080994159, 0.0135122361, -0.383629024, 0.1856464297, -0.6111039519, 0.1639435589, -0.4515231252, -0.4862604141, -0.1284709722, -0.2683268487, 0.2206872255, 0.6212140918, -0.0440849923, 0.0349880196, -0.0452333279, 0.4393256903, 0.1397274137, 0.1636285931, 0.1633022577, -0.0415268242, -0.049929224, 0.0750702098, -0.3072096109, 0.1177631244, -0.0701641291, -0.3580601811, 0.1111783534, -0.476519376, -0.3085185289, 0.2680623829, -0.1576570123, -0.0858925432, 0.159676984, -0.1045847908, 0.1196201816, 0.1888161749, -0.0350467041, 0.2549342513, -0.1491732001, 0.5707793832, -0.0582470857, 0.3339489996, -0.0349210985, -0.0371229425, 0.3078221083, 0.0614622235, -0.0666516423, -0.1337684393, -0.385566026, 0.0472274385, -0.1613386571, 0.3711423278, -0.1659313291, -0.3858847916, -0.034266647, 0.1383426487, 0.3407625854, -0.0862065256, 0.1360919923, -0.0110188639, -0.3029133081, 0.3671572208, -0.1315093786, -0.5027731657, -0.1022511497, 0.2094953209, 0.0445728116, -0.0967082381, 0.4006960094, -0.1957467347, -0.0591484755, -0.3663866222, 0.4478079975, 0.3197293282, -0.3659696281, 0.3328201473, -0.1678172499, -0.3845485449, 0.1284974068, 0.0663836002, 0.1787697524, 0.0843676105, -0.1052555591, -0.4540069401, 0.2100213766, -0.0363074578, -0.3434801102, 0.1684370488, 0.072847046, 0.1511484385, -0.1085814834, 0.2827805877, -0.2959708273, 0.1880782098, 0.0633287206, 0.2417131811, -0.3087289929, -0.0286410265, 0.2326302528, -0.097353518, 0.2044388056, 0.170834288, -0.0826824531, -0.2069338262, -0.1326563507, 0.1531413347, 0.060517624, 0.2441003323, -0.0376579054, 0.0116658807, -0.1784624606, -0.0491982698, 0.2300703079, 0.0035516219, 0.0321069248, -0.08962138, 0.2048428059, 0.178736642, -0.1285929084, -0.1456933171, -0.2210978419, 0.4294490814, -0.0225877184, 0.1780599058, -0.1241497323, -0.0369223617, -0.326834619, 0.1162086055, 0.0369639955, 0.3147086501, 0.1964027733, -0.1993350983, -0.0458483808, -0.0420915447, 0.4439654052, 0.6636154652, -0.4023967385, 0.0476514474, 0.1926290393, 0.2210582048, -0.1317409277, -0.3391722143, 0.5857743621, 0.2329040617, -0.1662146151, 0.0167410355, 0.0645441934, -0.0907432362, 0.0636352226, 0.0872780681, 0.3812075257, -0.1917960346, 0.2068056017, 0.6390762329, -0.4007632732, 0.1355778724, 0.3138783872, -0.2140395194, 0.0365435965, 0.8905040026, -0.047543712, 0.4099584818, 0.2337928414, 0.2280854136, 0.202590704, -0.1571754068, -0.1354793012, 0.2932933867, -0.4435595572, 0.3601068258, 0.1832288057, -0.2278269231, -0.3638492227, -0.0795295686, -0.4897618592, -0.2529585063, -0.2476832867, 0.1354726702, -0.0870640948, -0.1833566278, -0.0239343327, 0.3060356081, 0.0264966059, 0.1982526183, 0.1317194253, 0.1816073358, -0.0365586318, 0.014052094, 0.10454721, -0.2136499882, 0.0531104878, -0.5052298903, 0.085832715, -0.0536383353, -0.1329117417, 0.555570066, 0.0378957614, 0.1526701301, 0.4178906977, 0.1417829394, -0.2063460648, -0.2978291214, -0.1949627995, -0.1580062509, 0.5921418667, 0.1929319352, 0.1102496088, 0.4238084257, 0.2274030745, -0.108612515, 0.0108383195, 0.314163357, 0.0829615593, -0.3076318502, 0.2263965756, 0.1037455946, -0.2060390711, -0.3140190542, -0.081367664, -0.0929320604, -0.1304730475, 0.1359781027, 0.0827610344, 0.2937314212, -0.0965547711, 0.0782791004, 0.0078569325, 0.472704947, -0.0836661085, -0.2843423486, -0.1138573065, -0.1235852093, -0.3703091443, 0.2191677094, -0.2458453923, 0.1661195606, 0.0537633374, -0.0601026602, 0.1283582449, 0.0932158008, -0.0966116115, 0.0839670748, -0.0353524908, 0.1887035072, -0.358324796, 0.1571691632, 0.319226861, 0.1671517044, -0.1184796914, -0.3060092926, 0.3935571015, 0.0630667731, -0.002050078, 0.1515279561, -0.2130544633, 0.2422996461, 0.4082900286, 0.2570236027, 0.323035121, 0.410179317, -0.0895210057, 0.0470898263, -0.1194960102, -0.0839980021, -0.3270496726, 0.3767827451, 0.2668858171, 0.2432174981, -0.1816092432, 0.153572619, -0.2009801269, 0.1405992806, -0.1328132302, 0.1768819839, -0.6069267392, 0.0448701568, -0.2232009619, 0.2643014789, 0.1234888136, 0.3177221715, -0.0048729386, -0.2684364617, 0.0608099662, -0.1798141003, 0.260576576, -0.1120015904, -0.5537868738, 0.0974827334, 0.1430017799, 0.0570261776, -0.2513553202, -0.3479335904, -0.1896959692, 0.3540055156, -0.2758059204, -0.2581089139, -0.1142176688, 0.1201362833, -0.2469495535, -0.0864997655, 0.0382431373, 0.4160820544, -0.5453177094, 0.205571577, -0.2957721353 ]
https://github.com/huggingface/datasets/issues/3788
Only-data dataset loaded unexpectedly as validation split
Is there a reason why we want that regex? It feels like something that'll still be an issue for some weird case. "my_dataset_dev" doesn't match your regex, "my_dataset_validation" doesn't either ... Why not always "train" unless specified?
## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`.
37
Only-data dataset loaded unexpectedly as validation split ## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`. Is there a reason why we want that regex? It feels like something that'll still be an issue for some weird case. "my_dataset_dev" doesn't match your regex, "my_dataset_validation" doesn't either ... Why not always "train" unless specified?
[ -0.127433449, 0.0463366397, 0.0139259519, -0.067193687, 0.1907559037, -0.0963911787, 0.5693849325, 0.5711494088, -0.2740080357, -0.0007301643, 0.0903312713, 0.0587165616, -0.1791050434, 0.1223726124, -0.0053799199, 0.2239863425, 0.0502594262, 0.451158762, 0.2187022418, -0.0683339909, -0.0636769086, 0.0432168618, 0.0228772983, 0.1736979336, -0.4843994379, 0.2081334442, 0.3272174597, 0.1623622179, -0.2965731621, -0.3022831082, 0.342577517, -0.3363747299, -0.0769950598, -0.055668164, -0.000122981, 0.1867651194, 0.200206995, -0.1363003999, -0.1785711199, -0.3270826936, -0.4942641556, 0.1222941205, -0.0109435162, 0.06747666, -0.0173856057, -0.0483545028, 0.344195962, -0.2737608254, 0.5308361053, 0.5715954304, 0.097913295, 0.0065608644, -0.3564881682, 0.0939720795, 0.0976551771, 0.3291977048, -0.0897977725, -0.1599950641, 0.4199922085, -0.1325365603, -0.0978726521, 0.1251475513, -0.0446921438, -0.1680589318, 0.04693418, -0.0101861916, -0.0825901553, -0.3096586168, 0.255482167, 0.6954456568, 0.4477851391, -0.0251665059, 0.0107355639, 0.025482256, -0.1484677196, -0.0823854581, 0.0225951616, 0.4315352142, 0.0543194786, 0.4797021449, -0.2492552996, 0.0409530178, -0.163223505, -0.0230870191, -0.2802359462, 0.5173512697, -0.0831859857, 0.2711016536, 0.0402005054, 0.4279146791, -0.2724561095, -0.2230669111, -0.3578899801, -0.0502991714, -0.0016083689, -0.1989899874, -0.314619869, -0.2628296614, 0.3226871192, 0.4327333868, -0.0674812272, 0.0758018121, -0.1262877584, -0.0972773284, 0.2755654752, 0.0212221537, 0.389479965, 0.2469432652, 0.2787756324, -0.3710479438, 0.0140632037, -0.1107731462, 0.1411885023, 0.2016814053, 0.0814834982, 0.1657750756, -0.0132222362, -0.2512494028, -0.3512889147, -0.0178461969, -0.4045102, -0.1001958996, 0.0055158869, 0.108573772, 0.2407180965, 0.2439891845, -0.4038715661, 0.1656777263, 0.2356004268, -0.5061634183, -0.0921805128, 0.0377098806, -0.3894566, -0.0583243072, 0.2534437776, -0.0866121054, 0.1899884492, 0.0742764995, -0.3072032928, -0.0023416099, 0.0201726407, -0.2132632136, 0.3155399263, 0.5904125571, -0.4135338068, 0.1819061041, 0.0500136614, -0.3237434328, -0.1929775476, 0.2625343502, -0.2036284953, -0.5489267111, -0.0106967539, 0.1438613534, -0.0768965259, 0.2821522057, -0.1801210493, 0.1490898579, -0.0982885659, -0.3013282418, 0.0149888862, -0.2428866327, 0.234604612, -0.1030108705, -0.0002063628, -0.0826095045, -0.6040171981, 0.2746363878, -0.3007234335, -0.3635177016, 0.2171871364, 0.1278239191, -0.3864674866, 0.2402827591, -0.3109817505, 0.3648308516, 0.3597530425, 0.135112226, -0.1976699829, 0.4856892526, -0.3041079044, 0.0908467099, 0.2601341605, -0.0522630624, 0.1489028931, 0.0610066913, -0.1732939184, 0.2933682501, -0.1009375453, -0.1435783654, 0.0748904571, -0.0431966595, 0.1050148159, 0.0040325373, 0.2468318194, 0.1898639202, 0.1936398596, 0.1477011144, 0.3714073598, -0.1822835803, 0.0157831479, -0.1406560242, 0.2806785107, -0.2896477878, 0.1834215075, -0.428961426, -0.4562344551, 0.0528907776, 0.0901559368, -0.2520074844, 0.1585742682, -0.1793937832, -0.22599338, -0.1937542707, 0.1052119583, -0.079926461, 0.0397092439, 0.1125281826, -0.0310973935, -0.0483870208, -0.4218491018, 0.2814526856, -0.0034770293, 0.0888523608, 0.0186828487, 0.1923717111, 0.0825937688, 0.1141180992, -0.2103024423, -0.0090359282, -0.1777077168, -0.2034907937, 0.2072507739, 0.2492365837, 0.2657285333, -0.1803022623, -0.1277543455, -0.0213783383, -0.0074301753, -0.1148174107, -0.1796225309, 0.0451892503, 0.0589262284, -0.5449883938, 0.0039944318, 0.1283180565, 0.0965889394, 0.1933587044, -0.1384183317, -0.1197089329, 0.0559015833, -0.3582338691, -0.1664895862, -0.2436103821, 0.0453911684, -0.0530721955, 0.1289592981, 0.3347528279, -0.2809304595, -0.2990190983, 0.4270184338, -0.271418035, -0.0572743453, 0.1468416154, -0.143708095, -0.0842589661, -0.1225657165, 0.334951967, 0.7469997406, 0.19229047, -0.0878651217, 0.1136660352, -0.0305049475, -0.2948415875, 0.1681534201, 0.0732660517, 0.0639807731, 0.109121874, -0.2290095538, 0.0744554922, -0.6714307666, -0.2981653214, 0.1229452565, -0.1983821839, -0.2662791014, 0.0842716917, -0.4775271416, 0.2308640182, -0.1554442644, -0.011872842, -0.1630339175, -0.1460321099, 0.1756570339, -0.1691400707, -0.1561111659, 0.0287747476, -0.2136193067, 0.2595208585, -0.2454548627, -0.2197822183, -0.4621983767, 0.0571588352, -0.342228651, 0.0286156274, 0.0417515896, 0.1492395848, 0.146950081, -0.0068021533, -0.1180597618, -0.1357987672, -0.3937135339, -0.0629358813, -0.166835174, 0.1260942668, 0.2520231307, 0.3180133402, 0.1872454435, -0.1950896531, -0.2079907358, 0.1797130406, -0.1451693773, 0.0714098513, 0.0943468213, 0.0263673887, -0.3377200067, -0.4132429659, 0.1484670341, -0.1175495014, 0.0593734495, -0.3602725863, -0.0952740535, 0.1752777398, -0.2760936916, -0.0869194344, -0.4541957974, -0.0000815755, -0.1735535115, 0.0805505067, 0.2838129401, 0.1558987796, -0.0717752725, 0.0006083042, -0.1479665637, -0.1115327328, 0.0642518029, -0.5772461295, 0.0380988047, -0.1802291572, -0.3835255802, -0.088014856, -0.2557340264, 0.1719510257, -0.1636443883, 0.0942875072, -0.1173132136, -0.0057907235, 0.1879888624, -0.0684869513, 0.1785632819, -0.0064169043, 0.2433364689, 0.364970535, 0.5561193824, -0.1479273736, -0.1108958647, 0.0841811001, 0.0577651486, 0.4436393082, -0.2950550318, -0.1336353272, 0.075659886, -0.0030650336, -0.0718655959, 0.2632474303, -0.1718568653, 0.110502921, 0.0336968899, 0.2782792747, 0.3183259368, -0.0447342284, 0.3150874376, -0.0399382375, -0.1726116687, 0.4617455304, 0.341124028, 0.3695724905, 0.0760272592, 0.0229722224, 0.4265385866, 0.149945125, 0.1051719263, -0.6098740697, -0.0417032428, 0.0406932943, 0.2769009471, 0.0168823395, 0.0886749104, -0.056777779, 0.059446916, 0.1423390061, 0.2797583938, 0.5906336308, -0.0645589978, -0.01152742, -0.0372739322, 0.1049642637, 0.1851678342, -0.3287193477, -0.1459460557, -0.1344825774, 0.4376139939, 0.8000344634, -0.335210979, -0.1382425129, 0.2360470742, 0.2587048709, 0.0649169087, -0.1510994881, -0.0824161917, -0.1337839514, 0.2494847625, 0.1456035972, 0.2570599914, 0.047057081, -0.0023037146, -0.1325965375, -0.1604619473, -0.1904622465, 0.2827575803, 0.0022252433, -0.1002496555, -0.0414796583, 0.1682511568, -0.1274476796, 0.5336230397, 0.2007318586, 0.2952479124, -0.2083161175, -0.2993439436, -0.1785487682, -0.2168073356, 0.417160362, 0.457645148, -0.0382306837, -0.0660168603, 0.3658940196, 0.1001438349, -0.0428483374, 0.4356848896, 0.2111246139, -0.187056601, -0.6891582012, -0.2496340126, 0.2223187536, -0.0769988149, -0.0570288524, 0.2258265167, 0.1761064231, -0.3721149862, 0.3300721645, -0.2248182744, 0.8115162253, 0.1390738189, 0.1898658872, 0.0218003672, -0.2893641293, 0.0541510843, -0.5202799439, 0.1673576236, -0.3222331405, -0.5940086246, -0.2239370048, -0.3140478432, 0.4385946095, 0.756641686, 0.1836285591, 0.1058884785, 0.1963674873, 0.4456635416, 0.3262292147, 0.2572706342, 0.1477599442, -0.0263606478, 0.1642107815, -0.042859517, -0.2110081464, -0.0436337627, 0.1177101731, -0.274537921, 0.1665495783, -0.4433890581, -0.2698439062, -0.0131770307, -0.3377905488, 0.0261581279, 0.0935235918, -0.173798725, 0.2234650701, 0.1232424825, -0.1043496206, 0.2810633183, -0.1249082014, 0.4140368104, 0.1502127647, 0.265625298, -0.1308978796, -0.1813816279, 0.50692451, 0.1312363744, -0.0883541852, 0.0294031464, -0.4367073774, -0.1053038836, -0.2032319009, 0.2874491215, -0.1152442172, -0.3609288037, -0.1101318002, 0.1505137086, 0.3590668738, -0.0379419178, 0.0352331139, 0.0057752961, -0.0525066704, 0.4225596189, -0.0715590715, -0.7615994811, -0.1732784659, 0.1424126029, 0.0281793661, -0.0104248617, 0.4489307702, -0.3985098004, -0.1254998744, -0.1817847788, 0.5683653355, 0.4780448973, -0.3012506366, 0.2093652636, -0.1354917735, -0.1743887216, 0.1486304551, -0.0345399044, 0.1911237985, -0.0876447633, -0.0456840619, -0.4639253318, 0.0211163871, 0.0527802557, -0.4696746171, 0.2227470428, 0.1811638474, 0.1196176186, -0.1333874315, -0.0125075225, -0.1798917204, 0.1662075669, 0.1051722094, 0.3983045518, -0.3406972289, -0.0805979669, 0.2771603763, 0.1005486548, 0.1366175562, 0.0361989625, -0.2110408396, -0.1236528978, -0.194467023, 0.1580790728, 0.160279125, 0.2706283033, -0.1938748807, 0.0480404124, -0.1482067406, -0.0146659426, 0.2327958494, 0.1481062323, 0.160442695, 0.0206732694, 0.0357220657, 0.0281028356, -0.1892801523, -0.2395869344, -0.368342489, 0.4500177503, -0.0047804592, 0.2094517499, -0.1017850712, 0.0373978242, -0.2819984853, -0.0716353059, 0.1261480302, 0.2036473453, 0.1741138995, -0.065897271, 0.07973364, -0.0971591026, 0.3635079563, 0.581284523, -0.4147786796, 0.0056915227, 0.3895335197, 0.1213812605, -0.0390766449, -0.0352027565, 0.534680903, 0.2894270718, -0.0534062274, 0.1347708553, 0.1455082446, 0.115791589, 0.0261556972, -0.0101392446, 0.331710577, -0.0351672694, 0.0497624576, 0.5850901604, -0.2741016448, 0.1177314445, 0.2586949766, 0.1003897935, -0.0100920508, 0.5966435075, -0.0763468966, 0.4409881234, 0.1900841445, 0.125840798, 0.0828087032, -0.1111720279, -0.1483803838, 0.38781932, -0.4136840403, 0.1727255881, 0.2249703705, -0.1512700617, -0.3026893437, 0.0546729676, -0.2836018801, -0.4097097814, -0.1231660694, 0.1217599884, 0.1043930724, 0.0460429415, -0.0150688551, 0.1507073939, -0.0404420793, 0.184471637, -0.0480732396, 0.0436422899, -0.1007604301, 0.2024343014, 0.1376761943, -0.2263187915, 0.0285121482, -0.4036984146, -0.0916309431, -0.3674615026, -0.1042279303, 0.6746683121, -0.0600473322, -0.0321290307, 0.3694017828, 0.3369317949, -0.2379660606, -0.2191283554, -0.1982556731, -0.1344572604, 0.5203821063, 0.1874277443, 0.1857379228, 0.4727588296, 0.1544083953, -0.0175970644, 0.118942447, 0.1756496727, 0.1229999363, -0.5728111267, 0.3065814376, 0.2392989248, -0.2585109472, -0.0104973791, -0.0242804494, 0.0055099451, -0.0465850309, 0.152150318, 0.0953310877, 0.1701195687, -0.1934560686, -0.0027500226, 0.0443926789, 0.1998817772, -0.043805901, -0.3532630801, -0.2292775661, -0.0202980842, -0.1956427246, 0.0520206541, -0.2573180199, 0.1581514478, 0.1096571386, -0.1898959875, 0.0895039961, 0.0888131484, 0.0889353454, 0.0889999047, -0.1622047424, 0.1649804562, -0.0856266767, 0.2297551334, 0.3272651136, 0.2061745077, -0.1120630577, -0.3058359921, 0.3876141012, 0.1353251934, -0.048141364, 0.0234255493, -0.0952196717, 0.3918380439, 0.4406405687, 0.3152768314, 0.2352596819, 0.3585328162, 0.0099803181, 0.2698863447, -0.2983486056, -0.0325695425, -0.2038868368, 0.2569539845, 0.0823208243, 0.2217488587, -0.1599491388, 0.1155517772, -0.1414238662, 0.1867889017, -0.0710159317, 0.0920844823, -0.3760590255, 0.0687492341, -0.3776800632, 0.1854849607, 0.2526662946, 0.2132619172, 0.0003545223, -0.4810133874, 0.163944602, -0.2502993345, 0.2595899403, -0.1591161042, -0.5266928673, -0.0371922627, 0.1468380094, 0.2333292514, 0.1199697182, -0.4741055071, -0.3545410037, 0.3639369309, -0.2705551386, -0.454148829, -0.1085315868, 0.1815038174, -0.2126410455, -0.0441872962, -0.0612606294, 0.2100864798, -0.4862347245, -0.0037027476, -0.4276731908 ]
https://github.com/huggingface/datasets/issues/3788
Only-data dataset loaded unexpectedly as validation split
The regex is needed as part of our effort to make datasets configurable without code. In particular we define some generic dataset repository structures that users can follow > ``` > "[^a-zA-Z]*dev[^a-zA-Z]*" > ``` unfortunately our glob doesn't support "^": https://github.com/fsspec/filesystem_spec/blob/3e739db7e53f5b408319dcc9d11e92bc1f938902/fsspec/spec.py#L465-L479
## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`.
41
Only-data dataset loaded unexpectedly as validation split ## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`. The regex is needed as part of our effort to make datasets configurable without code. In particular we define some generic dataset repository structures that users can follow > ``` > "[^a-zA-Z]*dev[^a-zA-Z]*" > ``` unfortunately our glob doesn't support "^": https://github.com/fsspec/filesystem_spec/blob/3e739db7e53f5b408319dcc9d11e92bc1f938902/fsspec/spec.py#L465-L479
[ -0.2896316051, 0.1827499419, 0.0006295583, 0.1775887907, 0.165361762, -0.2184229046, 0.2060532868, 0.5261226892, -0.1824196428, -0.0074534472, -0.0446323864, 0.0348761715, -0.055594068, 0.2794866562, -0.05539551, 0.3991408348, -0.0021834683, 0.3991588354, -0.0350153521, -0.0411929004, -0.1496792883, 0.2117254585, -0.1078798175, 0.1184671745, -0.3444532752, 0.1370177865, 0.2455456257, 0.3243271112, -0.3588830829, -0.3046651185, 0.4586408138, -0.1565335691, -0.2863326073, 0.1113541946, -0.0001159994, 0.1259212941, 0.1525168568, -0.1789465547, -0.2675484419, -0.1815841347, -0.4554389715, 0.0686188787, -0.0056655603, 0.0900878236, -0.1110188663, -0.2269726694, 0.0586020872, -0.3423710167, 0.6069834232, 0.5616217852, 0.1341304034, -0.1063450947, -0.2288360745, 0.02532495, 0.0242945496, 0.4447612166, -0.0440387689, -0.2380098999, 0.2624003589, -0.1406497657, 0.0810169205, 0.0811199248, -0.0909407362, -0.0375015847, 0.0959654003, -0.0784857795, -0.1244974509, -0.4019903243, 0.1006687954, 0.6224045753, 0.4138923287, -0.0100055421, -0.0931240469, -0.0069617801, -0.1539284736, 0.0546341389, 0.0720094889, 0.4565145969, -0.0896626413, 0.3684673011, -0.1097529978, 0.0637992695, -0.086122863, 0.0496011637, -0.320340544, 0.2602608502, -0.2232464999, 0.0937946886, 0.083972089, 0.146091193, -0.3984851241, -0.3803638518, -0.6075878739, 0.1195205376, -0.0979219079, -0.1677761376, -0.0933186486, -0.2156544775, 0.4105132818, 0.1522502005, -0.1073725149, 0.1691991538, -0.3459667563, -0.010398889, 0.2671330869, -0.0171800144, 0.4530317485, 0.2401886433, 0.2560346127, -0.3048671782, 0.0462497398, -0.0413678996, 0.2935552299, 0.0395997241, -0.2011384666, 0.0629072264, 0.1799273044, -0.3945200741, -0.4580670893, 0.0937927663, -0.2040708512, -0.0116819795, 0.0661965013, 0.177733168, 0.2486943603, 0.3133435249, -0.240128547, 0.1938104331, 0.056279406, -0.4795052707, -0.177353546, -0.0548037402, -0.3577195704, 0.0084045101, 0.2416386902, -0.0237181336, -0.0289412513, 0.1417957097, -0.3976962268, -0.1964901388, -0.1908518523, -0.1300801337, 0.3800009787, 0.5965750217, -0.3666493893, 0.0967154801, 0.1393502355, -0.3041129708, -0.1386105865, 0.1361203045, -0.0568305701, -0.2704529166, -0.1532316357, 0.1874800175, -0.1741659343, 0.3538154364, -0.2573144138, 0.1827444583, -0.1472264826, -0.2873312533, 0.0108799729, -0.1127258912, 0.0776907653, -0.0659433827, 0.0746821091, 0.2974650562, -0.6433683634, 0.0913626254, -0.2301871181, -0.3990933001, 0.1192216352, 0.2021069676, -0.2143279016, 0.1765888929, -0.4728199542, 0.4565636516, 0.3657470345, 0.0958784521, -0.3046411872, 0.6667113304, -0.2739860415, 0.0467531346, 0.0876989514, -0.1908035278, 0.2351699173, 0.0659247115, -0.2597235739, 0.3934435844, -0.0541126095, 0.0020925808, 0.001540074, -0.1680373549, -0.0467900597, -0.039471712, 0.2865821123, 0.1542034149, 0.2903698385, 0.0084361723, 0.5125176311, -0.132021755, -0.0309153125, 0.1209085733, 0.3462734222, -0.1700334251, 0.1344717592, -0.5364056826, -0.5545496941, 0.1330641955, 0.0967685282, -0.2239303142, 0.0410259217, -0.0488656387, -0.2731184065, -0.1434882879, -0.0393720865, -0.1070449427, 0.0742943585, 0.1293668151, -0.0219048299, -0.0710812137, -0.1807535738, 0.4108894467, 0.2079593539, 0.1866018176, -0.196450159, 0.3097195625, 0.1424998045, -0.0416456126, -0.0992580205, 0.0603029579, 0.1433235407, -0.3311035335, 0.0731172115, 0.3588109016, 0.3407742381, -0.0719211921, -0.1949141622, 0.1283365488, 0.0496067069, -0.1754578054, -0.1504829228, 0.0469730683, 0.1415187865, -0.4312098324, -0.1089036912, 0.311325103, 0.0646418333, 0.1727058142, -0.0874266848, 0.0332282037, 0.2560133636, -0.3702299595, 0.0542229004, -0.342158407, 0.1724658906, 0.1347085536, 0.1809304804, 0.4118403792, -0.1587643474, -0.0542277358, 0.3659172654, -0.2151608169, -0.0668393746, 0.1150424555, -0.2638654113, -0.0381769426, -0.0424659476, 0.3490413725, 0.7468739748, 0.1998912394, -0.2205109447, 0.095773533, 0.0970178843, -0.2122472972, 0.2961143255, -0.0244685467, 0.0312595479, 0.2977828085, -0.1570773721, -0.0926321894, -0.6620435715, -0.0309586711, 0.160212189, -0.1617060602, -0.4178560078, 0.1038514897, -0.4899837077, 0.1920453161, -0.1793438196, 0.0338895097, -0.1955179125, -0.2178636938, 0.0142100016, 0.065578647, -0.0433268771, 0.0714670569, -0.0438027382, 0.1893527508, -0.2004003078, -0.283670187, -0.3610706925, 0.1382298321, -0.2255536616, 0.0117989257, 0.2605451643, 0.3977606297, 0.1363844126, 0.1419322789, -0.1315453351, -0.2591775656, -0.2653751969, 0.1579370201, -0.1939011514, 0.1424244046, 0.2616324425, 0.1834744513, 0.4881881177, 0.0059059258, -0.1424967051, -0.0226340499, -0.2403038144, 0.2094314694, -0.0267575812, 0.0122928219, -0.3627324998, -0.3294725418, 0.0404392481, -0.0505189635, 0.1835415363, -0.3664742708, -0.0644115359, 0.0799131319, -0.1437743157, -0.1214525625, -0.3125745356, -0.164902553, -0.2733041644, 0.0664719641, 0.2407578528, 0.0618508346, -0.2340225279, -0.0364888273, -0.0670499355, -0.2482153624, 0.0449324735, -0.4455254078, 0.0528760776, -0.3688610494, -0.1697104126, -0.0979594663, -0.2662943304, 0.321331501, -0.0186866429, -0.0217783879, -0.237688452, -0.0106928032, 0.2159748226, -0.0389970653, 0.0920838863, -0.202439338, 0.2377746552, 0.2574345767, 0.5430555344, -0.1697519869, -0.1557059437, 0.0113042714, -0.0751577839, 0.4332726598, -0.0985516012, -0.276812613, 0.128886506, -0.0636852831, -0.0941345617, 0.264013797, -0.0510272272, 0.2031150758, 0.1198323593, 0.3112641573, 0.0162113644, -0.1288960725, 0.1214222834, -0.1071436852, -0.1050435752, 0.3901746571, 0.2637796402, 0.2621555328, -0.0311232321, -0.130115971, 0.3118819594, 0.0172139034, -0.0300076287, -0.399125725, 0.118284747, -0.0403350741, 0.3801777363, -0.0845339447, 0.0472169444, -0.1685297489, 0.0798707083, 0.1313291788, 0.1469897777, 0.682929635, 0.0820300952, 0.3241472542, 0.074164696, 0.1462126225, -0.0321561657, -0.3218236268, -0.1854203194, -0.0350577682, 0.4037517309, 0.5893025398, -0.3464947343, -0.2467424273, 0.0536168963, 0.1823448986, -0.0813331231, -0.0451397486, -0.0885142013, -0.2168564796, 0.1660146713, 0.1557836086, 0.2386918068, 0.046090275, -0.1604800075, -0.0879797861, -0.1456282884, -0.2226398736, 0.2731247842, 0.0093752677, 0.0234053396, -0.1570820063, 0.1194378585, -0.0458885394, 0.334577322, 0.3356054425, 0.5202832818, -0.0064845877, -0.3314809501, -0.1400776058, -0.249452576, 0.1976850033, 0.4965889454, -0.1412050575, -0.1641647518, 0.1141833365, 0.1788289249, -0.2441189885, 0.4198168516, 0.2761798203, -0.0980332345, -0.5578622818, -0.1366683692, 0.2868968248, 0.001229126, -0.2361114174, 0.3632867038, 0.2800451219, -0.4209678769, 0.4096160531, -0.1717636287, 0.7349618077, 0.0111452751, 0.0505027212, 0.0717175826, -0.3642825782, 0.0274995752, -0.572571516, -0.0260920282, -0.4422631562, -0.4743878543, -0.1609711349, -0.2910106778, 0.4123693109, 0.7570813298, 0.0706879571, 0.2308863103, -0.0109446971, 0.3245190382, 0.2200497687, 0.3287526369, 0.1651919782, -0.1104011536, -0.0352795683, 0.1029852778, -0.2624463737, 0.0762891695, 0.1055760607, -0.3207693696, 0.1632576883, -0.4256632626, -0.4759631157, 0.3417938948, -0.3478752077, 0.0083766039, 0.1105002761, -0.0582618788, 0.2003875226, 0.2127476782, -0.1140056178, 0.2484659106, -0.125059545, 0.4139682651, 0.0397301838, 0.336229831, -0.0749435201, -0.11913196, 0.3688085079, 0.2393043041, -0.1150647774, -0.2042036355, -0.3498502672, -0.0160580631, 0.1021297351, 0.3040228486, -0.0938889459, -0.3976733685, 0.0136573156, 0.1424483061, 0.3422990441, -0.0729555488, 0.0835958868, 0.0627862066, -0.2476252764, 0.3901860714, -0.1061246321, -0.5431771278, -0.0595297888, 0.1745183021, -0.146902591, 0.0259790551, 0.4615111351, -0.2405426353, -0.0321776159, -0.3933284283, 0.5553340316, 0.3435595632, -0.2986140251, 0.2482088506, -0.1767341048, -0.2653394639, 0.2127714604, 0.2363771945, 0.0672049895, -0.0650252551, -0.0428859554, -0.4741975665, 0.1852342635, -0.1705885082, -0.4346928895, 0.2603027821, 0.1349200904, 0.2882574797, -0.2113303691, 0.2364418507, -0.2577296495, 0.3318670988, 0.0566146821, 0.2405534387, -0.2562829554, -0.0229059495, 0.3846709728, -0.2305401415, 0.1787892431, 0.1018589959, -0.2107028663, -0.1890828609, -0.1911575347, 0.1632104367, 0.1510177553, 0.1561896652, -0.1915011406, 0.062729463, -0.1200055033, -0.1145282611, 0.2785466313, 0.1566070467, 0.0746445507, 0.0666483343, 0.1363100708, 0.0576981157, -0.0706855133, -0.0668635219, -0.3111482859, 0.4009141028, -0.0118163545, 0.2709063888, -0.2068418562, 0.0128555261, -0.2335716486, 0.0856703967, 0.2380640209, 0.263353318, 0.241316855, -0.2387823761, -0.0529060327, -0.0346832834, 0.4430988431, 0.467220813, -0.3656105101, 0.0100371074, 0.2157736868, 0.1906367838, -0.1556851119, -0.2318218946, 0.5880912542, 0.2669119239, 0.0488757193, 0.0566238351, 0.1279348731, -0.0032666123, 0.1069990247, 0.017600121, 0.3137803078, 0.1630113721, 0.2460606694, 0.4871876538, -0.2326578051, 0.0888760313, 0.361343205, -0.1196753383, -0.0244285688, 0.7515013814, 0.0324083045, 0.3266774118, 0.0357627571, 0.2338364869, 0.1282231361, -0.3834683597, -0.0293138903, 0.2509635985, -0.4489839971, 0.1590249389, 0.1169673502, -0.0348381698, -0.4249365628, -0.1518009305, -0.3284518719, -0.1472657025, -0.1190196648, 0.1245545745, 0.1569883972, 0.0296501163, -0.019374311, 0.1973173916, 0.0373337753, -0.0140105942, 0.1363306791, 0.1003212929, -0.0294476636, -0.038160678, 0.0124451853, -0.0504223853, -0.0040198094, -0.4215670228, 0.0617795214, -0.2897461951, -0.1707847863, 0.6038244367, 0.0397947095, 0.0703537166, 0.2500040829, 0.1700850427, -0.1720051467, -0.2181161791, -0.1998482794, -0.0495166369, 0.3919748366, -0.057082653, 0.1972631216, 0.4284219742, 0.2164242417, -0.0747891068, -0.0511907153, 0.1748279631, 0.1293806285, -0.4551778138, 0.3966146111, 0.1460137814, -0.0899599344, -0.3134051561, -0.0228412375, -0.0463849083, -0.2425086349, 0.2920338213, 0.0214347877, 0.3494667113, -0.0922801718, 0.0520875715, 0.0126570277, 0.318939954, -0.0213584136, -0.2460170239, -0.1651998162, -0.2143777162, -0.3554469943, 0.0100488653, -0.2282286286, 0.0876023471, 0.0969942361, 0.005128663, 0.159800753, 0.0661559552, -0.0543671139, 0.1544618309, -0.0240858588, 0.2469308525, -0.260394454, 0.2486579865, 0.0745963827, 0.2052369863, -0.0811502188, -0.4482978284, 0.338888675, 0.1704692096, 0.0089815445, 0.0964142904, -0.1693480462, 0.1501317471, 0.1348043531, 0.2589185536, 0.3155959845, 0.2982418537, -0.0937466547, 0.0525230058, -0.2134025246, 0.0042497502, -0.2947168052, 0.2497267723, 0.0760397464, 0.3408324718, -0.2219900042, 0.311334312, -0.2808584273, 0.105487138, -0.0820269957, -0.0012189939, -0.6131065488, 0.1205005273, -0.3502513468, 0.3009516895, 0.0358705446, 0.3764029145, -0.0377819799, -0.1442673802, 0.1473156959, -0.2234130204, 0.3276161849, -0.1498031467, -0.5134915113, 0.0151273208, 0.2333054692, 0.0457797609, -0.1748839766, -0.2587019503, -0.1312083155, 0.3746099174, -0.3151595294, -0.2793775797, -0.1669727117, 0.0440879837, -0.2372034043, -0.1088383943, 0.0322301276, 0.3343691528, -0.4632317126, 0.2097728997, -0.3200691342 ]
https://github.com/huggingface/datasets/issues/3788
Only-data dataset loaded unexpectedly as validation split
> "my_dataset_dev" doesn't match your regex, "my_dataset_validation" doesn't either ... Why not always "train" unless specified? And `my_dataset_dev.foo` would match the pattern, and we also have the same pattern but for the "validation" keyword so `my_dataset_validation.foo` would work too
## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`.
39
Only-data dataset loaded unexpectedly as validation split ## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`. > "my_dataset_dev" doesn't match your regex, "my_dataset_validation" doesn't either ... Why not always "train" unless specified? And `my_dataset_dev.foo` would match the pattern, and we also have the same pattern but for the "validation" keyword so `my_dataset_validation.foo` would work too
[ -0.2208982408, 0.085726805, -0.034769129, 0.1135791466, 0.1809140295, -0.0996529832, 0.3154057562, 0.5672200918, -0.1893925816, -0.0838951394, 0.1645898968, 0.208800897, -0.1298322976, 0.1652339101, -0.0917871296, 0.2014841288, -0.0027632217, 0.3495737314, 0.0560584106, -0.0532928072, -0.0768973306, 0.1015238315, -0.1220024079, 0.1134164482, -0.3804500103, -0.0129387463, 0.2597777247, 0.1634857208, -0.3620435297, -0.3314377964, 0.3813695014, -0.2071764171, -0.086885944, 0.1233193502, -0.000104576, 0.1588641107, 0.2500629723, -0.1314886212, -0.187645629, -0.2426015139, -0.4930362999, 0.0607699491, 0.0096524404, 0.0669696853, -0.1385422647, -0.2664804161, 0.1241430491, -0.239609316, 0.58345294, 0.5452642441, 0.2499005646, -0.0196581837, -0.2805874944, 0.0571709163, 0.0727763176, 0.2485498637, -0.0073455544, -0.0920424238, 0.2138447762, -0.1290038079, -0.0983036384, 0.3159587681, -0.017942192, -0.1643261909, 0.1405122131, -0.0193147771, -0.1826290637, -0.2872433364, 0.0834216401, 0.5308596492, 0.4345601499, -0.0452845171, -0.0788735598, -0.0015870003, -0.07026162, -0.1049450785, 0.1382254362, 0.3547204137, 0.0351525769, 0.326135993, -0.2698934078, 0.0514910854, -0.1947724521, -0.0395855382, -0.2839708328, 0.456830442, -0.0912598819, 0.1102968454, 0.0835560337, 0.1523320824, -0.2732422948, -0.2356930524, -0.5262633562, 0.0965175331, -0.142598778, -0.1510582417, -0.1848589927, -0.3051795661, 0.3874664009, 0.281852752, -0.0299469531, 0.1446025372, -0.2508956194, 0.0090972958, 0.3614217043, 0.1660150439, 0.3554048836, 0.2600713968, 0.1994613111, -0.2923186421, -0.061325267, -0.0507889763, 0.0948832706, 0.0503213815, 0.0841494724, 0.0584194586, 0.0275167245, -0.2168030292, -0.3912943602, 0.1523662508, -0.3639257252, -0.0782739744, 0.0787510201, 0.2389550507, 0.1147418842, 0.1175177023, -0.247458756, 0.1262151599, 0.0434960835, -0.4197578132, -0.2397579998, 0.1341083497, -0.3907544315, -0.1928762197, 0.2594440877, -0.0486623161, 0.1317231655, 0.1608011127, -0.3307392895, -0.1238424927, 0.0974710956, -0.0635735095, 0.3475723267, 0.4044534564, -0.2226874381, 0.1330806166, -0.0225309413, -0.2255934477, -0.17169258, 0.1379489303, -0.2153741568, -0.3211957514, 0.0447012894, 0.3423939645, -0.1430351734, 0.1791961193, -0.0643168762, 0.235107109, -0.0738047361, -0.2133549452, -0.0663408339, -0.2143988311, 0.1607052684, -0.1522088349, 0.1527090818, 0.053645324, -0.5616631508, 0.1415905505, -0.1821110249, -0.4047582746, 0.1426199377, 0.0634795427, -0.3252720535, 0.2601841092, -0.2569130063, 0.410569936, 0.3593775928, 0.0474486612, -0.2179159373, 0.5959805846, -0.2907435, 0.1160449758, -0.0133613441, -0.1479090899, 0.1549323648, 0.2354368418, -0.0599448159, 0.4456367791, 0.0063779918, -0.031770613, -0.0838368088, -0.0573591776, -0.0183685496, 0.0314054452, 0.2037578821, 0.0251165405, 0.1158456057, 0.1267813593, 0.4252819121, -0.0975787789, 0.0182103086, 0.0657180548, 0.2228586227, -0.385242641, 0.1749111265, -0.3782425821, -0.4554949999, 0.0621351451, 0.1014204994, -0.1375288963, 0.1158957556, -0.0965654477, -0.3515445292, -0.1073803082, -0.1126648784, -0.1669163704, 0.2667329609, 0.0847351328, 0.0104711205, -0.1284504831, -0.3499453664, 0.3109069765, 0.1858592331, 0.0998648778, -0.1760519892, 0.1197586432, -0.0147883883, 0.0132743381, -0.1002952978, -0.0243153535, -0.067553401, -0.2621865571, 0.1230675429, 0.3927681744, 0.217102915, -0.0299397241, -0.1052875817, -0.1021345779, 0.1064499468, -0.0435715206, -0.2622539401, 0.0379270166, 0.0455441661, -0.2813709676, -0.108936362, 0.2900725305, -0.0013889086, 0.1250047088, 0.0022899248, -0.0796227753, 0.2583754063, -0.3891922534, -0.076153107, -0.344088465, 0.0553216971, 0.0281456001, 0.0582247078, 0.2622613907, -0.2873223126, -0.0727632269, 0.4256910682, -0.1903771162, -0.1109368801, 0.0080458364, -0.1654186994, -0.0901106149, -0.0371377878, 0.4648383558, 0.5464000702, 0.2240350395, -0.0557418242, 0.0853973702, -0.1035089865, -0.2827935815, 0.1874668449, -0.0605965182, 0.0694381893, 0.3435248733, -0.1227878183, -0.0765336901, -0.5940356851, -0.1997365952, 0.2439711988, 0.0213102885, -0.2915414274, 0.1252108365, -0.5876446962, 0.1531884968, -0.1801863015, -0.0347418636, -0.1548663378, -0.2169408798, 0.205471307, -0.1039911136, -0.189483881, 0.1027424708, -0.1585289538, 0.0663045049, -0.1614372581, -0.1396147311, -0.3145330846, -0.0340424478, -0.3989765644, 0.1783140749, 0.1830154508, 0.2020490021, 0.1871418059, 0.0390508883, -0.1425930709, -0.093196772, -0.2514515519, 0.0934619009, -0.1117913648, 0.153780058, 0.271463424, 0.2392385155, 0.1676790714, -0.2009637803, -0.0879250169, 0.0900721923, -0.2527700663, 0.1226183027, 0.0359537862, 0.041416239, -0.3699289262, -0.6525771022, 0.0557042658, -0.1968076974, 0.0148073789, -0.2343948036, -0.0492217503, 0.1713952422, -0.0538849719, -0.0140296565, -0.275293678, 0.0155107351, -0.2643649578, 0.0334708169, 0.2760210931, -0.0172576532, -0.1387995481, 0.0184177328, -0.1217751354, 0.032458704, 0.1251864433, -0.4545750916, 0.0104658725, -0.1376711428, -0.226786226, -0.1906211972, -0.3300799131, 0.1948115528, 0.0004656158, -0.0723877847, -0.1768392324, 0.0356082432, 0.2506484389, -0.0810751095, 0.2056277245, -0.1632078141, 0.279627651, 0.2377654463, 0.485432297, -0.1465911716, -0.2193385065, 0.1091306135, -0.0153391659, 0.3091850281, -0.1717421263, -0.1708226949, -0.0513980612, -0.0194155499, -0.105622381, 0.2262821048, -0.1385203451, 0.0632861778, -0.0086491108, 0.159770593, 0.0153989103, -0.1616434306, 0.2947480977, -0.0456928425, -0.1114447862, 0.349367857, 0.2805185616, 0.2340500057, 0.1230994761, -0.0236759372, 0.3400544524, 0.1371892095, -0.0226143599, -0.6085088253, -0.0340900011, 0.0177832805, 0.240602538, -0.0758717656, 0.0102832941, -0.0242781565, -0.0585447699, 0.1487669945, 0.0364585631, 0.6180636883, -0.1154522598, 0.089590542, 0.0650965273, 0.0918855518, 0.0691317469, -0.2760098577, -0.2044903934, -0.0475652963, 0.502135694, 0.7775655389, -0.4113329351, -0.1560429931, 0.0872284546, 0.1647655219, -0.076938875, -0.1625660658, -0.122847043, -0.1871552467, 0.0900423825, 0.228684634, 0.2115119994, 0.1411289126, -0.0701330528, -0.1762647629, -0.1071600094, -0.156675905, 0.2453462034, 0.2127415687, 0.0681808442, -0.2047415674, 0.1709824502, -0.0753594339, 0.5455244184, 0.274272114, 0.3747881055, -0.1042228043, -0.2668090463, -0.1403677166, -0.2021369189, 0.2343636453, 0.3760181367, -0.0577090532, 0.0096599348, 0.3009229898, 0.0241086241, -0.0679248497, 0.4851520956, 0.2488544881, -0.186310485, -0.5431059003, -0.2297956944, 0.1678939313, -0.0511572994, -0.213176921, 0.2035180479, -0.0315280296, -0.4284872115, 0.4526442289, -0.0976671949, 0.7500520349, 0.1380676329, 0.0642762333, 0.1495356113, -0.2603369355, 0.1490332037, -0.6311027408, 0.2690384984, -0.4670380056, -0.4565190375, -0.0775400549, -0.2111233026, 0.2042817622, 0.6347631812, -0.0397092253, 0.0928254649, 0.0950254276, 0.4257846475, 0.0587650947, 0.3279769123, 0.0527601056, -0.0482677519, -0.035568852, 0.1614432484, -0.1498746723, 0.0362437293, -0.051406242, -0.3855080009, 0.1836000979, -0.4284006357, -0.225166291, 0.2187385112, -0.2278591096, -0.033228036, 0.1760797799, -0.1285462677, 0.0061213281, 0.1173942834, -0.1114031002, 0.277141124, -0.1458185464, 0.4450203776, 0.0097513488, 0.2832594216, -0.1336122155, -0.1786492914, 0.4979654253, 0.0539875887, -0.2168572992, -0.056116268, -0.3294491768, -0.0394909158, -0.084980987, 0.2784351707, -0.2025489956, -0.4120262861, -0.0691321716, 0.1678719372, 0.2674231827, -0.1070365459, 0.1977512687, -0.0078062611, -0.1843345165, 0.412073493, -0.0533389412, -0.5031564832, -0.1545615643, 0.2033061236, 0.0836123303, 0.0250527617, 0.4855353832, -0.2119722217, -0.1005564034, -0.3836774826, 0.3179894388, 0.5571683049, -0.1935875267, 0.2423785478, -0.1382148713, -0.2601283193, 0.2721675336, 0.0188157968, 0.1795910299, -0.0188121833, 0.0058047646, -0.4253163338, 0.0540796965, 0.0487260595, -0.3073983192, 0.2638313472, 0.0739843324, 0.201000452, -0.1232095957, 0.1576244682, -0.3802019954, 0.151448369, -0.0565942228, 0.3011015058, -0.2822374701, -0.1286555082, 0.2552879453, -0.0071929526, 0.2769224644, 0.0634588525, -0.2208022624, -0.310284555, -0.1763069034, 0.0841933861, 0.1143738925, 0.219053641, -0.1516669989, 0.0529661812, -0.1482594013, 0.002512895, 0.2464483231, -0.0384656563, 0.0905692875, 0.0098305428, 0.0303833596, 0.1718748957, -0.0815700665, -0.238205716, -0.2466034144, 0.3126650453, 0.0634879917, 0.1735732555, -0.0624465644, 0.003363481, -0.3213852346, -0.0505085848, 0.0534272231, 0.3147141337, 0.1768408716, -0.0579431541, -0.0576828159, -0.0478316769, 0.4436825216, 0.599378407, -0.3150279522, 0.0122227045, 0.1831130683, 0.3384355009, -0.130514279, -0.1803355217, 0.5321157575, 0.1820368171, -0.0108301202, 0.0044950899, 0.0760016814, 0.1086775735, 0.0611904599, 0.0572899692, 0.3909017444, -0.0702837333, 0.1896461099, 0.5708368421, -0.4855546355, 0.0949905068, 0.2598790228, -0.1213165298, 0.1049752161, 0.6375139356, -0.0430875085, 0.402780056, 0.2154513001, 0.1788866818, 0.0008393778, -0.279414922, -0.1175990179, 0.341432482, -0.3114115894, 0.2335783243, 0.1877614856, -0.0348005705, -0.1946231425, -0.0991957411, -0.3562889993, -0.1453220546, -0.2091041058, 0.0438510478, -0.1543080658, -0.1871849298, -0.0443839207, 0.2416541129, 0.057345178, 0.1841015071, 0.0305491518, 0.065050669, -0.1233147308, 0.0230382401, 0.1560216695, -0.1645269692, 0.0038520906, -0.3887145519, 0.0889417008, -0.0757218897, -0.1156791747, 0.4925918877, -0.0275778603, 0.0958672091, 0.423926115, 0.1878940314, -0.1748217791, -0.1570224166, -0.1431539953, -0.2266909033, 0.4728108048, 0.1520097554, 0.0625193268, 0.4406730831, 0.2900244892, -0.1643087417, 0.1751152724, 0.1495714933, 0.0974783599, -0.3341274858, 0.2487381995, 0.3146913946, -0.1607473046, -0.2066405863, -0.0817122981, -0.0294665992, -0.0596507676, 0.1874405593, 0.1179039031, 0.340731144, -0.2361194044, 0.1107070297, 0.0414234325, 0.4009073973, -0.0458073243, -0.3240059912, -0.2138714343, -0.0486067683, -0.4575088024, 0.165483132, -0.3153255582, 0.090951845, -0.0377997197, 0.0049247239, 0.0689557567, 0.0291354936, -0.0169783365, 0.0361354277, -0.0233906507, 0.2160343826, -0.2856403291, 0.2382202297, 0.2164578438, 0.1769156009, -0.0565080866, -0.3180697858, 0.4314727783, 0.0856562629, 0.0787461773, 0.1173483506, -0.2351738811, 0.3316433728, 0.358836025, 0.3849411607, 0.2947678566, 0.3701786101, -0.1180773377, 0.1262837499, -0.2970581949, -0.022710558, -0.3061893284, 0.2131858617, 0.2257810831, 0.357038945, -0.0336523093, 0.132971108, -0.2286542058, 0.1434230059, -0.0251451246, -0.0706856698, -0.3951465786, 0.0463462956, -0.1915865391, 0.0884951502, 0.1225734875, 0.3573529124, 0.0096249133, -0.3174106181, 0.045612324, -0.2882877886, 0.267680794, -0.2038496882, -0.4605977833, -0.0418091789, 0.1066372618, 0.1789297909, -0.0590332225, -0.3967847526, -0.1907776743, 0.3628889322, -0.2921100557, -0.2910732329, -0.0754277781, 0.2166014761, -0.2038097531, -0.0846209154, -0.0220455471, 0.3249830008, -0.5447608232, 0.0591738969, -0.3173721731 ]
https://github.com/huggingface/datasets/issues/3788
Only-data dataset loaded unexpectedly as validation split
> The regex is needed as part of our effort to make datasets configurable without code This feels like coding with the filename ^^'
## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`.
24
Only-data dataset loaded unexpectedly as validation split ## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`. > The regex is needed as part of our effort to make datasets configurable without code This feels like coding with the filename ^^'
[ -0.2534263432, 0.137466535, -0.063353397, 0.1325034201, 0.1538755149, -0.1122745723, 0.2060326934, 0.5831243396, -0.1359725744, -0.0397470072, 0.017430231, 0.1966339797, -0.0144108729, 0.1911669821, -0.0082555879, 0.3433130682, -0.0202845931, 0.3917874992, 0.1030329913, -0.0527234115, -0.1903064996, 0.1377195269, -0.1135969758, 0.1488873363, -0.257671237, -0.0880302042, 0.3335205615, 0.23191531, -0.2738489807, -0.3377777636, 0.379085362, -0.1357732117, -0.2470938861, 0.1103559434, -0.000109626, 0.0997929201, 0.2316360325, -0.1707498431, -0.228226915, -0.225421086, -0.4662271142, 0.0920561105, 0.0786792859, 0.0741880089, -0.0905463696, -0.2103111297, 0.0876301825, -0.3661450744, 0.6112678647, 0.4726113379, 0.1914151013, -0.0424766913, -0.2418508381, 0.0434882827, 0.0062215296, 0.4266783595, -0.0177231729, -0.1449671984, 0.4151014388, -0.0726134703, -0.0263072122, 0.2632801235, -0.0692823082, 0.0331854112, 0.1274675429, -0.0785608292, -0.2832404077, -0.3884384036, 0.2084416896, 0.6335548759, 0.4379573464, -0.0504159071, -0.0060889171, -0.0093952604, -0.1419634223, -0.0266389027, 0.1768466383, 0.4905531108, -0.1171722114, 0.3152579665, -0.2586171329, 0.0299110245, -0.1499054283, -0.015324655, -0.3329432607, 0.3917556703, -0.1882002056, 0.121203132, 0.074255459, 0.150906533, -0.2433816493, -0.2829331756, -0.602609694, 0.019345304, -0.0603381172, -0.1130214334, -0.2505195737, -0.1746104211, 0.4233032465, 0.140760377, -0.0121225342, 0.1704203039, -0.2575065494, -0.0422897488, 0.3435744643, -0.0172564704, 0.4756168425, 0.2419589013, 0.2894833386, -0.2996280193, 0.1191264316, -0.0307968184, 0.2374694943, 0.0704791099, -0.0795249641, 0.0504428893, 0.1379533559, -0.3435832262, -0.430541575, 0.1128125712, -0.2376893908, -0.0341485329, 0.0450683124, 0.1607359797, 0.2411933243, 0.1232141331, -0.2608870566, 0.1577783972, 0.120692037, -0.4907972217, -0.1601373851, -0.0061084502, -0.3168109059, -0.0982416049, 0.2807221711, -0.0627440363, 0.0568843707, 0.2341997176, -0.3388651013, -0.1769968271, 0.0385922715, -0.0132178403, 0.3620589674, 0.538518548, -0.1930282116, 0.1522211879, 0.0324255452, -0.4161138535, -0.1281829923, 0.1447970867, -0.1648786366, -0.2333540171, -0.0892154574, 0.2771680057, -0.1500627249, 0.3300788403, -0.0673267245, 0.1619230509, -0.125392437, -0.2339956909, 0.0062613906, -0.1406204104, 0.2943439484, -0.1050928384, 0.0605705082, 0.2052350491, -0.7030357718, 0.1865292042, -0.2564069033, -0.4325763285, 0.1158361062, 0.1193082556, -0.303080827, 0.1798394918, -0.3579506874, 0.3457514644, 0.381065011, 0.1369227916, -0.2833891511, 0.6882153153, -0.3251453936, 0.0281322449, 0.0390314162, -0.0916056335, 0.2069052756, 0.2147556841, -0.1465686411, 0.3739623725, -0.0274131205, -0.0018828078, -0.0861037895, -0.0619509369, -0.0460133031, -0.0353170373, 0.2768217623, 0.0590761639, 0.2491992265, 0.0737740919, 0.46943295, -0.1444505304, 0.0342188701, 0.0812132582, 0.2003498524, -0.307363838, 0.1330460757, -0.5007241368, -0.5176317096, 0.0246729832, 0.1073088944, -0.2446929216, 0.0066265883, -0.0949318111, -0.3481307924, -0.0917700902, -0.0536603332, -0.0790450573, 0.1834312826, 0.2141595036, -0.0031715843, -0.0842811614, -0.2729727626, 0.3970382512, 0.1778324991, 0.1381018013, -0.2058526576, 0.2008199543, 0.1437507123, -0.033522211, -0.1138035432, -0.0979085043, 0.0074374601, -0.3075510263, 0.0949084312, 0.314104408, 0.2025979906, -0.0285108518, -0.1019746512, -0.0770140067, 0.1247526258, -0.089092277, -0.1983444095, 0.081276454, 0.1366222054, -0.3862429559, -0.1405502409, 0.35714975, -0.1814734936, 0.1216455773, -0.1029760391, 0.0359730683, 0.2368492931, -0.3651055396, 0.0488837287, -0.3083796203, 0.1828194112, 0.0027905565, 0.1543613076, 0.2497233152, -0.2458807975, -0.1465779245, 0.3283919394, -0.2128029615, -0.0066976994, 0.0520048924, -0.2213096768, -0.0352248549, -0.041217465, 0.4420042634, 0.6184746027, 0.2260459512, -0.1499776244, 0.0490548871, 0.0355680175, -0.3064552248, 0.2550815046, 0.0559418052, -0.0558010563, 0.3221932054, -0.1605852097, -0.1092704609, -0.6805305481, -0.0427681729, 0.2070406824, -0.1064444631, -0.3759015203, 0.0882662609, -0.5233178139, 0.241674304, -0.1156827286, -0.0798482969, -0.2262997925, -0.2453117073, 0.0903637484, -0.044491414, -0.0965108499, 0.0919016749, -0.0945707932, 0.1535680741, -0.1892304122, -0.211692974, -0.3781190813, -0.0392394625, -0.2461028099, 0.1237175614, 0.2165717781, 0.3587960303, 0.2338156104, 0.0606098659, -0.0607011765, -0.1768615693, -0.2637050748, 0.1290325075, -0.179426536, 0.1678745896, 0.2429053783, 0.2681181431, 0.3348751664, -0.0951919854, -0.1792084724, 0.0440239981, -0.1547348499, 0.1360842884, -0.0335710868, -0.030886922, -0.3797040284, -0.4908776879, 0.0832906887, -0.1404996514, 0.152150467, -0.2634124458, -0.0613121241, 0.0296129379, -0.1183202788, -0.071701102, -0.2554944456, -0.0650648624, -0.2728637755, 0.0778044611, 0.2598480284, 0.0274455287, -0.1897051334, 0.0276054405, -0.024532076, -0.0578682572, 0.1157942638, -0.4907017052, 0.045641385, -0.2330088168, -0.1679979414, -0.1731293499, -0.3186234534, 0.1718341857, 0.0008052168, -0.0167593732, -0.2047915161, 0.0448757932, 0.1960479468, -0.1827647686, 0.1491359323, -0.1627624035, 0.319996208, 0.1503567249, 0.4808175862, -0.1954454482, -0.1431334019, 0.0212285742, 0.0393119305, 0.4678153992, -0.1227462068, -0.1801379174, 0.0205206573, 0.0546173602, -0.0407166593, 0.2439568937, -0.1391168982, 0.0528142862, 0.0154234292, 0.1629182398, 0.0314619057, -0.0941829234, 0.2271791101, -0.0032564094, -0.1676505059, 0.3836380839, 0.2927001715, 0.178174302, -0.0303571206, -0.1287425458, 0.3600214422, 0.0588998273, -0.0202748813, -0.5410086513, 0.1070427001, 0.0870598257, 0.3714529872, -0.1414403319, 0.0040031369, -0.1252886355, 0.0475423783, 0.2124885321, 0.070876576, 0.7127006054, 0.0213925298, 0.1617463529, 0.025734799, 0.213561222, 0.0502229519, -0.2644318342, -0.271930933, 0.0271068402, 0.4371281564, 0.6720404029, -0.2766321599, -0.1328768879, 0.0266429465, 0.2040143013, -0.0653265268, -0.0674253628, -0.0908451974, -0.2760984898, 0.1035243571, 0.2292812914, 0.1999270022, 0.0119427703, -0.0441589803, -0.1733367294, -0.1507398486, -0.1822887808, 0.249933213, 0.1979892105, 0.0634748563, -0.209114641, 0.1236498207, -0.0765921026, 0.4670152962, 0.2752119899, 0.3738928139, -0.0763537958, -0.310510695, -0.0920813382, -0.3715703189, 0.2247192711, 0.4710645676, -0.1539427787, -0.11031726, 0.2031188458, 0.1381474733, -0.1492205709, 0.3755466938, 0.2290027589, -0.1513514519, -0.5507345796, -0.1067431793, 0.2118322402, -0.0681538507, -0.2793002129, 0.3813085854, 0.0665802956, -0.4452569485, 0.324750334, -0.0470761321, 0.7364585996, 0.0772326142, 0.0019754895, 0.0352546237, -0.3789111674, 0.1908118874, -0.5707551837, 0.1314059794, -0.4391215146, -0.471935451, -0.1278972626, -0.2686750889, 0.3406482637, 0.6454149485, 0.0329846293, 0.1179767922, -0.0021516182, 0.3624840379, 0.1162859872, 0.3094749153, 0.0896651149, -0.1067660078, -0.0119418474, 0.144658789, -0.3645204902, 0.0628229976, -0.0016900746, -0.3949002624, 0.1534476131, -0.397454083, -0.3265588284, 0.2110614181, -0.1819025278, 0.0043400214, 0.1179540902, -0.1610984504, 0.1537467986, 0.130052343, -0.0208133198, 0.3141758442, -0.156413123, 0.4836792052, -0.0046691247, 0.2766925991, -0.1093709767, -0.0277930181, 0.316375792, 0.1152083948, -0.1505503207, -0.1398819536, -0.3200094402, 0.0366774686, -0.0385273434, 0.3234070241, -0.1092954874, -0.4262804091, 0.0450986587, 0.053889405, 0.3610627353, -0.0885872766, 0.1563751847, -0.0495511442, -0.1386939585, 0.3979171216, -0.0705926418, -0.5519452691, -0.1450807005, 0.1404728442, 0.029309364, -0.0656826571, 0.4052131474, -0.2323899865, -0.0970758423, -0.4192322195, 0.5359836221, 0.3014195561, -0.3306964636, 0.3382032514, -0.1069632322, -0.2944272757, 0.2260499299, 0.0588924326, 0.1384665072, -0.0183485299, -0.007738119, -0.4721868336, 0.1195141673, -0.0955519527, -0.3592613041, 0.248286888, 0.1045673341, 0.1256682128, -0.0937722549, 0.1958539486, -0.3240005076, 0.2582786083, 0.0118779717, 0.2530012131, -0.2660877407, -0.0611320026, 0.2097938061, -0.0645981506, 0.2239699811, 0.0964574665, -0.2111313194, -0.2445576638, -0.1382103711, 0.1216889769, -0.0329501182, 0.1568883061, -0.132421881, 0.0370772034, -0.1260410398, -0.1109067276, 0.3818077147, 0.0107043376, 0.0827625096, -0.1007879376, 0.1000622734, 0.0763413385, -0.1276104152, -0.1406951249, -0.2857193649, 0.3975638151, -0.0858387351, 0.2009013593, -0.1063177288, -0.0351595841, -0.3164006174, 0.0496131852, 0.1164382771, 0.2994036674, 0.1805971563, -0.178235516, -0.0617862344, 0.0060691475, 0.3948315978, 0.5794689655, -0.3389323354, 0.0277043488, 0.1598091125, 0.2584682107, -0.1330039352, -0.2397766113, 0.5757194161, 0.2402971387, -0.0100189373, 0.0097670285, 0.0985420346, -0.0369806029, 0.10062062, 0.038917318, 0.5169348121, -0.0746796876, 0.2018634528, 0.6104541421, -0.356872201, 0.0586342923, 0.3385001421, -0.0900640711, 0.0091274185, 0.7144204974, -0.0529213175, 0.3150449097, 0.1874560118, 0.1963081658, 0.1359438002, -0.2938552797, -0.0612866133, 0.2582545578, -0.4271481633, 0.278875649, 0.221013099, -0.142988041, -0.3331508338, -0.0831025988, -0.4208568931, -0.1892098039, -0.1974194497, 0.1248306483, -0.0884971321, -0.1509998888, -0.0473187305, 0.2855482996, 0.0157792736, 0.0967697501, 0.0537277162, 0.0848441646, -0.062067423, 0.0090567414, 0.1237923801, -0.1440798789, -0.092542164, -0.4353860915, 0.0576473959, -0.1291523874, -0.1165632904, 0.5749792457, 0.0012005012, 0.1095267013, 0.3055125177, 0.1521811634, -0.1883179992, -0.170618996, -0.2014866769, -0.1105502471, 0.4503712952, 0.0938222408, 0.1558915079, 0.4197559655, 0.2794715464, -0.1284784824, 0.0828811601, 0.1550363302, 0.0732243285, -0.354652524, 0.272736311, 0.2190743685, -0.2271003425, -0.2503652871, -0.1539076716, -0.0478741117, -0.0724840388, 0.2107959688, 0.0674559176, 0.3144216239, -0.1502586156, 0.0889208689, 0.0132306097, 0.4036133289, -0.1065766141, -0.3582514524, -0.1214879528, -0.1204079166, -0.4024399817, 0.1128538251, -0.2801454365, 0.1014168039, 0.0642090961, -0.0644281656, 0.1878654808, 0.1075172126, -0.0209993366, 0.1307830513, -0.0391984656, 0.1355592012, -0.2636836767, 0.2478288263, 0.3087748587, 0.1319910884, -0.1109215915, -0.3477728367, 0.4172829986, 0.1176704839, 0.0412486419, 0.1129597649, -0.1803157032, 0.2415557653, 0.2920076549, 0.2955793142, 0.3222992122, 0.4012613893, -0.1106854975, 0.10529726, -0.2365418077, -0.0849119797, -0.247836709, 0.3456516266, 0.1977046877, 0.3303368986, -0.139976114, 0.153510049, -0.2696500123, 0.150349468, -0.1067907885, 0.1502688825, -0.4630713165, 0.0456843749, -0.2503562272, 0.2556034923, 0.1605149657, 0.3039830923, -0.0101655349, -0.2853692472, 0.1299685836, -0.2773362994, 0.2321896106, -0.1242198646, -0.5586174726, 0.0640537515, 0.171054557, 0.1275375783, -0.1008867919, -0.3230801821, -0.1157931611, 0.4146098495, -0.3564870954, -0.2811962366, -0.1681610495, 0.1305624247, -0.2318032831, -0.0819954351, -0.0090722423, 0.3555193543, -0.5567436814, 0.1168749556, -0.291249603 ]
https://github.com/huggingface/datasets/issues/3788
Only-data dataset loaded unexpectedly as validation split
This is still much easier than having to write a full dataset script right ? :p
## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`.
16
Only-data dataset loaded unexpectedly as validation split ## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`. This is still much easier than having to write a full dataset script right ? :p
[ -0.3309621811, 0.0703856722, -0.1060947105, 0.1277537197, 0.192970559, -0.1053088158, 0.280169934, 0.5553884506, -0.0073975134, 0.1058118641, 0.1400856078, 0.269392252, 0.0448251739, 0.2297161669, 0.014962987, 0.283696115, -0.036891643, 0.3354948163, -0.103077665, -0.0959970728, -0.2033819407, 0.1345844418, -0.1522013098, 0.0484120399, -0.1609866917, 0.0165344588, 0.2368636876, 0.269030571, -0.2907955647, -0.3309462965, 0.3171503842, -0.0525797568, -0.1299058646, 0.1333444566, -0.0001025965, 0.1290193796, 0.3580307066, -0.162365526, -0.2039925456, -0.0962605923, -0.3200093508, 0.0364689082, 0.0859640613, -0.0730937123, -0.1251761317, -0.2171311975, 0.0332988091, -0.3119279146, 0.5330467224, 0.4383550286, 0.2959493399, 0.0110102892, -0.226682961, 0.0062907129, -0.0227617957, 0.3966067731, -0.0897800475, -0.0501824059, 0.4204056561, -0.0969829783, -0.0299728941, 0.2262677848, -0.0589032546, -0.0883778259, 0.2656702101, -0.0850405842, -0.2587174177, -0.3214087486, 0.1843139082, 0.4006027281, 0.5153903961, -0.0708763525, -0.053538993, 0.0299400445, -0.1233322173, -0.0613998175, 0.1370182633, 0.4438122809, -0.0304280296, 0.2717036009, -0.2638071179, 0.0759128407, -0.1946530789, -0.1041827276, -0.2198857069, 0.2486579716, -0.1339426637, 0.1810290962, -0.0043836012, 0.14673917, -0.0570962206, -0.3050841391, -0.5694639087, 0.0469871908, -0.0783913955, -0.2236004621, -0.0414224453, -0.135150224, 0.4133838117, 0.1020521671, 0.033649195, 0.1835558265, -0.2357760817, -0.0478006825, 0.4572347105, 0.0603530966, 0.4621770382, 0.1949074864, 0.2651194632, -0.3177365363, 0.1303925663, 0.0276957899, 0.1811257303, 0.0358844586, 0.0494074002, 0.0593121313, 0.1709585041, -0.345015645, -0.4236601889, 0.0924026147, -0.1499182433, -0.0277378503, -0.0221764259, 0.3059890568, 0.2342908382, 0.100873217, -0.1832647324, 0.1357486844, -0.0148036703, -0.2968325317, -0.1944215149, 0.099520646, -0.3053975999, -0.1846957058, 0.2577943802, -0.0319734327, 0.083023943, 0.1337876916, -0.2741501629, -0.1819569618, 0.1403175294, 0.0920351744, 0.348798424, 0.4546729624, 0.0629420206, 0.0790194348, -0.0136106312, -0.248910889, -0.126571551, 0.2455444932, -0.163971886, -0.2543500662, -0.0395721868, 0.350804776, -0.1112665534, 0.3070956469, 0.0153619302, 0.1108810753, -0.0867561847, -0.2571773529, -0.0146994116, -0.1921217144, 0.0596704371, -0.1718802601, 0.0233742651, 0.222171694, -0.6134164333, 0.2246485353, -0.1803048104, -0.4256345332, 0.0383533277, 0.057486631, -0.3252330422, 0.2121920139, -0.3945581317, 0.2904386222, 0.2569003701, -0.0476124473, -0.2074223608, 0.6224555969, -0.2729626596, 0.0356767587, -0.0653125197, -0.0407639556, 0.2238396853, 0.0948803425, -0.0760903135, 0.3104020059, -0.0230584368, 0.1568607986, -0.0974214375, 0.0015769637, 0.0303130988, 0.0178601444, 0.2396211177, 0.0430072509, 0.2412917167, 0.0426515713, 0.4705908, -0.1650229692, -0.0058807153, 0.1062211469, 0.1197739169, -0.4056813717, 0.2097618282, -0.2766771019, -0.5367823839, 0.1016041115, 0.1252337992, -0.1748459786, 0.0362334028, -0.1146456003, -0.2598357201, 0.0195982885, -0.0993899256, -0.1079749838, 0.2470238805, 0.172002241, 0.0438216254, -0.2324727029, -0.3408406079, 0.2903357744, 0.1341685802, 0.0367853083, -0.2781130672, 0.1410369873, -0.0235650651, -0.0273386389, -0.0241340008, -0.1196670085, 0.0237568021, -0.4018746316, 0.0536528267, 0.3820711076, 0.2330935746, -0.0220880471, -0.0743712932, -0.102962397, 0.0936058909, -0.049520582, -0.1067848131, 0.0393967889, 0.1669899076, -0.3210771382, -0.2054782063, 0.4737874568, -0.30019629, 0.0834619403, -0.1006130874, 0.0436831079, 0.2282473147, -0.2986277342, -0.0678000599, -0.3276402652, 0.1605600268, 0.1201539412, 0.0870151073, 0.1472118795, -0.2548534572, 0.1517407447, 0.3924949467, -0.2390088141, -0.0388406888, -0.0250015184, -0.0745575577, -0.0554653555, 0.0043309019, 0.4093601406, 0.6356889606, 0.1957813352, -0.2091551274, 0.0672510341, -0.0043140808, -0.2182165533, 0.3147996664, -0.0402936973, -0.0695201382, 0.2633118033, -0.1503738761, -0.2045219839, -0.5881256461, 0.035536062, 0.1857343763, -0.0336125754, -0.3687416613, 0.0700560287, -0.4303838611, 0.2599393129, -0.1211552396, -0.0621437691, -0.1135294512, -0.3575893342, 0.1901266724, 0.0248222593, -0.2035488188, 0.1178440154, -0.0631943047, 0.2219467461, -0.1046076715, 0.0040145968, -0.3240403533, -0.1843869984, -0.1938622445, 0.1700472385, 0.2974510491, 0.3323098421, 0.3181926906, -0.0789502114, -0.0920943841, -0.2156675756, -0.2310533822, 0.1469628215, -0.2359438837, 0.1516398489, 0.2616999149, 0.2703553736, 0.3450797498, 0.0401287451, -0.1634698808, -0.0505614057, -0.334435463, 0.2128010392, 0.042489659, -0.1869573444, -0.4820566177, -0.5956626534, 0.1210987642, -0.1672099531, 0.1100371182, -0.1614883244, 0.0499346703, -0.0446176566, 0.0140937511, -0.0892279297, -0.1848932654, -0.0763213187, -0.3187603652, 0.0118213091, 0.2288333178, -0.1857830733, -0.3805097044, 0.0666420236, 0.0005034441, -0.0105252201, 0.0721076056, -0.4886793196, -0.0804495364, -0.1262095422, -0.110300988, -0.2704426646, -0.2867326736, 0.281208694, 0.0448404886, -0.0453909673, -0.3163351417, -0.0426266082, 0.111158371, -0.2324247807, 0.1200013757, -0.2147037685, 0.3928373158, 0.040238779, 0.4024093151, -0.1719452739, -0.1974951029, 0.0073079481, -0.0087512666, 0.5414100289, -0.1752637625, -0.2332720757, 0.0762639642, 0.0175551847, -0.0243062023, 0.2345034331, -0.2366591394, 0.0139278686, -0.0891275555, 0.1398295611, -0.0276116319, -0.1680655181, 0.2128669173, -0.0298141949, -0.1952878535, 0.4387377203, 0.4353820384, 0.0928976163, 0.107181102, -0.0343932249, 0.2789799869, 0.1720549762, -0.0347835794, -0.6186410189, 0.0244380888, -0.1155316457, 0.3277502656, -0.1245706528, -0.028321255, -0.0208467264, -0.059642233, 0.163582027, -0.1074449345, 0.6850613952, -0.0951321647, 0.2055629343, 0.0549839623, 0.0556729846, -0.1051472053, -0.2461590618, -0.2559323311, 0.2169975489, 0.3132944405, 0.4940982759, -0.2867567837, -0.1463034451, 0.1059945673, 0.1050194427, -0.110898219, -0.1787248254, -0.1594041437, -0.3624135852, -0.0300982594, 0.1513721198, 0.138241142, -0.0078607658, -0.171107769, -0.1454584599, -0.1020269394, -0.0834546387, 0.1011769921, 0.2288750857, 0.038539134, -0.2103355974, 0.1983710378, -0.1286456287, 0.4566653073, 0.3061381578, 0.4746874869, 0.0338540599, -0.2457010299, 0.0238611214, -0.416939348, 0.1583457291, 0.3858682513, -0.0440488718, -0.1164527833, 0.1209779531, 0.0589224249, -0.1384512633, 0.2437454015, 0.2200246304, -0.1249303892, -0.4367874265, -0.126016587, 0.1249204129, -0.1783394665, -0.2292441577, 0.3517456949, -0.0687462687, -0.3790453672, 0.4811047614, 0.0015838366, 0.7689034939, 0.1601736695, 0.0185574796, 0.1152036637, -0.3515614867, 0.2258505821, -0.4611185491, 0.1976735294, -0.5610445142, -0.3417628109, -0.0702971816, -0.2445364147, 0.1058359519, 0.48316136, -0.1423951685, 0.1317864507, -0.0078561902, 0.3638517261, -0.0214710981, 0.3284903467, 0.0497725569, -0.088856943, -0.0082041007, 0.2220862657, -0.2315729856, 0.0786159784, -0.1175553277, -0.3295959532, 0.1270424426, -0.4430472553, -0.2806611061, 0.3023042381, -0.061555516, 0.0203274619, 0.0734291673, -0.075943917, 0.0634436607, 0.114522174, 0.0231888611, 0.2775030434, -0.143123284, 0.4363519847, -0.0730758756, 0.2671199441, -0.0989634767, -0.0828875229, 0.3576003611, 0.0243819486, -0.2163949609, -0.1652471423, -0.2756334543, 0.0740126222, -0.0908854827, 0.4127343297, -0.1655761302, -0.4208033979, -0.0716029182, 0.07785175, 0.1947415322, -0.1604305208, 0.2253066599, 0.0318061076, -0.1402182132, 0.4300466478, -0.0400507785, -0.439902246, -0.1251438856, 0.1439605206, 0.090223901, -0.0788107961, 0.3422067165, -0.1166583747, -0.0789836869, -0.453666091, 0.3082158566, 0.3186634183, -0.2988260686, 0.3041032553, -0.1332977414, -0.2309393436, 0.2118944526, 0.0082149897, 0.0254138689, 0.0686168075, -0.0682965517, -0.4288283885, 0.0944071263, -0.0628683791, -0.2461980283, 0.2805791795, 0.1043530777, 0.1313735098, -0.1235920787, 0.1999467313, -0.4163149297, 0.1447475106, -0.0035033321, 0.2352274805, -0.1904747486, -0.1041404009, 0.0892594904, -0.1278748959, 0.2726808786, 0.1588214636, -0.2233491838, -0.3178111613, -0.0493797585, 0.1011644974, 0.0322497301, 0.1918576062, -0.1082909703, -0.0384023003, -0.1780053228, -0.0847871751, 0.3393414021, 0.0060864561, -0.008660634, -0.1120141447, 0.1610226035, 0.1196436509, -0.088309966, -0.1221649274, -0.1805018336, 0.3848410249, -0.0978913903, 0.2155048698, -0.1369507611, -0.0542169474, -0.2195204496, 0.1017509252, 0.0858297572, 0.3763044775, 0.2373443395, -0.1360518187, 0.0477677807, -0.1036778539, 0.4018547833, 0.6040049195, -0.4179917276, 0.0176677592, 0.0113043627, 0.3287956417, -0.140315026, -0.1413296163, 0.4379934669, 0.1909750998, -0.0571928434, 0.021057032, 0.0167975686, -0.0671732724, 0.1974994987, 0.0856822357, 0.505797267, -0.1326329708, 0.1375216097, 0.4039545953, -0.4566676021, 0.0167275984, 0.2638297975, -0.1421944797, 0.0675267875, 0.7392699718, -0.0382412858, 0.3939730227, 0.1351876706, 0.1407675147, 0.077262193, -0.2325187325, 0.0460522138, 0.2826580703, -0.3565586805, 0.2186439335, 0.2839204669, -0.1752779782, -0.3420028985, -0.0982310474, -0.4677382708, -0.1032829285, -0.2798645496, 0.1542153955, -0.3120956421, -0.1050110012, 0.000142869, 0.2977414727, 0.0245516747, 0.2025378197, 0.075188078, 0.1170883328, -0.1949016601, 0.0304233711, 0.1836370379, -0.1934797168, -0.0528714806, -0.3803379834, 0.0761979297, 0.0613650605, -0.0274019931, 0.38843593, 0.0767497569, 0.2506845295, 0.4002837241, 0.1252037436, -0.114565067, -0.0709138066, -0.1673987955, -0.1367989928, 0.4276280999, 0.05767937, 0.1772978604, 0.5206537843, 0.3355653584, -0.137309745, 0.0693762302, 0.2737095952, 0.0025335646, -0.2319674045, 0.1147505641, 0.1692303121, -0.1965925097, -0.3520998359, -0.0222264994, -0.0964830741, -0.1935900003, 0.1442202926, 0.112627551, 0.3153170049, -0.3311653733, 0.1323768049, -0.0580370948, 0.5745278597, 0.0036609191, -0.2796068788, -0.1772621721, -0.1138942167, -0.4115943313, 0.2383754402, -0.2716850638, 0.1170673594, -0.0382581837, 0.0529676788, 0.1996495128, 0.1073944867, 0.0335907005, 0.1837196797, 0.038546592, 0.2120424807, -0.37672171, 0.1256850511, 0.2503381968, 0.0500611253, -0.0582938865, -0.3662098944, 0.3597482443, -0.0180507172, 0.1415776312, 0.0966221318, -0.1487741619, 0.2599134147, 0.3245709538, 0.3582679033, 0.3165489435, 0.441632241, -0.1398795992, 0.0572983064, -0.1917186081, -0.1250799894, -0.2727630734, 0.3156935275, 0.1958549768, 0.2012905478, -0.0572005846, 0.0568532944, -0.2014138103, 0.1232952327, -0.1660511196, 0.1629651189, -0.402703464, 0.1145992801, -0.2315375954, 0.2308536172, 0.1073878407, 0.2329597175, 0.0209326968, -0.1689042896, -0.0306879338, -0.2895039022, 0.2768233716, -0.0220129211, -0.4878141284, 0.1141479835, 0.1392277032, -0.0470860824, -0.2065270543, -0.3506888449, -0.0658203661, 0.2605985105, -0.2605691254, -0.2353524715, -0.0482469052, 0.048419781, -0.1712022871, -0.0836732835, 0.1325589269, 0.3494541049, -0.4399478734, 0.1161878631, -0.2697708607 ]
https://github.com/huggingface/datasets/issues/3786
Bug downloading Virus scan warning page from Google Drive URLs
Once the PR merged into master and until our next `datasets` library release, you can get this fix by installing our library from the GitHub master branch: ```shell pip install git+https://github.com/huggingface/datasets#egg=datasets ``` Then, if you had previously tried to load the data and got the checksum error, you should force the redownload of the data (before the fix, you just downloaded and cached the virus scan warning page, instead of the data file): ```shell load_dataset("...", download_mode="force_redownload") ```
## Describe the bug Recently, some issues were reported with URLs from Google Drive, where we were downloading the Virus scan warning page instead of the data file itself. See: - #3758 - #3773 - #3784
77
Bug downloading Virus scan warning page from Google Drive URLs ## Describe the bug Recently, some issues were reported with URLs from Google Drive, where we were downloading the Virus scan warning page instead of the data file itself. See: - #3758 - #3773 - #3784 Once the PR merged into master and until our next `datasets` library release, you can get this fix by installing our library from the GitHub master branch: ```shell pip install git+https://github.com/huggingface/datasets#egg=datasets ``` Then, if you had previously tried to load the data and got the checksum error, you should force the redownload of the data (before the fix, you just downloaded and cached the virus scan warning page, instead of the data file): ```shell load_dataset("...", download_mode="force_redownload") ```
[ -0.1411157697, 0.0148484437, -0.0489370674, 0.2452072054, 0.2049025148, 0.0718998313, 0.1173322275, 0.2077255547, 0.3714020252, 0.1962259561, -0.0660761669, -0.1588381827, 0.1040249243, 0.3147511184, 0.0350951627, 0.0102435993, -0.0000052156, -0.0964626968, 0.1057200879, 0.1173004806, -0.2640750706, 0.201939851, -0.2606958747, -0.1197837442, 0.1266732216, 0.1938187778, 0.0479766615, 0.4057698548, -0.0455452353, -0.5470005274, 0.097944051, -0.0288395025, 0.166557759, 0.4387004972, -0.000105521, 0.0932278186, 0.4261344373, -0.0705713928, -0.2298375666, -0.0256254785, 0.0284126848, 0.1088640541, -0.1331683695, -0.2744810283, 0.0558060631, -0.1216233224, -0.0469944626, 0.1427109241, -0.1093330681, 0.348790139, 0.266471684, 0.3460305631, 0.26094082, -0.1395502388, 0.4716890752, -0.3454208374, 0.0722027048, 0.4545418322, 0.243739441, 0.2246537656, -0.0612285845, 0.3008182943, -0.0691063851, 0.0059739328, 0.2122240365, 0.134511441, 0.020871466, -0.0127963871, 0.0688559562, 0.0526135042, 0.0994583443, -0.1564389318, -0.0610128753, -0.0715018958, -0.0349402763, -0.1882207245, 0.6494634151, 0.0312936231, 0.0032204208, 0.103351593, -0.3511289954, 0.0179657061, 0.0921677202, -0.0893078074, -0.1395704746, 0.1011245921, -0.1798356473, -0.0679379404, 0.2816275954, -0.0691836476, -0.0933215395, -0.0337704308, -0.2580076754, -0.0028574592, -0.2382015139, -0.0533646941, 0.167780906, 0.0807973817, 0.5323063135, 0.2279169858, -0.1638191342, -0.0986695215, -0.3140089512, 0.0359788425, 0.2839817703, -0.0021046423, -0.2400718182, 0.0674072206, 0.4143233001, 0.4904733598, 0.2008994669, 0.0422600247, 0.2429192513, -0.2140465528, 0.3048651814, 0.2450362742, 0.0269733444, -0.4259998798, -0.2499926388, 0.2488380373, 0.1782770157, -0.107475467, 0.1877805442, 0.5385905504, -0.0415342152, -0.2541695833, 0.1174651235, -0.0703487694, -0.0696786866, -0.0205841102, -0.1755220145, 0.0456698537, -0.1864277422, -0.1048856527, 0.2850902081, -0.3417070508, 0.1433993578, -0.188674137, 0.1331669986, -0.0671032742, -0.2251583934, -0.1644017994, 0.1132125556, 0.5180907249, 0.2539156675, 0.0525327623, 0.1002859846, 0.0111273164, -0.0629472286, 0.10207472, -0.3318585753, -0.0572609641, 0.015587166, 0.2508226335, -0.3642730117, -0.152096644, 0.0001247835, -0.4304555655, -0.096075654, -0.3096970618, -0.2252599299, -0.0796274394, -0.4299356639, -0.1845958084, 0.297334522, 0.4193329811, 0.0436213687, 0.062744081, 0.2072811872, -0.4957465231, -0.0080845626, 0.371086508, 0.0224660188, 0.1027268916, -0.5113989711, 0.1581876129, -0.2095684856, -0.1584491283, -0.4040752053, 0.1070309579, -0.0688273013, -0.0395643637, -0.2004259974, -0.0368008949, 0.0204703566, -0.0742180794, 0.0463343225, 0.1971133351, 0.1581494957, 0.3225030005, -0.3161914647, -0.3007692099, 0.1325164139, 0.1309723556, 0.0280483179, 0.2026626766, 0.3800817728, -0.4896270037, 0.2948117852, -0.1838342249, -0.0126763787, 0.2333613783, 0.414203167, 0.0465597138, 0.2728078663, -0.0874114335, -0.522241652, 0.1474084705, -0.1030316576, -0.1354791522, -0.1629466414, -0.1389003098, -0.4593801796, -0.2228850871, -0.0038257034, -0.020029163, 0.1903981417, 0.093158029, 0.0707143992, 0.1501855105, -0.1012765765, -0.0550323501, -0.3797577322, 0.107688807, -0.0326090008, 0.5057687163, -0.1920591295, -0.1180348098, 0.2849503458, -0.1826708019, 0.1946676075, 0.0164199769, -0.1669662446, 0.3766494691, -0.0092165712, 0.1796723306, 0.2724874318, 0.0673896298, 0.2016797066, -0.2801960409, 0.0162839293, 0.2619101703, 0.2721870244, 0.0945556089, -0.4390365779, 0.1029570624, -0.4102961123, -0.0278459545, 0.0497995354, 0.113503933, 0.4112523198, -0.2343507856, 0.196764797, -0.1767480075, 0.182429105, 0.4177327156, -0.0642836541, -0.1989490986, -0.0279149469, -0.2037505805, 0.2145610303, -0.0589476153, 0.1069569215, 0.0947262719, 0.037545085, -0.0340293832, 0.0089382501, 0.3956561387, 0.1348549575, 0.1172014549, 0.1249494851, 0.2098889649, -0.1070621759, -0.1224379614, 0.0744077191, -0.0889798254, 0.0719647259, 0.4981100261, -0.2086022943, -0.0012238604, -0.4620516598, -0.1181026921, 0.2076951712, 0.2801340818, -0.4730306566, -0.1375681758, 0.0012110993, -0.1913799793, 0.0162047949, 0.3779182136, -0.2940391004, -0.3818686306, -0.0571151786, 0.2835639715, -0.5213343501, -0.1323718578, -0.2573882639, 0.3980228603, 0.13511917, -0.1951169223, -0.0227588452, 0.0310065448, -0.1024029553, 0.1453347951, 0.372097671, 0.1530349553, 0.3674635887, -0.2584261298, 0.1262212694, -0.6510294676, -0.1510397643, 0.237479195, -0.1302606016, 0.2817848325, 0.3016921878, 0.1904075593, -0.0992136225, -0.0805268288, 0.1420812309, -0.3116320372, -0.3183633089, -0.0112689529, 0.0776178986, -0.0566031933, -0.3090425432, -0.2224122584, 0.227286458, -0.2162470669, -0.2205216885, -0.0222610924, 0.1703647226, -0.0300879516, -0.0819710568, 0.140329048, -0.129743889, 0.1374970227, -0.4221393168, -0.4022672176, 0.3589146733, -0.1814650595, -0.5303083658, 0.2876938879, 0.0901422203, -0.2078546435, 0.1261114627, -0.539499402, -0.2977415621, -0.2696745098, -0.1497476995, 0.2215958089, 0.060189832, -0.0434456244, -0.1375573128, -0.1823474914, -0.102750048, -0.2300945073, -0.1189083755, -0.0748334005, 0.3211822212, 0.0206298269, 0.0398424789, 0.2014839053, 0.2179036289, 0.1966949701, 0.0459549241, 0.2559397817, -0.0398168713, 0.4510170519, 0.053782545, -0.0471304618, -0.0243390147, -0.0455749892, -0.1862257123, 0.1669607013, -0.0255235359, -0.0182980858, -0.1495776922, -0.1834650785, -0.2946566045, -0.3404053152, -0.0700677037, 0.4327458441, 0.1422300488, -0.1029612422, 0.0570743382, 0.1778676957, -0.1690631509, 0.2968070805, 0.6332790852, 0.0775249824, -0.0883077011, -0.1509728581, 0.0784367323, -0.2056578547, 0.2124504596, 0.0628824681, 0.1352052838, -0.1289034635, -0.0118265329, -0.0124615645, -0.3588671386, 0.3600719571, -0.2610999048, 0.5256305337, 0.0972554013, 0.004239975, 0.4069626033, -0.0845098719, -0.3706410527, -0.3606718183, 0.1970058084, 0.0644116551, -0.3645833433, 0.0372045003, 0.5046201348, 0.0810077414, -0.1566943526, -0.0549621247, -0.2415646166, -0.4004317522, -0.4603998661, 0.2106784433, 0.0043543894, 0.2115145773, -0.1861935705, 0.0871453956, 0.0717372149, -0.1055620983, -0.0911479294, 0.002953405, 0.4895058274, 0.1801123172, 0.203666091, 0.2243509442, 0.209056288, 0.1859772354, 0.6746335626, -0.1567396224, -0.0669154078, 0.2007803172, -0.2096826732, -0.2504735291, 0.1382340193, -0.0186794773, -0.2130238563, 0.3995837867, 0.0117463255, -0.1774678081, -0.2183834463, 0.0438849218, 0.0157940928, 0.0768919289, 0.0585710481, 0.1971687376, -0.0046730479, -0.2119525522, 0.3472155035, 0.1964256018, -0.1923981607, 0.2352027297, 0.2798668742, 0.7221359015, -0.1972153485, -0.0345857628, 0.16240789, 0.0415727571, -0.0922666416, 0.1780237108, -0.0649201572, -0.3538083136, -0.4867314994, 0.0082227085, -0.1317172199, 0.0158925988, -0.2350539118, -0.1736059338, 0.1482643038, 0.0012608498, 0.2438912839, 0.0019978059, 0.3397519588, -0.1659261137, -0.076367937, 0.0811116844, 0.2004557252, 0.0485855937, 0.3045222759, -0.1372070312, -0.0403977819, 0.1092878878, -0.3457839191, -0.2743804455, 0.2129841298, 0.1613990813, 0.0203449558, -0.1699442416, 0.1169900745, -0.1839271784, 0.1280837059, 0.2990472615, 0.3972427547, -0.2872286737, 0.3825543225, 0.1094460115, 0.1223336458, -0.205418542, -0.0206978451, 0.1849997044, -0.0932361856, -0.2705877423, 0.0376070067, 0.0146144452, -0.5256798267, -0.0571527965, 0.0709356815, -0.474717021, -0.1541278958, 0.1684496254, -0.0227013789, -0.1002937406, -0.1462155581, 0.2050516009, 0.4229165614, 0.0255193226, -0.0061153104, 0.3200678527, -0.3820072412, -0.1421763301, 0.4067691267, 0.0771108046, -0.5126199722, 0.2925986052, 0.0854518265, -0.2275540382, -0.3548018634, -0.2433405817, -0.1566312313, -0.0105826566, 0.1057326645, -0.2651429474, 0.2141999155, -0.0151756518, 0.2686728537, 0.2003821284, 0.0404367782, 0.0911444277, -0.6057267189, 0.0280029383, 0.1936871558, -0.0838535056, 0.3538767099, -0.1282479465, -0.1701146066, 0.0778746307, -0.4736129642, -0.4004106224, 0.3317721188, -0.2937304378, -0.0570331961, -0.0112704299, 0.1152066439, 0.3028488755, -0.1825372875, 0.2027642429, 0.0894755721, -0.0113999844, -0.2156537175, -0.1210336462, 0.0947362334, -0.0223279558, -0.019621674, -0.1017793044, -0.1354628205, -0.0955802724, 0.0121920602, 0.3521155417, 0.1323459893, -0.0819417685, -0.0897289962, 0.1441040486, -0.0931917801, -0.1182840168, 0.1049103886, -0.2683476806, -0.0437610149, -0.1341352463, 0.1113029271, -0.4032272995, 0.0658474639, 0.2912119031, 0.1038065776, 0.0540232733, 0.183840096, 0.3201454282, 0.1221306548, -0.0564551018, 0.2099285871, 0.3517485559, 0.3012852371, -0.5181111097, -0.0652338788, 0.1554157734, 0.311348021, -0.195150733, -0.007609962, -0.1650127918, -0.1187390089, -0.0425254218, 0.0192992967, 0.1042452529, 0.1205699071, 0.1990492046, 0.0788340494, 0.4021191001, 0.0822168812, 0.0382391624, 0.1173294038, -0.1489411145, 0.0489745736, -0.0204593986, -0.2168440968, -0.0301790498, 0.306430608, -0.1024303585, 0.0617918447, -0.198051244, 0.2768365443, -0.1846137494, -0.4560936391, 0.4213912487, 0.2166728824, -0.2089442015, 0.0736324936, 0.1000006571, 0.1254691333, -0.1133785844, 0.0375292748, -0.6716428995, 0.130291298, -0.0917033926, 0.056314338, -0.5165025592, -0.2340953648, -0.199241966, 0.3372021914, 0.2078328431, -0.0659254864, -0.0213266071, 0.1864747256, -0.2952319682, -0.1733257174, -0.1270066351, 0.1673886627, 0.1040093526, -0.2607448399, 0.0392486267, 0.1256701946, 0.0985155478, 0.3060908914, 0.3731752038, 0.2569491267, 0.2171109319, 0.3074985743, -0.1933945268, -0.0906734988, 0.1212829426, -0.1074352041, 0.355700016, -0.0032767046, -0.0529686846, 0.5245556235, 0.2264100909, -0.2104753554, -0.2068690062, -0.0473382324, 0.0388715267, 0.0614363067, 0.1445470899, -0.0416414626, 0.2704109251, -0.1646441668, -0.0657087415, -0.2684196234, -0.1826075017, 0.0637123659, -0.124805063, 0.2561929822, 0.0255009588, 0.1324737668, 0.2520380914, 0.4183415174, 0.4104389548, 0.0597589947, -0.1994852126, -0.2489859015, -0.8160630465, 0.1559521109, -0.0538638271, 0.0617261678, 0.0976325125, 0.1403831095, -0.3428683281, 0.2915278673, 0.4017049372, -0.0178443287, -0.0501567125, 0.013085464, -0.1192879453, -0.1395543963, 0.2443255633, -0.1674357504, -0.0989374667, -0.3725946844, 0.2929660678, -0.0135852648, 0.0992102176, 0.1257376969, -0.0264314599, -0.2085555643, -0.0883722231, 0.4470508099, 0.0258137882, 0.6857690215, -0.2329476327, -0.1956640482, -0.2890565693, -0.1501804441, 0.0884800702, 0.1211821288, 0.1789309978, 0.0787332579, 0.1979049593, -0.2700415254, -0.205155611, 0.4936957657, 0.0187306236, 0.0725539252, -0.414791733, 0.1021585986, 0.0953643396, -0.0509319007, 0.0049803192, -0.0417465717, -0.0108682429, 0.2301418185, -0.2389694303, -0.2488359958, 0.3725232184, -0.0872907862, 0.1604214013, -0.2639774084, 0.2118801773, 0.0246261936, -0.181355074, -0.5975140929, 0.2188996971, 0.0481794439, 0.2108579874, -0.2764147818, -0.000725718, -0.1339950114, -0.036773324, 0.0457136855, 0.3189460039, 0.174303636, -0.3769167662, -0.0287237167, -0.0707807466 ]
https://github.com/huggingface/datasets/issues/3784
Unable to Download CNN-Dailymail Dataset
Glad to help @albertvillanova! Just fine-tuning the PR, will comment once I am able to get it up and running 😀
## Describe the bug I am unable to download the CNN-Dailymail dataset. Upon closer investigation, I realised why this was happening: - The dataset sits in Google Drive, and both the CNN and DM datasets are large. - Google is unable to scan the folder for viruses, **so the link which would originally download the dataset, now downloads the source code of this web page:** ![image](https://user-images.githubusercontent.com/58678541/155658435-c2f497d7-7601-4332-94b1-18a62dd96422.png) - **This leads to the following error**: ```python NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` ## Steps to reproduce the bug ```python import datasets dataset = datasets.load_dataset("cnn_dailymail", "3.0.0", split="train") ``` ## Expected results That the dataset is downloaded and processed just like other datasets. ## Actual results Hit with this error: ```python NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 6.0.1
21
Unable to Download CNN-Dailymail Dataset ## Describe the bug I am unable to download the CNN-Dailymail dataset. Upon closer investigation, I realised why this was happening: - The dataset sits in Google Drive, and both the CNN and DM datasets are large. - Google is unable to scan the folder for viruses, **so the link which would originally download the dataset, now downloads the source code of this web page:** ![image](https://user-images.githubusercontent.com/58678541/155658435-c2f497d7-7601-4332-94b1-18a62dd96422.png) - **This leads to the following error**: ```python NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` ## Steps to reproduce the bug ```python import datasets dataset = datasets.load_dataset("cnn_dailymail", "3.0.0", split="train") ``` ## Expected results That the dataset is downloaded and processed just like other datasets. ## Actual results Hit with this error: ```python NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 6.0.1 Glad to help @albertvillanova! Just fine-tuning the PR, will comment once I am able to get it up and running 😀
[ -0.090477027, 0.0638364255, -0.0650130361, 0.3773009479, 0.2484724224, 0.2562351823, 0.3084614575, 0.1352739632, -0.1773421466, 0.1261962652, -0.0741629973, -0.0172218177, -0.2994994819, 0.0711786002, 0.08124163, -0.0136416834, -0.0586402081, -0.2016190141, -0.0625697374, -0.0753278434, -0.2298905104, 0.3326779306, -0.098430194, -0.2122209221, -0.2932778299, -0.1151948273, -0.0443123989, 0.3939262331, 0.0261743702, -0.2529125214, 0.1532014906, -0.165737763, 0.04282929, 0.5742560029, -0.0001155223, 0.1665756106, 0.4012314379, -0.0365936942, -0.4235313833, -0.3532629609, 0.0544732735, -0.29954651, -0.1491811574, -0.0936209857, 0.1625945866, -0.1720350087, 0.0960836709, -0.093819052, 0.1325805038, 0.490418911, 0.1792714149, 0.1654159725, 0.3055179119, 0.0528564341, -0.077919066, 0.0440540686, -0.1048679054, 0.4444681108, -0.1819912642, 0.1246313304, 0.3145548403, 0.1460490972, -0.1012436301, -0.1373473257, 0.1865630001, 0.2462524772, -0.2106489539, -0.5531375408, 0.2347669899, 0.211176306, 0.2750922441, -0.0664362684, -0.2490776777, -0.1002268717, 0.0276973266, -0.0963871852, 0.3818254471, 0.4672859907, -0.1972784251, 0.2055296004, -0.3776094317, -0.021000728, -0.1466617435, 0.3564009964, -0.5018128157, 0.1231941432, -0.0141031705, -0.0312677212, -0.0378312543, -0.0645848587, 0.3171938658, -0.2504868805, 0.3625266552, 0.2053855509, 0.0854327902, 0.1188592985, 0.1947393864, 0.0450928919, 0.1569623202, 0.017002767, -0.2257587314, -0.3638825119, -0.2622667551, -0.0406681672, 0.0086993817, 0.0814465806, -0.4194470644, 0.5054914355, 0.4082908928, 0.4737449586, 0.1243940294, 0.0113486284, 0.0284148324, -0.0593068711, 0.1691384465, 0.0154333664, 0.4753668308, -0.0427251495, -0.2039242089, 0.2656486332, -0.6570839882, 0.1426458061, 0.0596187189, 0.4377706349, -0.1929102987, -0.1198522672, 0.1381683201, 0.0986518264, 0.1059968621, 0.1601112485, -0.2551657259, 0.0547820814, -0.0594966561, 0.0118203647, 0.3375447989, -0.4126060009, 0.2282357216, -0.0329306871, 0.1461386979, -0.2081280053, -0.2672614753, -0.01907387, -0.1518764496, 0.6118165851, -0.0322081633, 0.2410501987, -0.0365486331, 0.0957053751, -0.1053644642, 0.1498206109, -0.2264560759, -0.389849335, 0.2517231703, 0.1152305156, -0.1898794323, -0.2278751582, 0.2420375645, -0.1530711502, -0.0362589806, 0.1319589913, -0.0242468659, 0.0021867014, -0.2243345082, -0.1904653162, 0.270927459, 0.6138315797, -0.4802912176, 0.0779270455, -0.10058707, -0.1944305003, 0.084431462, 0.2835221887, -0.0792222023, 0.0372478552, -0.2600392103, -0.0331002586, -0.044117596, -0.2471433431, -0.7242792845, -0.0746862143, -0.2546717227, 0.2777865529, 0.0777614489, 0.0800392851, -0.2417780459, 0.0108834049, 0.1555207968, 0.5833933949, -0.0949963704, 0.1298895478, -0.3145846725, -0.3464210331, 0.1158448905, 0.1431975514, 0.5385632515, 0.1687434018, 0.1084669232, -0.2217153162, 0.2780936956, -0.0445026867, -0.1085288003, 0.269467473, 0.2976366282, 0.0391461439, 0.2005545646, 0.0961168185, -0.6436696649, 0.303934902, -0.1140108258, 0.0984056443, -0.4031780362, -0.1572060138, -0.3697715998, -0.0053736097, -0.030265905, -0.1925610602, 0.1016195342, -0.0140692191, 0.1360067427, 0.3177000284, -0.1094525456, 0.4623387456, -0.1335181445, 0.2669613659, -0.2441690117, 0.5705636144, -0.0627600923, 0.0038415603, -0.0156623218, 0.0902171731, 0.2198189348, -0.0868174434, -0.1739582419, 0.1381200552, -0.1786020994, 0.1678798497, -0.0540113039, 0.0366889238, 0.2912441492, -0.1638812423, 0.0788578764, 0.5886734128, 0.0400641933, 0.0716803148, -0.1377363056, 0.1409358829, -0.0241197627, 0.2107275575, 0.1385908872, 0.1734130532, 0.1375497133, -0.1455243826, 0.0954471976, -0.1316063851, 0.286534369, -0.1586403102, 0.507179141, -0.1135144681, -0.3173840642, 0.0460631847, 0.12481042, -0.3097411692, 0.033280313, 0.2216795534, -0.3624483943, 0.0449619852, -0.3102193177, 0.5720511079, 0.3062918484, 0.066728346, 0.2527399659, 0.3009935915, -0.0320718698, -0.1879924089, 0.2807382047, 0.3685665727, 0.0043442245, 0.2799617052, 0.1918402761, 0.222245276, -0.3413106501, -0.2694816291, 0.1097375825, 0.3371436, -0.4928622544, 0.1635286212, -0.2927592695, -0.031522654, -0.1204525232, -0.0734629035, -0.30349347, -0.3129813075, 0.059526559, 0.105468303, -0.0620108023, -0.2651831806, -0.1177813858, 0.207801044, 0.0577155277, -0.1961413175, -0.0583356954, 0.2137273103, -0.1139758974, -0.0158836208, 0.4480232, -0.2086828798, 0.2330069393, -0.1310206801, -0.0408423617, -0.4817329049, -0.2285923064, 0.1088655144, 0.1160312369, 0.3896977305, -0.0467801765, 0.3204432428, 0.129735738, -0.0588007309, -0.0508905463, 0.0090841632, -0.0437268838, 0.0093128094, -0.0182087086, 0.11585287, -0.0977420062, -0.3500139713, -0.4692280591, -0.2498771548, 0.0147431372, -0.1417439729, 0.2058067918, 0.3244113326, -0.0160979796, 0.0776311234, 0.0521106981, 0.1215470061, -0.1364089847, -0.1171064898, 0.5748949051, -0.4278678894, -0.3704157174, 0.0578583702, -0.0054588793, -0.078601189, 0.1196672693, -0.6027238965, -0.2801444829, -0.2482464612, -0.2858740687, -0.0421680808, -0.0970670134, 0.0395005122, -0.2521163225, 0.0349567011, 0.1190467328, -0.0043615256, -0.1979901195, -0.0201929938, 0.0368092135, 0.0139696561, 0.4683300257, 0.0886638388, 0.6405187249, 0.2417096794, -0.0187962484, 0.2735776305, 0.0095156906, 0.2881150842, 0.0764527768, -0.3387580216, -0.1933204234, 0.1256783307, -0.1998572052, 0.2664958835, 0.0919984877, -0.3646587133, -0.0158114918, -0.2173266411, -0.4022381008, -0.2825391293, 0.1542023718, 0.3606721163, 0.1875306368, 0.1658016741, 0.1251785308, 0.0601134375, -0.2955403924, 0.02436723, 0.4585392773, 0.0123042231, 0.1146391481, 0.4078932106, -0.1656859517, -0.4507563412, 0.1487654448, -0.0563929342, 0.1114153266, -0.0255481135, 0.1508796811, 0.1792899519, -0.2112609297, 0.6466527581, -0.0999748185, 0.2422962934, 0.104584001, 0.1128645316, -0.1621629298, -0.2673959434, -0.1496101618, -0.0290337354, 0.2839671373, 0.3247180879, -0.2181113362, -0.0580406003, 0.6162284613, 0.2069796026, -0.0615168288, -0.3152187765, -0.1414213926, -0.4148222208, -0.3501881659, -0.0868058875, 0.0300715119, 0.1932741851, -0.0671937019, -0.2167233974, 0.0359841846, -0.1428857595, 0.0744551048, -0.1786744595, 0.3584484756, 0.1675241739, 0.3269547522, 0.2930724919, -0.0674641132, 0.2507052422, 0.7537366152, -0.0504458845, -0.2220638692, 0.0713210031, 0.0529810712, -0.1338048577, 0.6096718311, -0.2977432609, -0.5636016726, 0.2135930806, 0.3846140802, 0.0233781561, -0.0934541449, 0.3822785914, -0.2268894166, -0.3081303537, -0.224859789, 0.5574492216, 0.1542449743, 0.0095892698, 0.1515609473, 0.1051082984, -0.1186156496, 0.1863572299, -0.0328055508, 0.9560060501, 0.0828019381, 0.0627160296, 0.3389019668, 0.1496430486, 0.2567692399, -0.4140776992, 0.0214021169, -0.1384876519, -0.3659799695, -0.2099337131, -0.0912513137, -0.0483342074, 0.265822053, 0.0602272004, 0.3578374982, -0.3974336684, 0.0690909997, 0.1308544278, 0.231396839, -0.2875453532, -0.0291319322, 0.000322897, 0.0724662542, 0.0448908359, 0.4319832623, -0.1129225418, 0.0081718499, -0.2374289036, -0.196758166, -0.5147979259, 0.110793978, -0.3082692027, 0.2048498392, -0.026904257, -0.1527522206, -0.1762250662, 0.1206948608, 0.26923123, 0.2032949477, -0.2321622819, 0.2537895739, -0.1548783183, -0.0997498557, 0.0282971486, -0.2083879113, 0.3762469292, -0.1232140586, -0.0857033432, -0.2347704321, -0.1150915176, -0.2222442478, -0.1003573611, 0.0519574508, -0.2116200328, 0.0101811979, -0.0863300189, 0.0168801676, 0.197373718, -0.169210434, 0.0666315779, 0.1088843718, 0.1511901468, 0.0461946614, -0.1469307691, -0.3198245764, -0.1407492608, 0.318012327, -0.0728045702, -0.403322041, 0.3812537491, 0.2968906462, -0.2675102949, -0.0544377267, 0.0924350619, 0.0154960118, -0.328749299, 0.2363652587, -0.2333954871, 0.2839825153, -0.3003009558, 0.054548081, 0.1068349183, -0.0182005316, -0.2554396689, -0.7352541685, 0.0849949941, 0.1112864539, 0.1299492568, 0.1856420338, -0.2234580666, -0.0563666523, 0.1874540001, -0.3325065076, -0.2422449887, 0.2867142856, -0.0653805733, -0.3503624797, 0.1676648259, 0.0406036489, 0.6038084626, -0.1019188613, 0.0583840869, 0.0433446988, -0.0742461085, -0.1683141142, -0.2003781199, 0.1791498214, 0.0948449969, -0.0529229864, 0.2318012714, -0.1825953424, -0.2678175569, 0.0208386425, 0.2302995026, 0.303834796, 0.1960766912, -0.3746245801, 0.0090737035, 0.0392394774, -0.101211898, 0.0816843063, -0.0993257239, 0.3662590981, 0.2111935765, 0.2155720294, -0.00235857, 0.0289171003, -0.2378354371, -0.0607770048, -0.2430710346, 0.0950333923, 0.4670009315, -0.1536336243, -0.1012781411, 0.3267835677, 0.1402458698, 0.2991171479, -0.3877438605, 0.0319089219, 0.259427309, 0.1184833199, -0.1434650868, -0.1003897116, 0.0947231278, 0.0763335228, 0.0492192805, 0.2132914215, -0.0191351324, 0.1608456671, -0.2281580269, 0.0684414953, 0.5692639351, 0.0889770538, 0.2619251013, 0.2518413961, -0.0061119748, 0.2563761175, 0.1054600775, -0.0689953342, 0.2244286537, 0.4544814527, -0.1290298998, -0.122386016, -0.1137626246, -0.1090788245, 0.2327761054, -0.4324079156, 0.1644081026, 0.1639451236, -0.1878448427, 0.3281954229, 0.133377865, 0.1842676848, -0.194993183, 0.1369104236, -0.4870762825, 0.4394418001, 0.0885855108, 0.1827349216, 0.0818013027, -0.3010354936, -0.3056960702, 0.341165036, 0.1073429063, -0.4591797292, -0.0882428437, 0.2871400416, -0.3919910192, -0.0554326512, 0.0220194217, 0.0898291916, 0.1120767295, -0.292712152, -0.0165040232, 0.2965188026, -0.157996729, -0.0739019588, 0.3796577454, 0.366795063, 0.3065942228, 0.0803234056, 0.0881910399, 0.0209371801, -0.0540867858, -0.0809931457, 0.0717470869, 0.1263019294, 0.0661839098, 0.1864849925, 0.0726920813, -0.2301526517, 0.0017618206, 0.1257813424, 0.3780391812, -0.1780996472, 0.3739871085, -0.3172806203, 0.1473177671, -0.1887021214, -0.3439886868, -0.4231593013, -0.0534309037, 0.2271395326, -0.0566145964, 0.1255575716, -0.0503295697, 0.0329248011, 0.0696520582, 0.256206274, 0.4562723041, 0.1531018913, -0.3512129188, -0.0156396572, -0.7017962337, 0.1767436117, -0.2578578293, 0.2176027149, 0.0095168101, 0.1206391007, -0.2908040285, 0.2464240044, 0.3438516855, 0.2394747436, -0.159509778, 0.1240510568, -0.190388754, -0.2269148082, 0.0707655028, -0.1405878514, 0.0130552342, -0.3046022952, 0.0465401746, -0.6752450466, -0.0882817358, 0.1163021028, -0.2323223352, -0.2831586301, -0.0444982126, 0.5034738183, 0.0229933262, 0.410149157, 0.0563156046, -0.3711796105, -0.5969367027, 0.0255570579, -0.2754926383, 0.2683542371, -0.026115641, 0.3203512132, -0.0849188939, -0.5528169274, -0.1948511153, 0.1548720449, -0.0346640758, 0.0004746642, -0.2191404253, 0.1323401481, -0.248565793, 0.3193981349, 0.1684225351, 0.1392827332, -0.2164357305, 0.1592977643, -0.2177261263, -0.6011960506, 0.4642739296, -0.2205744088, -0.1555072218, -0.0389280915, 0.2294120491, 0.0673632547, 0.1734087765, -0.2287918925, 0.0479418486, 0.1745072007, -0.0273254663, -0.2989701331, -0.1657424569, 0.1332303286, -0.1885942817, 0.0498368256, 0.3755539358, 0.2134466171, -0.416257143, 0.247302711, -0.1781433076 ]
https://github.com/huggingface/datasets/issues/3778
Not be able to download dataset - "Newsroom"
Hi @Darshan2104, thanks for reporting. Please note that at Hugging Face we do not host the data of this dataset, but just a loading script pointing to the host of the data owners. Apparently the data owners changed their data host server. After googling it, I found their new website at: https://lil.nlp.cornell.edu/newsroom/index.html - Download page: https://lil.nlp.cornell.edu/newsroom/download/index.html I'm fixing the link in our Datasets library.
Hello, I tried to download the **newsroom** dataset but it didn't work out for me. it said me to **download it manually**! For manually, Link is also didn't work! It is sawing some ad or something! If anybody has solved this issue please help me out or if somebody has this dataset please share your google drive link, it would be a great help! Thanks Darshan Tank
64
Not be able to download dataset - "Newsroom" Hello, I tried to download the **newsroom** dataset but it didn't work out for me. it said me to **download it manually**! For manually, Link is also didn't work! It is sawing some ad or something! If anybody has solved this issue please help me out or if somebody has this dataset please share your google drive link, it would be a great help! Thanks Darshan Tank Hi @Darshan2104, thanks for reporting. Please note that at Hugging Face we do not host the data of this dataset, but just a loading script pointing to the host of the data owners. Apparently the data owners changed their data host server. After googling it, I found their new website at: https://lil.nlp.cornell.edu/newsroom/index.html - Download page: https://lil.nlp.cornell.edu/newsroom/download/index.html I'm fixing the link in our Datasets library.
[ -0.2675008774, 0.3221225739, -0.0054875379, 0.2053161711, 0.1594457477, 0.2996753454, 0.0258155148, 0.3109139204, 0.1214273348, -0.0735157728, -0.0882345513, -0.1992523074, -0.1055620387, 0.2716182768, 0.2644298971, -0.192416802, -0.0738764182, -0.0039597843, 0.3711563349, 0.0322976895, -0.223556459, 0.184143126, -0.2225544453, -0.024440499, -0.1433090866, -0.2122728825, -0.1043519527, -0.100704886, -0.2001160234, -0.2502778172, 0.3740208745, 0.1349200457, 0.1478975266, 0.3529644608, -0.0001080287, -0.0810019001, 0.226046592, -0.085066326, -0.3888166845, -0.3082150221, -0.1518841237, -0.1692034602, -0.13962771, -0.2477680445, -0.2177444398, -0.1414771527, 0.1752342433, -0.0733321384, 0.2109328657, 0.4661030173, 0.252340138, 0.1950779706, 0.3654139638, -0.2798071504, 0.1339751184, 0.0832642391, 0.0876239985, 0.3295874298, 0.0307583772, 0.0928989574, 0.3254496455, 0.0568845123, -0.0021515149, 0.0981696546, -0.1656405479, -0.035487514, -0.0527572222, -0.4916574061, 0.3031513095, 0.1887556314, 0.3737314939, -0.1202296466, 0.0108406646, 0.0534062274, 0.2579650581, 0.152944237, 0.138857007, 0.5117778778, -0.1628192365, 0.1885866225, -0.4082058966, -0.2983430326, -0.204705134, 0.3400618434, -0.1082670912, 0.1917596757, -0.2550646961, 0.2336901277, 0.1912588179, 0.1265423298, 0.0560291372, -0.0133915143, -0.2932965755, 0.0759384558, -0.0349323861, -0.0515172184, -0.1390096396, 0.4175419807, 0.2816633582, -0.0129157715, -0.4827949703, -0.1988610476, -0.0480276011, -0.0559136271, 0.1929906458, 0.0258590467, 0.0632655472, 0.2449608594, 0.3160052001, 0.3875325322, -0.0424224176, -0.0717141777, -0.0816184357, -0.1962837875, -0.2995402813, -0.2143014669, 0.2529133558, -0.3735089004, -0.3413819969, 0.1827796549, 0.0095540984, 0.1210277826, -0.0076264213, 0.1538822949, 0.211274147, 0.009708805, 0.1942095608, 0.0417561829, 0.1261760443, -0.3743090928, -0.0941717029, -0.0008856194, -0.2028099895, -0.01051859, 0.2263927609, -0.167408362, 0.2545631826, 0.1190230399, 0.0104290415, -0.1176539063, -0.1752433926, -0.101864852, -0.071366258, 0.2941140234, 0.1685408354, 0.375444293, -0.0614589639, -0.3697323799, -0.0495161824, 0.1469880939, -0.2383282185, -0.2084787637, -0.2601293027, 0.1753524691, -0.3115731776, -0.0367950834, -0.1764307171, 0.2182429284, -0.1693562418, 0.1918987483, -0.0008442283, 0.1052793041, 0.0387385078, -0.0450995564, 0.2566152215, 0.5027393103, -0.5429786444, -0.0026733342, -0.1395546347, -0.2276098579, 0.0402766131, 0.210997954, -0.2787790895, 0.1349640936, -0.3671520948, -0.1432965547, 0.5410513878, -0.1919691712, -0.7831019163, 0.1556900442, -0.2381462902, -0.2968295515, -0.1245847717, 0.1287557036, 0.0594462864, 0.1293927729, -0.3315303326, 0.4958167672, 0.1205864251, -0.0548400059, -0.281896323, -0.0199821834, 0.0227239504, 0.3163265288, 0.1345934868, 0.1323399097, 0.1280531138, 0.039335575, 0.2706602812, 0.1637553573, 0.2925258577, 0.3316908181, 0.351957798, 0.1669936031, 0.0638930202, -0.1264318973, -0.3052882254, 0.0652484223, 0.0645300522, 0.0036756557, -0.0559924394, -0.1078099608, -0.6091347337, -0.0753095895, -0.2668989301, -0.2143021226, 0.1219645143, 0.0727354586, 0.2372115403, 0.279463619, -0.1052530631, 0.1721556038, -0.1146163121, -0.0047820313, -0.1825928986, 0.3883748949, -0.1526742131, 0.0806678012, 0.0560809299, -0.1768414974, 0.2523118854, 0.0801873356, -0.1371445656, 0.1969297379, -0.1244661584, 0.101331383, 0.4563261867, -0.0809356198, 0.1727069318, -0.5965454578, 0.3060430586, 0.1133918539, 0.0121509982, 0.1026805714, -0.0871266872, 0.0346091874, -0.1303885877, -0.0115680061, -0.2377209067, 0.3756663799, 0.3626181781, -0.2186975777, 0.3080261946, 0.0325948298, 0.2872390151, 0.146246627, 0.2500495017, -0.0662019253, -0.1653923392, 0.215621382, 0.3702353239, -0.010631646, -0.0865170285, 0.2145853341, -0.4376334846, -0.0131276706, -0.1728681177, 0.4402175546, 0.1750275493, 0.0950862393, 0.0056582433, 0.1965542138, 0.2561413348, -0.2743583322, 0.2170639485, -0.1651661545, 0.1283905804, 0.0799949989, 0.0638696626, 0.0296214931, -0.2397203594, 0.1111710295, 0.2891845703, 0.2821584642, -0.1470344216, -0.1146271378, -0.0545984283, -0.574527204, -0.1614572555, 0.262096107, -0.2643226087, -0.3387516141, -0.1577902287, 0.0829985514, 0.1675220281, -0.1195577681, -0.0729657561, 0.3826090991, 0.0108729871, 0.0563616045, -0.1629780829, -0.2033116221, -0.2791090012, 0.1436116993, 0.2377176136, 0.1657491624, 0.2411340326, -0.2983349264, 0.0134612573, -0.8658277988, -0.1199951395, 0.0553306453, 0.0472047515, 0.7588219047, 0.0161844175, 0.5726415515, -0.3704838157, -0.1018379182, 0.0819096267, -0.1701074988, 0.0124751609, -0.0339835323, -0.0954747275, -0.1059750915, 0.093949005, -0.206111744, -0.4901123047, -0.0944384858, 0.2325197905, -0.1120441556, -0.0076309131, 0.0149952807, -0.2653832734, -0.0740809739, 0.0305234641, -0.2437022477, -0.2850531638, -0.3150363863, 0.4239919782, -0.4159078002, -0.6227354407, 0.2858626544, 0.2171751559, 0.0970280617, -0.0252537243, -0.6097105742, 0.1715102643, -0.2230417877, 0.0767573267, 0.2796697319, -0.0535334311, 0.0799800977, -0.3987588584, 0.0386280604, -0.0231110379, -0.1213341206, -0.0269808322, 0.1628943533, 0.4298495054, 0.1660513729, 0.3656001985, 0.0631686971, 0.5530520678, 0.3471226692, -0.0891401619, 0.4183835089, -0.1566710472, 0.2459657788, 0.0387533121, -0.43630445, 0.231779322, 0.0810429901, -0.0956091583, 0.0419311486, -0.0698220804, -0.3349307775, -0.3081118762, -0.0461363047, -0.4378980696, -0.23639974, -0.1080602333, 0.1233858913, 0.2343935072, 0.2617853582, -0.0807994902, 0.3424317837, -0.5714327693, 0.2231441438, 0.5259581208, 0.0596272647, 0.0712784752, -0.1998005062, 0.1384141296, -0.4004371166, 0.1968470961, -0.3820814192, 0.2250320017, -0.2817949951, 0.3291257024, 0.2946249545, 0.0817143247, 0.5841174126, -0.2961166501, 0.325836271, 0.0449077673, 0.2206616849, -0.1762174219, -0.1159637943, -0.2781825364, 0.2133808434, 0.1006914303, 0.1777447462, -0.2446334809, 0.0326531306, 0.3838456571, 0.016795963, -0.2010999173, -0.048119612, -0.0671883672, -0.2353899926, -0.189034462, -0.172789216, -0.0885683596, 0.098865144, -0.1313997954, 0.0615956411, 0.0532893203, 0.1837678552, -0.0337316878, -0.0556225032, 0.2792731822, 0.2630010843, 0.0697762668, 0.407294482, 0.1689193249, 0.1222217828, 0.4179035127, -0.0144354096, -0.1559521556, 0.2301178277, -0.0693894476, 0.2814998627, 0.3343865871, -0.0787225589, -0.0697350577, 0.0879166573, 0.1886389554, -0.1235441044, 0.0310332086, 0.2629713118, -0.0341381021, -0.2447076291, -0.3464456201, 0.3598633111, 0.0554403514, -0.0785714686, -0.025737606, 0.3236497641, -0.0012222722, 0.0310671162, -0.0947646797, 1.0388908386, -0.1229556426, -0.150800541, 0.0303710196, -0.1772451848, 0.5442026258, -0.1787725538, 0.0677607805, -0.2207099497, -0.0264903605, -0.1570300907, -0.0983619094, -0.0985034183, 0.3003501594, -0.109011814, 0.2900615931, -0.0921091735, 0.107790418, 0.0409315079, 0.4601957798, -0.1949326545, 0.1617178917, -0.2572261095, 0.1751431078, -0.1096395031, 0.4918678999, -0.2047035247, -0.1541520059, -0.0884496868, 0.1757266074, -0.5897833109, 0.193307519, -0.2618506849, 0.1019115299, -0.1810859591, -0.3991495073, 0.3113561273, 0.2354656607, 0.2973726094, 0.2501466572, -0.4442136884, 0.3171726465, -0.1977275461, -0.4087282419, 0.1200893372, -0.0003956402, 0.0768071562, -0.0832758844, -0.525334537, 0.1397748739, 0.0834813863, -0.213964656, -0.2531511188, -0.1036705971, -0.0718877614, -0.2622230053, -0.1359327883, -0.0849030912, -0.0932027996, -0.0582510233, 0.1549401432, -0.1201098338, 0.0815895498, -0.2366608232, 0.3023443818, -0.2681061924, -0.0513937026, 0.3349333405, -0.1014003977, 0.0653936341, 0.3313958347, 0.2188071609, -0.2111531049, -0.2970454693, 0.1532321423, 0.2075002044, -0.3984793127, 0.0336063579, -0.0908299014, 0.4323137999, 0.1490472704, -0.0731339008, 0.2180035263, -0.0218945425, 0.05289305, -0.7133674622, 0.001408842, -0.0033069002, -0.2419970483, 0.0114665572, -0.0589271933, -0.1813296676, 0.4002514184, -0.0098891314, -0.2972118855, 0.3161792755, -0.3663545847, 0.0154236006, 0.0648790821, 0.0200941581, 0.0968395621, -0.0730371773, 0.0499288924, -0.0417321175, -0.2294579297, -0.1932346225, 0.0962481797, 0.1418786943, 0.045356214, -0.2335980237, -0.1084096581, -0.2909453213, -0.3157990575, 0.3211961687, 0.0564567819, -0.0351316966, 0.1372693628, -0.0042012986, 0.1555394083, -0.1689265072, -0.1925755292, 0.0788619518, 0.043653544, 0.3275665939, 0.0206021145, 0.2482891232, 0.0939449146, 0.0284628328, -0.4447765052, 0.0224191751, 0.1318961978, 0.1253512651, 0.3597491384, -0.2291786969, 0.1377832144, 0.288120985, 0.2341295332, 0.2424732596, -0.4489676654, 0.0414452702, 0.2642163932, 0.1846602112, -0.4048037231, 0.0292327851, 0.3209666014, 0.0699540675, -0.1868641078, -0.08621604, 0.3108898401, 0.0584867373, -0.1617258191, 0.0944496989, 0.6713656187, -0.0454407074, 0.1576928198, 0.306306988, 0.1453544497, -0.0234935544, 0.1530747414, 0.1639964283, -0.0993993878, 0.378562659, -0.2077018619, 0.0478611067, 0.1309347898, 0.2721210122, 0.4997044206, -0.1820983887, -0.1250889152, 0.3098986149, -0.1891410649, -0.0483791716, -0.0979384109, 0.2445856035, -0.0873950422, -0.1282426715, -0.297051698, 0.3990962505, -0.027645221, 0.2933769226, -0.1470600069, -0.3312382102, -0.3560138643, 0.2173664868, 0.0057067927, -0.3637287021, 0.1730472147, 0.2221101373, -0.2903718352, -0.3758974671, 0.2717626691, 0.2468734831, 0.2586758733, -0.3122916818, 0.2331604958, -0.210003078, 0.0651058704, 0.2328590453, 0.718496263, 0.0962078422, 0.146638006, 0.0774167925, 0.2586398721, 0.1089194492, -0.2270309329, 0.0086408323, 0.2832456529, 0.231676653, -0.1825622618, 0.111753583, 0.1493119597, -0.0446726643, -0.2031932026, -0.0102617806, 0.2250978053, -0.1582843065, -0.1618108749, -0.2841043174, 0.0094078714, -0.2408182174, -0.3876636028, -0.0976538658, -0.2084440589, 0.2611673176, -0.145431444, 0.3344951868, -0.2046400458, 0.0693456829, -0.0335853323, 0.4867376387, 0.4672751129, 0.1482027471, -0.2712726891, -0.7238602638, -0.7304805517, -0.030604437, 0.1221124455, -0.0805824175, 0.0292533189, -0.0701805651, -0.2601784766, 0.135718435, 0.0930672735, 0.6030322313, -0.1910131425, 0.0731157437, -0.352309972, -0.1156610921, 0.0455818698, 0.1946841329, -0.1949849129, -0.0016004781, 0.3334589601, -0.0497950092, -0.0726054236, -0.0725880042, 0.00782998, 0.0826450884, 0.3256474435, 0.2802436948, 0.1096607298, 0.3320543468, -0.0115967141, -0.1031591669, -0.2739808261, -0.1783222556, -0.0529678911, 0.1868224293, -0.0178712904, -0.0392575115, 0.0931930542, -0.1643943787, -0.1048786119, -0.0710976347, -0.0641451254, 0.1192929894, -0.4238281548, -0.4452844858, -0.2335627377, 0.1982832402, 0.3204777539, 0.1041909084, -0.0274331346, -0.1928422153, -0.1562886238, -0.1276551485, 0.3439809084, -0.2488922328, 0.0071870694, -0.0684122741, 0.1360164434, -0.0052084057, -0.0893965438, -0.370451659, -0.0363555513, 0.3867967725, -0.0706854537, -0.1178379953, 0.1585689038, 0.0007186222, 0.0654740185, 0.0841128454, 0.448150456, 0.2013822198, -0.2997837961, 0.084660925, -0.0813418329 ]
https://github.com/huggingface/datasets/issues/3776
Allow download only some files from the Wikipedia dataset
Hi @jvanz, thank you for your proposal. In fact, we are aware that it is very common the problem you mention. Because of that, we are currently working in implementing a new version of wikipedia on the Hub, with all data preprocessed (no need to use Apache Beam), from where you will be able to use `data_files` to load only a specific subset of the data files. See: - #3401
**Is your feature request related to a problem? Please describe.** The Wikipedia dataset can be really big. This is a problem if you want to use it locally in a laptop with the Apache Beam `DirectRunner`. Even if your laptop have a considerable amount of memory (e.g. 32gb). **Describe the solution you'd like** I would like to use the `data_files` argument in the `load_dataset` function to define which file in the wikipedia dataset I would like to download. Thus, I can work with the dataset in a smaller machine using the Apache Beam `DirectRunner`. **Describe alternatives you've considered** I've tried to use the `simple` Wikipedia dataset. But it's in English and I would like to use Portuguese texts in my model.
70
Allow download only some files from the Wikipedia dataset **Is your feature request related to a problem? Please describe.** The Wikipedia dataset can be really big. This is a problem if you want to use it locally in a laptop with the Apache Beam `DirectRunner`. Even if your laptop have a considerable amount of memory (e.g. 32gb). **Describe the solution you'd like** I would like to use the `data_files` argument in the `load_dataset` function to define which file in the wikipedia dataset I would like to download. Thus, I can work with the dataset in a smaller machine using the Apache Beam `DirectRunner`. **Describe alternatives you've considered** I've tried to use the `simple` Wikipedia dataset. But it's in English and I would like to use Portuguese texts in my model. Hi @jvanz, thank you for your proposal. In fact, we are aware that it is very common the problem you mention. Because of that, we are currently working in implementing a new version of wikipedia on the Hub, with all data preprocessed (no need to use Apache Beam), from where you will be able to use `data_files` to load only a specific subset of the data files. See: - #3401
[ -0.2116208971, 0.0504853055, -0.1068822518, 0.3503215313, -0.0453148112, 0.1091505811, 0.023389224, 0.6189420223, 0.4418042302, 0.1188722625, -0.095998548, 0.1892415732, 0.0542925335, -0.0541350581, 0.0770271868, -0.1883919984, -0.0352482721, 0.0193045847, -0.0228975657, -0.1851138026, -0.1854401827, -0.2156930566, 0.006524032, -0.1704159677, -0.1171677262, 0.1314879358, 0.3633207083, -0.0810128972, -0.3899146914, -0.2418656647, 0.2489817888, 0.5197979808, 0.2918392718, -0.1929275095, -0.0001140121, 0.06289915, 0.4904629886, -0.0892870575, -0.4281187057, -0.1749890149, -0.4245407283, -0.15897201, 0.2502559125, -0.4168819785, -0.0775786564, -0.030976383, 0.3113532066, -0.0415878445, 0.2317313999, 0.1332032233, 0.1737135798, -0.0767175928, -0.1207986698, -0.1191847175, 0.5432422161, 0.3336791992, 0.0132112857, 0.1994791627, 0.1310190558, 0.1193760931, -0.2090822458, 0.2320473343, -0.1320143193, 0.2207508683, 0.5662448406, -0.1757842749, -0.1456723362, -0.6676283479, 0.267989099, 0.5541574955, 0.8907579184, -0.1665203571, 0.0856279358, -0.1407140493, 0.0530888252, 0.2466865927, 0.1819891781, 0.2930391729, -0.5127189159, 0.172497347, 0.1971195936, -0.5737570524, -0.4416338503, 0.4605063498, 0.0183109716, 0.2328476757, 0.2128104568, 0.2006217539, 0.1656302065, 0.1365750432, 0.0555453487, -0.263700068, 0.0951281637, 0.2923112214, -0.2129572034, -0.1310436428, -0.1052688733, 0.5061230659, 0.5263725519, -0.0269625597, -0.0980541259, 0.2110372037, -0.0117547587, 0.0614863336, 0.3528498709, -0.1358152926, 0.1238398552, -0.0626727343, 0.555292964, 0.2505523264, -0.0440926142, 0.0560244471, 0.055403959, -0.0751800463, -0.4171801805, 0.0331661366, 0.0259266738, -0.1655233949, 0.2132964432, -0.1350292861, -0.0449640378, -0.2980939746, 0.0941569582, 0.2406903803, 0.0794712082, 0.1957300603, 0.038874425, 0.2598766983, -0.0307897013, -0.3327456713, 0.0517437942, 0.1659838706, -0.1153549403, 0.1887708753, 0.3907671571, -0.0713622421, 0.1029383764, 0.0599452592, 0.0296495669, 0.0320508629, 0.1061501205, -0.3338147104, 0.0620922633, 0.1286133379, 0.2254043072, 0.4130613506, -0.0370056629, -0.1512678564, -0.2294167131, 0.2630294859, -0.2006543577, -0.3334447443, 0.0820354074, 0.0903339311, -0.2004568726, 0.2069788128, -0.3420804441, 0.3391782343, -0.3896377981, -0.0218725912, 0.0070244409, 0.3043553829, -0.2863191962, -0.2007825971, 0.200988993, 0.6549607515, -0.1660936028, 0.1114129275, -0.1804353893, -0.080806978, -0.1366677433, 0.1084290072, -0.3754042983, 0.517434597, 0.0555487797, 0.1608895659, 0.7192615867, -0.3706146181, -0.3776336312, 0.2904243469, 0.0895636007, -0.0233778879, 0.0851237848, 0.2675457895, 0.3725177646, 0.1024745852, -0.1896650493, 0.6713274121, 0.2477035522, -0.0071840822, -0.1310746819, -0.3343345821, 0.1807740927, 0.2855480313, 0.1929123998, 0.1826007515, 0.3285028338, 0.5336191058, 0.3887271881, -0.0281956121, 0.22851713, 0.2018266916, -0.1527903974, -0.0691320598, 0.077519238, -0.0997390449, -0.2437296659, 0.1898060739, -0.0671162829, -0.0904041156, 0.1311574131, -0.1413553953, -0.344561398, -0.2504775524, -0.0435925834, 0.067053102, 0.050843887, -0.1620669067, -0.0481737517, 0.1695379615, 0.0291838571, 0.1339647174, -0.1614369452, 0.0277557839, -0.2341882139, 0.2007945031, 0.0635201931, 0.1984750032, -0.0305035468, -0.2578175962, 0.3099226952, 0.084474355, 0.0073849247, 0.0222127549, 0.0526918396, 0.0987326503, 0.2004103214, 0.1602331549, 0.289011389, -0.1297093332, 0.1808824986, 0.277274102, 0.2894253433, -0.103798449, -0.3884465098, 0.0292102396, -0.1268735081, 0.1650168002, -0.0520626232, -0.0365224481, 0.2073426247, -0.233470276, 0.0017406758, -0.2526363432, 0.1248516068, 0.5354850292, -0.0250611976, -0.1544146687, -0.114405483, -0.2440280616, 0.2572955191, 0.1261372268, 0.1479650438, 0.2742399275, -0.3448554277, -0.0217808019, 0.2416454405, 0.0129103074, 0.078840442, 0.2044073343, 0.1494238228, -0.02374807, 0.2300546467, -0.1290900558, 0.2310828269, 0.1565220207, -0.0114072291, 0.1115122139, -0.092131339, -0.0657916069, -0.1689975262, -0.0365881622, 0.0605357923, 0.0948689729, -0.0173482187, -0.2333535701, -0.3268770278, -0.3921068907, 0.0206145868, 0.1683358252, -0.379067421, -0.0350040868, 0.2332971245, 0.3751612306, -0.0647325516, -0.0685790032, 0.170776695, 0.410697788, -0.0585193299, -0.1804716289, -0.2354153544, -0.1836932153, -0.1284870505, -0.0126729859, 0.2239978462, 0.4487152994, 0.1898306161, 0.0701053813, 0.0173748583, -0.4802159071, 0.0179060567, 0.1081974059, 0.0855038092, 0.1888718605, -0.097905688, 0.6192888021, -0.0174561553, 0.0408681296, -0.0510400198, 0.1184471697, 0.1597536951, -0.0780302957, -0.0012042851, 0.3006489873, 0.0839737877, -0.2551121712, -0.2253818661, -0.4765341878, 0.2202328146, 0.2563585043, 0.2234122753, -0.0178084075, 0.0939453542, -0.1580619663, 0.0441973098, 0.0977529809, -0.1005190536, -0.0909361839, 0.5422565937, -0.1384037435, -0.3461194336, 0.0608719476, 0.0524005145, -0.1623264253, 0.3129086792, -0.3695663512, -0.2132475972, 0.1156974435, 0.2071401477, -0.1416767538, 0.0721018091, 0.2025796026, -0.1958232224, 0.0806485936, -0.096107237, 0.0528157204, -0.0113007687, -0.038968537, -0.0042048045, 0.3393105865, 0.0345128551, 0.1029451042, 0.7771215439, 0.1137102023, 0.2957881689, 0.4677336514, 0.202749759, 0.0811139196, -0.0678539127, -0.0904091671, 0.0565936156, -0.1441849768, -0.0023074925, 0.3575021327, -0.0162607245, -0.3183586895, -0.3125768006, -0.4753355086, -0.1568850279, -0.4091494083, 0.3141775429, 0.1656646281, 0.0408377685, 0.0344040468, 0.0127156964, -0.2207582146, -0.3928859234, 0.3205116987, 0.3104884326, 0.1379048675, 0.1282608062, 0.1276327074, -0.1331009269, -0.4468808472, 0.1315613538, -0.0369588844, -0.0920524597, -0.0429924577, -0.0867904946, 0.2337062955, 0.3317549527, 0.6123625636, -0.3886455894, 0.1607008576, -0.047275342, -0.0117036812, -0.4903265834, 0.1418335736, -0.0307324417, 0.1530684382, -0.0483140685, 0.154549554, -0.3915970027, -0.1755850017, -0.1687765568, 0.3710336387, -0.0696075559, -0.1888507009, 0.2239404172, 0.0994347855, -0.6034556627, -0.0608383007, 0.0924327001, 0.140047133, 0.0653233454, -0.010716483, -0.0116596436, 0.2966732979, -0.0695493147, 0.1860401928, 0.109350875, 0.2609160841, -0.2406342328, 0.2015172094, 0.1188440695, -0.2017799765, 0.179651618, 0.2687845826, -0.1941086501, -0.2281580269, -0.2110600471, -0.4192608297, 0.3868054748, -0.0018852507, 0.2700745463, 0.1077892631, -0.2608309388, -0.2852628827, 0.229525581, -0.2612230778, -0.4707930982, -0.297229737, -0.3908726275, 0.6527301669, -0.0618573464, -0.3524008691, 0.2705160975, -0.0987795964, -0.4929811954, 0.1788920909, 0.3397781849, 1.0366460085, -0.0211228393, 0.1760458797, -0.3399613798, 0.0363927707, 0.5400574803, -0.7603387833, 0.0674672499, -0.2440472543, -0.0827380866, -0.1606549919, 0.1210371032, -0.0133254975, 0.1932718307, -0.0931337923, 0.1475324184, 0.1516723186, 0.2710964382, -0.150723055, 0.5313638449, -0.1096717939, -0.400658071, -0.0458734147, 0.0190816838, -0.1695273966, 0.3114574254, -0.0965513885, -0.2113260329, -0.0076651517, -0.2923142016, -0.2102244794, -0.1034044474, -0.3116821647, 0.0548589751, -0.4385227263, -0.3098756969, 0.20884718, 0.3520472944, 0.0947807357, 0.3106641173, -0.4628713131, 0.1130960733, -0.2038043588, -0.1680027694, -0.3406746686, -0.1055258214, 0.1538706124, -0.2514026463, -0.29374367, 0.1329590082, -0.0034497064, -0.3499333262, -0.2050037384, 0.1317816228, 0.368997097, -0.0212850925, -0.3587402105, -0.0180479679, -0.0935976654, -0.0286891386, 0.1139735281, -0.0307148676, -0.0526898876, -0.0580923147, 0.1216518804, -0.2154028416, -0.0589268841, 0.5909817815, 0.188276127, -0.0975491554, 0.1975698769, -0.0335268565, -0.3634522855, -0.263769418, 0.0273691639, -0.1579920202, -0.4390228689, -0.1406306326, -0.047087159, 0.1367830634, -0.4689823389, 0.0528699979, 0.0222564619, 0.0214131009, 0.0034070634, -0.4233850837, -0.0732548907, 0.2135079801, -0.2167666405, 0.0526026115, 0.0609976798, -0.481842041, 0.2199299634, 0.0452353023, -0.2398948073, -0.0502529889, -0.081957154, 0.162649855, 0.1838821918, 0.2410193384, -0.1423621923, -0.1075809374, -0.0413631499, -0.0735326484, -0.1634895504, -0.1628382951, -0.1946417242, 0.1787817627, 0.0324052759, -0.0186858736, -0.0090246527, -0.5287408233, 0.063623324, -0.1510009319, 0.2712402046, -0.1209175289, -0.0014149866, 0.0314560868, 0.4686994553, 0.1290868223, -0.6787346601, 0.275950104, -0.0273592565, 0.2738490999, 0.0843433812, 0.1810975522, 0.2103297114, -0.083060123, -0.4661603272, 0.0179074891, 0.2333131284, 0.2115152031, 0.1168991923, 0.2965064943, 0.0189619381, 0.4330385029, -0.1369820833, 0.1379763484, -0.1975824088, 0.0530952327, 0.2877111137, 0.1658682525, -0.111840643, -0.2269411683, 0.4312656522, -0.3291580081, -0.0385048613, 0.1186280847, 0.2857082188, -0.0408890694, 0.1258763671, -0.0529047437, -0.0408673398, 0.0808356777, 0.0665028021, 0.3565038741, 0.2094067037, -0.1228398383, -0.2529878616, 0.3616979718, 0.1452442706, 0.4388345778, -0.1428343356, 0.1710850894, 0.235635072, -0.0590537935, 0.0642284155, -0.2619996667, 0.2332763374, 0.1156976148, -0.0531823523, 0.076603353, -0.1345628947, -0.1843952388, 0.3949668705, 0.0720480829, -0.2106443048, 0.0017318901, 0.1353382766, -0.0206003357, -0.4199514985, -0.3248770833, -0.1566885859, 0.1258955747, -0.0287632272, -0.4091587067, -0.0030905993, 0.3687647283, -0.2090071589, -0.0460746251, 0.4849671125, -0.0150324348, 0.0560545251, -0.2170793861, -0.1533581913, -0.3485830426, 0.0623377934, 0.2483921349, 0.0481846295, -0.3020806611, 0.2990164161, -0.1946191341, -0.0698752403, 0.113488622, 0.0139138158, -0.2590377331, -0.1301397532, 0.2455682158, 0.2694341242, 0.3515145481, 0.1038205549, -0.0903217047, -0.0030899022, 0.0277519599, -0.001047688, -0.3217407465, -0.3135788739, 0.469330281, -0.0102397529, 0.0036617874, -0.2208192647, -0.1703948379, 0.3280672431, 0.1660151631, 0.0680456534, 0.09286993, -0.2183594406, 0.035944622, -0.3491888046, 0.4546065629, -0.1252848506, 0.0147646274, -0.3498418033, -0.110055387, -0.12177293, 0.0564042777, -0.1946400553, -0.1623380482, 0.3087638915, 0.1892117262, -0.0013151116, 0.3446996212, -0.1150959879, -0.4295372665, -0.0635615364, 0.5285249352, -0.0261912011, -0.1885901839, 0.000723183, 0.2157171518, -0.1455164999, -0.2593586445, 0.2748329341, 0.0741112083, -0.0816553682, -0.1211403608, -0.3812994361, 0.3733078241, 0.0206611417, 0.5597362518, -0.1468362063, 0.1735136062, -0.2051044554, 0.184972465, -0.1872881204, 0.1725457311, -0.2574357092, 0.037436951, 0.0514094383, 0.2021776289, -0.101104781, 0.0352207571, -0.3204889596, 0.3990077078, -0.2255600095, 0.3785736859, -0.0127859553, -0.4296150804, 0.0024815656, 0.1746928692, -0.1121596172, 0.1417052895, -0.2454553097, -0.1331757009, -0.3543314338, -0.141911447, 0.2735871971, -0.4874450564, -0.3544399142, -0.0544952564, 0.2615505755, -0.1481862962, 0.1604639143, -0.3361683786, 0.0594590604, 0.2911532819, -0.086810194, -0.0867726132, 0.0997517109, 0.1066738293, 0.0001156853, -0.2047980428, -0.258547008, 0.1435575336, -0.251724869, -0.4051293433, -0.5547288656 ]
https://github.com/huggingface/datasets/issues/3773
Checksum mismatch for the reddit_tifu dataset
@albertvillanova Thank you for the fast response! However I am still getting the same error: Downloading: 2.23kB [00:00, ?B/s] Traceback (most recent call last): File "C:\Users\Anna\PycharmProjects\summarization\main.py", line 17, in <module> dataset = load_dataset('reddit_tifu', 'long') File "C:\Users\Anna\Desktop\summarization\summarization_env\lib\site-packages\datasets\load.py", line 1702, in load_dataset builder_instance.download_and_prepare( File "C:\Users\Anna\Desktop\summarization\summarization_env\lib\site-packages\datasets\builder.py", line 594, in download_and_prepare self._download_and_prepare( File "C:\Users\Anna\Desktop\summarization\summarization_env\lib\site-packages\datasets\builder.py", line 665, in _download_and_prepare verify_checksums( File "C:\Users\Anna\Desktop\summarization\summarization_env\lib\site-packages\datasets\utils\info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1ffWfITKFMJeqjT8loC8aiCLRNJpc_XnF'] I have cleaned the cache/huggingface/datasets & cache/huggingface/modules files and also tried on another machine with a fresh installation of trasnformers & datasets. The reddit_tifu.py that gets downloaded still has the previous url on line 51, _URL = "https://drive.google.com/uc?export=download&id=1ffWfITKFMJeqjT8loC8aiCLRNJpc_XnF"
## Describe the bug A checksum occurs when downloading the reddit_tifu data (both long & short). ## Steps to reproduce the bug reddit_tifu_dataset = load_dataset('reddit_tifu', 'long') ## Expected results The expected result is for the dataset to be downloaded and cached locally. ## Actual results File "/.../lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1ffWfITKFMJeqjT8loC8aiCLRNJpc_XnF'] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.13.0-30-generic-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 7.0.0
112
Checksum mismatch for the reddit_tifu dataset ## Describe the bug A checksum occurs when downloading the reddit_tifu data (both long & short). ## Steps to reproduce the bug reddit_tifu_dataset = load_dataset('reddit_tifu', 'long') ## Expected results The expected result is for the dataset to be downloaded and cached locally. ## Actual results File "/.../lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1ffWfITKFMJeqjT8loC8aiCLRNJpc_XnF'] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.13.0-30-generic-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 7.0.0 @albertvillanova Thank you for the fast response! However I am still getting the same error: Downloading: 2.23kB [00:00, ?B/s] Traceback (most recent call last): File "C:\Users\Anna\PycharmProjects\summarization\main.py", line 17, in <module> dataset = load_dataset('reddit_tifu', 'long') File "C:\Users\Anna\Desktop\summarization\summarization_env\lib\site-packages\datasets\load.py", line 1702, in load_dataset builder_instance.download_and_prepare( File "C:\Users\Anna\Desktop\summarization\summarization_env\lib\site-packages\datasets\builder.py", line 594, in download_and_prepare self._download_and_prepare( File "C:\Users\Anna\Desktop\summarization\summarization_env\lib\site-packages\datasets\builder.py", line 665, in _download_and_prepare verify_checksums( File "C:\Users\Anna\Desktop\summarization\summarization_env\lib\site-packages\datasets\utils\info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1ffWfITKFMJeqjT8loC8aiCLRNJpc_XnF'] I have cleaned the cache/huggingface/datasets & cache/huggingface/modules files and also tried on another machine with a fresh installation of trasnformers & datasets. The reddit_tifu.py that gets downloaded still has the previous url on line 51, _URL = "https://drive.google.com/uc?export=download&id=1ffWfITKFMJeqjT8loC8aiCLRNJpc_XnF"
[ -0.2612463832, 0.3078198731, -0.0347205102, 0.2932790816, 0.2877587378, -0.0153631, 0.0771327019, 0.4611118734, 0.0030726143, 0.0499788523, -0.0786116123, 0.1378066242, 0.423630923, 0.1407800168, 0.0997835696, 0.0043242374, 0.1717595756, -0.050648015, -0.0111731989, 0.0233795904, -0.0765481517, 0.1003420725, -0.169614315, -0.1967255622, 0.0872979239, 0.2290242612, 0.062515229, 0.0703173205, -0.0793244615, -0.2876804471, 0.3445720375, 0.1128161401, -0.1633055061, 0.6776041389, -0.0001167437, -0.0631648079, 0.3226741254, -0.1578342617, -0.2437684685, -0.1349484771, -0.3137382865, -0.1228962541, -0.237336725, -0.146606192, 0.1704904735, 0.1870757192, -0.0346535593, -0.0162823852, -0.2558296621, 0.2515009046, 0.159502998, 0.296946913, 0.193686679, 0.1335254908, 0.296292603, -0.078819856, 0.0656211302, 0.449522078, 0.1226995587, -0.0580692738, -0.1300570965, 0.105006054, -0.3156216741, 0.1440513432, 0.0487947799, 0.0876783058, 0.0534011796, -0.1057998687, 0.0600117482, 0.3958831131, 0.4677144587, -0.2527568042, -0.4401876628, 0.0037196025, -0.1844647378, -0.1687615216, 0.3534293175, 0.2375095487, -0.2488849163, 0.0404944122, -0.3352116644, 0.2120440155, 0.1904509068, 0.1755681783, 0.152151674, -0.1373435557, 0.1693637818, 0.0367353857, -0.1364014298, -0.0482936166, 0.2304897308, -0.2315029949, -0.0458505154, 0.0646465793, -0.4039208293, -0.0729014203, -0.0511293858, 0.112847127, 0.5381457806, 0.3296650052, 0.1482217461, 0.2287227213, -0.0972661898, 0.188774243, -0.0259797666, 0.2217288315, -0.0638087466, 0.217429772, 0.278862536, 0.3559038043, -0.1069612727, 0.1385005265, 0.2183275819, -0.1730268896, 0.4362023175, 0.2521620095, 0.0512953624, -0.4750976562, -0.2844622731, 0.3379581869, 0.1205921695, -0.2243694514, 0.1495711356, 0.1904750615, -0.3530108333, 0.2172177136, -0.1098555923, 0.1972064823, -0.1581534445, -0.0793332011, -0.2322027981, 0.0361333266, -0.2132470906, 0.0374580659, 0.1392375231, -0.3727500439, 0.4706130922, -0.0172080826, 0.3007054925, -0.2543618977, -0.0963921547, -0.1438457966, -0.025576517, 0.3462130725, -0.263235569, 0.1173548326, 0.1867334545, 0.0645144358, -0.1940575242, 0.0864873976, -0.3130346537, -0.1766846031, -0.0408330411, 0.1822864562, -0.4539432824, -0.1937824488, 0.0361784734, -0.4995276332, 0.3978795409, -0.2683478594, 0.0954823494, -0.2844177186, -0.3471258581, -0.378064543, 0.1303835958, 0.1677576005, -0.3182991743, 0.1963066906, 0.0440955758, -0.1716227978, 0.3176192641, 0.2135586739, -0.0111014508, 0.0787221789, -0.1945054382, 0.0584525168, 0.197252363, -0.5762397647, -0.8570898771, -0.0889559761, -0.0245419201, 0.0981254578, 0.095794633, 0.2011219114, -0.0136565184, -0.1518791765, 0.3851179481, 0.2286436558, -0.0342443623, 0.2446640134, -0.4356626868, -0.4694650769, 0.0679854453, 0.1173060611, 0.1050999686, 0.0346390754, 0.2737376094, -0.2099493444, 0.4763213694, 0.1321785897, -0.1804890782, 0.0321728475, 0.5188757777, 0.0922635421, 0.0314386263, -0.3085210919, -0.3516796231, 0.3165909648, -0.1011773869, 0.2021062225, -0.0961006433, -0.1394746602, -0.4417224228, -0.1470141411, 0.0033663504, 0.020225063, 0.0785374641, 0.2890237272, 0.5103128552, -0.0020486903, -0.0675535053, 0.2193328291, -0.3332850039, 0.0755062476, -0.069199793, 0.410521239, -0.1425383687, -0.1633744687, 0.1933010817, -0.0326091833, 0.2119913846, -0.0189825259, -0.1926529557, 0.5856893063, 0.2447520494, 0.0146533996, 0.0103421677, 0.1669257134, 0.0275350939, -0.1148492843, -0.0306149442, 0.4881107509, 0.1159897, -0.0035279957, -0.0849098787, 0.3120203912, -0.1678327769, -0.0105442749, -0.0399095975, 0.0501339063, 0.4252631664, -0.2250583917, -0.083073169, -0.2810634077, 0.3952234387, 0.1565532088, -0.176438868, -0.0113626933, -0.056552805, 0.086697489, 0.4145715535, -0.0815581158, -0.0403175279, 0.0587356202, 0.0957922339, -0.1465415955, 0.1059477329, 0.5406910181, 0.4646524191, 0.1017909274, 0.1095508933, 0.1694589555, -0.2490924001, -0.0808054954, -0.0585333668, 0.0534648672, 0.1459112167, 0.4165163636, 0.1416841298, 0.0109966472, -0.2213392407, -0.0199417844, -0.0000841291, 0.2933085263, -0.429046303, -0.1317111552, -0.2894477248, -0.1891856045, -0.1678344458, -0.0459319875, -0.2409842312, -0.391389966, -0.0818098411, 0.2223847806, -0.1357181221, 0.097458072, -0.4964737892, -0.135201633, 0.0661718696, -0.5941941142, 0.1869995445, -0.0603719316, -0.1346975863, -0.0058758408, 0.4529093802, 0.1097686663, 0.3725116551, -0.4425556362, -0.1677235216, -0.3618421257, -0.3254410625, 0.1214936525, -0.0480734967, 0.2676187754, 0.1372065544, 0.2562132776, 0.1379995495, -0.1890584975, 0.2084401995, -0.0919697583, -0.4090437889, 0.2295726985, 0.1389909387, -0.0971560478, 0.0496401973, -0.1035870463, 0.0119190495, -0.2724908292, -0.2103688419, 0.1219463497, 0.344202131, -0.0551542044, 0.1733371764, 0.0345732868, -0.1635574102, 0.1595681608, -0.3038474619, -0.6381134987, 0.4278132915, 0.0294410437, -0.3371207118, -0.0544599183, -0.0497887544, -0.050204929, 0.3999515772, -0.5818225145, -0.392536521, -0.2917534411, 0.1948143542, 0.2192650884, 0.0214629732, 0.1942482293, -0.1421414614, -0.0720825121, -0.2490229905, -0.1709739566, 0.0316887461, 0.0769525021, 0.5315156579, -0.1315436065, 0.1924742907, 0.0540893227, 0.2287280858, 0.4919941723, -0.0950648785, 0.0406751484, 0.1255816221, 0.3465281725, -0.0732862428, -0.186515376, -0.0784894675, -0.2288339883, -0.082443431, 0.0356771909, -0.0425898321, 0.0136748943, -0.2339691669, -0.1035322249, -0.3264786005, -0.3099895418, 0.0103557557, -0.2194743603, 0.1357798278, 0.1112309247, -0.0004191665, -0.2399365008, -0.4037365615, 0.1712490618, 0.2555018961, -0.3494105041, -0.0005448667, -0.4887553453, 0.1005918831, -0.0510486253, 0.3153713048, 0.4075595737, 0.5397170782, 0.1851702332, -0.2313954681, -0.0623901188, -0.0616678409, 0.1662680656, -0.5252136588, 0.30278036, 0.0736382976, 0.3408055305, 0.0039472356, -0.2446311414, 0.0150702763, 0.112512745, 0.4904666245, 0.1994812191, -0.3187853098, 0.206149295, 0.4414463639, 0.5295766592, -0.1216524988, -0.27658692, -0.2964163423, -0.27189821, -0.3197274208, -0.0112132132, 0.0462605767, 0.2565399706, 0.060562443, 0.0551079214, 0.1611629575, 0.1034476459, 0.1268148869, -0.0166173428, 0.3362403214, -0.0411288254, 0.1905754209, -0.2478647381, -0.2222070694, 0.4203881919, 0.6949391365, -0.1534421742, -0.2330723107, -0.1906313598, -0.3636603355, 0.0006843027, 0.0971647203, -0.0581517816, -0.1531433165, 0.1709192693, 0.0892487764, 0.0340100266, 0.0007215033, -0.0541114323, 0.099152185, -0.2057168931, -0.4110706151, 0.1358901411, -0.059816625, -0.0707545057, 0.4735059142, 0.1069526076, -0.0355566852, 0.2619419992, 0.2891378701, 0.9489630461, 0.0186835453, -0.1102532446, 0.0527099743, -0.2681314349, 0.2740644813, -0.0588542446, 0.2120102793, -0.3883242607, -0.41494596, -0.0289980657, -0.2890865505, -0.1068838909, -0.0323883519, -0.041659873, 0.3335089087, -0.1730475426, 0.1179435253, 0.2758585215, 0.2900395691, -0.2321678251, 0.1379813552, 0.1292749792, 0.1375811547, -0.0656776279, 0.4032221437, -0.0422110371, 0.0886298269, -0.3786866665, -0.0604140051, -0.6585506797, 0.1668359637, -0.1079164892, 0.0306027308, -0.0192968622, -0.1318538487, -0.4833374321, 0.1816044003, 0.4442844391, 0.215023756, -0.1404078901, 0.0591704696, 0.3439462185, 0.1489963681, 0.268281877, -0.1166371852, 0.5275890827, -0.0662724972, -0.3050782979, 0.0324845538, 0.058584746, -0.4294561446, 0.0637105852, -0.2264502198, -0.2214675546, -0.1619108319, -0.029983297, -0.1469870955, 0.046777457, -0.2343831062, 0.12254031, 0.2403974682, -0.0500453115, 0.2148976624, 0.0115671167, -0.3341023922, -0.1003259048, 0.512871027, 0.166295886, -0.4472792745, 0.3390146494, 0.0090242494, -0.1937494874, -0.1159890816, -0.3357994556, -0.4798230231, -0.400934726, -0.0536371432, -0.5686793923, 0.2077486813, -0.1074205488, 0.1716690958, 0.416651994, 0.2062336057, 0.1553380787, -0.668294549, -0.2888537049, -0.0508826934, 0.2497251034, 0.143759191, -0.2918234766, 0.0573952347, 0.0523489565, -0.0599225909, -0.2980922461, 0.019167155, -0.2851569355, -0.0611684248, 0.0679228753, 0.1840693355, 0.2747396231, -0.1484148353, 0.1050545648, -0.0744340122, -0.0249223821, -0.129550457, -0.1253716201, 0.1633902341, 0.1756577045, -0.1698358357, 0.0556324124, -0.1425432116, 0.0802151039, -0.0411590002, -0.0607564971, 0.3161358237, -0.0557315573, 0.0769031346, 0.0633647889, 0.0715981051, -0.0266458821, 0.0560120009, -0.2856735289, 0.1390076578, 0.1839468777, 0.1013167724, -0.0592953376, 0.0050203218, 0.2109594047, 0.0636633858, -0.1391605735, -0.014519209, 0.3901476264, -0.1963206381, -0.1258440167, 0.2258891165, 0.2573753297, 0.4360411167, -0.2716434598, -0.1430455446, 0.2238762528, 0.1918544769, -0.3945477307, -0.0168793853, 0.2009706497, 0.017361939, -0.0280028284, 0.0763408989, 0.1515336484, -0.339063853, 0.3502779603, 0.0333637297, 0.58173877, -0.1719375998, 0.2108875513, 0.3964325488, 0.0084629543, 0.0711193532, 0.1604292691, -0.1252133399, -0.1194901541, -0.2120320052, 0.1628443599, 0.1113878638, -0.4112884104, -0.035116192, -0.3674319088, -0.2995718122, 0.3865196705, 0.2987318933, -0.0297275707, 0.0821899623, 0.1140804514, 0.2637179196, 0.0494672433, 0.46150738, -0.4295238853, 0.0188068617, 0.0698982999, 0.0428913981, -0.1927335858, -0.3415246904, 0.0590885319, 0.1984920502, 0.0654401332, 0.0520746037, 0.1481979936, 0.063913852, -0.3238105178, -0.4052577317, -0.013207322, 0.0556439385, 0.1007340997, -0.3396134079, 0.0766232684, 0.2098058909, -0.1054513305, 0.1070443988, 0.3048466444, 0.4407978952, 0.4397928715, 0.1941960454, -0.234266445, 0.1218235418, 0.1844372749, -0.0143734822, 0.4709811807, -0.0120722428, -0.1656174213, 0.3947389126, 0.1570631117, -0.1387208998, 0.1278437525, -0.1109247506, -0.0037942533, 0.0587214492, 0.3359570503, 0.0862054452, 0.1522298604, -0.0973511711, -0.0080434652, -0.2743462026, -0.207826674, 0.3509631157, -0.0228067823, 0.2505738139, -0.0733458698, 0.0846373439, -0.0621879734, 0.2556785345, 0.4917408228, -0.1149024069, -0.2324072272, -0.2094553411, -0.8948525786, 0.2829484642, -0.1545814574, 0.0585459657, 0.0607835315, 0.3524729609, -0.0330180041, 0.3431512415, 0.3723412752, -0.0950953066, -0.3539851606, 0.1491497308, -0.1705215424, -0.2106625438, -0.2851604521, -0.2048296183, 0.0519814305, -0.3670410514, 0.1871677637, -0.0298232902, 0.1153039634, -0.1226103753, -0.1347837597, 0.2177204788, -0.0476355925, 0.24347727, -0.0233410392, 0.5562725663, 0.0668771267, -0.2645448744, -0.2145640403, 0.0624098293, -0.2602094114, 0.3608379662, -0.253118962, 0.1945421398, -0.0519751087, -0.0386164263, -0.2609924376, 0.4104678333, 0.0480950661, -0.4372229576, -0.13636145, -0.0807553604, 0.0229341667, -0.0618911088, 0.1665770859, 0.0129052, -0.0607147515, 0.438447684, -0.1467871517, -0.3227744401, 0.3257704675, -0.0342283547, -0.011005667, -0.0971815363, 0.175775677, -0.2186480314, -0.0415242724, -0.7142672539, 0.2105221599, 0.3026938736, 0.0215523448, -0.1873535961, 0.1524036676, -0.2800251245, 0.2143913954, 0.0543979444, 0.1634254605, -0.0118835093, -0.1482366323, -0.1358077973, -0.182086423 ]
https://github.com/huggingface/datasets/issues/3773
Checksum mismatch for the reddit_tifu dataset
Hi @anna-kay, I'm sorry I didn't clearly explain the details to you: - the error has been fixed in our `master` branch on GitHub: https://github.com/huggingface/datasets/commit/8ae21bf6a77175dc803ce2f1b93d18b8fbf45586 - the fix will not be accessible to users in PyPI until our next release of the `datasets` library - our latest release (version 1.18.3) was made 23 days ago: https://github.com/huggingface/datasets/releases/tag/1.18.3 - in the meantime, you can get the fix if you install datasets from our GitHub `master` branch: ``` pip install git+https://github.com/huggingface/datasets#egg=datasets ```
## Describe the bug A checksum occurs when downloading the reddit_tifu data (both long & short). ## Steps to reproduce the bug reddit_tifu_dataset = load_dataset('reddit_tifu', 'long') ## Expected results The expected result is for the dataset to be downloaded and cached locally. ## Actual results File "/.../lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1ffWfITKFMJeqjT8loC8aiCLRNJpc_XnF'] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.13.0-30-generic-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 7.0.0
79
Checksum mismatch for the reddit_tifu dataset ## Describe the bug A checksum occurs when downloading the reddit_tifu data (both long & short). ## Steps to reproduce the bug reddit_tifu_dataset = load_dataset('reddit_tifu', 'long') ## Expected results The expected result is for the dataset to be downloaded and cached locally. ## Actual results File "/.../lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1ffWfITKFMJeqjT8loC8aiCLRNJpc_XnF'] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.13.0-30-generic-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 7.0.0 Hi @anna-kay, I'm sorry I didn't clearly explain the details to you: - the error has been fixed in our `master` branch on GitHub: https://github.com/huggingface/datasets/commit/8ae21bf6a77175dc803ce2f1b93d18b8fbf45586 - the fix will not be accessible to users in PyPI until our next release of the `datasets` library - our latest release (version 1.18.3) was made 23 days ago: https://github.com/huggingface/datasets/releases/tag/1.18.3 - in the meantime, you can get the fix if you install datasets from our GitHub `master` branch: ``` pip install git+https://github.com/huggingface/datasets#egg=datasets ```
[ -0.1900519282, 0.1128553227, -0.0797176585, 0.1964417845, 0.3247572184, -0.0811685622, 0.1428150088, 0.4333872795, -0.0206153635, 0.0688304678, -0.0649134368, 0.1989684403, 0.4393796325, 0.1943296492, 0.0490709879, 0.0611957014, 0.1334781796, -0.0215585493, -0.0648425519, 0.0326621346, -0.1154861897, 0.1041741371, -0.1048081592, -0.2022408843, 0.0166334976, 0.1674812138, -0.0203009732, 0.1483326107, -0.123482272, -0.23696585, 0.3213936985, 0.1848241985, -0.2820003033, 0.590880692, -0.0001072045, 0.0223761927, 0.3191758394, -0.0831218138, -0.1561594903, -0.1123310775, -0.349334687, -0.0809210837, -0.2770730555, -0.2004154325, 0.0863549933, 0.2190297693, -0.0081518386, 0.0516385436, -0.1230519935, 0.2096396089, 0.2611835897, 0.3993741274, 0.1731517315, 0.0657081306, 0.2744643092, -0.0072051995, 0.0457068086, 0.3484502137, 0.016695939, -0.0543669499, -0.1045604721, 0.1447268724, -0.2458261997, 0.060738489, -0.0518975295, 0.1324626654, -0.0749662071, -0.0972695425, 0.0297742747, 0.390853256, 0.2932794988, -0.2951297164, -0.4336783886, 0.0002976488, -0.1404087543, -0.1784240454, 0.4304539263, 0.1810365468, -0.1601698399, 0.097898677, -0.2294465005, 0.2026468068, 0.1290159076, 0.1222628877, 0.1238706782, -0.1714086235, 0.1207336336, -0.0176684279, -0.1323728114, -0.0206042789, 0.1186267212, -0.1007884443, -0.0816674083, -0.0806247517, -0.3440822661, -0.1756421179, 0.0081652589, 0.0481284373, 0.5169190168, 0.352896601, 0.1957683116, 0.2363933176, -0.1294256449, 0.2041099668, -0.0787813887, 0.1537345499, -0.0301913582, 0.1860135645, 0.3256677389, 0.2757434547, -0.077673167, 0.0798190087, 0.2315087169, -0.1360028535, 0.3752283156, 0.198014155, 0.1843113452, -0.4330931902, -0.3279231191, 0.2412915677, 0.1221461594, -0.1825949103, 0.1401896775, 0.2640247941, -0.2861635685, 0.0954354107, -0.2421661764, 0.1299962103, -0.1998590231, -0.0081821997, -0.2965955138, 0.0658655092, -0.1602594107, 0.0352550969, 0.0992700756, -0.4089718759, 0.5231051445, 0.029985752, 0.3165201545, -0.1344498396, -0.0665294752, -0.2424530983, 0.0297522079, 0.4122634828, -0.2284214348, 0.0456631966, 0.146237731, 0.1088723168, -0.1864545792, -0.0258325525, -0.3109517992, -0.1719521731, 0.005052295, 0.2971460521, -0.3963706493, -0.192460075, 0.0918116644, -0.4222532213, 0.35216102, -0.2544280589, 0.1407962888, -0.1962090731, -0.2611278296, -0.3696993291, 0.1097752452, 0.1826741993, -0.2477601171, 0.1508900672, 0.0754024237, -0.1965850443, 0.2714077234, 0.2489171475, 0.0108075486, -0.0797697604, -0.2370494306, 0.1663480997, 0.1132354885, -0.504620254, -0.7559877634, -0.1171246246, -0.0347925834, 0.1527173072, 0.1203250736, 0.2016509622, 0.1000863165, -0.2326378822, 0.2696674764, 0.2050118446, 0.021133149, 0.2172421962, -0.4487835467, -0.3921632767, 0.0476239584, 0.0449913442, 0.084811978, 0.0004528715, 0.2512329817, -0.2366861701, 0.3878808022, 0.0962180644, -0.2050978392, 0.0489340127, 0.6228858232, 0.1208897457, 0.0263787434, -0.2893863618, -0.2855336964, 0.2649041414, -0.0496697836, 0.282343775, -0.0894612744, -0.2188162357, -0.4124777913, -0.0784595385, 0.0033866821, -0.0624949709, 0.1973960549, 0.2828823626, 0.4548982978, 0.0034746958, -0.0819332302, 0.2327018529, -0.3240797818, 0.0754798278, -0.0735906288, 0.4671474993, -0.1748411655, -0.1043952927, 0.2091562897, 0.0148378564, 0.1819190532, -0.0745657608, -0.1118319333, 0.6493149996, 0.2096165121, -0.0102316625, 0.1306544095, 0.1869523525, 0.1141154617, -0.312377274, -0.1495933384, 0.4982484281, 0.0764216483, 0.0816582963, -0.0908333212, 0.4276823699, -0.071838893, -0.0361985378, -0.044198852, 0.0134354718, 0.3792235851, -0.2235131413, -0.0981496125, -0.3026884496, 0.331145972, 0.0549338534, -0.2260262966, 0.0051603047, -0.1235533729, 0.1147536337, 0.4327095151, -0.0999966338, -0.0571469851, 0.1013758183, 0.1241981685, -0.1487920731, 0.0486647151, 0.4523024559, 0.3454921842, 0.2247879654, 0.0643827543, 0.0892542079, -0.3213932514, -0.153971836, 0.0174310412, 0.0458893329, 0.1105458438, 0.2371439189, 0.1888469011, 0.0477717482, -0.2897651494, -0.1348035634, -0.0195505917, 0.2800770998, -0.387680918, -0.1071539447, -0.2627956271, -0.2101282626, -0.069089368, -0.0354893915, -0.2628883123, -0.3803195953, 0.0741939098, 0.1479799449, -0.1453528851, 0.1468574703, -0.3750649095, -0.1486238688, 0.2107029259, -0.4727039635, 0.0203624815, -0.1480473131, -0.0376016125, 0.1181350127, 0.3940755725, 0.1269144267, 0.4453448057, -0.3863303065, -0.20408535, -0.425121963, -0.4446246624, 0.1203538105, -0.1808073521, 0.268376708, 0.1481491923, 0.2438802123, 0.174238205, -0.1616060734, 0.2343333662, -0.1609546989, -0.4593626857, 0.256397754, 0.0555076972, -0.0548771322, -0.0429598391, -0.1084838584, 0.0763254687, -0.2454843074, -0.1008837074, 0.1502740085, 0.2498250753, 0.081325382, 0.1859627366, -0.0191099867, -0.1265296042, 0.1893493086, -0.3376820683, -0.6981483102, 0.3856301606, -0.0169412196, -0.3967519403, -0.1206033975, 0.0159220975, -0.0357480608, 0.315492034, -0.5722042918, -0.6082022786, -0.2810342312, 0.2543129325, 0.1847760379, -0.0343191959, 0.1415257603, -0.0988330841, -0.2230894715, -0.2056068033, -0.0796208531, 0.0574311763, -0.0101951286, 0.4035972357, -0.1056729481, 0.1560164541, 0.0198888946, 0.2135323137, 0.3623516262, -0.1258281022, 0.0133259967, 0.0441849977, 0.4059493542, -0.0478408858, -0.212032035, 0.0195333809, -0.1336002052, -0.0367618725, 0.0442999229, -0.0377048925, 0.0644916072, -0.2214078456, -0.0175406486, -0.3223885, -0.329708606, 0.0160834081, -0.1672523022, 0.136367619, 0.1321391314, 0.0325390659, -0.2025019228, -0.3141950965, 0.2273559123, 0.220920831, -0.3696503341, -0.0908876732, -0.4065518975, 0.0757705346, -0.1648393869, 0.2514909804, 0.3688640594, 0.4344322085, 0.0768460855, -0.3015095294, 0.0051833247, -0.1234310493, 0.1988702863, -0.4472048879, 0.2183528543, 0.0419041105, 0.2620037496, 0.0454329401, -0.1074749231, -0.0959036127, 0.0774240047, 0.4777320921, 0.2800854445, -0.437228471, 0.1374198496, 0.302253902, 0.3145928383, -0.0537647791, -0.2178595215, -0.3140480816, -0.2958097756, -0.3751764894, 0.0989547595, 0.0459518172, 0.2284994274, -0.0867307559, 0.0270054117, 0.0385477468, 0.1013673618, 0.1957412809, 0.1039997414, 0.2669666708, -0.1313755214, 0.1469765306, -0.2448355556, -0.2225371748, 0.4480537474, 0.6327452064, -0.0756414682, -0.1825466454, -0.1730635464, -0.2739279866, -0.0525465645, 0.0581907555, -0.0279274769, -0.0220951345, 0.0956907347, 0.2188349068, 0.0490380637, 0.0705498606, 0.0194601808, 0.0624235757, -0.2915258408, -0.3319422901, 0.0704760551, -0.1022682264, -0.0449336544, 0.4176763892, 0.2225051522, 0.0004799944, 0.284943372, 0.3155095875, 0.9710373282, -0.0785566568, -0.1270711571, 0.2316515595, -0.2639885843, 0.3445362151, -0.1111607626, 0.1567513198, -0.3129982352, -0.5144608617, -0.013435198, -0.2079313397, -0.0825872645, -0.0997574031, -0.0942223147, 0.2409987152, -0.0379338153, 0.1251206994, 0.2272226512, 0.1895851493, -0.2274336964, 0.1099039912, 0.0026043844, 0.2541631162, -0.0062826183, 0.2770986855, 0.0146531826, 0.044912789, -0.2502346337, -0.1689749807, -0.5091607571, 0.1245263144, -0.0850408897, 0.0007706935, 0.0643579513, -0.2078652978, -0.4780372083, 0.0444368422, 0.4337862432, 0.2269333303, -0.1136699989, 0.063546598, 0.3320895433, 0.080719091, 0.1646987945, -0.0984705165, 0.4557750523, -0.0395856686, -0.2735910714, 0.0906051695, 0.0099553131, -0.4063440859, 0.1337301284, -0.1887085587, -0.2518821657, -0.1531318128, 0.0905097276, -0.1461635828, 0.011504123, -0.3544279337, 0.2021732777, 0.1926480681, -0.0439250059, 0.1058147922, 0.0938628986, -0.3307305872, -0.1686306745, 0.4259229302, 0.1211061329, -0.2722456455, 0.2682383955, -0.0051871617, -0.2361268997, -0.2104270607, -0.3251001835, -0.4082626998, -0.3693888187, 0.0041724332, -0.4409741759, 0.1571853012, -0.0826199502, 0.1699253619, 0.3596708775, 0.2679769397, 0.1849800497, -0.6902470589, -0.276556015, -0.0565886088, 0.2050397992, 0.1670772582, -0.2244402617, 0.1453653127, -0.0802548304, -0.0652841479, -0.4173842072, 0.0176309738, -0.3920244277, -0.0265029669, 0.1300483644, 0.0790496171, 0.3818747997, -0.125230208, 0.2143698782, -0.0335436687, -0.0458571501, -0.245617345, -0.0934818909, 0.0958272517, 0.0793652833, -0.1058017612, 0.0000505999, 0.0506077521, 0.0698729828, -0.0300098676, -0.0039718519, 0.3002875447, -0.0845989138, 0.0879745856, 0.074890174, 0.0186187644, -0.0396154299, -0.057960704, -0.2276308984, 0.0610410199, 0.1296230555, 0.1166595444, -0.2954120338, 0.0259711538, 0.2628781199, 0.1407013685, -0.0084378896, -0.0229235087, 0.3752783239, -0.1100444421, -0.1486908793, 0.262013346, 0.2918507159, 0.3404607773, -0.2127265334, -0.1173646376, 0.2645807266, 0.3031041026, -0.3557893038, 0.0527569316, 0.1770450622, 0.002661783, 0.0918364972, 0.098694995, 0.0608684942, -0.3041335046, 0.3291842043, 0.0811774135, 0.4921711981, -0.1908408701, 0.1307284981, 0.3087657392, -0.0029224134, 0.0382212661, 0.1772850752, -0.1924592555, -0.0399513654, -0.126461938, 0.106936045, 0.258695066, -0.46961537, -0.0093334271, -0.3025172651, -0.2855457664, 0.3433801234, 0.2555902302, -0.0264399629, 0.0484437272, 0.1307868212, 0.4008705914, -0.0008294481, 0.4127155244, -0.4435991347, 0.1347111762, 0.0469740443, 0.0425744615, -0.1813555807, -0.2728213668, 0.0816571787, 0.1190651506, 0.0941900387, 0.0554756895, 0.227463603, 0.0801112279, -0.2406596988, -0.4401474595, 0.0034238251, 0.0520492345, 0.1195143387, -0.2721111476, 0.132653296, 0.2236098796, -0.1211189404, 0.0380584151, 0.3577516079, 0.4742138088, 0.284735918, 0.271368742, -0.1815465689, 0.0352882892, 0.1261775345, -0.0720469505, 0.4836482108, 0.0347599946, -0.1587123722, 0.3882215321, 0.2614324987, -0.236759454, 0.0594550669, -0.0918426141, -0.0069429041, 0.0983870625, 0.2816947699, 0.0617858022, 0.0715859979, -0.07187365, -0.0152019057, -0.3078846037, -0.1365820915, 0.2486752272, 0.0188777596, 0.2470880747, -0.0671606436, 0.1456784606, -0.0185594689, 0.2647976279, 0.47090289, -0.1511710882, -0.1672936082, -0.2353618741, -0.7481085062, 0.3521198332, -0.1343187988, 0.0317736268, -0.0559355542, 0.3307360709, -0.0138012841, 0.2914217412, 0.2756748199, -0.1199552864, -0.2855530381, 0.1317820847, -0.2566952109, -0.0696334168, -0.3259261847, -0.2589731812, 0.1309290528, -0.2620915473, 0.1440949589, -0.0173271634, 0.2210100889, -0.0852461755, -0.0566303581, 0.108315371, -0.1471391618, 0.25031358, 0.0050114756, 0.4292773008, -0.0452208444, -0.247890994, -0.1576463282, -0.0653189346, -0.1626277566, 0.3504724801, -0.1588491648, 0.2163961232, -0.0328940712, -0.1964280605, -0.1773755103, 0.4696631432, 0.1092817485, -0.5553697944, -0.1297290325, 0.0571052395, -0.0199947581, -0.1124092937, 0.1082137823, 0.054791417, -0.0314186253, 0.3282076716, -0.2041542232, -0.4453554749, 0.3851276934, -0.0941129774, 0.0029282137, -0.0465945229, 0.2446125746, -0.154156208, -0.0605951473, -0.7055213451, 0.2206887007, 0.2324611247, 0.0241300706, -0.2592689097, 0.157574892, -0.2919673026, 0.2189290971, 0.0188612472, 0.2731560767, 0.0261126831, -0.1752403975, 0.0167028643, -0.1264551133 ]
https://github.com/huggingface/datasets/issues/3769
`dataset = dataset.map()` causes faiss index lost
Hi ! Indeed `map` is dropping the index right now, because one can create a dataset with more or fewer rows using `map` (and therefore the index might not be relevant anymore) I guess we could check the resulting dataset length, and if the user hasn't changed the dataset size we could keep the index, what do you think ?
## Describe the bug assigning the resulted dataset to original dataset causes lost of the faiss index ## Steps to reproduce the bug `my_dataset` is a regular loaded dataset. It's a part of a customed dataset structure ```python self.dataset.add_faiss_index('embeddings') self.dataset.list_indexes() # ['embeddings'] dataset2 = my_dataset.map( lambda x: self._get_nearest_examples_batch(x['text']), batch=True ) # the unexpected result: dataset2.list_indexes() # [] self.dataset.list_indexes() # ['embeddings'] ``` in case something wrong with my `_get_nearest_examples_batch()`, it's like this ```python def _get_nearest_examples_batch(self, examples, k=5): queries = embed(examples) scores_batch, retrievals_batch = self.dataset.get_nearest_examples_batch(self.faiss_column, queries, k) return { 'neighbors': [batch['text'] for batch in retrievals_batch], 'scores': scores_batch } ``` ## Expected results `map` shouldn't drop the indexes, in another word, indexes should be carried to the generated dataset ## Actual results map drops the indexes ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Ubuntu 20.04.3 LTS - Python version: 3.8.12 - PyArrow version: 7.0.0
60
`dataset = dataset.map()` causes faiss index lost ## Describe the bug assigning the resulted dataset to original dataset causes lost of the faiss index ## Steps to reproduce the bug `my_dataset` is a regular loaded dataset. It's a part of a customed dataset structure ```python self.dataset.add_faiss_index('embeddings') self.dataset.list_indexes() # ['embeddings'] dataset2 = my_dataset.map( lambda x: self._get_nearest_examples_batch(x['text']), batch=True ) # the unexpected result: dataset2.list_indexes() # [] self.dataset.list_indexes() # ['embeddings'] ``` in case something wrong with my `_get_nearest_examples_batch()`, it's like this ```python def _get_nearest_examples_batch(self, examples, k=5): queries = embed(examples) scores_batch, retrievals_batch = self.dataset.get_nearest_examples_batch(self.faiss_column, queries, k) return { 'neighbors': [batch['text'] for batch in retrievals_batch], 'scores': scores_batch } ``` ## Expected results `map` shouldn't drop the indexes, in another word, indexes should be carried to the generated dataset ## Actual results map drops the indexes ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Ubuntu 20.04.3 LTS - Python version: 3.8.12 - PyArrow version: 7.0.0 Hi ! Indeed `map` is dropping the index right now, because one can create a dataset with more or fewer rows using `map` (and therefore the index might not be relevant anymore) I guess we could check the resulting dataset length, and if the user hasn't changed the dataset size we could keep the index, what do you think ?
[ -0.1911484003, -0.0692250505, -0.0801808313, 0.2704692185, 0.0758192837, 0.3400020301, 0.219092533, 0.2129372805, 0.7335777879, 0.2396205366, -0.0468455814, 0.4691384137, 0.0690716878, -0.3312780559, -0.0963518769, 0.1843682826, 0.2518341243, 0.1134471446, 0.0620871782, -0.1465299428, -0.4394628704, 0.0760562792, -0.1401694864, -0.0207162648, 0.0901543126, 0.0839501992, -0.0263566654, -0.0259230919, 0.0192385688, -0.3719553053, 0.2027835846, -0.1621652395, 0.0135402586, 0.2944713533, -0.0001150065, 0.075349994, 0.25527215, 0.0976216644, -0.1818514615, 0.0022914335, -0.3680088222, -0.1619149297, 0.0330054276, -0.2573131919, 0.0360364541, -0.2040444016, 0.0101933619, -0.714844346, 0.0745700374, 0.1525011808, 0.1970359981, 0.079609029, 0.0117197083, -0.1608529389, 0.380071938, -0.2415724248, 0.0326729119, 0.2320610285, 0.1937454045, 0.0476857759, 0.038799718, 0.0913487747, -0.2566451728, -0.0771814883, 0.0332200751, 0.2068942785, 0.4984324872, -0.2534560561, 0.0315788835, 0.0668565482, 0.2079063803, -0.2423776388, -0.3016094565, -0.163786307, 0.0828489363, -0.1101469547, -0.1753852516, -0.2801825106, 0.0913515538, 0.1508368701, -0.0752542838, 0.024079524, 0.0282747447, 0.3262609541, -0.0830583945, 0.1297162622, 0.0275329798, 0.1942843795, -0.1280677617, -0.1322178245, -0.1335898638, -0.2621437013, -0.0397352949, 0.1735880077, -0.2167928219, 0.013539061, 0.5819125175, -0.185915634, 0.2752064466, -0.4270856082, -0.191792503, 0.1537509263, -0.085172154, 0.1216875538, 0.1536148936, 0.1291369498, -0.0546057001, 0.0720757917, -0.0678114966, -0.000528283, -0.2035432011, -0.0045624766, 0.3902349472, -0.0107258474, 0.1460060626, -0.1397516131, 0.360479176, -0.1848678142, -0.5118566155, 0.4449154437, -0.448435843, 0.1102551445, -0.0885752439, 0.1751726568, 0.0992263034, -0.1783086509, -0.0682123229, 0.1619328707, -0.1765493453, 0.2468929142, -0.287525326, -0.3388490677, -0.0726553276, 0.0518817976, -0.0474512354, -0.1595359296, 0.2329661846, 0.0948829502, -0.0972631723, -0.0149044311, -0.2687087953, -0.0719297975, 0.4188790917, 0.0744459927, -0.0891377106, 0.3233937323, 0.0497745164, -0.2202225477, -0.3680206537, 0.2061842084, -0.3416212499, -0.1874531209, -0.0579408668, 0.188740924, 0.0784799531, 0.0133478064, -0.0335922912, 0.3451969922, 0.1154942289, -0.0896609724, 0.1665625274, -0.3244564235, -0.3158203065, -0.3441810608, 0.2195606232, 0.4310135245, -0.3843841255, -0.1360037327, -0.1208724976, 0.1264796555, -0.0914994106, 0.4754203558, -0.0996300951, 0.378380388, -0.2927537858, 0.3297795951, 0.2567464411, -0.0122929914, -0.6850579381, 0.0759192333, -0.2346159071, 0.0578921959, -0.2608582675, 0.2387984693, 0.4400717616, -0.0670734644, 0.4054529965, 0.2582811713, -0.0252119917, 0.041610036, -0.3333952427, -0.2749067247, 0.1446979642, 0.0427328162, -0.1129928082, 0.1568303406, 0.3974306881, -0.6001848578, 0.2176144421, -0.0971518308, 0.1204738244, 0.3154963553, 0.2285405844, 0.0421195216, 0.1756846309, -0.0813206509, -0.2526891828, 0.2269017398, 0.0174416397, -0.2902837396, -0.235660702, -0.1651177853, -0.13490282, 0.2119572461, -0.1589938998, 0.101675868, 0.0460507758, -0.2638975978, -0.1985471994, 0.0784491375, -0.1023068801, -0.2009830624, -0.0598516986, -0.0007716485, -0.3925258517, 0.2268339992, 0.0819786042, 0.013381891, -0.2800278962, 0.1946811229, 0.2043575346, -0.1171621755, -0.0921394452, 0.2677073181, 0.003227873, 0.0414219685, 0.0929443315, -0.1823691428, 0.1276302189, -0.2504620552, 0.2400082797, 0.2230004817, 0.0528375804, 0.0046790405, -0.0558110736, 0.1438116878, 0.1643573642, 0.276914537, -0.2316287309, -0.1539466828, 0.0702021122, -0.1395825297, -0.0016565112, -0.4454211593, -0.2246780992, 0.2032606155, 0.2192826122, 0.0935154855, 0.0216960646, 0.4387496114, 0.2224783599, -0.2813405395, 0.0016354481, 0.2541953623, -0.4458294511, -0.0646479875, -0.1990850121, -0.1652478427, 0.5625893474, 0.2078017443, 0.1347598732, -0.1119441986, 0.0033269271, -0.1590524465, 0.1334149539, 0.116407603, 0.0274028368, 0.2662470043, 0.2823491395, 0.0835094303, -0.2206877768, -0.0628903359, -0.1036375836, 0.1861101538, -0.4410589039, 0.0513398796, -0.1415990889, 0.1394859403, -0.097219415, -0.3726758361, -0.0916082412, -0.3762191832, 0.1005136818, 0.0597093031, -0.2121708244, 0.1106058061, -0.1432979256, -0.0722133741, 0.1967639178, -0.3656093478, 0.055470746, -0.2949759066, -0.2165377438, -0.0175185259, -0.0773142055, -0.0541972108, 0.1641050279, 0.1493091583, -0.3259566128, -0.4412869513, -0.0963826329, -0.0051221442, -0.0871295184, 0.4307575524, -0.0135684907, 0.0915117189, -0.0775088668, -0.0620940775, 0.0835977122, -0.0739265904, -0.1428136975, -0.0695845783, -0.1674862653, -0.2469976991, -0.0291819628, -0.3706068397, -0.0360091254, -0.2245026529, 0.0830206499, 0.0329141431, 0.0728295296, 0.0014257728, 0.2640034258, 0.0654884428, 0.0283077136, -0.1898321956, -0.4016532898, -0.2703042626, 0.2342382967, -0.0719779059, -0.2165070772, -0.1616553664, -0.1890924573, -0.0203432515, 0.3600480855, -0.3398640752, 0.1785094291, -0.0085987579, 0.5397694707, 0.0032356188, 0.2203161716, 0.3667459786, 0.1073556542, -0.0333752371, -0.1183572859, -0.1693038642, 0.1713346392, 0.3060127497, 0.1123873442, -0.008412567, 0.3930235803, -0.2250885069, 0.803399384, 0.3044260442, -0.3347320557, 0.411819607, -0.1721552908, 0.4298175275, -0.1641591191, -0.2937371433, 0.0265028626, 0.0737313852, -0.3139995933, 0.1993686408, -0.0863931924, -0.3182086349, 0.4254368544, -0.0821499527, -0.2750187516, -0.3150388598, 0.0626979843, 0.0440521613, 0.2559452355, 0.0653738379, 0.1535052657, -0.3939942122, -0.1812756509, 0.2290810049, -0.1040532589, 0.3575354517, -0.1163728908, -0.0945448503, -0.1134194434, -0.3864857554, 0.3470598161, 0.1167550385, 0.3056724072, 0.0851818994, -0.1484056413, 0.172433123, 0.2940355837, 0.7111701965, -0.2578127086, -0.034775462, 0.2403630465, 0.5496163368, -0.5436216593, -0.1629166305, -0.0781085342, 0.4358957112, 0.0534486249, 0.5975390077, -0.2138686031, 0.0184818432, 0.1463634074, 0.1304460019, -0.0316591971, -0.1740194261, -0.0780989081, -0.0358485468, -0.0132088531, 0.1032352671, -0.0372708254, 0.0370318405, 0.1189150885, -0.3059043884, -0.1368898451, 0.1651600748, -0.0613464676, 0.1327691525, 0.4716758132, 0.2440342009, 0.3190591633, 0.2428734899, 0.1298656315, 0.2352743894, 0.3924706578, -0.1412715614, 0.0824082345, -0.1840261221, 0.138600722, 0.1866852939, 0.3159226775, 0.0832978413, 0.0474000536, -0.1743604541, 0.1801740229, -0.1178697124, -0.1519414485, 0.4740199447, -0.0114231613, -0.448533684, -0.3019680679, 0.4521179199, -0.0715821311, -0.3726864159, 0.2474987805, -0.0907293782, -0.3626236618, 0.8403805494, 0.2664808333, 0.704017818, 0.0180371087, 0.1772377938, 0.2610360682, 0.2858853936, 0.1481260061, 0.0369257145, 0.063850373, -0.4237870872, -0.1389838606, 0.063884221, -0.1546598226, 0.0654795021, 0.1364119798, -0.1200179979, 0.2159483135, -0.0921929553, 0.2647223771, -0.0721350685, -0.1365609914, 0.1931777745, -0.2990310788, -0.1243094206, 0.1258074939, 0.2480862439, 0.21949929, 0.0049077007, -0.0237918049, -0.2919286489, 0.0453754701, -0.0930723101, -0.0120358262, -0.2532998323, 0.4015986323, -0.0079607684, -0.1178329214, -0.0450890549, -0.0579764508, 0.131831497, 0.0347380862, -0.12227422, 0.0866593942, 0.1564156562, 0.1539862603, 0.4103718698, -0.4418846667, 0.1377955973, 0.3222485185, -0.3302539289, -0.0453198552, 0.0533026457, -0.0867685527, -0.5510672331, 0.1489847898, 0.0746984407, -0.509447813, -0.4443765581, -0.0110636968, 0.2434129268, -0.0872679949, 0.0577248782, 0.1502990425, 0.0280148108, 0.6174356937, -0.2131425291, -0.4247873127, -0.1623040885, 0.6186992526, -0.0140096014, 0.1694283038, 0.2409437895, -0.2304022312, -0.134654671, -0.0599868596, -0.0533641092, 0.1395239681, 0.0764352381, -0.0851287693, -0.1320549846, 0.0679292902, -0.0500114486, -0.0912543237, -0.0731925964, -0.1519930661, -0.302737534, -0.2131541967, -0.2644205391, 0.1896514148, 0.2236506045, 0.3200495243, -0.1128397584, -0.0874812528, -0.2279533446, -0.0871645883, -0.2736274004, 0.2119722366, 0.1601070762, 0.2565471232, 0.0363744237, 0.1271373481, 0.121995993, -0.4166344404, 0.1423776448, -0.1144746393, -0.0661859587, -0.246255368, -0.25787431, 0.1136991754, 0.0862080827, 0.1401392072, -0.169250384, -0.3941755295, 0.0940943584, -0.4088149667, 0.1579948366, 0.3390610218, -0.0596248917, 0.0047285734, 0.2133037746, -0.0742168128, 0.3310056329, 0.3418346345, -0.0248932, 0.1954307258, -0.0731304362, 0.2711935341, -0.2141897976, 0.0172201078, -0.0494297892, 0.2093210667, 0.114910163, 0.1790785044, 0.4146918654, -0.1777547151, -0.2304022163, 0.2810621262, 0.1970299333, 0.2251429111, -0.2594356835, -0.2015035003, 0.0048860451, 0.2303282171, -0.2529357374, -0.3337739706, 0.8622460365, -0.2416800708, 0.1518429816, 0.0723702088, 0.1935070604, -0.0113004223, -0.1902561337, 0.0175190177, 0.1659219563, 0.2409198433, -0.1646200269, 0.2954504788, 0.2495924979, 0.2054901421, 0.1442924589, 0.2018368691, 0.4303659797, 0.6934803128, 0.1780804694, 0.3821511269, 0.1213505641, 0.1233918592, 0.0082342084, -0.3060539067, 0.6698281169, 0.0983568132, -0.1691526771, 0.2981217206, 0.4192436039, 0.1962770373, -0.061371047, -0.3753867447, 0.0724074394, 0.2046204656, -0.3379668891, -0.2687320113, 0.2574928999, 0.012955375, 0.1007488668, -0.0764893591, -0.1477387398, -0.295322299, 0.0258047413, 0.0511421189, -0.1585872769, -0.1388111711, -0.2295372933, 0.2148580402, 0.3715565205, -0.0950065479, -0.0785367042, -0.2586854398, -0.0723276511, -0.0619734563, 0.2630443573, 0.3368397653, 0.1388726979, -0.1812730879, 0.207877472, 0.4324250817, -0.1776260883, -0.2313175946, -0.1082090214, -0.2563868463, -0.2869682312, 0.1330905408, 0.1707836539, -0.1325475872, -0.1282799393, 0.1388525963, 0.4654252231, -0.2763194144, 0.0313557126, -0.1724297851, -0.3309711218, -0.1389952153, -0.1614328325, -0.2087260485, -0.0523781329, 0.4291821122, -0.0867956206, 0.2748300433, -0.069046773, 0.0630280599, 0.1024782136, 0.1718614399, 0.3536654711, -0.0696941614, -0.5006700754, 0.1035635769, -0.675802052, 0.2554614842, -0.1015314162, 0.2982074916, 0.2444423884, 0.1679454595, -0.0128218168, 0.0218726341, 0.2901588678, 0.0425814725, -0.0556817353, 0.4933916926, -0.0432255007, -0.173761487, -0.3955172002, -0.0675973967, 0.0536987148, -0.3270762265, 0.232273072, -0.2054821998, 0.0110948598, -0.21999681, 0.099689655, 0.0610995218, -0.2226619869, 0.7173022032, 0.1755708158, -0.1596493125, -0.2339658141, -0.179376334, -0.2660617828, -0.2858223915, -0.1986611485, 0.2555586398, -0.212809369, 0.1817977875, -0.1507231593, -0.5105016232, -0.1039319336, -0.0601880439, 0.3334750533, -0.1975208819, -0.4118538797, 0.1133083329, -0.4230362773, 0.2516909838, -0.1098735034, 0.3840592504, 0.0862981379, 0.5603605509, 0.0927071497, -0.2244255692, 0.4275218546, -0.5289145708, -0.014125905, -0.1370186061, 0.2560501993, 0.1461282372, -0.1405492872, -0.2044269294, -0.0930967778, 0.450268954, -0.2159430832, -0.2256768644, 0.0480912626, 0.0233351737, 0.2469505519, -0.2713450491, 0.1591009051, 0.231355235, -0.183184132, 0.4206178486, -0.2475162148 ]
https://github.com/huggingface/datasets/issues/3763
It's not possible download `20200501.pt` dataset
Hi @jvanz, thanks for reporting. Please note that Wikimedia website does not longer host Wikipedia dumps for so old dates. For a list of accessible dump dates of `pt` Wikipedia, please see: https://dumps.wikimedia.org/ptwiki/ You can load for example `20220220` `pt` Wikipedia: ```python dataset = load_dataset("wikipedia", language="pt", date="20220220", beam_runner="DirectRunner") ```
## Describe the bug The dataset `20200501.pt` is broken. The available datasets: https://dumps.wikimedia.org/ptwiki/ ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("wikipedia", "20200501.pt", beam_runner='DirectRunner') ``` ## Expected results I expect to download the dataset locally. ## Actual results ``` >>> from datasets import load_dataset >>> dataset = load_dataset("wikipedia", "20200501.pt", beam_runner='DirectRunner') Downloading and preparing dataset wikipedia/20200501.pt to /home/jvanz/.cache/huggingface/datasets/wikipedia/20200501.pt/1.0.0/009f923d9b6dd00c00c8cdc7f408f2b47f45dd4f5fb7982a21f9448f4afbe475... /home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/apache_beam/__init__.py:79: UserWarning: This version of Apache Beam has not been sufficiently tested on Python 3.9. You may encounter bugs or missing features. warnings.warn( 0%| | 0/1 [00:00<?, ?it/s] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/load.py", line 1702, in load_dataset builder_instance.download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 594, in download_and_prepare self._download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 1245, in _download_and_prepare super()._download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 661, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/jvanz/.cache/huggingface/modules/datasets_modules/datasets/wikipedia/009f923d9b6dd00c00c8cdc7f408f2b47f45dd4f5fb7982a21f9448f4afbe475/wikipedia.py", line 420, in _split_generators downloaded_files = dl_manager.download_and_extract({"info": info_url}) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 307, in download_and_extract return self.extract(self.download(url_or_urls)) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 195, in download downloaded_path_or_paths = map_nested( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 260, in map_nested mapped = [ File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 261, in <listcomp> _single_map_nested((function, obj, types, None, True)) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 196, in _single_map_nested return function(data_struct) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 216, in _download return cached_path(url_or_filename, download_config=download_config) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 298, in cached_path output_path = get_from_cache( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 612, in get_from_cache raise FileNotFoundError(f"Couldn't find file at {url}") FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/ptwiki/20200501/dumpstatus.json ``` ## Environment info ``` - `datasets` version: 1.18.3 - Platform: Linux-5.3.18-150300.59.49-default-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 6.0.1 ```
49
It's not possible download `20200501.pt` dataset ## Describe the bug The dataset `20200501.pt` is broken. The available datasets: https://dumps.wikimedia.org/ptwiki/ ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("wikipedia", "20200501.pt", beam_runner='DirectRunner') ``` ## Expected results I expect to download the dataset locally. ## Actual results ``` >>> from datasets import load_dataset >>> dataset = load_dataset("wikipedia", "20200501.pt", beam_runner='DirectRunner') Downloading and preparing dataset wikipedia/20200501.pt to /home/jvanz/.cache/huggingface/datasets/wikipedia/20200501.pt/1.0.0/009f923d9b6dd00c00c8cdc7f408f2b47f45dd4f5fb7982a21f9448f4afbe475... /home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/apache_beam/__init__.py:79: UserWarning: This version of Apache Beam has not been sufficiently tested on Python 3.9. You may encounter bugs or missing features. warnings.warn( 0%| | 0/1 [00:00<?, ?it/s] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/load.py", line 1702, in load_dataset builder_instance.download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 594, in download_and_prepare self._download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 1245, in _download_and_prepare super()._download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 661, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/jvanz/.cache/huggingface/modules/datasets_modules/datasets/wikipedia/009f923d9b6dd00c00c8cdc7f408f2b47f45dd4f5fb7982a21f9448f4afbe475/wikipedia.py", line 420, in _split_generators downloaded_files = dl_manager.download_and_extract({"info": info_url}) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 307, in download_and_extract return self.extract(self.download(url_or_urls)) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 195, in download downloaded_path_or_paths = map_nested( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 260, in map_nested mapped = [ File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 261, in <listcomp> _single_map_nested((function, obj, types, None, True)) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 196, in _single_map_nested return function(data_struct) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 216, in _download return cached_path(url_or_filename, download_config=download_config) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 298, in cached_path output_path = get_from_cache( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 612, in get_from_cache raise FileNotFoundError(f"Couldn't find file at {url}") FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/ptwiki/20200501/dumpstatus.json ``` ## Environment info ``` - `datasets` version: 1.18.3 - Platform: Linux-5.3.18-150300.59.49-default-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 6.0.1 ``` Hi @jvanz, thanks for reporting. Please note that Wikimedia website does not longer host Wikipedia dumps for so old dates. For a list of accessible dump dates of `pt` Wikipedia, please see: https://dumps.wikimedia.org/ptwiki/ You can load for example `20220220` `pt` Wikipedia: ```python dataset = load_dataset("wikipedia", language="pt", date="20220220", beam_runner="DirectRunner") ```
[ -0.3223347962, -0.1315499097, -0.0983523205, 0.3211584985, 0.2504530549, 0.1500659734, 0.049723804, 0.4589627385, 0.092519775, 0.1612986773, 0.1003177986, 0.3547094464, 0.017580485, 0.1351880282, -0.0279240459, -0.4124293029, 0.0741506591, 0.0216097198, -0.1954785287, 0.0282271206, -0.2157016098, 0.1640369594, -0.1948073506, -0.1926060319, -0.0209508557, -0.0578750186, 0.1435266286, -0.0421195142, -0.2080962062, -0.2229805589, 0.1963418275, 0.0195767544, 0.1284812838, 0.478294611, -0.0001053136, 0.1754009724, 0.4400367737, -0.029065812, -0.3724502027, -0.1176923066, -0.1738840938, -0.1003985032, 0.1145684421, -0.2962556481, -0.1716281325, -0.2144687325, 0.0091437958, -0.2390602529, 0.5132163167, 0.2274698019, 0.3231375217, 0.4897454977, 0.3873957098, -0.2229727358, 0.4347150624, -0.1045805216, -0.1649616361, 0.0650640428, -0.0769871101, 0.2244311869, 0.163204819, 0.2718214393, -0.0501566269, -0.04824204, 0.2512193322, -0.3109746277, 0.0844579712, -0.4266613722, 0.2108000964, 0.2650676966, 0.8665360212, -0.1871126592, -0.1075498909, 0.0424292721, -0.0538321994, 0.0176126566, 0.2213539481, 0.1038814783, -0.213754952, 0.0224771146, 0.0820367932, -0.1347356737, -0.2055645734, 0.2402859926, -0.1167197526, 0.226953581, 0.0299351253, 0.1449249387, -0.1973688304, -0.0164675992, -0.0633136183, 0.0475634299, 0.1337090731, 0.0893886685, -0.2678211331, -0.0422386862, -0.1053920761, 0.1117191985, 0.1169947162, 0.145448789, 0.0958064422, 0.2617615163, -0.0914403722, -0.0378101692, 0.0341946594, 0.2339128554, -0.193585977, -0.0507198572, 0.1892337501, 0.2287674993, -0.0691932067, 0.0472607799, 0.0020272995, -0.2916690707, -0.2639906704, 0.1476930678, 0.1127632707, -0.0786188319, -0.0183902793, 0.0541395657, -0.2202122211, -0.0048258188, -0.2431866676, 0.2852349281, -0.0487259924, 0.3993786573, 0.2344820946, 0.1287544668, -0.2242076248, -0.4861931205, -0.1402330101, 0.1473303437, -0.1106378436, 0.0434009917, 0.1618033797, -0.2273460031, 0.2579298615, -0.0197152831, -0.053069666, -0.0251195878, -0.0087393923, 0.1091203168, -0.1057046801, 0.2762661874, 0.2591019273, 0.3945356905, 0.0405693837, 0.2590233982, 0.0018425654, -0.0212172084, -0.2165850252, -0.228581503, -0.2206410766, 0.2521072328, -0.0131895877, -0.0047373306, -0.2291078717, 0.0599273294, 0.0986430943, -0.0805993751, 0.0532946028, -0.1421764493, -0.3216169477, -0.3087880015, 0.4316567183, 0.4920252264, -0.4255307913, 0.1396028399, -0.0567286052, -0.0116972877, -0.0810581446, -0.0570175536, -0.1123930216, 0.3496842682, -0.2192973495, -0.1809514463, 0.2068289965, -0.3976506293, -0.2395832539, 0.0906253457, -0.0634689108, -0.1056228429, 0.1840570122, -0.0871480107, 0.154035151, 0.0485325865, -0.2306939662, 0.2110482007, 0.1371546537, -0.047936134, -0.3818024397, -0.2028018236, -0.0171982143, 0.0189916007, 0.3237563074, 0.1146466359, 0.1676121503, 0.5691860914, 0.4555255771, 0.0832127184, 0.1777919382, 0.40130952, -0.2085612863, -0.0413434803, 0.2671728134, -0.2288277447, -0.2487843186, 0.2187514156, -0.0757085159, 0.0348800272, 0.1100948006, -0.0199409258, -0.6193235517, 0.0314694308, -0.1231237352, -0.2005746961, 0.2724450529, -0.044091925, 0.1745684892, 0.2743967474, 0.0039637205, 0.1924757808, -0.0867021084, 0.0039487318, -0.5343647003, 0.4087269306, -0.1935027242, -0.0015834769, 0.0657611638, 0.0260758027, 0.4088338017, -0.1705583632, -0.135447368, 0.2723591328, -0.03044728, 0.2194172889, -0.1594222635, 0.1798699051, 0.2396044135, -0.4609464407, 0.0548014641, 0.4481232464, 0.1931598634, 0.0678294152, 0.0223197304, 0.1240768656, 0.1388749927, 0.1711906046, 0.0337423645, 0.2331715375, 0.1935804784, 0.0328347683, 0.0641198754, -0.1908415854, 0.3381065428, 0.4348167777, 0.1477683485, -0.2877870798, 0.1254890412, 0.1717786342, 0.1579681933, 0.000403447, -0.1441008449, -0.041201923, -0.4308425784, 0.0323523507, 0.212280184, -0.0631787926, -0.0784078389, 0.215416044, 0.1682800055, 0.0785731375, 0.0418807939, -0.2345798314, 0.2350733429, 0.2690866292, 0.296972841, 0.127782613, 0.0447369926, 0.1964009404, -0.101082854, -0.2479414344, -0.0026073859, 0.3132403791, -0.303660512, -0.080653578, -0.4067724049, -0.4931703508, -0.3470222056, 0.3208348155, -0.0742622688, -0.428763926, -0.0380097106, 0.2559500933, -0.0731310993, 0.2184458524, 0.0031273388, -0.0283502266, 0.194692567, 0.033001896, -0.4107177258, -0.1592383534, -0.2357390225, 0.1306862384, 0.1672375649, -0.0801032633, 0.3537474275, -0.1118827537, -0.1493056267, -0.4041170776, -0.2278539389, 0.3301376998, -0.0719802454, -0.0573168695, -0.0529667996, 0.4375871122, 0.0946544781, -0.0434463769, 0.1403905451, -0.3532882631, -0.2544418871, -0.0294814408, -0.1358547062, 0.0752244666, -0.141345039, -0.4217612445, -0.1067150831, -0.420099169, 0.0635844246, 0.4178262353, 0.0400256217, 0.1874126941, 0.1365330666, -0.0267468691, 0.1471457183, 0.147704035, -0.1003998518, -0.261390239, 0.2261002213, -0.293518573, -0.5474250317, 0.1274440587, -0.0443643034, 0.1247172877, 0.124836795, -0.392423898, -0.2617844045, 0.0056214738, 0.0976364315, -0.1082210019, 0.0930220336, 0.3413146436, -0.2386581898, -0.0822928548, -0.16942361, 0.1190401614, -0.1367995292, -0.3998410106, 0.0524378307, 0.1804440171, 0.1382700801, 0.1225860417, 0.7687298656, 0.3579525948, 0.0507151969, 0.3671432734, -0.1381762922, 0.1690455675, -0.2479785979, -0.1426580548, 0.0712149441, -0.0970467702, 0.1293080449, 0.1558946818, 0.0018559488, 0.0064684842, -0.3752077818, 0.0218864996, -0.3430136442, -0.3467526734, -0.2239151448, -0.2602978945, 0.2012772113, 0.0562706366, 0.2149015665, -0.1182131171, -0.2169912755, 0.4041283429, 0.2448420972, -0.1481075138, 0.0691577196, 0.1407704949, -0.0190534052, -0.4724653065, 0.3940321505, -0.0142133059, 0.2859475017, -0.0417824015, 0.0358071402, 0.2487137616, -0.0681168735, 0.6889996529, -0.3251387179, 0.4206538498, 0.1972279549, -0.0462064855, -0.660731554, -0.0523425713, -0.2130267918, -0.3342062235, 0.1213104054, -0.0070182816, -0.2690821886, 0.0571556799, 0.1548805982, 0.2165327966, -0.2043481767, 0.0553324968, -0.1759537607, -0.2674912214, -0.3443216383, -0.3518788815, 0.037466716, 0.2797245681, -0.0150197102, 0.1489972174, -0.0089721894, -0.1631559134, -0.2805142999, -0.019287033, 0.2171696723, 0.1714776456, 0.0829475895, 0.1588816345, 0.1498875767, -0.1948272735, 0.3201653659, 0.2080467939, -0.1252274662, 0.0073596514, -0.0473035239, -0.2837895751, 0.1828981489, -0.193384856, 0.0128355678, -0.0996270627, 0.0464163162, -0.0720029995, 0.2035223395, 0.2074017674, -0.3440106511, -0.2312786579, -0.403813988, 0.5444300175, 0.252613306, -0.0262381211, 0.3076671064, -0.0009519641, -0.1902513802, 0.4460685849, 0.2958392203, 0.8912937045, -0.1349669546, 0.0972502977, 0.2637420297, -0.0767778307, 0.5943505168, -0.5393851399, -0.0811296701, -0.3434041739, 0.0122680077, -0.0762895346, 0.074176982, 0.0045429771, -0.1735666394, -0.1231097803, 0.2047548741, 0.1592535526, 0.3647970557, -0.0245567039, 0.2681591511, 0.023859119, -0.109217152, -0.1305783987, 0.2020274848, 0.0211101361, 0.3256053627, -0.2123456299, 0.019462822, 0.0346320234, -0.2762016952, -0.5661534667, 0.03168552, -0.1806301624, 0.232372731, -0.3078186214, -0.5932388902, 0.0730021223, 0.2003040016, 0.2836862803, 0.073310703, -0.4586189985, 0.2051628083, -0.1952476352, -0.3088382185, -0.0517835766, 0.1367987692, 0.3653911352, -0.2657693028, -0.0762114748, 0.1815208048, -0.1009220034, -0.1591894329, -0.1651523709, -0.0721911862, 0.3516338468, 0.098751016, 0.2118074894, -0.0299975816, -0.0066653453, -0.3254671991, 0.2064984143, -0.2296013683, -0.0385322794, -0.0328091159, 0.1446695328, -0.2474954426, -0.1210442558, 0.6870861053, 0.0531186648, -0.0079508489, 0.4871322513, 0.3957451284, -0.1800927073, -0.2457108051, 0.1340183765, 0.0536626764, -0.4782197475, -0.0454987884, -0.095519416, 0.3379730582, -0.0826599374, 0.3830762208, 0.1347340792, -0.1513273567, 0.0563227348, -0.4389260411, -0.0864417627, 0.0403147005, -0.1971257031, 0.012416644, 0.0185800735, 0.3043411672, 0.1614205241, -0.1440281719, -0.3686389625, -0.0259951632, -0.0567494109, -0.0194921922, 0.2776865065, 0.0541330352, -0.0638787299, 0.0609738715, 0.1767490357, 0.1514950097, -0.2745372355, -0.2698667347, -0.1260654479, 0.0983710736, 0.0882042944, -0.282815516, 0.0137206996, -0.1947477758, -0.2212951779, 0.0231886711, 0.0539561696, 0.0675397143, 0.006266912, 0.2036111504, 0.1910476387, 0.4220826924, -0.4398251474, 0.1276288182, 0.0986940488, 0.449965626, 0.0726297796, 0.1687944233, 0.1307606548, -0.0423354767, -0.4793461859, -0.0344121791, 0.0527934507, 0.0229885541, 0.3434592485, -0.1036002189, 0.0552249998, 0.0496437103, 0.3991217613, 0.0798479989, -0.2671369612, 0.0648923665, 0.2630927861, 0.2374815792, -0.2556934953, 0.1134188175, 0.383789748, 0.1439079791, 0.0579061471, 0.0795610026, 0.320306927, -0.1223014072, 0.1428871155, 0.1269333363, 0.2926532328, -0.1901748031, 0.2066459507, 0.1494839787, 0.2561007738, 0.0296653491, -0.0874119848, 0.1589432806, 0.1757955998, 0.5897728801, -0.0716228262, 0.4057773352, -0.0376361981, -0.0390786566, -0.0150337061, -0.2731303573, 0.3489275575, 0.1539229751, 0.031703826, 0.0046970923, 0.0550856628, 0.1337787658, 0.0364202186, -0.0458928049, -0.3014927208, 0.1345720589, 0.0123656718, 0.0665062368, -0.5769987106, -0.2979729176, -0.0892765224, 0.0909048542, 0.0690569803, -0.3141440153, 0.2075218558, 0.2541768551, -0.2781584859, -0.4329790473, 0.1990080625, -0.010134113, 0.2543020844, -0.1433334798, 0.1692427993, 0.0009101057, -0.0855545551, 0.1017195731, 0.2056122869, 0.1872778088, -0.0463633761, -0.3102202713, -0.1799681336, 0.153676942, -0.0218792055, -0.1923207343, 0.0934408456, 0.018306531, 0.054502707, 0.4399303496, 0.2131348699, -0.2740662694, -0.1646485329, 0.2434628755, 0.269331485, -0.2313171625, 0.11167638, -0.2190252841, -0.0424372703, -0.1044177786, -0.0261226408, -0.4175270796, 0.2457725257, -0.0829848349, 0.1269378215, 0.1525842249, -0.242813617, 0.1203672364, -0.1169341058, 0.4890508354, 0.3297615647, 0.0657495409, -0.1941705793, -0.2948240042, -0.4759400785, 0.3133854866, 0.0367454924, -0.1781146675, -0.0181010198, 0.1567654312, -0.0471358448, 0.3549679518, 0.1983845383, -0.1114517376, -0.0295183808, 0.3974806368, -0.3343389332, -0.188674286, -0.0435339771, -0.0859553665, -0.1097753868, -0.1633729637, 0.099545598, -0.3035085201, 0.1426104456, -0.1288065314, -0.5236307383, 0.2412650883, -0.2654022276, 0.4500882328, -0.0961633697, 0.2885901928, -0.1438271999, -0.0286563635, -0.3720549941, 0.0022342838, -0.242900148, 0.2209536433, -0.2282951027, 0.229184702, -0.0588223524, -0.2202304602, -0.2594879866, 0.3514017761, -0.0942341536, 0.2570261359, -0.3603488207, 0.1378446966, -0.1802356392, 0.2087273896, -0.0214430001, 0.1211920679, -0.1348262429, 0.1644358933, -0.5382938385, -0.4863491654, 0.3303709328, -0.5342563391, -0.2488310635, -0.0534444563, 0.1410728097, -0.2187491208, 0.0480744392, -0.3636201322, 0.2276333719, 0.30186373, -0.152783379, -0.0484937765, 0.0143182036, -0.2734968662, 0.0584324934, -0.1012423411, 0.3022929728, 0.0364269689, -0.1629092544, 0.0253729019, -0.1646176428 ]
https://github.com/huggingface/datasets/issues/3763
It's not possible download `20200501.pt` dataset
> ```python > dataset = load_dataset("wikipedia", language="pt", date="20220220", beam_runner="DirectRunner") > ``` Thank you! I did not know that I can do this. I was following the example in the error message when I do not define which language dataset I'm trying to download. I've tried something similar changing the date in the `load_dataset` call that I've shared in the bug description. Obviously, it did not work. I need to read the docs more carefully next time. My bad! Thanks again and sorry for the noise.
## Describe the bug The dataset `20200501.pt` is broken. The available datasets: https://dumps.wikimedia.org/ptwiki/ ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("wikipedia", "20200501.pt", beam_runner='DirectRunner') ``` ## Expected results I expect to download the dataset locally. ## Actual results ``` >>> from datasets import load_dataset >>> dataset = load_dataset("wikipedia", "20200501.pt", beam_runner='DirectRunner') Downloading and preparing dataset wikipedia/20200501.pt to /home/jvanz/.cache/huggingface/datasets/wikipedia/20200501.pt/1.0.0/009f923d9b6dd00c00c8cdc7f408f2b47f45dd4f5fb7982a21f9448f4afbe475... /home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/apache_beam/__init__.py:79: UserWarning: This version of Apache Beam has not been sufficiently tested on Python 3.9. You may encounter bugs or missing features. warnings.warn( 0%| | 0/1 [00:00<?, ?it/s] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/load.py", line 1702, in load_dataset builder_instance.download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 594, in download_and_prepare self._download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 1245, in _download_and_prepare super()._download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 661, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/jvanz/.cache/huggingface/modules/datasets_modules/datasets/wikipedia/009f923d9b6dd00c00c8cdc7f408f2b47f45dd4f5fb7982a21f9448f4afbe475/wikipedia.py", line 420, in _split_generators downloaded_files = dl_manager.download_and_extract({"info": info_url}) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 307, in download_and_extract return self.extract(self.download(url_or_urls)) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 195, in download downloaded_path_or_paths = map_nested( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 260, in map_nested mapped = [ File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 261, in <listcomp> _single_map_nested((function, obj, types, None, True)) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 196, in _single_map_nested return function(data_struct) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 216, in _download return cached_path(url_or_filename, download_config=download_config) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 298, in cached_path output_path = get_from_cache( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 612, in get_from_cache raise FileNotFoundError(f"Couldn't find file at {url}") FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/ptwiki/20200501/dumpstatus.json ``` ## Environment info ``` - `datasets` version: 1.18.3 - Platform: Linux-5.3.18-150300.59.49-default-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 6.0.1 ```
85
It's not possible download `20200501.pt` dataset ## Describe the bug The dataset `20200501.pt` is broken. The available datasets: https://dumps.wikimedia.org/ptwiki/ ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("wikipedia", "20200501.pt", beam_runner='DirectRunner') ``` ## Expected results I expect to download the dataset locally. ## Actual results ``` >>> from datasets import load_dataset >>> dataset = load_dataset("wikipedia", "20200501.pt", beam_runner='DirectRunner') Downloading and preparing dataset wikipedia/20200501.pt to /home/jvanz/.cache/huggingface/datasets/wikipedia/20200501.pt/1.0.0/009f923d9b6dd00c00c8cdc7f408f2b47f45dd4f5fb7982a21f9448f4afbe475... /home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/apache_beam/__init__.py:79: UserWarning: This version of Apache Beam has not been sufficiently tested on Python 3.9. You may encounter bugs or missing features. warnings.warn( 0%| | 0/1 [00:00<?, ?it/s] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/load.py", line 1702, in load_dataset builder_instance.download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 594, in download_and_prepare self._download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 1245, in _download_and_prepare super()._download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 661, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/jvanz/.cache/huggingface/modules/datasets_modules/datasets/wikipedia/009f923d9b6dd00c00c8cdc7f408f2b47f45dd4f5fb7982a21f9448f4afbe475/wikipedia.py", line 420, in _split_generators downloaded_files = dl_manager.download_and_extract({"info": info_url}) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 307, in download_and_extract return self.extract(self.download(url_or_urls)) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 195, in download downloaded_path_or_paths = map_nested( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 260, in map_nested mapped = [ File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 261, in <listcomp> _single_map_nested((function, obj, types, None, True)) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 196, in _single_map_nested return function(data_struct) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 216, in _download return cached_path(url_or_filename, download_config=download_config) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 298, in cached_path output_path = get_from_cache( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 612, in get_from_cache raise FileNotFoundError(f"Couldn't find file at {url}") FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/ptwiki/20200501/dumpstatus.json ``` ## Environment info ``` - `datasets` version: 1.18.3 - Platform: Linux-5.3.18-150300.59.49-default-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 6.0.1 ``` > ```python > dataset = load_dataset("wikipedia", language="pt", date="20220220", beam_runner="DirectRunner") > ``` Thank you! I did not know that I can do this. I was following the example in the error message when I do not define which language dataset I'm trying to download. I've tried something similar changing the date in the `load_dataset` call that I've shared in the bug description. Obviously, it did not work. I need to read the docs more carefully next time. My bad! Thanks again and sorry for the noise.
[ -0.3223347962, -0.1315499097, -0.0983523205, 0.3211584985, 0.2504530549, 0.1500659734, 0.049723804, 0.4589627385, 0.092519775, 0.1612986773, 0.1003177986, 0.3547094464, 0.017580485, 0.1351880282, -0.0279240459, -0.4124293029, 0.0741506591, 0.0216097198, -0.1954785287, 0.0282271206, -0.2157016098, 0.1640369594, -0.1948073506, -0.1926060319, -0.0209508557, -0.0578750186, 0.1435266286, -0.0421195142, -0.2080962062, -0.2229805589, 0.1963418275, 0.0195767544, 0.1284812838, 0.478294611, -0.0001053136, 0.1754009724, 0.4400367737, -0.029065812, -0.3724502027, -0.1176923066, -0.1738840938, -0.1003985032, 0.1145684421, -0.2962556481, -0.1716281325, -0.2144687325, 0.0091437958, -0.2390602529, 0.5132163167, 0.2274698019, 0.3231375217, 0.4897454977, 0.3873957098, -0.2229727358, 0.4347150624, -0.1045805216, -0.1649616361, 0.0650640428, -0.0769871101, 0.2244311869, 0.163204819, 0.2718214393, -0.0501566269, -0.04824204, 0.2512193322, -0.3109746277, 0.0844579712, -0.4266613722, 0.2108000964, 0.2650676966, 0.8665360212, -0.1871126592, -0.1075498909, 0.0424292721, -0.0538321994, 0.0176126566, 0.2213539481, 0.1038814783, -0.213754952, 0.0224771146, 0.0820367932, -0.1347356737, -0.2055645734, 0.2402859926, -0.1167197526, 0.226953581, 0.0299351253, 0.1449249387, -0.1973688304, -0.0164675992, -0.0633136183, 0.0475634299, 0.1337090731, 0.0893886685, -0.2678211331, -0.0422386862, -0.1053920761, 0.1117191985, 0.1169947162, 0.145448789, 0.0958064422, 0.2617615163, -0.0914403722, -0.0378101692, 0.0341946594, 0.2339128554, -0.193585977, -0.0507198572, 0.1892337501, 0.2287674993, -0.0691932067, 0.0472607799, 0.0020272995, -0.2916690707, -0.2639906704, 0.1476930678, 0.1127632707, -0.0786188319, -0.0183902793, 0.0541395657, -0.2202122211, -0.0048258188, -0.2431866676, 0.2852349281, -0.0487259924, 0.3993786573, 0.2344820946, 0.1287544668, -0.2242076248, -0.4861931205, -0.1402330101, 0.1473303437, -0.1106378436, 0.0434009917, 0.1618033797, -0.2273460031, 0.2579298615, -0.0197152831, -0.053069666, -0.0251195878, -0.0087393923, 0.1091203168, -0.1057046801, 0.2762661874, 0.2591019273, 0.3945356905, 0.0405693837, 0.2590233982, 0.0018425654, -0.0212172084, -0.2165850252, -0.228581503, -0.2206410766, 0.2521072328, -0.0131895877, -0.0047373306, -0.2291078717, 0.0599273294, 0.0986430943, -0.0805993751, 0.0532946028, -0.1421764493, -0.3216169477, -0.3087880015, 0.4316567183, 0.4920252264, -0.4255307913, 0.1396028399, -0.0567286052, -0.0116972877, -0.0810581446, -0.0570175536, -0.1123930216, 0.3496842682, -0.2192973495, -0.1809514463, 0.2068289965, -0.3976506293, -0.2395832539, 0.0906253457, -0.0634689108, -0.1056228429, 0.1840570122, -0.0871480107, 0.154035151, 0.0485325865, -0.2306939662, 0.2110482007, 0.1371546537, -0.047936134, -0.3818024397, -0.2028018236, -0.0171982143, 0.0189916007, 0.3237563074, 0.1146466359, 0.1676121503, 0.5691860914, 0.4555255771, 0.0832127184, 0.1777919382, 0.40130952, -0.2085612863, -0.0413434803, 0.2671728134, -0.2288277447, -0.2487843186, 0.2187514156, -0.0757085159, 0.0348800272, 0.1100948006, -0.0199409258, -0.6193235517, 0.0314694308, -0.1231237352, -0.2005746961, 0.2724450529, -0.044091925, 0.1745684892, 0.2743967474, 0.0039637205, 0.1924757808, -0.0867021084, 0.0039487318, -0.5343647003, 0.4087269306, -0.1935027242, -0.0015834769, 0.0657611638, 0.0260758027, 0.4088338017, -0.1705583632, -0.135447368, 0.2723591328, -0.03044728, 0.2194172889, -0.1594222635, 0.1798699051, 0.2396044135, -0.4609464407, 0.0548014641, 0.4481232464, 0.1931598634, 0.0678294152, 0.0223197304, 0.1240768656, 0.1388749927, 0.1711906046, 0.0337423645, 0.2331715375, 0.1935804784, 0.0328347683, 0.0641198754, -0.1908415854, 0.3381065428, 0.4348167777, 0.1477683485, -0.2877870798, 0.1254890412, 0.1717786342, 0.1579681933, 0.000403447, -0.1441008449, -0.041201923, -0.4308425784, 0.0323523507, 0.212280184, -0.0631787926, -0.0784078389, 0.215416044, 0.1682800055, 0.0785731375, 0.0418807939, -0.2345798314, 0.2350733429, 0.2690866292, 0.296972841, 0.127782613, 0.0447369926, 0.1964009404, -0.101082854, -0.2479414344, -0.0026073859, 0.3132403791, -0.303660512, -0.080653578, -0.4067724049, -0.4931703508, -0.3470222056, 0.3208348155, -0.0742622688, -0.428763926, -0.0380097106, 0.2559500933, -0.0731310993, 0.2184458524, 0.0031273388, -0.0283502266, 0.194692567, 0.033001896, -0.4107177258, -0.1592383534, -0.2357390225, 0.1306862384, 0.1672375649, -0.0801032633, 0.3537474275, -0.1118827537, -0.1493056267, -0.4041170776, -0.2278539389, 0.3301376998, -0.0719802454, -0.0573168695, -0.0529667996, 0.4375871122, 0.0946544781, -0.0434463769, 0.1403905451, -0.3532882631, -0.2544418871, -0.0294814408, -0.1358547062, 0.0752244666, -0.141345039, -0.4217612445, -0.1067150831, -0.420099169, 0.0635844246, 0.4178262353, 0.0400256217, 0.1874126941, 0.1365330666, -0.0267468691, 0.1471457183, 0.147704035, -0.1003998518, -0.261390239, 0.2261002213, -0.293518573, -0.5474250317, 0.1274440587, -0.0443643034, 0.1247172877, 0.124836795, -0.392423898, -0.2617844045, 0.0056214738, 0.0976364315, -0.1082210019, 0.0930220336, 0.3413146436, -0.2386581898, -0.0822928548, -0.16942361, 0.1190401614, -0.1367995292, -0.3998410106, 0.0524378307, 0.1804440171, 0.1382700801, 0.1225860417, 0.7687298656, 0.3579525948, 0.0507151969, 0.3671432734, -0.1381762922, 0.1690455675, -0.2479785979, -0.1426580548, 0.0712149441, -0.0970467702, 0.1293080449, 0.1558946818, 0.0018559488, 0.0064684842, -0.3752077818, 0.0218864996, -0.3430136442, -0.3467526734, -0.2239151448, -0.2602978945, 0.2012772113, 0.0562706366, 0.2149015665, -0.1182131171, -0.2169912755, 0.4041283429, 0.2448420972, -0.1481075138, 0.0691577196, 0.1407704949, -0.0190534052, -0.4724653065, 0.3940321505, -0.0142133059, 0.2859475017, -0.0417824015, 0.0358071402, 0.2487137616, -0.0681168735, 0.6889996529, -0.3251387179, 0.4206538498, 0.1972279549, -0.0462064855, -0.660731554, -0.0523425713, -0.2130267918, -0.3342062235, 0.1213104054, -0.0070182816, -0.2690821886, 0.0571556799, 0.1548805982, 0.2165327966, -0.2043481767, 0.0553324968, -0.1759537607, -0.2674912214, -0.3443216383, -0.3518788815, 0.037466716, 0.2797245681, -0.0150197102, 0.1489972174, -0.0089721894, -0.1631559134, -0.2805142999, -0.019287033, 0.2171696723, 0.1714776456, 0.0829475895, 0.1588816345, 0.1498875767, -0.1948272735, 0.3201653659, 0.2080467939, -0.1252274662, 0.0073596514, -0.0473035239, -0.2837895751, 0.1828981489, -0.193384856, 0.0128355678, -0.0996270627, 0.0464163162, -0.0720029995, 0.2035223395, 0.2074017674, -0.3440106511, -0.2312786579, -0.403813988, 0.5444300175, 0.252613306, -0.0262381211, 0.3076671064, -0.0009519641, -0.1902513802, 0.4460685849, 0.2958392203, 0.8912937045, -0.1349669546, 0.0972502977, 0.2637420297, -0.0767778307, 0.5943505168, -0.5393851399, -0.0811296701, -0.3434041739, 0.0122680077, -0.0762895346, 0.074176982, 0.0045429771, -0.1735666394, -0.1231097803, 0.2047548741, 0.1592535526, 0.3647970557, -0.0245567039, 0.2681591511, 0.023859119, -0.109217152, -0.1305783987, 0.2020274848, 0.0211101361, 0.3256053627, -0.2123456299, 0.019462822, 0.0346320234, -0.2762016952, -0.5661534667, 0.03168552, -0.1806301624, 0.232372731, -0.3078186214, -0.5932388902, 0.0730021223, 0.2003040016, 0.2836862803, 0.073310703, -0.4586189985, 0.2051628083, -0.1952476352, -0.3088382185, -0.0517835766, 0.1367987692, 0.3653911352, -0.2657693028, -0.0762114748, 0.1815208048, -0.1009220034, -0.1591894329, -0.1651523709, -0.0721911862, 0.3516338468, 0.098751016, 0.2118074894, -0.0299975816, -0.0066653453, -0.3254671991, 0.2064984143, -0.2296013683, -0.0385322794, -0.0328091159, 0.1446695328, -0.2474954426, -0.1210442558, 0.6870861053, 0.0531186648, -0.0079508489, 0.4871322513, 0.3957451284, -0.1800927073, -0.2457108051, 0.1340183765, 0.0536626764, -0.4782197475, -0.0454987884, -0.095519416, 0.3379730582, -0.0826599374, 0.3830762208, 0.1347340792, -0.1513273567, 0.0563227348, -0.4389260411, -0.0864417627, 0.0403147005, -0.1971257031, 0.012416644, 0.0185800735, 0.3043411672, 0.1614205241, -0.1440281719, -0.3686389625, -0.0259951632, -0.0567494109, -0.0194921922, 0.2776865065, 0.0541330352, -0.0638787299, 0.0609738715, 0.1767490357, 0.1514950097, -0.2745372355, -0.2698667347, -0.1260654479, 0.0983710736, 0.0882042944, -0.282815516, 0.0137206996, -0.1947477758, -0.2212951779, 0.0231886711, 0.0539561696, 0.0675397143, 0.006266912, 0.2036111504, 0.1910476387, 0.4220826924, -0.4398251474, 0.1276288182, 0.0986940488, 0.449965626, 0.0726297796, 0.1687944233, 0.1307606548, -0.0423354767, -0.4793461859, -0.0344121791, 0.0527934507, 0.0229885541, 0.3434592485, -0.1036002189, 0.0552249998, 0.0496437103, 0.3991217613, 0.0798479989, -0.2671369612, 0.0648923665, 0.2630927861, 0.2374815792, -0.2556934953, 0.1134188175, 0.383789748, 0.1439079791, 0.0579061471, 0.0795610026, 0.320306927, -0.1223014072, 0.1428871155, 0.1269333363, 0.2926532328, -0.1901748031, 0.2066459507, 0.1494839787, 0.2561007738, 0.0296653491, -0.0874119848, 0.1589432806, 0.1757955998, 0.5897728801, -0.0716228262, 0.4057773352, -0.0376361981, -0.0390786566, -0.0150337061, -0.2731303573, 0.3489275575, 0.1539229751, 0.031703826, 0.0046970923, 0.0550856628, 0.1337787658, 0.0364202186, -0.0458928049, -0.3014927208, 0.1345720589, 0.0123656718, 0.0665062368, -0.5769987106, -0.2979729176, -0.0892765224, 0.0909048542, 0.0690569803, -0.3141440153, 0.2075218558, 0.2541768551, -0.2781584859, -0.4329790473, 0.1990080625, -0.010134113, 0.2543020844, -0.1433334798, 0.1692427993, 0.0009101057, -0.0855545551, 0.1017195731, 0.2056122869, 0.1872778088, -0.0463633761, -0.3102202713, -0.1799681336, 0.153676942, -0.0218792055, -0.1923207343, 0.0934408456, 0.018306531, 0.054502707, 0.4399303496, 0.2131348699, -0.2740662694, -0.1646485329, 0.2434628755, 0.269331485, -0.2313171625, 0.11167638, -0.2190252841, -0.0424372703, -0.1044177786, -0.0261226408, -0.4175270796, 0.2457725257, -0.0829848349, 0.1269378215, 0.1525842249, -0.242813617, 0.1203672364, -0.1169341058, 0.4890508354, 0.3297615647, 0.0657495409, -0.1941705793, -0.2948240042, -0.4759400785, 0.3133854866, 0.0367454924, -0.1781146675, -0.0181010198, 0.1567654312, -0.0471358448, 0.3549679518, 0.1983845383, -0.1114517376, -0.0295183808, 0.3974806368, -0.3343389332, -0.188674286, -0.0435339771, -0.0859553665, -0.1097753868, -0.1633729637, 0.099545598, -0.3035085201, 0.1426104456, -0.1288065314, -0.5236307383, 0.2412650883, -0.2654022276, 0.4500882328, -0.0961633697, 0.2885901928, -0.1438271999, -0.0286563635, -0.3720549941, 0.0022342838, -0.242900148, 0.2209536433, -0.2282951027, 0.229184702, -0.0588223524, -0.2202304602, -0.2594879866, 0.3514017761, -0.0942341536, 0.2570261359, -0.3603488207, 0.1378446966, -0.1802356392, 0.2087273896, -0.0214430001, 0.1211920679, -0.1348262429, 0.1644358933, -0.5382938385, -0.4863491654, 0.3303709328, -0.5342563391, -0.2488310635, -0.0534444563, 0.1410728097, -0.2187491208, 0.0480744392, -0.3636201322, 0.2276333719, 0.30186373, -0.152783379, -0.0484937765, 0.0143182036, -0.2734968662, 0.0584324934, -0.1012423411, 0.3022929728, 0.0364269689, -0.1629092544, 0.0253729019, -0.1646176428 ]
https://github.com/huggingface/datasets/issues/3762
`Dataset.class_encode` should support custom class names
Hi @Dref360, thanks a lot for your proposal. It totally makes sense to have more flexibility when class encoding, I agree. You could even further customize the class encoding by passing an instance of `ClassLabel` itself (instead of replicating `ClassLabel` instantiation arguments as `Dataset.class_encode_column` arguments). And the latter made me think of `Dataset.cast_column`... Maybe better to have some others' opinions @lhoestq @mariosasko
I can make a PR, just wanted approval before starting. **Is your feature request related to a problem? Please describe.** It is often the case that classes are not ordered in alphabetical order. Current `class_encode_column` sort the classes before indexing. https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_dataset.py#L1235 **Describe the solution you'd like** I would like to add a **optional** parameter `class_names` to `class_encode_column` that would be used for the mapping instead of sorting the unique values. **Describe alternatives you've considered** One can use map instead. I find it harder to read. ```python CLASS_NAMES = ['apple', 'orange', 'potato'] ds = ds.map(lambda item: CLASS_NAMES.index(item[label_column])) # Proposition ds = ds.class_encode_column(label_column, CLASS_NAMES) ``` **Additional context** I can make the PR if this feature is accepted.
62
`Dataset.class_encode` should support custom class names I can make a PR, just wanted approval before starting. **Is your feature request related to a problem? Please describe.** It is often the case that classes are not ordered in alphabetical order. Current `class_encode_column` sort the classes before indexing. https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_dataset.py#L1235 **Describe the solution you'd like** I would like to add a **optional** parameter `class_names` to `class_encode_column` that would be used for the mapping instead of sorting the unique values. **Describe alternatives you've considered** One can use map instead. I find it harder to read. ```python CLASS_NAMES = ['apple', 'orange', 'potato'] ds = ds.map(lambda item: CLASS_NAMES.index(item[label_column])) # Proposition ds = ds.class_encode_column(label_column, CLASS_NAMES) ``` **Additional context** I can make the PR if this feature is accepted. Hi @Dref360, thanks a lot for your proposal. It totally makes sense to have more flexibility when class encoding, I agree. You could even further customize the class encoding by passing an instance of `ClassLabel` itself (instead of replicating `ClassLabel` instantiation arguments as `Dataset.class_encode_column` arguments). And the latter made me think of `Dataset.cast_column`... Maybe better to have some others' opinions @lhoestq @mariosasko
[ 0.2142816782, 0.1198458225, 0.037366908, 0.1522609591, 0.4958594441, 0.2522532046, 0.2703294754, 0.1193562597, -0.0080505349, 0.1555159837, 0.0997143164, 0.6819637418, -0.2078863084, 0.1502426863, -0.0019546931, -0.381578207, -0.0769403875, 0.1150641069, 0.0382727794, -0.1266379654, -0.5918619633, 0.0843621343, -0.0431172289, -0.0488563962, 0.2126359791, 0.1786665618, -0.1444353163, -0.0375700034, -0.1010460034, -0.4944466054, 0.2601310313, 0.3219780326, 0.0603423342, 0.1679253578, -0.0001132682, -0.1458870322, 0.0484342091, -0.1210979745, -0.2965247333, -0.1377251148, -0.3188873529, -0.1178930849, -0.0366322957, -0.4444140792, -0.3508882523, -0.2777612209, -0.0685403571, -0.4826302826, 0.0836176053, -0.005638069, 0.1904549897, -0.1549182534, 0.0030024636, -0.027086338, 0.2087902576, 0.0995957851, -0.274699986, 0.1002702266, 0.1171549708, 0.4335010648, 0.0893096402, 0.2528913319, 0.1527300179, -0.1865806133, 0.2600386441, 0.0929135308, 0.0668613017, -0.1332461834, -0.0224749669, 0.246107325, 0.5489944816, -0.3130012453, -0.5099369884, -0.2149953693, 0.3963842392, -0.565867722, 0.1475607306, -0.1261349618, 0.1160878763, 0.1433751434, 0.0894639269, 0.1509577632, -0.1822506338, 0.2416145653, 0.0609130412, 0.3853313923, 0.0351398438, 0.0758772641, -0.0690695345, -0.3721624613, 0.1757057458, -0.1181850731, 0.0937393978, 0.372643292, -0.1408461779, -0.3940971494, -0.2346370369, 0.0429225117, -0.0542525053, -0.0465405807, -0.217223078, 0.1837758869, 0.1083922386, -0.1563539058, -0.0353703126, 0.2326710075, 0.4786263704, 0.5048440099, 0.0522279069, -0.1882353276, -0.0574567318, 0.0340484455, -0.1947537363, -0.0107835392, 0.0705340132, 0.1008756533, -0.2121281773, -0.0270977635, 0.0258330684, 0.0409336165, -0.1194201708, -0.1276465803, 0.2820829451, 0.2562931478, 0.2157824039, -0.0800997689, 0.0481548347, -0.0158714559, 0.2605398297, -0.0619272068, -0.0008739377, -0.2853641212, -0.0454696529, 0.3137901425, 0.1492078751, 0.1604561657, 0.1321532577, 0.0499260537, 0.1381317377, 0.0385924838, 0.0935083255, 0.2491879612, 0.3018963635, -0.0110323736, -0.537109077, 0.1373356283, 0.1046084985, -0.1213587299, -0.3480392992, 0.0585931651, -0.3317867815, -0.272619158, -0.212612167, 0.1371525526, 0.0765588582, -0.2250650972, -0.0237429366, 0.1588524729, 0.1473053694, -0.2210224569, 0.2615891099, -0.1096519232, -0.0577779599, -0.122965537, -0.0751860291, 0.0454393215, -0.1781571954, -0.2752506435, 0.0091316383, 0.3225807548, -0.0525450781, -0.0231512915, -0.1682666391, -0.2019845247, -0.0001981442, 0.134966433, 0.4088046253, -0.5234552622, -0.3348155022, 0.2049253881, 0.0296638869, -0.1650156379, 0.400321722, 0.39301759, 0.2978950143, -0.1434646398, 0.0454878695, 0.0848094895, 0.0833450481, -0.046175465, 0.054085657, -0.1036355644, 0.1421428323, 0.3145048022, -0.3679455221, -0.0592598431, -0.0726962686, -0.3528806567, 0.120321624, -0.5228552222, -0.0510085449, 0.1954845488, 0.1523634493, 0.2260256559, 0.2193584889, -0.180272162, -0.4045351446, 0.2722738683, 0.0026990478, -0.0288923085, -0.3709899187, -0.5830524564, 0.1547854245, -0.2022846639, -0.2566605508, 0.1615283191, 0.1073968038, -0.2175837606, 0.0607301965, -0.1856247932, -0.2682826817, 0.1365231574, -0.4409433603, 0.1465370059, -0.1091939658, -0.0415579267, 0.1466788948, 0.1549910456, -0.2915009856, 0.2358946651, 0.2502426505, -0.1970209181, -0.1352427155, 0.175786227, 0.0249099266, -0.4158195853, 0.0642362833, 0.0740887895, 0.1732276082, -0.2116239071, 0.0643905029, 0.0393561907, -0.0500578955, 0.0223079212, -0.5379953384, 0.8190423846, 0.0296633728, 0.3371778429, -0.0168892108, -0.0964746401, 0.1989938915, -0.1157380193, -0.3960898221, -0.4436720014, -0.0399343334, -0.0360510945, 0.3198301494, 0.0175572187, -0.4070633352, -0.0469870605, 0.5263606906, -0.086156249, 0.1677937806, -0.005196237, 0.0221058317, 0.3383099139, 0.201228857, 0.4741470218, 0.4069933593, 0.3024018705, -0.1070706993, -0.1383660883, -0.1391424239, 0.0761713386, 0.2465528697, -0.0011083967, -0.0065614739, -0.0556354299, 0.1261659563, 0.0452311635, -0.3460573852, -0.1896082014, 0.2333609909, -0.247706145, -0.2712045014, 0.0197743364, -0.1890390366, -0.1776490211, -0.1933490038, -0.2514460385, -0.0939442292, -0.0773804635, 0.166764155, -0.3894658685, -0.1566296816, 0.3322504759, -0.2205459177, 0.2487649322, -0.0182990991, -0.7132533789, 0.1443105042, -0.0455638953, -0.0218195319, 0.004472225, -0.1761298329, -0.1711091399, 0.4380057454, 0.0675216615, 0.1056764498, -0.2056948394, -0.6391490698, -0.0514014512, -0.2522767484, -0.0127527453, 0.160734877, -0.1884205192, -0.1346241236, -0.2061553597, 0.2510625422, 0.1966373771, -0.0753857195, -0.1115328893, 0.095838584, -0.1265328974, -0.2070449293, -0.4077898562, -0.203082785, -0.2222245783, 0.0842217654, 0.0706286877, 0.1926923841, -0.1502328664, -0.1104305163, 0.0490424298, 0.1959959269, -0.0179762822, -0.2137916088, -0.078123413, 0.4857035577, -0.4490322769, 0.0904125273, -0.1979989409, -0.2750655115, 0.084426485, -0.0468533151, 0.0337687843, -0.3244552314, -0.1313101202, 0.4166267514, 0.08637508, 0.0595877953, 0.31952402, 0.4379722774, -0.0235471297, -0.130113095, -0.3406272829, -0.0063252798, 0.317373991, 0.2342608273, 0.2345585078, 0.6384075284, -0.1062265933, 0.6462875009, 0.0792347342, -0.2054271251, 0.2693178952, 0.0688720942, 0.1810587347, 0.0083645061, -0.1503442526, -0.2884041965, 0.0864833966, 0.2274771631, 0.1793703437, 0.1310330629, -0.2379498184, 0.1531720906, 0.3449416459, -0.044505395, -0.1896436065, 0.1527766883, 0.0027105757, 0.1512118131, -0.2365426719, 0.1214719713, -0.4634621739, -0.1555531025, 0.0625983402, -0.0070444257, -0.2416999787, -0.1617485136, -0.198967427, -0.1561831981, -0.1377118975, 0.2732025981, 0.2745683193, -0.0032534329, 0.0382900834, 0.1802669466, 0.2572949827, 0.1230649874, 0.5576589108, -0.4669892788, -0.2479580492, 0.2276051491, 0.0803420767, -0.2284621596, 0.1755250096, -0.0926729068, 0.1182567254, -0.112317659, 0.1893757135, -0.3433396816, -0.3160597384, 0.4696247578, 0.0745149329, -0.2374422848, -0.3402201533, 0.0373685583, -0.0803373158, 0.0779634938, 0.0995296761, 0.2932961285, 0.2502276599, -0.0227270182, -0.0856686756, -0.1716752499, -0.1346888542, 0.219561711, -0.0083821742, 0.026497703, 0.4301477373, 0.2649893761, 0.0535988249, 0.0376371555, 0.1513751298, 0.6257622242, -0.3463911414, -0.5766125321, -0.3386726379, -0.347431004, 0.4388113916, 0.3372241855, -0.0368675254, 0.191978693, -0.0902716741, -0.0755666941, -0.2111816555, -0.2466004491, 0.3402822316, -0.0972720087, -0.5199818611, -0.4400395453, 0.8224515319, 0.0399580225, -0.2888569236, 0.4297609031, 0.4113038182, -0.7420064211, 0.339595437, 0.2836204767, 0.8213863373, -0.0260956958, 0.2181414813, -0.1230790317, -0.2013518065, 0.3889389634, 0.4460786581, 0.2987995744, -0.2917973399, -0.1967000514, -0.0555934086, 0.092132628, 0.2845472991, 0.4342535734, -0.1903721392, 0.3279314935, -0.2010219246, 0.0290045626, -0.1882771552, 0.1695853621, 0.0187837053, -0.4413187206, -0.1961881369, 0.1212467477, 0.2431225479, -0.2421829998, -0.0202103164, -0.1708866656, 0.070589453, -0.1235570014, -0.0199818835, -0.1840671897, -0.1847522706, 0.0882067233, 0.0147589752, -0.2571643293, 0.4954272807, 0.3048222661, 0.2996885777, 0.2057580799, -0.0778564513, 0.1955557317, 0.1574322581, 0.4113332629, -0.1528254151, -0.019826781, 0.3098897934, 0.2164802253, 0.1380375475, -0.0172646232, 0.2029067129, -0.5788190961, -0.1622230113, -0.1324891299, 0.3844146132, -0.3914904594, 0.0504794605, -0.0911057815, -0.0829696506, -0.2111149579, 0.1424375921, -0.0826528594, -0.1086241975, 0.1546887606, -0.0604389124, -0.0417897403, 0.0036459488, 0.2827926874, 0.2249643803, 0.0319593213, 0.4441243708, -0.1089461371, -0.1172239929, -0.2109756619, 0.1873462796, 0.2736065686, -0.3744893372, 0.2433530241, 0.4055205882, 0.0269375127, 0.081334129, 0.0358676203, 0.1885353476, 0.1847837716, -0.186092183, 0.2238697708, -0.2648982108, 0.0996043235, 0.4547300935, 0.519506216, -0.3500597179, -0.0129378261, -0.1830922514, -0.0738696977, -0.3264280558, 0.1730877459, -0.0602035299, 0.1098100916, 0.2860860825, 0.5301564336, 0.1259196103, 0.1603232473, 0.1703274101, -0.1296727657, -0.0787977427, -0.1781091541, -0.2663146853, 0.1083801463, 0.1349699199, 0.3180662394, -0.1195909157, -0.402964294, -0.0685315058, -0.3026853502, 0.0696914196, 0.1749812663, 0.0388148651, 0.3110002279, 0.1368968189, 0.0798749924, 0.0342454426, 0.0877721906, -0.1348977089, 0.1245568693, 0.1867605746, 0.1202878878, -0.1416214556, 0.0760406256, 0.021101065, 0.0975148082, -0.0672532842, -0.3293175697, 0.1826695502, -0.2820991278, -0.0097889714, 0.5578942895, 0.1167015433, 0.1421775818, -0.2390803546, -0.2876550555, 0.3592203856, 0.1731317937, -0.2152604461, -0.2340575606, 0.0667083785, 0.0775975287, 0.1738836765, 0.3720025122, 0.0452157147, 0.1215345338, 0.1224864274, -0.3198025823, 0.264954716, -0.182195574, 0.418480128, 0.2906997502, 0.0837626383, -0.0357446186, 0.5106421113, 0.1457571685, 0.1744213402, 0.2278391868, -0.0509797893, 0.1699454188, 0.148007378, 0.1270163357, 0.076442197, 0.2105516493, 0.3488151729, 0.0903883278, 0.055742614, 0.3655653298, 0.2690055072, 0.1499694288, -0.4272339642, -0.1963186413, -0.2447099984, 0.0023037216, 0.0031789304, -0.2817180753, -0.1328143626, -0.1007887647, 0.038365107, -0.1942312121, -0.2916113436, -0.3837638795, 0.2078783661, -0.0576076843, 0.2998335063, -0.5084849, -0.0504780598, -0.1161444113, 0.5494155884, -0.0940751359, 0.1232699528, 0.0508481264, 0.095204249, 0.3284400403, -0.1423713714, -0.1642005295, 0.1191020086, -0.0326766185, -0.1450962275, -0.0517938212, -0.0124858599, 0.0717417002, 0.0368779413, -0.2093182802, -0.1741162539, 0.1622219384, 0.1349263638, -0.2068627626, -0.0366891138, 0.1890722513, 0.3788641393, -0.1893444061, 0.459581852, 0.0552261584, -0.1539688259, -0.074116379, -0.1329210699, -0.0849131271, -0.1743146479, 0.1748066992, -0.0735594183, -0.1230924055, 0.132196337, 0.0876767561, 0.0217520166, 0.1993378401, 0.1031731516, -0.2711187303, -0.1646804661, 0.0310154501, -0.2219110131, 0.0445849374, 0.1004313082, -0.2911731899, 0.1991185397, 0.1040682793, 0.2123815715, -0.2031181902, 0.0925178006, -0.4745561182, 0.0069195228, 0.1470934451, -0.2025036514, -0.0411310531, 0.2666657865, 0.1818297356, -0.0203515086, -0.2413834184, -0.2141763717, 0.1101743802, -0.1107199788, -0.3052105606, 0.3355009854, -0.0130168526, -0.2916565835, 0.3982560039, -0.1314392686, 0.3342365623, 0.1538145691, -0.0672750846, 0.3246157467, -0.2081137449, -0.250790745, 0.4699624777, 0.114646554, 0.3958506286, -0.0019871988, -0.3435615301, -0.0626825839, 0.0369625352, -0.008019547, 0.1358032078, -0.1609823108, 0.4387699664, -0.1639512926, -0.1617016047, -0.0646749213, 0.0620962046, 0.087021634, 0.2554238737, 0.2145738751, -0.4991483986, 0.2806159556, -0.5358155966, -0.2394578904, 0.2109432518, 0.257124573, 0.0381327234, 0.1507383585, -0.2163868099, 0.048756443, 0.3981359601, -0.0822351798, -0.1791850477, 0.3209507167, 0.0249785762, -0.0107428413, -0.1062198877, 0.0644273385, -0.044535514, 0.0695313886, -0.3131474853, -0.3263744712 ]
https://github.com/huggingface/datasets/issues/3762
`Dataset.class_encode` should support custom class names
Hi @Dref360! You can use [`Dataset.align_labels_with_mapping`](https://huggingface.co/docs/datasets/master/package_reference/main_classes.html#datasets.Dataset.align_labels_with_mapping) after `Dataset.class_encode_column` to assign a different mapping of labels to ids. @albertvillanova I'd like to avoid adding more complexity to the API where it's not (absolutely) needed, so I don't think introducing a new param in `Dataset.class_encode_column` is a good idea.
I can make a PR, just wanted approval before starting. **Is your feature request related to a problem? Please describe.** It is often the case that classes are not ordered in alphabetical order. Current `class_encode_column` sort the classes before indexing. https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_dataset.py#L1235 **Describe the solution you'd like** I would like to add a **optional** parameter `class_names` to `class_encode_column` that would be used for the mapping instead of sorting the unique values. **Describe alternatives you've considered** One can use map instead. I find it harder to read. ```python CLASS_NAMES = ['apple', 'orange', 'potato'] ds = ds.map(lambda item: CLASS_NAMES.index(item[label_column])) # Proposition ds = ds.class_encode_column(label_column, CLASS_NAMES) ``` **Additional context** I can make the PR if this feature is accepted.
47
`Dataset.class_encode` should support custom class names I can make a PR, just wanted approval before starting. **Is your feature request related to a problem? Please describe.** It is often the case that classes are not ordered in alphabetical order. Current `class_encode_column` sort the classes before indexing. https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_dataset.py#L1235 **Describe the solution you'd like** I would like to add a **optional** parameter `class_names` to `class_encode_column` that would be used for the mapping instead of sorting the unique values. **Describe alternatives you've considered** One can use map instead. I find it harder to read. ```python CLASS_NAMES = ['apple', 'orange', 'potato'] ds = ds.map(lambda item: CLASS_NAMES.index(item[label_column])) # Proposition ds = ds.class_encode_column(label_column, CLASS_NAMES) ``` **Additional context** I can make the PR if this feature is accepted. Hi @Dref360! You can use [`Dataset.align_labels_with_mapping`](https://huggingface.co/docs/datasets/master/package_reference/main_classes.html#datasets.Dataset.align_labels_with_mapping) after `Dataset.class_encode_column` to assign a different mapping of labels to ids. @albertvillanova I'd like to avoid adding more complexity to the API where it's not (absolutely) needed, so I don't think introducing a new param in `Dataset.class_encode_column` is a good idea.
[ 0.1994744539, -0.011508828, 0.0501547083, 0.1014922857, 0.3611449003, 0.2609219551, 0.216787979, 0.0255505983, 0.0818392411, 0.1173066869, 0.0086970218, 0.6595108509, -0.1692370623, 0.1270328313, 0.0471642241, -0.3817214668, -0.0801749378, 0.0698388517, 0.1967081875, -0.0349071547, -0.6529201865, 0.1542599946, 0.0237761494, -0.0882007629, 0.2193386108, 0.0926609263, -0.1380749792, 0.0285090785, -0.025103217, -0.5012537837, 0.2955211103, 0.3677635193, -0.0302146021, 0.1586485952, -0.0001164297, -0.1592451334, -0.0390073918, -0.1422562599, -0.2330770791, -0.2812615335, -0.2510818839, -0.0613144599, -0.0078857616, -0.3740585744, -0.3851582408, -0.2750991881, -0.051229883, -0.3772493005, 0.1344210654, -0.0315015092, 0.1564963609, -0.1278664023, 0.0498933345, -0.1175783873, 0.1249239743, 0.110107474, -0.1956813037, 0.1239768341, 0.1516650617, 0.3846848309, 0.1421045363, 0.3117635846, 0.1245168671, -0.1664245725, 0.4047248662, 0.0738308504, 0.0522133335, -0.0629912913, -0.0451523885, 0.1754329801, 0.4312140644, -0.3508841395, -0.5304557681, -0.2970795035, 0.3410783708, -0.6122490168, 0.0023100099, -0.1541726887, 0.1518127024, 0.128978461, 0.0822415799, 0.0607073121, -0.1696060896, 0.2751834691, 0.1457082927, 0.3369253874, 0.0023263355, 0.0657431111, 0.0213723388, -0.4121974111, -0.0621267632, 0.0281974152, 0.1231581941, 0.430745095, -0.1275951415, -0.3845307827, -0.2077282816, 0.0550974794, -0.0074021067, -0.0131241791, -0.208295837, 0.1597567946, 0.0843081772, -0.164991796, -0.0553759038, 0.3089483678, 0.4909810722, 0.5153465867, -0.0111445766, -0.0544978827, -0.0215956476, 0.0445814095, -0.1205638573, 0.0353208482, 0.0434343033, 0.0468759574, -0.1335152239, -0.0627339184, -0.0273763593, 0.0273605473, -0.1142203063, -0.0404042378, 0.2779925466, 0.3559278846, 0.2354695946, -0.1715616733, 0.1534449905, 0.0353323743, 0.2233296335, 0.0280966219, 0.0010064718, -0.2548135221, 0.008728548, 0.418813765, 0.1724846363, 0.1152442172, 0.2061411142, 0.0345039926, 0.0313945599, 0.0539998598, 0.0785697401, 0.3354118466, 0.3290558755, 0.0157281291, -0.4670563936, 0.1688414067, 0.0923545733, -0.2490222752, -0.3754130304, -0.0442442074, -0.3989107609, -0.34588328, -0.1658121198, 0.1205370128, 0.0915280357, -0.2843419611, 0.0025381572, 0.2375996262, 0.1715295166, -0.1984177828, 0.2595563233, -0.0174195003, -0.1553352326, -0.1106025726, -0.1657954454, 0.1600831896, -0.0977771729, -0.4272375703, 0.0385399833, 0.3133598566, -0.1017802209, 0.0106944591, -0.0737822726, -0.2740504742, 0.0066263676, 0.0605077669, 0.2585881948, -0.6207511425, -0.3050142825, 0.14708893, -0.0404560454, -0.1262490749, 0.3811636269, 0.399444133, 0.2366112918, -0.1276562065, 0.2627563179, -0.1032154337, 0.1515903771, -0.0436860397, 0.0909379795, -0.0666123033, 0.0202771332, 0.3606597483, -0.4370361567, -0.0547472276, -0.131660223, -0.3559800684, 0.0620941594, -0.4586586058, -0.1240822524, 0.1442603618, 0.1717093885, 0.2610209286, 0.212727204, -0.2261275649, -0.5414167643, 0.2412896752, 0.0403056666, 0.0238801669, -0.2919271886, -0.5915958285, 0.1253410876, -0.2035531998, -0.2175077796, 0.1247741282, 0.0706059858, -0.2701054811, 0.1429549605, -0.2614475191, -0.2889049351, 0.1415313482, -0.4437042177, 0.2632510066, -0.2415954471, -0.105437547, 0.1996426433, 0.1404079795, -0.2319160998, 0.2162283808, 0.2609142959, -0.1734913886, -0.0140674906, 0.2107859105, 0.1290740967, -0.3676989377, 0.0656200796, 0.1517665833, 0.2081336677, -0.1174639389, -0.0170769095, 0.0618752837, -0.1151873395, 0.0476102605, -0.4791372716, 0.8631468415, 0.0483665988, 0.4055611193, 0.0307702515, -0.0947129875, 0.1682965457, -0.1313536912, -0.4411601722, -0.4517973661, 0.0224072337, -0.1297756135, 0.3244472444, -0.0481364615, -0.4404685199, 0.0403982289, 0.3754481971, -0.0665905401, 0.1068370864, -0.0359653234, -0.0158759374, 0.4167141318, 0.1897067577, 0.4448104203, 0.3876834214, 0.343678236, -0.1918572783, -0.0934874266, -0.1758311689, 0.020655429, 0.1779721528, 0.0826763958, -0.1529403478, -0.0511568971, 0.1316679269, 0.0094401771, -0.3825458586, -0.2453685999, 0.103790544, -0.2218340933, -0.3362734318, -0.0070992596, -0.1039489061, -0.1925698668, -0.1904395521, -0.4223112464, -0.146153897, -0.0669543967, 0.2642042637, -0.3179000318, -0.1915756911, 0.3298574984, -0.1969031543, 0.2837179303, -0.0512493663, -0.7253998518, 0.0953957513, -0.0241138991, 0.0929552987, -0.0121494001, -0.2248562276, -0.1700676829, 0.4998140633, -0.0160034783, 0.1314121783, -0.1698043793, -0.6717210412, -0.067653738, -0.2346889973, 0.0249618683, 0.2994852364, -0.1668725312, -0.1296283305, -0.2076130211, 0.2870745063, 0.1730613261, -0.0870910808, -0.2753002048, 0.0281671938, -0.11209286, -0.2392706275, -0.3698709011, -0.1595624387, -0.2344537973, 0.2363276184, 0.1610908806, 0.2554936111, -0.0221758932, -0.1338854283, 0.0559523627, 0.1440363377, 0.0058545275, -0.2290516496, -0.109880574, 0.4167484045, -0.4332852066, 0.1441313028, -0.1687249243, -0.2919518352, 0.0854344964, -0.0820280313, 0.1217223331, -0.4521837533, -0.1092750132, 0.331948787, 0.0719299912, 0.1048817709, 0.3265847266, 0.3692308962, -0.0220491905, -0.1383684576, -0.3641903102, 0.0708301365, 0.3147133887, 0.1764396727, 0.1937412024, 0.5414772034, -0.1310503036, 0.8178834915, 0.1473555565, -0.2775661647, 0.2606445551, 0.0499274991, 0.2039220184, 0.0331512652, -0.2426365912, -0.4365831614, 0.1202866882, 0.2557067275, 0.1431248933, 0.1439080983, -0.1547962427, 0.1218375713, 0.3099111915, -0.0714699775, -0.1607639343, 0.012576839, 0.1885071248, 0.1674535125, -0.1896686852, 0.1572744697, -0.5025138259, -0.1400519162, 0.0882036462, 0.1679020673, -0.1979416609, -0.138599813, -0.2768437862, -0.2437977493, -0.2628283799, 0.3703602254, 0.3293679059, -0.1148295105, 0.0585359409, 0.1228848025, 0.1963686645, 0.1185058355, 0.565841794, -0.3620701432, -0.2840893567, 0.1503405422, 0.0050596721, -0.2597845197, 0.2466664165, 0.0075609153, 0.0875871778, -0.0713794455, 0.3976120651, -0.3842643499, -0.3231085241, 0.3585306406, -0.1065733954, -0.2113912851, -0.3775030077, 0.0010322708, -0.1228874624, -0.011405414, 0.1549082994, 0.2738305628, 0.1843690276, 0.0546768643, -0.126364097, -0.0235619042, -0.181123212, 0.256280005, -0.0409093276, 0.067355521, 0.4946123064, 0.2485378236, 0.1640015692, 0.0506049059, 0.1716302633, 0.606528163, -0.3519494832, -0.5332884789, -0.3332331181, -0.1596911848, 0.3754948974, 0.3161771297, 0.0631303415, 0.2885524631, -0.0220583118, -0.0178317372, -0.2103923559, -0.1940362155, 0.2570599616, -0.1241917163, -0.4752033651, -0.419259876, 0.814321816, 0.0949472189, -0.2723510265, 0.4104840755, 0.5151718855, -0.6999381781, 0.2657297254, 0.1922354996, 0.8076406121, -0.0435458086, 0.216648221, -0.1026448756, -0.2605630159, 0.4591667354, 0.4763659239, 0.2953577936, -0.3208667338, -0.1967274398, -0.0381878354, 0.0479041785, 0.209636718, 0.3127002418, -0.1178872585, 0.3558552563, -0.139689222, -0.0151667204, -0.2214434296, 0.2238803059, -0.0274033621, -0.5046264529, -0.3017518818, 0.0790260807, 0.2318748236, -0.0866179168, -0.0772422254, -0.1155774295, 0.0360140093, -0.1885253936, 0.0413040444, -0.2777726352, -0.1813406646, 0.0273819547, 0.1013796926, -0.1111918911, 0.3974643052, 0.2376340926, 0.2275343835, 0.1086022407, -0.1188760549, 0.2408852875, 0.0755186751, 0.3268612921, -0.2083389908, -0.0130351223, 0.3106968403, 0.233312726, 0.1896757782, -0.0370196253, 0.1975402534, -0.531617105, -0.3184776306, -0.1673814803, 0.297626555, -0.391934365, 0.076712057, -0.1458420008, -0.102506645, -0.1930883974, 0.0935263336, -0.0295526758, -0.0780200064, 0.0585672483, -0.065192543, -0.0348341092, -0.0604273267, 0.3494132459, 0.1288437843, 0.0480931737, 0.4240677655, -0.1101820543, -0.098228462, -0.1512959898, 0.0528210849, 0.331433475, -0.4115732014, 0.2601147294, 0.5096982121, 0.0836257786, 0.1543245763, 0.1225351393, 0.2107931226, 0.181474939, -0.0738745108, 0.2236796916, -0.2732087076, 0.1620537639, 0.3623110056, 0.5439691544, -0.247505039, -0.0303672962, -0.2163095623, 0.0022232838, -0.2930590808, 0.1350466609, -0.0459264182, 0.0779063404, 0.3408795297, 0.4686255753, 0.159436956, 0.1590198576, 0.1280723065, -0.0784695074, -0.1273024529, -0.1571983993, -0.2759414613, 0.1232654378, 0.1572218537, 0.3227643967, -0.1419028342, -0.3069370389, -0.03169626, -0.2432240546, 0.152550891, 0.2242454439, 0.0350830629, 0.2624157667, 0.082917884, 0.1454205066, 0.0380887426, 0.1452256441, -0.0325769708, 0.0603407025, 0.1325969398, 0.0086371005, -0.3284147382, 0.086027354, 0.1578469276, 0.1782962233, 0.0604500733, -0.3426167071, 0.1284067482, -0.2462955117, -0.1212152988, 0.5334882736, 0.1266908795, 0.1472263187, -0.1850955337, -0.2004207969, 0.3222845197, 0.150774464, -0.19149068, -0.1450062692, 0.1387271434, 0.0723451972, 0.2192281187, 0.4213682711, 0.0313324966, 0.1234031022, 0.2002245188, -0.2787539959, 0.2434927523, -0.1217047796, 0.4035921395, 0.2405170351, 0.0675163269, -0.0497302786, 0.5413528681, 0.2344328761, 0.2593270242, 0.0953945369, -0.1265278012, 0.2397662252, 0.1110810861, 0.1175895408, 0.1494225562, 0.2031771988, 0.2169347107, 0.1237047687, 0.153582707, 0.4240371585, 0.2387571931, 0.2650876343, -0.4004442096, -0.1929916888, -0.1906971633, 0.0919683576, -0.0058677075, -0.3419079781, -0.172501713, -0.0846758336, 0.0691294968, -0.2123412043, -0.2062604725, -0.483394444, 0.2347959131, -0.141928792, 0.3220943809, -0.5453612208, -0.2271683961, -0.0086913574, 0.5639975071, -0.0359412432, 0.1083067432, 0.0270619188, 0.0202353224, 0.3442847133, -0.1548275501, -0.1394641846, 0.0357446, -0.0089673232, -0.0703750253, -0.0154130254, 0.0111264978, 0.175290212, 0.0567652807, -0.2153337449, -0.2670870721, 0.1580953002, 0.1062509492, -0.201849103, -0.0711918101, 0.0667403266, 0.4466890991, -0.2264137566, 0.5022773147, -0.1184982583, -0.1393323541, -0.0686040819, -0.0664385855, -0.0771845728, -0.1234577075, 0.0442146137, -0.0830245316, -0.1507985145, 0.05709913, 0.0649542287, -0.011081255, 0.1407167166, 0.0926506817, -0.2185570151, -0.1862807423, -0.0074824807, -0.2142311782, 0.0267651938, 0.1522356868, -0.1578130722, 0.1132312268, 0.0951975137, 0.1998800933, -0.2126282007, 0.1293051541, -0.5245037675, 0.0611480288, 0.1793039143, -0.1484098881, 0.0545695648, 0.1338531524, 0.0794076771, 0.0856018066, -0.1487886757, -0.2610061467, 0.0510411896, -0.165795967, -0.2948490381, 0.4454254508, -0.0427854322, -0.2189050913, 0.3568892181, -0.1630392969, 0.323739171, 0.1251823157, -0.0700494274, 0.3438672125, -0.1917207241, -0.2867570519, 0.4124634266, 0.0692438334, 0.4043569267, 0.029972855, -0.3345487416, -0.0197016262, 0.0696969181, 0.0557687841, 0.0715607107, -0.1567438692, 0.4436010718, -0.2116921693, -0.2037787586, -0.0627761111, 0.1093960926, 0.1653560698, 0.2806289792, 0.1797266304, -0.5023599863, 0.3972162902, -0.5298249125, -0.1826788932, 0.238515839, 0.2748613358, 0.1242213994, 0.0844211802, -0.2495780736, 0.0291052684, 0.4088213444, -0.066857256, -0.143221736, 0.3402162492, -0.0615680516, -0.0759647489, -0.1593260765, 0.0646734163, 0.0668294653, 0.1003050357, -0.2279975563, -0.3212228119 ]
https://github.com/huggingface/datasets/issues/3761
Know your data for HF hub
Hi @Muhtasham you should take a look at https://huggingface.co/blog/data-measurements-tool and accompanying demo app at https://huggingface.co/spaces/huggingface/data-measurements-tool We would be interested in your feedback. cc @meg-huggingface @sashavor @yjernite
**Is your feature request related to a problem? Please describe.** Would be great to see be able to understand datasets with the goal of improving data quality, and helping mitigate fairness and bias issues. **Describe the solution you'd like** Something like https://knowyourdata.withgoogle.com/ for HF hub
26
Know your data for HF hub **Is your feature request related to a problem? Please describe.** Would be great to see be able to understand datasets with the goal of improving data quality, and helping mitigate fairness and bias issues. **Describe the solution you'd like** Something like https://knowyourdata.withgoogle.com/ for HF hub Hi @Muhtasham you should take a look at https://huggingface.co/blog/data-measurements-tool and accompanying demo app at https://huggingface.co/spaces/huggingface/data-measurements-tool We would be interested in your feedback. cc @meg-huggingface @sashavor @yjernite
[ -0.3963146806, -0.0736383349, -0.1237246543, 0.1050194204, 0.0630106181, -0.0145143811, 0.2699152827, 0.1131124198, 0.1065848023, 0.2636403143, -0.3267324865, -0.1532196701, 0.0692762211, 0.4747779667, -0.0134505834, -0.1142124981, -0.2324718088, 0.1944876462, 0.0803603828, -0.176984027, 0.1699628085, -0.1711479872, 0.0211761575, 0.0995174423, -0.60984689, 0.0705922171, -0.1411768198, -0.0050635617, -0.2851909399, -0.2975116074, 0.2473820448, 0.4578740299, 0.1814621389, 0.2692100704, -0.0001104553, -0.21148628, 0.0523196831, 0.0581695512, -0.4578669667, -0.0860475302, -0.2705906928, -0.3002129495, 0.0032504771, -0.0384185053, -0.3150332272, 0.1614974737, -0.0816920251, -0.0439913906, 0.1214514747, 0.2187340856, 0.1968490481, 0.105437912, -0.2005292922, -0.2695748806, 0.3094192743, 0.6460174918, -0.2446856797, 0.320762217, 0.1585765183, 0.0502378941, -0.2009473294, 0.2209306806, 0.1261990219, 0.138008222, 0.3638703823, -0.1263352036, 0.1509282887, -0.1592461914, -0.0917791948, 0.596208334, 0.5488875508, -0.321987927, -0.1290796697, -0.348544091, 0.1193653941, -0.0650614128, -0.2540889978, -0.0133074475, -0.070911333, 0.1603650302, -0.3807995915, -0.2596646845, -0.1414429843, 0.0014084168, -0.2033818215, 0.2138518542, -0.126827687, -0.1725281179, -0.204085812, -0.1553886384, 0.1961255819, -0.1476756483, -0.2364298403, 0.0473385602, -0.2543337047, -0.4555943012, 0.0879931301, 0.2927354574, 0.4601931274, -0.0038032255, -0.1685991436, 0.2518623769, -0.2686483562, 0.0819254369, 0.2586745024, 0.2681621015, 0.2968077064, -0.0827036873, 0.2030721158, 0.0196255408, 0.0687802657, -0.1333270073, 0.142429322, 0.2262052, -0.1941072345, 0.1280177981, 0.1577503979, -0.3380930424, -0.2874175608, 0.1310552061, 0.0213162918, -0.2953250408, 0.14958781, 0.3666906357, -0.0920436084, 0.0772700086, -0.3807794154, 0.0454478078, -0.4073558152, -0.4666422606, -0.0883804336, -0.0437030345, -0.0572020486, 0.3531489074, 0.2578467131, -0.0044804448, 0.1127008125, -0.1192919835, 0.3543578982, -0.0825685486, -0.0675521195, -0.3095180392, 0.0196289774, -0.0588921048, 0.0924188793, -0.2304058671, -0.0439560786, 0.037666671, -0.2729401886, -0.0723589212, -0.5348195434, -0.1314200759, -0.2467662692, 0.1556681693, -0.1885914952, -0.0478625968, -0.1184985191, 0.4340596199, -0.6380153298, 0.018505862, 0.0759640485, 0.2857381403, -0.0979846269, -0.0748628005, -0.0200202949, 0.1305890381, -0.028817758, -0.0895018727, -0.1012431532, -0.1744846255, -0.2467111498, -0.1205346733, -0.0811385065, 0.5512628555, 0.1831772327, 0.2461316884, 0.5587682724, -0.3146606386, -0.3454687297, -0.1056710109, -0.1315702945, -0.2003775537, -0.2354129404, 0.1397603005, 0.2201767862, -0.0911231712, -0.1321878731, 0.2006244659, -0.1095291525, -0.1147195399, -0.0875850692, -0.5095509291, -0.2541005909, 0.4228591621, -0.0137606757, -0.1226796731, 0.4569852054, -0.1722930521, 0.3830962181, -0.1871405989, 0.0654541701, 0.1070736423, 0.6713404655, -0.0217528436, 0.1182616055, -0.283126384, -0.1163902879, -0.1810672134, -0.4476463497, -0.0154931704, 0.3170079887, -0.3514837325, -0.2028462887, -0.1009231135, 0.1017564684, 0.0126079097, 0.1425056458, -0.0783693939, 0.0737244487, -0.0950776264, -0.1036516502, 0.2694586217, 0.0271320865, 0.1122317538, 0.0569986217, 0.3282533884, 0.2686973214, 0.0848985091, 0.2177216858, 0.2612024844, 0.3305560946, 0.1854700297, -0.1302484721, 0.0276788436, -0.0408410951, 0.2083742917, 0.4806386828, 0.4418453574, 0.25643453, -0.1620481908, 0.421431005, -0.3161505759, 0.1303661317, 0.1452960223, -0.1537406445, 0.456726402, -0.0023867839, -0.0426083207, -0.2604029477, -0.1023777798, -0.043182496, -0.2546567619, 0.1074384972, -0.066419594, 0.0813019872, 0.0574359335, -0.2701697648, -0.0759691, 0.1906603724, 0.1724664867, 0.7007101178, -0.0350392982, 0.2735841274, 0.3277400732, -0.2679318488, -0.1680096686, 0.3586314321, -0.5513663292, 0.3498135507, 0.3079098165, -0.0487259254, 0.0605247468, 0.0758541599, 0.014708166, -0.1775684208, -0.0587854274, -0.1199877411, 0.076988332, 0.1040265113, 0.0907485634, -0.1294606626, 0.0228867996, -0.1884040087, 0.1286716014, -0.2276967019, -0.1165640727, 0.1156290621, 0.0262429807, 0.2995963991, -0.2965705395, -0.1101019382, -0.3458281159, 0.3402063251, 0.1546087563, 0.1311721802, -0.1041299552, -0.060572058, 0.6101967692, -0.2093175948, 0.194153145, -0.1625244915, -0.2238500565, -0.1283456683, 0.2374227047, -0.3000531197, 0.4039722085, 0.4197968841, -0.1369404942, 0.4623514414, -0.4072710872, -0.3816152811, 0.1672981977, 0.172684148, 0.3860486448, -0.0337029546, -0.0025465488, -0.150712043, 0.1148760319, 0.032685142, -0.042916853, -0.099514164, -0.1463334411, -0.2261656076, 0.0575711206, 0.0858471468, 0.1165301055, -0.270697087, -0.2441540509, 0.2910347581, -0.0687462986, 0.1996828169, -0.3011395633, -0.2399310321, -0.0171301756, -0.3362052739, 0.0264944267, -0.5019542575, -0.353682816, -0.0663436875, -0.3607816696, 0.1194062978, -0.1711220294, -0.1772164851, -0.259042263, -0.0920009166, -0.3715353906, -0.5157129169, -0.1142654195, 0.4577440321, -0.0908503756, 0.0163605027, 0.0686133727, -0.1132050529, -0.0392685421, -0.0509725697, -0.1802969426, -0.2776987851, 0.3256565332, 0.2548721731, 0.0891497657, -0.2517935336, 0.0301126968, 0.275287956, 0.1845427901, -0.2485366464, 0.3889386952, 0.0736231953, -0.0301569011, -0.0485251024, -0.0436454304, 0.3714606464, -0.0381027162, 0.2787555754, 0.4558655322, 0.1200046539, 0.0412170775, -0.1730170995, -0.5110936761, -0.3710024953, -0.3047996163, 0.1507560164, -0.1909838617, 0.0204404946, -0.1074012816, 0.1574157178, -0.1566227525, -0.4457570016, 0.3156988919, 0.1620695144, 0.0930390731, -0.1123246178, 0.0850148275, -0.0737928599, -0.1820689291, 0.2652742267, -0.1543183923, -0.0278254636, -0.3771049678, 0.3625585735, 0.0871756151, 0.0258937106, 0.1234643981, -0.3632541895, -0.0396311656, -0.1225393042, 0.1159057692, 0.2661861777, 0.1899841875, -0.1363398433, 0.0144873327, -0.4790895581, 0.4287661314, -0.3026422262, -0.2053075284, 0.414880693, -0.0766167343, -0.2361679375, -0.1862663776, 0.3964485228, 0.0696055293, -0.1227247939, 0.1158322245, -0.1709119678, -0.0376656987, -0.1422701329, 0.0915012732, -0.0371495001, 0.2661992311, 0.3172501028, 0.0656358674, 0.0994394869, 0.1557018012, -0.0661829188, 0.4301076829, 0.1401277184, 0.2933888137, 0.5383508801, 0.3852155507, -0.2351843417, 0.0875734165, 0.0771544427, 0.2898902893, 0.4703855515, 0.3951529264, 0.4282988906, -0.2040853351, 0.3661581874, -0.6333680153, -0.0362391956, -0.0183010809, 0.0006076123, -0.377178967, 0.0860929713, 0.522710979, -0.2479719073, -0.3148554564, 0.146684885, 0.3106210232, -0.1554021388, 0.0297950022, 0.2715204656, 1.2758601904, 0.3346042633, -0.0415679589, -0.108883813, -0.52906394, 0.0420479067, -0.642580986, -0.0708269477, -0.415934056, -0.1762777716, -0.2189973444, 0.0575026534, 0.2292497456, 0.0648414046, -0.1711465865, 0.0684287101, -0.1034125537, 0.2333254665, -0.0406291075, 0.453381598, -0.3653173745, -0.2619473338, 0.0904302299, 0.2358888239, -0.179022342, 0.1963465959, -0.0780909285, -0.1118840054, -0.1322990954, 0.0744710937, -0.3165937364, -0.2951544225, -0.1173359826, -0.1468140781, -0.1396570951, -0.1375685334, 0.2277683467, -0.4868989289, 0.5668458939, 0.3059842587, -0.3876733482, 0.3005319238, -0.0531956106, 0.296094507, 0.0049059908, -0.0196371581, 0.1636601239, -0.1742377579, -0.5251134634, 0.1742185801, 0.2276888192, -0.1931134611, -0.3311000466, -0.1517866552, -0.0504296161, -0.4023540914, 0.1484210789, 0.0360602401, 0.1012236252, 0.0307265837, 0.1267927885, 0.3902892768, 0.0510600656, 0.3751858473, 0.4152304232, -0.2031604648, -0.3529792428, -0.0438126028, 0.1135441139, -0.2084983587, -0.0477797799, -0.3419665992, -0.4336899817, -0.2822927237, 0.2887037694, 0.3999453187, -0.254758954, -0.2863470316, -0.0344553255, -0.0670892149, -0.0717613846, 0.112273857, 0.0142109301, -0.0863125324, -0.071772851, -0.3279624879, -0.1114497408, 0.128241241, -0.034765169, 0.2179676294, -0.2570182383, 0.0041030757, 0.015176855, 0.4164691865, -0.3803330362, 0.0872127712, -0.0877241492, 0.126951322, -0.4381038547, 0.1437452734, -0.0046068816, -0.0706467405, 0.0066591068, 0.0254625119, -0.3083499968, -0.2053801864, -0.2878899574, 0.1664507538, 0.0114836115, 0.0915330648, -0.1436909288, -0.0002362696, 0.138766095, -0.0087305997, 0.324320823, 0.1954883933, 0.2135765254, 0.1710703671, 0.3810710013, -0.2147465795, -0.1141885072, 0.0610275753, 0.3813074827, 0.2457609177, 0.0339260474, 0.0132674333, -0.3356490433, 0.0716941506, 0.1089270785, 0.378423363, 0.6679797173, -0.1903315932, 0.0941583142, 0.224660337, 0.1221054792, 0.0779509693, 0.1204791144, -0.1689838767, -0.1417815983, -0.0675346479, 0.1659146845, 0.2423736304, -0.095881924, -0.1115466133, 0.1941768229, -0.1346789449, 0.1654005051, 0.0600924231, 0.4070246518, 0.5865747333, 0.0037999458, -0.192361623, 0.084309563, 0.0862038136, -0.0793491602, 0.0325846821, -0.1970134526, 0.0793793797, 0.4172932506, -0.0211647246, 0.1463100612, 0.0320631936, -0.0289320946, 0.27190727, -0.102393277, 0.0371580161, 0.3433224857, -0.0015151625, 0.1378625929, 0.0473167449, -0.1959466189, -0.067116119, 0.0856571496, 0.2462570518, -0.1010463536, -0.3152311444, -0.2635422051, -0.0668612123, -0.0679354295, 0.1134725213, -0.0826351494, -0.2124326527, -0.3815369308, -0.118914485, 0.0045584175, -0.2801684141, 0.2433903664, -0.0815017223, -0.0447461493, -0.1243830398, 0.1884823591, 0.2080281675, 0.3303650618, -0.0511024855, 0.063482672, 0.0204328168, 0.2762004137, 0.1292466968, 0.5659990311, 0.1185286641, -0.1200825348, -0.1398994923, -0.0910329744, -0.0179789998, -0.1252647042, 0.1482147723, 0.0334030986, 0.1604709625, -0.3092851937, 0.2920197845, 0.2203609347, -0.1549024582, 0.3438459635, 0.0679854527, 0.1413878351, -0.224295035, 0.3742382228, 0.263348192, -0.017170934, 0.0299119782, -0.5417194366, -0.058821898, -0.1597824693, 0.4046857655, -0.2027956396, 0.1922889352, -0.204962343, 0.0882667005, -0.0659623146, 0.1223084405, 0.3333798647, 0.0099603571, -0.202320978, 0.1486388892, -0.0863733515, -0.0973340273, -0.1301953793, -0.0128487768, 0.2783581018, -0.1528620422, -0.0199708957, 0.5075443387, 0.0702518374, -0.2061481327, 0.4593521953, 0.1780445129, -0.4968381524, 0.1824987829, -0.1847186238, 0.1246223152, 0.1142789051, -0.2005380541, 0.2603673935, 0.3112650812, -0.1095928401, -0.0591783077, 0.2208833247, 0.5243647695, -0.2295682132, 0.2404159009, -0.1178356633, 0.4039086998, -0.1012348756, 0.2109928429, 0.1347864419, 0.0089684874, 0.062139418, -0.1340492666, 0.0562843755, 0.2799188197, 0.1294533908, -0.310530901, 0.1493015289, 0.2136453986, -0.0111198816, 0.0683185086, 0.0386572443, 0.0358312912, -0.1250508577, -0.0724149048, 0.1181967929, 0.1217571422, 0.0685735643, 0.0391151085, 0.1456439346, -0.0946307182, 0.3385010958, 0.1865912825, -0.2133263499, -0.0851817355, 0.1782128364, 0.1430538148, -0.2052113265, -0.4435226023, 0.0988690108, 0.3731255233, -0.0728254318, 0.43318367, 0.3575356007, 0.2056473643, 0.0786294788, -0.1541561335, 0.2526371181, -0.0112112705, 0.0252575651, 0.0144679155, -0.0648151934 ]
https://github.com/huggingface/datasets/issues/3760
Unable to view the Gradio flagged call back dataset
Hi @kingabzpro. I think you need to create a loading script that creates the dataset from the CSV file and the image paths. As example, you could have a look at the Food-101 dataset: https://huggingface.co/datasets/food101 - Loading script: https://huggingface.co/datasets/food101/blob/main/food101.py Once the loading script is created, the viewer will show a previsualization of your dataset.
## Dataset viewer issue for '*savtadepth-flags*' **Link:** *[savtadepth-flags](https://huggingface.co/datasets/kingabzpro/savtadepth-flags)* *with the Gradio 2.8.1 the dataset viers stopped working. I tried to add values manually but its not working. The dataset is also not showing the link with the app https://huggingface.co/spaces/kingabzpro/savtadepth.* Am I the one who added this dataset ? Yes
54
Unable to view the Gradio flagged call back dataset ## Dataset viewer issue for '*savtadepth-flags*' **Link:** *[savtadepth-flags](https://huggingface.co/datasets/kingabzpro/savtadepth-flags)* *with the Gradio 2.8.1 the dataset viers stopped working. I tried to add values manually but its not working. The dataset is also not showing the link with the app https://huggingface.co/spaces/kingabzpro/savtadepth.* Am I the one who added this dataset ? Yes Hi @kingabzpro. I think you need to create a loading script that creates the dataset from the CSV file and the image paths. As example, you could have a look at the Food-101 dataset: https://huggingface.co/datasets/food101 - Loading script: https://huggingface.co/datasets/food101/blob/main/food101.py Once the loading script is created, the viewer will show a previsualization of your dataset.
[ -0.223268941, 0.2325305343, -0.0110236229, 0.2548342645, 0.3060579896, 0.0665645227, 0.2348560393, 0.1697472632, 0.2746147215, -0.0533599406, -0.1771443486, -0.0381931439, 0.0027865963, 0.4267014563, 0.2530887127, 0.0522453599, -0.153499186, 0.1182006449, 0.1701424569, 0.0125863878, -0.2683134973, 0.2380132377, -0.1195153892, 0.1153142154, -0.2246491611, 0.0540646166, -0.222152099, 0.2882741094, -0.0357892476, -0.7269410491, 0.2688295841, 0.1008931249, 0.241821155, 0.2583762407, -0.0001173583, 0.068580389, 0.1504652202, 0.0047391579, -0.1543880105, -0.2066152543, -0.1847144067, -0.0234070681, -0.1018436551, -0.1230687797, -0.1462362856, -0.1759957075, 0.0461725183, -0.283216238, 0.4049437046, 0.4927226007, 0.1559614539, -0.2044287622, 0.2890429497, 0.0141595481, -0.0672295094, 0.2113845795, -0.1334389001, 0.5739279985, 0.0474997647, 0.1514245123, 0.0191142801, 0.3796469867, -0.081358172, -0.0963578969, -0.0903597474, 0.0664437339, -0.280043751, -0.1984884143, 0.3041895926, 0.299939543, 0.1790111065, -0.2032228112, -0.232834205, -0.1878045648, -0.0034729822, -0.2430411577, 0.1743436009, 0.2462928593, 0.0204741061, 0.2794747353, 0.0476729535, -0.1487330794, -0.3537659347, 0.0850845352, 0.1180775464, 0.1318291426, -0.3084254861, 0.1592902839, 0.2029700577, 0.0396698602, -0.066140458, 0.0114556374, -0.1107373908, 0.4870331287, -0.2697901726, 0.0997570902, 0.0076625021, -0.0117901871, 0.3366318345, 0.2756704092, 0.1029513925, 0.4244580865, -0.5077238679, 0.0506366119, 0.0031294515, 0.3459876478, -0.1616286933, 0.3083766997, 0.2562057972, 0.2994396389, 0.0188850835, -0.3352856636, -0.393797189, -0.3211246729, -0.3213727474, -0.2481214553, 0.4478253424, -0.3830254972, -0.2394227087, 0.0119960811, -0.1634792238, 0.1062586829, 0.100505732, 0.444042325, -0.2126118243, -0.0848663449, 0.02176008, 0.216922313, -0.0278868955, -0.1857383698, -0.0233246759, -0.1887133867, -0.2635329068, 0.0942476764, 0.2408312261, -0.6852359176, 0.2260890305, -0.0085343188, 0.0483279228, -0.1837014258, 0.1153894365, -0.2965949178, 0.2857237756, 0.1369061619, 0.2160936296, -0.0213473253, 0.4333181977, -0.0907780528, -0.0469295494, 0.0493253022, -0.233206585, -0.3324980736, -0.0331557319, 0.0467105918, -0.2658885717, -0.0363950543, -0.3644175529, 0.0499450117, -0.1571863145, -0.0424341522, -0.1737412214, 0.0913805366, -0.1725120246, -0.1199294403, 0.1877600849, 0.4912396371, -0.448124975, 0.0269683693, -0.1140902936, -0.1950129271, 0.1463065743, 0.2433988601, -0.0606691912, -0.1030856073, -0.5621888041, -0.1346483231, 0.4389083982, -0.2690855265, -0.3104189336, 0.3690235317, 0.1863685846, -0.1457635164, 0.1101445854, -0.0198731944, 0.0989930108, 0.0726993829, -0.286950618, 0.2799250782, 0.0043990086, 0.1313338876, -0.1227486283, 0.0226173736, -0.0722091272, 0.3319077492, 0.0549509265, 0.3823471069, -0.0442865193, -0.663688004, 0.3664290607, 0.101268664, 0.2579705715, 0.0452075191, 0.4702093303, 0.1018154249, 0.2246048152, 0.2069888264, 0.0120938364, 0.0443136506, 0.1548019201, -0.0969983414, -0.1400927305, -0.0550968461, -0.647036016, 0.0345385894, -0.6484574676, -0.1217187047, 0.0802809373, 0.1820611805, 0.1640734076, 0.1559739709, -0.0407055318, 0.4125806391, -0.0582307093, 0.2296516597, 0.3504905999, 0.4423344433, 0.0344961472, -0.1398502588, 0.3506864607, 0.2469945103, 0.3728479445, -0.0465437211, -0.0558961369, 0.2757009566, 0.1043039858, 0.103980884, 0.3791214228, 0.0908162221, 0.2374054044, -0.3996451497, 0.3543222547, 0.2943777442, 0.1492917687, -0.0770459399, -0.2967156768, 0.5092844963, -0.2310053855, 0.3395954967, 0.0916907862, 0.372915715, 0.3647018075, 0.0167041142, -0.3174301386, -0.229989782, -0.0217842348, -0.1126789004, 0.499037683, -0.251150012, -0.4656226635, 0.1113343015, 0.2283938229, 0.165318653, -0.045123741, 0.0729337037, -0.2342651933, -0.2003446817, 0.283562839, 0.3241271079, 0.3055170774, 0.1476501971, -0.1512640268, 0.2032776475, -0.2450992763, 0.0433249362, 0.0539908037, -0.0355381556, 0.0777641013, -0.0019179279, 0.0214922037, -0.1434227675, -0.4333277345, -0.3832737505, 0.0056677898, 0.156854853, -0.1197746396, 0.1387521327, 0.0865328982, -0.1778239459, -0.3514600992, -0.7123860121, -0.2882328331, -0.5359945893, -0.2259773463, -0.0016601365, 0.1491825432, 0.1904276907, -0.3356094956, 0.0635358766, 0.0681796968, 0.2959434688, -0.1466710269, -0.1047258005, -0.2506569326, 0.0849616602, 0.0572647527, -0.211351037, 0.4585691988, 0.0164625794, 0.1704449505, -0.4744024277, -0.3207755089, 0.0914768502, 0.0003832109, 0.131787762, 0.2183985263, 0.1941765547, -0.0734316185, 0.1294006556, 0.165624544, 0.0924106166, 0.0568946078, -0.0468301065, -0.1467055678, 0.159445554, 0.2061176449, -0.2005698979, -0.1527276486, -0.1977152079, 0.0750453472, 0.2885046303, 0.3088776171, 0.36163041, 0.2198669463, 0.2353667021, -0.0982185006, -0.0274823382, -0.3389935791, -0.5254960656, 0.2810798585, -0.5583062768, -0.4558729231, 0.5759150386, -0.0090004597, 0.7289667726, -0.3596385717, -0.3475443721, 0.0073763588, -0.0285629984, 0.0153461248, -0.1253418177, -0.230570212, 0.0007981661, 0.0136250351, 0.0617781356, -0.082061179, -0.0324183926, 0.0570018068, -0.2491078675, 0.2349509597, 0.1203951463, 0.2949601412, 0.0099289538, 0.5285851359, 0.2331915349, 0.0689080656, 0.481039077, -0.2604554594, 0.3955311775, -0.158684507, -0.4191873372, 0.1965837628, 0.137296319, 0.1980239898, 0.0231628921, 0.2892250121, 0.324616015, -0.1924740821, 0.1333793551, -0.316334486, -0.1935454011, -0.2994049489, -0.0227411538, 0.196100235, -0.0843989477, -0.0873682201, -0.2739627957, -0.0601598695, -0.1701660007, 0.4140901864, 0.3409306109, 0.0678794682, -0.3958409131, -0.0651742145, -0.2217948437, 0.2109859884, -0.3073545992, -0.0261318404, -0.0282827616, 0.008127613, 0.1280889064, -0.016310852, 0.7415673733, 0.1822287291, 0.0194873065, 0.1924943924, -0.2106544673, -0.3165812194, 0.0225542467, 0.2348392457, -0.1129028201, -0.0074308272, 0.1596815288, -0.0219536889, 0.0702586398, 0.439889133, -0.0945333838, -0.3293756545, -0.0023442996, -0.1305492967, -0.0858124122, -0.2240431607, -0.158038944, -0.1613303721, 0.1253338158, -0.0102301762, -0.0695233494, -0.058494322, -0.3399876952, -0.1630181521, 0.069110781, 0.412278831, 0.1320344806, 0.2561835051, 0.2981352508, 0.2673624456, 0.4044295847, 0.6411066651, 0.3189276159, -0.385293752, 0.0749829859, -0.0680090263, 0.1871797442, 0.1336318254, -0.1692250222, -0.0205621868, 0.0479381308, 0.094957374, -0.3294845521, 0.1251805127, 0.2591316104, 0.0768248588, -0.3720611036, -0.4694220424, 0.3538602293, -0.2271859646, -0.1627003551, -0.0166302733, 0.1343072951, -0.1579209268, 0.1723617762, 0.0245904922, 1.1552115679, -0.051292669, 0.2435121238, 0.2920275331, -0.405056119, 0.1530576348, 0.1914740503, -0.2520581484, -0.3084851801, -0.053469453, -0.1312715411, -0.110536404, 0.5139786601, 0.1960935295, -0.3187624812, 0.0511337854, 0.2711720467, -0.0221715812, -0.0827645957, -0.0368820354, -0.1464824975, -0.2225924432, -0.6927568316, 0.1068399251, -0.1165882424, 0.2914837599, 0.0565693788, -0.0521639995, 0.0560151786, 0.1086504087, -0.2762004137, 0.16920425, -0.2335061878, -0.2285179794, 0.2185068876, -0.202136144, -0.0508454219, 0.2462064326, 0.4559255838, 0.1031103209, -0.2658053339, 0.2382641137, -0.2006265372, -0.1197423264, -0.1772334129, 0.0361943655, 0.0811780021, -0.146064803, -0.3130387068, 0.3962849379, 0.0418813191, -0.0936827958, -0.5745797753, -0.2144836187, -0.0794295222, -0.4203712642, -0.0958799496, -0.0214815103, 0.0418352634, -0.2532936335, 0.0770391151, 0.3467947245, -0.0431760699, -0.0970669985, 0.1439456046, 0.030174857, -0.0519113205, 0.6204332113, -0.0246216115, 0.0983273014, 0.3250930607, 0.2486408502, 0.0332299173, -0.1163660809, 0.0019809336, 0.0946567655, -0.2277282923, -0.0257658437, 0.0943836197, 0.1581875533, -0.0862157568, 0.1699594706, 0.1051419377, -0.0008273672, -0.2007205188, -0.4471417964, -0.5254158378, -0.0822658986, -0.0853645802, 0.1480172276, -0.1948471069, -0.0056529706, 0.1822773814, -0.0586966313, -0.2590916455, 0.1500477344, -0.1030230895, -0.0354804024, 0.1675852537, 0.0491602793, 0.3184027374, -0.0621495694, 0.0122055802, -0.0803713575, -0.0698416829, -0.0439178199, -0.0998533368, 0.1460792571, 0.3677513897, -0.2374614924, -0.1156858653, -0.1351804286, -0.3590944111, 0.0431508236, 0.3035710156, 0.2928432822, -0.0246419031, -0.0241431687, -0.2692676485, -0.1754659265, 0.1033005044, -0.196982801, -0.2054936588, 0.1211176589, 0.4730401039, -0.0143442843, -0.2595532537, -0.2257069349, -0.0336793177, 0.1547751874, -0.1673654169, -0.1711139977, 0.6843500733, -0.369612515, 0.1296527982, 0.2338170707, 0.5076851845, 0.0080884984, -0.026517842, 0.095875226, 0.2623981237, 0.0590272024, -0.5685032606, -0.0862161368, -0.3892858326, -0.2202741653, 0.0931663886, 0.016214557, -0.2888646722, 0.1160240173, 0.3279744089, 0.0415332243, 0.713065505, -0.0589929968, 0.0970617011, 0.2223400027, -0.2769885063, 0.3141688108, 0.2254915386, 0.2115833014, 0.0493281223, 0.1421177387, -0.5433084369, 0.3266734779, 0.090918757, 0.2509935498, 0.2844135761, -0.4290730655, -0.2799462676, 0.4872626662, -0.5883181095, -0.0608176962, -0.2000321895, 0.4988726974, 0.0833259374, 0.0443677306, -0.2367097139, 0.2358053178, 0.09276288, -0.067331709, -0.6013824344, -0.206524834, -0.2018716335, 0.0719557628, 0.1066710055, -0.243457213, 0.0965197012, -0.1812690645, -0.2366075814, -0.2332416028, -0.248249203, 0.2245886624, -0.0460742638, 0.015439772, 0.1403727978, 0.0421961248, 0.2005425394, 0.3862484694, 0.5190147758, 0.2646828294, -0.1114787459, 0.4841714799, 0.0200371519, -0.0577794053, -0.1803649962, -0.0243722834, 0.1424517632, 0.1654569209, 0.0846956447, 0.1482489705, 0.0454905368, -0.0093561988, 0.3873774409, -0.2075345665, 0.1247954294, -0.0225041546, 0.1017935947, -0.1893930286, -0.1764193028, -0.2508028746, -0.085657157, -0.276658833, -0.5245234966, 0.1643704474, -0.022135485, 0.1485107988, -0.2064479291, 0.0383275189, 0.1005410552, 0.2524728477, 0.3601358533, -0.2632072866, -0.1502423584, -0.2685252428, -0.21570158, 0.0808064565, 0.0626610145, -0.0658645332, -0.0501288772, -0.3010756671, -0.069954358, 0.051911056, 0.3778146207, 0.1223099232, 0.1180136204, -0.0020520184, -0.0603959672, -0.1148485839, 0.1491140127, 0.1048454046, -0.2937401235, -0.2233168781, 0.2080693394, 0.3452411294, -0.0108943488, 0.1053342894, 0.1379918903, -0.3581685424, -0.0475216247, 0.3889166117, 0.003859512, 0.0882442817, 0.0992397591, 0.1342821121, -0.3811458349, -0.2300374657, -0.037283577, 0.0917596072, 0.0909361094, 0.3286303878, -0.0082937246, -0.337169528, -0.2949157953, -0.2025149763, 0.070818603, 0.0116210505, -0.126150012, 0.3335936666, -0.0707612783, -0.0619727336, 0.2063096911, -0.0010966905, -0.0032991034, -0.0506754965, -0.1311807185, -0.183544457, 0.360614717, -0.1419260949, 0.0591225699, 0.0773538128, 0.2530929744, -0.1670261323, -0.1821799874, -0.2252850533, 0.1782524735, 0.3841969371, 0.1669474542, -0.0551155545, 0.1892523915, -0.1035555303, 0.1356945783, -0.03671946, 0.2642782927, 0.1214615405, 0.137607336, 0.014121471, -0.0125833871 ]
https://github.com/huggingface/datasets/issues/3760
Unable to view the Gradio flagged call back dataset
@albertvillanova I don't think this is the issue. I have created another dataset with similar files and format and it works. https://huggingface.co/datasets/kingabzpro/savtadepth-flags-V2
## Dataset viewer issue for '*savtadepth-flags*' **Link:** *[savtadepth-flags](https://huggingface.co/datasets/kingabzpro/savtadepth-flags)* *with the Gradio 2.8.1 the dataset viers stopped working. I tried to add values manually but its not working. The dataset is also not showing the link with the app https://huggingface.co/spaces/kingabzpro/savtadepth.* Am I the one who added this dataset ? Yes
22
Unable to view the Gradio flagged call back dataset ## Dataset viewer issue for '*savtadepth-flags*' **Link:** *[savtadepth-flags](https://huggingface.co/datasets/kingabzpro/savtadepth-flags)* *with the Gradio 2.8.1 the dataset viers stopped working. I tried to add values manually but its not working. The dataset is also not showing the link with the app https://huggingface.co/spaces/kingabzpro/savtadepth.* Am I the one who added this dataset ? Yes @albertvillanova I don't think this is the issue. I have created another dataset with similar files and format and it works. https://huggingface.co/datasets/kingabzpro/savtadepth-flags-V2
[ -0.2301910073, 0.2327462584, 0.0179117899, 0.2585228384, 0.3205563724, 0.0420707278, 0.2842933834, 0.1822576374, 0.1492127776, -0.0256717186, -0.2615859509, -0.042633757, -0.0275215041, 0.2540270984, 0.2023277283, 0.1306377351, -0.1105965972, 0.0396924876, 0.4807675779, -0.0408443287, -0.2699691653, 0.2151138484, -0.2170588225, 0.1796570718, -0.142670393, 0.1199335009, -0.143300876, 0.1607237458, 0.0692558512, -0.7044491172, 0.3042166233, 0.1342082173, 0.1566877663, 0.271909833, -0.000125643, 0.1057000309, 0.3615066409, 0.0437329598, -0.1210340112, -0.046163056, -0.2936054766, 0.1221994311, -0.1436011642, -0.0530824289, -0.2181892246, -0.1527151763, -0.0472903699, -0.4126576483, 0.3029298782, 0.4316345751, 0.0654765368, -0.1427521855, 0.3596259356, 0.004167032, 0.0082747471, 0.2960892618, -0.1556779295, 0.6021965146, 0.2040902972, 0.3086088896, 0.0858709961, 0.2976694703, -0.0923876837, -0.2209959626, -0.1152255163, -0.1514524072, -0.2680232525, -0.0633780509, 0.332337141, 0.25429672, 0.2575377822, -0.1446803659, -0.22918275, -0.1874717772, 0.0283186324, -0.1558132917, 0.1971017718, 0.1401868463, 0.0795740113, 0.2590261102, 0.0682756007, -0.3026802838, -0.311386019, 0.1596666276, 0.0800454319, 0.1994846463, -0.3224803805, 0.2667939067, 0.1054664552, 0.04482086, -0.0200009886, 0.019222511, -0.1947362423, 0.376008749, -0.2039402276, 0.0839921609, 0.0140834376, 0.0548822992, 0.2495446503, 0.2131458521, -0.0205789097, 0.5517393947, -0.4834855497, -0.0172385573, 0.0305624753, 0.3248458803, 0.0053192577, 0.3393245041, 0.406265825, 0.2059791088, 0.0193209462, -0.2409455478, -0.3740728199, -0.1834505051, -0.3507688046, -0.3531448543, 0.4585075676, -0.4231186807, -0.199110046, 0.0746868029, -0.3559266627, 0.0053744507, 0.2419982255, 0.363302052, -0.1878538877, -0.0538438, -0.0007648197, 0.161708191, 0.0318344571, -0.3609314561, 0.0071368441, -0.2517213821, -0.2464191169, 0.0134619474, 0.2027641386, -0.7676008344, 0.1037056521, -0.0188641418, 0.014302087, -0.2383394986, 0.1046029851, -0.2684714794, 0.1870520115, 0.0732033104, 0.1412308067, 0.1195873618, 0.268891722, -0.0866193995, -0.0039308788, 0.0781367868, -0.2682115436, -0.299144119, -0.1390839517, -0.0230089407, -0.3092841804, 0.0268066321, -0.3886806667, 0.064244397, -0.1104105636, -0.1740883738, -0.1506350785, 0.109538734, -0.16775769, -0.0550865196, 0.1103230193, 0.293977499, -0.4045152962, -0.0181213208, -0.2454754561, -0.1778716594, 0.2332534045, 0.2163480371, -0.1368344426, -0.1522507817, -0.6082150936, -0.1547181457, 0.6634249091, -0.3806284368, -0.4640960097, 0.3786873221, 0.2173660696, -0.1903722286, 0.0012163463, -0.110400863, 0.1005599275, -0.0004541288, -0.2230277508, 0.0166693777, 0.0837987587, -0.0208503827, -0.1720505506, 0.0790697336, -0.1607098877, 0.2843910158, 0.0763027668, 0.3679301441, 0.0747074559, -0.4824176133, 0.4230322242, 0.2345461845, 0.2965768278, 0.0760793239, 0.4369644225, 0.0191397332, 0.246251896, 0.1508785039, 0.0609878376, -0.0414879881, 0.0746421665, -0.1893357038, 0.0400740281, -0.043074768, -0.6470257044, 0.0296090934, -0.6404585838, -0.0452383235, -0.0330897123, 0.3000831604, 0.1316984147, 0.2117791325, -0.06089966, 0.3245082498, -0.0510309525, 0.1312726885, 0.349763453, 0.3004627526, 0.1317352355, -0.209057048, 0.3057383299, 0.3575723171, 0.4467681348, -0.0966735706, -0.0940520391, 0.2466458529, 0.0382884219, 0.0657624453, 0.2254920304, 0.0792982578, 0.3033358455, -0.442843616, 0.3665836155, 0.3891189694, 0.0960700959, -0.0967115983, -0.2103398442, 0.3410865664, -0.1538412571, 0.2720107734, 0.0189817194, 0.3951555789, 0.2804582417, 0.0209471304, -0.3029547334, -0.2818605006, 0.0755143538, -0.1347605288, 0.5949735045, -0.240567565, -0.5125948191, 0.1466994286, 0.3509653509, 0.0828469172, -0.021322852, 0.0620462373, -0.3352378607, -0.1644597054, 0.2630270422, 0.2677890956, 0.2637200952, 0.104918018, -0.0624941178, 0.2175124735, -0.1960278153, -0.0307708867, 0.0444400199, 0.1150740087, -0.0591449998, 0.0807289928, 0.1693603992, -0.1580171585, -0.3951411843, -0.3067114949, 0.1099816933, 0.1832206994, -0.1402875632, 0.0803196654, 0.1215568259, -0.1558336467, -0.3028430343, -0.8024629354, -0.3347617686, -0.6785562038, -0.1997915357, 0.0291435439, 0.2530494034, 0.1932248622, -0.2996149361, 0.1092122942, 0.0338339284, 0.4119326174, -0.1836684942, -0.0128916027, -0.3078896701, 0.0108185755, 0.0508936383, -0.3181145191, 0.4198615849, 0.1081126332, 0.1772098541, -0.4429504275, -0.3084258437, 0.1286512315, 0.1019091457, 0.0606669895, 0.1558883488, -0.0040988005, -0.070673883, 0.1187534854, 0.1130500957, 0.1221623868, 0.0860655308, -0.1135012358, -0.1362853646, 0.2783609927, 0.2194605917, -0.0894466937, -0.0292015634, -0.1599812359, 0.0891622007, 0.0825959593, 0.2569643259, 0.2782410979, -0.0565395206, 0.3231971264, -0.087049447, -0.0828354284, -0.4470671117, -0.5315868258, 0.3002496362, -0.5356850624, -0.4259708226, 0.5518060923, 0.0687901974, 0.6693540812, -0.3916648328, -0.2918289602, 0.1372448951, -0.0801688358, -0.0261231381, -0.2005767524, -0.3534429371, -0.0663862601, -0.0611060113, 0.1349651664, -0.0233638678, 0.005405169, 0.0422510952, -0.2040326744, 0.2795235515, 0.1382730454, 0.2946819961, -0.0903952643, 0.5105327964, 0.2759982049, 0.1339417547, 0.3849798441, -0.1876623482, 0.3656876087, -0.1735242456, -0.4889270067, 0.290558219, 0.1712967604, 0.2295287997, 0.0215202831, 0.3114298582, 0.2997658849, -0.1582761109, -0.1448679864, -0.1098175347, -0.1674161255, -0.4426398873, -0.1350557357, 0.1800945997, -0.0627847165, 0.0427811667, -0.141784519, -0.0857360065, -0.0297750384, 0.3803651631, 0.3362959325, 0.0480009764, -0.4346901178, 0.0351646021, -0.2533948421, 0.3061550558, -0.2938646972, 0.0612873994, -0.1331855655, 0.0373689011, 0.1926912367, 0.0021030284, 0.7103432417, 0.1303397268, 0.0603294745, 0.2701627612, -0.1241987422, -0.3900434971, -0.0171253886, 0.2386037558, -0.0709901676, 0.0890159011, 0.183738634, 0.0265580025, 0.0928108245, 0.4329116344, -0.1017515138, -0.2896761596, 0.0170695335, -0.0955351368, -0.056374114, -0.1088177562, -0.1543489397, -0.1927994341, 0.1019371673, 0.0689214692, -0.103459321, -0.0883106738, -0.4250178635, -0.0466791838, -0.018444024, 0.2829175889, 0.1847133934, 0.2175761461, 0.3751043677, 0.3767155111, 0.3691254854, 0.534581244, 0.5766869783, -0.3719556928, 0.1413550228, -0.1998175085, 0.2873880863, 0.0904092789, -0.1993292123, 0.010932887, 0.0016990307, 0.0024007629, -0.3199887872, 0.0891237333, 0.236406669, 0.1103078723, -0.5524184108, -0.3615265191, 0.2609327435, -0.2519748509, -0.1810987294, 0.0857901201, 0.2859037519, -0.0811246261, 0.0952006578, -0.0543360114, 1.2207318544, -0.0046887323, 0.0978837684, 0.2844517827, -0.427852571, 0.1228968948, 0.1439274251, -0.2318508923, -0.2122500092, 0.0591738485, -0.1630862355, -0.0835937485, 0.5822958946, 0.083726339, -0.264436543, -0.0116876038, 0.2192757428, -0.0175529961, -0.0809817761, -0.0197020825, -0.0086267879, -0.0395024791, -0.6170874834, 0.0442571566, -0.1267036796, 0.2797877789, 0.1620060652, -0.0494896434, 0.068681173, 0.0755039155, -0.3823924661, 0.2245698571, -0.0813985169, -0.19981125, 0.3223694861, -0.2104363292, 0.1939436048, 0.1896540225, 0.544739902, 0.1450764835, -0.2438371778, 0.2553747296, -0.2380438298, -0.0986218452, -0.1234279498, 0.1016301289, -0.0006359462, -0.1906275749, -0.4094595313, 0.5931800008, 0.0537818521, -0.2343487144, -0.7586459517, -0.1234259754, -0.1082536876, -0.4496875107, 0.0075195138, -0.0255991407, 0.0641696304, -0.2706692517, 0.00718437, 0.3542820811, 0.0079963161, -0.0961736739, 0.0371072516, 0.0266440231, -0.0624737442, 0.6679466963, -0.0841103345, 0.1100208312, 0.3710071445, 0.118691124, -0.016538728, -0.0900800973, -0.0041063018, 0.0407705382, -0.1020608917, -0.0626447424, -0.0263782144, 0.1448617429, -0.0481396429, 0.1434250176, 0.0159022957, 0.078256011, -0.2528496087, -0.3540072441, -0.5180091858, -0.2216829509, -0.0189053938, 0.1018713862, -0.2317318767, -0.0170903578, 0.1892238408, -0.0543556549, -0.160369873, 0.0889685601, -0.0602883734, -0.104437232, 0.0813682303, -0.0197558179, 0.3098951876, -0.0948241279, -0.0702804402, -0.110576503, 0.0563914217, 0.0615908988, -0.1134101674, 0.1811839193, 0.356027931, -0.1894797683, -0.1371931434, -0.1682252884, -0.278218627, 0.1862198114, 0.3277202845, 0.3888481557, 0.0422149636, 0.06241991, -0.2549364269, -0.2082955837, 0.1223440766, -0.1257206351, -0.119178459, 0.112132743, 0.4286031425, 0.003180516, -0.1361463666, -0.2415435165, -0.1191300079, 0.1347333938, -0.1986837983, -0.1839261204, 0.6236409545, -0.3813813925, 0.1482438892, 0.378914386, 0.3796112835, 0.0873543322, -0.0335839279, -0.0814176425, 0.0773751065, -0.0479223765, -0.5027019382, -0.2184296995, -0.2331323475, -0.0822502896, 0.027986167, -0.0343502238, -0.2836212814, -0.0150317186, 0.3567261696, 0.0142138908, 0.6995640397, -0.0583025254, 0.1413634121, 0.3375558257, -0.2398406714, 0.2690432668, 0.2255944312, 0.1333696246, 0.0030875737, 0.2161284089, -0.5721362233, 0.2576470077, 0.1575073898, 0.2788726389, 0.4338142276, -0.3885371387, -0.3531155586, 0.4869385064, -0.523776412, -0.1300362647, -0.1060695946, 0.3796101809, 0.1811682135, 0.1162419915, -0.2196158022, 0.2158477157, 0.041009821, -0.0777831003, -0.5575534701, -0.2285256088, -0.138854295, 0.1023844853, 0.0361883938, -0.0512023158, 0.0892464072, -0.1710593998, -0.3046297431, -0.1173339784, -0.175100103, 0.1436540335, 0.0283122566, 0.0478751175, 0.1213903874, 0.0060416851, 0.2123991102, 0.4684078693, 0.4573727846, 0.141115129, -0.1432826668, 0.5123078227, 0.0916871056, -0.1319316626, -0.1585834324, 0.0045396527, 0.2818952203, 0.1820179969, 0.0666204169, 0.0957894847, -0.0565730482, 0.0789337978, 0.46204108, -0.2371525168, 0.2221281528, -0.0170131531, 0.2009995878, -0.4158173203, -0.2020736039, -0.2864359319, -0.0841549784, -0.094765164, -0.5188066959, 0.2619417608, 0.0745382383, 0.1041839197, -0.2387960851, -0.0124615589, 0.0157607421, 0.1911111325, 0.3721449971, -0.3559373617, 0.0163410027, -0.2945800722, -0.1635852605, 0.2413638085, 0.1585006863, 0.0256339833, 0.0034414607, -0.2974762917, -0.037348073, -0.0841206908, 0.3941669464, 0.1512296349, 0.0680644959, -0.1747772098, -0.065304406, -0.0403100438, 0.226608023, 0.0624947846, -0.2504573762, -0.2215378881, 0.3568273485, 0.3975429237, -0.1243545339, 0.0788736045, 0.0238071699, -0.3774868846, 0.1518317163, 0.2723700404, -0.0016008422, 0.099682413, 0.1563713402, 0.1507042646, -0.4012504518, -0.1730722338, 0.0023149138, 0.2498212755, -0.0163056944, 0.2465640306, -0.0338084772, -0.1877127141, -0.251853615, -0.2115787119, -0.0473354235, 0.0559310019, -0.1958877146, 0.3451279104, -0.168800801, 0.0131975319, 0.1996264607, -0.0853682682, 0.0935169384, -0.0602875873, -0.1978741735, -0.0788459256, 0.375762254, -0.2205968946, 0.0829959065, 0.0591318049, 0.2535243332, -0.0805004016, -0.313918829, -0.2598327398, -0.0409223288, 0.5393994451, 0.1429880559, 0.0330418646, 0.1025549471, -0.007459993, 0.1861342192, -0.08026544, 0.2955251038, 0.1889616549, 0.2135550827, 0.1081625298, 0.1237340271 ]
https://github.com/huggingface/datasets/issues/3760
Unable to view the Gradio flagged call back dataset
Yes, you are right, that was not the issue. Just take into account that sometimes the viewer can take some time until it shows the preview of the dataset. After some time, yours is finally properly shown: https://huggingface.co/datasets/kingabzpro/savtadepth-flags
## Dataset viewer issue for '*savtadepth-flags*' **Link:** *[savtadepth-flags](https://huggingface.co/datasets/kingabzpro/savtadepth-flags)* *with the Gradio 2.8.1 the dataset viers stopped working. I tried to add values manually but its not working. The dataset is also not showing the link with the app https://huggingface.co/spaces/kingabzpro/savtadepth.* Am I the one who added this dataset ? Yes
38
Unable to view the Gradio flagged call back dataset ## Dataset viewer issue for '*savtadepth-flags*' **Link:** *[savtadepth-flags](https://huggingface.co/datasets/kingabzpro/savtadepth-flags)* *with the Gradio 2.8.1 the dataset viers stopped working. I tried to add values manually but its not working. The dataset is also not showing the link with the app https://huggingface.co/spaces/kingabzpro/savtadepth.* Am I the one who added this dataset ? Yes Yes, you are right, that was not the issue. Just take into account that sometimes the viewer can take some time until it shows the preview of the dataset. After some time, yours is finally properly shown: https://huggingface.co/datasets/kingabzpro/savtadepth-flags
[ -0.2451807112, 0.2172700167, -0.0100676967, 0.1485990882, 0.3047355413, -0.0232698452, 0.3388379514, 0.1904138774, 0.1421711594, -0.0403717235, -0.2485891879, -0.0416520536, 0.0424754992, 0.3279090822, 0.1481870711, 0.0801423565, -0.1649891138, -0.0025607969, 0.3318659961, -0.0744965225, -0.2404003441, 0.2184652239, -0.1983892322, 0.1400344819, -0.1509705186, 0.089685902, -0.1334106475, 0.1845107973, -0.0405382849, -0.7055106759, 0.3206539154, 0.0451996438, 0.1075469404, 0.2702994943, -0.0001136452, 0.0386097804, 0.3141261339, 0.0404057652, -0.1319924742, -0.0751447007, -0.1840312183, 0.0731594563, -0.0892669335, -0.0789771825, -0.241740495, -0.1663523912, -0.0268227309, -0.2949109375, 0.3331061304, 0.4128549993, 0.191220656, -0.0998844951, 0.3347683549, -0.1035258695, -0.0383942574, 0.2325210124, -0.1898031682, 0.5654546022, 0.1187498271, 0.3276023269, 0.0341668539, 0.3455219269, -0.0766708478, -0.178097263, -0.1326711476, -0.0711125806, -0.263368547, -0.1440366507, 0.2922632098, 0.2429380566, 0.2737998962, -0.1256713569, -0.2565206289, -0.166352585, 0.012045553, -0.1154875308, 0.1659183949, 0.1608937085, 0.0107822176, 0.2521771193, 0.0313206725, -0.1360773742, -0.1639923602, 0.1014858261, -0.0482920259, 0.2336517274, -0.3677155077, 0.2267351002, 0.0437238626, 0.048843652, -0.0728855655, -0.0201816801, -0.2109931111, 0.386795193, -0.2435384989, 0.0971874148, 0.0932846442, 0.0073209195, 0.2354997993, 0.2621008754, 0.0244412627, 0.4998614788, -0.4895967543, -0.0520591438, 0.0569249727, 0.321785897, -0.022994807, 0.3728583455, 0.3568582833, 0.2021457553, 0.1030581445, -0.26171422, -0.2814793587, -0.1517260522, -0.336651206, -0.2829217911, 0.4993112087, -0.4490828216, -0.221093744, 0.0354421921, -0.277785331, 0.0328468382, 0.1488754004, 0.3706708848, -0.244461596, -0.0934084132, 0.0038257621, 0.138733536, -0.0224194173, -0.2844634056, -0.0745107457, -0.263877809, -0.3180969059, 0.0517823808, 0.2399512827, -0.6690097451, 0.1662807763, 0.0029279643, 0.0475523807, -0.1179763451, 0.1175003797, -0.170339942, 0.2306195796, 0.1447749436, 0.1944642067, 0.1791831702, 0.3607037663, -0.0737094805, -0.0234336723, 0.1071124151, -0.1737026274, -0.3332185745, -0.0809694231, 0.1016179994, -0.3303344846, 0.0140736774, -0.3311187029, 0.0622687042, -0.0951946154, -0.1434298009, -0.1134760827, 0.1348216981, -0.1691879928, -0.0859244093, 0.1822632551, 0.2671455145, -0.3748562336, -0.0584972315, -0.2394496202, -0.2535744309, 0.2536348403, 0.2038359791, -0.1087668538, -0.1137454957, -0.657504797, -0.0568478107, 0.5600671172, -0.2918376625, -0.4499617219, 0.3592645228, 0.1100358441, -0.131281063, -0.055372104, -0.0997985974, 0.1187335774, -0.0087950928, -0.211595729, 0.090964213, 0.0620170422, 0.0960455313, -0.2528326213, 0.099826552, -0.1409152597, 0.3061096072, 0.0631763712, 0.3449301422, -0.0110458564, -0.4977178872, 0.4375569522, 0.231679067, 0.228262797, 0.0150981583, 0.4481456876, -0.014392457, 0.1796608269, 0.2262549251, 0.0460629836, 0.0175635088, 0.0439096317, -0.1050593853, 0.0871689543, -0.083916299, -0.6136050224, 0.0107949013, -0.6057505012, -0.1108262688, 0.1012011915, 0.2918451726, 0.1272339821, 0.1692133099, -0.009981446, 0.3123264909, -0.0669713914, 0.1068724766, 0.3282102346, 0.339479357, 0.0678554773, -0.2065038532, 0.3360209763, 0.2148013264, 0.3736756146, -0.0337485261, -0.1024147868, 0.2295364439, 0.0057217944, 0.0734738037, 0.1690775454, 0.1092143506, 0.2542158663, -0.3873758614, 0.361959815, 0.3177453578, 0.0735030398, -0.1207741871, -0.2397448868, 0.3932704329, -0.1319004297, 0.2443476617, -0.0189539939, 0.3749746084, 0.3120697141, 0.0187707711, -0.3583382666, -0.2295577526, 0.0288854446, -0.0910004601, 0.6233773232, -0.2685594857, -0.5436404347, 0.1922469288, 0.3649597168, 0.1083696559, -0.0533764772, 0.0407779738, -0.3436512947, -0.1961501241, 0.2522164285, 0.2797297239, 0.2991000712, 0.1709514707, -0.0472585484, 0.1939994246, -0.1774493456, -0.111280553, 0.0450227559, 0.0822589099, -0.0524504557, 0.088627845, 0.1192330196, -0.1313444823, -0.4325870574, -0.1834268421, 0.0954779685, 0.0843199044, -0.1242710054, 0.0275844689, 0.1451128423, -0.1664495766, -0.2629113495, -0.865532279, -0.2931800485, -0.7084569335, -0.1865778714, -0.0089952173, 0.1429086626, 0.3001382351, -0.2834838033, 0.0737200528, 0.029653715, 0.3884520829, -0.1322601736, 0.0337764025, -0.3404631019, 0.123053506, 0.0567376874, -0.2851119637, 0.5187371373, 0.0800515637, 0.2168355137, -0.5105429888, -0.3771116138, 0.1435991079, 0.040835686, 0.06278532, 0.1728159487, 0.0262717828, -0.0249105524, 0.0687859282, 0.1717729419, 0.1278868914, 0.0217740964, -0.1006159708, -0.1586982161, 0.2541655302, 0.2138208896, -0.1491190195, 0.0173090622, -0.3095296323, 0.0862614363, 0.0884380862, 0.2447336912, 0.2466071993, -0.0228857417, 0.3376179338, -0.1081709117, -0.079519093, -0.4211048186, -0.5648123026, 0.3028730154, -0.5843524933, -0.4841681123, 0.557575047, 0.0592100546, 0.6892666817, -0.4229900539, -0.3481509686, 0.0321080461, -0.0970748961, 0.062468335, -0.1584662646, -0.3396707177, 0.0310911741, -0.0876694024, 0.0335434787, -0.0256675836, -0.0684371814, 0.0367832966, -0.2469374686, 0.282913357, 0.0062637464, 0.2530354261, -0.0841883197, 0.5879281759, 0.2910128236, 0.1117708683, 0.301513195, -0.1480163038, 0.324760139, -0.2524359822, -0.4080412388, 0.240906328, 0.1221395358, 0.2080016881, 0.0828443915, 0.2978076041, 0.2196857482, -0.145030871, -0.0968194529, -0.1515952349, -0.2509278357, -0.3542988598, -0.0727071613, 0.1365883946, -0.0486880764, 0.0470294356, -0.1389963329, -0.0068442975, -0.0367624275, 0.3041383922, 0.3414542973, 0.0433055647, -0.4675061703, 0.1083556712, -0.3101884127, 0.2478593737, -0.3126937449, -0.0499713086, -0.1117058769, -0.0687023401, 0.1730098426, -0.0155954789, 0.6567964554, 0.1800386608, 0.015634764, 0.3664122224, -0.1967466176, -0.3828751743, -0.0831221864, 0.2132971734, -0.008158939, 0.014178196, 0.2037296742, 0.0404220484, 0.0701129362, 0.371084094, -0.1250678599, -0.2963473201, -0.0306647439, -0.0805117562, -0.0777892247, -0.1079280525, -0.1388045102, -0.1773297489, 0.072006017, 0.0220092777, -0.1112354323, -0.0420910902, -0.281691879, -0.145939514, -0.0300522819, 0.3223487139, 0.1312184483, 0.3660071492, 0.3238561153, 0.2977744043, 0.2716038227, 0.5755031705, 0.5376425385, -0.2944099903, 0.1836943179, -0.197545737, 0.1456721425, 0.1399639398, -0.1102705002, -0.0741270855, 0.0262348764, 0.1146623567, -0.3573334217, 0.0695911795, 0.2530773878, 0.0512273572, -0.44133991, -0.3353409171, 0.3472868502, -0.3157963157, -0.1879948229, 0.1409491897, 0.2875267863, -0.0517146513, 0.1232439354, 0.0493489765, 1.1709756851, 0.003933711, 0.0932377651, 0.3239848316, -0.3640490174, 0.1227223426, 0.1531548053, -0.2381732017, -0.2766807377, -0.0637287647, -0.0806895345, -0.0924965963, 0.4456847012, 0.0761748627, -0.3135703206, -0.0801407024, 0.2416147739, -0.0528745092, -0.1009196863, -0.0238609724, -0.0579756983, -0.148924008, -0.6794570684, 0.1701337248, -0.060063269, 0.3411091864, 0.0912380889, -0.0428366587, 0.0738533288, 0.0642106906, -0.402907759, 0.2577721179, -0.0847769603, -0.2653723955, 0.3442875743, -0.1715480685, 0.0975374207, 0.1597912908, 0.4862808585, 0.1466899663, -0.2330087721, 0.2736313343, -0.2101181597, 0.0125922579, -0.0797560215, 0.0793161616, 0.0775361583, -0.2415352911, -0.3340982199, 0.5017716885, 0.0301653985, -0.0906576514, -0.7478342652, -0.1559670717, -0.1232389882, -0.5296360254, 0.0427698269, 0.0352193527, 0.0706773475, -0.2460009456, 0.1097463518, 0.3091344237, -0.0450207368, -0.0933980569, 0.1054567471, 0.0487622283, -0.0737251937, 0.6504619122, -0.0881145597, 0.161773771, 0.3846779168, 0.1834463179, 0.0043810909, -0.1405346245, -0.0691141784, 0.0959870741, -0.086469844, -0.0923096463, -0.0942101255, 0.1489674598, -0.004268155, 0.1634272635, 0.0505119152, -0.0128140328, -0.2557901442, -0.3226824105, -0.4696329534, -0.1718548685, -0.0345325284, 0.1232263744, -0.3009823859, -0.0018739158, 0.2536857128, -0.0766166896, -0.2924275994, 0.0496824123, -0.1225415766, -0.0185799133, 0.0932894871, -0.0543329045, 0.3013717234, -0.043008402, 0.0217742659, -0.0588476583, -0.0975644141, -0.1060263216, -0.0587282181, 0.1328983456, 0.3995921612, -0.2340722531, -0.0177686885, -0.0472248495, -0.309494108, 0.1295234412, 0.3742933869, 0.3657198846, 0.0059027355, -0.0753258541, -0.2570289373, -0.1605593413, 0.0889979228, -0.1283583939, -0.1202020049, 0.1057969183, 0.413814038, -0.0330467224, -0.1822417229, -0.2285603732, -0.0254364908, 0.1169373244, -0.1960408539, -0.1326102465, 0.5330589414, -0.3707248271, 0.2175998837, 0.3264585733, 0.4819441736, -0.0014416338, -0.1082531661, -0.0203498136, 0.1395425498, 0.1033568308, -0.4877555966, -0.1407994181, -0.2818357944, -0.1377547085, 0.0618723556, -0.0906058326, -0.2867251039, 0.0609462075, 0.3631639481, 0.0242987927, 0.7072754502, -0.0602676161, 0.139195919, 0.2853645086, -0.372181803, 0.2917133272, 0.2388224006, 0.060123153, -0.058850605, 0.1558580399, -0.526679337, 0.2713142633, 0.1089867353, 0.3058049381, 0.4121401906, -0.3926683664, -0.2745065391, 0.5069189668, -0.5372915268, -0.1336125135, -0.1141758859, 0.3202787638, 0.1233222559, 0.1453263313, -0.2692531943, 0.2320446521, -0.0032253086, 0.009603071, -0.590685606, -0.1710737944, -0.1661232263, 0.0935966745, 0.0260183569, -0.0799617842, 0.14088884, -0.1977423877, -0.2936447263, -0.1578288674, -0.1962174922, 0.0879181474, -0.0150018474, 0.0018575486, 0.1932818145, 0.0810576528, 0.1974757314, 0.4125469923, 0.5351685882, 0.1602525562, -0.0973332748, 0.511590004, 0.0717316493, -0.0636717528, -0.1973993033, -0.0496754646, 0.2531870306, 0.2083150744, 0.0906821787, 0.15144898, 0.0933716968, -0.0500798412, 0.4800738692, -0.2487853169, 0.2022458315, -0.0272271186, 0.1929207593, -0.3704270124, -0.1624107659, -0.2892077267, -0.0868723169, -0.1483854651, -0.492438525, 0.2302137613, 0.0160647444, 0.1267244071, -0.1987301707, 0.0730477124, -0.0014135477, 0.2778865099, 0.3202200234, -0.3194026947, 0.0160025563, -0.2623724639, -0.1561042219, 0.2522893548, 0.1436633617, 0.056401737, -0.0443235189, -0.2603268623, 0.000783355, 0.0304275379, 0.3649804294, 0.1293097138, 0.0000789512, -0.1258890927, -0.079611823, -0.0717950761, 0.133690998, -0.0001720099, -0.2540597916, -0.2236871123, 0.3279694617, 0.4025442302, 0.0053449869, 0.1371922493, 0.0256265383, -0.2970828712, 0.1215315759, 0.3324036598, 0.0911215469, 0.1369511336, 0.0984933823, 0.0658635423, -0.3949889839, -0.2405475229, -0.045709189, 0.1643874943, -0.0306172799, 0.3199784458, 0.053712517, -0.2131717056, -0.3054344654, -0.192307964, -0.0227669515, 0.0373809561, -0.1941820532, 0.295560509, -0.1321602017, -0.0719045401, 0.2207518965, 0.012361736, 0.1106599197, -0.0836942866, -0.2312128097, -0.0961107165, 0.3936701417, -0.2033833712, 0.1239084005, 0.0367218815, 0.2401725352, -0.104517743, -0.279111445, -0.2726081312, 0.0447481088, 0.5073245764, 0.0933414623, 0.0380499251, 0.1227059066, -0.0150619987, 0.1390689462, -0.0999304205, 0.2748167515, 0.1172675416, 0.1265365779, 0.1139505133, 0.0900288597 ]
https://github.com/huggingface/datasets/issues/3760
Unable to view the Gradio flagged call back dataset
The problem was resolved by deleted the dataset and creating new one with similar name and then clicking on flag button.
## Dataset viewer issue for '*savtadepth-flags*' **Link:** *[savtadepth-flags](https://huggingface.co/datasets/kingabzpro/savtadepth-flags)* *with the Gradio 2.8.1 the dataset viers stopped working. I tried to add values manually but its not working. The dataset is also not showing the link with the app https://huggingface.co/spaces/kingabzpro/savtadepth.* Am I the one who added this dataset ? Yes
21
Unable to view the Gradio flagged call back dataset ## Dataset viewer issue for '*savtadepth-flags*' **Link:** *[savtadepth-flags](https://huggingface.co/datasets/kingabzpro/savtadepth-flags)* *with the Gradio 2.8.1 the dataset viers stopped working. I tried to add values manually but its not working. The dataset is also not showing the link with the app https://huggingface.co/spaces/kingabzpro/savtadepth.* Am I the one who added this dataset ? Yes The problem was resolved by deleted the dataset and creating new one with similar name and then clicking on flag button.
[ -0.2355168015, 0.2943939269, 0.0060478165, 0.2653230429, 0.2650963366, 0.063776195, 0.3267031908, 0.2095132619, 0.1700176895, -0.0364791006, -0.2569232583, 0.0024184452, -0.0134502603, 0.2589089572, 0.2008358538, 0.1542172432, -0.1398296505, 0.0278553609, 0.4430781901, -0.030809449, -0.2674980164, 0.1858100891, -0.2205566764, 0.1695208699, -0.113137491, 0.0894504711, -0.126984641, 0.1336181462, 0.0613197945, -0.7181733847, 0.3228183985, 0.1041281894, 0.1078044921, 0.2693209648, -0.0001230333, 0.1024651006, 0.3216152191, 0.0709968284, -0.0966294706, -0.0176631249, -0.3023276627, 0.1287791133, -0.1250498295, -0.0833500847, -0.1453167945, -0.162962839, -0.0716385543, -0.381809175, 0.2716277838, 0.4424562752, 0.094103992, -0.1220939159, 0.3669965565, 0.0063405815, -0.004582644, 0.2895882726, -0.1679653823, 0.5839022398, 0.1528354734, 0.2808050811, 0.0497859344, 0.3091453314, -0.1120200008, -0.1797433943, -0.1535255015, -0.1376199722, -0.193189472, -0.0987942591, 0.3484728336, 0.2332256734, 0.2464080453, -0.1871655434, -0.1738731861, -0.1676463038, 0.0552688353, -0.1802207679, 0.1909429282, 0.1521204859, 0.0725111142, 0.240799889, 0.096195437, -0.2789197266, -0.2954923213, 0.1231795102, 0.0382092521, 0.2181280702, -0.3497818708, 0.2460632771, 0.0527098887, 0.0393776, 0.0316191651, 0.0254940297, -0.2002456337, 0.4070970714, -0.2663312554, 0.0743210614, 0.0306532588, -0.0042143902, 0.2765723467, 0.2275019437, -0.009644594, 0.5251389742, -0.4718078673, -0.0305529386, 0.0009574873, 0.3196538091, 0.0253721047, 0.3774411678, 0.3796111941, 0.1447900981, 0.0012616531, -0.2135661095, -0.3300435543, -0.1585330069, -0.272303164, -0.3502055109, 0.5405038595, -0.436917305, -0.2295500636, 0.0724427924, -0.3770098388, -0.0231480245, 0.2539896667, 0.3434728086, -0.189334169, -0.0912955403, -0.0078663481, 0.1212214753, 0.0268166885, -0.3175107241, -0.0015561172, -0.2654657066, -0.2453670651, -0.0011584794, 0.209978193, -0.7443686128, 0.0974940211, 0.0367580727, -0.0206256211, -0.2245164067, 0.1439554691, -0.2703607976, 0.1730949283, 0.0898649395, 0.1649180204, 0.0838629901, 0.2818487287, -0.0586607866, -0.0042051664, 0.0958617926, -0.2273252904, -0.314442575, -0.168132782, 0.0166416913, -0.278118819, -0.0227772091, -0.3665305674, 0.106960468, -0.1156486571, -0.1436086297, -0.1401287317, 0.1209285408, -0.1966750771, -0.0824268833, 0.0682376474, 0.3185690343, -0.3932823837, -0.0395695902, -0.3099460006, -0.2163458616, 0.2583617568, 0.1910959929, -0.1390058845, -0.1378187388, -0.6348689795, -0.1955415457, 0.6662361622, -0.3661032319, -0.4506866634, 0.3709707856, 0.1801444441, -0.1938588023, 0.0048032012, -0.1392715424, 0.0835183933, -0.0080186464, -0.2260644138, 0.0342659913, 0.0644764975, -0.0136743356, -0.1549118012, 0.0659878328, -0.1293747276, 0.2898727059, 0.1254974902, 0.3889500499, 0.0901967287, -0.4979568422, 0.4055315554, 0.2317885756, 0.2797596157, 0.0762327313, 0.4652938843, -0.0365558155, 0.2497083098, 0.1094036102, 0.019603923, -0.0406337716, 0.0540227704, -0.1946738362, 0.0456499308, -0.0391498581, -0.6576946974, 0.0489208214, -0.6480051875, -0.0222523939, 0.0078742122, 0.2978201509, 0.101668261, 0.1889358163, -0.0869732499, 0.3560329676, -0.1364874989, 0.1632446349, 0.4099932313, 0.2784733474, 0.1532490849, -0.2057267576, 0.2984186411, 0.3030786514, 0.438890785, -0.0828582123, -0.1270911992, 0.2037903368, 0.0142719513, 0.0554183982, 0.257281661, 0.0843546465, 0.2908245027, -0.4364846647, 0.3947048187, 0.3577632904, 0.1132676527, -0.1012058184, -0.165398404, 0.3060287535, -0.193942979, 0.2611637712, -0.0357536115, 0.3655904233, 0.2947800756, -0.0072629591, -0.2714254558, -0.2940518558, 0.0686658844, -0.0881245211, 0.6414010525, -0.181539014, -0.5248585343, 0.1637567431, 0.3295207322, 0.1051237062, -0.0365309939, 0.0944720656, -0.2989908159, -0.1683601886, 0.2295452803, 0.2968541086, 0.2891644239, 0.109324038, -0.0719471723, 0.2378692478, -0.2015746087, -0.0437270328, 0.0647820234, 0.1092842892, -0.0196290351, 0.1216610074, 0.1799586862, -0.1312858015, -0.4589936733, -0.317096889, 0.1568871737, 0.1720407158, -0.1236339882, 0.0606090426, 0.1284346133, -0.1886539906, -0.2988691628, -0.8101162314, -0.3045812249, -0.6304620504, -0.1999517977, -0.0276912637, 0.2441978008, 0.2051532865, -0.3122504056, 0.1036903933, 0.0591520295, 0.4035736024, -0.159119755, 0.0410581976, -0.3044068515, 0.0344009846, 0.024846755, -0.3071834445, 0.4491608143, 0.1170323938, 0.2117257863, -0.4828072488, -0.3043324053, 0.1444797665, 0.1116009578, 0.0725446045, 0.1432310045, -0.0366104469, -0.0705389008, 0.0960181355, 0.0870506167, 0.1068364978, 0.094450213, -0.1127742901, -0.1771875918, 0.2874802947, 0.2588608563, -0.1209997833, -0.0616153739, -0.1782979369, 0.0489781275, 0.1207455099, 0.3033419847, 0.2656354606, -0.108873643, 0.3372547328, -0.0457352549, -0.0712016821, -0.4468247294, -0.5630887747, 0.2624328136, -0.5182619691, -0.3826813698, 0.5426200032, 0.0691808388, 0.6903469563, -0.3819338679, -0.2891638577, 0.1169921905, -0.1135612875, 0.0204591714, -0.2439014316, -0.3445114493, -0.079059653, -0.0318168141, 0.1154911965, -0.0127006285, -0.0131964758, 0.0207805764, -0.2383494824, 0.2789641619, 0.1356908083, 0.2775099576, -0.1056693569, 0.5239012241, 0.2727294862, 0.1360676289, 0.3735153377, -0.1812072396, 0.3228052258, -0.1324312687, -0.5331729054, 0.3188866079, 0.186716482, 0.2228452563, -0.034947291, 0.2510564327, 0.2575846612, -0.1087431312, -0.1480926871, -0.1310781538, -0.1755132228, -0.4423389137, -0.1412551254, 0.2127368152, -0.0719334111, 0.0052369395, -0.1824316084, -0.0512721352, -0.0289262962, 0.3702431917, 0.2916114032, 0.0260321256, -0.4690397084, 0.0333689079, -0.2333072424, 0.3027265072, -0.3156643212, 0.0758517236, -0.1449122429, 0.0499963351, 0.1815849543, 0.0097620357, 0.7019588351, 0.1244695261, 0.0652214214, 0.321359098, -0.1234887764, -0.3867055476, -0.0429958776, 0.2055587769, -0.0478759073, 0.0269383546, 0.1429775655, 0.0344488621, 0.0893118382, 0.4901603162, -0.130404979, -0.2781301737, -0.013678303, -0.0957292765, -0.0848938227, -0.090897508, -0.110751912, -0.2158474177, 0.1092602313, 0.0877218843, -0.1136745811, -0.1197495088, -0.3967150152, -0.0653420836, -0.0341218859, 0.255708307, 0.1974817514, 0.2482852936, 0.3062259257, 0.3253103197, 0.3529665768, 0.4908201694, 0.5826383829, -0.4046610296, 0.1444583833, -0.1773241162, 0.2679670155, 0.0523440205, -0.1969525665, 0.0783225745, -0.0537423715, 0.0295390394, -0.2888929248, 0.0812952965, 0.2014942765, 0.1085114032, -0.515047133, -0.3807828724, 0.2724582255, -0.2113810182, -0.1970541626, 0.1457013786, 0.2175299376, -0.0780370086, 0.1108932644, -0.0414422192, 1.190299511, 0.0073761824, 0.0031173937, 0.2945337296, -0.4585961699, 0.137197718, 0.1493816972, -0.2399602383, -0.2048159689, 0.0356020108, -0.1375642568, -0.1009340584, 0.5757937431, 0.0554563254, -0.2516275942, -0.0234156307, 0.1677218974, -0.0333317406, -0.0908727795, -0.0046212864, -0.0655220225, -0.0894631445, -0.6768096685, 0.0682500824, -0.1668741554, 0.3038225174, 0.1341422796, -0.0147070894, 0.1660984308, 0.0986557454, -0.3898520768, 0.2238012403, -0.0792337805, -0.1932070404, 0.3129736781, -0.1751668751, 0.1747187972, 0.1764922291, 0.5422779918, 0.1584773958, -0.1919570863, 0.2674585581, -0.2043915391, -0.0155407693, -0.1190990582, 0.0793427899, 0.0092927152, -0.1946203411, -0.4409184158, 0.5703083277, 0.0528942235, -0.166508615, -0.783133626, -0.1196240634, -0.073546797, -0.4547169507, 0.0739391595, -0.0320539102, 0.0802538544, -0.2687256038, 0.0298028328, 0.3427803814, -0.0191336218, -0.0324034654, 0.0193797089, -0.0068296688, -0.0775349215, 0.6122714281, -0.0440574922, 0.1663336903, 0.3711572587, 0.1050963625, 0.0230617002, -0.1117310748, 0.0008602365, 0.0201494582, -0.0649573132, -0.0502366088, -0.0227507241, 0.1727756411, 0.0141209671, 0.1172936186, 0.0481187887, 0.1085857302, -0.2505735457, -0.352070421, -0.5006659627, -0.2235314995, -0.004172781, 0.0996650904, -0.2170804739, -0.0084499298, 0.1880665123, -0.0416428261, -0.1854032129, 0.0897013247, -0.1144276708, -0.0785020739, 0.0865319073, -0.0515868366, 0.2678069472, -0.0531121157, -0.0326015204, -0.124694474, 0.0595724843, 0.0269759912, -0.1144065559, 0.1680905074, 0.3186972141, -0.2008170635, -0.1283112019, -0.1631219536, -0.2823301554, 0.2183190435, 0.379411906, 0.4002553225, 0.0536038615, 0.0431662127, -0.3009909391, -0.2772572935, 0.1341692954, -0.1129370704, -0.122132726, 0.0574722774, 0.4516584277, 0.0158330947, -0.1360100508, -0.2199101895, -0.0843484625, 0.1030837595, -0.1866347045, -0.1959049255, 0.5637396574, -0.3593674004, 0.1661267132, 0.3440124094, 0.3350088, 0.0756537244, -0.0668193996, -0.0585720539, 0.0547970608, 0.0020100307, -0.5059880018, -0.227083683, -0.2646879256, -0.0757794082, 0.0224639364, -0.0271084271, -0.3168027401, -0.0160029475, 0.3337940574, 0.0364876874, 0.7308626175, -0.0851847157, 0.1408788264, 0.3193987608, -0.2518751025, 0.2720082104, 0.2950350642, 0.1348854899, -0.0054100044, 0.2451870143, -0.5340932608, 0.2718813717, 0.1925923526, 0.3105531633, 0.4414857626, -0.3773363531, -0.3067873716, 0.556281209, -0.5958781838, -0.128292948, -0.0732397139, 0.360583663, 0.1594322175, 0.0948944688, -0.21103248, 0.248660177, 0.0160764288, -0.0643946901, -0.6021540165, -0.2136726081, -0.0794456378, 0.0996087715, 0.0525047742, -0.0763474032, 0.0355539471, -0.1804029197, -0.3565368354, -0.1761334091, -0.1416026354, 0.1843093336, 0.0112326946, 0.0364777558, 0.1201841012, -0.0028303978, 0.1834148765, 0.3951249123, 0.5079266429, 0.1224594712, -0.1356000006, 0.5365483165, 0.0959584266, -0.0790512338, -0.1887840033, -0.0041665621, 0.266302824, 0.1726675928, 0.0816105679, 0.0737085119, -0.017418379, 0.041433461, 0.4458376467, -0.2310655266, 0.1952187717, -0.0600674264, 0.2039162666, -0.3938970864, -0.1850684881, -0.2748090327, -0.0841753632, -0.1015170664, -0.51558882, 0.3362871706, 0.080829002, 0.1324242502, -0.2110947222, 0.0050798403, 0.0132873654, 0.1441906542, 0.3256762624, -0.4072807729, 0.0225324687, -0.2731915116, -0.1683356315, 0.2518390119, 0.2052373886, 0.015670402, 0.0270688459, -0.3061849773, -0.0901347846, -0.0922514871, 0.4158417881, 0.125495404, 0.1164625883, -0.1597754657, -0.0976905972, 0.00703082, 0.2046928257, 0.078788884, -0.2443713099, -0.2682422698, 0.3897771537, 0.4080255032, -0.0915103257, 0.057886444, -0.0118756639, -0.3028050959, 0.1974753588, 0.2838029265, 0.0042599104, 0.0912779346, 0.1511304677, 0.1833659559, -0.4211575687, -0.2200495005, 0.0093536451, 0.248283267, -0.0517319664, 0.200316906, -0.0096272575, -0.147322908, -0.2379942089, -0.230952248, -0.0618437342, 0.0713370293, -0.180645898, 0.3340792954, -0.1552246064, 0.0121185454, 0.1811804622, -0.0709285364, 0.1141931489, -0.0465068407, -0.1626853943, -0.0906097516, 0.3604248762, -0.1843084842, 0.0555202402, 0.0415659361, 0.286726892, -0.1013356447, -0.3244238794, -0.2256114781, -0.0454124473, 0.5731163025, 0.0921429843, 0.0400693081, 0.1321129054, 0.0134958457, 0.2012452781, -0.0754421204, 0.2642139196, 0.1474919468, 0.2067480832, 0.1184610203, 0.1328599304 ]
https://github.com/huggingface/datasets/issues/3758
head_qa file missing
We usually find issues with files hosted at Google Drive... In this case we download the Google Drive Virus scan warning instead of the data file.
## Describe the bug A file for the `head_qa` dataset is missing (https://drive.google.com/u/0/uc?export=download&id=1a_95N5zQQoUCq8IBNVZgziHbeM-QxG2t/HEAD_EN/train_HEAD_EN.json) ## Steps to reproduce the bug ```python >>> from datasets import load_dataset >>> load_dataset("head_qa", name="en") ``` ## Expected results The dataset should be loaded ## Actual results ``` Downloading and preparing dataset head_qa/en (download: 75.69 MiB, generated: 2.69 MiB, post-processed: Unknown size, total: 78.38 MiB) to /home/slesage/.cache/huggingface/datasets/head_qa/en/1.1.0/583ab408e8baf54aab378c93715fadc4d8aa51b393e27c3484a877e2ac0278e9... Downloading data: 2.21kB [00:00, 2.05MB/s] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/load.py", line 1729, in load_dataset builder_instance.download_and_prepare( File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/builder.py", line 594, in download_and_prepare self._download_and_prepare( File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/builder.py", line 665, in _download_and_prepare verify_checksums( File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/u/0/uc?export=download&id=1a_95N5zQQoUCq8IBNVZgziHbeM-QxG2t'] ``` ## Environment info - `datasets` version: 1.18.4.dev0 - Platform: Linux-5.11.0-1028-aws-x86_64-with-glibc2.31 - Python version: 3.9.6 - PyArrow version: 6.0.1
26
head_qa file missing ## Describe the bug A file for the `head_qa` dataset is missing (https://drive.google.com/u/0/uc?export=download&id=1a_95N5zQQoUCq8IBNVZgziHbeM-QxG2t/HEAD_EN/train_HEAD_EN.json) ## Steps to reproduce the bug ```python >>> from datasets import load_dataset >>> load_dataset("head_qa", name="en") ``` ## Expected results The dataset should be loaded ## Actual results ``` Downloading and preparing dataset head_qa/en (download: 75.69 MiB, generated: 2.69 MiB, post-processed: Unknown size, total: 78.38 MiB) to /home/slesage/.cache/huggingface/datasets/head_qa/en/1.1.0/583ab408e8baf54aab378c93715fadc4d8aa51b393e27c3484a877e2ac0278e9... Downloading data: 2.21kB [00:00, 2.05MB/s] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/load.py", line 1729, in load_dataset builder_instance.download_and_prepare( File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/builder.py", line 594, in download_and_prepare self._download_and_prepare( File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/builder.py", line 665, in _download_and_prepare verify_checksums( File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/u/0/uc?export=download&id=1a_95N5zQQoUCq8IBNVZgziHbeM-QxG2t'] ``` ## Environment info - `datasets` version: 1.18.4.dev0 - Platform: Linux-5.11.0-1028-aws-x86_64-with-glibc2.31 - Python version: 3.9.6 - PyArrow version: 6.0.1 We usually find issues with files hosted at Google Drive... In this case we download the Google Drive Virus scan warning instead of the data file.
[ -0.1781004518, -0.0522131622, -0.0929788575, 0.2617266476, 0.3136710227, 0.3797074258, 0.194157809, 0.4621250331, 0.1194370538, 0.2630708516, 0.1950955391, 0.0892443806, 0.1379038543, -0.0750948042, 0.3748985529, -0.2883261144, 0.0637705922, 0.2063560784, -0.2365850359, -0.0722539201, -0.081581533, 0.2823310792, -0.1268198788, -0.0429199003, -0.1497627199, 0.0839751586, -0.0494591035, 0.2454200983, -0.0519792661, -0.2814295888, 0.1577526182, -0.2553600073, -0.0261588413, 0.5781392455, -0.0001083226, 0.1217146143, 0.307192266, -0.0772961676, -0.2486902773, -0.1200584546, -0.5962379575, -0.3827218413, -0.1269707084, -0.1652576178, -0.0927698761, -0.0494530238, 0.1256553978, -0.1692769378, 0.2128853053, 0.3607209325, 0.2594933212, -0.0378885567, 0.1839152724, -0.3124141693, 0.3138033152, -0.0157611202, -0.0189743433, 0.1501330286, -0.0193485413, -0.0125348279, 0.1696982831, 0.2352371961, 0.3057815731, -0.3524090946, 0.1210110039, 0.0725672469, -0.0762192979, -0.055848103, 0.2318869382, 0.2219491154, 0.4309577048, -0.2813858986, -0.4072892368, -0.2959378362, 0.1384263933, -0.3634184599, 0.0509704649, 0.2841398418, -0.0608852319, 0.143384099, 0.0308857672, -0.103179194, 0.0656632334, -0.1198842227, -0.1365809292, 0.0531248227, -0.030643452, -0.1332873255, -0.2372122258, 0.1387247294, -0.1991672069, 0.0401348993, -0.2711877525, 0.2066571414, -0.3898535967, -0.0447588563, 0.3738017082, -0.2273962647, 0.2003793865, -0.1287406832, 0.1878513992, -0.150126785, -0.0971606374, 0.0249734093, 0.2773094773, 0.2147301435, -0.2483076304, 0.0381849743, 0.3954850435, 0.3425874114, -0.0575917102, -0.1785350889, -0.0099314256, -0.3473187387, 0.1506472677, 0.3239256442, 0.295617342, -0.2372680902, -0.2689133883, 0.1695412844, -0.0916024372, -0.1291333735, -0.2349871397, 0.2160571963, -0.1173425764, 0.1246859208, 0.0862109661, 0.2211382836, -0.3679083586, -0.0901470855, -0.4726135135, 0.0898961723, -0.0841305032, -0.162269488, -0.00179049, -0.0751022696, 0.4925449491, -0.0764917806, 0.0606028661, -0.0760164037, 0.0387465842, -0.111157909, -0.1832618415, 0.3794210255, 0.0532246418, -0.0017888943, 0.0278758891, 0.0125846174, -0.1098526865, 0.2380622923, -0.27245906, -0.2490004748, -0.2275829911, 0.2995328307, -0.0934609771, 0.0368652754, -0.3352677822, 0.0954061523, 0.1204545572, -0.1083369851, 0.2097886205, -0.1720743477, -0.3457912803, -0.2408236414, 0.279006362, 0.5628089309, -0.6022145152, -0.2623866796, 0.0257752687, -0.1114986241, -0.0880617052, 0.1725332439, -0.0530746058, 0.3926214874, -0.5098480582, -0.103349328, 0.1773671508, -0.6048900485, -0.4241236448, -0.0828883052, -0.2371413261, 0.0798538178, 0.0654832721, -0.1432077438, -0.1500677466, -0.2068758607, 0.1966031492, 0.3135959208, -0.1718962044, 0.0326320902, -0.1459294409, -0.193372041, -0.2199163884, 0.1729963124, 0.1683733463, 0.0540757589, 0.2002939284, -0.2644296587, 0.2710739672, 0.0588711202, 0.1616556495, 0.4855599105, 0.3078154624, -0.0472924225, 0.0383569598, -0.0340451412, -0.4830220938, 0.3231062293, -0.1221725568, 0.0135706421, -0.4478162527, -0.1928005815, -0.2828291059, -0.1223415434, -0.1356035173, -0.2164430469, 0.1936101019, 0.1955886781, -0.0687733367, 0.3648855388, 0.0161878318, 0.1988378912, 0.0358416364, 0.0201412998, -0.4260579646, 0.2282405198, -0.0181417074, 0.0410638563, 0.2048834413, 0.3158147931, 0.1445927471, -0.0560990088, -0.1904136539, 0.2051935792, 0.0202963185, 0.1472802013, 0.2909333706, 0.0512310453, 0.2097542584, -0.1103218943, 0.0590204, 0.0438118055, 0.1877035797, -0.2392660528, -0.3201238811, 0.1621077955, 0.0230259616, 0.0267577395, 0.0235379562, -0.1539442837, 0.3034172356, -0.057076931, 0.0706312135, -0.1211712286, -0.0213522017, 0.251540184, 0.0741994753, -0.0648563504, -0.2706856728, 0.1984402537, 0.9162362218, -0.0789519846, -0.0420367643, 0.2007583827, -0.1530683339, -0.1349945515, -0.0044497135, 0.1884176731, 0.5589416623, 0.1392501444, 0.1722441912, 0.1139330566, 0.2804502249, -0.2631019652, 0.1287359595, 0.0402716771, 0.0656524226, 0.3121936023, 0.2291080058, 0.0764593184, 0.0500463061, -0.1635771543, -0.1456473023, 0.0651101992, -0.285130322, 0.0070128012, -0.2634484768, 0.0384877548, -0.1969513595, -0.0114665097, -0.0691030994, -0.2198834866, 0.0491612516, -0.1714585871, -0.2018371969, 0.1048510671, -0.1117667407, 0.1865811348, 0.2237728834, -0.405913353, -0.0094848443, -0.0265711248, -0.280838877, 0.1108915359, 0.0020678074, -0.0197453853, 0.0659371316, -0.2687684894, -0.0092105502, -0.2990798354, -0.0908633247, 0.0481343269, -0.0860826299, 0.5289386511, 0.2424650639, 0.1589205265, -0.0792537183, 0.1636832207, 0.2528228164, 0.1577310115, -0.3642359078, 0.1889014691, 0.026436042, 0.092717275, -0.0902487338, -0.3220553994, -0.1461976618, -0.4906452298, 0.0670776665, -0.0544973165, 0.1123728976, 0.1730561256, 0.1348293573, 0.0463718325, 0.0969432592, 0.0860610753, -0.1491784304, -0.4366997182, 0.2259852588, -0.3727570772, -0.4575223625, 0.184891358, 0.0403982662, 0.4931558669, -0.0068368847, -0.7194014192, -0.1545269638, -0.196822688, 0.301923573, -0.3056766093, 0.2418659776, 0.3853592277, -0.1316001117, -0.1218442917, -0.2500643432, -0.3013923764, 0.0445985906, -0.0286547523, 0.2003066242, -0.2908669114, 0.5006811619, -0.0841177478, 0.7236377597, 0.4000367224, 0.0831563622, 0.2048237473, 0.017011838, 0.3331623673, -0.4954120517, -0.1358253956, 0.1706605703, 0.1788478643, -0.1549941301, 0.2766525745, 0.1255442351, 0.1134031415, -0.196935758, -0.2492825091, -0.293636471, -0.3120943308, 0.1384065449, 0.0878795758, 0.122007452, 0.0447490737, 0.1674301177, -0.0199141242, 0.0296401549, 0.2846775353, 0.4267721474, 0.3677749932, 0.0973060727, -0.3142803907, -0.2245728374, -0.353622973, 0.0650262535, -0.0389898419, 0.2620570064, -0.0736955926, -0.0753935128, -0.089863278, 0.040489316, 0.5644847155, -0.0129160201, 0.2272450328, 0.2740792036, 0.026768811, 0.1298951358, -0.1521979719, 0.0405260362, 0.0750820115, 0.0282229539, -0.0676872134, -0.3311803937, -0.1000485644, 0.17182073, 0.3176411688, -0.1162147895, -0.0253188182, -0.3206309974, -0.2926402092, 0.0118709486, 0.0052594077, 0.0304236244, 0.185123682, -0.0437913127, -0.2901245356, 0.0405123569, -0.1725305766, -0.2246254981, -0.0052102138, 0.4174214303, -0.0638950989, 0.5165085196, -0.0480983108, -0.0019678485, 0.3461380303, 0.6146919727, 0.0863355845, -0.3714454174, 0.0256682504, -0.1425138563, 0.2031551898, 0.2318967581, -0.1595005244, -0.0351983793, -0.032258369, 0.1815777719, -0.2077220976, -0.2149659395, 0.226943776, 0.095227465, -0.3270808756, -0.3143694699, 0.3946117461, 0.0300200116, 0.0270519182, 0.3078505993, 0.0912616029, -0.4882349372, 0.2965476811, -0.0973692685, 0.8014074564, 0.132155627, 0.1693707407, 0.3449281156, -0.3803037107, 0.3539652824, -0.1065647751, 0.1192543283, -0.2999582589, -0.1686961204, 0.0456752852, -0.0791847333, -0.0328952186, 0.1184189245, -0.1692121923, 0.3619242311, -0.1537835747, -0.0305978153, -0.0283952747, 0.0531430207, 0.0476608351, -0.0374149308, -0.0589729548, 0.1912678778, 0.0226360187, 0.2367386222, -0.1785695106, 0.1029036567, -0.2408385426, -0.0660815462, -0.2688351572, 0.0873089656, -0.1081350893, 0.0246398766, -0.0792916641, -0.5795567036, 0.2787577808, 0.1032383516, 0.0256756917, 0.3078402281, -0.2679802477, 0.4920615554, -0.1312476099, 0.3110712469, 0.2091499865, 0.0583897457, 0.3273378909, -0.1013227776, -0.2786414623, 0.0434314497, -0.3118672669, -0.0879933387, -0.1347900629, 0.0911122561, -0.1900345385, -0.3149597049, -0.2919079065, -0.1281430572, 0.2760515511, -0.2174259424, 0.2108929753, 0.4115421474, -0.0544313565, 0.0220832303, 0.1208186448, -0.3362500966, -0.1280197799, 0.1583339721, 0.0774208829, -0.1338700503, 0.6150783896, 0.2005960345, 0.0076062568, -0.1870233566, -0.1796465516, 0.1538819373, -0.3320144415, 0.1842864156, -0.142457068, 0.0975722894, -0.0348174535, -0.0592839122, 0.0137994392, -0.4003255963, 0.1847593635, -0.6770394444, -0.2205211073, 0.251157254, -0.0169751104, 0.075339973, -0.1360527575, -0.1940440983, -0.0551428497, 0.0359142385, -0.351903677, 0.2117001712, -0.226038143, 0.0933526754, -0.0779792145, 0.0872563347, 0.2729898393, -0.2022120506, 0.2143178433, 0.0340908393, -0.163138777, -0.2901158631, -0.1222556904, 0.0789653435, -0.1958636343, 0.2365425974, 0.236431852, -0.0922730193, -0.1695872396, -0.1056207195, 0.2329627424, -0.0551460795, 0.0783465132, 0.2531050444, 0.2137970328, 0.0368382186, -0.0893239304, 0.1116485074, 0.0683350265, 0.1190693304, 0.0810360834, 0.1178909466, -0.1064761654, 0.0104887607, -0.1504386514, 0.0761879608, -0.1852155626, 0.3721621037, 0.3361322284, -0.2402906567, -0.0089402087, 0.1322932392, 0.1466204524, 0.0975190774, -0.3454749882, 0.2219002992, 0.2358494401, 0.3426958621, -0.3659945726, 0.0329348259, 0.2026546746, 0.0537841506, -0.0227227081, -0.0042641903, 0.1089828834, -0.0485886633, -0.0863625333, 0.2282837331, 0.2480961531, 0.0916490406, 0.1363445967, 0.4885374606, 0.0595366545, 0.0768721402, 0.0036758694, 0.1157889813, 0.0663738102, 0.7698219419, 0.1373725533, -0.0418714322, 0.0150684956, 0.1103179976, -0.073156558, -0.6701851487, 0.0641569048, 0.3471694589, -0.2292858809, -0.1608225852, 0.1049576104, 0.4159473479, 0.081700556, 0.0304916874, -0.0321577527, -0.0616605058, -0.1876737922, 0.1436861157, 0.004545155, -0.0493725836, 0.0178101137, 0.0900495127, 0.0544322319, -0.0789317563, -0.1605673283, 0.1039166451, -0.1875938922, 0.0703002438, 0.0837200731, -0.0008783007, 0.2400076836, -0.1769805849, 0.0867587626, 0.3209020495, -0.2272059172, 0.139849484, 0.1934647113, 0.274815321, 0.0222836602, -0.0079950858, 0.0495016165, 0.1153214574, -0.11756666, -0.1841563433, 0.2626152337, 0.0201855022, 0.046227023, 0.1082883105, 0.2740145624, -0.2228647619, 0.0003661532, 0.1599785239, 0.0525906458, -0.4282393754, 0.2606740594, -0.3934568465, -0.1882253587, -0.3152453005, -0.0829182491, -0.2403196841, -0.1004828885, 0.4246030748, 0.275785774, -0.0352959521, -0.1763038486, 0.1272690445, -0.2391855866, 0.229405582, 0.446813643, 0.1263780296, -0.1350799948, -0.1781819761, -0.5137649179, 0.2448928207, -0.0428214036, 0.0358746201, -0.0337209925, 0.2252780497, -0.0772324651, -0.096239768, 0.2222759426, 0.0513079651, 0.2223326415, 0.279445678, -0.4753285348, -0.5248525739, -0.2494861335, 0.0805755705, 0.015611724, -0.401004523, -0.0104534402, 0.0994355679, 0.14402017, -0.1571361274, 0.0728977844, 0.0518987291, 0.0060768845, 0.7204788923, 0.228260234, 0.1489529759, -0.1318617314, -0.3507187665, -0.2402895689, -0.1073485985, -0.1366984099, 0.408639431, 0.0234856587, 0.5076593161, 0.0434808433, -0.1375692189, -0.1088222712, 0.4343006909, -0.1264217943, -0.2852401733, -0.4640442729, 0.3214301467, -0.0827834159, 0.0659746155, 0.3811741173, 0.2075339705, -0.2194506973, -0.0979782492, -0.4114598632, -0.4969689548, 0.4545393586, -0.253059864, -0.0514771938, -0.0817819759, 0.2186011821, -0.2559556067, -0.251106441, -0.4607947767, 0.1962293237, 0.3161689341, 0.0795386359, -0.0971006826, 0.3713644445, 0.0363545306, 0.1588125676, 0.0255368799, 0.5003088117, 0.0386155359, -0.1304102391, 0.1556145549, -0.2641140819 ]
https://github.com/huggingface/datasets/issues/3756
Images get decoded when using `map()` with `input_columns` argument on a dataset
Hi! If I'm not mistaken, this behavior is intentional, but I agree it could be more intuitive. @albertvillanova Do you remember why you decided not to decode columns in the `Audio` feature PR when `input_columns` is not `None`? IMO we should decode those columns, and we don't even have to use lazy structures here because the user explicitly requires them in the map transform. cc @lhoestq for visibility
## Describe the bug The `datasets.features.Image` feature class decodes image data by default. Expectedly, when indexing a dataset or using the `map()` method, images are returned as PIL Image instances. However, when calling `map()` and setting a specific data column with the `input_columns` argument, the image data is passed as raw byte representation to the mapping function. ## Steps to reproduce the bug ```python from datasets import load_dataset from torchvision import transforms from PIL.Image import Image dataset = load_dataset('mnist', split='train') def transform_all_columns(example): # example['image'] is encoded as PIL Image assert isinstance(example['image'], Image) return example def transform_image_column(image): # image is decoded here and represented as raw bytes assert isinstance(image, Image) return image # single-sample dataset for debugging purposes dev = dataset.select([0]) dev.map(transform_all_columns) dev.map(transform_image_column, input_columns='image') ``` ## Expected results Image data should be passed in decoded form, i.e. as PIL Image objects to the mapping function unless the `decode` attribute on the image feature is set to `False`. ## Actual results The mapping function receives images as raw byte data. ## Environment info - `datasets` version: 1.18.3 - Platform: Linux-5.11.0-49-generic-x86_64-with-glibc2.32 - Python version: 3.8.0b4 - PyArrow version: 7.0.0
68
Images get decoded when using `map()` with `input_columns` argument on a dataset ## Describe the bug The `datasets.features.Image` feature class decodes image data by default. Expectedly, when indexing a dataset or using the `map()` method, images are returned as PIL Image instances. However, when calling `map()` and setting a specific data column with the `input_columns` argument, the image data is passed as raw byte representation to the mapping function. ## Steps to reproduce the bug ```python from datasets import load_dataset from torchvision import transforms from PIL.Image import Image dataset = load_dataset('mnist', split='train') def transform_all_columns(example): # example['image'] is encoded as PIL Image assert isinstance(example['image'], Image) return example def transform_image_column(image): # image is decoded here and represented as raw bytes assert isinstance(image, Image) return image # single-sample dataset for debugging purposes dev = dataset.select([0]) dev.map(transform_all_columns) dev.map(transform_image_column, input_columns='image') ``` ## Expected results Image data should be passed in decoded form, i.e. as PIL Image objects to the mapping function unless the `decode` attribute on the image feature is set to `False`. ## Actual results The mapping function receives images as raw byte data. ## Environment info - `datasets` version: 1.18.3 - Platform: Linux-5.11.0-49-generic-x86_64-with-glibc2.32 - Python version: 3.8.0b4 - PyArrow version: 7.0.0 Hi! If I'm not mistaken, this behavior is intentional, but I agree it could be more intuitive. @albertvillanova Do you remember why you decided not to decode columns in the `Audio` feature PR when `input_columns` is not `None`? IMO we should decode those columns, and we don't even have to use lazy structures here because the user explicitly requires them in the map transform. cc @lhoestq for visibility
[ -0.0711214542, -0.1942403615, -0.0474800169, 0.4888620079, 0.6329941154, 0.1564103067, 0.3611623347, 0.2503560781, 0.1487884969, 0.057597544, -0.1527496129, 0.6728749871, 0.0777886584, -0.4829203784, -0.2325557768, -0.2273544073, 0.1242544949, 0.2687866688, -0.2417322844, -0.1567707956, -0.5207401514, 0.1122718677, -0.3934340775, 0.1282372326, -0.0303342957, -0.029809406, -0.1134528071, -0.1427114457, -0.2804445028, 0.0310841408, -0.1932794154, -0.1853463948, -0.0591478758, 0.3578470945, -0.0001193317, 0.1756237745, 0.4165769815, -0.0773511603, -0.043976754, -0.1027231514, -0.3704884946, -0.1895823777, -0.1048797667, -0.3595191538, -0.0387738831, -0.4316496253, 0.0496093445, -0.1700099111, 0.2219066918, 0.1131903455, 0.1703321934, -0.082083717, 0.0451830402, 0.5631611347, 0.3007467389, 0.5120070577, -0.2161763757, -0.2591195703, 0.0628405362, -0.1061683595, -0.2065366209, 0.4731119275, -0.3912159801, 0.1548839062, 0.2106434852, 0.3121933341, -0.1194205806, -0.3656258881, 0.1547522396, -0.0193754975, 0.099433586, -0.0531302504, -0.1644114107, -0.2057747543, -0.0740947127, -0.2216616869, 0.1827478558, 0.2795494497, -0.109159939, 0.0909760669, -0.5159719586, 0.1232745349, 0.0871322528, 0.1766672879, -0.2691724002, -0.1693172008, -0.1357725561, 0.286215812, 0.058651451, -0.0583937019, 0.1025802493, -0.2848875523, 0.1713402718, 0.1541156918, -0.144462496, -0.0796701834, -0.0819627121, -0.0829244927, 0.0030216516, -0.5324734449, -0.0286873523, -0.0184453763, -0.161698103, 0.4152586162, 0.3498653769, -0.0194723438, -0.2103344649, 0.6318179369, 0.1460954398, -0.1031601802, -0.1222645789, -0.1757537127, 0.1470439136, 0.108010143, 0.2030231804, 0.0125524094, 0.2511915863, -0.0494863093, -0.0710610002, -0.0087926947, -0.251942277, 0.1289049089, 0.0019981139, 0.1588400453, 0.2695852518, 0.4232712388, 0.2737617195, 0.2121922374, -0.1930187792, -0.1418780982, -0.0706015974, -0.185995549, -0.2447173893, -0.0206463151, -0.2043326199, 0.1137447506, -0.0097763697, 0.3201273084, -0.086231485, -0.1952850223, 0.1640790105, -0.3958821893, 0.6715342999, 0.276096046, -0.1267198473, 0.1360842735, 0.0698713958, 0.1526976526, -0.1734798849, 0.5480793715, -0.7354792356, 0.1146083251, -0.0322177596, 0.0409462005, 0.0081498967, 0.1899134964, -0.121154286, 0.1131059304, 0.3102959692, -0.407378763, 0.1152582094, -0.2954590917, -0.2988882065, -0.1778101325, 0.1008248329, 0.1648980975, -0.0210190229, 0.2612455785, -0.0526739135, -0.1465350538, 0.2475490123, 0.160023734, -0.117000781, 0.0423141867, -0.0753360987, 0.1881001294, 0.1393047571, -0.2490273118, -0.3780397475, 0.3767748177, 0.276457876, 0.2483264953, -0.2369897515, 0.1319243908, 0.3878032863, 0.0234463271, -0.01513418, 0.3466716111, -0.0828425288, 0.4631083012, -0.0506819002, -0.0124025103, 0.291187346, 0.0187897813, -0.1507785916, 0.2598542273, 0.1337925047, -0.1514137238, 0.049940411, -0.0707317963, 0.0514389239, 0.1509660482, 0.0290066209, -0.0727034807, 0.1290798336, 0.0241015945, 0.0288780686, -0.0742962286, 0.4907220602, -0.0893198699, -0.5609369278, -0.2704468369, 0.0774053484, -0.0362554826, -0.2399052083, 0.1863993853, 0.110123001, 0.031754043, -0.3414637744, -0.0787383392, -0.040450003, 0.1135713384, -0.1393022835, -0.0132325999, -0.1536681354, 0.1391659826, 0.1074994802, -0.0417431109, -0.2343796939, 0.0808786973, 0.0110713895, -0.0040522893, -0.176570788, 0.4588288665, 0.3761256635, 0.2596341074, -0.5441715121, 0.1056871712, 0.2840839326, -0.2969676852, 0.01808195, 0.0324088931, 0.2321058661, 0.0672694892, -0.0187030267, 0.120086059, 0.127764836, 0.2937276065, -0.1617572755, 0.057986144, -0.0258281212, 0.0586843528, -0.384562403, -0.319760114, -0.4534767866, -0.1369546503, -0.2070236355, 0.2134610265, -0.2004296929, -0.2110065967, 0.6448303461, -0.087375626, 0.1781168729, 0.165458709, -0.1614061743, 0.0955868512, 0.4553861618, 0.0147076836, 0.4434542358, -0.1195043847, -0.1448555887, 0.025884239, -0.1961656362, 0.2413331121, 0.2469635904, 0.3146966398, -0.0163383223, -0.0190700684, 0.2280934751, 0.014838038, -0.3385459185, 0.0107289953, 0.1310551167, -0.0348360986, -0.3352296352, 0.1644019932, -0.5927055478, -0.243738547, -0.1046648622, 0.1127832979, 0.2067415863, -0.153740719, -0.1037707552, -0.0413668305, -0.0449291728, 0.1268927306, -0.1900597513, 0.063677609, 0.2122216076, -0.2947877944, -0.1204602942, 0.0365150571, 0.0050574266, -0.011295937, -0.0376109555, -0.1898102164, 0.0623384863, -0.0709010065, 0.0375817679, -0.1683237553, -0.2955998778, 0.3168819547, -0.4631655216, 0.0237352252, 0.1520974487, 0.114898473, -0.1035856232, -0.1206682697, 0.2893070877, 0.092953831, -0.1436075866, 0.2416876554, 0.1394122839, -0.285657227, -0.4646021724, -0.038478151, 0.146394074, -0.1723222286, -0.128506124, -0.0924923867, 0.1237473637, 0.0791353583, 0.3916810751, -0.0707332939, 0.043355383, 0.1323249042, -0.2221467197, -0.1146861613, 0.508128047, -0.1093688682, -0.2177510411, -0.1348926872, -0.0341434181, -0.0850753784, 0.6112700701, -0.4574157894, -0.3058185577, -0.2112025023, -0.0342927985, 0.0095182415, 0.1760400236, -0.1168302149, 0.2643079162, 0.1426344961, -0.2210327536, -0.2337010205, -0.1949055195, 0.3604041636, 0.3846273422, 0.3317195773, 0.4560730457, 0.0998168811, 0.2322703004, -0.0197903868, -0.3193620145, 0.3638435006, -0.2932088971, 0.4961192906, -0.1815839559, -0.089475736, 0.0123828268, -0.0849272534, -0.1407161504, -0.0331034027, -0.0308690164, -0.5712257624, -0.0298125073, 0.5383079648, -0.4081279337, -0.3236636221, 0.1828634888, -0.0003378905, 0.2932422161, -0.0916954353, 0.3921434581, -0.0871304646, -0.2189727724, -0.0670521259, -0.1574936062, 0.4211616814, -0.0844118148, 0.0394903608, -0.2747206092, -0.0455555581, 0.0601486899, 0.1028500795, 0.521453023, 0.0505270213, -0.1670448482, 0.4274535179, 0.1442264169, 0.4765985012, -0.2398594171, -0.3013848066, 0.0423913896, 0.0980016813, -0.2521439195, 0.0495384783, -0.2329764664, 0.1056617275, -0.1380560696, 0.685347259, -0.2732667029, -0.0160573255, 0.1711369902, 0.1866378635, -0.0742785931, -0.0230086669, -0.2806172967, -0.3102748692, -0.1364851743, -0.1956496239, 0.3366136849, -0.0408713482, 0.0652377233, -0.2484678775, 0.0169582181, 0.0961411595, 0.0496561192, 0.2065953165, 0.3405364752, -0.1239115894, -0.054743439, 0.2173839808, 0.1682775766, -0.1251928806, 0.4653553963, -0.1903349012, -0.186212793, 0.060763225, -0.3161350489, 0.1947447509, 0.1832613498, -0.0967683643, -0.127425611, -0.207672134, -0.2551622987, -0.5510696769, -0.0760586932, 0.6714479327, 0.0721914247, 0.0584690832, -0.5065691471, 0.2914412022, 0.128879711, -0.1611494571, 0.4108809829, -0.0588178337, -0.1816738993, 0.6687219143, 0.4049150944, 0.8957198858, -0.1504532546, -0.0885970891, 0.1455587149, -0.0667638555, 0.1178049371, -0.2579804957, 0.2442007512, -0.0079613095, -0.3114079833, -0.1068950668, 0.0519547835, 0.1792979836, 0.0527471602, -0.1374813765, 0.0354636088, -0.064812988, 0.2579259276, 0.120388113, -0.2656742632, 0.076364547, -0.2349539101, 0.2170530707, 0.1375009269, -0.0468857624, -0.1224416196, 0.1760102957, -0.0153856343, 0.0167259462, -0.2268800288, -0.0681246743, -0.0033806905, -0.1043122783, 0.2231529802, 0.1062921211, -0.1469742656, 0.0230468065, 0.6510955095, -0.3147433102, -0.0038995771, 0.1557218134, 0.0670968369, 0.5360155106, 0.5100786686, 0.0677536204, -0.0104775755, 0.1112340391, 0.2087857574, -0.149133727, 0.0648903772, 0.0418428369, -0.2312260866, -0.2873541415, 0.1127743199, 0.2518591583, -0.1810525656, -0.2999988794, -0.1868370026, -0.0092439661, 0.1873964369, 0.0889913887, -0.2004069835, 0.0648645908, 0.6346675158, -0.1548604965, -0.3523595631, 0.0844185352, 0.3463143408, -0.0671438277, 0.0307252612, 0.1675306857, -0.2482488304, -0.2816017568, -0.0380984209, 0.1876396537, -0.1617765427, -0.1017224118, -0.0578455403, -0.2353508621, 0.0281724092, -0.153883934, -0.2334708571, -0.3688205481, -0.0847759843, -0.3959124982, -0.1574405134, -0.2054527551, 0.2571048439, 0.0503774062, 0.131137833, -0.0390499122, -0.2002034038, -0.0036804194, -0.1486689001, -0.2211480141, 0.1299833208, -0.0501289442, 0.4253787696, 0.2879615426, 0.300322175, -0.1476588398, -0.1247100085, 0.1222704425, 0.348549366, 0.0087685557, -0.0206217133, -0.1447071135, 0.1743583679, 0.1308364719, -0.1569773555, -0.3001758754, -0.3247612715, -0.1471447051, -0.349455595, 0.1126971096, 0.1402773261, -0.2576734424, 0.1842169315, -0.4108860195, 0.120995231, 0.1284649819, -0.119259879, -0.2191733271, 0.2012391537, 0.0860272273, 0.1150248572, 0.2021405697, 0.0643705428, -0.2620235384, 0.0005043024, -0.0974869356, -0.0309962556, 0.8037859201, 0.2546860576, 0.5350043774, 0.1756476611, 0.2070045024, 0.0725598782, -0.4803077877, -0.1899451315, 0.0988776758, 0.1257662177, -0.012266512, 0.0180161595, 0.2292383313, 0.2202724814, -0.0420670211, 0.21700041, 0.0585959777, 0.296140343, -0.0757426098, -0.3289349675, 0.4626443982, -0.2732882798, 0.0291062836, 0.9992578626, -0.2707311511, 0.2713661194, 0.2137294412, -0.1168869883, 0.004350638, 0.6317116022, -0.0565108955, 0.2076610178, 0.3950436711, 0.0778000429, 0.2104870379, -0.2072029859, 0.2809605598, 0.1011449248, -0.0008127214, 0.4541876912, 0.1189212799, -0.0948885009, -0.2358648926, -0.1571063697, -0.1150036976, 0.1335932165, -0.2314520925, 0.0751529709, -0.218152836, 0.0127292247, -0.3825028241, -0.0092241149, -0.1332865804, -0.0524672791, 0.4726915359, 0.2330465615, -0.067036666, 0.0214173626, -0.2471728623, -0.02853713, 0.4674745798, -0.2944599986, 0.2127887756, -0.0334565639, 0.3042103052, 0.4469405115, 0.0959269106, 0.2232420295, 0.4988171458, -0.0694225952, -0.0286991335, 0.0259960089, -0.1411748528, -0.0233298857, 0.3436233699, -0.0508933812, 0.3241474032, 0.1888604164, 0.0868589133, -0.1120487526, -0.1678029895, 0.0300727915, 0.5007185936, -0.0900458544, 0.4204795957, -0.3417447805, -0.1607076377, 0.0574126132, -0.4541649818, -0.131578505, -0.0529020913, 0.3783179224, -0.1617468148, 0.2376766801, 0.0306228474, 0.0069877445, -0.1602169722, 0.0077483179, 0.2700423002, -0.2607643008, -0.0129836649, -0.0032260064, -0.5686226487, 0.0788295567, 0.0715892687, -0.2843404412, 0.0843062997, -0.0257789697, 0.2121677846, 0.2809695601, -0.0697747394, -0.4550950229, 0.0533845983, 0.3060198724, -0.0241701938, -0.3130326867, -0.0241336375, 0.0051174839, -0.1229214445, -0.3114120364, 0.3165012896, 0.2108394057, 0.0412744284, -0.210494101, -0.0520812944, -0.5012144446, -0.2412930131, 0.4479093552, 0.3473151922, 0.2708120942, -0.2656060457, 0.0259581991, -0.143729955, -0.0827619508, -0.088492617, -0.0388761684, -0.1731035858, 0.4003611803, -0.0850373432, -0.084926486, -0.3275812864, 0.0085294433, 0.0308066644, -0.0947393626, -0.4391615391, 0.1672466695, -0.511957705, -0.1529660523, 0.0165087711, 0.2023154795, 0.1569207907, 0.1104990393, -0.0229407065, -0.345310688, 0.3656211197, -0.3899156451, -0.2808565497, 0.2305954099, -0.0829998404, -0.0071658059, 0.1787170023, -0.589907527, -0.1956835389, 0.132296294, -0.3893308043, -0.2296889722, 0.0744293332, 0.2193760425, 0.0540487431, -0.170363903, 0.2575939894, 0.0427588485, 0.0286416505, 0.2656867504, -0.1178595796 ]
https://github.com/huggingface/datasets/issues/3756
Images get decoded when using `map()` with `input_columns` argument on a dataset
I think I excluded to decorate the function when `input_columns` were passed as a quick fix for some non-passing tests: - https://github.com/huggingface/datasets/pull/2324/commits/9d7c3e8fa53e23ec636859b4407eeec904b1b3f9 That PR was quite complex and I decided to focus on the main feature requests, leaving refinements for subsequent PRs. Note that when `input_columns` are passed, the signature of the function is effectively changed, while the decorated function expects an item (whether an example or a batch) as first arg (which is not the case when passing `input_columns`. I agree we should consider supporting the case when `input_columns` are passed.
## Describe the bug The `datasets.features.Image` feature class decodes image data by default. Expectedly, when indexing a dataset or using the `map()` method, images are returned as PIL Image instances. However, when calling `map()` and setting a specific data column with the `input_columns` argument, the image data is passed as raw byte representation to the mapping function. ## Steps to reproduce the bug ```python from datasets import load_dataset from torchvision import transforms from PIL.Image import Image dataset = load_dataset('mnist', split='train') def transform_all_columns(example): # example['image'] is encoded as PIL Image assert isinstance(example['image'], Image) return example def transform_image_column(image): # image is decoded here and represented as raw bytes assert isinstance(image, Image) return image # single-sample dataset for debugging purposes dev = dataset.select([0]) dev.map(transform_all_columns) dev.map(transform_image_column, input_columns='image') ``` ## Expected results Image data should be passed in decoded form, i.e. as PIL Image objects to the mapping function unless the `decode` attribute on the image feature is set to `False`. ## Actual results The mapping function receives images as raw byte data. ## Environment info - `datasets` version: 1.18.3 - Platform: Linux-5.11.0-49-generic-x86_64-with-glibc2.32 - Python version: 3.8.0b4 - PyArrow version: 7.0.0
92
Images get decoded when using `map()` with `input_columns` argument on a dataset ## Describe the bug The `datasets.features.Image` feature class decodes image data by default. Expectedly, when indexing a dataset or using the `map()` method, images are returned as PIL Image instances. However, when calling `map()` and setting a specific data column with the `input_columns` argument, the image data is passed as raw byte representation to the mapping function. ## Steps to reproduce the bug ```python from datasets import load_dataset from torchvision import transforms from PIL.Image import Image dataset = load_dataset('mnist', split='train') def transform_all_columns(example): # example['image'] is encoded as PIL Image assert isinstance(example['image'], Image) return example def transform_image_column(image): # image is decoded here and represented as raw bytes assert isinstance(image, Image) return image # single-sample dataset for debugging purposes dev = dataset.select([0]) dev.map(transform_all_columns) dev.map(transform_image_column, input_columns='image') ``` ## Expected results Image data should be passed in decoded form, i.e. as PIL Image objects to the mapping function unless the `decode` attribute on the image feature is set to `False`. ## Actual results The mapping function receives images as raw byte data. ## Environment info - `datasets` version: 1.18.3 - Platform: Linux-5.11.0-49-generic-x86_64-with-glibc2.32 - Python version: 3.8.0b4 - PyArrow version: 7.0.0 I think I excluded to decorate the function when `input_columns` were passed as a quick fix for some non-passing tests: - https://github.com/huggingface/datasets/pull/2324/commits/9d7c3e8fa53e23ec636859b4407eeec904b1b3f9 That PR was quite complex and I decided to focus on the main feature requests, leaving refinements for subsequent PRs. Note that when `input_columns` are passed, the signature of the function is effectively changed, while the decorated function expects an item (whether an example or a batch) as first arg (which is not the case when passing `input_columns`. I agree we should consider supporting the case when `input_columns` are passed.
[ -0.0805242062, -0.2047774345, -0.0520251952, 0.4860448241, 0.5501019955, 0.1830330342, 0.336760968, 0.3066670299, 0.1687326133, -0.024067495, -0.0182181764, 0.6525537968, 0.0815848932, -0.3871563375, -0.2242294103, -0.2102147043, 0.1314524561, 0.278316319, -0.2537817657, -0.1469140649, -0.5218716264, 0.1328315884, -0.3421213031, 0.0935613737, -0.0418624505, -0.0370032005, -0.1045036912, -0.1714458615, -0.2953558564, -0.0098648388, -0.1141361892, -0.141582489, -0.0357877687, 0.3574273884, -0.0001185327, 0.145543471, 0.3700042963, -0.0184392072, -0.1025737599, -0.0808453932, -0.3826580346, -0.2473091483, -0.0530695319, -0.3855967224, -0.0409869291, -0.4449505806, 0.054700356, -0.1687888354, 0.244992137, 0.0911476612, 0.1796797514, -0.0401925594, 0.0524374694, 0.5353927016, 0.2489610761, 0.5667454004, -0.2239691168, -0.2175085396, 0.0238898601, -0.1527419239, -0.1924556345, 0.5349338651, -0.3647035956, 0.1426444203, 0.2278837264, 0.2759278417, -0.1226086393, -0.3315134943, 0.0998425186, -0.0878687799, 0.0413872376, -0.078885369, -0.2233452052, -0.2782942951, -0.1096885204, -0.2015566975, 0.2365045696, 0.1853391677, -0.0922361314, 0.0961779281, -0.5135347843, 0.0411224179, 0.0177256837, 0.1587929428, -0.3180482388, -0.179047972, -0.1422783136, 0.2815212607, 0.0234970003, -0.0626851022, 0.106286712, -0.2838019431, 0.2161493599, 0.1180978566, -0.1182210296, -0.0460712276, 0.0055635562, -0.080245316, 0.1058758721, -0.4866406024, -0.0483476594, -0.043021448, -0.155370459, 0.3395786285, 0.3423370123, 0.0310032703, -0.1538050771, 0.6405079365, 0.1163729578, -0.0945387334, -0.1479614377, -0.149725318, 0.1647619456, 0.0776440576, 0.1795056611, 0.0466410071, 0.3288536072, -0.0585619546, -0.0110126622, 0.0388683192, -0.2332903594, 0.1129133552, -0.0102523519, 0.145761326, 0.2159514576, 0.4574358165, 0.3417309225, 0.1523997337, -0.2216598988, -0.1858638972, -0.1097259074, -0.1907669902, -0.3000621498, -0.0322691761, -0.1817917824, 0.03112524, -0.0522432327, 0.3152361214, -0.0897358581, -0.1395657063, 0.1635999531, -0.377725184, 0.7308545709, 0.2060260624, -0.1899971217, 0.0972683802, 0.1131735072, 0.1827277392, -0.1404877901, 0.4627766311, -0.7486121058, 0.1253464222, -0.0835586041, 0.0375720002, -0.0254715979, 0.1388579756, -0.1368384361, 0.1480102241, 0.288449496, -0.3117554188, 0.1086099744, -0.2977649868, -0.2261792868, -0.2173134089, 0.1425656825, 0.2022576183, -0.031619437, 0.2336297333, -0.0524735563, -0.1756999344, 0.2208761573, 0.1560205668, -0.1337205619, 0.0391394682, -0.0936415419, 0.1853840649, 0.085093081, -0.2437056601, -0.4039491415, 0.4293062985, 0.3069880605, 0.2466659695, -0.2713566124, 0.1373973638, 0.3571946323, 0.0666496828, -0.0516415052, 0.3794567585, -0.0895815045, 0.4424224496, -0.066143766, -0.0518435687, 0.2827427089, 0.0762033612, -0.0503877662, 0.2312171608, 0.1454647332, -0.1996566504, 0.0609376542, -0.1110976189, 0.0129204271, 0.1178746521, 0.0380132757, -0.0397471599, 0.176905632, 0.0293701049, -0.0654310584, -0.033981815, 0.4736958146, -0.1166505218, -0.6160824895, -0.2499490976, 0.0372944623, 0.0519868881, -0.2332946509, 0.1643578112, 0.1201334521, 0.021035172, -0.3022566438, -0.0748175308, -0.0775360838, 0.1420873702, -0.1867561638, 0.06464421, -0.1727347225, 0.1767628342, 0.1024179831, -0.0579523444, -0.273209542, 0.0513225608, -0.0215205643, -0.0597699471, -0.2079662383, 0.4187327027, 0.32422328, 0.2379258722, -0.392246753, 0.0647417977, 0.2951213419, -0.3202979267, -0.0308454465, 0.0231984444, 0.1876063943, 0.1397133023, -0.0628723502, 0.1670364588, 0.0818450451, 0.2202781588, -0.1893864572, 0.0985903367, -0.04796784, 0.0010368088, -0.3557893634, -0.3803117275, -0.3871732354, -0.1124992818, -0.1942472309, 0.1929648519, -0.1866903007, -0.1941453964, 0.5954800248, -0.0139600933, 0.1995777339, 0.1764180809, -0.1109142825, 0.1095258072, 0.4734023213, 0.0205658972, 0.3944808245, -0.1263993084, -0.1475017071, 0.0469794869, -0.1674610078, 0.2834453583, 0.2340675294, 0.2526537776, -0.0141704399, -0.0246092286, 0.1994217932, 0.0258058086, -0.3169671297, -0.0107121486, 0.1144641414, -0.0314843208, -0.3084046245, 0.2026363164, -0.6300117373, -0.2670509815, -0.089029476, 0.1548761874, 0.1239507198, -0.1821494102, -0.1225757524, -0.1107988432, -0.0299265739, 0.1432514936, -0.2486200035, 0.0744279623, 0.2605251372, -0.3705510199, -0.1540306211, 0.0104885055, 0.0309818462, -0.0154458331, 0.0093633719, -0.2178522944, 0.1667643785, -0.0885821432, 0.0499963984, -0.1883879602, -0.3770011365, 0.355350703, -0.4507012367, 0.0552495867, 0.2561292648, 0.1347603202, -0.1260888278, -0.0328004844, 0.3196588755, 0.0123098735, -0.1575076431, 0.1478203237, 0.1540009379, -0.293890655, -0.4578055739, -0.0256867651, 0.158294037, -0.1518784612, -0.0876800492, -0.0199855696, 0.1471636295, 0.0905192792, 0.4343445897, -0.0354438163, 0.069084391, 0.1083259657, -0.1920333058, -0.0756395385, 0.4212611914, -0.0677340254, -0.2054031491, -0.1327291131, -0.0372550897, -0.1403138638, 0.6791892648, -0.5022761226, -0.3796381652, -0.2140230685, 0.0566243753, 0.0029989958, 0.1300113201, -0.1545597315, 0.2865639627, 0.1296946853, -0.2044920474, -0.2508608699, -0.2041689456, 0.2723426819, 0.3598072529, 0.3556021452, 0.4608393908, 0.16253151, 0.2441471368, 0.0196177457, -0.3795036674, 0.3852628767, -0.2935684323, 0.4640762806, -0.1161999702, -0.1654485613, 0.0271079391, -0.085215725, -0.1531690657, -0.0744276866, -0.0823864266, -0.5205462575, -0.0282669235, 0.5006818771, -0.4434305727, -0.3174022734, 0.204082042, 0.0189041384, 0.3481113911, -0.1567046791, 0.359013617, -0.195757255, -0.209668234, -0.0613374412, -0.098060213, 0.3890322745, -0.0741316006, 0.071421966, -0.2696629465, -0.1082210392, 0.097866714, 0.1079269201, 0.4857734144, 0.0029668598, -0.1101707593, 0.4192681909, 0.1108162254, 0.5547527075, -0.2202650607, -0.3221321702, 0.0060616592, 0.051692944, -0.2484813184, 0.0684511065, -0.1721806824, 0.2136413604, -0.1745137274, 0.6747490168, -0.288618207, -0.0725955814, 0.2277158201, 0.0759819672, -0.0727192685, -0.0439594537, -0.245317176, -0.2841178775, -0.1577487141, -0.1987099051, 0.3315193057, -0.0489707999, 0.1335065663, -0.2230439633, -0.1065489426, 0.1120278463, 0.0466831811, 0.262191087, 0.3507344127, -0.1465221047, -0.0873136446, 0.2062600404, 0.1818492413, -0.0646184012, 0.5171423554, -0.226247564, -0.2513768077, 0.0126942582, -0.2114856392, 0.1718583852, 0.1757082194, -0.1659393609, -0.1907503158, -0.2100683004, -0.2196183056, -0.5469944477, -0.0279554948, 0.6220947504, 0.1063473076, 0.0074068112, -0.4992473423, 0.2990392745, 0.1819816083, -0.1412970126, 0.4154953361, -0.0857418478, -0.2191280425, 0.6456862688, 0.4739603102, 0.8837475181, -0.1732030809, -0.1211186424, 0.1578954458, 0.0013816277, 0.2069404423, -0.1652436107, 0.1926091015, -0.0857518464, -0.3017522693, -0.1120398492, 0.0234986581, 0.2071334422, 0.0211792644, -0.1470544487, -0.0047465037, -0.0501445234, 0.2245152593, 0.1031580195, -0.1971839815, 0.0887416676, -0.2241574526, 0.121145539, 0.152684167, -0.0823861808, -0.1056315377, 0.1147837564, -0.0256511867, -0.0194784142, -0.2306708395, -0.0653152391, 0.0209226273, -0.1594229639, 0.2538200021, 0.1515098065, -0.1433660537, -0.0086323777, 0.6574406624, -0.2038289458, -0.0622744896, 0.1379974335, 0.0540845655, 0.4457924664, 0.40773803, 0.0822152272, -0.0372480191, 0.1748502254, 0.2455178052, -0.1281728148, 0.0335980542, 0.0748537257, -0.2280371189, -0.2520025671, 0.1158758923, 0.2017289996, -0.227048561, -0.2313669473, -0.2171515822, 0.00138118, 0.1924063712, 0.0899772048, -0.1731033027, 0.138940528, 0.6205143929, -0.1437178403, -0.3652708232, 0.0802425221, 0.3364972472, -0.0898330063, -0.0080036884, 0.176760152, -0.1507231444, -0.248165831, -0.053005036, 0.1780028194, -0.0964655504, -0.1491701752, 0.0398603566, -0.2812883854, 0.0078598084, -0.1284150481, -0.2169257253, -0.2807456851, -0.1122955009, -0.2845087647, -0.1724026799, -0.1674673706, 0.2180713415, 0.0177385844, 0.142589435, 0.0066602859, -0.1742060632, -0.0060692774, -0.135907799, -0.235250175, 0.1317898333, -0.0767417848, 0.3866564035, 0.2883619964, 0.279257983, -0.0850316808, -0.1497938484, 0.1270274073, 0.3310124576, 0.0112966951, -0.0415812358, -0.1541606337, 0.1681572348, 0.1107588485, -0.181152001, -0.264932245, -0.297662884, -0.1108086035, -0.3835059404, 0.1048707142, 0.1046609282, -0.2452355623, 0.2248037606, -0.3589625359, 0.1487437487, 0.105939649, -0.1151775643, -0.1879267097, 0.2576260269, 0.1011179313, 0.1585902423, 0.1592351198, 0.0733018965, -0.2379997671, -0.0133845117, -0.0920469761, 0.0148167694, 0.7823711038, 0.2101403773, 0.4574369788, 0.2445061207, 0.2554109097, 0.0776194558, -0.5243602395, -0.1226914898, 0.0653344691, 0.1350590885, -0.024375638, 0.0079212403, 0.3783208728, 0.2267158478, -0.0494180284, 0.2234503776, 0.0755453557, 0.3405043781, -0.0842448846, -0.2904149294, 0.4439301789, -0.2847439945, 0.1215120554, 0.9551711679, -0.2604717612, 0.242087245, 0.2637199759, -0.0565562211, 0.0427209511, 0.6568568945, -0.0461830311, 0.2125648707, 0.3512677252, 0.1598093659, 0.2103990763, -0.2243445814, 0.3895415664, 0.0834729522, -0.0004787201, 0.5124920607, 0.0731286481, -0.0372230746, -0.285854131, -0.2103905082, -0.1536900252, 0.187502265, -0.2122756392, 0.0774036422, -0.2546269894, 0.0301892925, -0.4242188632, -0.0143775344, -0.1597210765, -0.1466153711, 0.5051622987, 0.2671459317, -0.0594230257, -0.0371977538, -0.2506197989, 0.00582175, 0.4966014028, -0.3109589815, 0.1777260005, -0.0457144417, 0.2609260976, 0.383407414, 0.176233232, 0.2640249133, 0.4856463075, -0.0726942718, -0.0675327033, 0.0437951945, -0.104441762, -0.0666927323, 0.2996843755, -0.1386279613, 0.3202576041, 0.1473168433, 0.0964236557, -0.1189064384, -0.1865924597, -0.064859733, 0.4864446521, -0.0869272351, 0.3649455011, -0.2831224203, -0.1213029772, 0.035024371, -0.4115138948, -0.1396927088, -0.0962806046, 0.4494367838, -0.1288053393, 0.2710512877, 0.0366933234, 0.0206554383, -0.1338796616, 0.0578320175, 0.2841248214, -0.2640816867, -0.0468732603, 0.0241459105, -0.5556257367, 0.064612411, 0.1102787405, -0.3461033702, 0.1209328547, 0.0031646816, 0.1369665414, 0.2598586679, -0.0371138118, -0.5098983645, 0.1760083288, 0.281814158, -0.0693110228, -0.3039727509, -0.0673769042, -0.0548118055, -0.0531375743, -0.2791261673, 0.3456699848, 0.1859738231, 0.0379081108, -0.2545161843, -0.1448701918, -0.4462498426, -0.2554826736, 0.4820568562, 0.4083766043, 0.2304513752, -0.2513095737, -0.0461984649, -0.1797337234, -0.1275200546, -0.1149354354, 0.0932791606, -0.1769915521, 0.3614875376, -0.0882859752, -0.1662611514, -0.3541570902, -0.0034226098, 0.0643065944, -0.1340970099, -0.4291400611, 0.1617748886, -0.4600300491, -0.1388694793, 0.0150262378, 0.3376275301, 0.1383216083, 0.1890645027, 0.0185429808, -0.4058195055, 0.3184363246, -0.4860746861, -0.2409818769, 0.2629059255, -0.1239734143, -0.0389756784, 0.1504675746, -0.6337774992, -0.1916500181, 0.1577347666, -0.3518099189, -0.2005576789, 0.0900422856, 0.2900210023, 0.1014514565, -0.1488249153, 0.3010800779, 0.0159957148, 0.0056591774, 0.3469365537, -0.0478713736 ]
https://github.com/huggingface/datasets/issues/3755
Cannot preview dataset
Thanks for reporting. The dataset viewer depends on some backend treatments, and for now, they might take some hours to get processed. We're working on improving it.
## Dataset viewer issue for '*rubrix/news*' **Link:https://huggingface.co/datasets/rubrix/news** *link to the dataset viewer page* Cannot see the dataset preview: ``` Status code: 400 Exception: Status400Error Message: Not found. Cache is waiting to be refreshed. ``` Am I the one who added this dataset ? No
27
Cannot preview dataset ## Dataset viewer issue for '*rubrix/news*' **Link:https://huggingface.co/datasets/rubrix/news** *link to the dataset viewer page* Cannot see the dataset preview: ``` Status code: 400 Exception: Status400Error Message: Not found. Cache is waiting to be refreshed. ``` Am I the one who added this dataset ? No Thanks for reporting. The dataset viewer depends on some backend treatments, and for now, they might take some hours to get processed. We're working on improving it.
[ -0.303106606, -0.2469096929, -0.0138340583, 0.3150568604, 0.1146640852, 0.3597428501, 0.1062545702, 0.4012054801, 0.0818885267, 0.0675458312, -0.1898425519, 0.1830478162, 0.0273651537, -0.1792662144, 0.1113655269, -0.0800133497, 0.0722588599, 0.1015293971, -0.2903139293, 0.1101938561, -0.303856492, 0.1340920329, -0.0727705136, -0.030744059, -0.3440260291, 0.0051218416, -0.0414850749, -0.0443539247, -0.2155591547, -0.3400557637, 0.3452974856, 0.1297950745, 0.1788192987, 0.5764939785, -0.0001148881, 0.1152956784, 0.5214247108, 0.0857578516, -0.2970727086, -0.0525724255, -0.0793219581, -0.2776620686, 0.151807934, -0.0411456302, -0.2971931398, -0.3426694274, 0.0350875184, -0.4472393692, 0.139591217, 0.0333695039, 0.2217715234, 0.4787704647, 0.1533147395, -0.3157826364, 0.1812813133, -0.2041363418, -0.3004303575, 0.2167392671, 0.1075810492, 0.1818377972, -0.0498634689, 0.4378064275, 0.0723850206, -0.0474456437, 0.2929776907, -0.1317197978, 0.0770134479, -0.3073496819, 0.212343961, 0.2948440611, 0.7607722282, 0.0163570773, -0.3007164299, 0.201152429, 0.1899544895, -0.2841595113, 0.2184312493, 0.1334725767, 0.0964107066, 0.1444518715, -0.4584872425, -0.3266384006, 0.0428429544, 0.0236169025, -0.068504706, 0.3771344423, -0.0598060824, 0.1526463032, 0.0207308605, -0.0161077194, 0.7436224222, -0.090966247, -0.2877439857, 0.1765888631, -0.2088382244, 0.0976700336, -0.1030722335, 0.1049951166, 0.0069632656, 0.051590059, -0.0381051041, 0.0872408003, 0.0710761696, 0.184183985, 0.0643164888, 0.0183094349, 0.0276356507, 0.0866613463, 0.2724922001, 0.0620062575, 0.410210222, -0.0550556816, -0.1335684061, 0.1348681897, 0.0044743763, -0.2949164212, 0.0467366241, -0.0619682819, -0.1389712095, 0.2272565365, -0.1065583229, -0.1032019481, 0.025102511, 0.3528425694, -0.2811788619, -0.00662384, 0.0424459055, 0.0126561224, -0.0872922391, -0.303016901, -0.2253340632, -0.0388085805, -0.2319055498, 0.0270863548, 0.213361457, -0.1782910228, 0.1489042789, -0.1526591331, 0.2184901088, -0.0681914613, -0.070888333, -0.0069723804, -0.0743941516, 0.355797112, 0.0219511203, 0.2329136878, 0.1407279819, -0.0268316269, 0.1266434938, 0.2500468194, -0.1985140294, -0.283764869, -0.357867837, 0.104619123, -0.3961176872, -0.1118235514, -0.0810640603, 0.0638691783, -0.0231306162, -0.1665539593, -0.156777665, 0.1844399124, -0.2109210491, -0.065825969, 0.1571344435, 0.4731243253, -0.5292842388, -0.065525502, -0.3157708049, -0.2098798454, 0.0597179085, 0.1292473227, -0.2301988602, 0.0606707036, -0.3366560042, -0.1415608823, 0.3583888412, 0.0093772681, -0.750626564, -0.0910730436, -0.2110627443, 0.0107349493, 0.1389251053, 0.2723374963, 0.0893841982, -0.1648661941, -0.1650721133, -0.0137704182, 0.1788918972, -0.0756433979, -0.2180541754, -0.25988096, 0.3801322579, 0.152191326, 0.355278343, -0.0113473516, -0.0530876368, -0.3625586331, 0.2047606558, 0.1935482621, 0.0482157357, 0.0831799358, 0.2257868201, 0.1725881696, 0.1371118873, -0.1601002067, -0.2841463685, 0.1310462207, 0.0433729403, -0.1328805387, 0.0190180726, -0.0446759462, -0.5528770089, 0.1506547928, -0.2162674963, -0.3191356957, 0.0770357698, 0.1650236696, -0.0840660706, 0.1580582559, -0.2327489108, 0.2484698594, -0.1549506038, 0.0157303736, -0.1965380609, 0.2908470333, 0.08288607, 0.0247995984, -0.0141354818, 0.0564568415, 0.141488716, -0.1443528235, -0.2023293674, 0.3482676744, -0.0500485189, -0.1026744097, 0.5013907552, -0.2201072425, 0.0196613334, -0.4857970178, 0.138516292, -0.0543546304, 0.16686064, 0.0885617733, -0.1872052997, 0.0387890376, 0.0103598945, -0.0005546326, -0.2318774611, 0.2010590881, 0.333868742, 0.1270987839, 0.0651098266, -0.0028893023, 0.1453483552, -0.1077752039, 0.1607383341, -0.1591635942, -0.2257270515, -0.0057069338, 0.0605553389, -0.0934214517, -0.0592237934, 0.1349646747, -0.2389499843, -0.0425514691, -0.0274923798, 0.231188342, 0.1628988087, 0.1814315468, -0.0390324444, -0.016996799, 0.1069786847, 0.0088428659, -0.0676747933, 0.1603197157, 0.1420856416, 0.126943633, 0.0567874275, -0.1643927246, -0.3521047235, 0.1756483614, 0.4050614238, 0.1985217035, -0.1135704741, -0.015446269, -0.1402331591, -0.1499249786, 0.0513424724, -0.1629916877, -0.1920262277, -0.5623268485, 0.1332441568, 0.2849774063, 0.294737041, 0.3221453428, -0.3208365738, 0.3276290298, 0.0667461157, 0.2956088483, -0.1848792136, 0.0387146361, 0.027530035, 0.0629282519, 0.1711114645, -0.0593340695, 0.3967888057, -0.1200492755, 0.4145955443, -0.7059034109, -0.2785638869, 0.1479915082, -0.0773857236, 0.4803585112, -0.094995141, 0.2023559958, -0.1265614778, -0.0169784985, 0.1099243164, -0.1324228048, -0.1173784435, 0.1059159413, -0.2020780444, -0.0806981847, 0.2512032986, -0.2343080938, -0.1949010938, -0.3405520022, -0.1509386748, -0.2947400808, -0.0842300877, -0.3334484994, 0.0178971924, 0.0371109396, -0.2764879465, -0.2262629122, -0.322529465, -0.5905179381, 0.4719985425, -0.3383311927, -0.4295721054, 0.245273605, 0.0727440193, 0.1636822671, 0.0177650023, -0.6611587405, -0.0944538042, -0.2139280885, 0.1389565468, 0.0842717811, -0.2294621915, 0.4164496064, -0.1318219602, -0.0300296526, -0.0818801746, -0.2471176982, -0.3121106625, -0.3986555934, 0.5257965922, -0.1868294626, 0.3593488038, -0.0195212662, 0.836170733, 0.361368835, 0.0860609338, 0.2556227744, -0.0601257719, 0.6425051689, -0.2647354603, -0.3709158897, -0.2761954963, -0.1602949202, 0.0884681493, 0.0212222189, 0.0226280503, -0.4331333935, -0.2093942314, -0.132702589, -0.2461415976, 0.000609527, -0.0324921943, 0.0026797224, 0.2571162283, 0.1270909607, 0.2208028138, -0.0448085293, -0.3610759974, -0.0580397435, 0.5553561449, 0.3416774273, 0.088389203, -0.0758774802, 0.0164066739, -0.1909512877, 0.3075992763, -0.0703605711, 0.4212048948, -0.0599795394, 0.0508975871, 0.2838312685, -0.0063570742, 0.5294296741, -0.2956824899, -0.0473512486, 0.20283328, -0.1835746467, -0.1404585689, -0.0533272214, 0.1095507592, 0.3216540217, -0.0890964121, 0.3024315834, 0.132574141, -0.1634872705, 0.5132480264, -0.1396190971, -0.4695849717, -0.4427932203, -0.1328177452, 0.0050483556, 0.0578045994, -0.0437507406, -0.2466413975, 0.0262279734, 0.0436807685, -0.0857611969, -0.2341592312, -0.1451877058, -0.1039366648, 0.0479807816, 0.2357563972, 0.0745887011, 0.4621219635, 0.7125982046, -0.0661414713, 0.0399556719, 0.4091854393, -0.0324637182, -0.3372379541, 0.2313707322, -0.0287847314, 0.2476756871, 0.3067888618, -0.1886035651, -0.075147219, 0.1322793365, 0.2153202742, -0.173966825, -0.0352504775, 0.4908314943, -0.1700972021, -0.5113319755, -0.4473008215, 0.4327302575, 0.0515418313, -0.0080826413, 0.2898131311, 0.2502038479, 0.3082615733, -0.1988271326, -0.0798631757, 1.0238213539, -0.2103847712, -0.1101310775, 0.0962963253, -0.1060948968, 0.1397659481, -0.2881663442, 0.2295973599, -0.1866639853, -0.3673180044, -0.1655621529, -0.1758553237, 0.2266496569, -0.3521826863, 0.0198296513, 0.1007630825, -0.2625686824, 0.1016676277, -0.075885199, -0.0141752725, -0.1488869339, 0.0066617751, 0.0472796261, 0.2090427876, -0.1220568419, 0.1652409285, -0.0757637098, -0.0121527333, -0.1719444692, 0.0461592302, -0.4127916396, -0.051888667, 0.3200217783, 0.289065212, -0.0319339484, -0.4017804265, -0.0029067704, 0.1767656058, -0.1664586067, 0.2373995036, -0.3516398072, 0.3636980653, -0.2074405998, -0.2708290219, -0.2397779971, 0.0279222317, 0.0943684652, -0.0176570956, -0.3314447999, 0.19765836, -0.0600530393, -0.2181760222, -0.1186941788, -0.0037067356, 0.2132625431, -0.2342022806, 0.1511075944, -0.0253713019, -0.0891384482, -0.204788506, 0.1411167234, 0.1858886927, -0.0381972417, -0.1535953432, 0.2970842719, -0.1122238263, -0.2236011773, 0.4018708467, 0.0868603513, 0.0007602531, 0.4086027443, 0.1715284884, -0.4159229696, -0.158212617, 0.0706984624, 0.3801183701, -0.5923564434, -0.0162691753, -0.2399236709, 0.3020285964, 0.0772626102, 0.0162105989, 0.1739313304, -0.5374664664, -0.284313798, -0.4442268312, -0.2017560899, 0.1251804978, -0.1586830616, 0.2819174826, -0.1634992957, -0.1113276109, 0.1201839969, 0.1719086617, -0.2686714828, 0.0669269562, -0.1407877505, -0.0548667163, 0.1837725192, 0.0711368695, 0.2336318195, -0.1542320102, 0.0361533426, 0.1981679648, -0.391521275, -0.1622652709, -0.0912807584, 0.1491433233, -0.026946675, -0.0369578749, 0.1154998541, -0.1447571665, -0.1127172038, 0.0645988584, 0.1230352074, 0.0495436005, 0.1587741971, -0.1573411226, 0.3177886605, -0.2048820704, 0.0111003229, 0.1093333587, 0.1337426156, 0.4202138782, -0.0435270332, -0.1049819291, 0.0656207949, 0.0292091314, -0.0138330255, -0.0144062089, 0.1512606144, -0.0370185524, 0.4398560524, -0.3657500744, 0.5567653775, 0.1640247852, 0.3691035211, 0.2368526012, -0.2449429184, 0.0019331328, 0.3799025118, 0.1349232644, -0.40717417, -0.3360262811, 0.1392327696, 0.3114931285, -0.0655644983, -0.0415593162, 0.0599910207, 0.2688728273, 0.1337009668, 0.1922708303, 0.5606611371, -0.3761288822, 0.2763956487, 0.1865732819, -0.0113975592, 0.0833567306, 0.4232229292, 0.2516309619, -0.2601339817, 0.6048188806, 0.046742674, 0.2814235985, 0.1927427948, 0.2786040008, 0.0303864181, -0.4539438784, 0.3633237779, 0.0292886589, 0.0238618981, 0.04760978, -0.0402614586, 0.4849512875, -0.0441069975, 0.3809483945, -0.6515795588, 0.1796883047, -0.0525514595, 0.1650643051, 0.3536187112, -0.2119147182, -0.078507565, 0.1834328622, 0.1191089302, -0.0686295703, 0.1127508134, -0.0337306932, -0.2203223258, -0.2868268192, -0.0452968739, 0.136603266, 0.1810930073, -0.2337710261, 0.0725436881, 0.1818324924, 0.0088451626, 0.1549193263, 0.3860394657, 0.1905525923, 0.1171638146, 0.1217616498, 0.0122002456, 0.0236679595, -0.1919288635, 0.1180398837, 0.4851922393, 0.2662038505, -0.1487763375, 0.1283172518, 0.1059166566, -0.2034292668, 0.4546627402, -0.0588631667, 0.6706426144, -0.2186551988, -0.0163945518, -0.4265123308, -0.0049314122, -0.2035092264, -0.3263386786, -0.3137402236, 0.3698443174, 0.380559504, 0.0525218807, -0.0854160041, -0.1795909703, 0.0471366569, 0.0622387789, 0.4837675989, 0.1503883004, -0.0271705966, -0.1252409369, -0.2898146212, -0.6161925793, 0.2034760714, -0.2063970119, 0.1842165887, 0.1975585669, -0.0574130975, 0.0316691659, 0.2516660988, 0.4969007671, -0.1233258396, 0.1076207757, 0.2272760123, -0.2627010345, -0.2153045386, 0.2902657092, 0.0414805524, -0.0507539585, -0.1773224771, 0.2422508001, 0.2186813056, 0.0025290099, -0.0291194785, -0.1291239411, -0.0034350159, -0.0892646462, 0.3151434958, 0.0036047313, 0.5694003701, 0.2213771194, -0.129600361, -0.4684492052, -0.4389614165, 0.0176666807, 0.0896816254, 0.3954292238, 0.3258225918, -0.2002481371, -0.4654070437, -0.0461087301, 0.1014672369, -0.166359514, 0.3128977716, -0.401740849, -0.0627110004, -0.2103738785, -0.0141186826, 0.3969161808, 0.0592423975, 0.1022671908, -0.0670530871, -0.1017335132, -0.0874928609, 0.5077142119, -0.2526213527, -0.215512529, -0.0041932422, -0.1250087917, 0.0814242959, -0.3085769117, -0.4908945262, 0.1342806965, 0.3192284405, 0.02391183, 0.346567452, 0.3924428225, 0.075538896, -0.0211694837, 0.0019009653, 0.5889756083, 0.0062374515, 0.0068520471, 0.0433664806, -0.1809490919 ]
https://github.com/huggingface/datasets/issues/3753
Expanding streaming capabilities
Cool ! `filter` will be very useful. There can be a filter that you can apply on a streaming dataset: ```python load_dataset(..., streaming=True).filter(lambda x: x["lang"] == "sw") ``` Otherwise if you want to apply a filter on the source files that are going to be used for streaming, the logic has to be impIemented directly in the dataset script, or if there's no dataset script this can be done with pattern matching ```python load_dataset(..., lang="sw") # if the dataset script supports this parameter load_dataset(..., data_files="data/lang=sw/*") # if there's no dataset script, but only data files ``` -------------- Here are also some additional ideas of API to convert from iterable to map-style dataset: ```python on_disk_dataset = streaming_dataset.to_disk() on_disk_dataset = streaming_dataset.to_disk(path="path/to/my/dataset/dir") in_memory_dataset = streaming_dataset.take(100).to_memory() # to experiment without having to write files ``` -------------- Finally regarding `push_to_hub`, we can replace `batch_size` by `shard_size` (same API as for on-disk datasets). The default is 500MB per file Let me know what you think !
Some ideas for a few features that could be useful when working with large datasets in streaming mode. ## `filter` for `IterableDataset` Adding filtering to streaming datasets would be useful in several scenarios: - filter a dataset with many languages for a subset of languages - filter a dataset for specific licenses - other custom logic to get a subset The only way to achieve this at the moment is I think through writing a custom loading script and implementing filters there. ## `IterableDataset` to `Dataset` conversion In combination with the above filter a functionality to "play" the whole stream would be useful. The motivation is that often one might filter the dataset to get a manageable size for experimentation. In that case streaming mode is no longer necessary as the filtered dataset is small enough and it would be useful to be able to play through the whole stream to create a normal `Dataset` with all its benefits. ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(lambda x: x["lang"]="fr") ds_filter = ds_filter.stream() # here the `IterableDataset` is converted to a `Dataset` ``` Naturally, this could be expanded with `stream(n=1000)` which creates a `Dataset` with the first `n` elements similar to `take`. ## Stream to the Hub While streaming allows to use a dataset as is without saving the whole dataset on the local machine it is currently not possible to process a dataset and add it to the hub. The only way to do this is by downloading the full dataset and saving the processed dataset again before pushing them to the hub. The API could looks something like: ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(some_filter_func) ds_processed = ds_filter.map(some_processing_func) ds_processed.push_to_hub("new_better_dataset", batch_size=100_000) ``` Under the hood this could be done by processing and aggregating `batch_size` elements and then pushing that batch as a single file to the hub. With this functionality one could process and create TB scale datasets while only requiring size of `batch_size` local disk space. cc @lhoestq @albertvillanova
160
Expanding streaming capabilities Some ideas for a few features that could be useful when working with large datasets in streaming mode. ## `filter` for `IterableDataset` Adding filtering to streaming datasets would be useful in several scenarios: - filter a dataset with many languages for a subset of languages - filter a dataset for specific licenses - other custom logic to get a subset The only way to achieve this at the moment is I think through writing a custom loading script and implementing filters there. ## `IterableDataset` to `Dataset` conversion In combination with the above filter a functionality to "play" the whole stream would be useful. The motivation is that often one might filter the dataset to get a manageable size for experimentation. In that case streaming mode is no longer necessary as the filtered dataset is small enough and it would be useful to be able to play through the whole stream to create a normal `Dataset` with all its benefits. ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(lambda x: x["lang"]="fr") ds_filter = ds_filter.stream() # here the `IterableDataset` is converted to a `Dataset` ``` Naturally, this could be expanded with `stream(n=1000)` which creates a `Dataset` with the first `n` elements similar to `take`. ## Stream to the Hub While streaming allows to use a dataset as is without saving the whole dataset on the local machine it is currently not possible to process a dataset and add it to the hub. The only way to do this is by downloading the full dataset and saving the processed dataset again before pushing them to the hub. The API could looks something like: ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(some_filter_func) ds_processed = ds_filter.map(some_processing_func) ds_processed.push_to_hub("new_better_dataset", batch_size=100_000) ``` Under the hood this could be done by processing and aggregating `batch_size` elements and then pushing that batch as a single file to the hub. With this functionality one could process and create TB scale datasets while only requiring size of `batch_size` local disk space. cc @lhoestq @albertvillanova Cool ! `filter` will be very useful. There can be a filter that you can apply on a streaming dataset: ```python load_dataset(..., streaming=True).filter(lambda x: x["lang"] == "sw") ``` Otherwise if you want to apply a filter on the source files that are going to be used for streaming, the logic has to be impIemented directly in the dataset script, or if there's no dataset script this can be done with pattern matching ```python load_dataset(..., lang="sw") # if the dataset script supports this parameter load_dataset(..., data_files="data/lang=sw/*") # if there's no dataset script, but only data files ``` -------------- Here are also some additional ideas of API to convert from iterable to map-style dataset: ```python on_disk_dataset = streaming_dataset.to_disk() on_disk_dataset = streaming_dataset.to_disk(path="path/to/my/dataset/dir") in_memory_dataset = streaming_dataset.take(100).to_memory() # to experiment without having to write files ``` -------------- Finally regarding `push_to_hub`, we can replace `batch_size` by `shard_size` (same API as for on-disk datasets). The default is 500MB per file Let me know what you think !
[ -0.6017636657, -0.3428730369, -0.1772567183, -0.1217319965, 0.095033817, -0.029509645, 0.0078959418, 0.4271878004, 0.2996822, 0.1316366345, -0.246367231, 0.1956981421, -0.3171160221, 0.5236800313, 0.1842929125, -0.2316042334, 0.0046889852, -0.063887991, 0.0321256034, -0.0199252795, -0.08965341, -0.2317504436, 0.0261173937, -0.3504241407, -0.0302563068, -0.1973039806, 0.0122735873, 0.0792028084, -0.0183411259, -0.317715168, -0.1802665293, 0.351241529, 0.232407257, 0.3060454726, -0.0000961433, -0.1652710736, 0.3316686749, -0.1381972134, -0.2891048789, 0.0977007896, -0.1096617877, -0.2695684731, -0.1347922385, -0.1115486994, 0.0097455885, -0.2364865839, -0.0372986607, -0.4184394479, 0.3032381535, 0.1520563215, 0.2643561065, 0.1664692163, -0.0989552066, -0.0476095639, -0.1325707734, 0.1287206113, -0.1502554417, -0.0285046902, 0.8205331564, 0.2588174641, -0.1110843122, 0.2367940247, -0.1133275107, -0.0729261488, 0.1050396413, -0.2227928638, -0.3462639749, -0.4867884517, 0.083979547, 0.3214173317, 0.257555753, -0.190870285, -0.5496609211, -0.4100446701, -0.0289835855, -0.5458959341, -0.2427368611, 0.1768651605, -0.1016881168, 0.1822111309, -0.1973501593, -0.3404654264, -0.3419093192, 0.1168436632, -0.0361141376, 0.414118737, 0.0085990103, -0.1010241583, 0.1054292396, -0.1017687991, 0.3299289644, -0.1506091058, 0.121493049, 0.1471762359, -0.3070002794, -0.110378772, 0.3181495667, 0.2431368679, 0.2336176336, 0.3233348429, 0.4170576036, 0.4703833461, -0.1760716438, 0.0495495722, 0.2891607285, -0.0356656723, -0.1117909327, -0.3022634983, 0.423501581, -0.0296101812, 0.059980385, -0.083400175, -0.0531823002, 0.0690834075, 0.0264848992, 0.007294619, -0.0845944211, -0.0174210873, 0.2210843712, -0.0435815714, 0.0174499173, 0.0413627476, 0.1975154281, 0.1182593256, -0.0331609547, 0.4002295434, -0.323877871, 0.1661576778, 0.0084880209, -0.1222290173, -0.0833195075, -0.1447036266, 0.0361273959, 0.0649496242, 0.3543260098, -0.3501908183, 0.0205587838, -0.1562098563, 0.3335550725, 0.1925290376, 0.1561812311, -0.1789885312, 0.1347651184, 0.0483265482, 0.051760219, 0.0341938287, -0.1331989616, -0.0167220011, -0.2790338695, 0.0412630923, 0.0703864992, -0.4852515757, 0.2034561485, 0.2634720504, -0.449742049, -0.1723444015, -0.2173275054, 0.4976123869, -0.3637233675, -0.0632618219, -0.1642255932, -0.0004612682, -0.1965588033, -0.1215982288, 0.0115773231, 0.1683514267, -0.2501423657, 0.0003095139, -0.1177047342, 0.0918626562, 0.0427034423, 0.1529423594, -0.247966975, 0.0299075097, 0.099229753, 0.032651525, 0.4218484163, -0.2676977217, -0.4277790785, 0.3155728877, 0.0744728521, 0.2253725082, 0.2547080815, 0.1915587336, 0.5543831587, -0.072905466, 0.0675237253, 0.6424476504, -0.1530388147, 0.0502147824, -0.2242372483, -0.0993094072, -0.1096170545, 0.4400523603, 0.3155378401, -0.0897815153, 0.1828790605, 0.171852544, 0.2757479846, -0.1065547317, 0.3113627732, -0.0308854561, 0.1917297542, 0.0982523561, -0.0032450145, -0.3634263277, -0.0792835802, 0.1905997694, 0.0969163924, 0.0561862029, 0.0012153167, -0.2312177122, 0.039854005, 0.0913698003, -0.1031450331, 0.0684949756, 0.2176522613, 0.0852075294, 0.1475512832, -0.0292127896, -0.3365392387, 0.2678205371, -0.180899322, -0.2890977859, -0.1524312943, 0.1300536096, 0.1555281281, -0.1140678152, 0.1352212876, 0.0726684332, -0.0621647686, -0.1417959183, -0.0281550679, 0.0643051043, 0.0422311053, 0.3687618673, 0.1077667922, 0.5076822042, 0.5203462243, 0.0073178802, 0.230027616, 0.2409531623, 0.1791612357, -0.0544201359, -0.3338833451, 0.3749195337, -0.3377268612, 0.2855302989, 0.2176279128, -0.0307042338, 0.4610057473, 0.1929567754, -0.2160961777, 0.086957626, 0.0375185907, -0.0993456617, -0.0865367278, -0.1420668811, -0.275303632, 0.1858817488, 0.3275161684, -0.0685518011, -0.0688920841, 0.1047604829, -0.1145748571, -0.1511885077, 0.2093173414, 0.0601803213, 0.2133425772, 0.3944813609, 0.2888845801, 0.0318169147, 0.3138362169, -0.154043749, 0.2460727394, 0.2600216269, -0.0900543928, 0.2793576121, 0.1841324866, -0.2449651212, -0.3337852657, -0.2882029414, 0.2527047992, 0.0818992779, 0.1515624672, -0.0806493014, -0.2619690597, -0.1786770374, -0.0560873151, -0.3184862137, -0.1289274246, -0.268030256, 0.1695370823, 0.5394133925, -0.2486333102, 0.0236695185, 0.0541221648, 0.3959671259, -0.0650152192, -0.0931763053, -0.0634776726, -0.2195885777, 0.0961115509, 0.2386269867, 0.2038356662, -0.0442502312, 0.3613211513, 0.2314411849, 0.0808388069, -0.1610714942, -0.2382699102, 0.0619817637, -0.0459874459, 0.0796924308, -0.2878713608, 0.0737039074, 0.29017362, -0.1070570573, -0.0121582765, -0.3034943044, 0.1921684295, -0.0441514291, -0.0273950379, 0.0329257883, -0.0201018453, -0.2354157716, -0.4530469775, -0.7298929095, 0.3012056053, 0.0991150513, 0.1878378838, -0.0086766258, -0.0064798105, 0.0482498705, 0.2265588492, -0.1472065449, -0.1291726232, -0.1857986748, 0.276373595, -0.3931843936, -0.3339014947, -0.1216246858, -0.0874513015, 0.1553791165, 0.2817220986, -0.1300668567, -0.0181023944, -0.1469797492, 0.1307760775, 0.1076444536, 0.0475630313, 0.2006223053, -0.0300883483, -0.1043290943, -0.0833720714, 0.1299069226, -0.225497961, 0.3245012164, -0.0230951793, 0.1472437382, 0.1302884221, -0.0648998767, 0.4075124562, 0.0456422418, 0.3045526147, 0.3936144412, 0.142898649, 0.055047296, -0.2858432829, -0.1304921657, 0.1009374708, -0.1856148988, -0.1753453314, 0.3858812451, 0.1530541182, -0.2825036049, -0.216999352, -0.2765979171, 0.0164115224, -0.2602362633, 0.4533994496, -0.0543922484, 0.1932222247, -0.2075011879, -0.0944134817, -0.2632983625, -0.0983974412, 0.0168695096, -0.1099000722, 0.2269709706, 0.0385596119, -0.3399102986, -0.1186322793, -0.420353204, 0.2300406098, 0.1477846205, 0.1699892431, -0.0176510848, -0.2099078596, -0.1210098118, -0.0451444499, 0.18246831, -0.4932332635, -0.3234097362, 0.0467133075, -0.3272001743, -0.2473352104, 0.1049403101, -0.3689318895, 0.1813104153, -0.1252786219, 0.2013816237, -0.026768215, -0.0007486281, -0.1793358773, 0.2685503364, -0.1245062351, 0.0647403672, -0.0648968443, -0.0969190449, -0.5746098757, 0.1891545206, 0.0073268758, 0.1441018134, -0.2044261247, -0.1609568745, -0.0103059253, 0.0701192021, 0.1319025308, 0.2130637318, 0.04827049, 0.1254477054, 0.1436837316, -0.0633069277, 0.0977347493, 0.0330389142, 0.3984699845, 0.391647011, -0.1835532039, 0.0710257888, 0.0337404348, 0.3064407408, 0.365000993, 0.1263477504, 0.3642568886, 0.0516924448, 0.2357373089, -0.4573357403, 0.1987919956, -0.0919080004, 0.0456232391, -0.2962839305, -0.5849719644, 0.4394057691, -0.0950646922, -0.1309941113, 0.4125880897, -0.0705394074, -0.1086800545, 0.316902101, 0.010201877, 0.7968452573, 0.1432112306, -0.0883188546, -0.1805038154, -0.1498672068, 0.1691277325, -0.3304284811, 0.2315497547, 0.0271376465, -0.2144640833, 0.0211145598, 0.1767402142, 0.0423764549, -0.05361031, -0.3214973211, 0.1262624264, 0.124770008, 0.1546913236, -0.1417280883, 0.4863967597, -0.509878397, -0.4921408296, -0.3826676011, 0.2932675183, -0.0663578361, -0.0977280736, -0.0526354127, -0.1278853863, 0.1522321552, 0.2593035102, -0.283972621, -0.1715630591, -0.0398190096, -0.0103283357, -0.613368392, -0.2017600536, 0.1228233352, -0.0084592775, -0.1212499365, 0.2776865661, -0.3501688242, 0.2888547182, -0.0940581039, 0.2920541167, 0.0070775179, -0.0747650936, 0.2848557532, -0.1857615858, -0.4093770087, 0.2308790535, 0.2800832689, -0.2122042626, -0.2015127093, -0.0704754442, 0.4375374317, 0.0922971368, -0.0565420613, 0.165918082, -0.450419873, -0.1854858249, 0.2091100961, -0.0495672747, -0.2736181021, 0.3432324231, -0.0200017001, -0.0751409307, -0.2689094543, 0.2566459477, 0.2241145372, 0.0421307534, 0.1359555572, 0.1448988914, -0.15813905, -0.294921279, 0.027749192, -0.1194900796, -0.0642323792, 0.0503384471, 0.0023863083, -0.2404194474, -0.0812040269, 0.007979962, 0.0101366937, -0.0147363413, -0.4345333278, -0.1305326074, -0.3119235337, 0.1114011332, 0.1626351178, 0.159011066, -0.273979485, -0.2197398096, 0.0099529559, 0.1291047782, -0.4584192932, -0.1526120007, 0.1254887432, 0.1515313834, -0.1360677481, -0.0039413455, 0.0624463893, -0.069630444, 0.1140273735, 0.2014017254, -0.1667093933, -0.3447836041, -0.1842017025, 0.1108223274, 0.0653190538, -0.117333293, -0.066404283, -0.1464795172, -0.1678982824, -0.2619173825, 0.38798365, 0.0368977152, 0.0475689285, -0.0779624507, 0.3478136063, -0.2097115219, 0.0209946856, 0.0717695132, 0.184242487, 0.2076530457, 0.0307522733, 0.1650084108, 0.3608512878, -0.1870367974, 0.0825174078, 0.1847036034, 0.3383254409, 0.038043905, 0.4530072808, 0.1584526449, 0.2131818533, 0.1920455843, 0.4201769829, 0.347799629, 0.2066553831, 0.0236639567, 0.1977399737, 0.3630167246, -0.2302017808, -0.2110092789, -0.1270252317, -0.1945642233, 0.2577632368, 0.1744776666, 0.297772795, 0.0364824086, -0.1316201389, -0.1262599081, 0.1424279958, -0.0188331325, 0.2742651999, 0.2646563053, 0.189110741, -0.1171266511, -0.0609408952, -0.0039198878, 0.075452581, 0.3722880185, -0.2718703151, 0.3911435604, 0.2516730726, -0.0216413271, 0.3029298782, -0.2801705301, -0.2818467319, -0.2775960565, -0.1100310534, 0.527508378, 0.0456823073, 0.0441608354, -0.0291503686, -0.1018042117, -0.176072821, 0.0639633834, 0.116660133, -0.0714858174, -0.0135700377, -0.2001774162, -0.1933755875, 0.2016557008, 0.1234906167, -0.0531574748, 0.0533523411, 0.1491921693, 0.2449216545, -0.2029870003, 0.1394254416, -0.045025304, 0.3790868819, -0.1930786371, -0.0591993183, 0.4461402595, -0.0149141978, 0.0319917165, 0.0349098556, 0.1339576691, 0.0619903728, -0.2308783978, 0.5247856975, -0.0313830897, -0.0241977107, -0.1702115685, 0.2722080648, 0.1711307019, 0.2796997726, 0.3272654414, 0.2319734097, -0.1898730993, 0.0302727614, -0.1717052013, -0.3220389485, -0.1278037578, 0.2120521665, 0.3352967203, -0.1584249586, -0.3958599269, -0.0438730717, -0.3211355805, -0.1215135157, 0.4636258781, -0.3031924069, 0.0758749768, -0.1047835797, 0.1465290785, -0.1344816089, 0.7636392117, -0.0290455166, 0.0751987696, -0.0552993044, -0.0557825454, -0.352488935, -0.0397483446, -0.0379925035, 0.0021886979, 0.0123745892, 0.1339914501, 0.1837444305, 0.241474092, -0.3344487548, -0.2666684985, -0.0750349537, 0.1379897743, -0.2333655804, -0.0930320844, 0.1465610564, 0.3005634546, -0.0183557067, -0.3478399813, 0.2825006545, -0.2012954801, 0.179747954, 0.0936827362, -0.0598411448, 0.009884621, -0.1658672988, 0.2669371963, 0.0058797798, 0.2416451126, -0.2077649683, 0.0921365172, -0.1984082013, -0.0196360163, -0.2901006937, 0.1022709832, 0.0187184587, 0.2732810676, 0.1693851799, -0.1812689006, -0.0917294919, 0.1144808754, -0.0411928408, -0.1599853486, -0.0768873543, -0.2204765677, -0.1829351485, 0.1758161634, -0.0274847373, 0.3904811144, -0.1050536931, -0.1476594955, -0.1105078533, -0.3184751272, 0.3151653409, -0.122379452, -0.3735604286, -0.1176248863, 0.1434944868, 0.3670860529, 0.2744903266, -0.3314856291, 0.0741399303, 0.1937411129, -0.1625996828, 0.0413971208, 0.4426732063, -0.0398156084, -0.3232400119, -0.1317952424, -0.1835425198, 0.0938702077, -0.1637251973, -0.021042997, -0.2205352932 ]
https://github.com/huggingface/datasets/issues/3753
Expanding streaming capabilities
Regarding conversion, I'd also ask for some kind of equivalent to `save_to_disk` for an `IterableDataset`. Similarly to the streaming to hub idea, my use case would be to define a sequence of dataset transforms via `.map()`, using an `IterableDataset` as the input (so processing could start without doing whole download up-front), but streaming the resultant processed dataset just to disk.
Some ideas for a few features that could be useful when working with large datasets in streaming mode. ## `filter` for `IterableDataset` Adding filtering to streaming datasets would be useful in several scenarios: - filter a dataset with many languages for a subset of languages - filter a dataset for specific licenses - other custom logic to get a subset The only way to achieve this at the moment is I think through writing a custom loading script and implementing filters there. ## `IterableDataset` to `Dataset` conversion In combination with the above filter a functionality to "play" the whole stream would be useful. The motivation is that often one might filter the dataset to get a manageable size for experimentation. In that case streaming mode is no longer necessary as the filtered dataset is small enough and it would be useful to be able to play through the whole stream to create a normal `Dataset` with all its benefits. ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(lambda x: x["lang"]="fr") ds_filter = ds_filter.stream() # here the `IterableDataset` is converted to a `Dataset` ``` Naturally, this could be expanded with `stream(n=1000)` which creates a `Dataset` with the first `n` elements similar to `take`. ## Stream to the Hub While streaming allows to use a dataset as is without saving the whole dataset on the local machine it is currently not possible to process a dataset and add it to the hub. The only way to do this is by downloading the full dataset and saving the processed dataset again before pushing them to the hub. The API could looks something like: ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(some_filter_func) ds_processed = ds_filter.map(some_processing_func) ds_processed.push_to_hub("new_better_dataset", batch_size=100_000) ``` Under the hood this could be done by processing and aggregating `batch_size` elements and then pushing that batch as a single file to the hub. With this functionality one could process and create TB scale datasets while only requiring size of `batch_size` local disk space. cc @lhoestq @albertvillanova
60
Expanding streaming capabilities Some ideas for a few features that could be useful when working with large datasets in streaming mode. ## `filter` for `IterableDataset` Adding filtering to streaming datasets would be useful in several scenarios: - filter a dataset with many languages for a subset of languages - filter a dataset for specific licenses - other custom logic to get a subset The only way to achieve this at the moment is I think through writing a custom loading script and implementing filters there. ## `IterableDataset` to `Dataset` conversion In combination with the above filter a functionality to "play" the whole stream would be useful. The motivation is that often one might filter the dataset to get a manageable size for experimentation. In that case streaming mode is no longer necessary as the filtered dataset is small enough and it would be useful to be able to play through the whole stream to create a normal `Dataset` with all its benefits. ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(lambda x: x["lang"]="fr") ds_filter = ds_filter.stream() # here the `IterableDataset` is converted to a `Dataset` ``` Naturally, this could be expanded with `stream(n=1000)` which creates a `Dataset` with the first `n` elements similar to `take`. ## Stream to the Hub While streaming allows to use a dataset as is without saving the whole dataset on the local machine it is currently not possible to process a dataset and add it to the hub. The only way to do this is by downloading the full dataset and saving the processed dataset again before pushing them to the hub. The API could looks something like: ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(some_filter_func) ds_processed = ds_filter.map(some_processing_func) ds_processed.push_to_hub("new_better_dataset", batch_size=100_000) ``` Under the hood this could be done by processing and aggregating `batch_size` elements and then pushing that batch as a single file to the hub. With this functionality one could process and create TB scale datasets while only requiring size of `batch_size` local disk space. cc @lhoestq @albertvillanova Regarding conversion, I'd also ask for some kind of equivalent to `save_to_disk` for an `IterableDataset`. Similarly to the streaming to hub idea, my use case would be to define a sequence of dataset transforms via `.map()`, using an `IterableDataset` as the input (so processing could start without doing whole download up-front), but streaming the resultant processed dataset just to disk.
[ -0.6017636657, -0.3428730369, -0.1772567183, -0.1217319965, 0.095033817, -0.029509645, 0.0078959418, 0.4271878004, 0.2996822, 0.1316366345, -0.246367231, 0.1956981421, -0.3171160221, 0.5236800313, 0.1842929125, -0.2316042334, 0.0046889852, -0.063887991, 0.0321256034, -0.0199252795, -0.08965341, -0.2317504436, 0.0261173937, -0.3504241407, -0.0302563068, -0.1973039806, 0.0122735873, 0.0792028084, -0.0183411259, -0.317715168, -0.1802665293, 0.351241529, 0.232407257, 0.3060454726, -0.0000961433, -0.1652710736, 0.3316686749, -0.1381972134, -0.2891048789, 0.0977007896, -0.1096617877, -0.2695684731, -0.1347922385, -0.1115486994, 0.0097455885, -0.2364865839, -0.0372986607, -0.4184394479, 0.3032381535, 0.1520563215, 0.2643561065, 0.1664692163, -0.0989552066, -0.0476095639, -0.1325707734, 0.1287206113, -0.1502554417, -0.0285046902, 0.8205331564, 0.2588174641, -0.1110843122, 0.2367940247, -0.1133275107, -0.0729261488, 0.1050396413, -0.2227928638, -0.3462639749, -0.4867884517, 0.083979547, 0.3214173317, 0.257555753, -0.190870285, -0.5496609211, -0.4100446701, -0.0289835855, -0.5458959341, -0.2427368611, 0.1768651605, -0.1016881168, 0.1822111309, -0.1973501593, -0.3404654264, -0.3419093192, 0.1168436632, -0.0361141376, 0.414118737, 0.0085990103, -0.1010241583, 0.1054292396, -0.1017687991, 0.3299289644, -0.1506091058, 0.121493049, 0.1471762359, -0.3070002794, -0.110378772, 0.3181495667, 0.2431368679, 0.2336176336, 0.3233348429, 0.4170576036, 0.4703833461, -0.1760716438, 0.0495495722, 0.2891607285, -0.0356656723, -0.1117909327, -0.3022634983, 0.423501581, -0.0296101812, 0.059980385, -0.083400175, -0.0531823002, 0.0690834075, 0.0264848992, 0.007294619, -0.0845944211, -0.0174210873, 0.2210843712, -0.0435815714, 0.0174499173, 0.0413627476, 0.1975154281, 0.1182593256, -0.0331609547, 0.4002295434, -0.323877871, 0.1661576778, 0.0084880209, -0.1222290173, -0.0833195075, -0.1447036266, 0.0361273959, 0.0649496242, 0.3543260098, -0.3501908183, 0.0205587838, -0.1562098563, 0.3335550725, 0.1925290376, 0.1561812311, -0.1789885312, 0.1347651184, 0.0483265482, 0.051760219, 0.0341938287, -0.1331989616, -0.0167220011, -0.2790338695, 0.0412630923, 0.0703864992, -0.4852515757, 0.2034561485, 0.2634720504, -0.449742049, -0.1723444015, -0.2173275054, 0.4976123869, -0.3637233675, -0.0632618219, -0.1642255932, -0.0004612682, -0.1965588033, -0.1215982288, 0.0115773231, 0.1683514267, -0.2501423657, 0.0003095139, -0.1177047342, 0.0918626562, 0.0427034423, 0.1529423594, -0.247966975, 0.0299075097, 0.099229753, 0.032651525, 0.4218484163, -0.2676977217, -0.4277790785, 0.3155728877, 0.0744728521, 0.2253725082, 0.2547080815, 0.1915587336, 0.5543831587, -0.072905466, 0.0675237253, 0.6424476504, -0.1530388147, 0.0502147824, -0.2242372483, -0.0993094072, -0.1096170545, 0.4400523603, 0.3155378401, -0.0897815153, 0.1828790605, 0.171852544, 0.2757479846, -0.1065547317, 0.3113627732, -0.0308854561, 0.1917297542, 0.0982523561, -0.0032450145, -0.3634263277, -0.0792835802, 0.1905997694, 0.0969163924, 0.0561862029, 0.0012153167, -0.2312177122, 0.039854005, 0.0913698003, -0.1031450331, 0.0684949756, 0.2176522613, 0.0852075294, 0.1475512832, -0.0292127896, -0.3365392387, 0.2678205371, -0.180899322, -0.2890977859, -0.1524312943, 0.1300536096, 0.1555281281, -0.1140678152, 0.1352212876, 0.0726684332, -0.0621647686, -0.1417959183, -0.0281550679, 0.0643051043, 0.0422311053, 0.3687618673, 0.1077667922, 0.5076822042, 0.5203462243, 0.0073178802, 0.230027616, 0.2409531623, 0.1791612357, -0.0544201359, -0.3338833451, 0.3749195337, -0.3377268612, 0.2855302989, 0.2176279128, -0.0307042338, 0.4610057473, 0.1929567754, -0.2160961777, 0.086957626, 0.0375185907, -0.0993456617, -0.0865367278, -0.1420668811, -0.275303632, 0.1858817488, 0.3275161684, -0.0685518011, -0.0688920841, 0.1047604829, -0.1145748571, -0.1511885077, 0.2093173414, 0.0601803213, 0.2133425772, 0.3944813609, 0.2888845801, 0.0318169147, 0.3138362169, -0.154043749, 0.2460727394, 0.2600216269, -0.0900543928, 0.2793576121, 0.1841324866, -0.2449651212, -0.3337852657, -0.2882029414, 0.2527047992, 0.0818992779, 0.1515624672, -0.0806493014, -0.2619690597, -0.1786770374, -0.0560873151, -0.3184862137, -0.1289274246, -0.268030256, 0.1695370823, 0.5394133925, -0.2486333102, 0.0236695185, 0.0541221648, 0.3959671259, -0.0650152192, -0.0931763053, -0.0634776726, -0.2195885777, 0.0961115509, 0.2386269867, 0.2038356662, -0.0442502312, 0.3613211513, 0.2314411849, 0.0808388069, -0.1610714942, -0.2382699102, 0.0619817637, -0.0459874459, 0.0796924308, -0.2878713608, 0.0737039074, 0.29017362, -0.1070570573, -0.0121582765, -0.3034943044, 0.1921684295, -0.0441514291, -0.0273950379, 0.0329257883, -0.0201018453, -0.2354157716, -0.4530469775, -0.7298929095, 0.3012056053, 0.0991150513, 0.1878378838, -0.0086766258, -0.0064798105, 0.0482498705, 0.2265588492, -0.1472065449, -0.1291726232, -0.1857986748, 0.276373595, -0.3931843936, -0.3339014947, -0.1216246858, -0.0874513015, 0.1553791165, 0.2817220986, -0.1300668567, -0.0181023944, -0.1469797492, 0.1307760775, 0.1076444536, 0.0475630313, 0.2006223053, -0.0300883483, -0.1043290943, -0.0833720714, 0.1299069226, -0.225497961, 0.3245012164, -0.0230951793, 0.1472437382, 0.1302884221, -0.0648998767, 0.4075124562, 0.0456422418, 0.3045526147, 0.3936144412, 0.142898649, 0.055047296, -0.2858432829, -0.1304921657, 0.1009374708, -0.1856148988, -0.1753453314, 0.3858812451, 0.1530541182, -0.2825036049, -0.216999352, -0.2765979171, 0.0164115224, -0.2602362633, 0.4533994496, -0.0543922484, 0.1932222247, -0.2075011879, -0.0944134817, -0.2632983625, -0.0983974412, 0.0168695096, -0.1099000722, 0.2269709706, 0.0385596119, -0.3399102986, -0.1186322793, -0.420353204, 0.2300406098, 0.1477846205, 0.1699892431, -0.0176510848, -0.2099078596, -0.1210098118, -0.0451444499, 0.18246831, -0.4932332635, -0.3234097362, 0.0467133075, -0.3272001743, -0.2473352104, 0.1049403101, -0.3689318895, 0.1813104153, -0.1252786219, 0.2013816237, -0.026768215, -0.0007486281, -0.1793358773, 0.2685503364, -0.1245062351, 0.0647403672, -0.0648968443, -0.0969190449, -0.5746098757, 0.1891545206, 0.0073268758, 0.1441018134, -0.2044261247, -0.1609568745, -0.0103059253, 0.0701192021, 0.1319025308, 0.2130637318, 0.04827049, 0.1254477054, 0.1436837316, -0.0633069277, 0.0977347493, 0.0330389142, 0.3984699845, 0.391647011, -0.1835532039, 0.0710257888, 0.0337404348, 0.3064407408, 0.365000993, 0.1263477504, 0.3642568886, 0.0516924448, 0.2357373089, -0.4573357403, 0.1987919956, -0.0919080004, 0.0456232391, -0.2962839305, -0.5849719644, 0.4394057691, -0.0950646922, -0.1309941113, 0.4125880897, -0.0705394074, -0.1086800545, 0.316902101, 0.010201877, 0.7968452573, 0.1432112306, -0.0883188546, -0.1805038154, -0.1498672068, 0.1691277325, -0.3304284811, 0.2315497547, 0.0271376465, -0.2144640833, 0.0211145598, 0.1767402142, 0.0423764549, -0.05361031, -0.3214973211, 0.1262624264, 0.124770008, 0.1546913236, -0.1417280883, 0.4863967597, -0.509878397, -0.4921408296, -0.3826676011, 0.2932675183, -0.0663578361, -0.0977280736, -0.0526354127, -0.1278853863, 0.1522321552, 0.2593035102, -0.283972621, -0.1715630591, -0.0398190096, -0.0103283357, -0.613368392, -0.2017600536, 0.1228233352, -0.0084592775, -0.1212499365, 0.2776865661, -0.3501688242, 0.2888547182, -0.0940581039, 0.2920541167, 0.0070775179, -0.0747650936, 0.2848557532, -0.1857615858, -0.4093770087, 0.2308790535, 0.2800832689, -0.2122042626, -0.2015127093, -0.0704754442, 0.4375374317, 0.0922971368, -0.0565420613, 0.165918082, -0.450419873, -0.1854858249, 0.2091100961, -0.0495672747, -0.2736181021, 0.3432324231, -0.0200017001, -0.0751409307, -0.2689094543, 0.2566459477, 0.2241145372, 0.0421307534, 0.1359555572, 0.1448988914, -0.15813905, -0.294921279, 0.027749192, -0.1194900796, -0.0642323792, 0.0503384471, 0.0023863083, -0.2404194474, -0.0812040269, 0.007979962, 0.0101366937, -0.0147363413, -0.4345333278, -0.1305326074, -0.3119235337, 0.1114011332, 0.1626351178, 0.159011066, -0.273979485, -0.2197398096, 0.0099529559, 0.1291047782, -0.4584192932, -0.1526120007, 0.1254887432, 0.1515313834, -0.1360677481, -0.0039413455, 0.0624463893, -0.069630444, 0.1140273735, 0.2014017254, -0.1667093933, -0.3447836041, -0.1842017025, 0.1108223274, 0.0653190538, -0.117333293, -0.066404283, -0.1464795172, -0.1678982824, -0.2619173825, 0.38798365, 0.0368977152, 0.0475689285, -0.0779624507, 0.3478136063, -0.2097115219, 0.0209946856, 0.0717695132, 0.184242487, 0.2076530457, 0.0307522733, 0.1650084108, 0.3608512878, -0.1870367974, 0.0825174078, 0.1847036034, 0.3383254409, 0.038043905, 0.4530072808, 0.1584526449, 0.2131818533, 0.1920455843, 0.4201769829, 0.347799629, 0.2066553831, 0.0236639567, 0.1977399737, 0.3630167246, -0.2302017808, -0.2110092789, -0.1270252317, -0.1945642233, 0.2577632368, 0.1744776666, 0.297772795, 0.0364824086, -0.1316201389, -0.1262599081, 0.1424279958, -0.0188331325, 0.2742651999, 0.2646563053, 0.189110741, -0.1171266511, -0.0609408952, -0.0039198878, 0.075452581, 0.3722880185, -0.2718703151, 0.3911435604, 0.2516730726, -0.0216413271, 0.3029298782, -0.2801705301, -0.2818467319, -0.2775960565, -0.1100310534, 0.527508378, 0.0456823073, 0.0441608354, -0.0291503686, -0.1018042117, -0.176072821, 0.0639633834, 0.116660133, -0.0714858174, -0.0135700377, -0.2001774162, -0.1933755875, 0.2016557008, 0.1234906167, -0.0531574748, 0.0533523411, 0.1491921693, 0.2449216545, -0.2029870003, 0.1394254416, -0.045025304, 0.3790868819, -0.1930786371, -0.0591993183, 0.4461402595, -0.0149141978, 0.0319917165, 0.0349098556, 0.1339576691, 0.0619903728, -0.2308783978, 0.5247856975, -0.0313830897, -0.0241977107, -0.1702115685, 0.2722080648, 0.1711307019, 0.2796997726, 0.3272654414, 0.2319734097, -0.1898730993, 0.0302727614, -0.1717052013, -0.3220389485, -0.1278037578, 0.2120521665, 0.3352967203, -0.1584249586, -0.3958599269, -0.0438730717, -0.3211355805, -0.1215135157, 0.4636258781, -0.3031924069, 0.0758749768, -0.1047835797, 0.1465290785, -0.1344816089, 0.7636392117, -0.0290455166, 0.0751987696, -0.0552993044, -0.0557825454, -0.352488935, -0.0397483446, -0.0379925035, 0.0021886979, 0.0123745892, 0.1339914501, 0.1837444305, 0.241474092, -0.3344487548, -0.2666684985, -0.0750349537, 0.1379897743, -0.2333655804, -0.0930320844, 0.1465610564, 0.3005634546, -0.0183557067, -0.3478399813, 0.2825006545, -0.2012954801, 0.179747954, 0.0936827362, -0.0598411448, 0.009884621, -0.1658672988, 0.2669371963, 0.0058797798, 0.2416451126, -0.2077649683, 0.0921365172, -0.1984082013, -0.0196360163, -0.2901006937, 0.1022709832, 0.0187184587, 0.2732810676, 0.1693851799, -0.1812689006, -0.0917294919, 0.1144808754, -0.0411928408, -0.1599853486, -0.0768873543, -0.2204765677, -0.1829351485, 0.1758161634, -0.0274847373, 0.3904811144, -0.1050536931, -0.1476594955, -0.1105078533, -0.3184751272, 0.3151653409, -0.122379452, -0.3735604286, -0.1176248863, 0.1434944868, 0.3670860529, 0.2744903266, -0.3314856291, 0.0741399303, 0.1937411129, -0.1625996828, 0.0413971208, 0.4426732063, -0.0398156084, -0.3232400119, -0.1317952424, -0.1835425198, 0.0938702077, -0.1637251973, -0.021042997, -0.2205352932 ]
https://github.com/huggingface/datasets/issues/3753
Expanding streaming capabilities
That makes sense @athewsey , thanks for the suggestion :) Maybe instead of the `to_disk` we could simply have `save_to_disk` instead: ```python streaming_dataset.save_to_disk("path/to/my/dataset/dir") on_disk_dataset = load_from_disk("path/to/my/dataset/dir") in_memory_dataset = Dataset.from_list(list(streaming_dataset.take(100))) # to experiment without having to write files ```
Some ideas for a few features that could be useful when working with large datasets in streaming mode. ## `filter` for `IterableDataset` Adding filtering to streaming datasets would be useful in several scenarios: - filter a dataset with many languages for a subset of languages - filter a dataset for specific licenses - other custom logic to get a subset The only way to achieve this at the moment is I think through writing a custom loading script and implementing filters there. ## `IterableDataset` to `Dataset` conversion In combination with the above filter a functionality to "play" the whole stream would be useful. The motivation is that often one might filter the dataset to get a manageable size for experimentation. In that case streaming mode is no longer necessary as the filtered dataset is small enough and it would be useful to be able to play through the whole stream to create a normal `Dataset` with all its benefits. ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(lambda x: x["lang"]="fr") ds_filter = ds_filter.stream() # here the `IterableDataset` is converted to a `Dataset` ``` Naturally, this could be expanded with `stream(n=1000)` which creates a `Dataset` with the first `n` elements similar to `take`. ## Stream to the Hub While streaming allows to use a dataset as is without saving the whole dataset on the local machine it is currently not possible to process a dataset and add it to the hub. The only way to do this is by downloading the full dataset and saving the processed dataset again before pushing them to the hub. The API could looks something like: ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(some_filter_func) ds_processed = ds_filter.map(some_processing_func) ds_processed.push_to_hub("new_better_dataset", batch_size=100_000) ``` Under the hood this could be done by processing and aggregating `batch_size` elements and then pushing that batch as a single file to the hub. With this functionality one could process and create TB scale datasets while only requiring size of `batch_size` local disk space. cc @lhoestq @albertvillanova
38
Expanding streaming capabilities Some ideas for a few features that could be useful when working with large datasets in streaming mode. ## `filter` for `IterableDataset` Adding filtering to streaming datasets would be useful in several scenarios: - filter a dataset with many languages for a subset of languages - filter a dataset for specific licenses - other custom logic to get a subset The only way to achieve this at the moment is I think through writing a custom loading script and implementing filters there. ## `IterableDataset` to `Dataset` conversion In combination with the above filter a functionality to "play" the whole stream would be useful. The motivation is that often one might filter the dataset to get a manageable size for experimentation. In that case streaming mode is no longer necessary as the filtered dataset is small enough and it would be useful to be able to play through the whole stream to create a normal `Dataset` with all its benefits. ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(lambda x: x["lang"]="fr") ds_filter = ds_filter.stream() # here the `IterableDataset` is converted to a `Dataset` ``` Naturally, this could be expanded with `stream(n=1000)` which creates a `Dataset` with the first `n` elements similar to `take`. ## Stream to the Hub While streaming allows to use a dataset as is without saving the whole dataset on the local machine it is currently not possible to process a dataset and add it to the hub. The only way to do this is by downloading the full dataset and saving the processed dataset again before pushing them to the hub. The API could looks something like: ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(some_filter_func) ds_processed = ds_filter.map(some_processing_func) ds_processed.push_to_hub("new_better_dataset", batch_size=100_000) ``` Under the hood this could be done by processing and aggregating `batch_size` elements and then pushing that batch as a single file to the hub. With this functionality one could process and create TB scale datasets while only requiring size of `batch_size` local disk space. cc @lhoestq @albertvillanova That makes sense @athewsey , thanks for the suggestion :) Maybe instead of the `to_disk` we could simply have `save_to_disk` instead: ```python streaming_dataset.save_to_disk("path/to/my/dataset/dir") on_disk_dataset = load_from_disk("path/to/my/dataset/dir") in_memory_dataset = Dataset.from_list(list(streaming_dataset.take(100))) # to experiment without having to write files ```
[ -0.6017636657, -0.3428730369, -0.1772567183, -0.1217319965, 0.095033817, -0.029509645, 0.0078959418, 0.4271878004, 0.2996822, 0.1316366345, -0.246367231, 0.1956981421, -0.3171160221, 0.5236800313, 0.1842929125, -0.2316042334, 0.0046889852, -0.063887991, 0.0321256034, -0.0199252795, -0.08965341, -0.2317504436, 0.0261173937, -0.3504241407, -0.0302563068, -0.1973039806, 0.0122735873, 0.0792028084, -0.0183411259, -0.317715168, -0.1802665293, 0.351241529, 0.232407257, 0.3060454726, -0.0000961433, -0.1652710736, 0.3316686749, -0.1381972134, -0.2891048789, 0.0977007896, -0.1096617877, -0.2695684731, -0.1347922385, -0.1115486994, 0.0097455885, -0.2364865839, -0.0372986607, -0.4184394479, 0.3032381535, 0.1520563215, 0.2643561065, 0.1664692163, -0.0989552066, -0.0476095639, -0.1325707734, 0.1287206113, -0.1502554417, -0.0285046902, 0.8205331564, 0.2588174641, -0.1110843122, 0.2367940247, -0.1133275107, -0.0729261488, 0.1050396413, -0.2227928638, -0.3462639749, -0.4867884517, 0.083979547, 0.3214173317, 0.257555753, -0.190870285, -0.5496609211, -0.4100446701, -0.0289835855, -0.5458959341, -0.2427368611, 0.1768651605, -0.1016881168, 0.1822111309, -0.1973501593, -0.3404654264, -0.3419093192, 0.1168436632, -0.0361141376, 0.414118737, 0.0085990103, -0.1010241583, 0.1054292396, -0.1017687991, 0.3299289644, -0.1506091058, 0.121493049, 0.1471762359, -0.3070002794, -0.110378772, 0.3181495667, 0.2431368679, 0.2336176336, 0.3233348429, 0.4170576036, 0.4703833461, -0.1760716438, 0.0495495722, 0.2891607285, -0.0356656723, -0.1117909327, -0.3022634983, 0.423501581, -0.0296101812, 0.059980385, -0.083400175, -0.0531823002, 0.0690834075, 0.0264848992, 0.007294619, -0.0845944211, -0.0174210873, 0.2210843712, -0.0435815714, 0.0174499173, 0.0413627476, 0.1975154281, 0.1182593256, -0.0331609547, 0.4002295434, -0.323877871, 0.1661576778, 0.0084880209, -0.1222290173, -0.0833195075, -0.1447036266, 0.0361273959, 0.0649496242, 0.3543260098, -0.3501908183, 0.0205587838, -0.1562098563, 0.3335550725, 0.1925290376, 0.1561812311, -0.1789885312, 0.1347651184, 0.0483265482, 0.051760219, 0.0341938287, -0.1331989616, -0.0167220011, -0.2790338695, 0.0412630923, 0.0703864992, -0.4852515757, 0.2034561485, 0.2634720504, -0.449742049, -0.1723444015, -0.2173275054, 0.4976123869, -0.3637233675, -0.0632618219, -0.1642255932, -0.0004612682, -0.1965588033, -0.1215982288, 0.0115773231, 0.1683514267, -0.2501423657, 0.0003095139, -0.1177047342, 0.0918626562, 0.0427034423, 0.1529423594, -0.247966975, 0.0299075097, 0.099229753, 0.032651525, 0.4218484163, -0.2676977217, -0.4277790785, 0.3155728877, 0.0744728521, 0.2253725082, 0.2547080815, 0.1915587336, 0.5543831587, -0.072905466, 0.0675237253, 0.6424476504, -0.1530388147, 0.0502147824, -0.2242372483, -0.0993094072, -0.1096170545, 0.4400523603, 0.3155378401, -0.0897815153, 0.1828790605, 0.171852544, 0.2757479846, -0.1065547317, 0.3113627732, -0.0308854561, 0.1917297542, 0.0982523561, -0.0032450145, -0.3634263277, -0.0792835802, 0.1905997694, 0.0969163924, 0.0561862029, 0.0012153167, -0.2312177122, 0.039854005, 0.0913698003, -0.1031450331, 0.0684949756, 0.2176522613, 0.0852075294, 0.1475512832, -0.0292127896, -0.3365392387, 0.2678205371, -0.180899322, -0.2890977859, -0.1524312943, 0.1300536096, 0.1555281281, -0.1140678152, 0.1352212876, 0.0726684332, -0.0621647686, -0.1417959183, -0.0281550679, 0.0643051043, 0.0422311053, 0.3687618673, 0.1077667922, 0.5076822042, 0.5203462243, 0.0073178802, 0.230027616, 0.2409531623, 0.1791612357, -0.0544201359, -0.3338833451, 0.3749195337, -0.3377268612, 0.2855302989, 0.2176279128, -0.0307042338, 0.4610057473, 0.1929567754, -0.2160961777, 0.086957626, 0.0375185907, -0.0993456617, -0.0865367278, -0.1420668811, -0.275303632, 0.1858817488, 0.3275161684, -0.0685518011, -0.0688920841, 0.1047604829, -0.1145748571, -0.1511885077, 0.2093173414, 0.0601803213, 0.2133425772, 0.3944813609, 0.2888845801, 0.0318169147, 0.3138362169, -0.154043749, 0.2460727394, 0.2600216269, -0.0900543928, 0.2793576121, 0.1841324866, -0.2449651212, -0.3337852657, -0.2882029414, 0.2527047992, 0.0818992779, 0.1515624672, -0.0806493014, -0.2619690597, -0.1786770374, -0.0560873151, -0.3184862137, -0.1289274246, -0.268030256, 0.1695370823, 0.5394133925, -0.2486333102, 0.0236695185, 0.0541221648, 0.3959671259, -0.0650152192, -0.0931763053, -0.0634776726, -0.2195885777, 0.0961115509, 0.2386269867, 0.2038356662, -0.0442502312, 0.3613211513, 0.2314411849, 0.0808388069, -0.1610714942, -0.2382699102, 0.0619817637, -0.0459874459, 0.0796924308, -0.2878713608, 0.0737039074, 0.29017362, -0.1070570573, -0.0121582765, -0.3034943044, 0.1921684295, -0.0441514291, -0.0273950379, 0.0329257883, -0.0201018453, -0.2354157716, -0.4530469775, -0.7298929095, 0.3012056053, 0.0991150513, 0.1878378838, -0.0086766258, -0.0064798105, 0.0482498705, 0.2265588492, -0.1472065449, -0.1291726232, -0.1857986748, 0.276373595, -0.3931843936, -0.3339014947, -0.1216246858, -0.0874513015, 0.1553791165, 0.2817220986, -0.1300668567, -0.0181023944, -0.1469797492, 0.1307760775, 0.1076444536, 0.0475630313, 0.2006223053, -0.0300883483, -0.1043290943, -0.0833720714, 0.1299069226, -0.225497961, 0.3245012164, -0.0230951793, 0.1472437382, 0.1302884221, -0.0648998767, 0.4075124562, 0.0456422418, 0.3045526147, 0.3936144412, 0.142898649, 0.055047296, -0.2858432829, -0.1304921657, 0.1009374708, -0.1856148988, -0.1753453314, 0.3858812451, 0.1530541182, -0.2825036049, -0.216999352, -0.2765979171, 0.0164115224, -0.2602362633, 0.4533994496, -0.0543922484, 0.1932222247, -0.2075011879, -0.0944134817, -0.2632983625, -0.0983974412, 0.0168695096, -0.1099000722, 0.2269709706, 0.0385596119, -0.3399102986, -0.1186322793, -0.420353204, 0.2300406098, 0.1477846205, 0.1699892431, -0.0176510848, -0.2099078596, -0.1210098118, -0.0451444499, 0.18246831, -0.4932332635, -0.3234097362, 0.0467133075, -0.3272001743, -0.2473352104, 0.1049403101, -0.3689318895, 0.1813104153, -0.1252786219, 0.2013816237, -0.026768215, -0.0007486281, -0.1793358773, 0.2685503364, -0.1245062351, 0.0647403672, -0.0648968443, -0.0969190449, -0.5746098757, 0.1891545206, 0.0073268758, 0.1441018134, -0.2044261247, -0.1609568745, -0.0103059253, 0.0701192021, 0.1319025308, 0.2130637318, 0.04827049, 0.1254477054, 0.1436837316, -0.0633069277, 0.0977347493, 0.0330389142, 0.3984699845, 0.391647011, -0.1835532039, 0.0710257888, 0.0337404348, 0.3064407408, 0.365000993, 0.1263477504, 0.3642568886, 0.0516924448, 0.2357373089, -0.4573357403, 0.1987919956, -0.0919080004, 0.0456232391, -0.2962839305, -0.5849719644, 0.4394057691, -0.0950646922, -0.1309941113, 0.4125880897, -0.0705394074, -0.1086800545, 0.316902101, 0.010201877, 0.7968452573, 0.1432112306, -0.0883188546, -0.1805038154, -0.1498672068, 0.1691277325, -0.3304284811, 0.2315497547, 0.0271376465, -0.2144640833, 0.0211145598, 0.1767402142, 0.0423764549, -0.05361031, -0.3214973211, 0.1262624264, 0.124770008, 0.1546913236, -0.1417280883, 0.4863967597, -0.509878397, -0.4921408296, -0.3826676011, 0.2932675183, -0.0663578361, -0.0977280736, -0.0526354127, -0.1278853863, 0.1522321552, 0.2593035102, -0.283972621, -0.1715630591, -0.0398190096, -0.0103283357, -0.613368392, -0.2017600536, 0.1228233352, -0.0084592775, -0.1212499365, 0.2776865661, -0.3501688242, 0.2888547182, -0.0940581039, 0.2920541167, 0.0070775179, -0.0747650936, 0.2848557532, -0.1857615858, -0.4093770087, 0.2308790535, 0.2800832689, -0.2122042626, -0.2015127093, -0.0704754442, 0.4375374317, 0.0922971368, -0.0565420613, 0.165918082, -0.450419873, -0.1854858249, 0.2091100961, -0.0495672747, -0.2736181021, 0.3432324231, -0.0200017001, -0.0751409307, -0.2689094543, 0.2566459477, 0.2241145372, 0.0421307534, 0.1359555572, 0.1448988914, -0.15813905, -0.294921279, 0.027749192, -0.1194900796, -0.0642323792, 0.0503384471, 0.0023863083, -0.2404194474, -0.0812040269, 0.007979962, 0.0101366937, -0.0147363413, -0.4345333278, -0.1305326074, -0.3119235337, 0.1114011332, 0.1626351178, 0.159011066, -0.273979485, -0.2197398096, 0.0099529559, 0.1291047782, -0.4584192932, -0.1526120007, 0.1254887432, 0.1515313834, -0.1360677481, -0.0039413455, 0.0624463893, -0.069630444, 0.1140273735, 0.2014017254, -0.1667093933, -0.3447836041, -0.1842017025, 0.1108223274, 0.0653190538, -0.117333293, -0.066404283, -0.1464795172, -0.1678982824, -0.2619173825, 0.38798365, 0.0368977152, 0.0475689285, -0.0779624507, 0.3478136063, -0.2097115219, 0.0209946856, 0.0717695132, 0.184242487, 0.2076530457, 0.0307522733, 0.1650084108, 0.3608512878, -0.1870367974, 0.0825174078, 0.1847036034, 0.3383254409, 0.038043905, 0.4530072808, 0.1584526449, 0.2131818533, 0.1920455843, 0.4201769829, 0.347799629, 0.2066553831, 0.0236639567, 0.1977399737, 0.3630167246, -0.2302017808, -0.2110092789, -0.1270252317, -0.1945642233, 0.2577632368, 0.1744776666, 0.297772795, 0.0364824086, -0.1316201389, -0.1262599081, 0.1424279958, -0.0188331325, 0.2742651999, 0.2646563053, 0.189110741, -0.1171266511, -0.0609408952, -0.0039198878, 0.075452581, 0.3722880185, -0.2718703151, 0.3911435604, 0.2516730726, -0.0216413271, 0.3029298782, -0.2801705301, -0.2818467319, -0.2775960565, -0.1100310534, 0.527508378, 0.0456823073, 0.0441608354, -0.0291503686, -0.1018042117, -0.176072821, 0.0639633834, 0.116660133, -0.0714858174, -0.0135700377, -0.2001774162, -0.1933755875, 0.2016557008, 0.1234906167, -0.0531574748, 0.0533523411, 0.1491921693, 0.2449216545, -0.2029870003, 0.1394254416, -0.045025304, 0.3790868819, -0.1930786371, -0.0591993183, 0.4461402595, -0.0149141978, 0.0319917165, 0.0349098556, 0.1339576691, 0.0619903728, -0.2308783978, 0.5247856975, -0.0313830897, -0.0241977107, -0.1702115685, 0.2722080648, 0.1711307019, 0.2796997726, 0.3272654414, 0.2319734097, -0.1898730993, 0.0302727614, -0.1717052013, -0.3220389485, -0.1278037578, 0.2120521665, 0.3352967203, -0.1584249586, -0.3958599269, -0.0438730717, -0.3211355805, -0.1215135157, 0.4636258781, -0.3031924069, 0.0758749768, -0.1047835797, 0.1465290785, -0.1344816089, 0.7636392117, -0.0290455166, 0.0751987696, -0.0552993044, -0.0557825454, -0.352488935, -0.0397483446, -0.0379925035, 0.0021886979, 0.0123745892, 0.1339914501, 0.1837444305, 0.241474092, -0.3344487548, -0.2666684985, -0.0750349537, 0.1379897743, -0.2333655804, -0.0930320844, 0.1465610564, 0.3005634546, -0.0183557067, -0.3478399813, 0.2825006545, -0.2012954801, 0.179747954, 0.0936827362, -0.0598411448, 0.009884621, -0.1658672988, 0.2669371963, 0.0058797798, 0.2416451126, -0.2077649683, 0.0921365172, -0.1984082013, -0.0196360163, -0.2901006937, 0.1022709832, 0.0187184587, 0.2732810676, 0.1693851799, -0.1812689006, -0.0917294919, 0.1144808754, -0.0411928408, -0.1599853486, -0.0768873543, -0.2204765677, -0.1829351485, 0.1758161634, -0.0274847373, 0.3904811144, -0.1050536931, -0.1476594955, -0.1105078533, -0.3184751272, 0.3151653409, -0.122379452, -0.3735604286, -0.1176248863, 0.1434944868, 0.3670860529, 0.2744903266, -0.3314856291, 0.0741399303, 0.1937411129, -0.1625996828, 0.0413971208, 0.4426732063, -0.0398156084, -0.3232400119, -0.1317952424, -0.1835425198, 0.0938702077, -0.1637251973, -0.021042997, -0.2205352932 ]
https://github.com/huggingface/datasets/issues/3739
Pubmed dataset does not work in streaming mode
Thanks for reporting, @abhi-mosaic (related to #3655). Please note that `xml.etree.ElementTree.parse` already supports streaming: - #3476 No need to refactor to use `open`/`xopen`. Is is enough with importing the package `as ET` (instead of `as etree`).
## Describe the bug Trying to use the `pubmed` dataset with `streaming=True` fails. ## Steps to reproduce the bug ```python import datasets pubmed_train = datasets.load_dataset('pubmed', split='train', streaming=True) print (next(iter(pubmed_train))) ``` ## Expected results I would expect to see the first training sample from the pubmed dataset. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/abhinav/Documents/mosaicml/mosaicml_venv/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 367, in __iter__ for key, example in self._iter(): File "/Users/abhinav/Documents/mosaicml/mosaicml_venv/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 364, in _iter yield from ex_iterable File "/Users/abhinav/Documents/mosaicml/mosaicml_venv/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 79, in __iter__ for key, example in self.generate_examples_fn(**self.kwargs): File "/Users/abhinav/.cache/huggingface/modules/datasets_modules/datasets/pubmed/9715addf10c42a7877a2149ae0c5f2fddabefc775cd1bd9b03ac3f012b86ce46/pubmed.py", line 373, in _generate_examples tree = etree.parse(filename) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/xml/etree/ElementTree.py", line 1202, in parse tree.parse(source, parser) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/xml/etree/ElementTree.py", line 584, in parse source = open(source, "rb") FileNotFoundError: [Errno 2] No such file or directory: 'gzip://pubmed21n0001.xml::ftp://ftp.ncbi.nlm.nih.gov/pubmed/baseline/pubmed21n0001.xml.gz' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.2 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.2 - PyArrow version: 6.0.0 ## Comments The error looks like an issue with `open` vs. `xopen` inside the `xml` package. It looks like it's trying to open the remote source URL, which has been edited with prefix `gzip://...`. Maybe there can be an explicit `xopen` before passing the raw data to `etree`, something like: ```python # Before tree = etree.parse(filename) root = tree.getroot() # After with xopen(filename) as f: data_str = f.read() root = etree.fromstring(data_str) ```
36
Pubmed dataset does not work in streaming mode ## Describe the bug Trying to use the `pubmed` dataset with `streaming=True` fails. ## Steps to reproduce the bug ```python import datasets pubmed_train = datasets.load_dataset('pubmed', split='train', streaming=True) print (next(iter(pubmed_train))) ``` ## Expected results I would expect to see the first training sample from the pubmed dataset. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/abhinav/Documents/mosaicml/mosaicml_venv/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 367, in __iter__ for key, example in self._iter(): File "/Users/abhinav/Documents/mosaicml/mosaicml_venv/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 364, in _iter yield from ex_iterable File "/Users/abhinav/Documents/mosaicml/mosaicml_venv/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 79, in __iter__ for key, example in self.generate_examples_fn(**self.kwargs): File "/Users/abhinav/.cache/huggingface/modules/datasets_modules/datasets/pubmed/9715addf10c42a7877a2149ae0c5f2fddabefc775cd1bd9b03ac3f012b86ce46/pubmed.py", line 373, in _generate_examples tree = etree.parse(filename) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/xml/etree/ElementTree.py", line 1202, in parse tree.parse(source, parser) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/xml/etree/ElementTree.py", line 584, in parse source = open(source, "rb") FileNotFoundError: [Errno 2] No such file or directory: 'gzip://pubmed21n0001.xml::ftp://ftp.ncbi.nlm.nih.gov/pubmed/baseline/pubmed21n0001.xml.gz' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.2 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.2 - PyArrow version: 6.0.0 ## Comments The error looks like an issue with `open` vs. `xopen` inside the `xml` package. It looks like it's trying to open the remote source URL, which has been edited with prefix `gzip://...`. Maybe there can be an explicit `xopen` before passing the raw data to `etree`, something like: ```python # Before tree = etree.parse(filename) root = tree.getroot() # After with xopen(filename) as f: data_str = f.read() root = etree.fromstring(data_str) ``` Thanks for reporting, @abhi-mosaic (related to #3655). Please note that `xml.etree.ElementTree.parse` already supports streaming: - #3476 No need to refactor to use `open`/`xopen`. Is is enough with importing the package `as ET` (instead of `as etree`).
[ -0.2567091584, -0.107677184, 0.0392324403, 0.0182673112, 0.3081787229, -0.029495867, 0.3082026243, 0.311396122, -0.0702125132, 0.0274794362, 0.1031503826, 0.2790320516, -0.1545047164, 0.1329765916, 0.0741169825, -0.1817835569, 0.1080832854, 0.1717883945, 0.0063677346, -0.0066768569, -0.0284886621, 0.0646730438, -0.3442026079, -0.253030926, 0.1164921373, -0.0241161939, 0.0450958759, 0.247939527, -0.2276094556, -0.3835965991, 0.3262425661, 0.1716511697, 0.135890618, 0.4910627902, -0.000109901, 0.0947194919, 0.4737317264, -0.0826141611, -0.2528693676, -0.2126825601, -0.2600460351, -0.0678216219, 0.156393826, -0.2775078714, -0.3232387304, -0.2747630775, -0.091805242, -0.5758284926, 0.1725559235, 0.4786940813, 0.2556690574, 0.3239408135, -0.1142402738, 0.0177667346, 0.2219898999, 0.038381815, -0.2422209084, 0.2945572734, 0.3184598982, 0.2381203324, 0.0152797736, 0.4170443118, -0.0533435494, 0.0943459421, 0.1172908843, 0.1096779704, 0.0057974467, -0.1186604574, 0.0245239064, 0.1877078265, 0.3997775912, -0.2930715978, -0.2114299983, -0.1289612949, -0.0425554849, -0.3737036586, 0.2545691729, 0.0627751276, -0.1751845181, 0.0901273191, -0.1626878977, -0.0640523434, -0.2869334817, 0.1759809256, 0.0041736164, 0.2013479322, -0.1265217811, -0.0192546602, 0.0320600681, 0.0240153279, 0.3089469075, -0.0495119467, -0.0265549179, 0.0013798596, -0.4330783188, -0.0757588223, -0.0301166642, 0.0056554391, 0.104438886, 0.4206588566, 0.3070503175, 0.0617156215, 0.2427207381, 0.0215652175, 0.1631125361, -0.1736772805, -0.185424611, 0.1991691589, 0.2021308094, 0.4485293925, -0.080567129, -0.2398634404, 0.1579831094, 0.0512198471, 0.1015318558, -0.2145982385, 0.3575845659, -0.2054947019, -0.0932683125, 0.1342092156, -0.3329712152, 0.0340251178, -0.0157568641, 0.2684146464, 0.0053138812, 0.2361917496, 0.1295848936, 0.2464134097, -0.2494119704, -0.144694373, -0.1988382488, 0.0070770206, -0.1113635078, -0.1015240774, 0.1709477901, -0.6453523636, 0.2290005386, 0.0312116221, 0.1912696064, -0.1172291487, 0.122624591, -0.2710645795, 0.2153062224, 0.2155139744, 0.0479179434, 0.2775524855, 0.2315819561, -0.061353527, 0.0251174141, -0.0653204471, -0.0045891227, -0.2500827312, -0.0885884985, 0.2499218881, -0.207656458, -0.1161580235, -0.0396697335, 0.1532846391, 0.0820930302, -0.3422113955, -0.0487960353, -0.2345181108, -0.2153351456, -0.1746812016, 0.5263876319, 0.2595038712, -0.0297873802, 0.003115535, -0.2655658722, 0.10342969, 0.4895381033, 0.1062481776, -0.2078962475, 0.0615048036, -0.0719363168, 0.0055886623, 0.5491598845, -0.2789795399, -0.6055478454, 0.2476218343, 0.0217598174, 0.4248399138, 0.2428152412, -0.0845872909, 0.410672009, -0.0588969104, -0.1106090471, 0.4604534805, -0.1615544111, 0.2281896621, -0.3953384161, -0.0913784057, 0.2286234498, 0.1831508726, 0.2996665835, 0.035207361, 0.2294349074, 0.4935004413, 0.3309440315, 0.0139924604, 0.1894833893, 0.104811281, 0.1170777678, 0.057716433, 0.186965704, -0.3412796259, 0.117886126, 0.1162868589, 0.3276038766, -0.0738729388, -0.0275926888, 0.0188310836, -0.2481950223, -0.1453094333, -0.4472605288, -0.5021516681, 0.1962644607, 0.3404533267, 0.0739084184, 0.0986953378, -0.3385989964, 0.1652053595, -0.2937665582, -0.039822448, -0.3618005812, 0.413959235, 0.000683389, -0.4323041141, 0.110459879, -0.0249515995, 0.0367987081, -0.0204774067, -0.241936028, 0.4727542102, -0.198114723, 0.4407779872, -0.1245453358, 0.0421544239, 0.2229146659, -0.5197713375, 0.085858494, 0.4703598619, 0.1940228492, 0.1320629567, -0.3360252976, 0.0004724537, -0.0182307754, 0.1594505012, 0.0995403305, 0.0774796903, 0.1812310517, -0.0282827783, -0.3531385958, -0.11008472, 0.3463565111, -0.2765350044, -0.0167930722, -0.349817872, -0.3807042539, 0.0403994769, 0.3730182946, 0.2005861849, 0.0158082955, -0.1137692407, -0.3420220315, -0.0914224908, 0.0439159088, 0.2532890141, 0.3440485895, 0.1239366531, 0.2185880393, 0.2032265514, 0.0296726022, -0.1889368892, 0.1715428531, 0.1127978563, 0.1730988771, 0.2443700731, 0.174610585, -0.0491902642, -0.3332816064, -0.1475111395, 0.0527632311, 0.2331733704, -0.3762114942, 0.1099106297, -0.3760869503, -0.1457893848, -0.3291430473, -0.1573859453, 0.1855614036, -0.2492586374, -0.1569316387, 0.5577377081, 0.0296742544, 0.1043913215, -0.233925581, -0.0097401571, 0.242913276, -0.0180189926, -0.1752682179, 0.0709251761, -0.1638564318, 0.1846530288, -0.0010313857, 0.0670370087, 0.3432896733, -0.136212945, -0.1671035886, -0.3904285133, -0.0850560367, 0.2374867499, -0.0341367275, 0.2739311457, 0.0089407219, 0.1592451185, 0.0506966934, -0.0163433291, 0.3310105801, -0.5872151852, 0.0456778817, 0.186677888, 0.0758798271, 0.2648510039, -0.0226382073, -0.444293499, -0.1811418831, -0.4436194003, -0.241323784, 0.02159876, 0.0059731882, 0.2187626958, 0.0535367467, 0.1104799062, 0.0478865728, 0.174203217, -0.1298670918, -0.4568092525, 0.3374615014, -0.1690224111, -0.430536896, -0.0430455245, 0.169116959, -0.1200277135, 0.4949424565, -0.3422318399, -0.0125475684, 0.0362848081, -0.1296217889, 0.0388699174, -0.024354456, 0.3013808429, -0.2012640238, -0.0284991786, -0.2972625792, 0.1321711838, -0.1158604622, 0.0957513452, 0.2818240225, 0.2037265003, 0.5223625898, 0.1498858333, 0.6884757876, 0.5986148119, 0.0404104032, 0.3990855515, -0.1403530985, 0.2263091207, -0.0012400497, -0.3859666288, 0.2330578268, -0.0951730609, 0.0048554982, 0.1561085433, -0.0264265127, -0.1198600456, -0.166242972, 0.0154646859, -0.1588903964, -0.325651139, 0.157471627, -0.4586041868, 0.4375865757, -0.20578219, 0.2930231094, 0.2548108697, -0.1982392818, -0.049452208, 0.3400596976, -0.0621055998, 0.187531516, -0.1233352944, -0.1515301913, -0.4231167436, -0.0560654141, 0.0828997791, 0.5476253033, -0.17211245, -0.1599074006, 0.1815674752, 0.0005415877, 0.5049659014, -0.4723156095, 0.0929386988, 0.1280099601, -0.0601543747, -0.4516569972, -0.1953454167, -0.412922889, 0.3115038872, 0.0078286566, 0.188490212, -0.0306232721, 0.0423716977, 0.3754028678, -0.1546242982, -0.0124682309, -0.1714888513, -0.3136576712, -0.349147588, -0.3899276555, 0.0582043193, -0.1043393463, 0.1102444008, -0.2604880333, -0.0866190419, 0.0060542859, 0.1435413957, -0.0357267559, 0.0871091262, 0.3241237998, 0.0511749275, 0.2944535613, 0.3785462081, 0.0908742994, 0.1209996864, 0.602360487, 0.3636639714, -0.2338778973, 0.122024186, 0.0753122345, -0.0371646397, 0.3091935813, -0.2119967937, 0.2011162937, 0.3252482712, 0.0173978787, -0.0108130155, 0.0870424286, 0.5038557053, -0.1160854772, -0.1901048422, -0.6723312736, 0.3604424894, -0.017937582, 0.1547679901, 0.1238225549, -0.0731449723, -0.2397610843, 0.1124124378, 0.0095033711, 0.6749405265, 0.1478527784, -0.0680945292, 0.2195546925, -0.0205274597, 0.3394361138, -0.1519594043, 0.1821747869, -0.2181913406, -0.5506743193, -0.0642999485, -0.1846550405, 0.2759418786, -0.3993761539, -0.4258509278, 0.1594870985, 0.1431611329, 0.3267188668, 0.1451717764, 0.1781282425, -0.3557236791, -0.1798339635, -0.5012806654, 0.1791565269, -0.1762759537, 0.0641205683, 0.0786007866, -0.0664657652, -0.0135931866, -0.1132261753, -0.3110526502, 0.2851346135, -0.0073018922, -0.0455954298, -0.0990518928, -0.6475034952, 0.1438873708, 0.0628917813, -0.0634489581, 0.042454537, -0.3468886912, 0.1679767519, 0.2256797105, -0.091952078, 0.0880974159, 0.0111315753, 0.3439775705, -0.1428391039, -0.1946640909, 0.2936230302, 0.0105245672, -0.3569165468, 0.1303353012, -0.18776384, 0.5544692278, -0.0652673617, 0.033448793, 0.0072885132, -0.1031563208, -0.2793536186, 0.1813009381, -0.003251367, -0.104532972, 0.2432635725, 0.0782092512, -0.0380416922, -0.1604734808, 0.420547545, 0.2285606861, 0.3508199155, 0.447096616, 0.1953015625, -0.1969281882, -0.1899076253, -0.0143505642, -0.0284395069, -0.0387165509, 0.0318490602, -0.2439670116, 0.2455980033, 0.105005458, -0.032641001, -0.0608307756, -0.2246001512, -0.4278657734, -0.4308739901, -0.0588666387, -0.0420963876, -0.1534224153, 0.0982442424, 0.1672555655, 0.0098774759, 0.0049200207, -0.2284073383, -0.3499368131, -0.1499150693, -0.1371082217, 0.1091685146, 0.233169347, 0.120290786, 0.344484061, -0.1441039145, 0.109417744, 0.165841639, -0.1050220355, -0.2329027653, -0.1114191189, 0.1335058212, 0.144023627, -0.2555983961, -0.157971397, -0.1654618979, -0.3351273239, -0.1769418418, 0.2113343775, -0.0335775018, -0.0095805759, -0.059306059, 0.1555570066, -0.1437716037, -0.0371300168, -0.1583311558, -0.402130276, -0.153929472, -0.0996222496, 0.2102016956, 0.0849694684, -0.0496035181, -0.1943410337, 0.0695832297, 0.1891451031, 0.1596145928, 0.674692452, -0.4420313835, 0.0500645265, 0.0010141511, 0.458409071, 0.4551059902, -0.376221478, -0.1172922403, -0.0027552354, 0.2080917805, -0.1715602577, -0.0537015013, -0.1674093455, 0.0167084578, 0.1498869658, 0.1736566275, 0.008760035, -0.2571979165, -0.0649650693, 0.152297914, 0.4634416103, -0.1310345978, 0.2011824548, 0.1666129678, -0.0324627869, 0.1351112723, -0.0200913753, 0.0041528605, -0.0372112878, 0.3901710212, 0.076943323, 0.3946245909, 0.2738812566, -0.1180271655, -0.1414844543, -0.2265503705, -0.0454872996, 0.0538802408, -0.1409800947, 0.338742584, 0.1428820491, 0.1060059518, -0.2688286006, -0.0343358256, -0.2852174044, -0.0292331986, 0.066514574, 0.1174349338, -0.1749209017, -0.1562086195, -0.1589579433, 0.0182883311, -0.0559781939, 0.1695991009, 0.0553169213, 0.0764106885, -0.1405085474, -0.5786152482, 0.088790603, 0.099730067, 0.3797262013, -0.4059396088, 0.2581655979, -0.0091168992, 0.0360093527, 0.1693405807, 0.4280821383, 0.307900846, 0.2375847399, 0.1094213426, -0.0854272321, 0.2529764175, -0.193363294, 0.1302238256, 0.0711354986, 0.1495399177, 0.1281293333, 0.3160378039, 0.1989207417, -0.2297506779, 0.0242399666, 0.0124458745, 0.1649290621, -0.3823560476, 0.0522134565, -0.0738419071, 0.1997763664, 0.0163867995, -0.1606535465, -0.4853725433, -0.0292272232, 0.2498699278, -0.0029536956, 0.1866241097, -0.1531897485, 0.0973577797, 0.3058817089, 0.4198254943, 0.2002143413, -0.1440764964, -0.0492337048, -0.3450635374, -0.534188211, 0.2101772577, -0.0883728713, -0.1271943748, 0.110843949, 0.2252381444, 0.0982611328, 0.3033978939, 0.2783114016, -0.0561179407, -0.2697762847, 0.2450502515, -0.1299311668, -0.4757294357, -0.0252267905, 0.0017403933, -0.1381369531, -0.2595892251, 0.2844635546, -0.3263117969, 0.1999571323, 0.0385337248, -0.3709072173, 0.0017150861, -0.3097887635, 0.2730163336, 0.0443811603, 0.1538005918, -0.1372316331, -0.084999375, -0.4112410545, -0.028079465, -0.3753286004, 0.2029024065, -0.1702149659, 0.5728048086, 0.132539019, -0.255757153, -0.2820562422, 0.1161669418, 0.0433746278, -0.0507076494, -0.1427497417, 0.079230912, 0.0198481549, 0.247462973, -0.1213679016, 0.1090756208, -0.22733289, 0.0461345501, -0.2806017995, -0.5041822791, 0.3279446065, -0.4045973718, -0.2958760262, -0.1916092932, 0.2035675049, -0.0097365193, 0.1858139187, -0.5136567354, 0.0697980076, 0.2334712595, -0.2142189294, -0.0967793837, 0.2073504329, 0.0405079015, 0.1649145633, -0.0139958085, -0.0398355201, 0.1507429332, -0.2054541707, 0.1073208451, -0.032640934 ]
https://github.com/huggingface/datasets/issues/3738
For data-only datasets, streaming and non-streaming don't behave the same
Note that we might change the heuristic and create a different config per file, at least in that case.
See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ```
19
For data-only datasets, streaming and non-streaming don't behave the same See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ``` Note that we might change the heuristic and create a different config per file, at least in that case.
[ -0.1471759826, -0.6080194712, 0.0020138533, 0.2507560253, 0.3594651222, 0.0139179258, 0.1687220484, 0.2110687047, 0.0835059062, 0.081744872, -0.3420369327, 0.1702126265, -0.1189065054, 0.3036901653, 0.0937540382, -0.3056590855, 0.1595321149, 0.1109992564, -0.2961662412, -0.0981271043, -0.0076988917, 0.2240806073, -0.1810887605, -0.3297928572, -0.1043015346, 0.1737029701, 0.1395611465, -0.0809819028, 0.1045850888, -0.1263987273, 0.1994577795, 0.076797232, 0.1242218092, 0.588106215, -0.0001102195, 0.285846442, 0.1854328066, -0.2264383286, -0.1927213073, -0.3488374352, -0.0819244236, 0.2038207352, 0.1665900201, -0.2075585574, -0.3393665254, -0.1604875624, -0.0232694801, -0.3243318796, 0.5720835328, 0.2510287166, 0.2104201019, 0.6628689766, -0.2209244519, -0.0766760185, 0.0247657616, 0.216182813, -0.2035767585, 0.2541888952, -0.0944816023, 0.43565166, 0.106151253, 0.3564094007, -0.2065911144, 0.038263537, 0.4028329253, 0.1423470378, -0.2964430153, -0.2077169865, 0.1926319301, 0.5481560826, 0.325855732, -0.2693970799, -0.3393765092, -0.3271181881, -0.0275782589, -0.2468360811, 0.1115850806, 0.2851884663, -0.0978089347, 0.2190044224, -0.2835855782, 0.1774062961, -0.0958506912, 0.0244581606, -0.1553762108, 0.3722750247, -0.1558926105, 0.0788624138, 0.0476609841, -0.1520878226, -0.0142814862, -0.3164884448, 0.0027517704, -0.0033956959, -0.3223059177, -0.0757030472, 0.0392440148, -0.1551241279, 0.0288950447, 0.1674396396, 0.4002327025, 0.0758836865, 0.1345701963, 0.1468309611, 0.0595701449, 0.0147224814, 0.0802072212, -0.0645242408, 0.2079159617, 0.099711448, -0.10729298, -0.2441606224, 0.3200441599, 0.1965501904, -0.084777303, -0.4600597918, 0.385196507, -0.046181459, -0.278580308, -0.1200082079, -0.311065048, -0.022300899, 0.1738019139, 0.4814924896, -0.0511954427, 0.0560056269, -0.0579138398, 0.3288655877, -0.0116388518, -0.0010351065, -0.3238565028, -0.0864567906, 0.080769971, 0.1027581021, 0.185125187, -0.3859355152, 0.4762918055, 0.0858669877, 0.0902236849, 0.0813817978, -0.083805792, -0.0285713822, 0.2093233764, 0.4957211316, 0.195260033, 0.1616440564, 0.2296441793, -0.2187334299, -0.2407372743, -0.0816209614, 0.0373841375, -0.0762278661, 0.2936628163, 0.2281077057, -0.2673905194, -0.2086370736, -0.2747941017, 0.2466875017, -0.1379573643, -0.2960709631, 0.0976705328, -0.0006241045, -0.0069699306, -0.2529862523, 0.1640164852, 0.2054249197, -0.1967447698, -0.3590602875, 0.4238368571, -0.0696853772, 0.2468967289, 0.5191633105, -0.2162553072, -0.0832557827, -0.0866009369, 0.1841409206, 0.3234289885, -0.236716494, -0.2932069004, 0.44506374, -0.0214545969, 0.3800016046, 0.4525406063, 0.1133751199, 0.3871499598, -0.0253305528, 0.0821204856, 0.1877124608, 0.0891932994, 0.1383302212, 0.0005308322, -0.0818211511, 0.0557394624, -0.0177536774, -0.2198275179, 0.1864512563, -0.0542110913, 0.2378255874, 0.3866393864, -0.1227636337, 0.0955920219, 0.249231264, 0.0278106462, 0.0841381401, -0.1017537564, -0.2666335404, -0.5663552284, 0.1156957969, 0.1961967796, -0.0105723618, -0.0373773463, -0.3354551792, -0.162711218, -0.1486288607, -0.2381810248, -0.1918059587, 0.1918695867, 0.2160942554, 0.2294141352, -0.0579052977, -0.3425160348, 0.2329841107, -0.1294587106, 0.158812061, -0.5161312819, 0.2736104429, 0.0633981675, -0.2143644542, -0.0530002005, -0.0974195153, 0.0606905445, -0.0897178352, -0.010036543, 0.3504855335, -0.108956553, 0.3134917319, -0.2344279438, 0.4961458743, 0.2668768764, -0.1883780658, -0.046629414, 0.4751686156, 0.2154040635, -0.1246934086, -0.4435528815, 0.4490568042, -0.1326924115, 0.3501239121, 0.2671545446, -0.1016990617, 0.350759536, 0.132029444, -0.5745477676, -0.1943866014, 0.0862340853, -0.1838274151, 0.1034903526, 0.0160141177, -0.6025923491, -0.0544089153, 0.5669585466, -0.0349862389, 0.0080632819, -0.0719245151, -0.4338729084, 0.0712548718, 0.0869188085, 0.1950969249, 0.4976268709, 0.2520608902, 0.3521637022, 0.2105464041, -0.0748512521, -0.368513763, 0.2423159927, 0.132071808, 0.0249587055, 0.1030118763, 0.0288464297, -0.0757124647, -0.4879137278, -0.0766507685, -0.0729151592, -0.0556563549, -0.283082515, 0.2335000485, -0.4161817431, -0.1997806281, -0.364985317, -0.4089733958, -0.2736245692, -0.241446048, -0.0969614387, 0.3924412131, -0.1660888344, 0.0761198997, -0.003857553, -0.094935514, -0.0361224487, -0.3969393671, -0.3365666866, -0.0419173427, 0.0321516506, 0.0477413349, 0.0145561267, -0.0395409279, 0.3013986647, -0.1977806985, -0.2450956404, -0.2017071396, -0.1945471466, 0.2379914224, -0.28333202, -0.0750532746, 0.0793331414, 0.4024926424, 0.2286730856, -0.2038237005, 0.35706985, -0.2171229124, -0.0460918434, 0.2414536923, 0.0980228409, 0.0460054055, -0.151976496, -0.329580307, -0.017975226, -0.4542371631, 0.3621653318, -0.0174755622, 0.0178105365, 0.3286879659, 0.1383273751, 0.1779688299, -0.1150078997, 0.301987797, -0.1503392011, -0.2376282513, 0.3211560249, -0.2065511346, -0.3664949834, 0.1392053813, 0.1990442127, 0.1663501561, 0.0670396239, -0.293022722, -0.0494342037, -0.3265261352, 0.0385048985, 0.1132013649, 0.1051506847, 0.3006157875, -0.141127035, -0.0828168616, -0.2275162339, -0.0557434484, -0.0070718941, 0.061090827, 0.1330195516, 0.0770826638, 0.478824228, -0.0393620357, 0.4121438265, 0.3855174482, -0.08890374, 0.3200836182, -0.2393965572, 0.3067498207, -0.2342204601, -0.155278489, -0.0757322609, -0.0203838628, 0.0088847103, 0.3297487199, -0.0272634123, 0.1113787293, -0.2477909923, -0.0341822952, -0.1572189331, -0.3085508347, 0.2061977088, 0.0736948177, 0.0146212056, 0.087051861, 0.2559713721, 0.0703103319, -0.0249656234, 0.0004984364, 0.3697003424, -0.0161026008, 0.046473965, -0.1760604233, -0.2519858479, -0.5435332656, 0.2483410388, -0.1514990628, 0.2198080271, 0.0158291291, -0.3458983004, 0.1833435297, 0.0465229899, 0.6643819809, -0.1655248553, -0.1433277279, 0.0456686541, -0.1226896197, -0.4266879559, 0.0032010805, -0.4072633684, -0.2179986238, 0.3099961579, 0.5515061021, -0.467076391, -0.1597679555, 0.0236827973, 0.0601480007, -0.0335593633, -0.1807257086, -0.3481803834, -0.4121109843, -0.2518641353, -0.2355820835, 0.2301837951, 0.159117505, -0.2275293618, -0.0701296479, -0.08970806, -0.0984195471, 0.2058659345, 0.2673562467, 0.1462476999, 0.1234934032, 0.1549949497, 0.1774110645, 0.4141177237, 0.0819746405, 0.5476557612, 0.1986332089, -0.3625665307, 0.0769921169, 0.1378445625, 0.0382732674, 0.3220517933, 0.0273631178, 0.3682902455, 0.3810385466, 0.0786110386, -0.1251093, -0.0380557626, 0.4057504833, -0.0631218553, -0.0811844766, -0.6504346728, 0.5489428639, 0.0670543164, -0.0171086956, -0.0471654944, 0.2945048809, -0.2286157906, 0.2909283936, -0.248731792, 0.9349022508, 0.0845679194, 0.2502981126, 0.3853532672, -0.4366573691, 0.5776462555, -0.1087374836, 0.1945615262, -0.1191634014, -0.3062206209, -0.109366782, -0.1422006786, 0.1626695096, -0.0006821736, -0.3379503489, 0.2828026712, -0.0963409021, 0.6020995975, -0.1613117903, 0.1149701253, -0.3466637433, -0.3427764475, -0.722597301, 0.1111086309, 0.0072069587, 0.2493504435, 0.0552949272, -0.3024843335, -0.066633001, -0.1659312397, -0.0599118546, -0.0313972421, -0.0744750947, -0.0599734373, 0.0123082288, -0.2753519416, -0.1362182796, 0.4044755399, -0.0450079963, -0.0381497554, -0.2805818915, 0.1086880788, -0.0461434424, 0.1243297905, -0.247320354, -0.0295500029, 0.2845420837, -0.0219943691, -0.146194309, 0.2434214205, -0.0163947642, -0.0530594289, -0.0060549066, 0.0293553751, -0.188016817, -0.3198528886, -0.1367792487, 0.0297149252, -0.1529944092, -0.1969501227, 0.1278161556, -0.2886755466, -0.1805334389, 0.0562671833, 0.0942990556, -0.203745842, -0.3402803838, 0.6009546518, 0.1921182275, 0.1043878496, 0.3366892934, -0.0205681473, -0.2366313487, -0.1469250768, 0.083046414, 0.0210690834, -0.3361660242, 0.2209456712, 0.09359283, -0.117165029, -0.0155940838, 0.2530542314, 0.1424174011, -0.0361613296, -0.2803714573, -0.0915041119, -0.2747035921, 0.3095557988, 0.2654564679, 0.1721108556, -0.0341741182, 0.3940381706, -0.024181366, -0.09163443, -0.3649348617, -0.2129148394, -0.0396350734, 0.0392700061, 0.1355496496, -0.0347990058, 0.3723809123, 0.0186219364, 0.2055175006, 0.1508300751, -0.2460335344, -0.2220065743, -0.221731171, 0.1007918343, 0.1108488217, -0.0435749851, -0.2883945107, -0.0653829575, -0.2285785824, -0.290815711, 0.3845200539, 0.2210381925, 0.1482870281, 0.1201222837, 0.2389338911, 0.1881555915, -0.2005206048, -0.0775177479, -0.0800629109, 0.0737328082, -0.1514097452, -0.0693481266, -0.2604507804, -0.0146819493, -0.0872244835, 0.057037808, 0.2707644105, 0.0198154561, 0.3956868649, -0.1861993819, 0.0677262545, -0.02077494, 0.5468345881, 0.465790689, -0.0473668538, -0.0364165902, -0.0009367918, 0.1880126148, -0.2329525948, -0.0565242805, 0.0683638752, 0.0517280102, 0.3149636686, 0.2632146478, -0.0854071528, 0.0627655983, 0.0769421235, -0.0093623698, 0.4035534263, -0.1050173342, 0.1846899986, 0.4188735187, 0.134098351, 0.171745494, 0.1652047336, 0.1579584032, 0.1977922022, 0.1354881674, -0.2029913962, 0.0501083918, -0.1842627972, 0.0078359945, 0.0834299847, -0.1149168834, -0.3526143134, 0.0455374829, -0.3067767918, 0.2801402211, -0.0346494094, -0.0878760368, -0.2008207142, 0.0794684365, -0.2198651582, 0.2070360929, -0.0875782967, -0.300678879, -0.0804849491, -0.1738992333, 0.014250489, -0.1495524198, 0.1229775846, 0.0648912415, 0.1008462012, -0.0305617843, 0.1607768238, -0.2056639344, -0.0884914324, -0.132527411, 0.1416923106, -0.1704850942, 0.1176159307, 0.343023777, 0.0953074247, 0.2254560739, 0.196508497, 0.3389199376, 0.0397873782, 0.2142662257, 0.3020944595, 0.1357433945, -0.2571829557, -0.034087725, 0.1931284964, 0.2450083196, -0.001360719, 0.2114483416, 0.2274197191, -0.2349119931, 0.1737971604, -0.2356086075, 0.2772591114, -0.3677604198, 0.3530635536, -0.4003152251, -0.0810382739, -0.1538098752, -0.2710954249, -0.5943933725, 0.1300398558, 0.0960667431, -0.0876967087, 0.1986322552, 0.029695591, 0.0984494537, 0.0534877963, 0.5764625669, -0.0007164186, 0.0875632465, -0.0423903801, -0.0032312777, -0.5645104647, -0.0365937725, -0.0748934969, -0.0268962774, -0.0677993149, 0.3871965706, 0.180474937, 0.0517189987, -0.0640952364, -0.2185762078, -0.2659042478, 0.2035307139, 0.0304532144, -0.3740995824, -0.1180602759, 0.0190685671, 0.0309662335, -0.2252273411, 0.209672153, -0.0534757972, 0.1367862523, -0.1012147442, 0.3865636289, 0.0942446142, -0.0996794701, 0.0131473076, 0.0966529399, 0.4568327963, -0.2146414518, -0.1706439257, -0.0297806915, -0.1094682217, -0.4141112566, 0.0913787335, -0.0882306546, 0.5245953202, -0.1082335413, -0.3024348617, -0.1596740931, 0.2223197222, 0.1266350299, -0.4062876105, -0.2360840142, 0.2233802676, -0.2542765439, 0.1478139758, 0.062347237, 0.4569675624, -0.0860171467, 0.0639227778, -0.1651361436, -0.5003525019, 0.7769783139, -0.4812152982, -0.2383847684, 0.081128791, 0.0783851743, 0.1670645028, 0.0513884835, -0.5630825162, 0.2817454934, 0.2299892157, -0.2498029023, -0.0987534299, 0.2160045654, 0.0815142691, -0.0194861908, -0.1820794046, 0.069829464, 0.262835145, -0.4007528126, -0.0097847218, -0.2827960849 ]
https://github.com/huggingface/datasets/issues/3738
For data-only datasets, streaming and non-streaming don't behave the same
Hi @severo, thanks for reporting. Yes, this happens because when non-streaming, a cast of all data is done in order to "concatenate" it all into a single dataset (thus the error), while this casting is not done while yielding item by item in streaming mode. Maybe in streaming mode we should keep the schema (inferred from the first item) and throw an exception if a subsequent item does not conform to the inferred schema?
See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ```
74
For data-only datasets, streaming and non-streaming don't behave the same See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ``` Hi @severo, thanks for reporting. Yes, this happens because when non-streaming, a cast of all data is done in order to "concatenate" it all into a single dataset (thus the error), while this casting is not done while yielding item by item in streaming mode. Maybe in streaming mode we should keep the schema (inferred from the first item) and throw an exception if a subsequent item does not conform to the inferred schema?
[ -0.1483692676, -0.5971010923, 0.0425095372, 0.3026606143, 0.4449424148, 0.0343069099, 0.0938618034, 0.2274336815, -0.0198628455, 0.1207607985, -0.2812955081, 0.163243264, -0.1369572133, 0.265286684, 0.0114956172, -0.3093685806, 0.1662296057, 0.1124369428, -0.3150340915, -0.0867634788, -0.0349303, 0.1955484301, -0.1453728974, -0.2119957656, -0.0833902061, 0.1361239851, 0.1163569093, -0.0861025751, 0.1048669368, -0.1392380148, 0.1678076088, -0.1296809018, 0.1045155451, 0.6797526479, -0.00011277, 0.2066966593, 0.2664150894, -0.2004863918, -0.2330938131, -0.3872595429, -0.1826979965, 0.1999833584, 0.1647102982, -0.1955534965, -0.2638482153, -0.1135502458, -0.0205751806, -0.3217553794, 0.512550354, 0.1771340072, 0.1821897775, 0.6846290827, -0.168232739, -0.0475428589, -0.0061915494, 0.1716743112, -0.2508841157, 0.2004664987, -0.0314933918, 0.473536551, 0.1523116529, 0.4614451528, -0.2017080933, 0.0214246903, 0.3477567136, 0.0653763115, -0.2426324636, -0.2455516607, 0.1682896018, 0.5889729261, 0.3167926073, -0.2784744203, -0.434325248, -0.3266448379, 0.0259042773, -0.2365833074, 0.0374009088, 0.3559141457, -0.1176270097, 0.2137736827, -0.4141131043, 0.2120927572, -0.1228156909, -0.0317873731, -0.1808421314, 0.4034489691, -0.1403857172, 0.1256179214, -0.126284048, -0.1155172661, -0.0125929974, -0.3752649426, -0.0438922383, -0.0303765479, -0.3540487587, -0.1260907352, 0.0400969386, -0.0460766368, 0.0673868731, 0.1470157057, 0.3766259253, 0.0953387842, 0.1109041423, 0.1008864716, 0.2439071536, -0.0490464754, 0.0529391132, -0.1530079544, 0.2018467337, 0.0482556485, -0.0081610978, -0.2411842644, 0.3945323229, 0.2717736661, -0.0767909065, -0.3022189438, 0.4603635669, -0.0663589612, -0.3291621208, -0.0974651352, -0.3254585266, 0.1064695045, 0.1170790195, 0.3950734437, -0.0151087828, 0.1753033251, -0.0723730773, 0.3374947011, 0.0536673553, -0.0761575326, -0.3149593771, -0.155717656, 0.064487122, 0.0807960704, 0.0659836307, -0.415289253, 0.3459501266, 0.0320690982, 0.0205757041, 0.0528713614, -0.075873293, -0.1088524759, 0.1628323793, 0.5072858334, 0.1707227677, 0.1415910125, 0.2164113224, -0.142362535, -0.1859294474, 0.0184459779, 0.0073606791, -0.2466870695, 0.3043280542, 0.2124237418, -0.2852185369, -0.1053193212, -0.2324451357, 0.2000667155, -0.0778063387, -0.2584819496, 0.109393023, 0.0572559796, -0.0549517684, -0.1658331901, 0.1004192159, 0.2124736011, -0.1661370397, -0.2669171691, 0.3579497039, -0.1481362581, 0.1928774565, 0.5332437754, -0.2273831069, -0.0541709289, -0.1709254831, 0.1774094254, 0.2489066422, -0.1442927122, -0.2420773357, 0.4730579853, -0.0911308751, 0.4531018734, 0.3604579866, 0.0879458338, 0.3624898195, -0.0883614346, -0.0115480237, 0.1585398763, -0.0652663633, 0.201297611, -0.0599409267, -0.1532733142, 0.1769653708, -0.0701864883, -0.2099511474, 0.2512785196, -0.0002245058, 0.2780895829, 0.3053921759, -0.2139308006, 0.068105638, 0.2172362804, 0.0519028045, 0.0169874914, -0.0610052347, -0.3112370968, -0.6572115421, 0.1473215222, 0.2459258884, 0.059444204, -0.1182880029, -0.3471954465, -0.1130160391, -0.0662179142, -0.1728885621, -0.0584132485, 0.1696871519, 0.1475955546, 0.1351736933, -0.0992502719, -0.2190577835, 0.2426243871, -0.2021969855, 0.1962524354, -0.5070540309, 0.2261354178, 0.0646440163, -0.2289231718, -0.1498265713, -0.0736147463, 0.0392670035, -0.126566872, -0.0423653312, 0.3703449368, -0.1095663756, 0.3700743318, -0.3650714755, 0.4260790646, 0.2276664525, -0.1879204959, -0.1324222088, 0.4703009129, 0.276560843, -0.1769827306, -0.4317971766, 0.4542832077, -0.0810317472, 0.3805333674, 0.2623724937, -0.0433868058, 0.2821669877, 0.0999452695, -0.5687912703, -0.1889937371, 0.1466083825, -0.1980091929, 0.0821163431, -0.0275002383, -0.626044035, -0.081867151, 0.5218037367, -0.097513929, 0.0567458123, -0.0565610044, -0.4084973335, 0.1513519883, 0.1556981057, 0.231919542, 0.5203043222, 0.2339863479, 0.2847256064, 0.2387351841, 0.0155132571, -0.3605205715, 0.2217681706, 0.2253192663, 0.0581978261, 0.2065258622, 0.0888971016, 0.0387951471, -0.4726509154, -0.0398562141, 0.0439219959, -0.0497882776, -0.3616198599, 0.1897777319, -0.2793536782, -0.133227393, -0.4320112765, -0.3525987864, -0.2684052885, -0.3052375317, -0.1526872218, 0.4261745512, -0.2619635463, 0.0982123986, 0.0409306213, -0.0758340731, -0.063567169, -0.2504406571, -0.3685215116, -0.1148802266, 0.1055746078, 0.0027033598, 0.0208569281, -0.0408428051, 0.3102530837, -0.1758226156, -0.1799994111, -0.2013841718, -0.3425167501, 0.2545912266, -0.331271857, -0.0712436065, 0.1103567928, 0.3671297133, 0.2287736982, -0.2889190316, 0.3052081764, -0.2019627094, -0.1596292108, 0.3864352405, 0.0497906096, 0.069575496, -0.2025363147, -0.3087229431, -0.0438042507, -0.4455454946, 0.3741571605, -0.1118276045, 0.0830388442, 0.3282187283, 0.0529961661, 0.1399497837, -0.1393475384, 0.3081428707, -0.1440442055, -0.1767005026, 0.2722372413, -0.152226612, -0.3597000241, 0.1304324865, 0.1467944384, 0.1458733082, 0.1673520952, -0.3535761535, -0.1180996522, -0.211409539, -0.0131255277, 0.0931497663, -0.0203251764, 0.3762069643, -0.1236345768, -0.05523514, -0.1663288623, 0.0650937855, -0.0791720301, 0.0375265032, 0.2067644447, 0.0092071919, 0.5708675981, 0.0954429507, 0.4258224368, 0.347399503, -0.0318173654, 0.2382350713, -0.1142011285, 0.2976046503, -0.2585868835, -0.1035233736, -0.1044896618, -0.1095464379, 0.0313684344, 0.2228150219, -0.044567395, 0.1207320467, -0.1789791286, 0.0057808501, -0.1091096327, -0.3289784491, 0.1118841842, -0.015535255, 0.0444116406, 0.1052881777, 0.245315358, 0.1410104036, -0.0539078489, -0.0083132815, 0.3988531828, 0.000755272, -0.0242157951, -0.2320096344, -0.2160543799, -0.501603663, 0.2881422043, -0.0768963248, 0.2937020957, 0.0972725973, -0.3659350574, 0.1533028483, 0.0117978733, 0.6562766433, -0.1854356378, -0.180850789, -0.0228727236, -0.1153692231, -0.4568434954, 0.0034426043, -0.4023427665, -0.1696171612, 0.3749175668, 0.5224967003, -0.5087756515, -0.184825182, 0.0253412798, 0.0780504495, -0.0487741232, -0.1769868284, -0.366712451, -0.3515551388, -0.2732977569, -0.1996621937, 0.2456503212, 0.1463409662, -0.2924340069, -0.0900083855, -0.1920363754, -0.0518834814, 0.1858592331, 0.1694643945, 0.1176653877, 0.1160970181, 0.2860400081, 0.1280248612, 0.3843604326, 0.1070568338, 0.6499530673, 0.1715614796, -0.4434647262, 0.0522018597, 0.1110135242, -0.00026728, 0.3704149723, 0.0195277724, 0.3156194985, 0.3179914057, 0.1290332973, -0.1785649508, -0.0973192155, 0.3607262075, -0.0310438909, -0.0597979575, -0.4485966563, 0.5254583359, 0.0964838788, -0.0502331629, -0.0656103268, 0.3134135902, -0.2745788693, 0.3434588313, -0.2288845628, 0.9870080352, 0.1409638524, 0.2571034729, 0.430865258, -0.4463422298, 0.6155118942, -0.0275558457, 0.2330355495, -0.1560004056, -0.3844919205, -0.1430419832, -0.16531156, 0.2559436858, 0.0177091639, -0.2871797681, 0.2698267102, -0.1280094087, 0.5677761436, -0.2245018631, 0.1070547923, -0.3881670237, -0.3149837554, -0.6452150941, 0.0866514221, -0.0174130164, 0.2747401297, 0.0559119917, -0.2409634888, -0.0533654615, -0.2614138424, -0.1353469938, 0.0246793013, -0.0534257926, -0.0697473064, 0.026060842, -0.3186143041, -0.042568367, 0.3174396157, 0.0259345341, -0.1262856275, -0.3158124983, 0.1456287503, -0.0015851633, 0.1796499491, -0.1354661435, -0.0385583304, 0.3171420395, 0.0400665365, -0.0923850015, 0.2310233861, -0.1177465469, 0.0296936799, 0.0076159537, 0.0292629506, -0.2052002698, -0.3688880801, -0.1451815069, 0.1260329038, -0.1036653593, -0.1916151494, 0.1209680215, -0.3142700791, -0.2633647919, 0.1104301363, 0.0253187716, -0.1409390271, -0.2481927574, 0.6706413627, 0.1994345635, 0.1437710822, 0.3841884732, -0.0213843919, -0.2007547468, -0.1299856156, 0.096635066, 0.0534240417, -0.4567120075, 0.1426679343, 0.0453138985, -0.0621936359, 0.0558678396, 0.2786402106, 0.1849199533, 0.0571096987, -0.3028430045, -0.1017844304, -0.2467422038, 0.3548052907, 0.3196547031, 0.1760281771, -0.0837941915, 0.5310623646, -0.0605235361, 0.0295854677, -0.3424997628, -0.2181165665, -0.0870549679, 0.1845546365, 0.1335371435, -0.0570995063, 0.2911519706, -0.0309787877, 0.1742410362, 0.2984285653, -0.2696593106, -0.1714226902, -0.1392929107, 0.1308718771, 0.2301988751, -0.0359203778, -0.2682740986, -0.0542874448, -0.2083260715, -0.1746846288, 0.429279834, 0.2338142246, 0.0881749168, 0.03748421, 0.2904753089, 0.2986057401, -0.2184162885, -0.0686811805, -0.15744479, 0.2092813998, -0.2136272937, -0.0623309128, -0.2672656775, 0.048832912, -0.1188465431, 0.0176273342, 0.2963796854, 0.1049051434, 0.440520525, -0.1387616694, 0.0966831222, -0.0556731299, 0.5269759297, 0.402087599, -0.1588956416, -0.0824320391, 0.04428849, 0.1835349202, -0.2574678361, -0.0644572526, -0.0627888739, -0.022792859, 0.2473715395, 0.2291730195, -0.058044441, 0.0881092921, 0.074072212, -0.0205953903, 0.4664013088, -0.1283434033, 0.215116635, 0.4085238576, 0.0917341486, 0.1540339589, 0.1566457748, 0.1735242307, 0.2147156447, 0.0905918479, -0.2282958329, 0.0996088311, -0.2592789531, 0.0079658655, 0.0887981951, -0.1563905776, -0.2954167426, 0.0873618051, -0.2718327045, 0.2828631997, -0.0903619677, -0.1374072284, -0.2919471562, -0.0087387646, -0.2048080266, 0.1871516109, -0.0970284566, -0.1943489909, -0.1024790555, -0.04077252, 0.0433420502, -0.2258699983, 0.0694976747, 0.0679394528, 0.1680953801, 0.0157843269, 0.1831026673, -0.2258153111, -0.2365014255, -0.0479907766, 0.1634838134, -0.2636814713, 0.1761142462, 0.3904189765, 0.0748203993, 0.1973613948, 0.25723961, 0.3138096929, 0.1346819848, 0.1349639297, 0.3249753416, 0.1790831238, -0.2167291194, 0.1054242328, 0.150396347, 0.1903243214, -0.0156145496, 0.3044397533, 0.1797171235, -0.1913703978, 0.2174814492, -0.1086619869, 0.2229863703, -0.4649566114, 0.4549144804, -0.3809033036, -0.1122513637, -0.1341532767, -0.2805531025, -0.5518792272, 0.1555393189, 0.0870779678, -0.1793714762, 0.1770466864, 0.073189579, 0.092499882, 0.0619601794, 0.5553600192, 0.073986657, 0.0965462551, -0.1164309829, -0.0279927999, -0.5421627164, -0.0361112505, -0.0944301784, 0.0197739303, 0.0016061291, 0.3681830168, 0.0695848539, 0.0837830678, -0.158455953, -0.1785593927, -0.3728764355, 0.166956082, -0.0268599894, -0.4182386398, -0.1171311885, -0.0595625527, -0.0152733773, -0.2135635316, 0.2880116403, 0.0875013694, 0.0835748389, -0.0506550148, 0.4185358584, 0.093128629, -0.0922483802, -0.0121721681, 0.0569486916, 0.4050824344, -0.1417196244, -0.222184673, 0.1088178679, -0.2747450471, -0.4366405904, 0.1636296362, -0.0596437007, 0.4912489355, -0.040654242, -0.2970518172, -0.1357458234, 0.0940006599, 0.0942493901, -0.3193452954, -0.3388814032, 0.2951385379, -0.3135197461, 0.1846084297, 0.0456769131, 0.4181929231, -0.0231570825, 0.1447379291, -0.2012632191, -0.5546147227, 0.7776415348, -0.4098012149, -0.1788041294, 0.0513996892, 0.147376895, 0.087963298, -0.0316158272, -0.648671329, 0.2154143304, 0.2657674253, -0.2692560852, -0.0651943311, 0.1295394599, 0.1255384833, -0.143557325, -0.2126308233, 0.0567658432, 0.2744604647, -0.4175592363, 0.1514880061, -0.2267796993 ]
https://github.com/huggingface/datasets/issues/3738
For data-only datasets, streaming and non-streaming don't behave the same
Why do we want to concatenate the files? Is it the expected behavior for most datasets that lack a script and dataset info?
See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ```
23
For data-only datasets, streaming and non-streaming don't behave the same See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ``` Why do we want to concatenate the files? Is it the expected behavior for most datasets that lack a script and dataset info?
[ -0.1206140816, -0.5383890271, 0.0515677445, 0.1705874205, 0.3425413668, 0.117400825, 0.2200133502, 0.198875457, -0.087235041, 0.1894494742, -0.3170535564, 0.1043425351, -0.0130866589, 0.287632972, 0.053394869, -0.3094178438, 0.1563249081, 0.2425494343, -0.1608396471, -0.1402349472, -0.117162928, 0.0883863196, -0.1769117415, -0.3052867651, -0.2488362193, 0.2742661834, -0.0004399998, 0.0479021035, 0.0451705344, -0.158680737, 0.1905765831, -0.0516530387, 0.0450893752, 0.4641683996, -0.0001260867, 0.1651510894, 0.3315837681, -0.2629675865, -0.3263126612, -0.4357125759, -0.2210153937, 0.0910022184, 0.2275758088, -0.1439339817, -0.0935244784, -0.3121581078, 0.2295219451, -0.4739469588, 0.362049669, 0.1561797261, 0.0569125712, 0.4719954729, -0.2614101171, -0.0374589525, -0.0714830086, 0.2469289601, -0.1371472031, 0.1699275672, 0.0441572107, 0.3927862942, 0.1172641963, 0.2284319848, -0.1788063198, -0.1238810197, 0.3190616369, 0.1430529356, -0.3147366047, -0.3722535968, 0.2304696143, 0.634544611, 0.4502034485, -0.2759080827, -0.317022562, -0.3609162867, 0.0357789993, -0.1240997612, -0.050415922, 0.4053917825, 0.1146333367, 0.2875300944, -0.3392947912, 0.270386219, -0.1358235329, 0.0079427669, -0.1250430793, 0.3707239032, -0.0693037957, 0.2123724371, -0.1973440796, -0.0016891883, 0.0456522927, -0.7146854997, -0.1331836432, -0.0319285616, -0.2938160598, 0.0334013402, -0.0527390614, -0.0386385024, 0.0730897933, 0.2539539635, 0.2587569356, -0.0264064074, 0.1871835291, 0.0472786427, 0.1794300377, -0.0998321548, 0.2185737342, -0.1231088266, 0.1755918115, -0.090720281, 0.0683811828, -0.2554059327, 0.2387302667, 0.2820042968, -0.0902249962, -0.358425051, 0.4758058488, -0.0512503982, -0.233301416, -0.2166467309, -0.3566568196, 0.0142180575, 0.0343092717, 0.1182817966, -0.0372287408, 0.3369821906, -0.0545540601, 0.3823512793, 0.1265539378, 0.0723584965, -0.1891516149, -0.236061275, 0.1706500649, -0.1201568916, 0.094478257, -0.4429014027, 0.3691997826, 0.0935583711, 0.1600292176, 0.1969266236, 0.024649499, -0.0827271119, 0.1580806375, 0.5991455317, 0.3462262452, 0.2426944226, 0.2238829732, -0.3454332948, -0.2060005814, 0.055070132, -0.2059079856, -0.2673392892, 0.2012936771, 0.1064646989, -0.1980842501, -0.1151011735, -0.2377961427, 0.1910841465, -0.1379401833, -0.4120367765, 0.0313939601, -0.0346219055, 0.0950650275, -0.2269512564, 0.0092850821, 0.2143709958, -0.2531344295, -0.1588893831, 0.3497660458, -0.1069998592, 0.4169322252, 0.5071638823, -0.1920313239, -0.0555664822, -0.3016810417, 0.1530557871, 0.4405660033, -0.231601283, -0.1370077282, 0.4704868793, -0.1330844015, 0.4488674402, 0.6467936635, 0.0495266281, 0.3584109843, -0.0752492994, 0.1598000824, 0.2209354788, -0.0892418027, 0.064604938, 0.0578346476, -0.0406460688, 0.2336545736, -0.117351152, -0.4235683978, 0.2780707479, 0.0663307533, 0.157357499, 0.2995967865, -0.291020155, 0.1142151803, 0.1107532308, -0.0099463277, 0.0119098499, -0.0379449651, -0.1028423011, -0.7063184381, 0.0943266451, 0.4044199288, -0.0977679789, -0.093911685, -0.5296734571, 0.0321805179, -0.2442174107, -0.1816021055, -0.0469382592, -0.0392737351, 0.2735720277, 0.076674819, -0.1087137759, -0.4145942628, 0.2806010246, -0.2821243703, 0.14095366, -0.4363390803, 0.2163294852, 0.1213287562, -0.0579907782, -0.1616953015, -0.0323637463, -0.096416831, -0.0615765415, -0.0085033244, 0.3986407816, -0.0889098793, 0.2748523355, -0.1533251703, 0.4624288678, 0.2268505394, -0.0426932052, -0.0561781004, 0.2750272453, 0.2703583241, -0.3998809755, -0.4423682392, 0.4256441295, 0.0241018925, 0.5342102647, 0.2320564836, -0.0769134313, 0.2442178279, 0.2045803964, -0.6032145619, -0.1794256866, 0.1391977072, -0.1462787688, 0.1807547361, 0.1652228534, -0.7006342411, -0.0129129849, 0.6042621136, -0.0899340585, 0.013206047, -0.0768339112, -0.4499605298, 0.0134811765, 0.0245703142, 0.1704323739, 0.5974841118, 0.2367910147, 0.3337236941, 0.2476945817, -0.0369155221, -0.4216632545, 0.2245986462, 0.2285319865, -0.0034419983, 0.2199079543, 0.0226730313, -0.0237926673, -0.5395421386, -0.1443347037, -0.0934030935, -0.3698194921, -0.2651264966, 0.2416108698, -0.3046421409, -0.2337325662, -0.4013020992, -0.2750683129, -0.2501998842, -0.3082205653, -0.1630565822, 0.3631367981, -0.1598505229, 0.0633507073, 0.0912525281, 0.0336483642, -0.0307104643, -0.4054463208, -0.3958796859, 0.004298503, 0.025375003, -0.0422300398, -0.1651965082, -0.2015534341, 0.182581082, -0.4123965502, 0.0063050366, -0.2825549543, -0.3813866377, 0.0325039737, -0.2630620301, -0.1116027161, 0.2347978801, 0.3812499344, 0.2482412755, -0.2475865036, 0.1716656536, 0.1116196737, -0.1019528881, 0.3831914663, 0.0296747368, 0.0323892012, -0.292663604, -0.3173150718, 0.0382857211, -0.3346970677, 0.348788321, -0.0776586086, 0.0321662799, 0.2424957603, 0.0478256494, 0.0919375569, -0.1546943933, 0.3376655281, -0.0312275495, -0.1764205396, 0.4250027239, -0.042201452, -0.3252129257, 0.1854332983, 0.1537779272, -0.00340933, 0.1530103236, -0.3026396334, -0.1137074828, -0.1473021954, 0.0350681134, 0.1714676321, 0.2818553746, 0.3204522431, -0.0375651233, 0.0727507472, -0.2154933214, 0.071381636, -0.1273209751, 0.1471745074, 0.2405139506, -0.0062569031, 0.5801613927, -0.0633712336, 0.3206468821, 0.3542486727, 0.0691770241, 0.2221054286, -0.1533844918, 0.5626500249, -0.336114049, -0.0056876945, -0.0921633914, 0.0592766181, 0.0791983828, 0.2751713693, -0.0009589185, 0.1523337215, -0.2251111865, 0.0384999961, 0.0163076762, -0.0847200379, 0.1741082966, -0.0680632964, 0.0266752746, 0.2278624922, 0.2143430859, 0.1417872459, -0.0041129966, -0.1621782035, 0.5853084922, 0.1108959168, 0.0790067762, -0.2098341286, -0.2934625447, -0.4607964158, 0.3097532392, 0.117498599, 0.3012335896, 0.1461424679, -0.3638638258, -0.0033648114, 0.1790846139, 0.669919312, -0.2567009926, -0.3923377693, 0.0128896926, -0.0432563312, -0.3326340616, -0.02995006, -0.2890245318, -0.1438348591, 0.2795241177, 0.5916975737, -0.4358432293, -0.1914166957, -0.0153062558, 0.3381452858, 0.0672062486, -0.0877532661, -0.3480100334, -0.2893269062, -0.279933393, -0.548273623, 0.1804237962, 0.1454810351, -0.4167356491, -0.1054800227, -0.2531823218, -0.1027745083, 0.2491457313, 0.0969245359, 0.0566122793, 0.2379410118, 0.1815295219, 0.1164285392, 0.5361891985, 0.1820164621, 0.5279478431, 0.1779537052, -0.4449032545, 0.1287894994, 0.043445427, 0.2935197651, 0.297688663, -0.0277897716, 0.3116811216, 0.3471352458, 0.0614500716, -0.1283730865, -0.0426564813, 0.4694820344, -0.0445098504, -0.2391886562, -0.6936842799, 0.3975414038, 0.1595994979, -0.0016794576, -0.0284905918, 0.2437259704, -0.1989014, 0.156975165, -0.43963328, 0.9482293129, 0.1747903973, 0.4480008185, 0.2556118667, -0.4591214955, 0.6480376124, -0.1218515784, 0.1348041296, -0.0394137651, -0.3616930544, -0.2161388248, -0.3166195154, 0.4039059579, 0.022492677, -0.2144984901, 0.4018919766, -0.1721717119, 0.6495878696, -0.0401285701, 0.1838118434, -0.3904433846, -0.2920697331, -0.4067646265, -0.1208632439, 0.041144032, 0.057488922, 0.0202348866, -0.158686325, -0.0602421314, -0.2413350344, 0.0861347243, 0.036071524, 0.0454864651, 0.0126099205, -0.1249719411, -0.304682523, -0.0482052751, 0.4244821966, -0.1487128288, 0.0485985726, -0.1926368326, 0.1819737703, 0.0872212648, 0.2046919614, -0.1528006047, -0.0465525091, 0.2420603484, 0.1131706983, -0.060389366, 0.3065555096, -0.1928672045, -0.0472789928, -0.1045652628, 0.0919763073, -0.0993836969, -0.2966429889, -0.2091487646, 0.1182901859, -0.1260175854, -0.077814959, -0.0123790158, -0.2598515451, -0.0597107895, 0.0509399176, 0.0625570491, -0.4156198204, -0.3215597272, 0.5849673152, 0.3607925475, 0.1128005758, 0.3559782207, -0.2160983831, -0.1782363951, 0.0413892381, 0.2380177975, -0.0194499958, -0.3318815529, 0.0796629116, 0.1308415681, -0.0776443928, -0.1078184396, 0.2233543098, 0.0966026857, 0.0039035277, -0.3571313918, -0.0857846886, -0.2611254156, 0.2997969985, 0.1673395038, 0.1627986282, 0.1207136661, 0.3200722039, -0.004667527, -0.2272668928, -0.1816771328, -0.2575968504, 0.1544909477, 0.2045755386, 0.0653567016, 0.052873183, 0.3607393801, -0.0072674337, 0.1091643199, 0.0623123758, -0.228300631, -0.0938192606, -0.0117117967, 0.1738285571, 0.2271085083, 0.0558083765, -0.327359736, -0.1639032513, -0.2630777061, -0.2099187076, 0.3223527074, 0.1015330926, 0.0551420152, 0.000191686, 0.1320032477, 0.1995518804, -0.2113798857, -0.0144304456, -0.1834796667, 0.2092683762, -0.3779936731, -0.1355513632, -0.367380321, -0.0574349388, -0.1314341575, 0.0053337435, 0.3073133826, 0.0881360993, 0.4481048286, -0.1065723896, 0.1404435933, -0.0869394392, 0.3918054402, 0.6155136824, -0.1108213589, -0.1125259623, 0.0101541607, 0.0110270297, -0.0967616439, -0.0020485716, -0.1194159612, 0.1757441163, 0.1842610091, 0.2020435333, 0.0001350147, 0.0189511925, -0.0877252966, -0.13561216, 0.4009433687, 0.016341215, 0.2120214403, 0.4867737889, 0.2819177508, 0.2096689343, 0.0625897646, 0.313798964, 0.0645907596, 0.0591082089, -0.1743916124, 0.0547650121, 0.0132936463, -0.1635863334, 0.02707587, -0.1215313897, -0.225048542, 0.1093994305, -0.2617635429, 0.2873277962, 0.1783107668, -0.2728351355, -0.3025074899, -0.0135785164, -0.0419221707, -0.0388812497, -0.0714232698, -0.1908181459, -0.0422756635, 0.0320917144, 0.0577832945, -0.2175952941, 0.0759352744, 0.2312465012, 0.0214512758, -0.014030817, 0.4008584321, -0.1514417231, 0.0494653955, -0.0363123044, 0.2745913565, -0.2727572918, 0.0097324373, 0.3359453976, 0.16454494, 0.3387264311, 0.2726878226, 0.3562377095, 0.1235924661, 0.318257004, 0.2761633992, 0.2480827719, -0.2570729256, 0.1280344874, 0.083600238, 0.1716861874, -0.1096491516, 0.2702404559, 0.1400025487, -0.0476720706, 0.2834166884, -0.1515131295, 0.000746475, -0.5267030001, 0.3079908788, -0.43679142, -0.0966972262, 0.0878394991, -0.1296918094, -0.6082332134, 0.0613650754, 0.1801892221, -0.0032157612, 0.0468050763, -0.047199633, 0.0214539487, 0.0671248138, 0.4895616174, 0.1950055957, 0.1083649918, -0.0545829758, -0.1337833256, -0.3830390871, -0.0296949465, -0.0153012862, -0.07079155, -0.1543883979, 0.3106225431, 0.1252168566, 0.0158423167, -0.1189627424, -0.161115244, -0.3797111213, 0.1405654699, -0.043441128, -0.4556060135, 0.0673936978, -0.0480212905, -0.1491571218, -0.2265447974, 0.3938588202, 0.0190022998, 0.012061676, -0.1180416122, 0.4418957829, 0.2600263953, 0.0004864467, -0.0483190566, 0.1267191321, 0.4745343924, -0.1996479779, -0.1275405288, 0.1809895188, -0.0963636786, -0.2504841089, 0.3408400416, -0.2042545676, 0.4339258075, -0.186857298, -0.1399195939, 0.0476021096, 0.2170047462, 0.0958421603, -0.2860686481, -0.2784858942, 0.3294566572, -0.4956395924, 0.1248161122, 0.0113401404, 0.3876579106, 0.0091974419, -0.0608572438, 0.0415585339, -0.4648416638, 0.6690007448, -0.2670079768, -0.2812680304, 0.0122395866, 0.0106401658, 0.2330493629, 0.1988129914, -0.5066815019, 0.1127183288, 0.3303190768, -0.3536890745, -0.1270681918, 0.2249565721, 0.0394365713, -0.0994402766, -0.2285403609, -0.0074846391, 0.1389690042, -0.374905169, 0.0633500889, -0.3493612111 ]
https://github.com/huggingface/datasets/issues/3738
For data-only datasets, streaming and non-streaming don't behave the same
These files are two different dataset configurations since they don't share the same schema. IMO the streaming mode should fail in this case, as @albertvillanova said. There is one challenge though: inferring the schema from the first example is not robust enough in the general case - especially if some fields are nullable. I guess we can at least make sure that no new columns are added
See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ```
67
For data-only datasets, streaming and non-streaming don't behave the same See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ``` These files are two different dataset configurations since they don't share the same schema. IMO the streaming mode should fail in this case, as @albertvillanova said. There is one challenge though: inferring the schema from the first example is not robust enough in the general case - especially if some fields are nullable. I guess we can at least make sure that no new columns are added
[ -0.241260007, -0.538382411, 0.0270497445, 0.2054672241, 0.2709464729, 0.0090806121, 0.192628637, 0.0634075105, 0.0702458024, -0.0795701519, -0.301170975, 0.068355456, -0.2525920868, 0.367969811, 0.1206432506, -0.3124425709, 0.160000369, -0.0171230529, -0.3173450232, -0.0600106865, 0.023626335, 0.0415326357, -0.1194236204, -0.2680514753, -0.0171648674, 0.134646669, 0.1771923751, -0.0150244916, -0.0233536866, -0.1186600626, 0.216908738, 0.0839463323, 0.1419480294, 0.5696658492, -0.0001130326, 0.3498700857, 0.2884454429, -0.2684845626, -0.0491355322, -0.2941718698, -0.2325999886, 0.1380952895, 0.0730933473, -0.2454402, -0.2997658551, -0.0947209895, -0.0831085294, -0.3203811049, 0.5762209296, 0.1769593954, 0.1786300093, 0.7188819051, -0.2709394693, 0.0224912297, 0.0166965071, 0.2370268703, -0.17710118, 0.2138017267, -0.2069435865, 0.4985138476, 0.1654556841, 0.4527532458, -0.2617515624, 0.023509806, 0.4668935239, 0.1084106863, -0.2373255044, -0.1582689583, 0.1063450128, 0.5543657541, 0.2933371663, -0.2589656711, -0.4447122812, -0.3128411472, -0.0269896239, -0.2924079597, 0.2358602285, 0.1726541668, -0.10880135, 0.1308769435, -0.3318737447, 0.0303080026, -0.0416416042, -0.0528647229, -0.2697371244, 0.3944043815, -0.0677918717, 0.1143538579, -0.1904086173, -0.0274691321, -0.0071350872, -0.3840796351, -0.007273342, 0.0471417792, -0.3793289363, -0.2316426337, 0.0027467299, -0.0532374829, 0.1123973653, 0.1178569719, 0.4273260832, 0.0602820888, -0.07238473, 0.1404742002, 0.1907037199, -0.0825646669, -0.0241857823, -0.243647486, 0.1753755659, 0.0949278027, -0.0107061276, -0.1704714298, 0.3926058114, 0.1824498177, -0.0159893539, -0.4670686126, 0.4041878283, -0.0142754912, -0.2607738376, 0.0188600812, -0.3494090438, 0.0307433382, 0.1268546283, 0.3991902173, 0.0414132215, 0.168155238, -0.1402296871, 0.3956475556, 0.1418875307, -0.0374519005, -0.264254272, -0.1204384938, 0.1167611256, 0.1273503304, 0.1767226309, -0.4076744914, 0.3004647195, 0.1078394204, -0.0075975223, 0.1687790006, -0.0398172885, -0.0759401172, 0.2319811434, 0.517672956, 0.0889773592, 0.0854823738, 0.1971507818, -0.1376227885, -0.2030013353, -0.0175295956, 0.0899649709, -0.1348856837, 0.3645586669, 0.2006074637, -0.298319608, -0.1265795082, -0.3280698955, 0.2738249004, -0.1051447019, -0.3546567857, 0.2421523035, 0.1028457433, 0.0045165941, -0.0654181838, 0.0683536008, 0.3014218509, -0.1371732503, -0.3517815769, 0.3745602071, -0.1420832872, 0.0633803234, 0.3964946866, -0.2604460716, -0.1726981103, -0.0568639897, 0.1192350984, 0.2587142587, -0.199050799, -0.1406501681, 0.3671528101, 0.0010989825, 0.4389561713, 0.4631587565, 0.1225183755, 0.2834226191, -0.147477597, 0.0420364253, 0.0183009133, 0.0288812947, 0.0901533738, -0.1237566769, -0.2582394481, 0.1698451489, -0.0312429257, -0.0054636765, 0.1839995235, -0.1600431949, 0.330991596, 0.2204711288, -0.0324783288, -0.052868899, 0.1152788103, 0.0216853432, -0.1074827909, -0.1553173214, -0.3237201571, -0.5997965932, 0.141389221, 0.2730633616, -0.036872372, 0.0883633792, -0.3782524765, -0.0194600653, -0.1390696615, -0.2150018215, -0.1137283742, 0.170618847, 0.1236936599, 0.2133123428, -0.1254094094, -0.5201581717, 0.1785680354, -0.1668056101, 0.1387965083, -0.4079779088, 0.2503014207, 0.1898099035, -0.0590520799, -0.1335941702, -0.2008557171, -0.0058520082, -0.0765874907, 0.0963448808, 0.3401153088, -0.152329132, 0.4398685098, -0.4019547999, 0.4905751944, 0.2948013842, -0.0606751777, -0.1908795387, 0.4449425936, 0.2299094051, -0.0032152836, -0.3805767, 0.3664931059, -0.0894452929, 0.2351005375, 0.3135694861, -0.1813833416, 0.3096236289, 0.1704877466, -0.6693193913, -0.2104651183, 0.0517603531, -0.075753428, 0.0045577697, 0.027797699, -0.6246352792, -0.1120517701, 0.4159116447, -0.0644247755, 0.0574083216, -0.1032909825, -0.4192691743, 0.0712432563, 0.1934913844, 0.2231158912, 0.570700407, 0.180898875, 0.290895164, 0.3163957596, -0.1112845913, -0.3006902933, 0.2768773735, 0.1460915357, 0.1037814021, 0.2976562381, 0.0326188914, -0.0036205545, -0.5076035261, -0.0076568779, 0.086789079, -0.0279647037, -0.36404109, 0.1154482514, -0.1998693198, -0.1810981333, -0.3621349037, -0.2940893769, -0.232067138, -0.2695862055, -0.0961316079, 0.4844965339, -0.2314226478, 0.1133762076, -0.0595868975, -0.0268606637, -0.1088874415, -0.379432112, -0.3866941929, -0.0586982407, 0.172572732, 0.041012641, 0.1160051972, -0.1162457466, 0.2189068496, -0.1684301198, -0.3869819939, -0.1694256365, -0.2790866792, 0.2802113593, -0.2125309706, -0.1039931774, 0.0521492139, 0.3394425511, 0.3401866853, -0.1243173108, 0.2626782656, -0.2192281336, -0.0771615133, 0.2447461933, 0.1261288822, 0.1458187401, -0.198073566, -0.2231801748, -0.0156066483, -0.3393799663, 0.2648117542, 0.0321862809, -0.0423577204, 0.3082714975, -0.0487001427, 0.1208217442, -0.100045234, 0.1876321435, -0.2353552133, -0.2016167045, 0.2444132417, -0.0715878829, -0.2608214617, 0.1559013128, 0.1568450332, 0.2009707987, 0.2289335728, -0.2054037899, -0.1039020121, -0.1416469216, 0.0192033052, 0.1109673381, -0.0144843506, 0.3887910247, -0.1071483716, -0.0862452164, -0.0885353759, 0.1787835211, -0.045015201, 0.1269846857, 0.0323126204, -0.0253024045, 0.4796411097, -0.0536772311, 0.4142832458, 0.3394564092, -0.07830064, 0.2857116461, -0.1527602524, 0.3537486494, -0.2245796621, -0.0089293718, -0.1485145688, -0.0425751545, -0.188447237, 0.2182243466, -0.1545265466, 0.028787626, -0.3201454282, 0.0064398809, -0.0237627067, -0.3159349859, 0.1345790923, -0.0210292153, 0.147389099, 0.0998824164, 0.3178444207, 0.1204930395, -0.0697076693, -0.0122179296, 0.473713845, 0.0898939893, 0.0188660435, -0.2272586823, -0.1086595133, -0.5276958942, 0.1746067107, -0.0673375651, 0.2863805294, 0.0498133712, -0.3904126287, 0.0412643887, -0.1022595242, 0.5127311945, -0.2978270054, -0.1118354052, 0.0251518134, -0.0079637505, -0.4831634164, -0.0859613642, -0.3957650661, -0.1805296093, 0.2358767688, 0.5959711075, -0.4563350677, -0.0498046838, -0.0071022036, 0.0182555243, 0.0187228508, -0.1899682581, -0.4509673119, -0.2863971293, -0.1697311103, -0.1526708752, 0.189767167, -0.1087360904, -0.3053258359, 0.0154723106, -0.2159000933, -0.0092486888, 0.2427516282, 0.2905499041, 0.0592628159, 0.1394080371, 0.1734884977, 0.1583345681, 0.3452783823, -0.014620862, 0.5492323637, 0.3795495033, -0.3192014098, 0.1434078217, 0.1864102334, -0.0110275606, 0.451697886, 0.0019602056, 0.4362334609, 0.3126443028, -0.0176947322, -0.2400585264, -0.1999322176, 0.3347380459, 0.0469777249, -0.1157805026, -0.600908637, 0.6610726118, 0.0647373497, -0.0521521531, -0.1396543384, 0.2735508978, -0.2734958529, 0.2392699122, -0.0434771292, 0.9567355514, 0.0907341018, 0.2523990273, 0.4486363232, -0.3367307782, 0.6689593196, -0.1403975487, 0.1793329418, -0.0389294066, -0.2444709986, -0.2268418223, -0.1316799819, 0.3269836903, -0.063276805, -0.3113007247, 0.2255247235, -0.0986780226, 0.7978085279, -0.1179569811, 0.1635511667, -0.5180805326, -0.2153653055, -0.8143025041, 0.0746006593, -0.0483630411, 0.1555379182, 0.0303427149, -0.2290241718, -0.0343675353, -0.080042012, -0.1121186391, -0.0770841911, 0.0413844511, -0.1232686341, -0.0910235792, -0.2593452632, -0.0562801436, 0.3878437579, 0.0039170859, -0.089650631, -0.3141707182, 0.0731230602, -0.0854835361, 0.1833330244, -0.0666082799, -0.0883452296, 0.3361325562, -0.0325419381, -0.0443983786, 0.3910056353, -0.0743552297, 0.0063238619, 0.0099377166, 0.0012380593, -0.0147278039, -0.3455656171, -0.2761903107, 0.1918634027, -0.140405491, -0.1498164684, 0.0744388476, -0.4029494822, -0.136674881, 0.0028949082, -0.0461683199, -0.0840646476, -0.3796893656, 0.6274480224, 0.2614896297, 0.2928800285, 0.27651757, -0.1491546184, -0.2018803358, -0.1466326267, 0.1252940297, 0.0793844461, -0.2593461871, 0.0730641335, 0.1279302835, -0.1439894885, -0.1200422645, 0.2720761001, 0.1590971947, -0.0116813788, -0.1979569793, -0.0437540337, -0.2294888645, 0.3955071867, 0.4062771797, 0.1133227423, -0.0172241032, 0.4000191987, -0.1206346154, -0.1189503893, -0.3028521538, -0.1939198077, -0.0387717783, -0.0061175297, 0.0945708677, 0.0790293366, 0.284811914, -0.217187807, 0.1651992649, 0.1979295015, -0.2537260354, -0.1637548804, -0.1747129709, 0.1525872946, 0.2255141735, -0.1023032591, -0.105175674, -0.0808096603, -0.2648485601, -0.1222070456, 0.4513147771, 0.2231457084, 0.0728140026, -0.0210808925, 0.2118721157, 0.2349874675, -0.5200608373, -0.1061610952, -0.0877993479, 0.04491679, -0.2420665622, 0.0351655744, -0.1742462516, 0.057695806, -0.1050272658, 0.2298036963, 0.162364915, 0.1881205142, 0.3370344043, -0.2579301596, 0.12451078, -0.0915627554, 0.5258667469, 0.537987113, -0.041913189, -0.1180285588, -0.0276043285, 0.1692275256, -0.3716489375, 0.0006650017, -0.1125653014, -0.023154607, 0.3709075749, 0.2417010814, -0.0207648873, 0.0917074382, 0.1535559297, 0.0861132592, 0.2849096358, -0.0492202751, 0.2971729934, 0.4092735946, 0.0967960954, 0.3412908316, 0.1139665022, 0.1058756411, 0.1144354418, 0.0415178314, -0.0554635487, 0.1552867442, -0.1162937656, 0.1314297765, 0.0770590603, -0.1642431021, -0.3264451921, 0.0725208521, -0.293715924, 0.4292349517, 0.0672642365, -0.0889705718, -0.2628831267, -0.060991969, -0.2845011652, 0.1144603789, -0.0614591986, -0.2351041734, -0.084138535, -0.2696070671, 0.080156967, -0.0075496403, -0.0115831289, 0.0847930089, 0.0881665945, 0.0123634245, 0.1543213576, -0.1441033334, -0.0286428723, -0.1053870022, 0.1609932184, -0.1439649612, 0.2271551937, 0.5238351822, 0.0039288634, 0.3081388772, 0.2840214074, 0.2545862794, -0.038999524, 0.2557747364, 0.3177067935, 0.1775467694, -0.2131464332, 0.0697518215, 0.1712662429, 0.3280545473, 0.0025500851, 0.2499946654, 0.2136092484, -0.172869131, 0.1790914983, -0.182890445, 0.1965650916, -0.4883809984, 0.3927477896, -0.4072576761, 0.0310235545, -0.0678916946, -0.2183497548, -0.4488175809, 0.1496337652, -0.0199636258, -0.0084042512, 0.2012452781, 0.0972898379, 0.0869843662, 0.12893188, 0.6172364354, -0.0285899751, 0.0174216758, -0.0030666785, 0.0368912853, -0.6614392996, -0.1199132279, -0.0949097648, -0.0308881234, -0.0293074939, 0.2556897402, 0.2922021747, 0.2708838582, -0.1770558655, -0.1373919398, -0.3339789212, 0.1380363554, 0.0968666375, -0.3656921685, -0.1063569039, -0.004573524, -0.0866955444, -0.3314653933, 0.2718575597, -0.0474490784, 0.0872421265, 0.0303081553, 0.3610830903, 0.0467464514, -0.0970755965, 0.0345847309, 0.0648009479, 0.4171363711, -0.1442499906, -0.2547957897, -0.0244693477, -0.0532007627, -0.5786323547, 0.0737823248, -0.1610836089, 0.5309177041, -0.0170191955, -0.2454326004, -0.0821815655, 0.1542006433, 0.0741784945, -0.3464292586, -0.3926340938, 0.1875176579, -0.2348120511, 0.1742597669, 0.030646937, 0.5277146101, -0.1116375402, 0.1502819061, -0.1686553806, -0.3908761144, 0.7457367778, -0.445680052, -0.150632903, -0.0410928503, 0.0678087845, 0.2829004824, 0.0105796941, -0.6046030521, 0.1721773744, 0.1843810827, -0.2507426441, -0.0374493562, 0.1061562151, 0.1417939961, -0.1247011125, -0.2864380181, 0.0161811821, 0.123657167, -0.4019115567, -0.0208795518, -0.2004824281 ]
https://github.com/huggingface/datasets/issues/3738
For data-only datasets, streaming and non-streaming don't behave the same
OK. So, if we make the streaming also fail, the dataset https://huggingface.co/datasets/huggingface/transformers-metadata will never be [viewable](https://github.com/huggingface/datasets-preview-backend/issues/144) (be it using streaming or fallback to downloading the files), right?
See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ```
27
For data-only datasets, streaming and non-streaming don't behave the same See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ``` OK. So, if we make the streaming also fail, the dataset https://huggingface.co/datasets/huggingface/transformers-metadata will never be [viewable](https://github.com/huggingface/datasets-preview-backend/issues/144) (be it using streaming or fallback to downloading the files), right?
[ -0.1478598416, -0.4494974315, -0.0741416663, 0.2103790045, 0.2105887681, 0.0522013754, 0.0881873369, 0.0913033187, -0.0407919623, 0.0463269465, -0.3037816584, 0.0575060919, -0.2236426175, 0.2117999494, 0.1254727542, -0.2901279628, 0.1195499301, -0.0062803929, -0.2550476789, -0.0152238151, -0.0845372006, 0.0715106726, -0.2137807757, -0.226921916, 0.0557992943, 0.1627506763, 0.199914068, -0.0221495368, -0.0602401979, -0.2695477009, 0.1121929884, 0.0508083403, 0.0711021349, 0.473287344, -0.000114504, 0.2984879315, 0.3541761339, -0.1966327727, -0.350625962, -0.3316371441, -0.2805880606, 0.1786199957, 0.0345856212, -0.0440271869, -0.1648897231, -0.1403222233, 0.1589137167, -0.4487287104, 0.5669636726, 0.235509187, 0.1699256897, 0.7521894574, -0.0781835169, 0.0316797644, 0.0616400875, 0.2577157021, -0.2764291167, 0.2800394595, -0.1322741657, 0.5018453598, 0.1466063261, 0.3891106844, -0.1332186013, -0.0203839988, 0.2827316523, 0.0527037345, -0.2738934755, -0.1839808673, 0.0445820987, 0.4300325811, 0.3452633917, -0.2495511174, -0.5196864605, -0.4067823887, -0.0212010909, -0.2482265085, 0.0938519835, 0.2507466376, -0.1045277715, 0.2265968174, -0.3885079026, 0.0504991747, -0.1674191207, 0.0698015466, -0.1540209055, 0.3471152186, -0.1843490005, 0.1641265601, -0.1460232437, 0.0652461499, -0.0569269024, -0.3374096751, 0.0646076724, -0.0415968299, -0.2174106836, -0.1439347118, 0.0302348044, -0.1196116656, 0.1587116271, 0.1104606688, 0.3677703738, 0.0842090547, -0.0384727381, 0.1386218816, 0.1714997143, -0.1038202494, 0.0015079197, -0.0755349994, 0.3441012502, 0.0816944912, 0.1218971238, -0.2314760536, 0.4176133275, 0.2150393873, -0.1922094524, -0.3458204567, 0.561211586, -0.1313291341, -0.3419467509, 0.0510893948, -0.310456574, 0.0187663157, 0.0592656359, 0.3595072031, -0.0974362418, 0.0945082381, -0.1205454841, 0.3131225407, 0.0831520483, -0.0408158824, -0.25315997, -0.2495083511, -0.0133021101, 0.1549573243, 0.2395796925, -0.4230981767, 0.4493790567, -0.0575857572, 0.0557441078, 0.1444497108, 0.056708537, -0.0846262649, 0.2500110567, 0.5757032037, 0.1072357595, 0.157523036, 0.2004322261, -0.1346223354, -0.1370327324, -0.0490467213, 0.111051634, -0.1836501211, 0.3953112662, 0.2129562795, -0.3245655, 0.0415198505, -0.4206825793, 0.2050957829, -0.1665039957, -0.3570689261, 0.290805757, 0.1365611404, 0.0879629552, -0.1595434099, 0.1356865168, 0.3214568198, -0.142538026, -0.3362160623, 0.3625543118, -0.2854039073, 0.1037591994, 0.3970129192, -0.3117203414, -0.1761909425, -0.2166483402, 0.0811071247, 0.3296519816, -0.2160354853, -0.3010596931, 0.4250742197, -0.1272884905, 0.4785313308, 0.4156762064, 0.0556605048, 0.3472304046, -0.1588105857, -0.0744067878, 0.0221442766, 0.044864431, 0.0101861004, -0.1735445559, -0.1559885293, 0.1891138107, -0.0770810321, -0.0115096727, 0.1550905406, 0.0625824332, 0.3453906775, 0.2423580438, 0.0374717303, 0.0774492547, 0.1184179485, -0.0636658818, -0.0546217263, -0.1414437741, -0.2345508486, -0.5934895277, 0.1811052561, 0.1395464689, -0.1571353227, -0.0810491964, -0.3562891483, -0.025344016, -0.1521448344, -0.2009489536, -0.1941036135, 0.1768863797, 0.2061493993, 0.1608349532, 0.0474540032, -0.4427679479, 0.281145364, -0.3165420592, 0.1827634275, -0.4249799848, 0.3045060039, 0.0428056344, -0.0469349287, -0.1951590329, -0.1901531667, -0.0417341515, -0.1025010645, 0.0651435107, 0.4362590909, -0.1296311915, 0.4226965606, -0.2239350677, 0.4042706192, 0.3643572927, -0.324752003, -0.0475282073, 0.4844664037, 0.2341375649, -0.0880952775, -0.3704104722, 0.338354677, -0.1165041327, 0.2937099636, 0.3216591775, -0.218349278, 0.2179896683, 0.1387622356, -0.8032081723, -0.2226232737, 0.0210440792, -0.2504269481, 0.2169846296, -0.0362793915, -0.5673174262, -0.1815540791, 0.3675610125, -0.0562358685, -0.0141897118, -0.0687233284, -0.4802676141, 0.018433867, 0.174559921, 0.1824488938, 0.6112624407, 0.2233076841, 0.4058088958, 0.1818712354, -0.0727015436, -0.4136186242, 0.1187614053, 0.248419553, 0.0101091517, 0.2940137088, -0.0207186602, 0.051998917, -0.4973080158, -0.0646244586, 0.0406991616, -0.1690494865, -0.2849885821, 0.08290492, -0.1555957198, -0.3039012849, -0.2769027948, -0.3366932869, -0.2165841162, -0.2800289392, -0.0479681864, 0.4411716461, -0.2072844654, 0.0094299894, -0.0370835848, 0.0054218983, -0.2275666445, -0.19006145, -0.4044739306, 0.046287097, 0.1255261153, 0.0892994627, -0.0218406264, -0.1006689668, 0.3789829016, -0.2708913982, -0.2332958132, -0.3128158748, -0.1897352636, 0.2238963842, -0.1400125027, -0.100170508, 0.0698920786, 0.3780108094, 0.2731809616, -0.1160479188, 0.23840487, -0.2263177782, -0.0307007562, 0.0880979225, 0.1333528906, 0.198013708, -0.2199650407, -0.2042319626, -0.1417227536, -0.4381321967, 0.3865691721, 0.0013491256, -0.0357232429, 0.3208017051, -0.032708846, 0.2613035738, -0.1153163016, 0.2593610287, -0.2156672478, -0.310033232, 0.1202343628, -0.1789933443, -0.267404139, 0.1363769025, 0.269736439, 0.2327834666, 0.1749541909, -0.3859594464, -0.0656910092, -0.1062246859, -0.0162395407, 0.0416448563, -0.0047238534, 0.4160584509, -0.1245764941, -0.09061753, -0.1798330247, 0.1996017694, -0.2654951215, 0.0294160452, 0.1805989444, -0.0255470425, 0.4012052119, 0.0580000989, 0.6073748469, 0.3520383835, -0.0236240551, 0.2837022245, -0.0569311045, 0.584209919, -0.1903337538, -0.0209226403, -0.0828509852, -0.045329567, -0.0891905725, 0.1971261799, 0.0279477611, 0.107973963, -0.2769502103, -0.0950033218, -0.2186380923, -0.2543440163, 0.0552459806, 0.0571943596, 0.048957929, 0.2254153043, 0.2906819284, 0.224942416, -0.0022637297, 0.0001078548, 0.5157408118, 0.2598680556, -0.0468606092, -0.1428153217, -0.2262913138, -0.4833321571, 0.0960430056, -0.1503224671, 0.3486040235, 0.0664118454, -0.3210710883, 0.1398027986, -0.0002926829, 0.5276548266, -0.1506456882, -0.123373203, -0.0215360969, -0.1110938638, -0.3802526593, 0.0124593116, -0.3896865249, -0.1254655719, 0.2725793123, 0.6067637205, -0.3534873724, -0.1377283633, -0.0544441342, 0.1562307626, 0.1010029316, -0.1883685887, -0.4228695035, -0.2029182613, -0.2884926498, -0.1492077559, 0.1630758196, -0.18361561, -0.3149844408, -0.1265041679, -0.1847658157, -0.0747329146, 0.1693536639, 0.2353996336, -0.0284299627, 0.12816827, 0.1769566983, 0.3670064509, 0.359054029, 0.1311862469, 0.6070219874, 0.3210379183, -0.3396082819, 0.0989777371, 0.2561174035, -0.0237994418, 0.4657731354, -0.0366066024, 0.2857460082, 0.3532913029, 0.0913132429, -0.2317432612, 0.065128468, 0.3267376125, -0.0679457784, -0.2636237442, -0.4742284119, 0.5720232129, 0.0800603181, -0.0961449146, 0.0289967488, 0.3227538764, -0.2568520606, 0.1190647781, -0.1079659015, 0.9314858317, 0.1064296588, 0.3322924376, 0.2335949093, -0.3442125022, 0.6104541421, -0.1929372847, 0.2019293308, 0.0389983878, -0.3118837476, -0.195900619, -0.1549188048, 0.3695201874, -0.1548302919, -0.1744897366, 0.2703993022, 0.0619541518, 0.6957879066, -0.1818527132, 0.1974779814, -0.4461096525, -0.1842837334, -0.6358203888, 0.0818000808, 0.049997732, 0.3222923875, 0.0119975889, -0.1624866277, 0.0848841369, -0.1781848371, -0.1375431865, -0.097223863, -0.108783856, -0.0933992714, -0.2112560719, -0.3234282136, -0.0089231664, 0.3612953424, -0.007554261, 0.0668337718, -0.3509937227, 0.1169078872, -0.1163023934, 0.1031481996, -0.1274326593, 0.0376551487, 0.2494182885, -0.0556185916, -0.0355306156, 0.443465054, -0.1910991073, -0.0518508703, -0.0749522746, 0.0490865074, 0.00695292, -0.2948387563, -0.0604236163, 0.0562727898, -0.2087616026, -0.2493521571, 0.0917896032, -0.2538242042, -0.0519199595, 0.002516526, 0.0393400118, -0.2366428673, -0.3744858205, 0.6549829245, 0.2161262035, 0.1152873188, 0.2504936159, -0.2165759951, -0.2400287241, -0.1585712135, 0.1810785681, -0.016272286, -0.2894691527, 0.0951239914, 0.1307994425, 0.0249390583, -0.0919809937, 0.2229620516, 0.2232617587, -0.0148868747, -0.3341310024, -0.1552389413, -0.2929848731, 0.3998976648, 0.2791673541, 0.1926536262, 0.0602267459, 0.3498099744, -0.0841554254, -0.1553284228, -0.3306671679, -0.1967887729, -0.0376637727, 0.0458750166, 0.1278150976, 0.1232735738, 0.3392913938, -0.1082861871, 0.1688300371, 0.2236327827, -0.3296922147, -0.1726090163, -0.0986202881, 0.1623368412, 0.3118172288, -0.1554994881, -0.2070048302, -0.141603753, -0.1404642016, -0.0983815938, 0.4454926848, 0.3466355801, 0.1325986832, 0.0446951762, 0.2106738836, 0.3396062851, -0.2355979234, 0.0156710353, -0.0778153464, 0.2089645565, -0.1607489884, 0.0093708932, -0.2338742465, -0.0000374269, -0.2577451169, 0.0564857908, 0.197494939, 0.1374645233, 0.3874897957, -0.2302925587, 0.1020904705, -0.1451544017, 0.5173075795, 0.4555162787, -0.007124994, -0.1132264808, 0.1377208829, 0.1589052975, -0.1616535336, 0.0025702668, -0.0936411619, 0.0280416124, 0.3822047412, 0.1218048781, 0.0014458216, 0.1090250984, 0.1898624748, 0.0183203947, 0.3983566463, -0.000701126, 0.2357726693, 0.3861942291, 0.1546214372, 0.1921730936, -0.016186282, 0.1324013472, 0.1598827094, -0.0147220381, -0.2662586868, 0.2103122026, -0.2179711461, 0.1732366085, 0.0364459231, -0.1094024256, -0.29319188, 0.1043747887, -0.4475081563, 0.37485075, 0.0765739307, -0.127987355, -0.2929928601, 0.1294041723, -0.0695453137, 0.0809621662, 0.0710935667, -0.2066940516, -0.0664711446, -0.2282753587, 0.1573055387, -0.0893185213, 0.0182025898, -0.0300249476, 0.0844041333, -0.0252697617, 0.0728196129, -0.2362231612, 0.0122176679, -0.0355408527, 0.1763392091, -0.1417104006, 0.191716671, 0.3970527351, 0.2212862819, 0.2867993116, 0.2926158607, 0.2057141513, -0.1157173216, 0.2869697213, 0.2224487066, 0.1802302897, -0.210627377, -0.0039348076, 0.2734596133, 0.3232778907, -0.1738086045, 0.2746086121, 0.2528168261, -0.2031553239, 0.2270000428, -0.173717767, 0.0865360126, -0.4897460639, 0.3346696496, -0.4970872104, -0.0794831365, -0.0168072581, -0.2573307753, -0.5681428909, 0.0489429943, 0.0447499901, -0.1180802807, 0.0762708783, 0.0428427123, 0.0738406554, 0.0679892749, 0.4374794364, 0.1642484963, 0.1910095364, 0.0052948818, -0.0112607768, -0.4917218685, 0.0399832018, -0.0480815805, 0.0351607986, -0.066863969, 0.2513636053, 0.1711381227, 0.2780549228, -0.067719765, -0.0360891521, -0.2718316913, 0.1024647057, 0.0841215849, -0.3136871457, -0.1988085806, 0.0933470204, -0.1526603699, -0.2265428305, 0.2128229886, -0.0675681755, 0.0582754053, -0.142153725, 0.4471273422, -0.0539410412, -0.0383685641, 0.1893640012, 0.059435904, 0.3376187384, -0.1684469283, -0.3380266726, -0.0395665765, -0.1204349175, -0.3169311881, -0.0004081802, -0.0890702084, 0.5157737136, -0.0873156935, -0.3018730283, -0.0167936236, 0.172870636, 0.1149375439, -0.3153401017, -0.2558816969, 0.2524670362, -0.3187794983, 0.06120345, 0.0107679879, 0.4175930917, -0.0796838552, -0.0990862176, -0.1672384292, -0.3389537632, 0.7641980052, -0.5041359663, -0.0775960386, -0.0078773955, 0.0796481818, 0.2903531194, -0.0824290141, -0.6823433042, 0.1441363245, 0.301256448, -0.1297591627, -0.0603425205, 0.0600666218, 0.0753868595, -0.0658364147, -0.2068285048, 0.0791983008, 0.0719068944, -0.3177676201, 0.1946622431, -0.2448639572 ]
https://github.com/huggingface/datasets/issues/3738
For data-only datasets, streaming and non-streaming don't behave the same
Yes, until we have a way for the user to specify explicitly that those two files are different configurations. We can maybe have some rule to detect this automatically, maybe checking the first line of each file ? That would mean that for dataset of 10,000+ files we would have to verify every single one of them just to know if there is one ore more configurations, so I'm not sure if this is a good idea
See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ```
77
For data-only datasets, streaming and non-streaming don't behave the same See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ``` Yes, until we have a way for the user to specify explicitly that those two files are different configurations. We can maybe have some rule to detect this automatically, maybe checking the first line of each file ? That would mean that for dataset of 10,000+ files we would have to verify every single one of them just to know if there is one ore more configurations, so I'm not sure if this is a good idea
[ -0.3082469404, -0.5184177756, -0.0382429473, 0.3086874187, 0.2399062365, -0.177745387, 0.1599005163, 0.228596434, 0.0310773533, 0.1484985352, -0.3134310544, 0.0760293528, -0.2314170152, 0.3043789566, 0.0689230561, -0.1778725237, 0.100117445, 0.0215647575, -0.2695710659, 0.0381322205, 0.0504424907, 0.0950393379, -0.0176802296, -0.3359536827, -0.0326024741, 0.107982032, 0.1726798713, -0.2192111909, 0.0931723788, -0.2083725631, 0.1254273057, 0.190702036, 0.0392256603, 0.6192154288, -0.0001151269, 0.2951513231, 0.1569998562, -0.2101191729, -0.3404227495, -0.2138826996, -0.1957309991, 0.093973726, 0.1236782148, -0.2578984201, -0.2444017678, -0.1383280903, 0.0739902556, -0.4624164701, 0.5808230639, 0.0603096001, 0.1370107979, 0.6894258261, -0.2578958869, 0.0712568238, 0.0306537449, 0.377094686, -0.1869815439, 0.1760167927, 0.0259057619, 0.2774806619, 0.0802436322, 0.4781523049, -0.1905561984, 0.0735662878, 0.3092500567, 0.1008993685, -0.2998845577, -0.2868620753, 0.035485968, 0.8005136847, 0.2309513241, -0.2933901548, -0.4663553536, -0.5412462354, 0.0539693423, -0.2137940526, 0.1546985209, 0.2513724267, -0.2412416041, 0.1695292145, -0.3637162745, 0.0759339258, 0.0083803842, -0.0932380408, -0.1666171849, 0.3539153039, -0.0315734781, 0.1098033488, -0.080337733, -0.0854475945, -0.0577356219, -0.4206848741, -0.0075139767, -0.1145325005, -0.4488015473, -0.2463473827, -0.0593579412, -0.2017481029, 0.1266729832, 0.2455488145, 0.5271075964, 0.1324906796, 0.0106546041, 0.1107348502, 0.2580030859, -0.0294542201, -0.0617308728, -0.1695371419, 0.3040089607, -0.0045475666, -0.0648987591, -0.0372929499, 0.4171831906, 0.0040253191, -0.0598903969, -0.3548708558, 0.4889149964, 0.0001405398, -0.2520430982, -0.1559586376, -0.3276770413, -0.0688029304, 0.2073494643, 0.3143388033, -0.0263234358, 0.1008648947, -0.121259965, 0.2417666465, -0.0401654355, -0.0087993406, -0.1646927297, -0.1421794593, 0.1788174808, 0.1264716536, 0.1763155013, -0.4270464778, 0.2643740475, 0.0971697494, 0.0910001919, 0.1272325665, 0.0093347374, -0.1152369604, 0.1951933354, 0.4526909292, 0.0865885839, 0.0758655742, 0.1422006637, -0.2127014101, -0.3397790194, -0.0930603892, -0.0112622045, -0.1402256936, 0.3173361421, 0.1688012779, -0.2894005179, -0.1491370052, -0.3385231793, 0.335925132, -0.0985590294, -0.2993282378, 0.2146562934, 0.0775699243, 0.0175709669, -0.1925462037, 0.0049017738, 0.3442755342, -0.0303207394, -0.3749288023, 0.5006689429, -0.184865877, 0.0457561202, 0.5155396461, -0.3070795238, -0.160910055, -0.1373386532, 0.0582234114, 0.4330544472, -0.2312273681, -0.1373897195, 0.5077054501, -0.0704240352, 0.4548472464, 0.6455835104, 0.1640829146, 0.3551746607, -0.1974791139, 0.0658473372, 0.0985688642, 0.1416189522, 0.1908610463, -0.0559802987, -0.3606122732, 0.0942010283, 0.0018281606, -0.1350392252, 0.0314704552, -0.0424821414, 0.1803068221, 0.3546952009, -0.1303755194, 0.0293985382, 0.083000131, 0.0465204306, 0.0757794753, -0.213081643, -0.3276484609, -0.58541435, 0.1535121202, 0.216897279, 0.0042787953, 0.0568962432, -0.4053399265, 0.1346983165, -0.2715452611, -0.1700775176, -0.0998236313, 0.1528691947, 0.2993742228, 0.1630599797, -0.0837265104, -0.4470392466, 0.2474566996, -0.1530035883, 0.101356186, -0.4527000785, 0.2161575258, 0.155510053, -0.0762306452, -0.0405519865, -0.1665040106, -0.103515543, -0.1231832504, 0.0994055942, 0.3341626823, -0.0775668696, 0.2892237902, -0.2180411667, 0.6023272276, 0.3007741868, -0.0369712003, -0.1589266807, 0.4493797719, 0.1325516254, -0.001366751, -0.4237193167, 0.5684635639, -0.067879945, 0.3472039998, 0.324439764, -0.2264807075, 0.3786478341, 0.1276921779, -0.6654533744, -0.2073669583, 0.0650617331, -0.1591661572, 0.1062865928, 0.1037978381, -0.6663364768, -0.1235013753, 0.4557615817, 0.056886103, 0.0714939311, -0.1016871259, -0.3030226529, 0.0687080845, 0.0218743291, 0.261772424, 0.5722911954, 0.3148630559, 0.3061866462, 0.1352055073, -0.1071500555, -0.3137723505, 0.2404113561, 0.1419294775, 0.0027955265, 0.2051743418, 0.0618372969, -0.013747856, -0.5397716761, -0.2897813618, 0.0310902055, -0.1206423044, -0.353526175, 0.159144029, -0.299367547, -0.2763230503, -0.4542536438, -0.321988523, -0.1844399124, -0.1120563522, 0.121027343, 0.3511443138, -0.1983261853, 0.1909813881, 0.0536424369, 0.123510249, -0.1515333802, -0.4265703857, -0.2402626425, -0.0479245521, 0.1561801136, 0.0349608026, 0.2396463156, -0.1196399033, 0.3241181672, -0.1323101074, -0.3408624232, -0.3773537874, -0.3103276789, 0.2406275123, -0.1607077867, -0.0365001224, 0.0514436997, 0.2772844434, 0.3638001084, -0.2292242795, 0.1798206419, -0.024768535, -0.1255305707, 0.1724475324, 0.0604173914, 0.0770394206, -0.2029595375, -0.3052748144, -0.088133648, -0.4390096962, 0.2991518974, 0.0245673694, 0.1481762081, 0.3179360032, 0.126168564, 0.0431305133, -0.1087728888, 0.32297647, -0.1644596159, -0.2167707384, 0.2085403949, -0.1286997348, -0.1363782585, 0.0606048331, 0.0922256336, 0.0181185957, 0.3068186641, -0.3468238413, -0.1716688871, -0.2887088656, 0.0851613507, 0.0487040728, 0.0453380793, 0.3745137453, -0.0252404083, -0.0478085652, -0.0154314274, 0.2031715661, -0.0855527967, 0.1397384852, 0.12786071, -0.0333205983, 0.3332687318, -0.0292578619, 0.388877362, 0.3233383894, -0.0658909008, 0.3092965186, -0.305155009, 0.4001678526, -0.1866794676, 0.0364729874, -0.0887250304, 0.0373312831, -0.0029517633, 0.2814410329, -0.0594770759, 0.0682538599, -0.2446033508, -0.0070761251, -0.1380237937, -0.3291640282, 0.3405198455, -0.0023498144, 0.0422366485, 0.0170763955, 0.1873185635, 0.1481479108, 0.0472409688, -0.1521690935, 0.5273564458, 0.0755357221, 0.032859154, -0.246983692, -0.1409159899, -0.3100059927, 0.1949145943, -0.1219603419, 0.1951303929, 0.0875467658, -0.3628049493, 0.1066433042, -0.0203777999, 0.5831997991, -0.284068197, -0.2576198876, -0.0953680128, -0.1242905483, -0.3768507242, -0.050203383, -0.344588697, -0.2952654064, 0.2038130462, 0.7298576236, -0.4816095531, -0.0931984857, -0.0045377477, 0.1444115639, -0.0708740875, -0.222801134, -0.408872366, -0.227238372, -0.3371075988, -0.1552276611, 0.1720157564, -0.0329787321, -0.190961808, -0.1562285572, -0.2314916551, 0.0544870198, 0.2705567181, 0.3744372129, -0.0038078087, 0.1277086288, 0.1910058111, 0.1448359191, 0.3895135522, 0.1941987723, 0.4991181791, 0.1908885688, -0.3638035059, 0.0719460994, 0.3023432195, -0.0564773902, 0.4361220002, 0.0542767756, 0.4061434567, 0.3445901275, 0.2177328765, -0.2049814165, -0.1038312465, 0.2423869818, -0.020913301, -0.2664426267, -0.7195930481, 0.5496193171, 0.1394916773, -0.1216404065, -0.0704093054, 0.2653991282, -0.3121554852, 0.2660851479, -0.2165361345, 0.935080409, 0.0272674374, 0.2693495154, 0.363837719, -0.5497666597, 0.6764016747, -0.2668186426, 0.2440535277, -0.0303629674, -0.3231238127, -0.1658092886, -0.1438319087, 0.3272161186, 0.0246488638, -0.1910540462, 0.2867175639, -0.0108545227, 0.63019979, -0.3575001359, 0.2444821894, -0.5634166002, -0.2697229981, -0.7120556831, 0.0589826107, -0.0514557436, 0.2835421264, 0.07641837, -0.1771323234, -0.0630876124, -0.1171456948, -0.0904028043, -0.2515060902, -0.1190931723, -0.0484776609, -0.0527843609, -0.1865035295, -0.141572088, 0.4526434541, -0.1538394988, -0.0167677328, -0.1877424121, 0.1456940472, -0.0020063964, 0.2948562503, -0.1413634568, -0.1422833204, 0.2767688334, 0.0680311173, -0.0704902858, 0.2295368165, 0.0167948734, -0.0311663914, -0.033858899, 0.1143657863, -0.07862854, -0.155831337, -0.023769429, 0.1007343009, -0.1741315722, -0.1413540691, 0.0658915192, -0.4196529686, -0.113724865, 0.1547188461, -0.05630707, -0.1717640609, -0.3874415457, 0.550780654, 0.2264775187, 0.1263350695, 0.2329066396, -0.2879380584, -0.1724076271, -0.161802873, 0.2189739347, -0.0797956064, -0.2636538744, 0.0980250984, 0.2148107588, -0.1603787988, 0.0449523926, 0.2278353125, 0.2213226557, 0.150299713, -0.1832034737, -0.125697419, -0.1771693379, 0.3609787226, 0.3411065638, 0.2344437093, -0.0473317318, 0.3710841238, -0.101640597, -0.0159711074, -0.3056799173, -0.2451566309, 0.0250353552, 0.0882269964, 0.050753288, 0.2180104554, 0.2730567157, -0.0331799425, 0.144274354, 0.0837925151, -0.33295995, -0.176585719, -0.2095906734, 0.1507827044, 0.0429186374, 0.0411871597, -0.1969941258, -0.0332179628, -0.0639527887, -0.2428539693, 0.3368627131, 0.3442357779, 0.0779938176, -0.0452812389, 0.2228678763, -0.0012401006, -0.2382759303, 0.0821085349, -0.0696434304, 0.0699072182, -0.0564966425, -0.0336650796, -0.2774919271, 0.0293394346, -0.1138058528, 0.1348994076, 0.2036358714, 0.1372892559, 0.1096834168, -0.0528936125, 0.0526117273, 0.0421566665, 0.4880411029, 0.5783926845, -0.0566571206, -0.0511577725, 0.1205053627, 0.1377992183, -0.2325240523, -0.0424041413, 0.0219889488, -0.1074220389, 0.3677659929, 0.3963362277, 0.06003654, 0.0043598884, 0.0332849026, -0.1104868799, 0.3402541578, -0.1668165922, 0.2577938437, 0.5354530215, 0.1579716802, 0.0975671858, 0.1329724044, 0.0633533597, 0.2370521277, 0.0253237728, -0.3352688849, 0.1525630355, -0.0770483837, 0.0038374746, 0.0355998091, -0.0988063887, -0.2494182885, 0.1298670024, -0.3137061894, 0.3062808514, 0.1671531349, -0.15486601, -0.1940770745, 0.1606865525, -0.1915712804, 0.1349152029, -0.0152122686, -0.2835026979, -0.0452956073, -0.1652642787, 0.0801447183, -0.036471352, 0.0551942177, -0.0087176226, 0.1130992621, 0.0875778943, 0.1035050377, -0.1399187744, 0.0233353768, -0.0691498145, 0.1925330311, -0.3066831231, 0.0725083575, 0.4403860569, 0.0781808347, 0.2469839901, 0.2665182352, 0.3358078897, 0.0615993105, 0.2756577134, 0.2642188966, 0.2372257113, -0.0611709617, -0.1176764518, 0.019640822, 0.2022415251, -0.0870912299, 0.2709218264, 0.200058043, -0.1581630558, 0.3056247234, -0.232888788, 0.1129501909, -0.523391068, 0.2076225132, -0.371616751, 0.0638384894, -0.0263206698, -0.1328792274, -0.5492999554, 0.103786096, 0.0813355297, -0.031733986, 0.1636871248, 0.0940179452, 0.0706063583, 0.0744402483, 0.4944473207, -0.0620831512, -0.1040620357, 0.0506141298, 0.0486138947, -0.7742522359, -0.1276770532, -0.1803071201, -0.0849548653, -0.2010776997, 0.3888520896, 0.2209050953, 0.1884124875, -0.1140489429, -0.2184394747, -0.2591151893, 0.2353447825, -0.1520537734, -0.3523957431, -0.0271718707, 0.1053304523, 0.060109023, -0.3284149468, 0.3280383348, 0.0264780018, 0.0669407398, -0.00000789, 0.478672117, 0.1583857238, -0.0131697115, 0.0542867705, 0.0397670791, 0.4283451736, -0.1336343735, -0.1983924657, 0.0313029401, -0.0428660624, -0.4414365292, 0.2001007944, -0.0174565371, 0.4900566339, -0.2067681402, -0.2060716003, -0.0905146524, 0.1615563631, 0.0487023406, -0.3887964189, -0.1736168712, 0.0814992413, -0.0748231113, 0.2552914917, -0.0153557137, 0.4307382405, -0.0886750296, 0.0091853961, -0.150331825, -0.458955884, 0.6379493475, -0.3606743813, -0.1094088778, -0.0174823347, 0.1582146734, 0.2716048062, 0.1837005913, -0.4879820347, 0.2555477321, 0.3226899505, -0.2349234074, 0.0211156402, 0.2081801444, 0.0000384827, -0.123783946, -0.1933219731, -0.1483781934, 0.1656166613, -0.3692939878, -0.0542944334, -0.3377384245 ]
https://github.com/huggingface/datasets/issues/3738
For data-only datasets, streaming and non-streaming don't behave the same
i think requiring the user to specify that those two files are different configurations is in that case perfectly reasonable. (Maybe at some point we could however detect this type of case and prompt them to define a config mapping etc)
See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ```
41
For data-only datasets, streaming and non-streaming don't behave the same See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ``` i think requiring the user to specify that those two files are different configurations is in that case perfectly reasonable. (Maybe at some point we could however detect this type of case and prompt them to define a config mapping etc)
[ -0.2233445644, -0.4214346409, -0.0021988221, 0.1339175403, 0.2301209122, -0.003551353, 0.2808351815, 0.1670939922, 0.0998133272, 0.2093735933, -0.2885890603, 0.1102920473, -0.1343374401, 0.2366632819, -0.053317789, -0.2150019407, -0.0486764759, 0.2093239278, -0.2974544764, 0.0923033506, -0.0150781292, 0.1008052528, 0.0148497764, -0.171139434, -0.0644589812, 0.081281513, 0.3112644553, -0.1727837026, 0.0719247535, -0.2626922429, 0.2579390705, 0.1870131195, 0.0134156756, 0.4857352972, -0.0001140483, 0.3494027555, 0.1203366145, -0.24823834, -0.292308569, -0.2568771839, -0.173435837, 0.1861547828, 0.2433243096, -0.2470897585, -0.4046141803, -0.131802097, 0.0890056118, -0.3936427534, 0.6443090439, 0.0630068332, 0.1556930691, 0.710354507, -0.2697221041, 0.0305284802, 0.054642722, 0.2719466984, -0.3162550032, 0.2769479752, 0.057750646, 0.339930594, 0.0659921318, 0.4977873266, -0.1718471497, -0.0012800955, 0.3757726252, 0.0779243484, -0.1816138029, -0.2621953189, 0.0787373856, 0.7078378201, 0.320484072, -0.1622797847, -0.3552648723, -0.5171584487, -0.003675974, -0.1877160072, 0.180158034, 0.256023705, -0.2569727898, 0.3108401, -0.3341358304, 0.0131143052, -0.0346929617, -0.0515212342, -0.2428778112, 0.3296750486, -0.006650188, 0.1442999989, -0.0998986289, -0.2065782696, -0.0923953429, -0.3043287098, 0.0266738124, -0.1119081825, -0.3613391221, -0.2805915177, -0.0295419339, -0.2571384609, -0.0897047743, 0.1564698815, 0.4581817389, 0.0564379245, -0.0106028877, 0.1604637057, 0.138512969, 0.0659658238, 0.064054817, -0.0448432118, 0.3021835685, -0.0085799294, 0.0675047934, -0.104412064, 0.4839114845, -0.0476917587, -0.0754828602, -0.3381004333, 0.4743093848, -0.0716401339, -0.3297520578, -0.0686334074, -0.3235559165, 0.0057913573, 0.1588220447, 0.2853727639, -0.0002031091, 0.0196433142, 0.0095632374, 0.3699378967, 0.008827718, 0.0721587464, -0.1508602202, -0.1577478051, 0.0697180256, 0.1356392205, 0.1870664954, -0.4004435241, 0.3187725544, 0.0437933914, 0.0831920281, 0.2587073445, 0.0757673308, -0.0013553825, 0.2292717546, 0.5308381915, 0.1751173139, 0.1515416652, 0.226419732, -0.2497494519, -0.3881141543, 0.0322916694, 0.0001292216, -0.1751823723, 0.3202583194, 0.1938901842, -0.3001352251, -0.1503286809, -0.2139664739, 0.2252607048, -0.0942800492, -0.337985009, 0.1302669942, 0.020115871, -0.0779616758, -0.2426918, -0.049209252, 0.2737177908, -0.1224834695, -0.3772876859, 0.405813992, -0.1283728778, 0.07903523, 0.4491135478, -0.4801837802, -0.0967440084, -0.0575955808, 0.0891516134, 0.4695515335, -0.2234836817, -0.1699417979, 0.3957290947, -0.2613090873, 0.5019292235, 0.59315449, 0.1157466397, 0.2998905182, -0.2311171591, 0.0885314718, 0.099335514, 0.1891449839, 0.1826225072, -0.0103474567, -0.3363391459, 0.145118475, 0.0053771161, -0.1126775891, 0.1585471034, -0.0280761812, 0.2152698189, 0.2873318791, -0.1937038898, 0.0725759938, 0.1046165749, 0.0392700993, 0.0914308801, -0.2542389035, -0.2205328643, -0.4814642072, 0.2149931341, 0.2357086092, 0.1400369853, 0.0296995994, -0.4647176862, 0.0089966608, -0.2572658956, -0.1318088174, -0.1140839383, 0.1487286836, 0.1871563643, 0.1608485281, -0.1147602648, -0.3443021476, 0.1959442943, -0.1698564738, 0.1663302779, -0.4277074039, 0.1092418954, 0.0479910299, -0.0323613882, -0.0679690465, -0.1699733585, -0.0197879784, -0.0691065118, 0.1015127078, 0.315425396, -0.0605661049, 0.2407154888, -0.2765018642, 0.5690940022, 0.222923696, -0.0733590648, -0.0122294407, 0.3952803016, 0.1093036085, -0.0424921401, -0.3228668869, 0.6292222142, -0.0549248047, 0.2669568956, 0.261872828, -0.1065778881, 0.3007256985, 0.1250817627, -0.6318342686, -0.2399517447, -0.0238249227, -0.1484912485, 0.005131993, 0.1287685633, -0.7282103896, -0.1167420447, 0.466727972, 0.1132078767, 0.0433372781, -0.1175900623, -0.2033473551, 0.0880211666, 0.009826717, 0.2119668126, 0.6163743734, 0.3373114169, 0.2256933302, 0.1405232549, -0.0855836794, -0.3304404914, 0.2760777771, 0.0465025641, 0.034156546, 0.0778023303, -0.0360329039, -0.036682684, -0.4618178606, -0.122725457, 0.0495086312, -0.2030845582, -0.4038201571, 0.0349424481, -0.280972451, -0.2649086416, -0.5144855976, -0.4316544831, -0.2138358802, -0.2425700724, 0.1333637983, 0.4218395352, -0.2024152428, 0.2690265775, -0.0148705347, 0.1326131523, -0.2124085277, -0.4550644159, -0.2142619044, -0.0925905555, 0.0106434608, 0.0565816872, 0.0858506337, -0.2404250354, 0.3347842991, -0.1648717821, -0.3064384758, -0.3532362282, -0.311357826, 0.2051139176, -0.1830603927, -0.0296690837, 0.1357296705, 0.4452582002, 0.4038859904, -0.2956258357, 0.2603567839, 0.102916941, -0.033422824, 0.0809661224, 0.0746110454, 0.0205763336, -0.1932878643, -0.2945738435, -0.0463339053, -0.3966224194, 0.2930372059, -0.0878912285, 0.1034262031, 0.3333614469, 0.070362471, -0.0248070937, -0.1085738763, 0.3241486549, -0.1844288111, -0.156523183, 0.3420797288, -0.1564460844, -0.1999054253, 0.1084248871, 0.2732635736, 0.0875593871, 0.266110599, -0.2692553699, -0.1906725168, -0.3617760837, 0.065758951, 0.0011339708, 0.0094710076, 0.3337347507, 0.0162859205, -0.085830763, -0.0606518313, -0.0483639464, 0.0096081654, 0.1152009591, 0.157411024, -0.0342303254, 0.3647549152, -0.0302232075, 0.5202603936, 0.2624782622, -0.1141640767, 0.2729768753, -0.2735074759, 0.4291049838, -0.2663353682, -0.0560794733, -0.0988259614, 0.1617909521, -0.0829741806, 0.2250148952, -0.1439297497, 0.0367838293, -0.2971128523, -0.0398656391, -0.112877816, -0.4073472321, 0.3213094473, -0.0203718953, 0.029118944, 0.1335857511, 0.2624290586, 0.1071259007, -0.0224432126, -0.1478432715, 0.5893301368, 0.0114932824, 0.1626373827, -0.1938972771, -0.2069695592, -0.3159696162, 0.1958725303, -0.1684818566, 0.2358074933, 0.0029788208, -0.3611687124, 0.1295298785, 0.1005128995, 0.5497348905, -0.2831012011, -0.1830098331, -0.0894181281, -0.0832423046, -0.3994292319, -0.0712161884, -0.1275375038, -0.2288126796, 0.1628091931, 0.6196634173, -0.4722138047, -0.1906557232, 0.0064255842, 0.0063431622, -0.160038799, -0.1684940159, -0.4341508448, -0.2654577494, -0.2940225303, -0.1715319753, 0.2601323128, -0.0072585866, -0.1346423328, 0.0103595378, -0.2059675604, 0.0881968588, 0.3197284937, 0.4830527604, 0.0459760875, 0.1077955961, 0.0704982877, 0.1082821637, 0.3620027006, 0.1750897467, 0.5969480872, 0.1908291876, -0.2324559242, 0.1065731719, 0.1505606771, 0.035661146, 0.5447092652, 0.0203694124, 0.3293536603, 0.3096782863, 0.0362021625, -0.194615677, -0.0745299459, 0.2720273137, -0.1091978103, -0.1605205834, -0.7347047329, 0.4873166084, 0.0619556047, -0.1929863095, -0.0470121428, 0.4162575901, -0.3041020334, 0.2801643014, -0.1757512987, 1.02003932, -0.0449584723, 0.3502124548, 0.3592681885, -0.5080690384, 0.700101912, -0.156505391, 0.1307203323, -0.0323140621, -0.1660213917, -0.2097162157, -0.152428329, 0.3634389639, 0.0307432506, -0.2693798244, 0.2745021284, -0.0841700956, 0.5901001096, -0.281925261, 0.2288902998, -0.4759690762, -0.325660795, -0.7009687424, 0.0758868232, -0.0935859606, 0.2709623575, 0.0475799665, -0.2481066883, -0.1906118542, -0.2513490617, -0.0622386001, -0.1184362099, -0.1729489118, -0.0269010179, -0.1046250314, -0.1067251191, 0.0599473603, 0.4209387898, -0.1562975794, 0.0438009389, -0.259465903, 0.141587317, -0.0556384176, 0.18740049, -0.1378911138, -0.103479974, 0.3651194274, 0.0209473036, -0.0757548735, 0.294905901, 0.0192089956, 0.0226943642, -0.084314175, 0.0147084827, -0.1450181156, -0.3629611135, -0.1806499213, 0.0720555782, -0.0241122283, -0.0873623863, 0.0817001984, -0.3705497682, 0.0242198221, -0.0092919795, -0.0326978974, -0.2087376863, -0.2682190835, 0.503965497, 0.2293933481, 0.0855038837, 0.3245418668, -0.422164917, -0.1438003927, -0.1838760227, 0.0903504267, -0.02294931, -0.2811389863, 0.0205091406, 0.2047613263, -0.2297898978, -0.0981737897, 0.2080866545, 0.306356132, 0.0744594559, -0.0404247232, -0.1263433099, -0.1354254335, 0.3503707647, 0.2610163093, 0.2644898593, -0.0621196479, 0.4352098107, -0.1410943121, -0.1038857326, -0.3195568025, -0.2414447665, 0.0454380475, 0.0725098401, 0.1175147444, 0.1514693201, 0.333060205, -0.1332008094, 0.1392846704, -0.0228810981, -0.3621394336, -0.1687466949, -0.2712974548, 0.146282956, 0.0474454686, 0.0057622446, -0.2345086932, -0.1710072309, -0.041714374, -0.17339091, 0.4506353736, 0.4289969206, 0.0940400809, 0.0404581279, 0.2451893091, 0.0478362963, -0.2596256733, 0.0181602798, -0.1182880178, 0.0813123584, -0.1182833463, 0.024935808, -0.3280928433, -0.0478364229, -0.0287999623, 0.1522788256, 0.2222034186, 0.083039999, 0.0202441756, -0.0702047497, 0.0931688771, -0.0385406353, 0.4541532993, 0.5143436193, -0.0635033175, -0.109216094, 0.0403037556, 0.1539987773, -0.2012708634, 0.0087577654, 0.0913044363, -0.0815446675, 0.2807681859, 0.4225236177, 0.1180806309, 0.1287615001, 0.0474901982, -0.1975543201, 0.3092676103, -0.1545276642, 0.3174513876, 0.4536346495, 0.1063782945, 0.1581344754, 0.218780309, 0.2281050533, 0.2549090087, -0.0357707553, -0.2951503992, 0.0896852538, -0.0337644815, 0.030045839, -0.0353185497, -0.0700416714, -0.2163027823, 0.0733127892, -0.3083726466, 0.2451199889, 0.210513711, -0.1343473643, -0.1906574667, 0.0845052302, -0.1951122433, 0.0683950409, -0.1380167902, -0.3288451135, -0.1003847197, -0.2247639596, -0.0097801061, -0.1798453182, 0.0817873776, 0.0291261598, 0.1275068521, -0.0298712626, 0.1953175217, -0.0876292363, -0.0380267352, -0.1209763065, 0.2169174701, -0.2805152237, -0.0041294121, 0.3158749938, -0.0253980421, 0.3934315443, 0.3335014284, 0.3467172086, 0.0547694229, 0.3768181205, 0.1943059415, 0.2004072815, -0.1123819053, -0.1047557071, 0.0408051573, 0.2507024705, 0.0030384469, 0.3815407157, 0.2051761001, -0.1985852867, 0.1613077074, -0.3232913911, 0.2653671205, -0.4244012237, 0.2602052093, -0.3163559735, -0.0006733253, 0.0394436233, -0.1558897048, -0.4398982525, 0.1700114757, 0.1520753503, 0.0088939294, 0.2134650499, -0.0302485395, 0.0773411319, 0.2285044789, 0.5621269941, -0.0528919399, -0.1650436521, -0.0481605791, 0.1207378805, -0.7019144297, -0.1169937104, -0.2237867713, -0.1309744269, -0.1101760343, 0.2395847291, 0.3570631742, 0.2453106344, -0.1049313992, -0.1864012331, -0.2707809508, 0.1822379231, -0.0757282376, -0.3370636702, 0.0595612079, -0.0026366848, 0.0649658069, -0.273588419, 0.244581759, 0.1029921994, 0.0840834603, -0.1015928909, 0.4502155185, 0.1398923695, 0.0309294574, 0.0472816043, 0.0742607191, 0.5191571712, -0.1197882518, -0.1597808301, 0.0953950509, -0.1006442308, -0.4673939049, 0.0521456972, -0.087647967, 0.5059536099, -0.1755796522, -0.2097968012, -0.203070417, 0.1251039505, 0.0238787699, -0.2868838906, -0.178707391, 0.1527038068, -0.0956937075, 0.2531857491, 0.0354166664, 0.5680267811, 0.0028608995, 0.1203442514, -0.1876610518, -0.4572070837, 0.7323206067, -0.317846179, -0.161052838, 0.1655219644, 0.1494005919, 0.2287182659, 0.1700712442, -0.5385717154, 0.2693243027, 0.2709920406, -0.2863538265, -0.0198301077, 0.1828940213, -0.0681810901, -0.1725289226, -0.1896951348, 0.0076905973, 0.1120333225, -0.3766995072, -0.2379864752, -0.3626042008 ]
https://github.com/huggingface/datasets/issues/3738
For data-only datasets, streaming and non-streaming don't behave the same
OK, so, before closing the issue, what do you think should be done? > Maybe in streaming mode we should keep the schema (inferred from the first item) and throw an exception if a subsequent item does not conform to the inferred schema? or nothing?
See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ```
45
For data-only datasets, streaming and non-streaming don't behave the same See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ``` OK, so, before closing the issue, what do you think should be done? > Maybe in streaming mode we should keep the schema (inferred from the first item) and throw an exception if a subsequent item does not conform to the inferred schema? or nothing?
[ -0.1384042948, -0.4757509232, 0.0538570359, 0.2831663489, 0.3996576965, 0.0113185151, 0.0607534386, 0.2039569914, 0.0111171249, 0.0105741965, -0.1794577241, 0.1295818537, -0.2606135011, 0.3045917153, -0.026507305, -0.3158572614, 0.148051098, 0.0406328477, -0.2192370594, -0.0878200978, -0.0394789763, 0.0910759121, -0.0791348964, -0.2313050032, -0.0387762748, 0.0049672052, 0.1821746528, -0.1045941338, 0.111406371, -0.2526327372, 0.1560156047, 0.0111593064, 0.1723185778, 0.6449155211, -0.0001166101, 0.1720435619, 0.2390157431, -0.245283857, -0.1525820345, -0.294041127, -0.23687011, 0.1929943562, 0.0896200612, -0.1756905615, -0.2489248514, -0.1791535765, -0.070381254, -0.3795278668, 0.469789058, 0.1450496167, 0.157779485, 0.5331030488, -0.1480896771, 0.0737180412, 0.0648685321, 0.1707904041, -0.1961704642, 0.2670663893, 0.0107471691, 0.4634712338, 0.1574568748, 0.4963763058, -0.2784913778, -0.0616098605, 0.3872329593, -0.0059144292, -0.2312194705, -0.215381518, 0.0852117687, 0.5853289962, 0.3723189235, -0.2653101683, -0.4558497667, -0.363478452, 0.0001445075, -0.2805522978, 0.0907349139, 0.2270436138, -0.0900169462, 0.2664524615, -0.3730813563, -0.0070197894, -0.1562040597, 0.0257309079, -0.2012631297, 0.4241478145, -0.0323987454, 0.0980256274, -0.2046118975, -0.1268510222, 0.0624214746, -0.3583697677, -0.1186867952, -0.0361495428, -0.3660167456, -0.1641635746, 0.0364808775, -0.0721643865, 0.0980823115, 0.1569352001, 0.390822053, 0.1253405809, 0.1032197773, 0.1354747117, 0.2480280101, -0.0193736348, 0.0794758573, -0.2062426209, 0.2347852588, 0.1678288132, -0.036488913, -0.1581434458, 0.3737774491, 0.2563274801, -0.0319133699, -0.2835434377, 0.5091560483, -0.092364043, -0.2972976267, 0.066167742, -0.4334408343, 0.0598024055, 0.1989014745, 0.3959705532, -0.0320113599, 0.2635873854, -0.0375320688, 0.4147933125, 0.1436358541, -0.0583579987, -0.248323366, -0.1523910314, 0.1305465549, 0.0656387582, 0.0656205714, -0.3326260448, 0.2727419436, 0.0368953757, -0.0413580015, 0.0088030603, -0.0513650067, -0.1158856452, 0.1237193719, 0.4952461123, 0.0597333983, 0.188842386, 0.1750627309, -0.2029359192, -0.1999235898, 0.0261147562, 0.01715203, -0.1875899881, 0.2937582433, 0.2057076097, -0.3395510018, -0.1309086531, -0.26835832, 0.2002242059, -0.1184670255, -0.3252474368, 0.1017667353, 0.0690890923, -0.0170330573, -0.2134914249, 0.0865112692, 0.2236720771, -0.1875328571, -0.1680975109, 0.343919009, -0.0575882904, 0.2115917206, 0.4903813899, -0.2222217619, -0.0055596936, -0.1617922187, 0.090148598, 0.268325001, -0.1665117443, -0.25574103, 0.4413867593, -0.0797712728, 0.4888788164, 0.4631502926, 0.1008190736, 0.3615373671, -0.1864862889, 0.0535754189, 0.2137327194, -0.1209113598, 0.1937320679, -0.1662082076, -0.2514894605, 0.1576708555, -0.0051059141, -0.1342414618, 0.2109760344, -0.0550853871, 0.2924554646, 0.3326237202, -0.148219794, 0.0209224094, 0.1659039259, 0.174471125, 0.0146666663, -0.1589976251, -0.3718560338, -0.6552298665, 0.1502919793, 0.3122109175, -0.0102290604, -0.1320590675, -0.4446813166, -0.1374319345, -0.1001188084, -0.2082691342, -0.0232664961, 0.1577447057, 0.1339891851, 0.0564016104, -0.0211271141, -0.2195066214, 0.1453537494, -0.1472360492, 0.1839980781, -0.4333925843, 0.2262507379, 0.0856889412, -0.2298184335, -0.0883728042, -0.0675658882, 0.0621822029, -0.1665119976, -0.0200573243, 0.3914844692, -0.1087581217, 0.4678961635, -0.3575281203, 0.4541222155, 0.2068491876, -0.1654785872, -0.1530072838, 0.4843901992, 0.2628301084, -0.107501328, -0.435638845, 0.4680843651, -0.1241636649, 0.3120680749, 0.1955600828, -0.0529448949, 0.3478072286, 0.1101050004, -0.562784791, -0.1359110028, 0.1150517911, -0.2120833248, -0.0361356363, 0.0177275762, -0.6258199215, -0.0674271956, 0.5084955692, -0.0499413684, 0.1027936786, -0.0867763832, -0.293030262, 0.2070996165, 0.2730522752, 0.2333793342, 0.4691303372, 0.2374660075, 0.231243223, 0.2272899747, 0.0074686324, -0.3010632396, 0.2865701914, 0.2684763074, 0.1270983368, 0.2459008545, 0.0946771801, -0.0089470008, -0.4060628712, -0.0909177735, 0.0249678399, 0.0062699053, -0.392021209, 0.1626301855, -0.2864708602, -0.1533374488, -0.4370510578, -0.3609806299, -0.3027060628, -0.2793722451, -0.0920128301, 0.5347335935, -0.3396760821, 0.1333919317, -0.0283350237, -0.0619236156, -0.0951969996, -0.361523211, -0.3573242724, -0.1502128094, 0.1324288994, -0.0039818324, 0.1512798518, -0.0791266188, 0.3454875946, -0.211774379, -0.2439471334, -0.1492231488, -0.3462115824, 0.2153663933, -0.2426481992, -0.020014938, 0.1148060113, 0.4525539875, 0.2756757736, -0.3828178644, 0.2423649728, -0.1443706751, -0.0147032235, 0.3436442614, 0.1136186421, 0.1243650615, -0.115778476, -0.3505540192, -0.0652958602, -0.4942253232, 0.3048433959, -0.1510706395, 0.0556183234, 0.3016623557, 0.0113254851, 0.0820858106, -0.1336291283, 0.2981750369, -0.142466262, -0.1771236509, 0.2772525847, -0.026018722, -0.2704296112, 0.1601639837, 0.0643046424, 0.1410566866, 0.2269675285, -0.3162599504, -0.1364211291, -0.1527217925, -0.001917319, 0.0658750162, -0.0907378122, 0.4019160867, -0.0173832439, -0.0031701061, -0.1127660424, 0.102456145, -0.0645996705, 0.0949962437, 0.2670103312, 0.1014515534, 0.6615734696, 0.0180395879, 0.4182751775, 0.3452188373, 0.0452572592, 0.3259259462, -0.0673598871, 0.207765907, -0.1190992519, -0.1323028058, -0.0986137912, -0.0440649092, -0.1211785153, 0.2246818542, -0.0337624177, 0.0993647948, -0.2421698421, 0.0095460862, -0.1921778023, -0.4288108647, 0.2128033787, -0.0913022384, 0.0519238636, 0.0576749891, 0.2305945605, 0.09338025, -0.0870045647, -0.0058585475, 0.4391075671, -0.0607073978, 0.0079554953, -0.2738536, -0.2100214362, -0.3961347044, 0.2765833735, -0.0113096992, 0.4208210409, 0.0359456316, -0.3457223475, 0.1249657795, -0.0139136165, 0.6360399127, -0.3132613301, -0.0882885605, -0.0647925586, 0.0449775979, -0.3784505129, -0.04299457, -0.3753957748, -0.1375679374, 0.3798461854, 0.5105183721, -0.5084813237, -0.1483686864, 0.0374949649, 0.1137290373, -0.0531698689, -0.181196481, -0.3873999417, -0.3553486764, -0.3069950342, -0.1092765108, 0.2908316553, 0.0491507538, -0.2699331939, -0.0970717221, -0.2108037621, -0.0518662035, 0.2629280984, 0.2522078454, 0.1574526727, 0.1464021802, 0.2699087262, 0.1182092875, 0.3431377113, 0.2193314582, 0.6274474263, 0.2211592197, -0.4182900786, 0.0209238641, 0.0855780393, 0.0916088969, 0.4437395632, 0.0077887829, 0.3177827299, 0.2954301834, 0.0924131945, -0.2120438218, -0.1446461678, 0.3299658, -0.0077695376, -0.1045569927, -0.5384418964, 0.506115973, 0.1009977907, -0.1901828945, -0.1151114479, 0.2773097754, -0.3476994038, 0.454721123, -0.2407161444, 1.0753976107, 0.1623000205, 0.2372591048, 0.402356118, -0.5000537634, 0.6633799076, -0.1304485351, 0.1718334556, -0.119491905, -0.3471027911, -0.1419761628, -0.1286956221, 0.3130986094, 0.009764337, -0.3283543885, 0.3524772823, -0.1500774622, 0.6164013147, -0.1718657911, 0.1745640934, -0.478425473, -0.2593838871, -0.7422732711, 0.0412629582, -0.1531369388, 0.2104882598, -0.0055421852, -0.2592179179, -0.0868688077, -0.226468727, -0.0939255729, -0.0431067757, -0.0741427988, -0.1245352328, -0.0830070972, -0.3411190808, -0.0103023062, 0.3807757795, -0.0156688076, -0.05401792, -0.2884412408, 0.1484776288, 0.0453814529, 0.234119907, -0.0769211501, -0.065263167, 0.414345324, -0.0000314655, -0.1238593385, 0.2819019258, -0.0807698369, 0.0270626936, -0.0890347064, -0.1031699777, -0.0612264723, -0.3900450468, -0.1911246032, 0.0611715429, -0.0318137854, -0.2000952214, 0.0984290838, -0.2892145514, -0.2650083899, 0.1269552559, -0.0058215554, -0.0587001704, -0.2234025896, 0.6620005369, 0.1963264495, 0.126159966, 0.3640833497, 0.0051661436, -0.2003994882, -0.1501342207, 0.1895152926, 0.048916474, -0.4222516418, 0.0340361856, 0.0444231443, -0.2117466778, -0.0665884614, 0.2528524101, 0.3360257447, 0.0160439555, -0.1710815579, -0.1222490072, -0.2903631628, 0.4197040796, 0.4088804424, 0.1459136903, -0.1241235733, 0.4336204827, -0.1731360704, 0.0068268985, -0.3206792772, -0.2665191591, -0.1128986701, 0.1151872948, 0.049880024, 0.0212259814, 0.2841079533, -0.2108793706, 0.1732327938, 0.1439082175, -0.2469467223, -0.1276832223, -0.1728218198, 0.1529790014, 0.169045791, -0.030214835, -0.2419726253, -0.1713138223, -0.121091105, -0.0602172203, 0.3363257349, 0.1765175909, 0.1672938019, 0.0594275072, 0.2946426272, 0.3151656687, -0.2826752365, -0.0670112297, -0.2634983659, 0.1848077029, -0.2199303061, -0.0402770191, -0.2126746625, 0.0050585154, -0.0416634493, 0.0193985365, 0.1892340779, 0.1876509786, 0.470605731, -0.136438787, 0.0887618959, 0.1445663124, 0.5356234908, 0.4333374202, -0.1878433675, -0.1586347818, 0.0897329375, 0.196533218, -0.28112486, -0.0157195702, -0.0217972845, -0.0698484331, 0.1875221282, 0.2597036064, -0.0682072118, 0.0662828013, 0.0169524122, 0.0911274776, 0.4783876836, -0.0881914645, 0.242162019, 0.3892220855, 0.0624550991, 0.1182926372, 0.1061887369, 0.1936541498, 0.1907954216, 0.0266083833, -0.1901594251, 0.1290584207, -0.1621376872, 0.078601189, 0.1188422441, -0.1063760146, -0.3310721517, 0.0590785444, -0.2766239643, 0.3140174747, 0.0261479169, -0.0557615943, -0.2496800721, -0.100053288, -0.1917413622, 0.1294136047, -0.0731425732, -0.1489330381, -0.1378110796, -0.1337386668, 0.0073459246, -0.2355294377, 0.0441943109, 0.0874300003, 0.0729232579, 0.1007821783, 0.1874873042, -0.2806812227, -0.2192677557, -0.1306626797, 0.2691231966, -0.3072565496, 0.1916290671, 0.4401156604, -0.0102929976, 0.2411433607, 0.2157669365, 0.2711922526, 0.0678820387, 0.0714577734, 0.3552408814, 0.1780265868, -0.1953790188, 0.0630306676, 0.0836266726, 0.222454384, 0.0994460955, 0.2640414536, 0.1860732585, -0.1983172596, 0.2439776808, -0.1961874366, 0.1002491564, -0.3871259093, 0.4684820771, -0.3356576264, -0.1256795526, -0.0977483317, -0.3002909422, -0.5277485251, 0.0468021929, 0.0463274941, -0.1142088473, 0.2355480939, 0.137113288, 0.0735079721, 0.1209987104, 0.4863333404, -0.0364863686, 0.0662228391, -0.1464842409, 0.0084433565, -0.6656216383, -0.0513758324, -0.0550689921, -0.0518401563, 0.143998757, 0.2641541958, 0.1153925508, 0.1365662664, -0.2378474772, -0.1069358885, -0.3767037988, 0.1820491254, -0.0948609263, -0.4312846959, -0.0637027249, -0.0392772444, -0.0172922723, -0.2339016795, 0.3435138762, 0.0781102553, 0.0671220422, -0.1266139299, 0.3712227046, 0.1284228712, -0.1628602296, 0.0071578166, 0.0335490853, 0.4168857634, -0.1501635164, -0.2385011166, 0.1531929076, -0.2725096643, -0.4518486857, 0.2021095455, -0.0818280578, 0.5973292589, -0.0692952424, -0.2846948504, -0.2344967127, 0.1282956451, 0.0141622964, -0.3329663277, -0.45935449, 0.2841681838, -0.27739048, 0.2661251426, 0.0214394797, 0.4273703992, -0.0784604549, 0.2360077649, -0.1858513355, -0.5633984208, 0.8358965516, -0.2835283875, -0.1630882621, 0.1107328832, 0.1991125941, 0.097162202, 0.0533122867, -0.5788937211, 0.1809284538, 0.2358581275, -0.2532104254, -0.0783543065, 0.1205313951, 0.1649625599, -0.1454896033, -0.1580339968, 0.0442782976, 0.1606246531, -0.4118946493, 0.0917779878, -0.1539200395 ]
https://github.com/huggingface/datasets/issues/3738
For data-only datasets, streaming and non-streaming don't behave the same
We should at least raise an error if a new sample has column names that are missing, or if it has extra columns. No need to check for the type for now. I'm in favor of having an error especially because we want to avoid silent issues as much as possible - i.e. when something goes wrong (when schemas don't match or some data are missing) and no errors/warnings are raised. Consistency between streaming and non-streaming is also important.
See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ```
79
For data-only datasets, streaming and non-streaming don't behave the same See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ``` We should at least raise an error if a new sample has column names that are missing, or if it has extra columns. No need to check for the type for now. I'm in favor of having an error especially because we want to avoid silent issues as much as possible - i.e. when something goes wrong (when schemas don't match or some data are missing) and no errors/warnings are raised. Consistency between streaming and non-streaming is also important.
[ -0.1809254587, -0.5316242576, 0.031650912, 0.0601784512, 0.326351881, 0.0084529314, 0.1868888438, 0.2202477306, 0.0926468, 0.2087871581, -0.1634202749, 0.0506505333, -0.2015401125, 0.24568443, 0.0024848415, -0.3584954441, 0.1400906146, 0.1418411583, -0.2897823453, -0.1043147594, -0.0991662666, 0.1500137746, -0.0996568501, -0.2278493345, -0.1240105033, 0.1046606898, 0.0549460389, -0.1187526807, 0.0941161066, -0.284329623, 0.1743443012, 0.0110147484, 0.1439232975, 0.5653606057, -0.0001124764, 0.2100822628, 0.3326706886, -0.2171496451, -0.2414315045, -0.2853049636, -0.0891399235, -0.0006791019, 0.1708541214, -0.2200296521, -0.3024320602, -0.1820762455, 0.0683061853, -0.3380940557, 0.4719053209, 0.1834679395, 0.1546744704, 0.7683607936, -0.1194890365, -0.0654174164, 0.0043026321, 0.2759346068, -0.208688423, 0.1730816662, -0.0528462231, 0.4428833127, 0.0624856018, 0.4583586454, -0.1876225621, 0.0425338037, 0.2273251116, 0.0870980471, -0.2493345737, -0.2186230272, 0.0255594347, 0.7112853527, 0.440592736, -0.2733047307, -0.4906801283, -0.4351959229, -0.0027572555, -0.2412808836, 0.2228454798, 0.1724823862, -0.0323122218, 0.1935940236, -0.2959651649, 0.143952623, -0.0497662313, -0.0339105688, -0.108693108, 0.3696991503, -0.0117508685, 0.0892414078, -0.1619713753, -0.073806867, -0.0763142034, -0.3120167553, -0.0202116426, 0.0216208063, -0.3522689641, -0.3687590361, -0.0130684888, -0.225548178, 0.016282035, 0.1780811101, 0.3441541195, 0.0041318797, 0.1229707971, 0.1702753305, 0.1917194128, -0.0855387375, -0.0051856623, -0.1060077399, 0.3469254673, -0.0023189674, 0.1454011798, -0.2057368904, 0.3595811725, 0.2549841404, 0.0143058524, -0.1758189648, 0.4651211202, -0.1359065324, -0.2297182828, -0.0665327311, -0.2516764104, -0.0061479406, 0.1033186167, 0.3582754135, -0.1015754789, 0.2497334331, -0.1106883511, 0.3302404881, 0.0066359499, -0.1575050801, -0.2702985108, -0.1359007508, 0.1193201914, 0.0688029006, 0.1707774997, -0.2567983866, 0.364200443, 0.0212641452, -0.0249252245, 0.2668774724, -0.0192119088, -0.0825823322, 0.1678823084, 0.6142479181, 0.1086315587, 0.1345238388, 0.1604276001, -0.0728854984, -0.2917256057, -0.0003161615, 0.0687769279, -0.2879526913, 0.108188048, 0.2175953835, -0.291642338, -0.1755245626, -0.2418339103, 0.2868228853, -0.0845410749, -0.4276536405, 0.1285774261, 0.0665960535, 0.0450934581, -0.2367298752, 0.0642179772, 0.2498358488, -0.0903382972, -0.3491172493, 0.2711887658, -0.155681029, 0.2300501615, 0.428840518, -0.2143103033, -0.1565320194, -0.123740688, 0.1074799225, 0.2705132961, -0.1940411478, -0.1048834473, 0.3202499449, 0.0353842415, 0.3805832267, 0.5008403063, 0.1066310182, 0.3570741117, -0.2333213687, -0.0313908346, 0.1873153448, -0.0679953322, 0.2008287907, -0.1010952368, -0.1705610901, 0.0730369762, -0.0168958846, -0.1037014499, 0.1658027619, -0.0346835032, 0.2707495689, 0.1679513752, -0.1953002214, -0.112036854, 0.068632625, 0.2227206975, 0.053015694, -0.1274277568, -0.1860773861, -0.689540267, 0.1518599391, 0.2706540227, 0.0681750774, 0.0211601686, -0.3538502157, 0.0108137587, -0.1593011469, -0.1088307202, -0.019957846, 0.1349106431, 0.1542234868, 0.25319013, 0.0543442219, -0.3653137088, 0.108595863, -0.2718576491, 0.2544928491, -0.4513850808, 0.2082998157, 0.1270125955, -0.2515734136, -0.0393424369, -0.0920099542, 0.0192951392, -0.0756306723, -0.0185304191, 0.4355845749, -0.0529904291, 0.3708617687, -0.3376252949, 0.5024011731, 0.2975312173, -0.1018836722, -0.0988903865, 0.4604573846, 0.1362500489, -0.0360762812, -0.3573496044, 0.4440053105, -0.0385404676, 0.164326027, 0.2139500678, -0.1646823883, 0.3277752101, 0.1552810669, -0.6544133425, -0.1415667385, 0.0145597011, -0.1600481719, 0.0175977312, -0.0360002667, -0.6513867378, -0.2358174622, 0.5664858818, -0.146679163, 0.1615259647, -0.0736141428, -0.3359392583, 0.0786063224, 0.2073835135, 0.2439175546, 0.5239239931, 0.2860293686, 0.2210253477, 0.0833529606, -0.1684781313, -0.338260144, 0.1921919435, 0.1482739896, 0.00641939, 0.1232168674, 0.0039847023, 0.051301226, -0.5734071732, -0.065483354, -0.0676366612, -0.0249951519, -0.3253073394, -0.0019202511, -0.1464581043, -0.1565924287, -0.3758757412, -0.3173004389, -0.2045225799, -0.3535438776, 0.0600941591, 0.4066990614, -0.3574150801, 0.1820972711, 0.0108160758, 0.0417948216, -0.1494999677, -0.3323452175, -0.3616428375, -0.0899485871, 0.0060113417, 0.0653042942, -0.026735656, -0.1624452621, 0.3940884471, -0.2592199147, -0.1686006486, -0.150945574, -0.4553830624, 0.1833592504, -0.2325518131, -0.1021049097, 0.1635893583, 0.367336452, 0.4110056162, -0.3287940919, 0.2939399481, -0.2167084664, -0.1160314754, 0.3017259836, 0.0567395128, 0.1071310863, -0.2175083756, -0.3035911024, -0.0908852294, -0.4036375284, 0.1903249472, -0.1907987595, -0.0125002302, 0.3122234046, 0.0654908121, 0.0617478825, -0.1447430104, 0.3119391799, -0.2076836377, -0.2048689723, 0.3407563269, -0.0919234902, -0.2838459313, 0.1660423577, 0.0524720289, 0.1205388978, 0.1091189906, -0.3190399408, -0.2355267406, -0.2528864741, 0.0394023098, 0.1928676814, 0.0237989035, 0.3759889007, -0.0302170999, -0.1088921875, -0.1131593287, 0.0867637247, -0.1315189302, 0.1397636235, 0.2134163827, -0.0108423084, 0.5859724283, -0.0533884093, 0.4006888866, 0.31697914, -0.2010908276, 0.2741606534, -0.1745303422, 0.4091814756, -0.1664255857, -0.0006149372, -0.0377877317, -0.0753731653, -0.0895138681, 0.1901461333, -0.1653330773, 0.0190976914, -0.3114671111, 0.096178405, -0.1452521533, -0.3198008239, 0.2627969086, -0.026964359, 0.0551291667, 0.0863255784, 0.2851498127, 0.0542286225, -0.0513353981, 0.0411653034, 0.489094764, 0.1025090069, -0.0280274153, -0.263697207, -0.2460068166, -0.4695878029, 0.3148722351, -0.0490970798, 0.3503622413, 0.0651185885, -0.4260374308, -0.0159083903, 0.0937433317, 0.434289068, -0.3583112657, -0.2772247791, -0.1155505553, -0.0329443887, -0.3411925137, -0.0979741588, -0.3802847564, -0.3190301955, 0.2364165336, 0.5333906412, -0.5822122693, -0.1075643674, 0.1191753969, 0.0738802776, -0.0872739851, -0.127147913, -0.4807388186, -0.2610101104, -0.2022316754, -0.1308677047, 0.1818118393, -0.0462726913, -0.3075703979, -0.1120259389, -0.1735924929, -0.0211739168, 0.2911087573, 0.3951566815, 0.1578520536, 0.1387497783, 0.2208425999, 0.2159508467, 0.3828954697, 0.144794628, 0.5660657287, 0.1114506647, -0.3517262638, 0.1162845716, 0.1571144462, 0.0805201605, 0.3791173398, 0.0312174223, 0.2891604602, 0.2775416672, 0.1426755488, -0.2860039473, -0.0554279126, 0.3674897254, 0.0694547296, -0.1388221383, -0.5979173779, 0.5162523985, 0.1717406958, -0.0466298498, 0.0150550948, 0.3037768602, -0.2365257442, 0.2859087884, -0.2040506452, 0.9026901722, 0.087590158, 0.1404484212, 0.4893167913, -0.4069541693, 0.7213938236, -0.0927630663, 0.1666643769, -0.0672471821, -0.3143199384, -0.1512944847, -0.1148590222, 0.379049927, -0.0745246634, -0.3362894058, 0.3591884971, 0.0315018967, 0.6113638878, -0.2278964967, 0.2320795506, -0.4362094402, -0.2614349723, -0.6539148688, 0.0554214828, -0.0761125535, 0.3140808642, 0.0843001753, -0.1269877553, -0.0082036927, -0.3498033881, -0.1740331352, -0.1387301832, -0.0383463949, -0.1131673604, 0.0679850355, -0.2226024866, -0.115171209, 0.3143187165, 0.0679780766, -0.0398619622, -0.1966707259, 0.1525638998, 0.0101863071, 0.2089302987, -0.1357862651, 0.0468093306, 0.370680958, -0.002237062, -0.0902483538, 0.3943108618, -0.1527838111, 0.0163232181, -0.0014415437, -0.1603221744, -0.1519681215, -0.4063061178, -0.055234611, 0.0920909047, -0.119321093, -0.136826992, 0.1016571969, -0.238429293, -0.153039366, 0.067191653, 0.090581961, -0.1448621303, -0.3411245644, 0.4563942552, 0.2507188022, 0.1464789808, 0.2952145338, -0.1748744249, -0.1540120095, -0.0602969043, 0.1094326004, 0.1343138367, -0.4541080594, 0.0728219971, 0.0628052428, -0.2514865994, 0.012576581, 0.2976653874, 0.2685717642, 0.0280487258, -0.1777764708, -0.0537755266, -0.2951525748, 0.4979005754, 0.2893076241, 0.2742886245, -0.0723255798, 0.4355572164, -0.1140001789, -0.0774171948, -0.346129477, -0.3680054545, -0.0611386262, 0.1782049388, 0.0497732162, 0.0365691669, 0.4025678337, -0.1458138674, 0.1669481397, 0.1413114071, -0.2437608093, -0.1226536483, -0.1804670095, 0.1364136636, 0.0575269386, 0.0907932967, -0.2685047686, -0.0758732706, -0.0782820806, -0.14509812, 0.3118931651, 0.1062910408, 0.0381329693, 0.2045553476, 0.2640655637, 0.1907912046, -0.1999090761, -0.043829184, -0.1319281608, 0.0847881436, -0.1101358309, -0.0114014391, -0.2269700766, 0.0082651544, -0.0366171412, 0.1251410991, 0.1538898945, 0.0216772184, 0.3070740104, -0.1086299792, 0.061021369, -0.0714394823, 0.4295355976, 0.3699124753, -0.0901897624, -0.2140524387, 0.0918524414, 0.1999915242, -0.3733716011, 0.0508477241, -0.1250675321, 0.113190487, 0.3582048118, 0.2876483798, 0.0487552583, 0.132991448, 0.0978495255, 0.0628919899, 0.3978276849, -0.0134861236, 0.2455773056, 0.5704296231, 0.0571113303, 0.1901365072, 0.1514621824, 0.1488543898, 0.1231480911, -0.0311046503, -0.1820510328, 0.2360818088, -0.1764640212, 0.1002203599, 0.042590104, -0.1828163862, -0.1234025285, 0.091428645, -0.226385206, 0.3278390467, 0.1523817927, -0.0899896547, -0.3124871254, -0.0309383608, -0.311311841, 0.0509592146, -0.0906570256, -0.1721208096, -0.1137144566, -0.0592617765, -0.0203590356, -0.1766559482, 0.0994337946, 0.0772009715, 0.1429615468, -0.0387549177, 0.2040123045, -0.1332784742, -0.1690593958, -0.071159929, 0.2730267346, -0.1961426884, 0.1300712228, 0.4706209302, -0.0636796951, 0.3359194398, 0.3078470528, 0.2760061324, -0.0466652438, 0.1870509535, 0.31563434, 0.1526606828, -0.1599320918, 0.1073973775, 0.2416564077, 0.2328076512, -0.0232717358, 0.1744422913, 0.2079451531, -0.173934415, 0.258926928, -0.3652602136, 0.1499972045, -0.3747833967, 0.5243386626, -0.3648513258, -0.02006354, -0.1274615973, -0.1654708534, -0.4627860188, 0.1439207047, 0.055047214, -0.088983044, 0.0765476376, 0.0608973242, 0.0866228566, 0.1227389425, 0.4806241393, 0.1830029488, -0.0524419583, -0.0415914133, -0.0372664221, -0.6099478006, -0.0699093416, -0.1726517826, -0.0131761497, 0.0015534799, 0.3295271397, 0.3137437403, 0.2407233715, -0.1678200513, -0.1189002916, -0.3985102773, 0.0869613513, -0.0740462169, -0.4374173582, -0.2521647811, -0.0300352201, -0.0060430202, -0.2074448019, 0.2399600148, 0.0839194357, 0.0806174129, -0.1016538367, 0.4040336013, 0.1867163777, -0.0346106067, 0.0446644574, 0.1250152141, 0.4406256676, -0.158861801, -0.2809404135, 0.130853951, -0.235110417, -0.4384847283, 0.1630916595, -0.1264621019, 0.5937957168, 0.0450039804, -0.1747074127, -0.154863745, 0.2616616786, 0.1540382206, -0.4677974284, -0.3739714921, 0.2986098528, -0.1926801652, 0.063538827, 0.1001137868, 0.4075798392, -0.0118154967, 0.1154287532, -0.1080917045, -0.482940197, 0.7514464259, -0.5142798424, 0.0158314332, -0.1145111248, 0.1169675589, 0.1798192561, 0.1112682819, -0.7178941965, 0.2447383851, 0.213083908, -0.2462987751, -0.0239064209, 0.1743945032, 0.1666535139, -0.1254316419, -0.1511010081, 0.1054785028, 0.1110933349, -0.4117189646, -0.0021910199, -0.2013136297 ]