html_url
stringlengths
48
51
title
stringlengths
5
280
comments
stringlengths
63
51.8k
body
stringlengths
0
36.2k
comment_length
int64
16
1.52k
text
stringlengths
159
54.1k
embeddings
listlengths
768
768
https://github.com/huggingface/datasets/issues/2005
Setting to torch format not working with torchvision and MNIST
Hi @lhoestq # Using Array3D I tried this: ```python features = datasets.Features({ "image": datasets.Array3D(shape=(1,28,28),dtype="float32"), "label": datasets.features.ClassLabel(names=["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]), }) train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000) ``` and it didn't fix the issue. During the `prepare_train_features: ``` Image: <class 'list'> 10000 <class 'torch.Tensor'> 1 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> Label: <class 'list'> 10000 <class 'torch.Tensor'> ``` After the `map`: ``` Image: <class 'list'> 60000 <class 'list'> 1 <class 'list'> 28 <class 'list'> 28 <class 'float'> Label: <class 'list'> 60000 <class 'int'> ``` From the DataLoader batch: ``` Image: <class 'list'> 1 <class 'list'> 28 <class 'list'> 28 <class 'torch.Tensor'> 2 <class 'torch.Tensor'> Label: <class 'torch.Tensor'> 2 <class 'torch.Tensor'> ``` It is the same as before. --- Using `datasets.Sequence(datasets.Array2D(shape=(28,28),dtype="float32"))` gave an error during `map`: ```python ArrowNotImplementedError Traceback (most recent call last) <ipython-input-95-d28e69289084> in <module>() 3 "label": datasets.features.ClassLabel(names=["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]), 4 }) ----> 5 train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000) 15 frames /usr/local/lib/python3.7/dist-packages/datasets/dataset_dict.py in map(self, function, with_indices, input_columns, batched, batch_size, remove_columns, keep_in_memory, load_from_cache_file, cache_file_names, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc) 446 num_proc=num_proc, 447 ) --> 448 for k, dataset in self.items() 449 } 450 ) /usr/local/lib/python3.7/dist-packages/datasets/dataset_dict.py in <dictcomp>(.0) 446 num_proc=num_proc, 447 ) --> 448 for k, dataset in self.items() 449 } 450 ) /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint) 1307 fn_kwargs=fn_kwargs, 1308 new_fingerprint=new_fingerprint, -> 1309 update_data=update_data, 1310 ) 1311 else: /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 202 } 203 # apply actual function --> 204 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 205 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 206 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 335 # Call actual function 336 --> 337 out = func(self, *args, **kwargs) 338 339 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, update_data) 1580 if update_data: 1581 batch = cast_to_python_objects(batch) -> 1582 writer.write_batch(batch) 1583 if update_data: 1584 writer.finalize() # close_stream=bool(buf_writer is None)) # We only close if we are writing in a file /usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py in write_batch(self, batch_examples, writer_batch_size) 274 typed_sequence = TypedSequence(batch_examples[col], type=col_type, try_type=col_try_type) 275 typed_sequence_examples[col] = typed_sequence --> 276 pa_table = pa.Table.from_pydict(typed_sequence_examples) 277 self.write_table(pa_table, writer_batch_size) 278 /usr/local/lib/python3.7/dist-packages/pyarrow/table.pxi in pyarrow.lib.Table.from_pydict() /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib.asarray() /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib.array() /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib._handle_arrow_array_protocol() /usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py in __arrow_array__(self, type) 95 out = pa.ExtensionArray.from_storage(type, pa.array(self.data, type.storage_dtype)) 96 else: ---> 97 out = pa.array(self.data, type=type) 98 if trying_type and out[0].as_py() != self.data[0]: 99 raise TypeError( /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib.array() /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array() /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: extension ```
Hi I am trying to use `torchvision.transforms` to handle the transformation of the image data in the `mnist` dataset. Assume I have a `transform` variable which contains the `torchvision.transforms` object. A snippet of what I am trying to do: ```python def prepare_features(examples): images = [] labels = [] for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform( np.array(examples["image"][example_idx], dtype=np.uint8) )) else: images.append(torch.tensor(np.array(examples["image"][example_idx], dtype=np.uint8))) labels.append(torch.tensor(examples["label"][example_idx])) output = {"label":labels, "image":images} return output raw_dataset = load_dataset('mnist') train_dataset = raw_dataset.map(prepare_features, batched=True, batch_size=10000) train_dataset.set_format("torch",columns=["image","label"]) ``` After this, I check the type of the following: ```python print(type(train_dataset["train"]["label"])) print(type(train_dataset["train"]["image"][0])) ``` This leads to the following output: ```python <class 'torch.Tensor'> <class 'list'> ``` I use `torch.utils.DataLoader` for batches, the type of `batch["train"]["image"]` is also `<class 'list'>`. I don't understand why only the `label` is converted to a torch tensor, why does the image not get converted? How can I fix this issue? Thanks, Gunjan EDIT: I just checked the shapes, and the types, `batch[image]` is a actually a list of list of tensors. Shape is (1,28,2,28), where `batch_size` is 2. I don't understand why this is happening. Ideally it should be a tensor of shape (2,1,28,28). EDIT 2: Inside `prepare_train_features`, the shape of `images[0]` is `torch.Size([1,28,28])`, the conversion is working. However, the output of the `map` is a list of list of list of list.
447
Setting to torch format not working with torchvision and MNIST Hi I am trying to use `torchvision.transforms` to handle the transformation of the image data in the `mnist` dataset. Assume I have a `transform` variable which contains the `torchvision.transforms` object. A snippet of what I am trying to do: ```python def prepare_features(examples): images = [] labels = [] for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform( np.array(examples["image"][example_idx], dtype=np.uint8) )) else: images.append(torch.tensor(np.array(examples["image"][example_idx], dtype=np.uint8))) labels.append(torch.tensor(examples["label"][example_idx])) output = {"label":labels, "image":images} return output raw_dataset = load_dataset('mnist') train_dataset = raw_dataset.map(prepare_features, batched=True, batch_size=10000) train_dataset.set_format("torch",columns=["image","label"]) ``` After this, I check the type of the following: ```python print(type(train_dataset["train"]["label"])) print(type(train_dataset["train"]["image"][0])) ``` This leads to the following output: ```python <class 'torch.Tensor'> <class 'list'> ``` I use `torch.utils.DataLoader` for batches, the type of `batch["train"]["image"]` is also `<class 'list'>`. I don't understand why only the `label` is converted to a torch tensor, why does the image not get converted? How can I fix this issue? Thanks, Gunjan EDIT: I just checked the shapes, and the types, `batch[image]` is a actually a list of list of tensors. Shape is (1,28,2,28), where `batch_size` is 2. I don't understand why this is happening. Ideally it should be a tensor of shape (2,1,28,28). EDIT 2: Inside `prepare_train_features`, the shape of `images[0]` is `torch.Size([1,28,28])`, the conversion is working. However, the output of the `map` is a list of list of list of list. Hi @lhoestq # Using Array3D I tried this: ```python features = datasets.Features({ "image": datasets.Array3D(shape=(1,28,28),dtype="float32"), "label": datasets.features.ClassLabel(names=["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]), }) train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000) ``` and it didn't fix the issue. During the `prepare_train_features: ``` Image: <class 'list'> 10000 <class 'torch.Tensor'> 1 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> Label: <class 'list'> 10000 <class 'torch.Tensor'> ``` After the `map`: ``` Image: <class 'list'> 60000 <class 'list'> 1 <class 'list'> 28 <class 'list'> 28 <class 'float'> Label: <class 'list'> 60000 <class 'int'> ``` From the DataLoader batch: ``` Image: <class 'list'> 1 <class 'list'> 28 <class 'list'> 28 <class 'torch.Tensor'> 2 <class 'torch.Tensor'> Label: <class 'torch.Tensor'> 2 <class 'torch.Tensor'> ``` It is the same as before. --- Using `datasets.Sequence(datasets.Array2D(shape=(28,28),dtype="float32"))` gave an error during `map`: ```python ArrowNotImplementedError Traceback (most recent call last) <ipython-input-95-d28e69289084> in <module>() 3 "label": datasets.features.ClassLabel(names=["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]), 4 }) ----> 5 train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000) 15 frames /usr/local/lib/python3.7/dist-packages/datasets/dataset_dict.py in map(self, function, with_indices, input_columns, batched, batch_size, remove_columns, keep_in_memory, load_from_cache_file, cache_file_names, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc) 446 num_proc=num_proc, 447 ) --> 448 for k, dataset in self.items() 449 } 450 ) /usr/local/lib/python3.7/dist-packages/datasets/dataset_dict.py in <dictcomp>(.0) 446 num_proc=num_proc, 447 ) --> 448 for k, dataset in self.items() 449 } 450 ) /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint) 1307 fn_kwargs=fn_kwargs, 1308 new_fingerprint=new_fingerprint, -> 1309 update_data=update_data, 1310 ) 1311 else: /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 202 } 203 # apply actual function --> 204 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 205 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 206 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 335 # Call actual function 336 --> 337 out = func(self, *args, **kwargs) 338 339 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, update_data) 1580 if update_data: 1581 batch = cast_to_python_objects(batch) -> 1582 writer.write_batch(batch) 1583 if update_data: 1584 writer.finalize() # close_stream=bool(buf_writer is None)) # We only close if we are writing in a file /usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py in write_batch(self, batch_examples, writer_batch_size) 274 typed_sequence = TypedSequence(batch_examples[col], type=col_type, try_type=col_try_type) 275 typed_sequence_examples[col] = typed_sequence --> 276 pa_table = pa.Table.from_pydict(typed_sequence_examples) 277 self.write_table(pa_table, writer_batch_size) 278 /usr/local/lib/python3.7/dist-packages/pyarrow/table.pxi in pyarrow.lib.Table.from_pydict() /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib.asarray() /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib.array() /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib._handle_arrow_array_protocol() /usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py in __arrow_array__(self, type) 95 out = pa.ExtensionArray.from_storage(type, pa.array(self.data, type.storage_dtype)) 96 else: ---> 97 out = pa.array(self.data, type=type) 98 if trying_type and out[0].as_py() != self.data[0]: 99 raise TypeError( /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib.array() /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array() /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: extension ```
[ -0.12737540900707245, -0.3511652648448944, -0.01793275587260723, 0.35360872745513916, 0.4760025143623352, 0.08871380239725113, 0.733028769493103, 0.3804348111152649, 0.06552515923976898, -0.038042545318603516, -0.11115357279777527, 0.38195115327835083, -0.23296885192394257, -0.3339342772960663, 0.03510889783501625, -0.5614942312240601, 0.2225799858570099, -0.09982740879058838, -0.28079813718795776, -0.06134728714823723, -0.2431335300207138, 0.03548943251371384, -0.2184973657131195, -0.10849666595458984, -0.5479357838630676, 0.04409640282392502, -0.019555658102035522, -0.07656855136156082, -0.06229933351278305, -0.13918034732341766, 0.12234671413898468, -0.17449648678302765, 0.4444531500339508, 0.7012937068939209, -0.00012770108878612518, 0.07030172646045685, 0.3642725944519043, -0.1737782508134842, 0.049999114125967026, -0.16101329028606415, 0.040047310292720795, -0.2573830187320709, 0.07277627289295197, -0.09468314796686172, -0.22349423170089722, -0.17084546387195587, 0.09591015428304672, -0.17902977764606476, -0.028142273426055908, 0.4191693067550659, 0.0771300345659256, 0.2790106534957886, 0.2466610223054886, 0.1386307328939438, 0.2278119921684265, 0.5182861089706421, -0.27343839406967163, -0.05611692741513252, 0.22615043818950653, 0.3754779100418091, 0.12400421500205994, 0.5647351741790771, -0.2913343906402588, -0.03623348847031593, 0.26694485545158386, 0.12900540232658386, -0.10145575553178787, -0.3140054941177368, 0.049157410860061646, 0.08946321904659271, 0.42194443941116333, -0.14943954348564148, -0.08077897131443024, -0.14366409182548523, -0.14397819340229034, -0.12738050520420074, 0.040591202676296234, 0.2803192734718323, -0.07184071838855743, -0.1872383952140808, -0.5392425656318665, 0.3052915334701538, -0.14862358570098877, 0.2131594568490982, -0.2805245518684387, -0.0034207403659820557, -0.13816343247890472, 0.29280853271484375, -0.047119248658418655, -0.11271293461322784, 0.19308120012283325, -0.12341457605361938, 0.13007575273513794, -0.009825735352933407, -0.14363141357898712, -0.0534907765686512, -0.38959887623786926, -0.31501248478889465, -0.20014813542366028, -0.160264790058136, 0.16648587584495544, 0.1392759084701538, -0.11639561504125595, 0.12807080149650574, 0.1826329529285431, 0.26803353428840637, 0.1057826429605484, 0.32070228457450867, -0.08589236438274384, -0.2895815670490265, -0.0469193272292614, 0.08773323893547058, -0.29622676968574524, -0.4357527196407318, 0.15453419089317322, 0.32529640197753906, 0.24522115290164948, 0.06874248385429382, 0.12985558807849884, -0.32394126057624817, -0.10892283916473389, -0.009586316533386707, 0.07522494345903397, 0.2850382626056671, -0.11867916584014893, 0.24390509724617004, 0.48048293590545654, 0.39720290899276733, -0.15381847321987152, 0.06956236064434052, 0.025072410702705383, 0.03152093663811684, -0.4404953420162201, -0.285698801279068, 0.1534099280834198, -0.1177731603384018, 0.10007032006978989, 0.03743180260062218, 0.04641563445329666, 0.10069668292999268, 0.07349640876054764, -0.18586979806423187, 0.6246296763420105, 0.14764724671840668, -0.19447419047355652, 0.2767925560474396, 0.2709067165851593, 0.5297806262969971, -0.3042983114719391, 0.2565314769744873, -0.5095702409744263, 0.06525279581546783, -0.023091500625014305, -0.014543850906193256, 0.21865473687648773, -0.020722128450870514, -0.21216225624084473, 0.015829091891646385, 0.5923119783401489, -0.08367820084095001, 0.27348780632019043, -0.5791621804237366, 0.09496405720710754, -0.1913350522518158, 0.034152500331401825, 0.06366966664791107, -0.20471526682376862, -0.05235854536294937, 0.38634371757507324, 0.09194983541965485, 0.3154589533805847, 0.16028177738189697, 0.05108363553881645, 0.07987017929553986, -0.22535288333892822, -0.2350507378578186, 0.336323618888855, -0.37685659527778625, 0.092038094997406, -0.017693186178803444, 0.09387907385826111, -0.06380392611026764, 0.11201898753643036, 0.3361778259277344, 0.0326007679104805, -0.12800128757953644, 0.02944871410727501, 0.1963149607181549, -0.16618242859840393, 0.1402871161699295, 0.07735966145992279, 0.19130311906337738, 0.19337497651576996, 0.03500647470355034, -0.015683721750974655, 0.2076537311077118, -0.22167158126831055, 0.17757640779018402, -0.054280370473861694, -0.07471343874931335, 0.07117719203233719, 0.04037807881832123, -0.36989057064056396, -0.012196704745292664, -0.047469694167375565, 0.18646693229675293, -0.2331002950668335, -0.048721496015787125, 0.023635171353816986, 0.08221714198589325, 0.05827927961945534, 0.04792488366365433, 0.00497826375067234, -0.19195683300495148, -0.18220587074756622, -0.13902710378170013, -0.0032417885959148407, 0.0922105610370636, -0.20947688817977905, -0.2617241144180298, -0.05234343558549881, -0.1232488825917244, 0.17830383777618408, 0.058838095515966415, -0.35903647541999817, 0.05102594196796417, 0.019273651763796806, -0.3653304874897003, -0.20136012136936188, 0.17339247465133667, 0.2676691710948944, -0.09962134063243866, -0.04223459213972092, 0.19160327315330505, 0.06328880041837692, 0.11463357508182526, -0.5482739806175232, 0.08346603065729141, 0.17784196138381958, -0.24697014689445496, 0.2043914645910263, 0.2162795215845108, 0.14853382110595703, -0.27550339698791504, -0.19603440165519714, 0.43878644704818726, 0.16041074693202972, 0.3159129023551941, -0.33002549409866333, 0.11610180884599686, -0.07264680415391922, -0.03940185531973839, -0.19063392281532288, -0.040807515382766724, -0.2772817313671112, 0.0730239748954773, -0.13185951113700867, 0.012982203625142574, -0.4569188952445984, -0.04493575543165207, 0.2962619960308075, 0.08876402676105499, 0.1758728325366974, -0.0012162551283836365, -0.3998463451862335, 0.21331259608268738, 0.17712706327438354, -0.6013532876968384, 0.29783856868743896, -0.004361569881439209, 0.1892075538635254, -0.10501866787672043, 0.09558327496051788, -0.16254311800003052, 0.2484443485736847, 0.1140424907207489, 0.09074831008911133, -0.19946491718292236, 0.14185220003128052, -0.10792585462331772, 0.02684575319290161, 0.026369977742433548, -0.1406286656856537, -0.2336929440498352, -0.35895073413848877, 0.2713826298713684, -0.16618333756923676, -0.13451848924160004, -0.40185457468032837, -0.2621854841709137, 0.03605656698346138, -0.0740048810839653, -0.08233382552862167, 0.1507582813501358, 0.18556755781173706, 0.19043487310409546, 0.2634176015853882, -0.18189401924610138, 0.37431591749191284, -0.4130295217037201, -0.035354651510715485, -0.07500942051410675, -0.28679606318473816, -0.09916479885578156, 0.0896558165550232, -0.5234109163284302, 0.09148447960615158, -0.2289901077747345, -0.09319087862968445, -0.25017622113227844, 0.013548292219638824, 0.14182262122631073, -0.2678501009941101, -0.28500327467918396, 0.3085911273956299, 0.19392819702625275, -0.1424819529056549, 0.04066236689686775, 0.26635080575942993, 0.01030721329152584, 0.04690108448266983, 0.1537836343050003, -0.08962015807628632, 0.1165606677532196, -0.06329842656850815, -0.1767411231994629, -0.09661835432052612, -0.07506111264228821, -0.07041659951210022, -0.021759849041700363, 0.06337703764438629, 0.346258282661438, 0.3721838891506195, -0.08989016711711884, -0.05204236879944801, 0.03560919314622879, 0.06296464800834656, -0.3976878225803375, 0.5225034356117249, -0.2261539101600647, -0.36082619428634644, 0.11920170485973358, 0.023855838924646378, 0.06514731049537659, 0.4862689971923828, 0.060522645711898804, 0.049731601029634476, 0.011782122775912285, -0.07894501090049744, 0.25259286165237427, 0.22119691967964172, 0.35102030634880066, -0.09112472832202911, 0.019165800884366035, -0.1647072732448578, 0.015416599810123444, -0.10187137871980667, -0.06325531750917435, 0.6088865995407104, 0.18508407473564148, 0.23994258046150208, 0.09925894439220428, 0.6996648907661438, -0.06113751605153084, -0.7380957007408142, 0.21680673956871033, -0.24250978231430054, 0.19216693937778473, -0.11812164634466171, -0.3539585471153259, 0.39885619282722473, -0.20942005515098572, 0.06437406688928604, -0.08596731722354889, -0.024906877428293228, -0.23915784060955048, -0.09022422134876251, 0.35736149549484253, -0.3172067105770111, -0.15857422351837158, 0.40442991256713867, -0.14470255374908447, 0.2763724625110626, -0.23134246468544006, 0.3245895802974701, -0.2609265446662903, -0.21379289031028748, 0.06005708500742912, 0.44877195358276367, 0.1385136991739273, 0.04172488674521446, -0.334284245967865, -0.2166968435049057, -0.14322680234909058, 0.3568275272846222, 0.11957734078168869, 0.5672699213027954, -0.09803614765405655, -0.07446521520614624, 0.10155647993087769, 0.2413695752620697, 0.830759584903717, 0.04555724561214447, -0.0904589593410492, 0.15144222974777222, -0.3478350341320038, -0.45497822761535645, -0.10222916305065155, -0.05141806602478027, 0.09068089723587036, 0.17169034481048584, 0.1203862875699997, -0.09105332940816879, -0.18333402276039124, -0.005832638591527939, 0.19555465877056122, -0.05512464419007301, 0.034718938171863556, -0.22691111266613007, 0.05875767022371292, -0.12964943051338196, -0.15528327226638794, 0.22118239104747772, 0.02967519871890545, 0.005161826033145189, -0.30812811851501465, -0.32623055577278137, -0.12669971585273743, 0.18248197436332703, -0.1330120861530304, 0.41106683015823364, 0.09925103932619095, -0.17808546125888824, 0.07690712064504623, 0.5561056137084961, 0.4184049367904663, -0.03893890976905823, -0.1187732070684433, 0.08064393699169159, 0.29311060905456543, 0.10643263161182404, 0.30020424723625183, 0.3208248019218445, -0.06187279149889946, -0.43966424465179443, -0.22684860229492188, -0.19381509721279144, -0.3305324614048004, 0.3972930312156677, 0.4080626964569092, 0.09893538802862167, -0.4953550696372986, -0.49217066168785095, 0.3861902058124542, 0.2937195599079132, 0.19583018124103546, 0.20459191501140594, -0.5417593121528625, -0.40096738934516907, 0.07817859202623367, 0.46624186635017395, 0.8556233048439026, -0.037078700959682465, 0.370282918214798, 0.03156561776995659, 0.010806940495967865, 0.17210185527801514, -0.0018886998295783997, 0.41179436445236206, -0.3542814254760742, 0.1392894983291626, -0.164854034781456, -0.31255003809928894, 0.2525230050086975, -0.060203246772289276, -0.24396952986717224, 0.04253619536757469, -0.3494715094566345, 0.1936202496290207, -0.12569347023963928, -0.08285336196422577, -0.04982651770114899, -0.471418172121048, 0.18787403404712677, 0.015452079474925995, -0.08251337707042694, 0.26173895597457886, 0.11116153001785278, -0.16362066566944122, -0.37986040115356445, 0.06169593334197998, -0.07622233778238297, -0.015011643059551716, -0.24596907198429108, -0.16324345767498016, -0.024310410022735596, -0.7298658490180969, 0.05867994949221611, 0.4961579442024231, 0.33455443382263184, -0.16056637465953827, -0.0478365495800972, 0.1396413892507553, 0.44384750723838806, 0.1629004031419754, -0.09901697933673859, -0.34018465876579285, 0.2853407561779022, 0.09737569838762283, 0.18433207273483276, 0.10863815248012543, 0.06814876198768616, 0.21052046120166779, -0.5777894258499146, 0.03725104779005051, 0.30602920055389404, -0.3449508249759674, -0.3229842185974121, -0.19845017790794373, 0.049185048788785934, 0.03816347196698189, 0.028618566691875458, 0.1244892105460167, -0.03890316188335419, 0.20724302530288696, -0.04151230677962303, -0.22646169364452362, 0.13288995623588562, 0.45233139395713806, 0.11298388987779617, -0.35004642605781555, 0.39075639843940735, 0.3549591898918152, -0.044777899980545044, -0.043743960559368134, 0.41669389605522156, 0.6353195905685425, -0.34569674730300903, 0.09949740022420883, -0.10271698236465454, -0.15698707103729248, -0.011073713190853596, 0.5430936217308044, -0.23431716859340668, -0.1309782862663269, -0.23895759880542755, -0.04081706702709198, -0.4308939278125763, 0.01081337034702301, -0.31629857420921326, 0.456630140542984, -0.043222058564424515, 0.3627100884914398, 0.21050570905208588, -0.18734970688819885, -0.14413586258888245, -0.25864869356155396, 0.1723509579896927, 0.3679336607456207, -0.2471824586391449, 0.21876117587089539, -0.12695860862731934, -0.12202289700508118, -0.03625227138400078, 0.026031551882624626, -0.24973976612091064, -0.03339078649878502, -0.057677969336509705, 0.17730601131916046, 0.06661458313465118, -0.11354019492864609, -0.07354690879583359, -0.17366977035999298, -0.13858114182949066, -0.2681717276573181, -0.03771784156560898, 0.11092103272676468, -0.11599935591220856, 0.353161096572876, -0.17836599051952362, 0.23122572898864746, 0.31867676973342896, -0.2700003981590271, -0.10262273252010345, 0.03587159514427185, 0.2229631096124649, 0.060050882399082184, 0.00453167175874114, -0.06155644357204437, -0.2772364318370819, 0.1125919371843338, 0.16520316898822784, 0.25497522950172424, 0.20461755990982056, -0.09999659657478333, 0.10917837917804718, -0.04380689561367035, 0.20418445765972137, 0.10125526785850525, -0.1718703657388687, -0.050829093903303146, 0.060372814536094666, -0.007623609155416489, 0.1006220281124115, 0.14499907195568085, 0.03886927291750908, 0.12528149783611298, -0.08346407115459442, 0.27557802200317383, 0.06655879318714142, 0.3113946318626404, -0.37050777673721313, 0.04514180123806, 0.41785678267478943, -0.24107296764850616, 0.23508626222610474, 0.4640146791934967, 0.014799613505601883, 0.193049818277359, 0.29070472717285156, 0.10934381186962128, -0.1187017634510994, 0.3226965069770813, 0.39451703429222107, 0.8204308152198792, 0.5895953178405762, 0.08376968652009964, 0.2746028006076813, 0.09925709664821625, -0.15360766649246216, -0.2072514295578003, 0.23582398891448975, 0.39196842908859253, 0.018866688013076782, 0.18569323420524597, -0.24079908430576324, -0.48712393641471863, 0.2258823812007904, 0.1217745840549469, -0.19461801648139954, -0.08222351968288422, -0.6648061275482178, 0.011875316500663757, 0.13582652807235718, -0.18665997684001923, -0.17971526086330414, -0.05013806372880936, 0.220590740442276, 0.2597532272338867, -0.10321985185146332, -0.16091258823871613, -0.1724744439125061, 0.06910110265016556, 0.03752904757857323, -0.007329706102609634, 0.16975747048854828, -0.13684643805027008, 0.16176097095012665, 0.24482446908950806, 0.1969081163406372, 0.284953236579895, 0.4870796799659729, -0.16817118227481842, -0.15989406406879425, -0.010553201660513878, -0.19236597418785095, 0.08990161120891571, 0.06671234220266342, 0.03153381496667862, -0.1532079577445984, -0.014956234022974968, 0.008462533354759216, 0.03862767294049263, 0.03146062046289444, -0.09408107399940491, -0.21825940907001495, 0.1676250398159027, 0.30557453632354736, -0.36377719044685364, -0.1490928828716278, -0.09989863634109497, -0.24665629863739014, -0.3483099639415741, -0.26553475856781006, 0.5327389240264893, 0.027895595878362656, 0.12800973653793335, 0.14216776192188263, -0.04215959459543228, 0.048786040395498276, 0.1574120819568634, -0.12155681848526001, 0.0775766521692276, -0.1540934443473816, 0.13596616685390472, -0.08580520749092102, 0.03191046416759491, 0.11847475171089172, -0.38344821333885193, -0.018849391490221024, -0.03916454687714577, 0.24254250526428223, 0.06467486172914505, 0.2020900845527649, -0.09834717214107513, 0.4987447261810303, 0.6146568059921265, -0.13361555337905884, -0.1414809226989746, -0.13041925430297852, 0.37065088748931885, 0.07330819964408875, -0.07746567577123642, 0.021921303123235703, 0.10242748260498047, 0.006507012993097305, -0.34206485748291016, -0.2554904520511627, -0.01998257078230381, 0.30414512753486633, 0.35128262639045715, 0.09328848868608475, 0.3203134536743164, -0.019220542162656784, 0.048409707844257355, -0.2411344051361084, 0.0504152774810791, -0.12760111689567566, 0.009670205414295197, -0.022803064435720444, 0.5810165405273438, -0.22440199553966522, -0.059342700988054276, -0.41364988684654236, 0.4290262460708618, 0.09053143858909607, -0.33885523676872253, -0.08051943778991699, 0.35840025544166565, -0.31732094287872314, -0.2010883092880249, 0.22619517147541046, 0.4100218713283539, 0.15135975182056427, 0.19435712695121765, -0.5254404544830322, -0.4069116413593292, 0.4472021460533142, -0.441707968711853, -0.5069120526313782, 0.02907465398311615, -0.3133937418460846, 0.06790400296449661, 0.49642300605773926, -0.471049964427948, -0.14913369715213776, 0.0015052962116897106, -0.08082769066095352, -0.09160427749156952, -0.09819349646568298, 0.2610398828983307, 0.015110637992620468, -0.25184643268585205, 0.17900733649730682, 0.1764504313468933, -0.022816140204668045, -0.42041611671447754, -0.27535998821258545 ]
https://github.com/huggingface/datasets/issues/2005
Setting to torch format not working with torchvision and MNIST
# Convert raw tensors to torch format Strangely, converting to torch tensors works perfectly on `raw_dataset`: ```python raw_dataset.set_format('torch',columns=['image','label']) ``` Types: ``` Image: <class 'torch.Tensor'> 60000 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> Label: <class 'torch.Tensor'> 60000 <class 'torch.Tensor'> ``` Using this for transforms: ```python def prepare_features(examples): images = [] labels = [] for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform( examples["image"][example_idx].numpy() )) else: images.append(examples["image"][example_idx].numpy()) labels.append(examples["label"][example_idx]) output = {"label":labels, "image":images} return output ``` Inside `prepare_train_features`: ``` Image: <class 'list'> 10000 <class 'torch.Tensor'> 1 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> Label: <class 'list'> 10000 <class 'torch.Tensor'> ``` After `map`: ``` Image: <class 'list'> 60000 <class 'list'> 1 <class 'list'> 28 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> Label: <class 'torch.Tensor'> 60000 <class 'torch.Tensor'> ``` DataLoader batch: ``` Image: <class 'list'> 1 <class 'list'> 28 <class 'torch.Tensor'> 2 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> Label: <class 'torch.Tensor'> 2 <class 'torch.Tensor'> ``` --- ## Using `torch` format: ``` Image: <class 'list'> 60000 <class 'list'> 1 <class 'list'> 28 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> Label: <class 'torch.Tensor'> 60000 <class 'torch.Tensor'> ``` DataLoader batches: ``` Image: <class 'list'> 1 <class 'list'> 28 <class 'torch.Tensor'> 2 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> Label: <class 'torch.Tensor'> 2 <class 'torch.Tensor'> ``` --- ## Using the features - `Array3D`: ``` Image: <class 'list'> 10000 <class 'torch.Tensor'> 1 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> Label: <class 'list'> 10000 <class 'torch.Tensor'> ``` After `map`: ``` Image: <class 'torch.Tensor'> 60000 <class 'torch.Tensor'> 1 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> Label: <class 'torch.Tensor'> 60000 <class 'torch.Tensor'> ``` After DataLoader `batch`: ``` Image: <class 'torch.Tensor'> 2 <class 'torch.Tensor'> 1 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> Label: <class 'torch.Tensor'> 2 <class 'torch.Tensor'> ``` The last one works perfectly. ![image](https://user-images.githubusercontent.com/29076344/110491452-4cf09c00-8117-11eb-8a47-73bf3fc0c3dc.png) I wonder why this worked, and others didn't.
Hi I am trying to use `torchvision.transforms` to handle the transformation of the image data in the `mnist` dataset. Assume I have a `transform` variable which contains the `torchvision.transforms` object. A snippet of what I am trying to do: ```python def prepare_features(examples): images = [] labels = [] for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform( np.array(examples["image"][example_idx], dtype=np.uint8) )) else: images.append(torch.tensor(np.array(examples["image"][example_idx], dtype=np.uint8))) labels.append(torch.tensor(examples["label"][example_idx])) output = {"label":labels, "image":images} return output raw_dataset = load_dataset('mnist') train_dataset = raw_dataset.map(prepare_features, batched=True, batch_size=10000) train_dataset.set_format("torch",columns=["image","label"]) ``` After this, I check the type of the following: ```python print(type(train_dataset["train"]["label"])) print(type(train_dataset["train"]["image"][0])) ``` This leads to the following output: ```python <class 'torch.Tensor'> <class 'list'> ``` I use `torch.utils.DataLoader` for batches, the type of `batch["train"]["image"]` is also `<class 'list'>`. I don't understand why only the `label` is converted to a torch tensor, why does the image not get converted? How can I fix this issue? Thanks, Gunjan EDIT: I just checked the shapes, and the types, `batch[image]` is a actually a list of list of tensors. Shape is (1,28,2,28), where `batch_size` is 2. I don't understand why this is happening. Ideally it should be a tensor of shape (2,1,28,28). EDIT 2: Inside `prepare_train_features`, the shape of `images[0]` is `torch.Size([1,28,28])`, the conversion is working. However, the output of the `map` is a list of list of list of list.
299
Setting to torch format not working with torchvision and MNIST Hi I am trying to use `torchvision.transforms` to handle the transformation of the image data in the `mnist` dataset. Assume I have a `transform` variable which contains the `torchvision.transforms` object. A snippet of what I am trying to do: ```python def prepare_features(examples): images = [] labels = [] for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform( np.array(examples["image"][example_idx], dtype=np.uint8) )) else: images.append(torch.tensor(np.array(examples["image"][example_idx], dtype=np.uint8))) labels.append(torch.tensor(examples["label"][example_idx])) output = {"label":labels, "image":images} return output raw_dataset = load_dataset('mnist') train_dataset = raw_dataset.map(prepare_features, batched=True, batch_size=10000) train_dataset.set_format("torch",columns=["image","label"]) ``` After this, I check the type of the following: ```python print(type(train_dataset["train"]["label"])) print(type(train_dataset["train"]["image"][0])) ``` This leads to the following output: ```python <class 'torch.Tensor'> <class 'list'> ``` I use `torch.utils.DataLoader` for batches, the type of `batch["train"]["image"]` is also `<class 'list'>`. I don't understand why only the `label` is converted to a torch tensor, why does the image not get converted? How can I fix this issue? Thanks, Gunjan EDIT: I just checked the shapes, and the types, `batch[image]` is a actually a list of list of tensors. Shape is (1,28,2,28), where `batch_size` is 2. I don't understand why this is happening. Ideally it should be a tensor of shape (2,1,28,28). EDIT 2: Inside `prepare_train_features`, the shape of `images[0]` is `torch.Size([1,28,28])`, the conversion is working. However, the output of the `map` is a list of list of list of list. # Convert raw tensors to torch format Strangely, converting to torch tensors works perfectly on `raw_dataset`: ```python raw_dataset.set_format('torch',columns=['image','label']) ``` Types: ``` Image: <class 'torch.Tensor'> 60000 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> Label: <class 'torch.Tensor'> 60000 <class 'torch.Tensor'> ``` Using this for transforms: ```python def prepare_features(examples): images = [] labels = [] for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform( examples["image"][example_idx].numpy() )) else: images.append(examples["image"][example_idx].numpy()) labels.append(examples["label"][example_idx]) output = {"label":labels, "image":images} return output ``` Inside `prepare_train_features`: ``` Image: <class 'list'> 10000 <class 'torch.Tensor'> 1 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> Label: <class 'list'> 10000 <class 'torch.Tensor'> ``` After `map`: ``` Image: <class 'list'> 60000 <class 'list'> 1 <class 'list'> 28 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> Label: <class 'torch.Tensor'> 60000 <class 'torch.Tensor'> ``` DataLoader batch: ``` Image: <class 'list'> 1 <class 'list'> 28 <class 'torch.Tensor'> 2 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> Label: <class 'torch.Tensor'> 2 <class 'torch.Tensor'> ``` --- ## Using `torch` format: ``` Image: <class 'list'> 60000 <class 'list'> 1 <class 'list'> 28 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> Label: <class 'torch.Tensor'> 60000 <class 'torch.Tensor'> ``` DataLoader batches: ``` Image: <class 'list'> 1 <class 'list'> 28 <class 'torch.Tensor'> 2 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> Label: <class 'torch.Tensor'> 2 <class 'torch.Tensor'> ``` --- ## Using the features - `Array3D`: ``` Image: <class 'list'> 10000 <class 'torch.Tensor'> 1 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> Label: <class 'list'> 10000 <class 'torch.Tensor'> ``` After `map`: ``` Image: <class 'torch.Tensor'> 60000 <class 'torch.Tensor'> 1 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> Label: <class 'torch.Tensor'> 60000 <class 'torch.Tensor'> ``` After DataLoader `batch`: ``` Image: <class 'torch.Tensor'> 2 <class 'torch.Tensor'> 1 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> Label: <class 'torch.Tensor'> 2 <class 'torch.Tensor'> ``` The last one works perfectly. ![image](https://user-images.githubusercontent.com/29076344/110491452-4cf09c00-8117-11eb-8a47-73bf3fc0c3dc.png) I wonder why this worked, and others didn't.
[ -0.12737540900707245, -0.3511652648448944, -0.01793275587260723, 0.35360872745513916, 0.4760025143623352, 0.08871380239725113, 0.733028769493103, 0.3804348111152649, 0.06552515923976898, -0.038042545318603516, -0.11115357279777527, 0.38195115327835083, -0.23296885192394257, -0.3339342772960663, 0.03510889783501625, -0.5614942312240601, 0.2225799858570099, -0.09982740879058838, -0.28079813718795776, -0.06134728714823723, -0.2431335300207138, 0.03548943251371384, -0.2184973657131195, -0.10849666595458984, -0.5479357838630676, 0.04409640282392502, -0.019555658102035522, -0.07656855136156082, -0.06229933351278305, -0.13918034732341766, 0.12234671413898468, -0.17449648678302765, 0.4444531500339508, 0.7012937068939209, -0.00012770108878612518, 0.07030172646045685, 0.3642725944519043, -0.1737782508134842, 0.049999114125967026, -0.16101329028606415, 0.040047310292720795, -0.2573830187320709, 0.07277627289295197, -0.09468314796686172, -0.22349423170089722, -0.17084546387195587, 0.09591015428304672, -0.17902977764606476, -0.028142273426055908, 0.4191693067550659, 0.0771300345659256, 0.2790106534957886, 0.2466610223054886, 0.1386307328939438, 0.2278119921684265, 0.5182861089706421, -0.27343839406967163, -0.05611692741513252, 0.22615043818950653, 0.3754779100418091, 0.12400421500205994, 0.5647351741790771, -0.2913343906402588, -0.03623348847031593, 0.26694485545158386, 0.12900540232658386, -0.10145575553178787, -0.3140054941177368, 0.049157410860061646, 0.08946321904659271, 0.42194443941116333, -0.14943954348564148, -0.08077897131443024, -0.14366409182548523, -0.14397819340229034, -0.12738050520420074, 0.040591202676296234, 0.2803192734718323, -0.07184071838855743, -0.1872383952140808, -0.5392425656318665, 0.3052915334701538, -0.14862358570098877, 0.2131594568490982, -0.2805245518684387, -0.0034207403659820557, -0.13816343247890472, 0.29280853271484375, -0.047119248658418655, -0.11271293461322784, 0.19308120012283325, -0.12341457605361938, 0.13007575273513794, -0.009825735352933407, -0.14363141357898712, -0.0534907765686512, -0.38959887623786926, -0.31501248478889465, -0.20014813542366028, -0.160264790058136, 0.16648587584495544, 0.1392759084701538, -0.11639561504125595, 0.12807080149650574, 0.1826329529285431, 0.26803353428840637, 0.1057826429605484, 0.32070228457450867, -0.08589236438274384, -0.2895815670490265, -0.0469193272292614, 0.08773323893547058, -0.29622676968574524, -0.4357527196407318, 0.15453419089317322, 0.32529640197753906, 0.24522115290164948, 0.06874248385429382, 0.12985558807849884, -0.32394126057624817, -0.10892283916473389, -0.009586316533386707, 0.07522494345903397, 0.2850382626056671, -0.11867916584014893, 0.24390509724617004, 0.48048293590545654, 0.39720290899276733, -0.15381847321987152, 0.06956236064434052, 0.025072410702705383, 0.03152093663811684, -0.4404953420162201, -0.285698801279068, 0.1534099280834198, -0.1177731603384018, 0.10007032006978989, 0.03743180260062218, 0.04641563445329666, 0.10069668292999268, 0.07349640876054764, -0.18586979806423187, 0.6246296763420105, 0.14764724671840668, -0.19447419047355652, 0.2767925560474396, 0.2709067165851593, 0.5297806262969971, -0.3042983114719391, 0.2565314769744873, -0.5095702409744263, 0.06525279581546783, -0.023091500625014305, -0.014543850906193256, 0.21865473687648773, -0.020722128450870514, -0.21216225624084473, 0.015829091891646385, 0.5923119783401489, -0.08367820084095001, 0.27348780632019043, -0.5791621804237366, 0.09496405720710754, -0.1913350522518158, 0.034152500331401825, 0.06366966664791107, -0.20471526682376862, -0.05235854536294937, 0.38634371757507324, 0.09194983541965485, 0.3154589533805847, 0.16028177738189697, 0.05108363553881645, 0.07987017929553986, -0.22535288333892822, -0.2350507378578186, 0.336323618888855, -0.37685659527778625, 0.092038094997406, -0.017693186178803444, 0.09387907385826111, -0.06380392611026764, 0.11201898753643036, 0.3361778259277344, 0.0326007679104805, -0.12800128757953644, 0.02944871410727501, 0.1963149607181549, -0.16618242859840393, 0.1402871161699295, 0.07735966145992279, 0.19130311906337738, 0.19337497651576996, 0.03500647470355034, -0.015683721750974655, 0.2076537311077118, -0.22167158126831055, 0.17757640779018402, -0.054280370473861694, -0.07471343874931335, 0.07117719203233719, 0.04037807881832123, -0.36989057064056396, -0.012196704745292664, -0.047469694167375565, 0.18646693229675293, -0.2331002950668335, -0.048721496015787125, 0.023635171353816986, 0.08221714198589325, 0.05827927961945534, 0.04792488366365433, 0.00497826375067234, -0.19195683300495148, -0.18220587074756622, -0.13902710378170013, -0.0032417885959148407, 0.0922105610370636, -0.20947688817977905, -0.2617241144180298, -0.05234343558549881, -0.1232488825917244, 0.17830383777618408, 0.058838095515966415, -0.35903647541999817, 0.05102594196796417, 0.019273651763796806, -0.3653304874897003, -0.20136012136936188, 0.17339247465133667, 0.2676691710948944, -0.09962134063243866, -0.04223459213972092, 0.19160327315330505, 0.06328880041837692, 0.11463357508182526, -0.5482739806175232, 0.08346603065729141, 0.17784196138381958, -0.24697014689445496, 0.2043914645910263, 0.2162795215845108, 0.14853382110595703, -0.27550339698791504, -0.19603440165519714, 0.43878644704818726, 0.16041074693202972, 0.3159129023551941, -0.33002549409866333, 0.11610180884599686, -0.07264680415391922, -0.03940185531973839, -0.19063392281532288, -0.040807515382766724, -0.2772817313671112, 0.0730239748954773, -0.13185951113700867, 0.012982203625142574, -0.4569188952445984, -0.04493575543165207, 0.2962619960308075, 0.08876402676105499, 0.1758728325366974, -0.0012162551283836365, -0.3998463451862335, 0.21331259608268738, 0.17712706327438354, -0.6013532876968384, 0.29783856868743896, -0.004361569881439209, 0.1892075538635254, -0.10501866787672043, 0.09558327496051788, -0.16254311800003052, 0.2484443485736847, 0.1140424907207489, 0.09074831008911133, -0.19946491718292236, 0.14185220003128052, -0.10792585462331772, 0.02684575319290161, 0.026369977742433548, -0.1406286656856537, -0.2336929440498352, -0.35895073413848877, 0.2713826298713684, -0.16618333756923676, -0.13451848924160004, -0.40185457468032837, -0.2621854841709137, 0.03605656698346138, -0.0740048810839653, -0.08233382552862167, 0.1507582813501358, 0.18556755781173706, 0.19043487310409546, 0.2634176015853882, -0.18189401924610138, 0.37431591749191284, -0.4130295217037201, -0.035354651510715485, -0.07500942051410675, -0.28679606318473816, -0.09916479885578156, 0.0896558165550232, -0.5234109163284302, 0.09148447960615158, -0.2289901077747345, -0.09319087862968445, -0.25017622113227844, 0.013548292219638824, 0.14182262122631073, -0.2678501009941101, -0.28500327467918396, 0.3085911273956299, 0.19392819702625275, -0.1424819529056549, 0.04066236689686775, 0.26635080575942993, 0.01030721329152584, 0.04690108448266983, 0.1537836343050003, -0.08962015807628632, 0.1165606677532196, -0.06329842656850815, -0.1767411231994629, -0.09661835432052612, -0.07506111264228821, -0.07041659951210022, -0.021759849041700363, 0.06337703764438629, 0.346258282661438, 0.3721838891506195, -0.08989016711711884, -0.05204236879944801, 0.03560919314622879, 0.06296464800834656, -0.3976878225803375, 0.5225034356117249, -0.2261539101600647, -0.36082619428634644, 0.11920170485973358, 0.023855838924646378, 0.06514731049537659, 0.4862689971923828, 0.060522645711898804, 0.049731601029634476, 0.011782122775912285, -0.07894501090049744, 0.25259286165237427, 0.22119691967964172, 0.35102030634880066, -0.09112472832202911, 0.019165800884366035, -0.1647072732448578, 0.015416599810123444, -0.10187137871980667, -0.06325531750917435, 0.6088865995407104, 0.18508407473564148, 0.23994258046150208, 0.09925894439220428, 0.6996648907661438, -0.06113751605153084, -0.7380957007408142, 0.21680673956871033, -0.24250978231430054, 0.19216693937778473, -0.11812164634466171, -0.3539585471153259, 0.39885619282722473, -0.20942005515098572, 0.06437406688928604, -0.08596731722354889, -0.024906877428293228, -0.23915784060955048, -0.09022422134876251, 0.35736149549484253, -0.3172067105770111, -0.15857422351837158, 0.40442991256713867, -0.14470255374908447, 0.2763724625110626, -0.23134246468544006, 0.3245895802974701, -0.2609265446662903, -0.21379289031028748, 0.06005708500742912, 0.44877195358276367, 0.1385136991739273, 0.04172488674521446, -0.334284245967865, -0.2166968435049057, -0.14322680234909058, 0.3568275272846222, 0.11957734078168869, 0.5672699213027954, -0.09803614765405655, -0.07446521520614624, 0.10155647993087769, 0.2413695752620697, 0.830759584903717, 0.04555724561214447, -0.0904589593410492, 0.15144222974777222, -0.3478350341320038, -0.45497822761535645, -0.10222916305065155, -0.05141806602478027, 0.09068089723587036, 0.17169034481048584, 0.1203862875699997, -0.09105332940816879, -0.18333402276039124, -0.005832638591527939, 0.19555465877056122, -0.05512464419007301, 0.034718938171863556, -0.22691111266613007, 0.05875767022371292, -0.12964943051338196, -0.15528327226638794, 0.22118239104747772, 0.02967519871890545, 0.005161826033145189, -0.30812811851501465, -0.32623055577278137, -0.12669971585273743, 0.18248197436332703, -0.1330120861530304, 0.41106683015823364, 0.09925103932619095, -0.17808546125888824, 0.07690712064504623, 0.5561056137084961, 0.4184049367904663, -0.03893890976905823, -0.1187732070684433, 0.08064393699169159, 0.29311060905456543, 0.10643263161182404, 0.30020424723625183, 0.3208248019218445, -0.06187279149889946, -0.43966424465179443, -0.22684860229492188, -0.19381509721279144, -0.3305324614048004, 0.3972930312156677, 0.4080626964569092, 0.09893538802862167, -0.4953550696372986, -0.49217066168785095, 0.3861902058124542, 0.2937195599079132, 0.19583018124103546, 0.20459191501140594, -0.5417593121528625, -0.40096738934516907, 0.07817859202623367, 0.46624186635017395, 0.8556233048439026, -0.037078700959682465, 0.370282918214798, 0.03156561776995659, 0.010806940495967865, 0.17210185527801514, -0.0018886998295783997, 0.41179436445236206, -0.3542814254760742, 0.1392894983291626, -0.164854034781456, -0.31255003809928894, 0.2525230050086975, -0.060203246772289276, -0.24396952986717224, 0.04253619536757469, -0.3494715094566345, 0.1936202496290207, -0.12569347023963928, -0.08285336196422577, -0.04982651770114899, -0.471418172121048, 0.18787403404712677, 0.015452079474925995, -0.08251337707042694, 0.26173895597457886, 0.11116153001785278, -0.16362066566944122, -0.37986040115356445, 0.06169593334197998, -0.07622233778238297, -0.015011643059551716, -0.24596907198429108, -0.16324345767498016, -0.024310410022735596, -0.7298658490180969, 0.05867994949221611, 0.4961579442024231, 0.33455443382263184, -0.16056637465953827, -0.0478365495800972, 0.1396413892507553, 0.44384750723838806, 0.1629004031419754, -0.09901697933673859, -0.34018465876579285, 0.2853407561779022, 0.09737569838762283, 0.18433207273483276, 0.10863815248012543, 0.06814876198768616, 0.21052046120166779, -0.5777894258499146, 0.03725104779005051, 0.30602920055389404, -0.3449508249759674, -0.3229842185974121, -0.19845017790794373, 0.049185048788785934, 0.03816347196698189, 0.028618566691875458, 0.1244892105460167, -0.03890316188335419, 0.20724302530288696, -0.04151230677962303, -0.22646169364452362, 0.13288995623588562, 0.45233139395713806, 0.11298388987779617, -0.35004642605781555, 0.39075639843940735, 0.3549591898918152, -0.044777899980545044, -0.043743960559368134, 0.41669389605522156, 0.6353195905685425, -0.34569674730300903, 0.09949740022420883, -0.10271698236465454, -0.15698707103729248, -0.011073713190853596, 0.5430936217308044, -0.23431716859340668, -0.1309782862663269, -0.23895759880542755, -0.04081706702709198, -0.4308939278125763, 0.01081337034702301, -0.31629857420921326, 0.456630140542984, -0.043222058564424515, 0.3627100884914398, 0.21050570905208588, -0.18734970688819885, -0.14413586258888245, -0.25864869356155396, 0.1723509579896927, 0.3679336607456207, -0.2471824586391449, 0.21876117587089539, -0.12695860862731934, -0.12202289700508118, -0.03625227138400078, 0.026031551882624626, -0.24973976612091064, -0.03339078649878502, -0.057677969336509705, 0.17730601131916046, 0.06661458313465118, -0.11354019492864609, -0.07354690879583359, -0.17366977035999298, -0.13858114182949066, -0.2681717276573181, -0.03771784156560898, 0.11092103272676468, -0.11599935591220856, 0.353161096572876, -0.17836599051952362, 0.23122572898864746, 0.31867676973342896, -0.2700003981590271, -0.10262273252010345, 0.03587159514427185, 0.2229631096124649, 0.060050882399082184, 0.00453167175874114, -0.06155644357204437, -0.2772364318370819, 0.1125919371843338, 0.16520316898822784, 0.25497522950172424, 0.20461755990982056, -0.09999659657478333, 0.10917837917804718, -0.04380689561367035, 0.20418445765972137, 0.10125526785850525, -0.1718703657388687, -0.050829093903303146, 0.060372814536094666, -0.007623609155416489, 0.1006220281124115, 0.14499907195568085, 0.03886927291750908, 0.12528149783611298, -0.08346407115459442, 0.27557802200317383, 0.06655879318714142, 0.3113946318626404, -0.37050777673721313, 0.04514180123806, 0.41785678267478943, -0.24107296764850616, 0.23508626222610474, 0.4640146791934967, 0.014799613505601883, 0.193049818277359, 0.29070472717285156, 0.10934381186962128, -0.1187017634510994, 0.3226965069770813, 0.39451703429222107, 0.8204308152198792, 0.5895953178405762, 0.08376968652009964, 0.2746028006076813, 0.09925709664821625, -0.15360766649246216, -0.2072514295578003, 0.23582398891448975, 0.39196842908859253, 0.018866688013076782, 0.18569323420524597, -0.24079908430576324, -0.48712393641471863, 0.2258823812007904, 0.1217745840549469, -0.19461801648139954, -0.08222351968288422, -0.6648061275482178, 0.011875316500663757, 0.13582652807235718, -0.18665997684001923, -0.17971526086330414, -0.05013806372880936, 0.220590740442276, 0.2597532272338867, -0.10321985185146332, -0.16091258823871613, -0.1724744439125061, 0.06910110265016556, 0.03752904757857323, -0.007329706102609634, 0.16975747048854828, -0.13684643805027008, 0.16176097095012665, 0.24482446908950806, 0.1969081163406372, 0.284953236579895, 0.4870796799659729, -0.16817118227481842, -0.15989406406879425, -0.010553201660513878, -0.19236597418785095, 0.08990161120891571, 0.06671234220266342, 0.03153381496667862, -0.1532079577445984, -0.014956234022974968, 0.008462533354759216, 0.03862767294049263, 0.03146062046289444, -0.09408107399940491, -0.21825940907001495, 0.1676250398159027, 0.30557453632354736, -0.36377719044685364, -0.1490928828716278, -0.09989863634109497, -0.24665629863739014, -0.3483099639415741, -0.26553475856781006, 0.5327389240264893, 0.027895595878362656, 0.12800973653793335, 0.14216776192188263, -0.04215959459543228, 0.048786040395498276, 0.1574120819568634, -0.12155681848526001, 0.0775766521692276, -0.1540934443473816, 0.13596616685390472, -0.08580520749092102, 0.03191046416759491, 0.11847475171089172, -0.38344821333885193, -0.018849391490221024, -0.03916454687714577, 0.24254250526428223, 0.06467486172914505, 0.2020900845527649, -0.09834717214107513, 0.4987447261810303, 0.6146568059921265, -0.13361555337905884, -0.1414809226989746, -0.13041925430297852, 0.37065088748931885, 0.07330819964408875, -0.07746567577123642, 0.021921303123235703, 0.10242748260498047, 0.006507012993097305, -0.34206485748291016, -0.2554904520511627, -0.01998257078230381, 0.30414512753486633, 0.35128262639045715, 0.09328848868608475, 0.3203134536743164, -0.019220542162656784, 0.048409707844257355, -0.2411344051361084, 0.0504152774810791, -0.12760111689567566, 0.009670205414295197, -0.022803064435720444, 0.5810165405273438, -0.22440199553966522, -0.059342700988054276, -0.41364988684654236, 0.4290262460708618, 0.09053143858909607, -0.33885523676872253, -0.08051943778991699, 0.35840025544166565, -0.31732094287872314, -0.2010883092880249, 0.22619517147541046, 0.4100218713283539, 0.15135975182056427, 0.19435712695121765, -0.5254404544830322, -0.4069116413593292, 0.4472021460533142, -0.441707968711853, -0.5069120526313782, 0.02907465398311615, -0.3133937418460846, 0.06790400296449661, 0.49642300605773926, -0.471049964427948, -0.14913369715213776, 0.0015052962116897106, -0.08082769066095352, -0.09160427749156952, -0.09819349646568298, 0.2610398828983307, 0.015110637992620468, -0.25184643268585205, 0.17900733649730682, 0.1764504313468933, -0.022816140204668045, -0.42041611671447754, -0.27535998821258545 ]
https://github.com/huggingface/datasets/issues/2005
Setting to torch format not working with torchvision and MNIST
Concluding, the way it works right now is: 1. Converting raw dataset to `torch` format. 2. Use the transform and apply using `map`, ensure the returned values are tensors. 3. When mapping, use `features` with `image` being `Array3D` type.
Hi I am trying to use `torchvision.transforms` to handle the transformation of the image data in the `mnist` dataset. Assume I have a `transform` variable which contains the `torchvision.transforms` object. A snippet of what I am trying to do: ```python def prepare_features(examples): images = [] labels = [] for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform( np.array(examples["image"][example_idx], dtype=np.uint8) )) else: images.append(torch.tensor(np.array(examples["image"][example_idx], dtype=np.uint8))) labels.append(torch.tensor(examples["label"][example_idx])) output = {"label":labels, "image":images} return output raw_dataset = load_dataset('mnist') train_dataset = raw_dataset.map(prepare_features, batched=True, batch_size=10000) train_dataset.set_format("torch",columns=["image","label"]) ``` After this, I check the type of the following: ```python print(type(train_dataset["train"]["label"])) print(type(train_dataset["train"]["image"][0])) ``` This leads to the following output: ```python <class 'torch.Tensor'> <class 'list'> ``` I use `torch.utils.DataLoader` for batches, the type of `batch["train"]["image"]` is also `<class 'list'>`. I don't understand why only the `label` is converted to a torch tensor, why does the image not get converted? How can I fix this issue? Thanks, Gunjan EDIT: I just checked the shapes, and the types, `batch[image]` is a actually a list of list of tensors. Shape is (1,28,2,28), where `batch_size` is 2. I don't understand why this is happening. Ideally it should be a tensor of shape (2,1,28,28). EDIT 2: Inside `prepare_train_features`, the shape of `images[0]` is `torch.Size([1,28,28])`, the conversion is working. However, the output of the `map` is a list of list of list of list.
39
Setting to torch format not working with torchvision and MNIST Hi I am trying to use `torchvision.transforms` to handle the transformation of the image data in the `mnist` dataset. Assume I have a `transform` variable which contains the `torchvision.transforms` object. A snippet of what I am trying to do: ```python def prepare_features(examples): images = [] labels = [] for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform( np.array(examples["image"][example_idx], dtype=np.uint8) )) else: images.append(torch.tensor(np.array(examples["image"][example_idx], dtype=np.uint8))) labels.append(torch.tensor(examples["label"][example_idx])) output = {"label":labels, "image":images} return output raw_dataset = load_dataset('mnist') train_dataset = raw_dataset.map(prepare_features, batched=True, batch_size=10000) train_dataset.set_format("torch",columns=["image","label"]) ``` After this, I check the type of the following: ```python print(type(train_dataset["train"]["label"])) print(type(train_dataset["train"]["image"][0])) ``` This leads to the following output: ```python <class 'torch.Tensor'> <class 'list'> ``` I use `torch.utils.DataLoader` for batches, the type of `batch["train"]["image"]` is also `<class 'list'>`. I don't understand why only the `label` is converted to a torch tensor, why does the image not get converted? How can I fix this issue? Thanks, Gunjan EDIT: I just checked the shapes, and the types, `batch[image]` is a actually a list of list of tensors. Shape is (1,28,2,28), where `batch_size` is 2. I don't understand why this is happening. Ideally it should be a tensor of shape (2,1,28,28). EDIT 2: Inside `prepare_train_features`, the shape of `images[0]` is `torch.Size([1,28,28])`, the conversion is working. However, the output of the `map` is a list of list of list of list. Concluding, the way it works right now is: 1. Converting raw dataset to `torch` format. 2. Use the transform and apply using `map`, ensure the returned values are tensors. 3. When mapping, use `features` with `image` being `Array3D` type.
[ -0.12737540900707245, -0.3511652648448944, -0.01793275587260723, 0.35360872745513916, 0.4760025143623352, 0.08871380239725113, 0.733028769493103, 0.3804348111152649, 0.06552515923976898, -0.038042545318603516, -0.11115357279777527, 0.38195115327835083, -0.23296885192394257, -0.3339342772960663, 0.03510889783501625, -0.5614942312240601, 0.2225799858570099, -0.09982740879058838, -0.28079813718795776, -0.06134728714823723, -0.2431335300207138, 0.03548943251371384, -0.2184973657131195, -0.10849666595458984, -0.5479357838630676, 0.04409640282392502, -0.019555658102035522, -0.07656855136156082, -0.06229933351278305, -0.13918034732341766, 0.12234671413898468, -0.17449648678302765, 0.4444531500339508, 0.7012937068939209, -0.00012770108878612518, 0.07030172646045685, 0.3642725944519043, -0.1737782508134842, 0.049999114125967026, -0.16101329028606415, 0.040047310292720795, -0.2573830187320709, 0.07277627289295197, -0.09468314796686172, -0.22349423170089722, -0.17084546387195587, 0.09591015428304672, -0.17902977764606476, -0.028142273426055908, 0.4191693067550659, 0.0771300345659256, 0.2790106534957886, 0.2466610223054886, 0.1386307328939438, 0.2278119921684265, 0.5182861089706421, -0.27343839406967163, -0.05611692741513252, 0.22615043818950653, 0.3754779100418091, 0.12400421500205994, 0.5647351741790771, -0.2913343906402588, -0.03623348847031593, 0.26694485545158386, 0.12900540232658386, -0.10145575553178787, -0.3140054941177368, 0.049157410860061646, 0.08946321904659271, 0.42194443941116333, -0.14943954348564148, -0.08077897131443024, -0.14366409182548523, -0.14397819340229034, -0.12738050520420074, 0.040591202676296234, 0.2803192734718323, -0.07184071838855743, -0.1872383952140808, -0.5392425656318665, 0.3052915334701538, -0.14862358570098877, 0.2131594568490982, -0.2805245518684387, -0.0034207403659820557, -0.13816343247890472, 0.29280853271484375, -0.047119248658418655, -0.11271293461322784, 0.19308120012283325, -0.12341457605361938, 0.13007575273513794, -0.009825735352933407, -0.14363141357898712, -0.0534907765686512, -0.38959887623786926, -0.31501248478889465, -0.20014813542366028, -0.160264790058136, 0.16648587584495544, 0.1392759084701538, -0.11639561504125595, 0.12807080149650574, 0.1826329529285431, 0.26803353428840637, 0.1057826429605484, 0.32070228457450867, -0.08589236438274384, -0.2895815670490265, -0.0469193272292614, 0.08773323893547058, -0.29622676968574524, -0.4357527196407318, 0.15453419089317322, 0.32529640197753906, 0.24522115290164948, 0.06874248385429382, 0.12985558807849884, -0.32394126057624817, -0.10892283916473389, -0.009586316533386707, 0.07522494345903397, 0.2850382626056671, -0.11867916584014893, 0.24390509724617004, 0.48048293590545654, 0.39720290899276733, -0.15381847321987152, 0.06956236064434052, 0.025072410702705383, 0.03152093663811684, -0.4404953420162201, -0.285698801279068, 0.1534099280834198, -0.1177731603384018, 0.10007032006978989, 0.03743180260062218, 0.04641563445329666, 0.10069668292999268, 0.07349640876054764, -0.18586979806423187, 0.6246296763420105, 0.14764724671840668, -0.19447419047355652, 0.2767925560474396, 0.2709067165851593, 0.5297806262969971, -0.3042983114719391, 0.2565314769744873, -0.5095702409744263, 0.06525279581546783, -0.023091500625014305, -0.014543850906193256, 0.21865473687648773, -0.020722128450870514, -0.21216225624084473, 0.015829091891646385, 0.5923119783401489, -0.08367820084095001, 0.27348780632019043, -0.5791621804237366, 0.09496405720710754, -0.1913350522518158, 0.034152500331401825, 0.06366966664791107, -0.20471526682376862, -0.05235854536294937, 0.38634371757507324, 0.09194983541965485, 0.3154589533805847, 0.16028177738189697, 0.05108363553881645, 0.07987017929553986, -0.22535288333892822, -0.2350507378578186, 0.336323618888855, -0.37685659527778625, 0.092038094997406, -0.017693186178803444, 0.09387907385826111, -0.06380392611026764, 0.11201898753643036, 0.3361778259277344, 0.0326007679104805, -0.12800128757953644, 0.02944871410727501, 0.1963149607181549, -0.16618242859840393, 0.1402871161699295, 0.07735966145992279, 0.19130311906337738, 0.19337497651576996, 0.03500647470355034, -0.015683721750974655, 0.2076537311077118, -0.22167158126831055, 0.17757640779018402, -0.054280370473861694, -0.07471343874931335, 0.07117719203233719, 0.04037807881832123, -0.36989057064056396, -0.012196704745292664, -0.047469694167375565, 0.18646693229675293, -0.2331002950668335, -0.048721496015787125, 0.023635171353816986, 0.08221714198589325, 0.05827927961945534, 0.04792488366365433, 0.00497826375067234, -0.19195683300495148, -0.18220587074756622, -0.13902710378170013, -0.0032417885959148407, 0.0922105610370636, -0.20947688817977905, -0.2617241144180298, -0.05234343558549881, -0.1232488825917244, 0.17830383777618408, 0.058838095515966415, -0.35903647541999817, 0.05102594196796417, 0.019273651763796806, -0.3653304874897003, -0.20136012136936188, 0.17339247465133667, 0.2676691710948944, -0.09962134063243866, -0.04223459213972092, 0.19160327315330505, 0.06328880041837692, 0.11463357508182526, -0.5482739806175232, 0.08346603065729141, 0.17784196138381958, -0.24697014689445496, 0.2043914645910263, 0.2162795215845108, 0.14853382110595703, -0.27550339698791504, -0.19603440165519714, 0.43878644704818726, 0.16041074693202972, 0.3159129023551941, -0.33002549409866333, 0.11610180884599686, -0.07264680415391922, -0.03940185531973839, -0.19063392281532288, -0.040807515382766724, -0.2772817313671112, 0.0730239748954773, -0.13185951113700867, 0.012982203625142574, -0.4569188952445984, -0.04493575543165207, 0.2962619960308075, 0.08876402676105499, 0.1758728325366974, -0.0012162551283836365, -0.3998463451862335, 0.21331259608268738, 0.17712706327438354, -0.6013532876968384, 0.29783856868743896, -0.004361569881439209, 0.1892075538635254, -0.10501866787672043, 0.09558327496051788, -0.16254311800003052, 0.2484443485736847, 0.1140424907207489, 0.09074831008911133, -0.19946491718292236, 0.14185220003128052, -0.10792585462331772, 0.02684575319290161, 0.026369977742433548, -0.1406286656856537, -0.2336929440498352, -0.35895073413848877, 0.2713826298713684, -0.16618333756923676, -0.13451848924160004, -0.40185457468032837, -0.2621854841709137, 0.03605656698346138, -0.0740048810839653, -0.08233382552862167, 0.1507582813501358, 0.18556755781173706, 0.19043487310409546, 0.2634176015853882, -0.18189401924610138, 0.37431591749191284, -0.4130295217037201, -0.035354651510715485, -0.07500942051410675, -0.28679606318473816, -0.09916479885578156, 0.0896558165550232, -0.5234109163284302, 0.09148447960615158, -0.2289901077747345, -0.09319087862968445, -0.25017622113227844, 0.013548292219638824, 0.14182262122631073, -0.2678501009941101, -0.28500327467918396, 0.3085911273956299, 0.19392819702625275, -0.1424819529056549, 0.04066236689686775, 0.26635080575942993, 0.01030721329152584, 0.04690108448266983, 0.1537836343050003, -0.08962015807628632, 0.1165606677532196, -0.06329842656850815, -0.1767411231994629, -0.09661835432052612, -0.07506111264228821, -0.07041659951210022, -0.021759849041700363, 0.06337703764438629, 0.346258282661438, 0.3721838891506195, -0.08989016711711884, -0.05204236879944801, 0.03560919314622879, 0.06296464800834656, -0.3976878225803375, 0.5225034356117249, -0.2261539101600647, -0.36082619428634644, 0.11920170485973358, 0.023855838924646378, 0.06514731049537659, 0.4862689971923828, 0.060522645711898804, 0.049731601029634476, 0.011782122775912285, -0.07894501090049744, 0.25259286165237427, 0.22119691967964172, 0.35102030634880066, -0.09112472832202911, 0.019165800884366035, -0.1647072732448578, 0.015416599810123444, -0.10187137871980667, -0.06325531750917435, 0.6088865995407104, 0.18508407473564148, 0.23994258046150208, 0.09925894439220428, 0.6996648907661438, -0.06113751605153084, -0.7380957007408142, 0.21680673956871033, -0.24250978231430054, 0.19216693937778473, -0.11812164634466171, -0.3539585471153259, 0.39885619282722473, -0.20942005515098572, 0.06437406688928604, -0.08596731722354889, -0.024906877428293228, -0.23915784060955048, -0.09022422134876251, 0.35736149549484253, -0.3172067105770111, -0.15857422351837158, 0.40442991256713867, -0.14470255374908447, 0.2763724625110626, -0.23134246468544006, 0.3245895802974701, -0.2609265446662903, -0.21379289031028748, 0.06005708500742912, 0.44877195358276367, 0.1385136991739273, 0.04172488674521446, -0.334284245967865, -0.2166968435049057, -0.14322680234909058, 0.3568275272846222, 0.11957734078168869, 0.5672699213027954, -0.09803614765405655, -0.07446521520614624, 0.10155647993087769, 0.2413695752620697, 0.830759584903717, 0.04555724561214447, -0.0904589593410492, 0.15144222974777222, -0.3478350341320038, -0.45497822761535645, -0.10222916305065155, -0.05141806602478027, 0.09068089723587036, 0.17169034481048584, 0.1203862875699997, -0.09105332940816879, -0.18333402276039124, -0.005832638591527939, 0.19555465877056122, -0.05512464419007301, 0.034718938171863556, -0.22691111266613007, 0.05875767022371292, -0.12964943051338196, -0.15528327226638794, 0.22118239104747772, 0.02967519871890545, 0.005161826033145189, -0.30812811851501465, -0.32623055577278137, -0.12669971585273743, 0.18248197436332703, -0.1330120861530304, 0.41106683015823364, 0.09925103932619095, -0.17808546125888824, 0.07690712064504623, 0.5561056137084961, 0.4184049367904663, -0.03893890976905823, -0.1187732070684433, 0.08064393699169159, 0.29311060905456543, 0.10643263161182404, 0.30020424723625183, 0.3208248019218445, -0.06187279149889946, -0.43966424465179443, -0.22684860229492188, -0.19381509721279144, -0.3305324614048004, 0.3972930312156677, 0.4080626964569092, 0.09893538802862167, -0.4953550696372986, -0.49217066168785095, 0.3861902058124542, 0.2937195599079132, 0.19583018124103546, 0.20459191501140594, -0.5417593121528625, -0.40096738934516907, 0.07817859202623367, 0.46624186635017395, 0.8556233048439026, -0.037078700959682465, 0.370282918214798, 0.03156561776995659, 0.010806940495967865, 0.17210185527801514, -0.0018886998295783997, 0.41179436445236206, -0.3542814254760742, 0.1392894983291626, -0.164854034781456, -0.31255003809928894, 0.2525230050086975, -0.060203246772289276, -0.24396952986717224, 0.04253619536757469, -0.3494715094566345, 0.1936202496290207, -0.12569347023963928, -0.08285336196422577, -0.04982651770114899, -0.471418172121048, 0.18787403404712677, 0.015452079474925995, -0.08251337707042694, 0.26173895597457886, 0.11116153001785278, -0.16362066566944122, -0.37986040115356445, 0.06169593334197998, -0.07622233778238297, -0.015011643059551716, -0.24596907198429108, -0.16324345767498016, -0.024310410022735596, -0.7298658490180969, 0.05867994949221611, 0.4961579442024231, 0.33455443382263184, -0.16056637465953827, -0.0478365495800972, 0.1396413892507553, 0.44384750723838806, 0.1629004031419754, -0.09901697933673859, -0.34018465876579285, 0.2853407561779022, 0.09737569838762283, 0.18433207273483276, 0.10863815248012543, 0.06814876198768616, 0.21052046120166779, -0.5777894258499146, 0.03725104779005051, 0.30602920055389404, -0.3449508249759674, -0.3229842185974121, -0.19845017790794373, 0.049185048788785934, 0.03816347196698189, 0.028618566691875458, 0.1244892105460167, -0.03890316188335419, 0.20724302530288696, -0.04151230677962303, -0.22646169364452362, 0.13288995623588562, 0.45233139395713806, 0.11298388987779617, -0.35004642605781555, 0.39075639843940735, 0.3549591898918152, -0.044777899980545044, -0.043743960559368134, 0.41669389605522156, 0.6353195905685425, -0.34569674730300903, 0.09949740022420883, -0.10271698236465454, -0.15698707103729248, -0.011073713190853596, 0.5430936217308044, -0.23431716859340668, -0.1309782862663269, -0.23895759880542755, -0.04081706702709198, -0.4308939278125763, 0.01081337034702301, -0.31629857420921326, 0.456630140542984, -0.043222058564424515, 0.3627100884914398, 0.21050570905208588, -0.18734970688819885, -0.14413586258888245, -0.25864869356155396, 0.1723509579896927, 0.3679336607456207, -0.2471824586391449, 0.21876117587089539, -0.12695860862731934, -0.12202289700508118, -0.03625227138400078, 0.026031551882624626, -0.24973976612091064, -0.03339078649878502, -0.057677969336509705, 0.17730601131916046, 0.06661458313465118, -0.11354019492864609, -0.07354690879583359, -0.17366977035999298, -0.13858114182949066, -0.2681717276573181, -0.03771784156560898, 0.11092103272676468, -0.11599935591220856, 0.353161096572876, -0.17836599051952362, 0.23122572898864746, 0.31867676973342896, -0.2700003981590271, -0.10262273252010345, 0.03587159514427185, 0.2229631096124649, 0.060050882399082184, 0.00453167175874114, -0.06155644357204437, -0.2772364318370819, 0.1125919371843338, 0.16520316898822784, 0.25497522950172424, 0.20461755990982056, -0.09999659657478333, 0.10917837917804718, -0.04380689561367035, 0.20418445765972137, 0.10125526785850525, -0.1718703657388687, -0.050829093903303146, 0.060372814536094666, -0.007623609155416489, 0.1006220281124115, 0.14499907195568085, 0.03886927291750908, 0.12528149783611298, -0.08346407115459442, 0.27557802200317383, 0.06655879318714142, 0.3113946318626404, -0.37050777673721313, 0.04514180123806, 0.41785678267478943, -0.24107296764850616, 0.23508626222610474, 0.4640146791934967, 0.014799613505601883, 0.193049818277359, 0.29070472717285156, 0.10934381186962128, -0.1187017634510994, 0.3226965069770813, 0.39451703429222107, 0.8204308152198792, 0.5895953178405762, 0.08376968652009964, 0.2746028006076813, 0.09925709664821625, -0.15360766649246216, -0.2072514295578003, 0.23582398891448975, 0.39196842908859253, 0.018866688013076782, 0.18569323420524597, -0.24079908430576324, -0.48712393641471863, 0.2258823812007904, 0.1217745840549469, -0.19461801648139954, -0.08222351968288422, -0.6648061275482178, 0.011875316500663757, 0.13582652807235718, -0.18665997684001923, -0.17971526086330414, -0.05013806372880936, 0.220590740442276, 0.2597532272338867, -0.10321985185146332, -0.16091258823871613, -0.1724744439125061, 0.06910110265016556, 0.03752904757857323, -0.007329706102609634, 0.16975747048854828, -0.13684643805027008, 0.16176097095012665, 0.24482446908950806, 0.1969081163406372, 0.284953236579895, 0.4870796799659729, -0.16817118227481842, -0.15989406406879425, -0.010553201660513878, -0.19236597418785095, 0.08990161120891571, 0.06671234220266342, 0.03153381496667862, -0.1532079577445984, -0.014956234022974968, 0.008462533354759216, 0.03862767294049263, 0.03146062046289444, -0.09408107399940491, -0.21825940907001495, 0.1676250398159027, 0.30557453632354736, -0.36377719044685364, -0.1490928828716278, -0.09989863634109497, -0.24665629863739014, -0.3483099639415741, -0.26553475856781006, 0.5327389240264893, 0.027895595878362656, 0.12800973653793335, 0.14216776192188263, -0.04215959459543228, 0.048786040395498276, 0.1574120819568634, -0.12155681848526001, 0.0775766521692276, -0.1540934443473816, 0.13596616685390472, -0.08580520749092102, 0.03191046416759491, 0.11847475171089172, -0.38344821333885193, -0.018849391490221024, -0.03916454687714577, 0.24254250526428223, 0.06467486172914505, 0.2020900845527649, -0.09834717214107513, 0.4987447261810303, 0.6146568059921265, -0.13361555337905884, -0.1414809226989746, -0.13041925430297852, 0.37065088748931885, 0.07330819964408875, -0.07746567577123642, 0.021921303123235703, 0.10242748260498047, 0.006507012993097305, -0.34206485748291016, -0.2554904520511627, -0.01998257078230381, 0.30414512753486633, 0.35128262639045715, 0.09328848868608475, 0.3203134536743164, -0.019220542162656784, 0.048409707844257355, -0.2411344051361084, 0.0504152774810791, -0.12760111689567566, 0.009670205414295197, -0.022803064435720444, 0.5810165405273438, -0.22440199553966522, -0.059342700988054276, -0.41364988684654236, 0.4290262460708618, 0.09053143858909607, -0.33885523676872253, -0.08051943778991699, 0.35840025544166565, -0.31732094287872314, -0.2010883092880249, 0.22619517147541046, 0.4100218713283539, 0.15135975182056427, 0.19435712695121765, -0.5254404544830322, -0.4069116413593292, 0.4472021460533142, -0.441707968711853, -0.5069120526313782, 0.02907465398311615, -0.3133937418460846, 0.06790400296449661, 0.49642300605773926, -0.471049964427948, -0.14913369715213776, 0.0015052962116897106, -0.08082769066095352, -0.09160427749156952, -0.09819349646568298, 0.2610398828983307, 0.015110637992620468, -0.25184643268585205, 0.17900733649730682, 0.1764504313468933, -0.022816140204668045, -0.42041611671447754, -0.27535998821258545 ]
https://github.com/huggingface/datasets/issues/2005
Setting to torch format not working with torchvision and MNIST
What the dataset returns depends on the feature type. For a feature type that is Sequence(Sequence(Sequence(Value("uint8")))), a dataset formatted as "torch" return lists of lists of tensors. This is because the lists lengths may vary. For a feature type that is Array3D on the other hand it returns one tensor. This is because the size of the tensor is fixed and defined bu the Array3D type.
Hi I am trying to use `torchvision.transforms` to handle the transformation of the image data in the `mnist` dataset. Assume I have a `transform` variable which contains the `torchvision.transforms` object. A snippet of what I am trying to do: ```python def prepare_features(examples): images = [] labels = [] for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform( np.array(examples["image"][example_idx], dtype=np.uint8) )) else: images.append(torch.tensor(np.array(examples["image"][example_idx], dtype=np.uint8))) labels.append(torch.tensor(examples["label"][example_idx])) output = {"label":labels, "image":images} return output raw_dataset = load_dataset('mnist') train_dataset = raw_dataset.map(prepare_features, batched=True, batch_size=10000) train_dataset.set_format("torch",columns=["image","label"]) ``` After this, I check the type of the following: ```python print(type(train_dataset["train"]["label"])) print(type(train_dataset["train"]["image"][0])) ``` This leads to the following output: ```python <class 'torch.Tensor'> <class 'list'> ``` I use `torch.utils.DataLoader` for batches, the type of `batch["train"]["image"]` is also `<class 'list'>`. I don't understand why only the `label` is converted to a torch tensor, why does the image not get converted? How can I fix this issue? Thanks, Gunjan EDIT: I just checked the shapes, and the types, `batch[image]` is a actually a list of list of tensors. Shape is (1,28,2,28), where `batch_size` is 2. I don't understand why this is happening. Ideally it should be a tensor of shape (2,1,28,28). EDIT 2: Inside `prepare_train_features`, the shape of `images[0]` is `torch.Size([1,28,28])`, the conversion is working. However, the output of the `map` is a list of list of list of list.
66
Setting to torch format not working with torchvision and MNIST Hi I am trying to use `torchvision.transforms` to handle the transformation of the image data in the `mnist` dataset. Assume I have a `transform` variable which contains the `torchvision.transforms` object. A snippet of what I am trying to do: ```python def prepare_features(examples): images = [] labels = [] for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform( np.array(examples["image"][example_idx], dtype=np.uint8) )) else: images.append(torch.tensor(np.array(examples["image"][example_idx], dtype=np.uint8))) labels.append(torch.tensor(examples["label"][example_idx])) output = {"label":labels, "image":images} return output raw_dataset = load_dataset('mnist') train_dataset = raw_dataset.map(prepare_features, batched=True, batch_size=10000) train_dataset.set_format("torch",columns=["image","label"]) ``` After this, I check the type of the following: ```python print(type(train_dataset["train"]["label"])) print(type(train_dataset["train"]["image"][0])) ``` This leads to the following output: ```python <class 'torch.Tensor'> <class 'list'> ``` I use `torch.utils.DataLoader` for batches, the type of `batch["train"]["image"]` is also `<class 'list'>`. I don't understand why only the `label` is converted to a torch tensor, why does the image not get converted? How can I fix this issue? Thanks, Gunjan EDIT: I just checked the shapes, and the types, `batch[image]` is a actually a list of list of tensors. Shape is (1,28,2,28), where `batch_size` is 2. I don't understand why this is happening. Ideally it should be a tensor of shape (2,1,28,28). EDIT 2: Inside `prepare_train_features`, the shape of `images[0]` is `torch.Size([1,28,28])`, the conversion is working. However, the output of the `map` is a list of list of list of list. What the dataset returns depends on the feature type. For a feature type that is Sequence(Sequence(Sequence(Value("uint8")))), a dataset formatted as "torch" return lists of lists of tensors. This is because the lists lengths may vary. For a feature type that is Array3D on the other hand it returns one tensor. This is because the size of the tensor is fixed and defined bu the Array3D type.
[ -0.12737540900707245, -0.3511652648448944, -0.01793275587260723, 0.35360872745513916, 0.4760025143623352, 0.08871380239725113, 0.733028769493103, 0.3804348111152649, 0.06552515923976898, -0.038042545318603516, -0.11115357279777527, 0.38195115327835083, -0.23296885192394257, -0.3339342772960663, 0.03510889783501625, -0.5614942312240601, 0.2225799858570099, -0.09982740879058838, -0.28079813718795776, -0.06134728714823723, -0.2431335300207138, 0.03548943251371384, -0.2184973657131195, -0.10849666595458984, -0.5479357838630676, 0.04409640282392502, -0.019555658102035522, -0.07656855136156082, -0.06229933351278305, -0.13918034732341766, 0.12234671413898468, -0.17449648678302765, 0.4444531500339508, 0.7012937068939209, -0.00012770108878612518, 0.07030172646045685, 0.3642725944519043, -0.1737782508134842, 0.049999114125967026, -0.16101329028606415, 0.040047310292720795, -0.2573830187320709, 0.07277627289295197, -0.09468314796686172, -0.22349423170089722, -0.17084546387195587, 0.09591015428304672, -0.17902977764606476, -0.028142273426055908, 0.4191693067550659, 0.0771300345659256, 0.2790106534957886, 0.2466610223054886, 0.1386307328939438, 0.2278119921684265, 0.5182861089706421, -0.27343839406967163, -0.05611692741513252, 0.22615043818950653, 0.3754779100418091, 0.12400421500205994, 0.5647351741790771, -0.2913343906402588, -0.03623348847031593, 0.26694485545158386, 0.12900540232658386, -0.10145575553178787, -0.3140054941177368, 0.049157410860061646, 0.08946321904659271, 0.42194443941116333, -0.14943954348564148, -0.08077897131443024, -0.14366409182548523, -0.14397819340229034, -0.12738050520420074, 0.040591202676296234, 0.2803192734718323, -0.07184071838855743, -0.1872383952140808, -0.5392425656318665, 0.3052915334701538, -0.14862358570098877, 0.2131594568490982, -0.2805245518684387, -0.0034207403659820557, -0.13816343247890472, 0.29280853271484375, -0.047119248658418655, -0.11271293461322784, 0.19308120012283325, -0.12341457605361938, 0.13007575273513794, -0.009825735352933407, -0.14363141357898712, -0.0534907765686512, -0.38959887623786926, -0.31501248478889465, -0.20014813542366028, -0.160264790058136, 0.16648587584495544, 0.1392759084701538, -0.11639561504125595, 0.12807080149650574, 0.1826329529285431, 0.26803353428840637, 0.1057826429605484, 0.32070228457450867, -0.08589236438274384, -0.2895815670490265, -0.0469193272292614, 0.08773323893547058, -0.29622676968574524, -0.4357527196407318, 0.15453419089317322, 0.32529640197753906, 0.24522115290164948, 0.06874248385429382, 0.12985558807849884, -0.32394126057624817, -0.10892283916473389, -0.009586316533386707, 0.07522494345903397, 0.2850382626056671, -0.11867916584014893, 0.24390509724617004, 0.48048293590545654, 0.39720290899276733, -0.15381847321987152, 0.06956236064434052, 0.025072410702705383, 0.03152093663811684, -0.4404953420162201, -0.285698801279068, 0.1534099280834198, -0.1177731603384018, 0.10007032006978989, 0.03743180260062218, 0.04641563445329666, 0.10069668292999268, 0.07349640876054764, -0.18586979806423187, 0.6246296763420105, 0.14764724671840668, -0.19447419047355652, 0.2767925560474396, 0.2709067165851593, 0.5297806262969971, -0.3042983114719391, 0.2565314769744873, -0.5095702409744263, 0.06525279581546783, -0.023091500625014305, -0.014543850906193256, 0.21865473687648773, -0.020722128450870514, -0.21216225624084473, 0.015829091891646385, 0.5923119783401489, -0.08367820084095001, 0.27348780632019043, -0.5791621804237366, 0.09496405720710754, -0.1913350522518158, 0.034152500331401825, 0.06366966664791107, -0.20471526682376862, -0.05235854536294937, 0.38634371757507324, 0.09194983541965485, 0.3154589533805847, 0.16028177738189697, 0.05108363553881645, 0.07987017929553986, -0.22535288333892822, -0.2350507378578186, 0.336323618888855, -0.37685659527778625, 0.092038094997406, -0.017693186178803444, 0.09387907385826111, -0.06380392611026764, 0.11201898753643036, 0.3361778259277344, 0.0326007679104805, -0.12800128757953644, 0.02944871410727501, 0.1963149607181549, -0.16618242859840393, 0.1402871161699295, 0.07735966145992279, 0.19130311906337738, 0.19337497651576996, 0.03500647470355034, -0.015683721750974655, 0.2076537311077118, -0.22167158126831055, 0.17757640779018402, -0.054280370473861694, -0.07471343874931335, 0.07117719203233719, 0.04037807881832123, -0.36989057064056396, -0.012196704745292664, -0.047469694167375565, 0.18646693229675293, -0.2331002950668335, -0.048721496015787125, 0.023635171353816986, 0.08221714198589325, 0.05827927961945534, 0.04792488366365433, 0.00497826375067234, -0.19195683300495148, -0.18220587074756622, -0.13902710378170013, -0.0032417885959148407, 0.0922105610370636, -0.20947688817977905, -0.2617241144180298, -0.05234343558549881, -0.1232488825917244, 0.17830383777618408, 0.058838095515966415, -0.35903647541999817, 0.05102594196796417, 0.019273651763796806, -0.3653304874897003, -0.20136012136936188, 0.17339247465133667, 0.2676691710948944, -0.09962134063243866, -0.04223459213972092, 0.19160327315330505, 0.06328880041837692, 0.11463357508182526, -0.5482739806175232, 0.08346603065729141, 0.17784196138381958, -0.24697014689445496, 0.2043914645910263, 0.2162795215845108, 0.14853382110595703, -0.27550339698791504, -0.19603440165519714, 0.43878644704818726, 0.16041074693202972, 0.3159129023551941, -0.33002549409866333, 0.11610180884599686, -0.07264680415391922, -0.03940185531973839, -0.19063392281532288, -0.040807515382766724, -0.2772817313671112, 0.0730239748954773, -0.13185951113700867, 0.012982203625142574, -0.4569188952445984, -0.04493575543165207, 0.2962619960308075, 0.08876402676105499, 0.1758728325366974, -0.0012162551283836365, -0.3998463451862335, 0.21331259608268738, 0.17712706327438354, -0.6013532876968384, 0.29783856868743896, -0.004361569881439209, 0.1892075538635254, -0.10501866787672043, 0.09558327496051788, -0.16254311800003052, 0.2484443485736847, 0.1140424907207489, 0.09074831008911133, -0.19946491718292236, 0.14185220003128052, -0.10792585462331772, 0.02684575319290161, 0.026369977742433548, -0.1406286656856537, -0.2336929440498352, -0.35895073413848877, 0.2713826298713684, -0.16618333756923676, -0.13451848924160004, -0.40185457468032837, -0.2621854841709137, 0.03605656698346138, -0.0740048810839653, -0.08233382552862167, 0.1507582813501358, 0.18556755781173706, 0.19043487310409546, 0.2634176015853882, -0.18189401924610138, 0.37431591749191284, -0.4130295217037201, -0.035354651510715485, -0.07500942051410675, -0.28679606318473816, -0.09916479885578156, 0.0896558165550232, -0.5234109163284302, 0.09148447960615158, -0.2289901077747345, -0.09319087862968445, -0.25017622113227844, 0.013548292219638824, 0.14182262122631073, -0.2678501009941101, -0.28500327467918396, 0.3085911273956299, 0.19392819702625275, -0.1424819529056549, 0.04066236689686775, 0.26635080575942993, 0.01030721329152584, 0.04690108448266983, 0.1537836343050003, -0.08962015807628632, 0.1165606677532196, -0.06329842656850815, -0.1767411231994629, -0.09661835432052612, -0.07506111264228821, -0.07041659951210022, -0.021759849041700363, 0.06337703764438629, 0.346258282661438, 0.3721838891506195, -0.08989016711711884, -0.05204236879944801, 0.03560919314622879, 0.06296464800834656, -0.3976878225803375, 0.5225034356117249, -0.2261539101600647, -0.36082619428634644, 0.11920170485973358, 0.023855838924646378, 0.06514731049537659, 0.4862689971923828, 0.060522645711898804, 0.049731601029634476, 0.011782122775912285, -0.07894501090049744, 0.25259286165237427, 0.22119691967964172, 0.35102030634880066, -0.09112472832202911, 0.019165800884366035, -0.1647072732448578, 0.015416599810123444, -0.10187137871980667, -0.06325531750917435, 0.6088865995407104, 0.18508407473564148, 0.23994258046150208, 0.09925894439220428, 0.6996648907661438, -0.06113751605153084, -0.7380957007408142, 0.21680673956871033, -0.24250978231430054, 0.19216693937778473, -0.11812164634466171, -0.3539585471153259, 0.39885619282722473, -0.20942005515098572, 0.06437406688928604, -0.08596731722354889, -0.024906877428293228, -0.23915784060955048, -0.09022422134876251, 0.35736149549484253, -0.3172067105770111, -0.15857422351837158, 0.40442991256713867, -0.14470255374908447, 0.2763724625110626, -0.23134246468544006, 0.3245895802974701, -0.2609265446662903, -0.21379289031028748, 0.06005708500742912, 0.44877195358276367, 0.1385136991739273, 0.04172488674521446, -0.334284245967865, -0.2166968435049057, -0.14322680234909058, 0.3568275272846222, 0.11957734078168869, 0.5672699213027954, -0.09803614765405655, -0.07446521520614624, 0.10155647993087769, 0.2413695752620697, 0.830759584903717, 0.04555724561214447, -0.0904589593410492, 0.15144222974777222, -0.3478350341320038, -0.45497822761535645, -0.10222916305065155, -0.05141806602478027, 0.09068089723587036, 0.17169034481048584, 0.1203862875699997, -0.09105332940816879, -0.18333402276039124, -0.005832638591527939, 0.19555465877056122, -0.05512464419007301, 0.034718938171863556, -0.22691111266613007, 0.05875767022371292, -0.12964943051338196, -0.15528327226638794, 0.22118239104747772, 0.02967519871890545, 0.005161826033145189, -0.30812811851501465, -0.32623055577278137, -0.12669971585273743, 0.18248197436332703, -0.1330120861530304, 0.41106683015823364, 0.09925103932619095, -0.17808546125888824, 0.07690712064504623, 0.5561056137084961, 0.4184049367904663, -0.03893890976905823, -0.1187732070684433, 0.08064393699169159, 0.29311060905456543, 0.10643263161182404, 0.30020424723625183, 0.3208248019218445, -0.06187279149889946, -0.43966424465179443, -0.22684860229492188, -0.19381509721279144, -0.3305324614048004, 0.3972930312156677, 0.4080626964569092, 0.09893538802862167, -0.4953550696372986, -0.49217066168785095, 0.3861902058124542, 0.2937195599079132, 0.19583018124103546, 0.20459191501140594, -0.5417593121528625, -0.40096738934516907, 0.07817859202623367, 0.46624186635017395, 0.8556233048439026, -0.037078700959682465, 0.370282918214798, 0.03156561776995659, 0.010806940495967865, 0.17210185527801514, -0.0018886998295783997, 0.41179436445236206, -0.3542814254760742, 0.1392894983291626, -0.164854034781456, -0.31255003809928894, 0.2525230050086975, -0.060203246772289276, -0.24396952986717224, 0.04253619536757469, -0.3494715094566345, 0.1936202496290207, -0.12569347023963928, -0.08285336196422577, -0.04982651770114899, -0.471418172121048, 0.18787403404712677, 0.015452079474925995, -0.08251337707042694, 0.26173895597457886, 0.11116153001785278, -0.16362066566944122, -0.37986040115356445, 0.06169593334197998, -0.07622233778238297, -0.015011643059551716, -0.24596907198429108, -0.16324345767498016, -0.024310410022735596, -0.7298658490180969, 0.05867994949221611, 0.4961579442024231, 0.33455443382263184, -0.16056637465953827, -0.0478365495800972, 0.1396413892507553, 0.44384750723838806, 0.1629004031419754, -0.09901697933673859, -0.34018465876579285, 0.2853407561779022, 0.09737569838762283, 0.18433207273483276, 0.10863815248012543, 0.06814876198768616, 0.21052046120166779, -0.5777894258499146, 0.03725104779005051, 0.30602920055389404, -0.3449508249759674, -0.3229842185974121, -0.19845017790794373, 0.049185048788785934, 0.03816347196698189, 0.028618566691875458, 0.1244892105460167, -0.03890316188335419, 0.20724302530288696, -0.04151230677962303, -0.22646169364452362, 0.13288995623588562, 0.45233139395713806, 0.11298388987779617, -0.35004642605781555, 0.39075639843940735, 0.3549591898918152, -0.044777899980545044, -0.043743960559368134, 0.41669389605522156, 0.6353195905685425, -0.34569674730300903, 0.09949740022420883, -0.10271698236465454, -0.15698707103729248, -0.011073713190853596, 0.5430936217308044, -0.23431716859340668, -0.1309782862663269, -0.23895759880542755, -0.04081706702709198, -0.4308939278125763, 0.01081337034702301, -0.31629857420921326, 0.456630140542984, -0.043222058564424515, 0.3627100884914398, 0.21050570905208588, -0.18734970688819885, -0.14413586258888245, -0.25864869356155396, 0.1723509579896927, 0.3679336607456207, -0.2471824586391449, 0.21876117587089539, -0.12695860862731934, -0.12202289700508118, -0.03625227138400078, 0.026031551882624626, -0.24973976612091064, -0.03339078649878502, -0.057677969336509705, 0.17730601131916046, 0.06661458313465118, -0.11354019492864609, -0.07354690879583359, -0.17366977035999298, -0.13858114182949066, -0.2681717276573181, -0.03771784156560898, 0.11092103272676468, -0.11599935591220856, 0.353161096572876, -0.17836599051952362, 0.23122572898864746, 0.31867676973342896, -0.2700003981590271, -0.10262273252010345, 0.03587159514427185, 0.2229631096124649, 0.060050882399082184, 0.00453167175874114, -0.06155644357204437, -0.2772364318370819, 0.1125919371843338, 0.16520316898822784, 0.25497522950172424, 0.20461755990982056, -0.09999659657478333, 0.10917837917804718, -0.04380689561367035, 0.20418445765972137, 0.10125526785850525, -0.1718703657388687, -0.050829093903303146, 0.060372814536094666, -0.007623609155416489, 0.1006220281124115, 0.14499907195568085, 0.03886927291750908, 0.12528149783611298, -0.08346407115459442, 0.27557802200317383, 0.06655879318714142, 0.3113946318626404, -0.37050777673721313, 0.04514180123806, 0.41785678267478943, -0.24107296764850616, 0.23508626222610474, 0.4640146791934967, 0.014799613505601883, 0.193049818277359, 0.29070472717285156, 0.10934381186962128, -0.1187017634510994, 0.3226965069770813, 0.39451703429222107, 0.8204308152198792, 0.5895953178405762, 0.08376968652009964, 0.2746028006076813, 0.09925709664821625, -0.15360766649246216, -0.2072514295578003, 0.23582398891448975, 0.39196842908859253, 0.018866688013076782, 0.18569323420524597, -0.24079908430576324, -0.48712393641471863, 0.2258823812007904, 0.1217745840549469, -0.19461801648139954, -0.08222351968288422, -0.6648061275482178, 0.011875316500663757, 0.13582652807235718, -0.18665997684001923, -0.17971526086330414, -0.05013806372880936, 0.220590740442276, 0.2597532272338867, -0.10321985185146332, -0.16091258823871613, -0.1724744439125061, 0.06910110265016556, 0.03752904757857323, -0.007329706102609634, 0.16975747048854828, -0.13684643805027008, 0.16176097095012665, 0.24482446908950806, 0.1969081163406372, 0.284953236579895, 0.4870796799659729, -0.16817118227481842, -0.15989406406879425, -0.010553201660513878, -0.19236597418785095, 0.08990161120891571, 0.06671234220266342, 0.03153381496667862, -0.1532079577445984, -0.014956234022974968, 0.008462533354759216, 0.03862767294049263, 0.03146062046289444, -0.09408107399940491, -0.21825940907001495, 0.1676250398159027, 0.30557453632354736, -0.36377719044685364, -0.1490928828716278, -0.09989863634109497, -0.24665629863739014, -0.3483099639415741, -0.26553475856781006, 0.5327389240264893, 0.027895595878362656, 0.12800973653793335, 0.14216776192188263, -0.04215959459543228, 0.048786040395498276, 0.1574120819568634, -0.12155681848526001, 0.0775766521692276, -0.1540934443473816, 0.13596616685390472, -0.08580520749092102, 0.03191046416759491, 0.11847475171089172, -0.38344821333885193, -0.018849391490221024, -0.03916454687714577, 0.24254250526428223, 0.06467486172914505, 0.2020900845527649, -0.09834717214107513, 0.4987447261810303, 0.6146568059921265, -0.13361555337905884, -0.1414809226989746, -0.13041925430297852, 0.37065088748931885, 0.07330819964408875, -0.07746567577123642, 0.021921303123235703, 0.10242748260498047, 0.006507012993097305, -0.34206485748291016, -0.2554904520511627, -0.01998257078230381, 0.30414512753486633, 0.35128262639045715, 0.09328848868608475, 0.3203134536743164, -0.019220542162656784, 0.048409707844257355, -0.2411344051361084, 0.0504152774810791, -0.12760111689567566, 0.009670205414295197, -0.022803064435720444, 0.5810165405273438, -0.22440199553966522, -0.059342700988054276, -0.41364988684654236, 0.4290262460708618, 0.09053143858909607, -0.33885523676872253, -0.08051943778991699, 0.35840025544166565, -0.31732094287872314, -0.2010883092880249, 0.22619517147541046, 0.4100218713283539, 0.15135975182056427, 0.19435712695121765, -0.5254404544830322, -0.4069116413593292, 0.4472021460533142, -0.441707968711853, -0.5069120526313782, 0.02907465398311615, -0.3133937418460846, 0.06790400296449661, 0.49642300605773926, -0.471049964427948, -0.14913369715213776, 0.0015052962116897106, -0.08082769066095352, -0.09160427749156952, -0.09819349646568298, 0.2610398828983307, 0.015110637992620468, -0.25184643268585205, 0.17900733649730682, 0.1764504313468933, -0.022816140204668045, -0.42041611671447754, -0.27535998821258545 ]
https://github.com/huggingface/datasets/issues/2005
Setting to torch format not working with torchvision and MNIST
Okay, that makes sense. Raw images are list of Array2D, hence we get a single tensor when `set_format` is used. But, why should I need to convert the raw images to `torch` format when `map` does this internally? Using `Array3D` did not work with `map` when raw images weren't `set_format`ted to torch type.
Hi I am trying to use `torchvision.transforms` to handle the transformation of the image data in the `mnist` dataset. Assume I have a `transform` variable which contains the `torchvision.transforms` object. A snippet of what I am trying to do: ```python def prepare_features(examples): images = [] labels = [] for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform( np.array(examples["image"][example_idx], dtype=np.uint8) )) else: images.append(torch.tensor(np.array(examples["image"][example_idx], dtype=np.uint8))) labels.append(torch.tensor(examples["label"][example_idx])) output = {"label":labels, "image":images} return output raw_dataset = load_dataset('mnist') train_dataset = raw_dataset.map(prepare_features, batched=True, batch_size=10000) train_dataset.set_format("torch",columns=["image","label"]) ``` After this, I check the type of the following: ```python print(type(train_dataset["train"]["label"])) print(type(train_dataset["train"]["image"][0])) ``` This leads to the following output: ```python <class 'torch.Tensor'> <class 'list'> ``` I use `torch.utils.DataLoader` for batches, the type of `batch["train"]["image"]` is also `<class 'list'>`. I don't understand why only the `label` is converted to a torch tensor, why does the image not get converted? How can I fix this issue? Thanks, Gunjan EDIT: I just checked the shapes, and the types, `batch[image]` is a actually a list of list of tensors. Shape is (1,28,2,28), where `batch_size` is 2. I don't understand why this is happening. Ideally it should be a tensor of shape (2,1,28,28). EDIT 2: Inside `prepare_train_features`, the shape of `images[0]` is `torch.Size([1,28,28])`, the conversion is working. However, the output of the `map` is a list of list of list of list.
53
Setting to torch format not working with torchvision and MNIST Hi I am trying to use `torchvision.transforms` to handle the transformation of the image data in the `mnist` dataset. Assume I have a `transform` variable which contains the `torchvision.transforms` object. A snippet of what I am trying to do: ```python def prepare_features(examples): images = [] labels = [] for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform( np.array(examples["image"][example_idx], dtype=np.uint8) )) else: images.append(torch.tensor(np.array(examples["image"][example_idx], dtype=np.uint8))) labels.append(torch.tensor(examples["label"][example_idx])) output = {"label":labels, "image":images} return output raw_dataset = load_dataset('mnist') train_dataset = raw_dataset.map(prepare_features, batched=True, batch_size=10000) train_dataset.set_format("torch",columns=["image","label"]) ``` After this, I check the type of the following: ```python print(type(train_dataset["train"]["label"])) print(type(train_dataset["train"]["image"][0])) ``` This leads to the following output: ```python <class 'torch.Tensor'> <class 'list'> ``` I use `torch.utils.DataLoader` for batches, the type of `batch["train"]["image"]` is also `<class 'list'>`. I don't understand why only the `label` is converted to a torch tensor, why does the image not get converted? How can I fix this issue? Thanks, Gunjan EDIT: I just checked the shapes, and the types, `batch[image]` is a actually a list of list of tensors. Shape is (1,28,2,28), where `batch_size` is 2. I don't understand why this is happening. Ideally it should be a tensor of shape (2,1,28,28). EDIT 2: Inside `prepare_train_features`, the shape of `images[0]` is `torch.Size([1,28,28])`, the conversion is working. However, the output of the `map` is a list of list of list of list. Okay, that makes sense. Raw images are list of Array2D, hence we get a single tensor when `set_format` is used. But, why should I need to convert the raw images to `torch` format when `map` does this internally? Using `Array3D` did not work with `map` when raw images weren't `set_format`ted to torch type.
[ -0.12737540900707245, -0.3511652648448944, -0.01793275587260723, 0.35360872745513916, 0.4760025143623352, 0.08871380239725113, 0.733028769493103, 0.3804348111152649, 0.06552515923976898, -0.038042545318603516, -0.11115357279777527, 0.38195115327835083, -0.23296885192394257, -0.3339342772960663, 0.03510889783501625, -0.5614942312240601, 0.2225799858570099, -0.09982740879058838, -0.28079813718795776, -0.06134728714823723, -0.2431335300207138, 0.03548943251371384, -0.2184973657131195, -0.10849666595458984, -0.5479357838630676, 0.04409640282392502, -0.019555658102035522, -0.07656855136156082, -0.06229933351278305, -0.13918034732341766, 0.12234671413898468, -0.17449648678302765, 0.4444531500339508, 0.7012937068939209, -0.00012770108878612518, 0.07030172646045685, 0.3642725944519043, -0.1737782508134842, 0.049999114125967026, -0.16101329028606415, 0.040047310292720795, -0.2573830187320709, 0.07277627289295197, -0.09468314796686172, -0.22349423170089722, -0.17084546387195587, 0.09591015428304672, -0.17902977764606476, -0.028142273426055908, 0.4191693067550659, 0.0771300345659256, 0.2790106534957886, 0.2466610223054886, 0.1386307328939438, 0.2278119921684265, 0.5182861089706421, -0.27343839406967163, -0.05611692741513252, 0.22615043818950653, 0.3754779100418091, 0.12400421500205994, 0.5647351741790771, -0.2913343906402588, -0.03623348847031593, 0.26694485545158386, 0.12900540232658386, -0.10145575553178787, -0.3140054941177368, 0.049157410860061646, 0.08946321904659271, 0.42194443941116333, -0.14943954348564148, -0.08077897131443024, -0.14366409182548523, -0.14397819340229034, -0.12738050520420074, 0.040591202676296234, 0.2803192734718323, -0.07184071838855743, -0.1872383952140808, -0.5392425656318665, 0.3052915334701538, -0.14862358570098877, 0.2131594568490982, -0.2805245518684387, -0.0034207403659820557, -0.13816343247890472, 0.29280853271484375, -0.047119248658418655, -0.11271293461322784, 0.19308120012283325, -0.12341457605361938, 0.13007575273513794, -0.009825735352933407, -0.14363141357898712, -0.0534907765686512, -0.38959887623786926, -0.31501248478889465, -0.20014813542366028, -0.160264790058136, 0.16648587584495544, 0.1392759084701538, -0.11639561504125595, 0.12807080149650574, 0.1826329529285431, 0.26803353428840637, 0.1057826429605484, 0.32070228457450867, -0.08589236438274384, -0.2895815670490265, -0.0469193272292614, 0.08773323893547058, -0.29622676968574524, -0.4357527196407318, 0.15453419089317322, 0.32529640197753906, 0.24522115290164948, 0.06874248385429382, 0.12985558807849884, -0.32394126057624817, -0.10892283916473389, -0.009586316533386707, 0.07522494345903397, 0.2850382626056671, -0.11867916584014893, 0.24390509724617004, 0.48048293590545654, 0.39720290899276733, -0.15381847321987152, 0.06956236064434052, 0.025072410702705383, 0.03152093663811684, -0.4404953420162201, -0.285698801279068, 0.1534099280834198, -0.1177731603384018, 0.10007032006978989, 0.03743180260062218, 0.04641563445329666, 0.10069668292999268, 0.07349640876054764, -0.18586979806423187, 0.6246296763420105, 0.14764724671840668, -0.19447419047355652, 0.2767925560474396, 0.2709067165851593, 0.5297806262969971, -0.3042983114719391, 0.2565314769744873, -0.5095702409744263, 0.06525279581546783, -0.023091500625014305, -0.014543850906193256, 0.21865473687648773, -0.020722128450870514, -0.21216225624084473, 0.015829091891646385, 0.5923119783401489, -0.08367820084095001, 0.27348780632019043, -0.5791621804237366, 0.09496405720710754, -0.1913350522518158, 0.034152500331401825, 0.06366966664791107, -0.20471526682376862, -0.05235854536294937, 0.38634371757507324, 0.09194983541965485, 0.3154589533805847, 0.16028177738189697, 0.05108363553881645, 0.07987017929553986, -0.22535288333892822, -0.2350507378578186, 0.336323618888855, -0.37685659527778625, 0.092038094997406, -0.017693186178803444, 0.09387907385826111, -0.06380392611026764, 0.11201898753643036, 0.3361778259277344, 0.0326007679104805, -0.12800128757953644, 0.02944871410727501, 0.1963149607181549, -0.16618242859840393, 0.1402871161699295, 0.07735966145992279, 0.19130311906337738, 0.19337497651576996, 0.03500647470355034, -0.015683721750974655, 0.2076537311077118, -0.22167158126831055, 0.17757640779018402, -0.054280370473861694, -0.07471343874931335, 0.07117719203233719, 0.04037807881832123, -0.36989057064056396, -0.012196704745292664, -0.047469694167375565, 0.18646693229675293, -0.2331002950668335, -0.048721496015787125, 0.023635171353816986, 0.08221714198589325, 0.05827927961945534, 0.04792488366365433, 0.00497826375067234, -0.19195683300495148, -0.18220587074756622, -0.13902710378170013, -0.0032417885959148407, 0.0922105610370636, -0.20947688817977905, -0.2617241144180298, -0.05234343558549881, -0.1232488825917244, 0.17830383777618408, 0.058838095515966415, -0.35903647541999817, 0.05102594196796417, 0.019273651763796806, -0.3653304874897003, -0.20136012136936188, 0.17339247465133667, 0.2676691710948944, -0.09962134063243866, -0.04223459213972092, 0.19160327315330505, 0.06328880041837692, 0.11463357508182526, -0.5482739806175232, 0.08346603065729141, 0.17784196138381958, -0.24697014689445496, 0.2043914645910263, 0.2162795215845108, 0.14853382110595703, -0.27550339698791504, -0.19603440165519714, 0.43878644704818726, 0.16041074693202972, 0.3159129023551941, -0.33002549409866333, 0.11610180884599686, -0.07264680415391922, -0.03940185531973839, -0.19063392281532288, -0.040807515382766724, -0.2772817313671112, 0.0730239748954773, -0.13185951113700867, 0.012982203625142574, -0.4569188952445984, -0.04493575543165207, 0.2962619960308075, 0.08876402676105499, 0.1758728325366974, -0.0012162551283836365, -0.3998463451862335, 0.21331259608268738, 0.17712706327438354, -0.6013532876968384, 0.29783856868743896, -0.004361569881439209, 0.1892075538635254, -0.10501866787672043, 0.09558327496051788, -0.16254311800003052, 0.2484443485736847, 0.1140424907207489, 0.09074831008911133, -0.19946491718292236, 0.14185220003128052, -0.10792585462331772, 0.02684575319290161, 0.026369977742433548, -0.1406286656856537, -0.2336929440498352, -0.35895073413848877, 0.2713826298713684, -0.16618333756923676, -0.13451848924160004, -0.40185457468032837, -0.2621854841709137, 0.03605656698346138, -0.0740048810839653, -0.08233382552862167, 0.1507582813501358, 0.18556755781173706, 0.19043487310409546, 0.2634176015853882, -0.18189401924610138, 0.37431591749191284, -0.4130295217037201, -0.035354651510715485, -0.07500942051410675, -0.28679606318473816, -0.09916479885578156, 0.0896558165550232, -0.5234109163284302, 0.09148447960615158, -0.2289901077747345, -0.09319087862968445, -0.25017622113227844, 0.013548292219638824, 0.14182262122631073, -0.2678501009941101, -0.28500327467918396, 0.3085911273956299, 0.19392819702625275, -0.1424819529056549, 0.04066236689686775, 0.26635080575942993, 0.01030721329152584, 0.04690108448266983, 0.1537836343050003, -0.08962015807628632, 0.1165606677532196, -0.06329842656850815, -0.1767411231994629, -0.09661835432052612, -0.07506111264228821, -0.07041659951210022, -0.021759849041700363, 0.06337703764438629, 0.346258282661438, 0.3721838891506195, -0.08989016711711884, -0.05204236879944801, 0.03560919314622879, 0.06296464800834656, -0.3976878225803375, 0.5225034356117249, -0.2261539101600647, -0.36082619428634644, 0.11920170485973358, 0.023855838924646378, 0.06514731049537659, 0.4862689971923828, 0.060522645711898804, 0.049731601029634476, 0.011782122775912285, -0.07894501090049744, 0.25259286165237427, 0.22119691967964172, 0.35102030634880066, -0.09112472832202911, 0.019165800884366035, -0.1647072732448578, 0.015416599810123444, -0.10187137871980667, -0.06325531750917435, 0.6088865995407104, 0.18508407473564148, 0.23994258046150208, 0.09925894439220428, 0.6996648907661438, -0.06113751605153084, -0.7380957007408142, 0.21680673956871033, -0.24250978231430054, 0.19216693937778473, -0.11812164634466171, -0.3539585471153259, 0.39885619282722473, -0.20942005515098572, 0.06437406688928604, -0.08596731722354889, -0.024906877428293228, -0.23915784060955048, -0.09022422134876251, 0.35736149549484253, -0.3172067105770111, -0.15857422351837158, 0.40442991256713867, -0.14470255374908447, 0.2763724625110626, -0.23134246468544006, 0.3245895802974701, -0.2609265446662903, -0.21379289031028748, 0.06005708500742912, 0.44877195358276367, 0.1385136991739273, 0.04172488674521446, -0.334284245967865, -0.2166968435049057, -0.14322680234909058, 0.3568275272846222, 0.11957734078168869, 0.5672699213027954, -0.09803614765405655, -0.07446521520614624, 0.10155647993087769, 0.2413695752620697, 0.830759584903717, 0.04555724561214447, -0.0904589593410492, 0.15144222974777222, -0.3478350341320038, -0.45497822761535645, -0.10222916305065155, -0.05141806602478027, 0.09068089723587036, 0.17169034481048584, 0.1203862875699997, -0.09105332940816879, -0.18333402276039124, -0.005832638591527939, 0.19555465877056122, -0.05512464419007301, 0.034718938171863556, -0.22691111266613007, 0.05875767022371292, -0.12964943051338196, -0.15528327226638794, 0.22118239104747772, 0.02967519871890545, 0.005161826033145189, -0.30812811851501465, -0.32623055577278137, -0.12669971585273743, 0.18248197436332703, -0.1330120861530304, 0.41106683015823364, 0.09925103932619095, -0.17808546125888824, 0.07690712064504623, 0.5561056137084961, 0.4184049367904663, -0.03893890976905823, -0.1187732070684433, 0.08064393699169159, 0.29311060905456543, 0.10643263161182404, 0.30020424723625183, 0.3208248019218445, -0.06187279149889946, -0.43966424465179443, -0.22684860229492188, -0.19381509721279144, -0.3305324614048004, 0.3972930312156677, 0.4080626964569092, 0.09893538802862167, -0.4953550696372986, -0.49217066168785095, 0.3861902058124542, 0.2937195599079132, 0.19583018124103546, 0.20459191501140594, -0.5417593121528625, -0.40096738934516907, 0.07817859202623367, 0.46624186635017395, 0.8556233048439026, -0.037078700959682465, 0.370282918214798, 0.03156561776995659, 0.010806940495967865, 0.17210185527801514, -0.0018886998295783997, 0.41179436445236206, -0.3542814254760742, 0.1392894983291626, -0.164854034781456, -0.31255003809928894, 0.2525230050086975, -0.060203246772289276, -0.24396952986717224, 0.04253619536757469, -0.3494715094566345, 0.1936202496290207, -0.12569347023963928, -0.08285336196422577, -0.04982651770114899, -0.471418172121048, 0.18787403404712677, 0.015452079474925995, -0.08251337707042694, 0.26173895597457886, 0.11116153001785278, -0.16362066566944122, -0.37986040115356445, 0.06169593334197998, -0.07622233778238297, -0.015011643059551716, -0.24596907198429108, -0.16324345767498016, -0.024310410022735596, -0.7298658490180969, 0.05867994949221611, 0.4961579442024231, 0.33455443382263184, -0.16056637465953827, -0.0478365495800972, 0.1396413892507553, 0.44384750723838806, 0.1629004031419754, -0.09901697933673859, -0.34018465876579285, 0.2853407561779022, 0.09737569838762283, 0.18433207273483276, 0.10863815248012543, 0.06814876198768616, 0.21052046120166779, -0.5777894258499146, 0.03725104779005051, 0.30602920055389404, -0.3449508249759674, -0.3229842185974121, -0.19845017790794373, 0.049185048788785934, 0.03816347196698189, 0.028618566691875458, 0.1244892105460167, -0.03890316188335419, 0.20724302530288696, -0.04151230677962303, -0.22646169364452362, 0.13288995623588562, 0.45233139395713806, 0.11298388987779617, -0.35004642605781555, 0.39075639843940735, 0.3549591898918152, -0.044777899980545044, -0.043743960559368134, 0.41669389605522156, 0.6353195905685425, -0.34569674730300903, 0.09949740022420883, -0.10271698236465454, -0.15698707103729248, -0.011073713190853596, 0.5430936217308044, -0.23431716859340668, -0.1309782862663269, -0.23895759880542755, -0.04081706702709198, -0.4308939278125763, 0.01081337034702301, -0.31629857420921326, 0.456630140542984, -0.043222058564424515, 0.3627100884914398, 0.21050570905208588, -0.18734970688819885, -0.14413586258888245, -0.25864869356155396, 0.1723509579896927, 0.3679336607456207, -0.2471824586391449, 0.21876117587089539, -0.12695860862731934, -0.12202289700508118, -0.03625227138400078, 0.026031551882624626, -0.24973976612091064, -0.03339078649878502, -0.057677969336509705, 0.17730601131916046, 0.06661458313465118, -0.11354019492864609, -0.07354690879583359, -0.17366977035999298, -0.13858114182949066, -0.2681717276573181, -0.03771784156560898, 0.11092103272676468, -0.11599935591220856, 0.353161096572876, -0.17836599051952362, 0.23122572898864746, 0.31867676973342896, -0.2700003981590271, -0.10262273252010345, 0.03587159514427185, 0.2229631096124649, 0.060050882399082184, 0.00453167175874114, -0.06155644357204437, -0.2772364318370819, 0.1125919371843338, 0.16520316898822784, 0.25497522950172424, 0.20461755990982056, -0.09999659657478333, 0.10917837917804718, -0.04380689561367035, 0.20418445765972137, 0.10125526785850525, -0.1718703657388687, -0.050829093903303146, 0.060372814536094666, -0.007623609155416489, 0.1006220281124115, 0.14499907195568085, 0.03886927291750908, 0.12528149783611298, -0.08346407115459442, 0.27557802200317383, 0.06655879318714142, 0.3113946318626404, -0.37050777673721313, 0.04514180123806, 0.41785678267478943, -0.24107296764850616, 0.23508626222610474, 0.4640146791934967, 0.014799613505601883, 0.193049818277359, 0.29070472717285156, 0.10934381186962128, -0.1187017634510994, 0.3226965069770813, 0.39451703429222107, 0.8204308152198792, 0.5895953178405762, 0.08376968652009964, 0.2746028006076813, 0.09925709664821625, -0.15360766649246216, -0.2072514295578003, 0.23582398891448975, 0.39196842908859253, 0.018866688013076782, 0.18569323420524597, -0.24079908430576324, -0.48712393641471863, 0.2258823812007904, 0.1217745840549469, -0.19461801648139954, -0.08222351968288422, -0.6648061275482178, 0.011875316500663757, 0.13582652807235718, -0.18665997684001923, -0.17971526086330414, -0.05013806372880936, 0.220590740442276, 0.2597532272338867, -0.10321985185146332, -0.16091258823871613, -0.1724744439125061, 0.06910110265016556, 0.03752904757857323, -0.007329706102609634, 0.16975747048854828, -0.13684643805027008, 0.16176097095012665, 0.24482446908950806, 0.1969081163406372, 0.284953236579895, 0.4870796799659729, -0.16817118227481842, -0.15989406406879425, -0.010553201660513878, -0.19236597418785095, 0.08990161120891571, 0.06671234220266342, 0.03153381496667862, -0.1532079577445984, -0.014956234022974968, 0.008462533354759216, 0.03862767294049263, 0.03146062046289444, -0.09408107399940491, -0.21825940907001495, 0.1676250398159027, 0.30557453632354736, -0.36377719044685364, -0.1490928828716278, -0.09989863634109497, -0.24665629863739014, -0.3483099639415741, -0.26553475856781006, 0.5327389240264893, 0.027895595878362656, 0.12800973653793335, 0.14216776192188263, -0.04215959459543228, 0.048786040395498276, 0.1574120819568634, -0.12155681848526001, 0.0775766521692276, -0.1540934443473816, 0.13596616685390472, -0.08580520749092102, 0.03191046416759491, 0.11847475171089172, -0.38344821333885193, -0.018849391490221024, -0.03916454687714577, 0.24254250526428223, 0.06467486172914505, 0.2020900845527649, -0.09834717214107513, 0.4987447261810303, 0.6146568059921265, -0.13361555337905884, -0.1414809226989746, -0.13041925430297852, 0.37065088748931885, 0.07330819964408875, -0.07746567577123642, 0.021921303123235703, 0.10242748260498047, 0.006507012993097305, -0.34206485748291016, -0.2554904520511627, -0.01998257078230381, 0.30414512753486633, 0.35128262639045715, 0.09328848868608475, 0.3203134536743164, -0.019220542162656784, 0.048409707844257355, -0.2411344051361084, 0.0504152774810791, -0.12760111689567566, 0.009670205414295197, -0.022803064435720444, 0.5810165405273438, -0.22440199553966522, -0.059342700988054276, -0.41364988684654236, 0.4290262460708618, 0.09053143858909607, -0.33885523676872253, -0.08051943778991699, 0.35840025544166565, -0.31732094287872314, -0.2010883092880249, 0.22619517147541046, 0.4100218713283539, 0.15135975182056427, 0.19435712695121765, -0.5254404544830322, -0.4069116413593292, 0.4472021460533142, -0.441707968711853, -0.5069120526313782, 0.02907465398311615, -0.3133937418460846, 0.06790400296449661, 0.49642300605773926, -0.471049964427948, -0.14913369715213776, 0.0015052962116897106, -0.08082769066095352, -0.09160427749156952, -0.09819349646568298, 0.2610398828983307, 0.015110637992620468, -0.25184643268585205, 0.17900733649730682, 0.1764504313468933, -0.022816140204668045, -0.42041611671447754, -0.27535998821258545 ]
https://github.com/huggingface/datasets/issues/2005
Setting to torch format not working with torchvision and MNIST
I understand that `map` needs to know what kind of output tensors are expected, and thus converting the raw dataset to `torch` format is necessary. Closing the issue since it is resolved.
Hi I am trying to use `torchvision.transforms` to handle the transformation of the image data in the `mnist` dataset. Assume I have a `transform` variable which contains the `torchvision.transforms` object. A snippet of what I am trying to do: ```python def prepare_features(examples): images = [] labels = [] for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform( np.array(examples["image"][example_idx], dtype=np.uint8) )) else: images.append(torch.tensor(np.array(examples["image"][example_idx], dtype=np.uint8))) labels.append(torch.tensor(examples["label"][example_idx])) output = {"label":labels, "image":images} return output raw_dataset = load_dataset('mnist') train_dataset = raw_dataset.map(prepare_features, batched=True, batch_size=10000) train_dataset.set_format("torch",columns=["image","label"]) ``` After this, I check the type of the following: ```python print(type(train_dataset["train"]["label"])) print(type(train_dataset["train"]["image"][0])) ``` This leads to the following output: ```python <class 'torch.Tensor'> <class 'list'> ``` I use `torch.utils.DataLoader` for batches, the type of `batch["train"]["image"]` is also `<class 'list'>`. I don't understand why only the `label` is converted to a torch tensor, why does the image not get converted? How can I fix this issue? Thanks, Gunjan EDIT: I just checked the shapes, and the types, `batch[image]` is a actually a list of list of tensors. Shape is (1,28,2,28), where `batch_size` is 2. I don't understand why this is happening. Ideally it should be a tensor of shape (2,1,28,28). EDIT 2: Inside `prepare_train_features`, the shape of `images[0]` is `torch.Size([1,28,28])`, the conversion is working. However, the output of the `map` is a list of list of list of list.
32
Setting to torch format not working with torchvision and MNIST Hi I am trying to use `torchvision.transforms` to handle the transformation of the image data in the `mnist` dataset. Assume I have a `transform` variable which contains the `torchvision.transforms` object. A snippet of what I am trying to do: ```python def prepare_features(examples): images = [] labels = [] for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform( np.array(examples["image"][example_idx], dtype=np.uint8) )) else: images.append(torch.tensor(np.array(examples["image"][example_idx], dtype=np.uint8))) labels.append(torch.tensor(examples["label"][example_idx])) output = {"label":labels, "image":images} return output raw_dataset = load_dataset('mnist') train_dataset = raw_dataset.map(prepare_features, batched=True, batch_size=10000) train_dataset.set_format("torch",columns=["image","label"]) ``` After this, I check the type of the following: ```python print(type(train_dataset["train"]["label"])) print(type(train_dataset["train"]["image"][0])) ``` This leads to the following output: ```python <class 'torch.Tensor'> <class 'list'> ``` I use `torch.utils.DataLoader` for batches, the type of `batch["train"]["image"]` is also `<class 'list'>`. I don't understand why only the `label` is converted to a torch tensor, why does the image not get converted? How can I fix this issue? Thanks, Gunjan EDIT: I just checked the shapes, and the types, `batch[image]` is a actually a list of list of tensors. Shape is (1,28,2,28), where `batch_size` is 2. I don't understand why this is happening. Ideally it should be a tensor of shape (2,1,28,28). EDIT 2: Inside `prepare_train_features`, the shape of `images[0]` is `torch.Size([1,28,28])`, the conversion is working. However, the output of the `map` is a list of list of list of list. I understand that `map` needs to know what kind of output tensors are expected, and thus converting the raw dataset to `torch` format is necessary. Closing the issue since it is resolved.
[ -0.12737540900707245, -0.3511652648448944, -0.01793275587260723, 0.35360872745513916, 0.4760025143623352, 0.08871380239725113, 0.733028769493103, 0.3804348111152649, 0.06552515923976898, -0.038042545318603516, -0.11115357279777527, 0.38195115327835083, -0.23296885192394257, -0.3339342772960663, 0.03510889783501625, -0.5614942312240601, 0.2225799858570099, -0.09982740879058838, -0.28079813718795776, -0.06134728714823723, -0.2431335300207138, 0.03548943251371384, -0.2184973657131195, -0.10849666595458984, -0.5479357838630676, 0.04409640282392502, -0.019555658102035522, -0.07656855136156082, -0.06229933351278305, -0.13918034732341766, 0.12234671413898468, -0.17449648678302765, 0.4444531500339508, 0.7012937068939209, -0.00012770108878612518, 0.07030172646045685, 0.3642725944519043, -0.1737782508134842, 0.049999114125967026, -0.16101329028606415, 0.040047310292720795, -0.2573830187320709, 0.07277627289295197, -0.09468314796686172, -0.22349423170089722, -0.17084546387195587, 0.09591015428304672, -0.17902977764606476, -0.028142273426055908, 0.4191693067550659, 0.0771300345659256, 0.2790106534957886, 0.2466610223054886, 0.1386307328939438, 0.2278119921684265, 0.5182861089706421, -0.27343839406967163, -0.05611692741513252, 0.22615043818950653, 0.3754779100418091, 0.12400421500205994, 0.5647351741790771, -0.2913343906402588, -0.03623348847031593, 0.26694485545158386, 0.12900540232658386, -0.10145575553178787, -0.3140054941177368, 0.049157410860061646, 0.08946321904659271, 0.42194443941116333, -0.14943954348564148, -0.08077897131443024, -0.14366409182548523, -0.14397819340229034, -0.12738050520420074, 0.040591202676296234, 0.2803192734718323, -0.07184071838855743, -0.1872383952140808, -0.5392425656318665, 0.3052915334701538, -0.14862358570098877, 0.2131594568490982, -0.2805245518684387, -0.0034207403659820557, -0.13816343247890472, 0.29280853271484375, -0.047119248658418655, -0.11271293461322784, 0.19308120012283325, -0.12341457605361938, 0.13007575273513794, -0.009825735352933407, -0.14363141357898712, -0.0534907765686512, -0.38959887623786926, -0.31501248478889465, -0.20014813542366028, -0.160264790058136, 0.16648587584495544, 0.1392759084701538, -0.11639561504125595, 0.12807080149650574, 0.1826329529285431, 0.26803353428840637, 0.1057826429605484, 0.32070228457450867, -0.08589236438274384, -0.2895815670490265, -0.0469193272292614, 0.08773323893547058, -0.29622676968574524, -0.4357527196407318, 0.15453419089317322, 0.32529640197753906, 0.24522115290164948, 0.06874248385429382, 0.12985558807849884, -0.32394126057624817, -0.10892283916473389, -0.009586316533386707, 0.07522494345903397, 0.2850382626056671, -0.11867916584014893, 0.24390509724617004, 0.48048293590545654, 0.39720290899276733, -0.15381847321987152, 0.06956236064434052, 0.025072410702705383, 0.03152093663811684, -0.4404953420162201, -0.285698801279068, 0.1534099280834198, -0.1177731603384018, 0.10007032006978989, 0.03743180260062218, 0.04641563445329666, 0.10069668292999268, 0.07349640876054764, -0.18586979806423187, 0.6246296763420105, 0.14764724671840668, -0.19447419047355652, 0.2767925560474396, 0.2709067165851593, 0.5297806262969971, -0.3042983114719391, 0.2565314769744873, -0.5095702409744263, 0.06525279581546783, -0.023091500625014305, -0.014543850906193256, 0.21865473687648773, -0.020722128450870514, -0.21216225624084473, 0.015829091891646385, 0.5923119783401489, -0.08367820084095001, 0.27348780632019043, -0.5791621804237366, 0.09496405720710754, -0.1913350522518158, 0.034152500331401825, 0.06366966664791107, -0.20471526682376862, -0.05235854536294937, 0.38634371757507324, 0.09194983541965485, 0.3154589533805847, 0.16028177738189697, 0.05108363553881645, 0.07987017929553986, -0.22535288333892822, -0.2350507378578186, 0.336323618888855, -0.37685659527778625, 0.092038094997406, -0.017693186178803444, 0.09387907385826111, -0.06380392611026764, 0.11201898753643036, 0.3361778259277344, 0.0326007679104805, -0.12800128757953644, 0.02944871410727501, 0.1963149607181549, -0.16618242859840393, 0.1402871161699295, 0.07735966145992279, 0.19130311906337738, 0.19337497651576996, 0.03500647470355034, -0.015683721750974655, 0.2076537311077118, -0.22167158126831055, 0.17757640779018402, -0.054280370473861694, -0.07471343874931335, 0.07117719203233719, 0.04037807881832123, -0.36989057064056396, -0.012196704745292664, -0.047469694167375565, 0.18646693229675293, -0.2331002950668335, -0.048721496015787125, 0.023635171353816986, 0.08221714198589325, 0.05827927961945534, 0.04792488366365433, 0.00497826375067234, -0.19195683300495148, -0.18220587074756622, -0.13902710378170013, -0.0032417885959148407, 0.0922105610370636, -0.20947688817977905, -0.2617241144180298, -0.05234343558549881, -0.1232488825917244, 0.17830383777618408, 0.058838095515966415, -0.35903647541999817, 0.05102594196796417, 0.019273651763796806, -0.3653304874897003, -0.20136012136936188, 0.17339247465133667, 0.2676691710948944, -0.09962134063243866, -0.04223459213972092, 0.19160327315330505, 0.06328880041837692, 0.11463357508182526, -0.5482739806175232, 0.08346603065729141, 0.17784196138381958, -0.24697014689445496, 0.2043914645910263, 0.2162795215845108, 0.14853382110595703, -0.27550339698791504, -0.19603440165519714, 0.43878644704818726, 0.16041074693202972, 0.3159129023551941, -0.33002549409866333, 0.11610180884599686, -0.07264680415391922, -0.03940185531973839, -0.19063392281532288, -0.040807515382766724, -0.2772817313671112, 0.0730239748954773, -0.13185951113700867, 0.012982203625142574, -0.4569188952445984, -0.04493575543165207, 0.2962619960308075, 0.08876402676105499, 0.1758728325366974, -0.0012162551283836365, -0.3998463451862335, 0.21331259608268738, 0.17712706327438354, -0.6013532876968384, 0.29783856868743896, -0.004361569881439209, 0.1892075538635254, -0.10501866787672043, 0.09558327496051788, -0.16254311800003052, 0.2484443485736847, 0.1140424907207489, 0.09074831008911133, -0.19946491718292236, 0.14185220003128052, -0.10792585462331772, 0.02684575319290161, 0.026369977742433548, -0.1406286656856537, -0.2336929440498352, -0.35895073413848877, 0.2713826298713684, -0.16618333756923676, -0.13451848924160004, -0.40185457468032837, -0.2621854841709137, 0.03605656698346138, -0.0740048810839653, -0.08233382552862167, 0.1507582813501358, 0.18556755781173706, 0.19043487310409546, 0.2634176015853882, -0.18189401924610138, 0.37431591749191284, -0.4130295217037201, -0.035354651510715485, -0.07500942051410675, -0.28679606318473816, -0.09916479885578156, 0.0896558165550232, -0.5234109163284302, 0.09148447960615158, -0.2289901077747345, -0.09319087862968445, -0.25017622113227844, 0.013548292219638824, 0.14182262122631073, -0.2678501009941101, -0.28500327467918396, 0.3085911273956299, 0.19392819702625275, -0.1424819529056549, 0.04066236689686775, 0.26635080575942993, 0.01030721329152584, 0.04690108448266983, 0.1537836343050003, -0.08962015807628632, 0.1165606677532196, -0.06329842656850815, -0.1767411231994629, -0.09661835432052612, -0.07506111264228821, -0.07041659951210022, -0.021759849041700363, 0.06337703764438629, 0.346258282661438, 0.3721838891506195, -0.08989016711711884, -0.05204236879944801, 0.03560919314622879, 0.06296464800834656, -0.3976878225803375, 0.5225034356117249, -0.2261539101600647, -0.36082619428634644, 0.11920170485973358, 0.023855838924646378, 0.06514731049537659, 0.4862689971923828, 0.060522645711898804, 0.049731601029634476, 0.011782122775912285, -0.07894501090049744, 0.25259286165237427, 0.22119691967964172, 0.35102030634880066, -0.09112472832202911, 0.019165800884366035, -0.1647072732448578, 0.015416599810123444, -0.10187137871980667, -0.06325531750917435, 0.6088865995407104, 0.18508407473564148, 0.23994258046150208, 0.09925894439220428, 0.6996648907661438, -0.06113751605153084, -0.7380957007408142, 0.21680673956871033, -0.24250978231430054, 0.19216693937778473, -0.11812164634466171, -0.3539585471153259, 0.39885619282722473, -0.20942005515098572, 0.06437406688928604, -0.08596731722354889, -0.024906877428293228, -0.23915784060955048, -0.09022422134876251, 0.35736149549484253, -0.3172067105770111, -0.15857422351837158, 0.40442991256713867, -0.14470255374908447, 0.2763724625110626, -0.23134246468544006, 0.3245895802974701, -0.2609265446662903, -0.21379289031028748, 0.06005708500742912, 0.44877195358276367, 0.1385136991739273, 0.04172488674521446, -0.334284245967865, -0.2166968435049057, -0.14322680234909058, 0.3568275272846222, 0.11957734078168869, 0.5672699213027954, -0.09803614765405655, -0.07446521520614624, 0.10155647993087769, 0.2413695752620697, 0.830759584903717, 0.04555724561214447, -0.0904589593410492, 0.15144222974777222, -0.3478350341320038, -0.45497822761535645, -0.10222916305065155, -0.05141806602478027, 0.09068089723587036, 0.17169034481048584, 0.1203862875699997, -0.09105332940816879, -0.18333402276039124, -0.005832638591527939, 0.19555465877056122, -0.05512464419007301, 0.034718938171863556, -0.22691111266613007, 0.05875767022371292, -0.12964943051338196, -0.15528327226638794, 0.22118239104747772, 0.02967519871890545, 0.005161826033145189, -0.30812811851501465, -0.32623055577278137, -0.12669971585273743, 0.18248197436332703, -0.1330120861530304, 0.41106683015823364, 0.09925103932619095, -0.17808546125888824, 0.07690712064504623, 0.5561056137084961, 0.4184049367904663, -0.03893890976905823, -0.1187732070684433, 0.08064393699169159, 0.29311060905456543, 0.10643263161182404, 0.30020424723625183, 0.3208248019218445, -0.06187279149889946, -0.43966424465179443, -0.22684860229492188, -0.19381509721279144, -0.3305324614048004, 0.3972930312156677, 0.4080626964569092, 0.09893538802862167, -0.4953550696372986, -0.49217066168785095, 0.3861902058124542, 0.2937195599079132, 0.19583018124103546, 0.20459191501140594, -0.5417593121528625, -0.40096738934516907, 0.07817859202623367, 0.46624186635017395, 0.8556233048439026, -0.037078700959682465, 0.370282918214798, 0.03156561776995659, 0.010806940495967865, 0.17210185527801514, -0.0018886998295783997, 0.41179436445236206, -0.3542814254760742, 0.1392894983291626, -0.164854034781456, -0.31255003809928894, 0.2525230050086975, -0.060203246772289276, -0.24396952986717224, 0.04253619536757469, -0.3494715094566345, 0.1936202496290207, -0.12569347023963928, -0.08285336196422577, -0.04982651770114899, -0.471418172121048, 0.18787403404712677, 0.015452079474925995, -0.08251337707042694, 0.26173895597457886, 0.11116153001785278, -0.16362066566944122, -0.37986040115356445, 0.06169593334197998, -0.07622233778238297, -0.015011643059551716, -0.24596907198429108, -0.16324345767498016, -0.024310410022735596, -0.7298658490180969, 0.05867994949221611, 0.4961579442024231, 0.33455443382263184, -0.16056637465953827, -0.0478365495800972, 0.1396413892507553, 0.44384750723838806, 0.1629004031419754, -0.09901697933673859, -0.34018465876579285, 0.2853407561779022, 0.09737569838762283, 0.18433207273483276, 0.10863815248012543, 0.06814876198768616, 0.21052046120166779, -0.5777894258499146, 0.03725104779005051, 0.30602920055389404, -0.3449508249759674, -0.3229842185974121, -0.19845017790794373, 0.049185048788785934, 0.03816347196698189, 0.028618566691875458, 0.1244892105460167, -0.03890316188335419, 0.20724302530288696, -0.04151230677962303, -0.22646169364452362, 0.13288995623588562, 0.45233139395713806, 0.11298388987779617, -0.35004642605781555, 0.39075639843940735, 0.3549591898918152, -0.044777899980545044, -0.043743960559368134, 0.41669389605522156, 0.6353195905685425, -0.34569674730300903, 0.09949740022420883, -0.10271698236465454, -0.15698707103729248, -0.011073713190853596, 0.5430936217308044, -0.23431716859340668, -0.1309782862663269, -0.23895759880542755, -0.04081706702709198, -0.4308939278125763, 0.01081337034702301, -0.31629857420921326, 0.456630140542984, -0.043222058564424515, 0.3627100884914398, 0.21050570905208588, -0.18734970688819885, -0.14413586258888245, -0.25864869356155396, 0.1723509579896927, 0.3679336607456207, -0.2471824586391449, 0.21876117587089539, -0.12695860862731934, -0.12202289700508118, -0.03625227138400078, 0.026031551882624626, -0.24973976612091064, -0.03339078649878502, -0.057677969336509705, 0.17730601131916046, 0.06661458313465118, -0.11354019492864609, -0.07354690879583359, -0.17366977035999298, -0.13858114182949066, -0.2681717276573181, -0.03771784156560898, 0.11092103272676468, -0.11599935591220856, 0.353161096572876, -0.17836599051952362, 0.23122572898864746, 0.31867676973342896, -0.2700003981590271, -0.10262273252010345, 0.03587159514427185, 0.2229631096124649, 0.060050882399082184, 0.00453167175874114, -0.06155644357204437, -0.2772364318370819, 0.1125919371843338, 0.16520316898822784, 0.25497522950172424, 0.20461755990982056, -0.09999659657478333, 0.10917837917804718, -0.04380689561367035, 0.20418445765972137, 0.10125526785850525, -0.1718703657388687, -0.050829093903303146, 0.060372814536094666, -0.007623609155416489, 0.1006220281124115, 0.14499907195568085, 0.03886927291750908, 0.12528149783611298, -0.08346407115459442, 0.27557802200317383, 0.06655879318714142, 0.3113946318626404, -0.37050777673721313, 0.04514180123806, 0.41785678267478943, -0.24107296764850616, 0.23508626222610474, 0.4640146791934967, 0.014799613505601883, 0.193049818277359, 0.29070472717285156, 0.10934381186962128, -0.1187017634510994, 0.3226965069770813, 0.39451703429222107, 0.8204308152198792, 0.5895953178405762, 0.08376968652009964, 0.2746028006076813, 0.09925709664821625, -0.15360766649246216, -0.2072514295578003, 0.23582398891448975, 0.39196842908859253, 0.018866688013076782, 0.18569323420524597, -0.24079908430576324, -0.48712393641471863, 0.2258823812007904, 0.1217745840549469, -0.19461801648139954, -0.08222351968288422, -0.6648061275482178, 0.011875316500663757, 0.13582652807235718, -0.18665997684001923, -0.17971526086330414, -0.05013806372880936, 0.220590740442276, 0.2597532272338867, -0.10321985185146332, -0.16091258823871613, -0.1724744439125061, 0.06910110265016556, 0.03752904757857323, -0.007329706102609634, 0.16975747048854828, -0.13684643805027008, 0.16176097095012665, 0.24482446908950806, 0.1969081163406372, 0.284953236579895, 0.4870796799659729, -0.16817118227481842, -0.15989406406879425, -0.010553201660513878, -0.19236597418785095, 0.08990161120891571, 0.06671234220266342, 0.03153381496667862, -0.1532079577445984, -0.014956234022974968, 0.008462533354759216, 0.03862767294049263, 0.03146062046289444, -0.09408107399940491, -0.21825940907001495, 0.1676250398159027, 0.30557453632354736, -0.36377719044685364, -0.1490928828716278, -0.09989863634109497, -0.24665629863739014, -0.3483099639415741, -0.26553475856781006, 0.5327389240264893, 0.027895595878362656, 0.12800973653793335, 0.14216776192188263, -0.04215959459543228, 0.048786040395498276, 0.1574120819568634, -0.12155681848526001, 0.0775766521692276, -0.1540934443473816, 0.13596616685390472, -0.08580520749092102, 0.03191046416759491, 0.11847475171089172, -0.38344821333885193, -0.018849391490221024, -0.03916454687714577, 0.24254250526428223, 0.06467486172914505, 0.2020900845527649, -0.09834717214107513, 0.4987447261810303, 0.6146568059921265, -0.13361555337905884, -0.1414809226989746, -0.13041925430297852, 0.37065088748931885, 0.07330819964408875, -0.07746567577123642, 0.021921303123235703, 0.10242748260498047, 0.006507012993097305, -0.34206485748291016, -0.2554904520511627, -0.01998257078230381, 0.30414512753486633, 0.35128262639045715, 0.09328848868608475, 0.3203134536743164, -0.019220542162656784, 0.048409707844257355, -0.2411344051361084, 0.0504152774810791, -0.12760111689567566, 0.009670205414295197, -0.022803064435720444, 0.5810165405273438, -0.22440199553966522, -0.059342700988054276, -0.41364988684654236, 0.4290262460708618, 0.09053143858909607, -0.33885523676872253, -0.08051943778991699, 0.35840025544166565, -0.31732094287872314, -0.2010883092880249, 0.22619517147541046, 0.4100218713283539, 0.15135975182056427, 0.19435712695121765, -0.5254404544830322, -0.4069116413593292, 0.4472021460533142, -0.441707968711853, -0.5069120526313782, 0.02907465398311615, -0.3133937418460846, 0.06790400296449661, 0.49642300605773926, -0.471049964427948, -0.14913369715213776, 0.0015052962116897106, -0.08082769066095352, -0.09160427749156952, -0.09819349646568298, 0.2610398828983307, 0.015110637992620468, -0.25184643268585205, 0.17900733649730682, 0.1764504313468933, -0.022816140204668045, -0.42041611671447754, -0.27535998821258545 ]
https://github.com/huggingface/datasets/issues/2003
Messages are being printed to the `stdout`
This is expected to show this message to the user via stdout. This way the users see it directly and can cancel the downloading if they want to. Could you elaborate why it would be better to have it in stderr instead of stdout ?
In this code segment, we can see some messages are being printed to the `stdout`. https://github.com/huggingface/datasets/blob/7e60bb509b595e8edc60a87f32b2bacfc065d607/src/datasets/builder.py#L545-L554 According to the comment, it is done intentionally, but I don't really understand why don't we log it with a higher level or print it directly to the `stderr`. In my opinion, this kind of messages should never printed to the stdout. At least some configuration/flag should make it possible to provide in order to explicitly prevent the package to contaminate the stdout.
45
Messages are being printed to the `stdout` In this code segment, we can see some messages are being printed to the `stdout`. https://github.com/huggingface/datasets/blob/7e60bb509b595e8edc60a87f32b2bacfc065d607/src/datasets/builder.py#L545-L554 According to the comment, it is done intentionally, but I don't really understand why don't we log it with a higher level or print it directly to the `stderr`. In my opinion, this kind of messages should never printed to the stdout. At least some configuration/flag should make it possible to provide in order to explicitly prevent the package to contaminate the stdout. This is expected to show this message to the user via stdout. This way the users see it directly and can cancel the downloading if they want to. Could you elaborate why it would be better to have it in stderr instead of stdout ?
[ -0.04709615558385849, -0.37092718482017517, -0.03963620215654373, 0.27061188220977783, 0.23185217380523682, -0.05729644000530243, 0.2466084510087967, 0.11494964361190796, -0.04178208112716675, 0.19841793179512024, 0.17326238751411438, 0.16427014768123627, -0.11991774290800095, 0.3688819706439972, 0.18070083856582642, 0.1382269561290741, -0.08521219342947006, -0.12966515123844147, -0.3972429037094116, 0.2983495593070984, 0.1317119598388672, 0.16946479678153992, 0.3729333281517029, 0.486075222492218, -0.5674239993095398, -0.02758491225540638, 0.24089959263801575, -0.082006074488163, -0.2319761961698532, -0.5787141919136047, 0.0741451159119606, 0.13434842228889465, 0.1837683469057083, 0.17994189262390137, -0.00011805992835434154, 0.14495310187339783, 0.4684007167816162, 0.20608218014240265, -0.6819641590118408, -0.08562357723712921, -0.16586318612098694, -0.12799061834812164, 0.32081297039985657, -0.06907770782709122, 0.13178732991218567, -0.299381822347641, 0.2840440571308136, -0.3241890072822571, 0.1400139182806015, 0.4661119282245636, 0.17689338326454163, 0.22324801981449127, 0.035527657717466354, 0.29634958505630493, 0.22461897134780884, 0.30570369958877563, -0.06427463889122009, 0.022516805678606033, 0.24906370043754578, 0.5164739489555359, -0.04668264836072922, 0.3044881820678711, -0.10971295833587646, -0.34610313177108765, 0.1512935757637024, 0.18338793516159058, 0.19945445656776428, -0.215229332447052, 0.1340063214302063, 0.013459078967571259, 0.5597186088562012, -0.43764445185661316, -0.1601390689611435, -0.23998090624809265, -0.1339331716299057, -0.14320354163646698, 0.22944101691246033, 0.12060534209012985, -0.28087282180786133, 0.4999406635761261, -0.3562501072883606, -0.3182741701602936, -0.26853954792022705, -0.07081775367259979, -0.010250590741634369, -0.1528872400522232, -0.2506074607372284, 0.16574524343013763, -0.18275722861289978, 0.21577958762645721, -0.0832352265715599, -0.2934997081756592, -0.06984758377075195, -0.17877565324306488, 0.06910164654254913, -0.09062476456165314, -0.005033425986766815, -0.1460137665271759, -0.09501001238822937, -0.02881491929292679, -0.002384231425821781, -0.01004302129149437, 0.3453410565853119, 0.07665134221315384, 0.4637840688228607, 0.07261407375335693, 0.39333459734916687, 0.17095647752285004, -0.024700574576854706, 0.12677958607673645, 0.3316881060600281, -0.30637606978416443, 0.31643038988113403, 0.24137143790721893, 0.16708014905452728, -0.3005852699279785, 0.12962621450424194, -0.30682313442230225, -0.07293467968702316, 0.09004391729831696, -0.01823928952217102, 0.0932416319847107, 0.003698066808283329, 0.16885815560817719, 0.13657508790493011, -0.0851946696639061, 0.16724428534507751, 0.02793353609740734, 0.21860568225383759, 0.0639149472117424, -0.10075517743825912, 0.06873143464326859, -0.19207069277763367, -0.020260551944375038, -0.024491405114531517, -0.14603111147880554, 0.1155524030327797, 0.06594420969486237, 0.2069479376077652, -0.10517008602619171, -0.15312549471855164, -0.05238569155335426, 0.16005967557430267, 0.517122745513916, -0.4261567294597626, 0.26391276717185974, 0.05718030780553818, -0.07984918355941772, -0.12116393446922302, 0.38277170062065125, -0.013047769665718079, -0.41934001445770264, 0.1440354287624359, 0.07972079515457153, -0.19256503880023956, 0.12103622406721115, -0.3839590549468994, -0.18304656445980072, 0.022852540016174316, -0.17182239890098572, 0.23580783605575562, -0.24287854135036469, 0.010125752538442612, -0.22724604606628418, -0.04578699171543121, 0.16082504391670227, -0.1947692483663559, -0.10694517195224762, -0.14894744753837585, -0.47867289185523987, 0.7286786437034607, -0.12854307889938354, 0.04949910566210747, 0.43336692452430725, -0.21604937314987183, -0.3962879776954651, 0.42473334074020386, -0.2746759057044983, -0.26058441400527954, 0.36152350902557373, -0.4956052899360657, 0.4633191227912903, 0.3245584964752197, 0.19806715846061707, 0.0893637016415596, -0.029774004593491554, 0.12013208866119385, -0.30021846294403076, 0.2200372964143753, 0.2071026712656021, -0.23946456611156464, -0.19029514491558075, -0.08403525501489639, 0.12568916380405426, -0.09782029688358307, 0.05463521182537079, -0.00027760863304138184, 0.04391748830676079, 0.30486956238746643, 0.1535116732120514, 0.028401732444763184, -0.21911682188510895, 0.1361132711172104, 0.2374201864004135, -0.19281715154647827, -0.09508570283651352, -0.14314794540405273, -0.03273623064160347, -0.26587241888046265, -0.036848559975624084, -0.4485415816307068, -0.20928098261356354, 0.05028977990150452, 0.21112701296806335, 0.025606952607631683, -0.28735220432281494, 0.002661563456058502, 0.2300603985786438, 0.14674384891986847, 0.28932785987854004, -0.21351929008960724, 0.4315737783908844, -0.49243658781051636, 0.16444873809814453, 0.13828709721565247, -0.17062614858150482, 0.16566957533359528, -0.024536769837141037, -0.04245217889547348, 0.038052037358284, -0.27101096510887146, 0.16867901384830475, -0.03600437939167023, 0.28867781162261963, -0.02695714496076107, 0.15265581011772156, -0.24258169531822205, 0.22721195220947266, 0.07270750403404236, 0.003559250384569168, -0.009656118229031563, 0.16200125217437744, -0.09828127175569534, 0.1219337210059166, 0.010062474757432938, -0.06822042167186737, 0.061216261237859726, 0.1239883080124855, -0.002977360039949417, -0.0025335028767585754, -0.2458423376083374, 0.32531365752220154, -0.29290252923965454, -0.2020268589258194, -0.09938371181488037, -0.24074341356754303, 0.1680097132921219, 0.23975108563899994, -0.2445978969335556, 0.19811508059501648, 0.5945559144020081, -0.11429488658905029, -0.06739906221628189, 0.3340902328491211, 0.11194118857383728, -0.07845310866832733, 0.13709701597690582, 0.09033480286598206, 0.1073063462972641, 0.16419577598571777, 0.15267404913902283, 0.017344649881124496, 0.12430968880653381, -0.006975292228162289, 0.24605363607406616, 0.11793247610330582, -0.3268169164657593, 0.006792280822992325, -0.2291565090417862, -0.1677502691745758, -0.13059857487678528, 0.12328958511352539, -0.493242084980011, -0.02162201888859272, -0.3262927830219269, 0.03183429688215256, -0.23638993501663208, -0.34830015897750854, -0.6054055094718933, -0.0629223883152008, -0.12076626718044281, -0.3933294415473938, 0.28394782543182373, 0.0013739429414272308, -0.2739003896713257, -0.14144767820835114, 0.16268619894981384, 0.3985835909843445, -0.024409033358097076, 0.18131393194198608, -0.556316077709198, 0.38989779353141785, -0.39407017827033997, 0.05587221309542656, -0.1074175164103508, 0.16374553740024567, 0.32108619809150696, -0.35895466804504395, -0.06865321099758148, -0.29845675826072693, -0.032904889434576035, 0.15030314028263092, -0.12438535690307617, 0.3846013844013214, 0.18362945318222046, 0.14463703334331512, 0.1930282711982727, -0.16981123387813568, -0.11400014907121658, -0.20721261203289032, -0.051615141332149506, -0.20441661775112152, 0.23381957411766052, 0.1644955426454544, -0.34449994564056396, -0.31775766611099243, -0.2811034023761749, -0.28520533442497253, 0.13959789276123047, -0.22663092613220215, 0.32573139667510986, -0.36040228605270386, -0.02581639774143696, 0.2454828917980194, -0.35155928134918213, 0.5465458035469055, 0.10426216572523117, -0.7475804090499878, -0.21749918162822723, 0.030295439064502716, -0.05975941941142082, -0.2551206946372986, 0.45367783308029175, -0.2607751488685608, -0.07673684507608414, -0.7462233901023865, 0.06605734676122665, -0.23794378340244293, -0.11591120064258575, 0.30596622824668884, -0.05383725464344025, 0.14639776945114136, 0.19313611090183258, -0.06125238537788391, 0.053965240716934204, 0.12448346614837646, 0.027982451021671295, -0.4099283516407013, 0.306511253118515, 0.29656556248664856, 0.18939128518104553, 0.08222095668315887, 0.24651607871055603, 0.28100404143333435, 0.08522042632102966, -0.2378198504447937, -0.08673617988824844, 0.7142139673233032, -0.3417419493198395, -0.1789516806602478, 0.12404549866914749, 0.05561670660972595, -0.37761390209198, 0.12203771620988846, -0.10018132627010345, 0.3989615738391876, 0.1636795997619629, 0.14447368681430817, 0.04911411553621292, -0.3692813217639923, 0.05471036583185196, 0.09965409338474274, -0.020087137818336487, -0.06517365574836731, 0.0506223663687706, 0.23218770325183868, 0.07438666373491287, 0.0726090669631958, 0.6089336276054382, 0.2598012685775757, 0.3592444956302643, -0.3870893716812134, -0.3552197515964508, -0.5714657306671143, -0.10873828828334808, 0.1692548394203186, 0.043635956943035126, -0.4236881732940674, -0.07805570960044861, 0.30020996928215027, 0.045775432139635086, 0.4229605793952942, 0.10642218589782715, -0.06761041283607483, -0.20873187482357025, 0.00024063140153884888, 0.1899527609348297, 0.08412213623523712, -0.2580263316631317, 0.21304623782634735, 0.4400636553764343, -0.23850762844085693, -0.34296995401382446, -0.23654118180274963, 0.30878645181655884, -0.2244272381067276, -0.08917351067066193, -0.2934216856956482, -0.36901944875717163, -0.07882910966873169, -0.20059016346931458, -0.00878993421792984, 0.17154620587825775, 0.11334013193845749, -0.5838229656219482, -0.3357171416282654, 0.38126298785209656, 0.3573177456855774, 0.03469254821538925, -0.2963627278804779, 0.07732416689395905, -0.25471651554107666, -0.274442583322525, 0.15039944648742676, 0.617196798324585, 0.4491700530052185, 0.2272644340991974, 0.32255473732948303, -0.03420209884643555, 0.012865657918155193, -0.21137796342372894, 0.21601617336273193, 0.2802974581718445, -0.26346659660339355, 0.010541297495365143, -0.04660801589488983, 0.263280987739563, -0.17854008078575134, 0.12417271733283997, 0.4459404945373535, 0.18686772882938385, -0.23183906078338623, -0.3095209300518036, 0.023062389343976974, 0.07844236493110657, 0.026896968483924866, 0.36049941182136536, 0.1483648419380188, -0.18811646103858948, -0.04620703309774399, 0.0034316256642341614, 1.1015573740005493, -0.13733673095703125, 0.2609905004501343, 0.28777045011520386, -0.33026522397994995, 0.3510974645614624, 0.1281825453042984, 0.01367284543812275, -0.13115306198596954, -0.035451073199510574, 0.064399354159832, -0.2890268564224243, 0.18843907117843628, -0.049027249217033386, -0.1270768940448761, -0.042886704206466675, 0.02158554643392563, -0.04151057079434395, 0.08006194978952408, 0.10239037871360779, -0.21604499220848083, 0.10608462989330292, -0.2881341576576233, 0.019207414239645004, -0.02654147893190384, -0.013921219855546951, -0.11744622886180878, 0.03613501042127609, 0.1522873193025589, -0.32082897424697876, -0.16449448466300964, -0.3527446389198303, 0.5632615685462952, -0.11097855865955353, 0.026469703763723373, 0.12260615825653076, -0.05278740078210831, 0.38515156507492065, 0.021863818168640137, 0.2955082058906555, 0.09290212392807007, -0.408498078584671, -0.08879000693559647, 0.10002483427524567, 0.1308554857969284, 0.015293789096176624, 0.17414364218711853, -0.08003932237625122, -0.38217464089393616, 0.18581700325012207, -0.029614850878715515, -0.3801407217979431, 0.2591865360736847, -0.22203196585178375, 0.1948298066854477, -0.3954457640647888, 0.04777577891945839, 0.07200431823730469, -0.17367076873779297, 0.05087703838944435, 0.09756903350353241, 0.3021847605705261, -0.2064763903617859, 0.28602108359336853, -0.33682167530059814, -0.6666277647018433, -0.22602884471416473, 0.17955312132835388, 0.17419582605361938, -0.050671860575675964, 0.2291257679462433, -0.0015559941530227661, -0.43764960765838623, -0.10270296782255173, 0.17209890484809875, -0.004859883338212967, -0.11718835681676865, 0.13237446546554565, 0.23864337801933289, -0.05813155323266983, -0.3001346290111542, 0.3246007561683655, -0.06271327286958694, 0.02109949290752411, -0.48572298884391785, -0.03629688546061516, -0.42271071672439575, 0.22735300660133362, -0.15134727954864502, 0.40599098801612854, 0.1191442683339119, -0.032221995294094086, 0.03612758219242096, -0.2973769009113312, -0.2570328712463379, -0.347044438123703, -0.29687798023223877, -0.013698503375053406, 0.19119228422641754, 0.07638800889253616, 0.3403455317020416, 0.1696929931640625, 0.02623644284904003, 0.03716801851987839, -0.21742525696754456, -0.10591357946395874, 0.15651658177375793, 0.17494520545005798, -0.11610852926969528, 0.31474727392196655, -0.07863610237836838, -0.05770754814147949, 0.12121543288230896, 0.17808666825294495, 0.6493932008743286, 0.39848870038986206, 0.0585942342877388, 0.050742704421281815, 0.13232189416885376, 0.14962169528007507, -0.053216513246297836, 0.19168633222579956, 0.005090720951557159, 0.09182939678430557, -0.10485251992940903, -0.031527720391750336, -0.37871086597442627, -0.10210058093070984, 0.4027522802352905, 0.22058245539665222, 0.3114814758300781, 0.4311883747577667, 0.43343159556388855, -0.05587613582611084, 0.08689096570014954, -0.0006717294454574585, 0.21638301014900208, 0.16819077730178833, -0.0863659679889679, -0.3955238163471222, -0.1428176760673523, 0.08187542110681534, 0.2249925136566162, 0.01013193279504776, -0.3440757691860199, -0.2673558294773102, -0.20521436631679535, 0.33944523334503174, -0.08005568385124207, -0.06609837710857391, 0.5081415772438049, 0.06180315464735031, 0.25501465797424316, -0.19327540695667267, -0.19699977338314056, 0.08771118521690369, -0.34697425365448, 0.2466040700674057, 0.3824837803840637, 0.29745015501976013, -0.15636825561523438, -0.10224471986293793, -0.06365553289651871, 0.1238488256931305, 0.1860051155090332, -0.03629741445183754, -0.1381465494632721, 0.08023752272129059, 0.03490195423364639, 0.4141361713409424, -0.16232329607009888, -0.06295732408761978, 0.11446312814950943, -0.24828791618347168, -0.08624078333377838, 0.10893281549215317, 0.07797736674547195, -0.14258062839508057, -0.27072444558143616, 0.16971613466739655, -0.14908507466316223, -0.010632827877998352, -0.09391087293624878, -0.019293852150440216, 0.030403073877096176, 0.046740107238292694, -0.15838676691055298, -0.03555517643690109, 0.07075385004281998, -0.2346913069486618, -0.2739593982696533, -0.2087143063545227, 0.09979996085166931, -0.08737418055534363, -0.013681894168257713, -0.040372103452682495, 0.41386765241622925, 0.4520370066165924, 0.31653571128845215, 0.4676983654499054, 0.24508295953273773, 0.5179716348648071, 0.022056598216295242, -0.1365853101015091, 0.028026362881064415, -0.24763119220733643, 0.4332348704338074, -0.020804554224014282, -0.10890868306159973, 0.3140866160392761, 0.09205550700426102, -0.03607533499598503, 0.11274480819702148, -0.05554714426398277, 0.2130412459373474, -0.324271023273468, 0.7055276036262512, 0.028298508375883102, -0.20221295952796936, -0.21350617706775665, 0.017481736838817596, -0.5186852216720581, -0.02052866294980049, 0.17429322004318237, -0.13701266050338745, 0.033314887434244156, -0.4020621180534363, 0.0729154646396637, 0.14469775557518005, 0.48933589458465576, 0.6453385949134827, 0.3660600185394287, -0.15328757464885712, -0.09840831160545349, -0.19295676052570343, 0.26290541887283325, 0.15719451010227203, 0.04018569737672806, -0.03002171218395233, -0.18382827937602997, -0.004146263003349304, 0.3262838125228882, 0.1542157232761383, -0.24455788731575012, -0.5066191554069519, -0.04456288367509842, 0.010671976953744888, 0.06876930594444275, 0.3976646065711975, 0.2572367787361145, -0.16429653763771057, -0.0032930783927440643, 0.5116844177246094, -0.2611885070800781, -0.015458419919013977, 0.11912114173173904, 0.38171663880348206, -0.14672043919563293, -0.20762410759925842, 0.012718971818685532, 0.20666012167930603, -0.06408144533634186, 0.024761345237493515, -0.3828261196613312, -0.0304996557533741, 0.03287668526172638, -0.13187311589717865, -0.0021373778581619263, -0.26048120856285095, 0.42607995867729187, -0.019415369257330894, -0.0970735102891922, -0.3136405646800995, 0.14242114126682281, 0.15749973058700562, 0.17517630755901337, 0.23021748661994934, -0.18713176250457764, -0.2503662407398224, -0.03902381286025047, 0.27345195412635803, 0.2703128159046173, 0.3504103720188141, -0.05745204538106918, -0.1396738439798355, -0.19043941795825958, 0.3595775067806244, -0.15502528846263885, -0.21103964745998383, -0.11846296489238739, 0.2866290211677551, 0.1683884859085083, -0.193535715341568, -0.5391814112663269, -0.029688440263271332, 0.21999722719192505, -0.23673668503761292, 0.14198565483093262, 0.08748374879360199, -0.39805495738983154, 0.28259748220443726, -0.019119028002023697, 0.438591867685318, -0.20421350002288818, 0.3405643701553345, -0.12988846004009247, -0.5378350615501404 ]
https://github.com/huggingface/datasets/issues/2003
Messages are being printed to the `stdout`
@lhoestq, sorry for the late reply I completely understand why you decided to output a message that is always shown. The only problem is that the message is printed to the `stdout`. For example, if the user runs `python run_glue.py > log_file`, it will redirect `stdout` to the file named `log_file`, and the message will not be shown to the user. Instead, we should print this message to `stderr`. Even in the case of `python run_glue.py > log_file` only `stdout` is being redirected and so the message is always shown.
In this code segment, we can see some messages are being printed to the `stdout`. https://github.com/huggingface/datasets/blob/7e60bb509b595e8edc60a87f32b2bacfc065d607/src/datasets/builder.py#L545-L554 According to the comment, it is done intentionally, but I don't really understand why don't we log it with a higher level or print it directly to the `stderr`. In my opinion, this kind of messages should never printed to the stdout. At least some configuration/flag should make it possible to provide in order to explicitly prevent the package to contaminate the stdout.
90
Messages are being printed to the `stdout` In this code segment, we can see some messages are being printed to the `stdout`. https://github.com/huggingface/datasets/blob/7e60bb509b595e8edc60a87f32b2bacfc065d607/src/datasets/builder.py#L545-L554 According to the comment, it is done intentionally, but I don't really understand why don't we log it with a higher level or print it directly to the `stderr`. In my opinion, this kind of messages should never printed to the stdout. At least some configuration/flag should make it possible to provide in order to explicitly prevent the package to contaminate the stdout. @lhoestq, sorry for the late reply I completely understand why you decided to output a message that is always shown. The only problem is that the message is printed to the `stdout`. For example, if the user runs `python run_glue.py > log_file`, it will redirect `stdout` to the file named `log_file`, and the message will not be shown to the user. Instead, we should print this message to `stderr`. Even in the case of `python run_glue.py > log_file` only `stdout` is being redirected and so the message is always shown.
[ 0.05412517115473747, -0.42830324172973633, -0.017840959131717682, 0.18631978332996368, 0.1776292473077774, -0.15478110313415527, 0.38389626145362854, 0.16159988939762115, 0.06724193692207336, 0.24442541599273682, 0.19078302383422852, 0.30530616641044617, -0.1425594985485077, 0.2849755883216858, 0.26102420687675476, 0.14178863167762756, -0.07240676134824753, 0.022882133722305298, -0.42554882168769836, 0.10764066874980927, -0.008999306708574295, 0.111025869846344, 0.19963891804218292, 0.47579389810562134, -0.64510577917099, -0.09693411737680435, 0.21992522478103638, 0.06825506687164307, -0.15046674013137817, -0.5180289149284363, -0.0038762055337429047, 0.19596850872039795, -0.07114824652671814, 0.2187255322933197, -0.00011078464012825862, 0.11144484579563141, 0.5583912134170532, 0.18020804226398468, -0.5341907143592834, -0.14948983490467072, -0.06871942430734634, -0.24119515717029572, 0.32322728633880615, -0.13856357336044312, -0.1318153440952301, -0.2632324993610382, 0.27149486541748047, -0.34198981523513794, 0.3885955214500427, 0.29798728227615356, 0.21856580674648285, 0.23838824033737183, 0.010733742266893387, 0.24307548999786377, 0.12540611624717712, 0.24164924025535583, 0.03767654299736023, -0.04286849498748779, -0.042910754680633545, 0.308066189289093, -0.20364248752593994, 0.42865443229675293, -0.08262287825345993, -0.2804138660430908, 0.026290562003850937, 0.14172494411468506, 0.16272574663162231, -0.34875309467315674, 0.009764155372977257, 0.09935756027698517, 0.26547491550445557, -0.44834527373313904, -0.1097155213356018, -0.31626251339912415, -0.09637511521577835, -0.11715889722108841, 0.18483945727348328, 0.14460383355617523, -0.17128439247608185, 0.38092219829559326, -0.1902453899383545, -0.25244706869125366, -0.22951523959636688, -0.07340969145298004, -0.12478157877922058, 0.019961513578891754, -0.3208538889884949, 0.2482609748840332, -0.2218213826417923, 0.21604670584201813, -0.1857302188873291, -0.21653078496456146, -0.12456534802913666, -0.05169735103845596, -0.061477359384298325, 0.005703482776880264, 0.11515495181083679, -0.09116476029157639, -0.011602729558944702, -0.12483593821525574, -0.20137980580329895, 0.062036361545324326, 0.22327345609664917, 0.19189149141311646, 0.48842471837997437, 0.08791965246200562, 0.5125946402549744, 0.28145554661750793, 0.19080011546611786, -0.042131971567869186, 0.09053048491477966, -0.20219305157661438, 0.3088915944099426, 0.1708640456199646, 0.2888862192630768, -0.2328941822052002, 0.2866514325141907, -0.09002351015806198, -0.0649687796831131, 0.1431059092283249, -0.06118311733007431, 0.07108955085277557, -0.02348502352833748, 0.2419450283050537, 0.015370863489806652, -0.11411141604185104, 0.37815243005752563, -0.0502084344625473, 0.06269359588623047, -0.007013675756752491, -0.19760696589946747, 0.0261096078902483, -0.3317316472530365, 0.03551319241523743, -0.10246467590332031, -0.04998946562409401, 0.06741984188556671, 0.09769132733345032, 0.1535891741514206, -0.10751444101333618, -0.12621134519577026, -0.05766693875193596, 0.4185287058353424, 0.48102590441703796, -0.2644612491130829, 0.2954937219619751, 0.1943541318178177, -0.2578786015510559, -0.13231174647808075, 0.19529178738594055, 0.0771414190530777, -0.29599395394325256, 0.11130007356405258, 0.18303599953651428, -0.3067576289176941, 0.3234335482120514, -0.21313795447349548, 0.026549536734819412, -0.0012508630752563477, -0.11951024830341339, 0.23571878671646118, -0.16988521814346313, -0.017430581152439117, -0.21794411540031433, 0.18051177263259888, 0.3643781542778015, -0.22290365397930145, -0.1052752435207367, -0.07719898223876953, -0.4211500883102417, 0.3274553120136261, -0.23250068724155426, 0.16440151631832123, 0.3366909921169281, -0.39369168877601624, -0.3250602185726166, 0.457361102104187, -0.3337570130825043, -0.1708877682685852, 0.23650005459785461, -0.4048210382461548, 0.4652937352657318, 0.2076699137687683, 0.004300861153751612, -0.005994945764541626, 0.037635356187820435, 0.1742016077041626, -0.18004542589187622, 0.3051741123199463, 0.13022364675998688, -0.22910051047801971, -0.04510139673948288, -0.151516392827034, -0.0034161675721406937, -0.0958908200263977, -0.02593357115983963, -0.01699347048997879, -0.11716191470623016, 0.4299754798412323, 0.26237407326698303, 0.07724820077419281, -0.23616661131381989, 0.24081791937351227, 0.26138365268707275, -0.0685645267367363, -0.048119448125362396, -0.0634821429848671, 0.006226997822523117, -0.16582965850830078, 0.054439980536699295, -0.31159496307373047, -0.2219984084367752, 0.1507139503955841, 0.13170917332172394, -0.16920199990272522, -0.3026207983493805, 0.1607026755809784, 0.23809804022312164, 0.11329981684684753, 0.3026784658432007, -0.11984635889530182, 0.5206785202026367, -0.35344383120536804, 0.08849474042654037, -0.13196735084056854, -0.06219474971294403, 0.25743788480758667, -0.12813860177993774, -0.075649693608284, 0.2081562578678131, -0.09341060370206833, 0.16713447868824005, 0.03816688805818558, 0.42329224944114685, -0.004345424007624388, 0.11832080036401749, -0.31249505281448364, 0.05007094144821167, 0.009799131192266941, -0.0047035813331604, 0.08957166969776154, 0.14204466342926025, -0.14656704664230347, 0.14718037843704224, 0.038448628038167953, -0.08872458338737488, 0.17212647199630737, 0.15069690346717834, -0.04385486990213394, 0.048843711614608765, -0.12275095283985138, 0.19883805513381958, -0.47113341093063354, -0.30364900827407837, -0.2785583436489105, -0.17136481404304504, 0.3033115267753601, 0.118407242000103, -0.3035779595375061, 0.2379685938358307, 0.7682502269744873, -0.03013657219707966, 0.020550590008497238, 0.06579116731882095, -0.2529129087924957, 0.0181574709713459, 0.11027280241250992, 0.20936356484889984, 0.17606237530708313, 0.2615463435649872, 0.20013335347175598, 0.05080658942461014, 0.0062754712998867035, 0.012690199539065361, 0.22415414452552795, 0.06510904431343079, -0.2292543351650238, 0.08695017546415329, -0.08512816578149796, -0.22623805701732635, -0.2331651747226715, 0.2796397805213928, -0.5140920281410217, -0.19451922178268433, -0.3919096887111664, 0.01821725256741047, -0.23537419736385345, -0.40331366658210754, -0.5682986378669739, -0.09719465672969818, -0.09389938414096832, -0.39500686526298523, 0.3544939160346985, -0.04934507980942726, -0.25135543942451477, 0.05669631063938141, 0.319059282541275, 0.27672046422958374, 0.028416262939572334, 0.1718166470527649, -0.45148730278015137, 0.26307985186576843, -0.40420621633529663, 0.05427876487374306, -0.28488945960998535, 0.12470400333404541, 0.3621222674846649, -0.21162265539169312, -0.07180061936378479, -0.2785493731498718, -0.05870974063873291, 0.22191458940505981, -0.2349589318037033, 0.5601464509963989, 0.3041002154350281, 0.0496971569955349, 0.24474944174289703, -0.10819494724273682, 0.0988120436668396, -0.33492687344551086, -0.04223223030567169, -0.23069468140602112, 0.16633789241313934, 0.1885208785533905, -0.3057379424571991, -0.24928000569343567, -0.3592652678489685, -0.3399186134338379, 0.25995153188705444, -0.21321794390678406, 0.23352046310901642, -0.15119655430316925, -0.11237501353025436, 0.13762731850147247, -0.39359334111213684, 0.4972851276397705, -0.08818501979112625, -0.630213737487793, -0.15511390566825867, -0.12440439313650131, -0.09082327783107758, -0.16545820236206055, 0.11361785233020782, -0.23277521133422852, -0.22507566213607788, -0.5604439973831177, -0.2937105596065521, -0.22115708887577057, -0.13563403487205505, 0.26473692059516907, 0.3401811718940735, 0.17375892400741577, 0.11551986634731293, -0.12176301330327988, -0.07755348831415176, -0.094676673412323, 0.08919738978147507, -0.30173197388648987, 0.20184047520160675, 0.23144486546516418, 0.15251609683036804, 0.03084961697459221, 0.1316174566745758, 0.37697815895080566, 0.12318268418312073, -0.259991854429245, -0.19772718846797943, 0.9344840049743652, -0.30767959356307983, -0.1384754776954651, -0.01490954402834177, 0.12179633229970932, -0.3135749101638794, 0.13717763125896454, -0.02957102656364441, 0.42887699604034424, 0.1746636927127838, 0.013524763286113739, -0.1403273046016693, -0.4702349305152893, -0.08770813792943954, 0.007916782051324844, -0.10618431121110916, -0.038294821977615356, 0.02419012039899826, 0.22700828313827515, 0.10133182257413864, -0.00780917052179575, 0.4862000346183777, 0.33218494057655334, 0.3255208134651184, -0.25728699564933777, -0.3790223300457001, -0.44886118173599243, -0.10845991969108582, -0.11516387015581131, -0.0170602984726429, -0.2848508656024933, -0.30790653824806213, 0.3015506863594055, 0.11099334061145782, 0.48755085468292236, -0.07997284084558487, 0.07365566492080688, -0.04770839586853981, 0.03994137793779373, -0.05949007719755173, -0.00446324422955513, -0.2306831181049347, 0.22399546205997467, 0.3898354172706604, -0.06655862927436829, -0.23475363850593567, -0.28964871168136597, 0.3323344886302948, -0.164735808968544, -0.21187548339366913, -0.3469476103782654, -0.4939073920249939, 0.055459000170230865, -0.07080060243606567, 0.1633124053478241, 0.19895431399345398, -0.02985426038503647, -0.48655080795288086, -0.46373170614242554, 0.28019073605537415, 0.11292954534292221, 0.0338786244392395, -0.07506109774112701, 0.21294638514518738, -0.2921408712863922, -0.21566890180110931, 0.3172503709793091, 0.588159441947937, 0.06885676831007004, 0.20732064545154572, 0.07943963259458542, 0.08810904622077942, 0.02097223326563835, -0.2785406708717346, 0.3618933856487274, 0.27274972200393677, -0.2944970726966858, 0.025618597865104675, -0.2036670744419098, 0.26322293281555176, -0.22908960282802582, 0.042935341596603394, 0.34449851512908936, 0.21179184317588806, -0.17901559174060822, -0.30186542868614197, 0.09613914787769318, -0.04112527146935463, -0.12968650460243225, 0.31084296107292175, 0.20021401345729828, -0.31947535276412964, 0.04567542299628258, -0.13751697540283203, 0.9276251196861267, -0.04919809103012085, 0.22193634510040283, 0.22381606698036194, -0.2233254462480545, 0.39597657322883606, 0.04470302164554596, 0.1350615918636322, -0.2658403813838959, -0.15783175826072693, 0.10124294459819794, -0.2373301386833191, -0.009509533643722534, 0.03419376537203789, -0.14836299419403076, 0.0392882265150547, 0.014529682695865631, -0.047416795045137405, -0.08733266592025757, 0.18599379062652588, -0.15578289330005646, 0.04788324236869812, -0.4868294596672058, 0.08106022328138351, 0.16701620817184448, -0.05334746465086937, -0.04476509988307953, 0.037688493728637695, 0.4169226586818695, -0.3255186676979065, -0.03369351848959923, -0.21970883011817932, 0.23139655590057373, -0.17181731760501862, 0.1313593089580536, 0.023282013833522797, -0.19013839960098267, 0.22004029154777527, -0.00985361635684967, 0.531299889087677, 0.22729817032814026, -0.3040032982826233, 0.245418518781662, 0.1460796445608139, -0.06698936969041824, 0.10923904180526733, 0.35095542669296265, 0.08251523226499557, -0.4282555878162384, 0.23404338955879211, -0.04617881029844284, -0.2830715775489807, 0.07510598003864288, -0.05556575953960419, 0.18815888464450836, -0.30634236335754395, 0.16820183396339417, 0.10038245469331741, -0.047390203922986984, 0.0465487577021122, 0.14587317407131195, 0.3736646771430969, -0.3556673228740692, 0.35970112681388855, -0.24779416620731354, -0.6420055627822876, -0.07257559895515442, -0.0022322535514831543, 0.14102265238761902, 0.13218005001544952, 0.12114796042442322, 0.05310290679335594, -0.30382394790649414, -0.1832687258720398, 0.08491867035627365, 0.24308070540428162, 0.07850336283445358, 0.130867600440979, 0.36947953701019287, -0.02327846735715866, -0.09234104305505753, 0.10555093735456467, -0.11751458048820496, -0.04384307563304901, -0.5810167193412781, -0.17203059792518616, -0.29172828793525696, 0.23438048362731934, -0.17262132465839386, 0.3928426206111908, 0.3371569514274597, -0.06971366703510284, 0.10003146529197693, -0.048572883009910583, -0.36651721596717834, -0.37366214394569397, -0.17960207164287567, 0.11793220788240433, 0.2822408378124237, 0.06902860105037689, 0.36853593587875366, 0.01983722485601902, 0.13144074380397797, -0.09386293590068817, -0.23406581580638885, -0.2157687246799469, 0.11629439890384674, 0.11492754518985748, -0.1505066156387329, 0.3382871747016907, -0.11926954984664917, -0.16583150625228882, 0.2831535339355469, 0.010790880769491196, 0.8302783966064453, 0.3805105686187744, -0.05035655200481415, 0.07972348481416702, 0.036544281989336014, 0.09402693808078766, -0.01436331495642662, 0.12919864058494568, 0.03947717696428299, -0.11257880926132202, -0.0027945530600845814, -0.07288103550672531, -0.4296862483024597, -0.06183706596493721, 0.44535163044929504, 0.20219124853610992, 0.17393162846565247, 0.5326746702194214, 0.19151553511619568, -0.054660506546497345, -0.12564873695373535, -0.23789988458156586, 0.40469202399253845, 0.09863485395908356, -0.07698967307806015, -0.40257787704467773, -0.11531459540128708, 0.19525554776191711, 0.060941681265830994, 0.0851304903626442, -0.10675479471683502, -0.34989240765571594, 0.07278819382190704, 0.39255645871162415, 0.018866997212171555, -0.0715336799621582, 0.44907379150390625, 0.14056530594825745, 0.1830880492925644, -0.3522503972053528, -0.1274857223033905, 0.060280948877334595, -0.3531310558319092, 0.15837131440639496, 0.46699780225753784, 0.18106220662593842, -0.12161607295274734, 0.02504028007388115, 0.17498405277729034, 0.197575643658638, 0.23225554823875427, -0.11985372006893158, -0.03343205153942108, 0.1030740737915039, 0.09931983053684235, 0.2516612410545349, -0.245859295129776, -0.0670953169465065, -0.03772597759962082, 0.0330495685338974, -0.23899875581264496, 0.13590648770332336, 0.012885456904768944, -0.17122475802898407, -0.18697643280029297, 0.100969597697258, 0.006852284073829651, 0.018596187233924866, -0.14148886501789093, -0.16940438747406006, 0.20642434060573578, -0.07986778020858765, -0.05935695767402649, -0.03377009183168411, 0.1082218661904335, -0.1675756871700287, -0.2668057978153229, -0.17477324604988098, 0.07263720035552979, -0.016556423157453537, 0.14556537568569183, -0.1115000993013382, 0.4508190453052521, 0.35212162137031555, 0.28655803203582764, 0.3099737763404846, 0.1852806806564331, 0.3356396555900574, 0.013408968225121498, -0.12033754587173462, -0.07648274302482605, -0.3353629410266876, 0.3160896897315979, -0.012912563979625702, -0.24479608237743378, 0.19271622598171234, 0.23309792578220367, -0.10978323221206665, 0.07183665782213211, -0.023925993591547012, 0.08178405463695526, -0.22763361036777496, 0.6042565107345581, 0.15798768401145935, -0.21048936247825623, -0.2526175081729889, -0.021633334457874298, -0.6160029768943787, -0.11306508630514145, 0.4817120432853699, -0.08999321609735489, -0.0288043562322855, -0.5377422571182251, 0.13226211071014404, 0.11687886714935303, 0.23169735074043274, 0.45349669456481934, 0.3030887544155121, 0.022323258221149445, 0.0053227245807647705, -0.2670537531375885, 0.33973339200019836, 0.0974474772810936, -0.12413037568330765, -0.1588824987411499, -0.11525897681713104, 0.020044788718223572, 0.1332341432571411, 0.21418356895446777, -0.07673102617263794, -0.4619908630847931, -0.20512664318084717, -0.0448315255343914, 0.03678667172789574, 0.3576843738555908, 0.1559445708990097, -0.02228381484746933, -0.001050259917974472, 0.22694514691829681, -0.2366587221622467, 0.09212630242109299, 0.3040311932563782, 0.3641933500766754, -0.029160907492041588, -0.18730951845645905, 0.22229185700416565, 0.2810074985027313, 0.06031651049852371, -0.09356841444969177, -0.19791290163993835, -0.1583646833896637, 0.04544379189610481, -0.31710535287857056, 0.02816009521484375, -0.12404704093933105, 0.43367311358451843, -0.022671179845929146, -0.266897588968277, -0.2442459911108017, 0.040740832686424255, 0.22290687263011932, 0.043587636202573776, 0.39666277170181274, -0.04393862187862396, -0.14201407134532928, -0.008475190959870815, 0.15399333834648132, 0.3463274836540222, 0.2588290274143219, -0.0758056491613388, -0.045953214168548584, -0.2183857411146164, 0.2991536557674408, -0.37360259890556335, -0.31779545545578003, -0.18937881290912628, 0.3814631402492523, 0.0958501547574997, -0.18711715936660767, -0.5491601824760437, -0.10380854457616806, 0.24569261074066162, -0.18859261274337769, 0.13009966909885406, 0.142392098903656, -0.3548876643180847, 0.26158609986305237, -0.04093651846051216, 0.25326859951019287, -0.05653019994497299, 0.20772972702980042, -0.07196295261383057, -0.568692147731781 ]
https://github.com/huggingface/datasets/issues/2001
Empty evidence document ("provenance") in KILT ELI5 dataset
Why did you close this issue? How did you end up finding the evidence documents? I'm running into a similar issue with other KILT tasks.
In the original KILT benchmark(https://github.com/facebookresearch/KILT), all samples has its evidence document (i.e. wikipedia page id) for prediction. For example, a sample in ELI5 dataset has the format including provenance (=evidence document) like this `{"id": "1kiwfx", "input": "In Trading Places (1983, Akroyd/Murphy) how does the scheme at the end of the movie work? Why would buying a lot of OJ at a high price ruin the Duke Brothers?", "output": [{"answer": "I feel so old. People have been askinbg what happened at the end of this movie for what must be the last 15 years of my life. It never stops. Every year/month/fortnight, I see someone asking what happened, and someone explaining. Andf it will keep on happening, until I am 90yrs old, in a home, with nothing but the Internet and my bladder to keep me going. And there it will be: \"what happens at the end of Trading Places?\""}, {"provenance": [{"wikipedia_id": "242855", "title": "Futures contract", "section": "Section::::Abstract.", "start_paragraph_id": 1, "start_character": 14, "end_paragraph_id": 1, "end_character": 612, "bleu_score": 0.9232808519770748}]}], "meta": {"partial_evidence": [{"wikipedia_id": "520990", "title": "Trading Places", "section": "Section::::Plot.\n", "start_paragraph_id": 7, "end_paragraph_id": 7, "meta": {"evidence_span": ["On television, they learn that Clarence Beeks is transporting a secret USDA report on orange crop forecasts.", "On television, they learn that Clarence Beeks is transporting a secret USDA report on orange crop forecasts. Winthorpe and Valentine recall large payments made to Beeks by the Dukes and realize that the Dukes plan to obtain the report to corner the market on frozen orange juice.", "Winthorpe and Valentine recall large payments made to Beeks by the Dukes and realize that the Dukes plan to obtain the report to corner the market on frozen orange juice."]}}]}}` However, KILT ELI5 dataset from huggingface datasets library only contain empty list of provenance. `{'id': '1oy5tc', 'input': 'in football whats the point of wasting the first two plays with a rush - up the middle - not regular rush plays i get those', 'meta': {'left_context': '', 'mention': '', 'obj_surface': [], 'partial_evidence': [], 'right_context': '', 'sub_surface': [], 'subj_aliases': [], 'template_questions': []}, 'output': [{'answer': 'In most cases the O-Line is supposed to make a hole for the running back to go through. If you run too many plays to the outside/throws the defense will catch on.\n\nAlso, 2 5 yard plays gets you a new set of downs.', 'meta': {'score': 2}, 'provenance': []}, {'answer': "I you don't like those type of plays, watch CFL. We only get 3 downs so you can't afford to waste one. Lots more passing.", 'meta': {'score': 2}, 'provenance': []}]} ` should i perform other procedure to obtain evidence documents?
25
Empty evidence document ("provenance") in KILT ELI5 dataset In the original KILT benchmark(https://github.com/facebookresearch/KILT), all samples has its evidence document (i.e. wikipedia page id) for prediction. For example, a sample in ELI5 dataset has the format including provenance (=evidence document) like this `{"id": "1kiwfx", "input": "In Trading Places (1983, Akroyd/Murphy) how does the scheme at the end of the movie work? Why would buying a lot of OJ at a high price ruin the Duke Brothers?", "output": [{"answer": "I feel so old. People have been askinbg what happened at the end of this movie for what must be the last 15 years of my life. It never stops. Every year/month/fortnight, I see someone asking what happened, and someone explaining. Andf it will keep on happening, until I am 90yrs old, in a home, with nothing but the Internet and my bladder to keep me going. And there it will be: \"what happens at the end of Trading Places?\""}, {"provenance": [{"wikipedia_id": "242855", "title": "Futures contract", "section": "Section::::Abstract.", "start_paragraph_id": 1, "start_character": 14, "end_paragraph_id": 1, "end_character": 612, "bleu_score": 0.9232808519770748}]}], "meta": {"partial_evidence": [{"wikipedia_id": "520990", "title": "Trading Places", "section": "Section::::Plot.\n", "start_paragraph_id": 7, "end_paragraph_id": 7, "meta": {"evidence_span": ["On television, they learn that Clarence Beeks is transporting a secret USDA report on orange crop forecasts.", "On television, they learn that Clarence Beeks is transporting a secret USDA report on orange crop forecasts. Winthorpe and Valentine recall large payments made to Beeks by the Dukes and realize that the Dukes plan to obtain the report to corner the market on frozen orange juice.", "Winthorpe and Valentine recall large payments made to Beeks by the Dukes and realize that the Dukes plan to obtain the report to corner the market on frozen orange juice."]}}]}}` However, KILT ELI5 dataset from huggingface datasets library only contain empty list of provenance. `{'id': '1oy5tc', 'input': 'in football whats the point of wasting the first two plays with a rush - up the middle - not regular rush plays i get those', 'meta': {'left_context': '', 'mention': '', 'obj_surface': [], 'partial_evidence': [], 'right_context': '', 'sub_surface': [], 'subj_aliases': [], 'template_questions': []}, 'output': [{'answer': 'In most cases the O-Line is supposed to make a hole for the running back to go through. If you run too many plays to the outside/throws the defense will catch on.\n\nAlso, 2 5 yard plays gets you a new set of downs.', 'meta': {'score': 2}, 'provenance': []}, {'answer': "I you don't like those type of plays, watch CFL. We only get 3 downs so you can't afford to waste one. Lots more passing.", 'meta': {'score': 2}, 'provenance': []}]} ` should i perform other procedure to obtain evidence documents? Why did you close this issue? How did you end up finding the evidence documents? I'm running into a similar issue with other KILT tasks.
[ 0.15270374715328217, -0.05248522013425827, -0.09924699366092682, 0.06883798539638519, -0.42464494705200195, -0.05499713495373726, 0.6851676106452942, 0.28851479291915894, 0.2704443633556366, 0.22803595662117004, 0.32950469851493835, 0.4488418698310852, 0.16395999491214752, 0.3389602303504944, -0.08429262042045593, 0.23472283780574799, -0.01647188514471054, 0.14147989451885223, 0.3470507264137268, -0.10346435755491257, -0.07668350636959076, -0.17513735592365265, -0.20787884294986725, -0.22615332901477814, -0.7765198945999146, 0.045275237411260605, -0.08502320945262909, -0.037579067051410675, 0.04320573806762695, -0.44557303190231323, -0.0006147976964712143, 0.07834392786026001, -0.17766691744327545, -0.0894751325249672, -0.00011923100100830197, -0.0682530403137207, 0.5283210873603821, -0.2115199714899063, -0.27652156352996826, 0.23247113823890686, -0.27696850895881653, 0.15810684859752655, 0.04100799560546875, -0.7354595065116882, -0.10230259597301483, 0.3216962218284607, 0.08910073339939117, 0.010439403355121613, 0.16920897364616394, 0.3031024634838104, 0.09984490275382996, 0.12006454169750214, -0.037406668066978455, -0.02883431501686573, 0.5988477468490601, 0.29733818769454956, 0.09938614815473557, -0.2687638998031616, -0.15757618844509125, 0.016707347705960274, -0.39010655879974365, 0.24540114402770996, -0.24512869119644165, 0.14886073768138885, -0.10656025260686874, 0.0019751908257603645, 0.2188451588153839, -0.23540478944778442, 0.3034139573574066, 0.4788043200969696, 0.5963554382324219, 0.0037446394562721252, -0.2698875963687897, -0.011871766299009323, 0.1316501498222351, -0.24883626401424408, 0.06844119727611542, 0.3841148018836975, -0.15944012999534607, 0.07760743796825409, 0.1119745522737503, 0.3320666551589966, -0.13543087244033813, 0.0877094566822052, -0.33012691140174866, 0.7768468856811523, 0.06178000196814537, 0.14078480005264282, 0.03619875758886337, -0.012201841920614243, 0.05998379737138748, 0.01807219721376896, -0.04875263199210167, -0.08167682588100433, 0.13692086935043335, -0.13673627376556396, 0.11163178086280823, 0.1380617916584015, 0.2866920232772827, 0.025250941514968872, 0.13458384573459625, 0.09900122135877609, 0.34934425354003906, 0.2512384355068207, 0.3557071387767792, 0.08675262331962585, 0.3908039927482605, -0.3148605227470398, 0.37484490871429443, 0.18230107426643372, -0.18728147447109222, 0.18441063165664673, 0.09878184646368027, 0.22544831037521362, -0.09291304647922516, -0.36709868907928467, 0.16513332724571228, -0.1884673535823822, -0.5807726979255676, 0.0707348883152008, -0.2966497838497162, -0.12124699354171753, -0.33003324270248413, 0.24220958352088928, -0.17120610177516937, 0.21842554211616516, 0.0028637759387493134, -0.04371897131204605, -0.16173362731933594, -0.12376802414655685, -0.14373835921287537, 0.15838296711444855, -0.10250899195671082, 0.05228825658559799, 0.11218957602977753, 0.04458179697394371, 0.6886457800865173, -0.09713089466094971, -0.2511904835700989, -0.18585257232189178, 0.22600781917572021, -0.11790254712104797, 0.4483458995819092, 0.20242784917354584, 0.26710715889930725, -0.20960386097431183, -0.11844713985919952, -0.2623424828052521, -0.04319266602396965, 0.16656695306301117, -0.20597615838050842, -0.05151035636663437, -0.13417193293571472, 0.10700174421072006, -0.44564288854599, -0.14386162161827087, -0.4154759347438812, 0.13972488045692444, -0.1270834505558014, -0.2604498565196991, -0.07265949994325638, 0.08070030808448792, -0.19431760907173157, -0.03124869614839554, 0.272097647190094, 0.21770308911800385, -0.26420482993125916, -0.105064257979393, -0.3167297840118408, 0.18417228758335114, -0.14485648274421692, 0.048174381256103516, -0.1508510857820511, 0.47630396485328674, -0.12182913720607758, 0.3324124813079834, -0.21833431720733643, -0.4374062120914459, -0.32977136969566345, -0.11380239576101303, 0.014115191996097565, 0.10492271929979324, 0.18842943012714386, 0.1336365044116974, 0.4005512595176697, 0.057011231780052185, -0.11564619839191437, -0.17724452912807465, 0.2762551009654999, 0.0765434131026268, -0.2905521094799042, -0.18242549896240234, -0.001433156430721283, -0.11606720089912415, -0.18985646963119507, -0.1825903356075287, 0.06344939023256302, 0.42822349071502686, 0.13718107342720032, 0.09903373569250107, 0.06284444779157639, 0.325724720954895, 0.2825908064842224, -0.2655025124549866, 0.10789553821086884, 0.10793512314558029, -0.21346956491470337, 0.07626865804195404, 0.09621572494506836, 0.2069898247718811, 0.14449149370193481, -0.49684983491897583, -0.24781754612922668, 0.05061008036136627, -0.2718026041984558, -0.5789520144462585, 0.12212112545967102, -0.1434304565191269, 0.0922216922044754, 0.14047512412071228, 0.07252992689609528, -0.5015711784362793, -0.02848346345126629, -0.16929183900356293, -0.34963473677635193, 0.2867916226387024, -0.004848523065447807, -0.09420228749513626, -0.1089499294757843, 0.08912677317857742, -0.16362881660461426, 0.10598386824131012, 0.24913904070854187, 0.09135980904102325, 0.33260950446128845, 0.13070745766162872, 0.358430951833725, 0.27693048119544983, 0.11380664259195328, -0.4956098198890686, -0.13692274689674377, 0.1347319334745407, 0.0548907034099102, -0.08990265429019928, -0.6182381510734558, 0.42497700452804565, 0.40998607873916626, 0.019124723970890045, -0.10822097957134247, 0.01641235686838627, -0.05638178437948227, -0.2171601504087448, -0.06887415051460266, -0.33532822132110596, -0.144303098320961, -0.05089752748608589, 0.11216080188751221, -0.029431933537125587, 0.07889530062675476, 0.2769770324230194, 0.017689939588308334, 0.1816181093454361, 0.44998908042907715, -0.020829230546951294, -0.4169462323188782, -0.44238585233688354, 0.18176762759685516, -0.09932634234428406, 0.3008546233177185, 0.2716611325740814, 0.1970396488904953, -0.18900080025196075, -0.01328378077596426, -0.12666505575180054, 0.05367710813879967, 0.1069290041923523, 0.06635908037424088, 0.26995110511779785, 0.2448716014623642, 0.0403006412088871, -0.12752625346183777, 0.01597447693347931, 0.10805417597293854, 0.14503908157348633, -0.1129106879234314, -0.10977508127689362, -0.17596617341041565, 0.02634468674659729, 0.15452714264392853, 0.24719952046871185, 0.32852548360824585, -0.4345148205757141, 0.1105906143784523, 0.44113126397132874, -0.35689210891723633, -0.10590244084596634, -0.10102206468582153, 0.09013491868972778, 0.23931138217449188, 0.03819224238395691, -0.25264284014701843, -0.7058799862861633, -0.02036917582154274, 0.09110289812088013, -0.07149513065814972, 0.6596118807792664, 0.32857921719551086, -0.12126826494932175, -0.08801977336406708, -0.5854976177215576, -0.5634847283363342, 0.20393455028533936, -0.03716316819190979, 0.3244602084159851, 0.27652159333229065, 0.46460288763046265, -0.34349846839904785, -0.3842421770095825, 0.04504003748297691, 0.01160542480647564, -0.30140241980552673, -0.18204882740974426, -0.027215508744120598, -0.024520302191376686, 0.08011385798454285, -0.5174787044525146, 0.23406890034675598, -0.10702158510684967, -0.01044543832540512, 0.1880682110786438, 0.055144671350717545, -0.33318179845809937, 0.09519116580486298, 0.3586064875125885, 0.08695374429225922, -0.06919579207897186, -0.20538215339183807, -0.12883536517620087, 0.07402530312538147, -0.3228835165500641, -0.3648597300052643, 0.11659301817417145, -0.26503658294677734, 0.2662842273712158, -0.05560322105884552, -0.40929144620895386, -0.275333046913147, 0.35102611780166626, 0.0075365714728832245, 0.2226700782775879, -0.17481812834739685, 0.33784157037734985, 0.17311108112335205, -0.08795212209224701, 0.05718757212162018, -0.02400180511176586, 0.18201026320457458, -0.2313435673713684, 0.15684978663921356, -0.04492254555225372, 0.009967409074306488, 0.2890937328338623, 0.5037627816200256, 0.225738987326622, -0.1609232872724533, 0.1595926582813263, -0.3348546624183655, 0.03244577348232269, -0.206390380859375, 0.30853161215782166, -0.12385658919811249, 0.05325550585985184, 0.046556614339351654, 0.4930265545845032, -0.2386118471622467, -0.29642507433891296, -0.20418885350227356, -0.14228978753089905, -0.1905679702758789, -0.2649540305137634, -0.022623447701334953, -0.08346658945083618, 0.17374764382839203, -0.07595542073249817, 0.26318952441215515, -0.035544633865356445, -0.3714524805545807, -0.12992309033870697, -0.20645780861377716, 0.44264236092567444, -0.09849397838115692, -0.49463504552841187, -0.023790540173649788, -0.3275415003299713, 0.3061313331127167, 0.2922067642211914, -0.1205810159444809, 0.012690167874097824, -0.19902688264846802, 0.036945994943380356, -0.20757222175598145, 0.13056831061840057, -0.2863108217716217, 0.10718954354524612, -0.0028609633445739746, 0.10212384164333344, -0.4334948658943176, -0.032891105860471725, -0.4005333185195923, -0.36343681812286377, 0.31627747416496277, 0.3328881561756134, -0.3592968285083771, 0.04084264859557152, 0.35743334889411926, 0.1554085910320282, -0.17720603942871094, -0.1280600130558014, -0.17890514433383942, -0.10861875116825104, -0.3143830895423889, 0.2823375463485718, 0.0480819046497345, -0.04512050375342369, -0.29653066396713257, -0.2210770696401596, -0.43141674995422363, 0.0034770555794239044, 0.0704345628619194, 0.22692808508872986, 0.2998741865158081, -0.20768627524375916, -0.011736547574400902, 0.1948525458574295, 0.3221217095851898, 0.2630642056465149, 0.1569494903087616, 0.08738257735967636, 0.3902899920940399, -0.0031708013266324997, -0.22375953197479248, 0.11616391688585281, 0.3166934847831726, 0.1978299766778946, 0.014621593058109283, -0.23906990885734558, -0.12843309342861176, -0.13600361347198486, 0.319150447845459, 0.209708571434021, -0.09945336729288101, -0.18672172725200653, 0.3053237795829773, 0.5100329518318176, 0.010244309902191162, -0.025337301194667816, -0.14662109315395355, 0.1544710099697113, -0.27992135286331177, 0.36642372608184814, 0.36646756529808044, 0.8527870178222656, 0.3598499894142151, 0.25167205929756165, 0.23395973443984985, 0.5847433805465698, 0.11656971275806427, 0.08300967514514923, 0.004125386476516724, -0.2506113648414612, -0.32376229763031006, -0.1543966680765152, 0.011312361806631088, -0.12139018625020981, 0.43112945556640625, -0.3095565140247345, 0.2890568673610687, -0.19059526920318604, 0.17383725941181183, -0.13811157643795013, 0.31290772557258606, 0.1770469695329666, 0.1419440507888794, 0.04400082677602768, 0.02482166886329651, 0.05047110095620155, 0.21951071918010712, 0.054106615483760834, 0.023731525987386703, -0.059089042246341705, -0.16167855262756348, -0.17555227875709534, 0.08011332899332047, -0.07199699431657791, 0.1958877593278885, -0.1507820039987564, -0.005854316055774689, -0.28337526321411133, 0.6415560841560364, -0.056837424635887146, 0.2554922103881836, -0.15299387276172638, 0.1769692748785019, 0.1261313408613205, -0.36715495586395264, 0.3454624116420746, 0.09085141867399216, 0.3336923122406006, -0.1983812153339386, -0.35619238018989563, 0.4255189001560211, -0.29085108637809753, -0.1900900900363922, 0.00851583480834961, 0.01971382275223732, 0.06062289699912071, -0.3670494854450226, -0.540276825428009, -0.06250216066837311, -0.5867486000061035, -0.24951274693012238, 0.028865285217761993, -0.13557326793670654, -0.07781823724508286, 0.29019415378570557, 0.11037932336330414, -0.27927538752555847, -0.16683940589427948, 0.7103028893470764, -0.13872858881950378, 0.02165011689066887, 0.3982851803302765, -0.21826790273189545, -0.22044909000396729, -0.19192367792129517, 0.045351311564445496, 0.13222438097000122, -0.1770482361316681, 0.13743652403354645, -0.005591447465121746, -0.05583536624908447, 0.24127180874347687, 0.5556073188781738, -0.033709846436977386, 0.09359298646450043, -0.17723338305950165, -0.44031280279159546, 0.06854337453842163, 0.5387380123138428, 0.11004173755645752, 0.4105314016342163, 0.2059229016304016, 0.045333705842494965, -0.08848302066326141, -0.09105275571346283, -0.24643439054489136, 0.053557440638542175, -0.2068188488483429, 0.2887824773788452, 0.41626831889152527, 0.04190770536661148, 0.24776668846607208, 0.15391641855239868, 0.15026645362377167, 0.07647740840911865, 0.07241405546665192, -0.16237285733222961, -0.14261206984519958, 0.13105133175849915, -0.01845834031701088, 0.18706834316253662, 0.23487910628318787, -0.06759537756443024, -0.14013232290744781, -0.22212181985378265, 0.35906466841697693, -0.035944584757089615, -0.003797568380832672, 0.09065450727939606, -0.08698607981204987, 0.5225446820259094, -0.21472157537937164, -0.12079767882823944, -0.004585400223731995, -0.10032784938812256, -0.09450436383485794, 0.17545868456363678, -0.24184395372867584, -0.09782784432172775, -0.061657872051000595, 0.11478059738874435, 0.03169862553477287, 0.07732373476028442, 0.07075278460979462, -0.03605039417743683, -0.1684282124042511, 0.2713443338871002, -0.10451659560203552, 0.16661426424980164, -0.3145703673362732, -0.1972074806690216, 0.062261927872896194, 0.24737708270549774, -0.247845858335495, -0.06889612972736359, -0.08446581661701202, 0.16373389959335327, 0.2980392575263977, 0.15543268620967865, 0.44728919863700867, -0.2472628951072693, 0.08133808523416519, 0.16657185554504395, -0.06426776945590973, -0.7175805568695068, -0.00903688371181488, 0.16553351283073425, -0.18075494468212128, -0.029967639595270157, -0.2405787706375122, -0.09794217348098755, 0.37462151050567627, 0.14754489064216614, 0.18698766827583313, 0.6212942004203796, 0.30998703837394714, 0.21189680695533752, 0.22351452708244324, 0.19065944850444794, 0.1746497005224228, 0.3275611102581024, -0.05088159441947937, 0.43842148780822754, 0.2460421323776245, 0.4193423092365265, 0.1740749329328537, 0.08611904829740524, -0.5308178663253784, 0.14694155752658844, -0.16695567965507507, -0.2247242033481598, -0.20958001911640167, -0.25260138511657715, 0.26044023036956787, -0.019796840846538544, 0.0025635436177253723, 0.10508625954389572, -0.16416585445404053, 0.0917237177491188, -0.14993314445018768, -0.15393538773059845, 0.13827356696128845, 0.03569400683045387, 0.5107085108757019, -0.14703905582427979, 0.08759206533432007, 0.19762000441551208, 0.000658281147480011, 0.07067110389471054, 0.29360431432724, 0.31951895356178284, 0.05152847245335579, -0.08961246907711029, -0.08976244926452637, -0.11111301183700562, -0.3158732056617737, -0.004245337098836899, -0.04188470542430878, 0.3040512502193451, -0.3290255069732666, 0.342766672372818, 0.11508578062057495, -0.17421402037143707, -0.2211688607931137, 0.19649651646614075, 0.33822008967399597, 0.03969893231987953, -0.20710867643356323, 0.13012446463108063, -0.10750935971736908, 0.12194926291704178, 0.04739828407764435, -0.19762462377548218, 0.26293274760246277, -0.1535569131374359, 0.18766379356384277, 0.09675408154726028, 0.13412724435329437, 0.06274522840976715, -0.23926085233688354, 0.21067236363887787, 0.04647725820541382, -0.185503751039505, -0.09259136021137238, 0.07407419383525848, -0.3776131272315979, 0.3064824938774109, 0.08851075172424316, -0.426103800535202, 0.07106345891952515, 0.1473531872034073, -0.24372726678848267, 0.17936670780181885, -0.18200121819972992, -0.5241866111755371, 0.04345601424574852, 0.14855805039405823, -0.504855751991272, 0.16490405797958374, -0.034624941647052765, -0.1205122172832489, 0.033017825335264206, -0.4082839787006378, -0.037425290793180466, -0.013605635613203049, 0.02266404777765274, -0.09566555172204971, -0.05721714347600937, -0.03067607991397381, 0.5868942737579346, -0.0030706897377967834, -0.02297123707830906, 0.5868582725524902, -0.261879563331604, 0.2169785499572754, -0.34845593571662903, 0.14109738171100616, -0.09418945759534836, 0.1930045485496521, 0.3561352789402008, 0.18837633728981018, 0.13880430161952972, 0.23817554116249084, 0.2044326812028885, 0.4859582185745239, 0.2636982202529907, -0.3281881511211395, -0.33846983313560486, -0.0705241709947586, -0.1639503538608551, 0.05885054171085358, 0.04994908347725868, 0.3505915105342865, -0.0482512041926384, -0.1546029895544052, -0.08272227644920349, -0.40407028794288635, 0.18338865041732788, -0.410648912191391, 0.012732945382595062, -0.07828895002603531, 0.302406907081604, 0.3169189691543579, -0.015835335478186607, -0.43674662709236145, -0.053266189992427826, 0.26034480333328247, 0.020611204206943512, -0.26992833614349365, -0.0928831398487091, 0.13030143082141876, 0.1939345747232437, -0.266694039106369, -0.021746590733528137, 0.12437943369150162, -0.24589850008487701, -0.4405066967010498, -0.352993369102478 ]
https://github.com/huggingface/datasets/issues/2000
Windows Permission Error (most recent version of datasets)
Hi @itsLuisa ! Could you give us more information about the error you're getting, please? A copy-paste of the Traceback would be nice to get a better understanding of what is wrong :)
Hi everyone, Can anyone help me with why the dataset loading script below raises a Windows Permission Error? I stuck quite closely to https://github.com/huggingface/datasets/blob/master/datasets/conll2003/conll2003.py , only I want to load the data from three local three-column tsv-files (id\ttokens\tpos_tags\n). I am using the most recent version of datasets. Thank you in advance! Luisa My script: ``` import datasets import csv logger = datasets.logging.get_logger(__name__) class SampleConfig(datasets.BuilderConfig): def __init__(self, **kwargs): super(SampleConfig, self).__init__(**kwargs) class Sample(datasets.GeneratorBasedBuilder): BUILDER_CONFIGS = [ SampleConfig(name="conll2003", version=datasets.Version("1.0.0"), description="Conll2003 dataset"), ] def _info(self): return datasets.DatasetInfo( description="Dataset with words and their POS-Tags", features=datasets.Features( { "id": datasets.Value("string"), "tokens": datasets.Sequence(datasets.Value("string")), "pos_tags": datasets.Sequence( datasets.features.ClassLabel( names=[ "''", ",", "-LRB-", "-RRB-", ".", ":", "CC", "CD", "DT", "EX", "FW", "HYPH", "IN", "JJ", "JJR", "JJS", "MD", "NN", "NNP", "NNPS", "NNS", "PDT", "POS", "PRP", "PRP$", "RB", "RBR", "RBS", "RP", "TO", "UH", "VB", "VBD", "VBG", "VBN", "VBP", "VBZ", "WDT", "WP", "WRB", "``" ] ) ), } ), supervised_keys=None, homepage="https://catalog.ldc.upenn.edu/LDC2011T03", citation="Weischedel, Ralph, et al. OntoNotes Release 4.0 LDC2011T03. Web Download. Philadelphia: Linguistic Data Consortium, 2011.", ) def _split_generators(self, dl_manager): loaded_files = dl_manager.download_and_extract(self.config.data_files) return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": loaded_files["train"]}), datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": loaded_files["test"]}), datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": loaded_files["val"]}) ] def _generate_examples(self, filepath): logger.info("generating examples from = %s", filepath) with open(filepath, encoding="cp1252") as f: data = csv.reader(f, delimiter="\t") ids = list() tokens = list() pos_tags = list() for id_, line in enumerate(data): #print(line) if len(line) == 1: if tokens: yield id_, {"id": ids, "tokens": tokens, "pos_tags": pos_tags} ids = list() tokens = list() pos_tags = list() else: ids.append(line[0]) tokens.append(line[1]) pos_tags.append(line[2]) # last example yield id_, {"id": ids, "tokens": tokens, "pos_tags": pos_tags} def main(): dataset = datasets.load_dataset( "data_loading.py", data_files={ "train": "train.tsv", "test": "test.tsv", "val": "val.tsv" } ) #print(dataset) if __name__=="__main__": main() ```
33
Windows Permission Error (most recent version of datasets) Hi everyone, Can anyone help me with why the dataset loading script below raises a Windows Permission Error? I stuck quite closely to https://github.com/huggingface/datasets/blob/master/datasets/conll2003/conll2003.py , only I want to load the data from three local three-column tsv-files (id\ttokens\tpos_tags\n). I am using the most recent version of datasets. Thank you in advance! Luisa My script: ``` import datasets import csv logger = datasets.logging.get_logger(__name__) class SampleConfig(datasets.BuilderConfig): def __init__(self, **kwargs): super(SampleConfig, self).__init__(**kwargs) class Sample(datasets.GeneratorBasedBuilder): BUILDER_CONFIGS = [ SampleConfig(name="conll2003", version=datasets.Version("1.0.0"), description="Conll2003 dataset"), ] def _info(self): return datasets.DatasetInfo( description="Dataset with words and their POS-Tags", features=datasets.Features( { "id": datasets.Value("string"), "tokens": datasets.Sequence(datasets.Value("string")), "pos_tags": datasets.Sequence( datasets.features.ClassLabel( names=[ "''", ",", "-LRB-", "-RRB-", ".", ":", "CC", "CD", "DT", "EX", "FW", "HYPH", "IN", "JJ", "JJR", "JJS", "MD", "NN", "NNP", "NNPS", "NNS", "PDT", "POS", "PRP", "PRP$", "RB", "RBR", "RBS", "RP", "TO", "UH", "VB", "VBD", "VBG", "VBN", "VBP", "VBZ", "WDT", "WP", "WRB", "``" ] ) ), } ), supervised_keys=None, homepage="https://catalog.ldc.upenn.edu/LDC2011T03", citation="Weischedel, Ralph, et al. OntoNotes Release 4.0 LDC2011T03. Web Download. Philadelphia: Linguistic Data Consortium, 2011.", ) def _split_generators(self, dl_manager): loaded_files = dl_manager.download_and_extract(self.config.data_files) return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": loaded_files["train"]}), datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": loaded_files["test"]}), datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": loaded_files["val"]}) ] def _generate_examples(self, filepath): logger.info("generating examples from = %s", filepath) with open(filepath, encoding="cp1252") as f: data = csv.reader(f, delimiter="\t") ids = list() tokens = list() pos_tags = list() for id_, line in enumerate(data): #print(line) if len(line) == 1: if tokens: yield id_, {"id": ids, "tokens": tokens, "pos_tags": pos_tags} ids = list() tokens = list() pos_tags = list() else: ids.append(line[0]) tokens.append(line[1]) pos_tags.append(line[2]) # last example yield id_, {"id": ids, "tokens": tokens, "pos_tags": pos_tags} def main(): dataset = datasets.load_dataset( "data_loading.py", data_files={ "train": "train.tsv", "test": "test.tsv", "val": "val.tsv" } ) #print(dataset) if __name__=="__main__": main() ``` Hi @itsLuisa ! Could you give us more information about the error you're getting, please? A copy-paste of the Traceback would be nice to get a better understanding of what is wrong :)
[ -0.18255707621574402, 0.18238547444343567, -0.040031641721725464, 0.2590482831001282, 0.08137822151184082, 0.13363799452781677, 0.45803403854370117, 0.012254403904080391, 0.18646332621574402, 0.07412855327129364, -0.06345533579587936, -0.01122708898037672, -0.10879621654748917, 0.15729252994060516, -0.03236180171370506, -0.02825137972831726, 0.14535076916217804, 0.04806853458285332, 0.03199769929051399, 0.1396457403898239, -0.40523073077201843, -0.007120972499251366, -0.2379358857870102, 0.10736618936061859, -0.22316156327724457, 0.2783440053462982, -0.01572689414024353, 0.39082902669906616, -0.033802926540374756, -0.23501801490783691, 0.2101650834083557, 0.36248597502708435, 0.6620941162109375, 0.24535292387008667, -0.00011262850603088737, -0.04844985902309418, 0.042043596506118774, -0.020131949335336685, 0.20681904256343842, 0.2423871010541916, 0.13413867354393005, -0.04518669843673706, 0.004125550389289856, -0.10666909068822861, -0.16983693838119507, 0.20000258088111877, -0.06543010473251343, -0.3538350760936737, 0.11399774998426437, 0.4263339340686798, 0.1871957629919052, 0.24746224284172058, -0.18068788945674896, -0.010653854347765446, 0.5910395383834839, 0.04759816825389862, -0.1261596530675888, 0.1927935630083084, 0.2900242209434509, -0.44280555844306946, 0.21414130926132202, 0.1609828770160675, -0.22685831785202026, 0.08554011583328247, 0.3818265199661255, -0.1632639318704605, -0.12995702028274536, -0.2830386459827423, 0.15840590000152588, 0.000052947551012039185, 0.7270632982254028, -0.16924339532852173, -0.30099254846572876, -0.03410464525222778, 0.13930895924568176, -0.26716914772987366, 0.22750520706176758, 0.336598664522171, -0.05052705109119415, 0.07535823434591293, -0.23470036685466766, -0.16715091466903687, -0.44340088963508606, 0.13589595258235931, 0.1775050014257431, -0.22929826378822327, -0.0849330797791481, 0.22970876097679138, 0.09066364914178848, -0.1301719695329666, 0.35443294048309326, 0.12944380939006805, 0.04196198657155037, 0.25175973773002625, -0.4671480059623718, 0.3360510766506195, 0.2092747688293457, 0.29802218079566956, -0.032027047127485275, 0.2779501974582672, -0.13617129623889923, -0.21062761545181274, 0.20189811289310455, 0.12501981854438782, 0.17727449536323547, -0.05427422747015953, 0.15196049213409424, 0.24112816154956818, 0.1375095248222351, -0.02251112088561058, 0.040243204683065414, -0.11744072288274765, -0.49004849791526794, -0.6061115860939026, 0.1152084469795227, 0.24548214673995972, 0.30733633041381836, -0.08926711976528168, -0.36133620142936707, 0.11647597700357437, 0.11813554912805557, 0.06809926778078079, 0.20681877434253693, 0.4097331166267395, 0.2663407027721405, 0.011945264413952827, 0.373932421207428, 0.27149978280067444, -0.0628640353679657, -0.025800086557865143, -0.08621231466531754, 0.004246184602379799, -0.24589866399765015, -0.04984544962644577, 0.42578738927841187, -0.3442578911781311, -0.11349939554929733, 0.11736317723989487, 0.035344041883945465, -0.12134968489408493, 0.04945440590381622, -0.018772169947624207, 0.116459921002388, 0.4388580322265625, 0.2584179937839508, 0.034996964037418365, 0.14504356682300568, -0.18511922657489777, -0.028277575969696045, 0.2364419400691986, -0.1324140727519989, -0.3404766619205475, -0.18835721909999847, 0.1011299192905426, 0.017074331641197205, 0.04991445317864418, -0.21830567717552185, -0.1330365091562271, 0.12284994125366211, -0.018460897728800774, 0.1442888081073761, -0.10070264339447021, -0.26606541872024536, -0.33979496359825134, -0.10151451826095581, 0.8314393162727356, -0.5272638201713562, 0.1402398943901062, -0.11474497616291046, -0.3047669231891632, 0.1072494313120842, 0.33119669556617737, -0.07649985700845718, 0.11135625839233398, -0.21448299288749695, 0.1516454815864563, -0.13571247458457947, -0.3680855631828308, -0.1788967400789261, 0.37800607085227966, -0.017754048109054565, -0.10367979854345322, 0.24373438954353333, -0.03900807350873947, 0.044485945254564285, -0.20335613191127777, -0.0898013561964035, 0.13412794470787048, 0.13846105337142944, 0.260562539100647, 0.22497491538524628, 0.00756785087287426, 0.23220951855182648, 0.31242337822914124, 0.05534496158361435, -0.06275161355733871, 0.29186737537384033, -0.21869952976703644, 0.18955263495445251, -0.30108878016471863, 0.22454604506492615, 0.4166680574417114, 0.11581951379776001, 0.3091973662376404, 0.033221274614334106, -0.2322230339050293, -0.4455748200416565, 0.26520147919654846, 0.3054819703102112, -0.12395784258842468, 0.04690246656537056, -0.256583571434021, -0.15023881196975708, 0.21092717349529266, -0.38839906454086304, 0.11677099764347076, 0.08991148322820663, 0.2979710102081299, -0.17740227282047272, -0.3208981156349182, 0.034541141241788864, 0.05634528398513794, -0.24442975223064423, -0.11113464087247849, -0.15343300998210907, 0.03845885396003723, -0.30667024850845337, 0.018042564392089844, 0.20494391024112701, -0.014822080731391907, 0.4157698452472687, -0.07438039034605026, 0.0026424801908433437, 0.35913267731666565, 0.2803249657154083, -0.03677845001220703, 0.0367962047457695, 0.09830936044454575, -0.22612757980823517, 0.07714474201202393, 0.12725761532783508, -0.009582286700606346, 0.09168652445077896, -0.10252287983894348, -0.025553949177265167, 0.12650997936725616, -0.22595013678073883, 0.004112377762794495, -0.28790777921676636, 0.131464883685112, -0.009617658331990242, 0.0248836912214756, -0.0246062483638525, -0.21992658078670502, 0.35938090085983276, 0.5096361637115479, -0.32853567600250244, -0.04535823315382004, -0.10262947529554367, -0.0515071377158165, 0.2793930768966675, -0.1505601704120636, -0.1328619420528412, 0.06870721280574799, 0.09919131547212601, 0.28524383902549744, 0.1979035586118698, 0.2263828068971634, 0.43857401609420776, 0.06445945054292679, -0.1653026044368744, 0.05295100808143616, 0.20327620208263397, -0.05280649662017822, 0.14838629961013794, -0.3353103995323181, 0.07930514216423035, 0.2603347599506378, -0.29921016097068787, 0.12752600014209747, -0.37755149602890015, -0.1403336077928543, 0.14408695697784424, 0.3369528353214264, -0.513848066329956, -0.13262994587421417, -0.01495932973921299, -0.13346050679683685, 0.11050910502672195, -0.31558093428611755, -0.28314852714538574, 0.013027379289269447, -0.20135387778282166, 0.162641242146492, -0.27326297760009766, -0.12564106285572052, -0.40158751606941223, 0.057359591126441956, 0.2376943677663803, -0.0031733252108097076, -0.021724987775087357, 0.08656207472085953, -0.023845326155424118, 0.014601659029722214, 0.4932957887649536, -0.2829744517803192, 0.43707332015037537, -0.1266709566116333, 0.38147950172424316, -0.2898308038711548, 0.10609082132577896, -0.2475932538509369, -0.33447396755218506, 0.320374459028244, 0.24623450636863708, 0.0983886644244194, -0.026245463639497757, -0.20588073134422302, 0.11958616971969604, -0.12245824933052063, -0.0811634287238121, 0.17551106214523315, 0.30421680212020874, -0.5918184518814087, -0.2506391406059265, -0.15341505408287048, -0.20429277420043945, -0.35339486598968506, 0.2209896296262741, 0.13553504645824432, 0.31105393171310425, 0.20728591084480286, -0.12186010181903839, 0.05302535369992256, 0.04345601052045822, 0.3111524283885956, -0.3197955787181854, -0.09646143019199371, 0.013731539249420166, -0.15026597678661346, -0.5285488963127136, 0.22050604224205017, 0.3835146427154541, -0.12172186374664307, 0.1091843694448471, -0.11583882570266724, 0.1251097470521927, -0.21409820020198822, 0.2546713352203369, -0.22828757762908936, 0.16625863313674927, 0.19286644458770752, 0.07349179685115814, 0.08055682480335236, -0.16946586966514587, -0.0990941971540451, -0.34508955478668213, -0.2438754141330719, -0.2646101117134094, 0.1542905569076538, 0.33303987979888916, -0.13151401281356812, 0.21499359607696533, 0.3426207900047302, 0.22642581164836884, 0.4461938142776489, -0.12768426537513733, 0.4316767752170563, 0.28185203671455383, -0.6437907814979553, 0.1521579921245575, -0.18613117933273315, -0.053072698414325714, 0.36015933752059937, -0.07771124690771103, 0.029473133385181427, -0.1574554294347763, 0.058306943625211716, -0.3378964364528656, -0.21079277992248535, -0.0072617847472429276, -0.2567564845085144, 0.2782018184661865, -0.14798937737941742, 0.007296547293663025, -0.2808842062950134, -0.06289499998092651, 0.005472112447023392, 0.5689311623573303, 0.11677471548318863, -0.06160149723291397, -0.3760632574558258, 0.007870917208492756, -0.4856024384498596, 0.269647479057312, 0.06245287507772446, 0.6091942191123962, -0.15552634000778198, 0.031503111124038696, 0.143777996301651, 0.1085258424282074, 0.9010465145111084, -0.4391026794910431, 0.2763887345790863, 0.24810084700584412, 0.11669428646564484, -0.26317721605300903, -0.21154135465621948, -0.2682217061519623, 0.06743500381708145, -0.013137325644493103, 0.30300718545913696, 0.011896222829818726, -0.3937035799026489, 0.03399713337421417, -0.15305110812187195, -0.07940874993801117, -0.41981184482574463, -0.2535524368286133, -0.1815236508846283, -0.3771490454673767, -0.10418102890253067, 0.23979400098323822, 0.1634427011013031, -0.25633153319358826, 0.249716654419899, -0.02241017483174801, 0.28822168707847595, 0.11481194943189621, -0.04067457467317581, 0.10160744935274124, 0.3072130084037781, 0.07862652838230133, -0.08094562590122223, 0.12363222986459732, 0.21233372390270233, 0.5588169693946838, -0.02612468972802162, -0.3647991418838501, -0.11076735705137253, -0.0270078182220459, 0.4848949909210205, 0.08459784835577011, -0.15330374240875244, 0.10140476375818253, -0.22111031413078308, -0.05864448845386505, -0.3480153977870941, 0.073952816426754, 0.27310529351234436, -0.051542386412620544, 0.059536177664995193, -0.21576136350631714, 0.31640639901161194, 0.17232643067836761, -0.194337397813797, -0.0005689859390258789, 0.14229942858219147, -0.2947746515274048, -0.09350654482841492, 0.051076021045446396, 0.5023056864738464, -0.29400694370269775, 0.27977806329727173, 0.1956000030040741, -0.16591037809848785, -0.07114346325397491, 0.213572159409523, -0.08469605445861816, -0.401723712682724, -0.30050304532051086, -0.013430009596049786, -0.10526701807975769, -0.005473993718624115, 0.15854136645793915, 0.08495506644248962, 0.04002366587519646, -0.09241420030593872, 0.3835965394973755, 0.03176065534353256, 0.0596931055188179, -0.20207560062408447, -0.2441047728061676, 0.10191044956445694, 0.15196841955184937, -0.1360996663570404, -0.02357245609164238, -0.1311587691307068, 0.01354348286986351, 0.1534244865179062, 0.023918554186820984, -0.397871732711792, 0.28555580973625183, -0.32799649238586426, 0.010729631409049034, -0.1360236257314682, 0.0947401374578476, 0.5240973234176636, 0.44027066230773926, -0.006493039429187775, 0.14545460045337677, -0.25311654806137085, -0.266656756401062, 0.1540936976671219, -0.2917831540107727, -0.29157960414886475, -0.02366511896252632, 0.2547367811203003, 0.02128102257847786, -0.3019716739654541, -0.19220402836799622, -0.03317781537771225, -0.24326930940151215, -0.06305999308824539, 0.46754610538482666, 0.1187870129942894, -0.507037341594696, -0.16829383373260498, -0.23205021023750305, -0.058400288224220276, 0.07155062258243561, 0.10308665037155151, 0.15286192297935486, -0.10854354500770569, 0.06198248639702797, -0.2745192348957062, -0.2699644863605499, 0.06998232752084732, 0.4720025360584259, -0.2750081419944763, 0.10218392312526703, 0.5445799827575684, 0.4029548764228821, -0.16026076674461365, -0.24238750338554382, 0.08464693278074265, 0.08002977818250656, -0.2135886251926422, 0.0007552523165941238, 0.312019407749176, 0.045267194509506226, 0.420676589012146, 0.06798232346773148, 0.22286157310009003, -0.40208518505096436, 0.189778134226799, -0.46255165338516235, -0.11029917746782303, -0.08787930011749268, -0.1858239471912384, 0.3120943605899811, 0.09340912848711014, -0.14425835013389587, 0.030312785878777504, -0.23342302441596985, -0.29327476024627686, 0.11278581619262695, -0.002598324790596962, 0.11875800788402557, 0.45224615931510925, -0.22970938682556152, -0.08565115183591843, -0.021958179771900177, 0.0636572316288948, -0.14817719161510468, -0.17814180254936218, -0.2058383822441101, 0.003955258056521416, 0.11139517277479172, 0.18786472082138062, -0.33875033259391785, 0.08584088832139969, -0.5403546690940857, -0.2182607799768448, -0.16202302277088165, 0.2066289633512497, 0.29495781660079956, -0.1138811856508255, 0.473836749792099, 0.006451267749071121, -0.014876045286655426, 0.02123396098613739, 0.19102820754051208, -0.19150924682617188, 0.08594764024019241, -0.37891536951065063, 0.4132496118545532, 0.02589370682835579, -0.08544833213090897, -0.30491986870765686, 0.24929100275039673, 0.24214054644107819, 0.1775052547454834, 0.136467844247818, -0.2938653230667114, 0.04528404399752617, 0.1257752627134323, 0.5298551321029663, 0.09405400604009628, -0.31138256192207336, 0.030527716502547264, 0.1404469609260559, 0.2037540227174759, -0.32571181654930115, -0.15713492035865784, -0.26508408784866333, -0.11846039444208145, -0.062447015196084976, 0.1154167428612709, 0.01126733049750328, -0.34119829535484314, -0.08927716314792633, -0.11548908799886703, 0.2970600128173828, 0.22717808187007904, -0.09396527707576752, 0.5441300272941589, 0.0009060315787792206, -0.02970268204808235, 0.3708811402320862, 0.5498603582382202, 0.05003703758120537, 0.42438167333602905, 0.19492998719215393, -0.10301116108894348, -0.1730060577392578, 0.026519883424043655, -0.005094967782497406, -0.7224730253219604, 0.19037581980228424, -0.0895252525806427, -0.015327699482440948, 0.007098805159330368, -0.18461906909942627, 0.49622881412506104, -0.1142301931977272, -0.017531946301460266, -0.38817188143730164, 0.15122047066688538, -0.2028813660144806, -0.16554036736488342, -0.4238615930080414, 0.09894750267267227, -0.08774857223033905, -0.020538486540317535, -0.12521648406982422, -0.2460022121667862, 0.0037853196263313293, 0.22845768928527832, -0.03257942199707031, -0.21356500685214996, 0.34927108883857727, 0.25295090675354004, -0.13782289624214172, -0.3874366283416748, -0.078046515583992, -0.057786449790000916, 0.12036646902561188, 0.13293218612670898, 0.022233888506889343, 0.6245726346969604, 0.33184826374053955, -0.05589472874999046, -0.01267388928681612, 0.012963204644620419, -0.031459107995033264, -0.03563358634710312, 0.38662606477737427, -0.2138810157775879, 0.37004968523979187, 0.3404139578342438, 0.09749662131071091, -0.05886427313089371, -0.06138579174876213, 0.0397351011633873, -0.10482752323150635, -0.0849883109331131, -0.03841374069452286, -0.376323938369751, -0.258559912443161, -0.1624860316514969, 0.10234728455543518, -0.08691549301147461, -0.022329211235046387, 0.6900109052658081, 0.15030677616596222, 0.34198904037475586, -0.33782780170440674, 0.06619597226381302, 0.029575098305940628, 0.4036605954170227, 0.47015801072120667, 0.07601331919431686, -0.4037768840789795, -0.07999511063098907, -0.4968741834163666, 0.06213952228426933, 0.1211792528629303, -0.13171710073947906, 0.1792277693748474, -0.1361561119556427, -0.013322949409484863, -0.19852173328399658, -0.05734340846538544, 0.029725903645157814, 0.024238809943199158, 0.32170814275741577, -0.008683832362294197, -0.10772530734539032, 0.26555800437927246, -0.06722356379032135, 0.1426307111978531, -0.5638713836669922, 0.06713926792144775, -0.22150146961212158, 0.057566069066524506, -0.4719405770301819, 0.08981980383396149, 0.12385375797748566, 0.13968583941459656, 0.24312788248062134, 0.01556624285876751, 0.3771498203277588, -0.004346359521150589, 0.1913798600435257, -0.5739652514457703, 0.06780893355607986, -0.17265184223651886, 0.14340704679489136, -0.1353251188993454, -0.025137003511190414, -0.2696663737297058, 0.07280153781175613, -0.09839769452810287, 0.11882510036230087, -0.0468875914812088, 0.1527618169784546, -0.05127260088920593, 0.1282426118850708, -0.18334324657917023, -0.041647013276815414, 0.2216355800628662, -0.14370983839035034, -0.18954476714134216, 0.38026517629623413, -0.3233773112297058, -0.37237459421157837, 0.46831756830215454, -0.26504164934158325, -0.25128841400146484, 0.013105588965117931, 0.3566475212574005, -0.12010984867811203, -0.16656729578971863, -0.1439182013273239, 0.3625411093235016, 0.17249199748039246, -0.004814758896827698, -0.3380488455295563, 0.4713963568210602, -0.20368410646915436, -0.1848144680261612, 0.03641429916024208, 0.42348936200141907, -0.008436035364866257, -0.2079799771308899, 0.03416357561945915, -0.1151265799999237 ]
https://github.com/huggingface/datasets/issues/2000
Windows Permission Error (most recent version of datasets)
Hello @SBrandeis , this is it: ``` Traceback (most recent call last): File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\builder.py", line 537, in incomplete_dir yield tmp_dir File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\builder.py", line 578, in download_and_prepare self._download_and_prepare( File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\builder.py", line 656, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\builder.py", line 982, in _prepare_split num_examples, num_bytes = writer.finalize() File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\arrow_writer.py", line 297, in finalize self.write_on_file() File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\arrow_writer.py", line 230, in write_on_file pa_array = pa.array(typed_sequence) File "pyarrow\array.pxi", line 222, in pyarrow.lib.array File "pyarrow\array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\arrow_writer.py", line 97, in __arrow_array__ out = pa.array(self.data, type=type) File "pyarrow\array.pxi", line 305, in pyarrow.lib.array File "pyarrow\array.pxi", line 39, in pyarrow.lib._sequence_to_array File "pyarrow\error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow\error.pxi", line 107, in pyarrow.lib.check_status pyarrow.lib.ArrowTypeError: Expected bytes, got a 'list' object During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:/Users/Luisa/Documents/Uni/WS 2020,21/Neural Networks/Final_Project/NN_Project/data_loading.py", line 122, in <module> main() File "C:/Users/Luisa/Documents/Uni/WS 2020,21/Neural Networks/Final_Project/NN_Project/data_loading.py", line 111, in main dataset = datasets.load_dataset( File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\builder.py", line 586, in download_and_prepare self._save_info() File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\contextlib.py", line 131, in __exit__ self.gen.throw(type, value, traceback) File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\builder.py", line 543, in incomplete_dir shutil.rmtree(tmp_dir) File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\shutil.py", line 740, in rmtree return _rmtree_unsafe(path, onerror) File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\shutil.py", line 618, in _rmtree_unsafe onerror(os.unlink, fullname, sys.exc_info()) File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\shutil.py", line 616, in _rmtree_unsafe os.unlink(fullname) PermissionError: [WinError 32] Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird: 'C:\\Users\\Luisa\\.cache\\huggingface\\datasets\\sample\\default-20ee7d51a6a9454f\\0.0.0\\5fc4c3a355ea77ab446bd31fca5082437600b8364d29b2b95264048bd1f398b1.incomplete\\sample-train.arrow' Process finished with exit code 1 ```
Hi everyone, Can anyone help me with why the dataset loading script below raises a Windows Permission Error? I stuck quite closely to https://github.com/huggingface/datasets/blob/master/datasets/conll2003/conll2003.py , only I want to load the data from three local three-column tsv-files (id\ttokens\tpos_tags\n). I am using the most recent version of datasets. Thank you in advance! Luisa My script: ``` import datasets import csv logger = datasets.logging.get_logger(__name__) class SampleConfig(datasets.BuilderConfig): def __init__(self, **kwargs): super(SampleConfig, self).__init__(**kwargs) class Sample(datasets.GeneratorBasedBuilder): BUILDER_CONFIGS = [ SampleConfig(name="conll2003", version=datasets.Version("1.0.0"), description="Conll2003 dataset"), ] def _info(self): return datasets.DatasetInfo( description="Dataset with words and their POS-Tags", features=datasets.Features( { "id": datasets.Value("string"), "tokens": datasets.Sequence(datasets.Value("string")), "pos_tags": datasets.Sequence( datasets.features.ClassLabel( names=[ "''", ",", "-LRB-", "-RRB-", ".", ":", "CC", "CD", "DT", "EX", "FW", "HYPH", "IN", "JJ", "JJR", "JJS", "MD", "NN", "NNP", "NNPS", "NNS", "PDT", "POS", "PRP", "PRP$", "RB", "RBR", "RBS", "RP", "TO", "UH", "VB", "VBD", "VBG", "VBN", "VBP", "VBZ", "WDT", "WP", "WRB", "``" ] ) ), } ), supervised_keys=None, homepage="https://catalog.ldc.upenn.edu/LDC2011T03", citation="Weischedel, Ralph, et al. OntoNotes Release 4.0 LDC2011T03. Web Download. Philadelphia: Linguistic Data Consortium, 2011.", ) def _split_generators(self, dl_manager): loaded_files = dl_manager.download_and_extract(self.config.data_files) return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": loaded_files["train"]}), datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": loaded_files["test"]}), datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": loaded_files["val"]}) ] def _generate_examples(self, filepath): logger.info("generating examples from = %s", filepath) with open(filepath, encoding="cp1252") as f: data = csv.reader(f, delimiter="\t") ids = list() tokens = list() pos_tags = list() for id_, line in enumerate(data): #print(line) if len(line) == 1: if tokens: yield id_, {"id": ids, "tokens": tokens, "pos_tags": pos_tags} ids = list() tokens = list() pos_tags = list() else: ids.append(line[0]) tokens.append(line[1]) pos_tags.append(line[2]) # last example yield id_, {"id": ids, "tokens": tokens, "pos_tags": pos_tags} def main(): dataset = datasets.load_dataset( "data_loading.py", data_files={ "train": "train.tsv", "test": "test.tsv", "val": "val.tsv" } ) #print(dataset) if __name__=="__main__": main() ```
230
Windows Permission Error (most recent version of datasets) Hi everyone, Can anyone help me with why the dataset loading script below raises a Windows Permission Error? I stuck quite closely to https://github.com/huggingface/datasets/blob/master/datasets/conll2003/conll2003.py , only I want to load the data from three local three-column tsv-files (id\ttokens\tpos_tags\n). I am using the most recent version of datasets. Thank you in advance! Luisa My script: ``` import datasets import csv logger = datasets.logging.get_logger(__name__) class SampleConfig(datasets.BuilderConfig): def __init__(self, **kwargs): super(SampleConfig, self).__init__(**kwargs) class Sample(datasets.GeneratorBasedBuilder): BUILDER_CONFIGS = [ SampleConfig(name="conll2003", version=datasets.Version("1.0.0"), description="Conll2003 dataset"), ] def _info(self): return datasets.DatasetInfo( description="Dataset with words and their POS-Tags", features=datasets.Features( { "id": datasets.Value("string"), "tokens": datasets.Sequence(datasets.Value("string")), "pos_tags": datasets.Sequence( datasets.features.ClassLabel( names=[ "''", ",", "-LRB-", "-RRB-", ".", ":", "CC", "CD", "DT", "EX", "FW", "HYPH", "IN", "JJ", "JJR", "JJS", "MD", "NN", "NNP", "NNPS", "NNS", "PDT", "POS", "PRP", "PRP$", "RB", "RBR", "RBS", "RP", "TO", "UH", "VB", "VBD", "VBG", "VBN", "VBP", "VBZ", "WDT", "WP", "WRB", "``" ] ) ), } ), supervised_keys=None, homepage="https://catalog.ldc.upenn.edu/LDC2011T03", citation="Weischedel, Ralph, et al. OntoNotes Release 4.0 LDC2011T03. Web Download. Philadelphia: Linguistic Data Consortium, 2011.", ) def _split_generators(self, dl_manager): loaded_files = dl_manager.download_and_extract(self.config.data_files) return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": loaded_files["train"]}), datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": loaded_files["test"]}), datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": loaded_files["val"]}) ] def _generate_examples(self, filepath): logger.info("generating examples from = %s", filepath) with open(filepath, encoding="cp1252") as f: data = csv.reader(f, delimiter="\t") ids = list() tokens = list() pos_tags = list() for id_, line in enumerate(data): #print(line) if len(line) == 1: if tokens: yield id_, {"id": ids, "tokens": tokens, "pos_tags": pos_tags} ids = list() tokens = list() pos_tags = list() else: ids.append(line[0]) tokens.append(line[1]) pos_tags.append(line[2]) # last example yield id_, {"id": ids, "tokens": tokens, "pos_tags": pos_tags} def main(): dataset = datasets.load_dataset( "data_loading.py", data_files={ "train": "train.tsv", "test": "test.tsv", "val": "val.tsv" } ) #print(dataset) if __name__=="__main__": main() ``` Hello @SBrandeis , this is it: ``` Traceback (most recent call last): File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\builder.py", line 537, in incomplete_dir yield tmp_dir File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\builder.py", line 578, in download_and_prepare self._download_and_prepare( File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\builder.py", line 656, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\builder.py", line 982, in _prepare_split num_examples, num_bytes = writer.finalize() File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\arrow_writer.py", line 297, in finalize self.write_on_file() File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\arrow_writer.py", line 230, in write_on_file pa_array = pa.array(typed_sequence) File "pyarrow\array.pxi", line 222, in pyarrow.lib.array File "pyarrow\array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\arrow_writer.py", line 97, in __arrow_array__ out = pa.array(self.data, type=type) File "pyarrow\array.pxi", line 305, in pyarrow.lib.array File "pyarrow\array.pxi", line 39, in pyarrow.lib._sequence_to_array File "pyarrow\error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow\error.pxi", line 107, in pyarrow.lib.check_status pyarrow.lib.ArrowTypeError: Expected bytes, got a 'list' object During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:/Users/Luisa/Documents/Uni/WS 2020,21/Neural Networks/Final_Project/NN_Project/data_loading.py", line 122, in <module> main() File "C:/Users/Luisa/Documents/Uni/WS 2020,21/Neural Networks/Final_Project/NN_Project/data_loading.py", line 111, in main dataset = datasets.load_dataset( File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\builder.py", line 586, in download_and_prepare self._save_info() File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\contextlib.py", line 131, in __exit__ self.gen.throw(type, value, traceback) File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\builder.py", line 543, in incomplete_dir shutil.rmtree(tmp_dir) File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\shutil.py", line 740, in rmtree return _rmtree_unsafe(path, onerror) File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\shutil.py", line 618, in _rmtree_unsafe onerror(os.unlink, fullname, sys.exc_info()) File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\shutil.py", line 616, in _rmtree_unsafe os.unlink(fullname) PermissionError: [WinError 32] Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird: 'C:\\Users\\Luisa\\.cache\\huggingface\\datasets\\sample\\default-20ee7d51a6a9454f\\0.0.0\\5fc4c3a355ea77ab446bd31fca5082437600b8364d29b2b95264048bd1f398b1.incomplete\\sample-train.arrow' Process finished with exit code 1 ```
[ -0.18255707621574402, 0.18238547444343567, -0.040031641721725464, 0.2590482831001282, 0.08137822151184082, 0.13363799452781677, 0.45803403854370117, 0.012254403904080391, 0.18646332621574402, 0.07412855327129364, -0.06345533579587936, -0.01122708898037672, -0.10879621654748917, 0.15729252994060516, -0.03236180171370506, -0.02825137972831726, 0.14535076916217804, 0.04806853458285332, 0.03199769929051399, 0.1396457403898239, -0.40523073077201843, -0.007120972499251366, -0.2379358857870102, 0.10736618936061859, -0.22316156327724457, 0.2783440053462982, -0.01572689414024353, 0.39082902669906616, -0.033802926540374756, -0.23501801490783691, 0.2101650834083557, 0.36248597502708435, 0.6620941162109375, 0.24535292387008667, -0.00011262850603088737, -0.04844985902309418, 0.042043596506118774, -0.020131949335336685, 0.20681904256343842, 0.2423871010541916, 0.13413867354393005, -0.04518669843673706, 0.004125550389289856, -0.10666909068822861, -0.16983693838119507, 0.20000258088111877, -0.06543010473251343, -0.3538350760936737, 0.11399774998426437, 0.4263339340686798, 0.1871957629919052, 0.24746224284172058, -0.18068788945674896, -0.010653854347765446, 0.5910395383834839, 0.04759816825389862, -0.1261596530675888, 0.1927935630083084, 0.2900242209434509, -0.44280555844306946, 0.21414130926132202, 0.1609828770160675, -0.22685831785202026, 0.08554011583328247, 0.3818265199661255, -0.1632639318704605, -0.12995702028274536, -0.2830386459827423, 0.15840590000152588, 0.000052947551012039185, 0.7270632982254028, -0.16924339532852173, -0.30099254846572876, -0.03410464525222778, 0.13930895924568176, -0.26716914772987366, 0.22750520706176758, 0.336598664522171, -0.05052705109119415, 0.07535823434591293, -0.23470036685466766, -0.16715091466903687, -0.44340088963508606, 0.13589595258235931, 0.1775050014257431, -0.22929826378822327, -0.0849330797791481, 0.22970876097679138, 0.09066364914178848, -0.1301719695329666, 0.35443294048309326, 0.12944380939006805, 0.04196198657155037, 0.25175973773002625, -0.4671480059623718, 0.3360510766506195, 0.2092747688293457, 0.29802218079566956, -0.032027047127485275, 0.2779501974582672, -0.13617129623889923, -0.21062761545181274, 0.20189811289310455, 0.12501981854438782, 0.17727449536323547, -0.05427422747015953, 0.15196049213409424, 0.24112816154956818, 0.1375095248222351, -0.02251112088561058, 0.040243204683065414, -0.11744072288274765, -0.49004849791526794, -0.6061115860939026, 0.1152084469795227, 0.24548214673995972, 0.30733633041381836, -0.08926711976528168, -0.36133620142936707, 0.11647597700357437, 0.11813554912805557, 0.06809926778078079, 0.20681877434253693, 0.4097331166267395, 0.2663407027721405, 0.011945264413952827, 0.373932421207428, 0.27149978280067444, -0.0628640353679657, -0.025800086557865143, -0.08621231466531754, 0.004246184602379799, -0.24589866399765015, -0.04984544962644577, 0.42578738927841187, -0.3442578911781311, -0.11349939554929733, 0.11736317723989487, 0.035344041883945465, -0.12134968489408493, 0.04945440590381622, -0.018772169947624207, 0.116459921002388, 0.4388580322265625, 0.2584179937839508, 0.034996964037418365, 0.14504356682300568, -0.18511922657489777, -0.028277575969696045, 0.2364419400691986, -0.1324140727519989, -0.3404766619205475, -0.18835721909999847, 0.1011299192905426, 0.017074331641197205, 0.04991445317864418, -0.21830567717552185, -0.1330365091562271, 0.12284994125366211, -0.018460897728800774, 0.1442888081073761, -0.10070264339447021, -0.26606541872024536, -0.33979496359825134, -0.10151451826095581, 0.8314393162727356, -0.5272638201713562, 0.1402398943901062, -0.11474497616291046, -0.3047669231891632, 0.1072494313120842, 0.33119669556617737, -0.07649985700845718, 0.11135625839233398, -0.21448299288749695, 0.1516454815864563, -0.13571247458457947, -0.3680855631828308, -0.1788967400789261, 0.37800607085227966, -0.017754048109054565, -0.10367979854345322, 0.24373438954353333, -0.03900807350873947, 0.044485945254564285, -0.20335613191127777, -0.0898013561964035, 0.13412794470787048, 0.13846105337142944, 0.260562539100647, 0.22497491538524628, 0.00756785087287426, 0.23220951855182648, 0.31242337822914124, 0.05534496158361435, -0.06275161355733871, 0.29186737537384033, -0.21869952976703644, 0.18955263495445251, -0.30108878016471863, 0.22454604506492615, 0.4166680574417114, 0.11581951379776001, 0.3091973662376404, 0.033221274614334106, -0.2322230339050293, -0.4455748200416565, 0.26520147919654846, 0.3054819703102112, -0.12395784258842468, 0.04690246656537056, -0.256583571434021, -0.15023881196975708, 0.21092717349529266, -0.38839906454086304, 0.11677099764347076, 0.08991148322820663, 0.2979710102081299, -0.17740227282047272, -0.3208981156349182, 0.034541141241788864, 0.05634528398513794, -0.24442975223064423, -0.11113464087247849, -0.15343300998210907, 0.03845885396003723, -0.30667024850845337, 0.018042564392089844, 0.20494391024112701, -0.014822080731391907, 0.4157698452472687, -0.07438039034605026, 0.0026424801908433437, 0.35913267731666565, 0.2803249657154083, -0.03677845001220703, 0.0367962047457695, 0.09830936044454575, -0.22612757980823517, 0.07714474201202393, 0.12725761532783508, -0.009582286700606346, 0.09168652445077896, -0.10252287983894348, -0.025553949177265167, 0.12650997936725616, -0.22595013678073883, 0.004112377762794495, -0.28790777921676636, 0.131464883685112, -0.009617658331990242, 0.0248836912214756, -0.0246062483638525, -0.21992658078670502, 0.35938090085983276, 0.5096361637115479, -0.32853567600250244, -0.04535823315382004, -0.10262947529554367, -0.0515071377158165, 0.2793930768966675, -0.1505601704120636, -0.1328619420528412, 0.06870721280574799, 0.09919131547212601, 0.28524383902549744, 0.1979035586118698, 0.2263828068971634, 0.43857401609420776, 0.06445945054292679, -0.1653026044368744, 0.05295100808143616, 0.20327620208263397, -0.05280649662017822, 0.14838629961013794, -0.3353103995323181, 0.07930514216423035, 0.2603347599506378, -0.29921016097068787, 0.12752600014209747, -0.37755149602890015, -0.1403336077928543, 0.14408695697784424, 0.3369528353214264, -0.513848066329956, -0.13262994587421417, -0.01495932973921299, -0.13346050679683685, 0.11050910502672195, -0.31558093428611755, -0.28314852714538574, 0.013027379289269447, -0.20135387778282166, 0.162641242146492, -0.27326297760009766, -0.12564106285572052, -0.40158751606941223, 0.057359591126441956, 0.2376943677663803, -0.0031733252108097076, -0.021724987775087357, 0.08656207472085953, -0.023845326155424118, 0.014601659029722214, 0.4932957887649536, -0.2829744517803192, 0.43707332015037537, -0.1266709566116333, 0.38147950172424316, -0.2898308038711548, 0.10609082132577896, -0.2475932538509369, -0.33447396755218506, 0.320374459028244, 0.24623450636863708, 0.0983886644244194, -0.026245463639497757, -0.20588073134422302, 0.11958616971969604, -0.12245824933052063, -0.0811634287238121, 0.17551106214523315, 0.30421680212020874, -0.5918184518814087, -0.2506391406059265, -0.15341505408287048, -0.20429277420043945, -0.35339486598968506, 0.2209896296262741, 0.13553504645824432, 0.31105393171310425, 0.20728591084480286, -0.12186010181903839, 0.05302535369992256, 0.04345601052045822, 0.3111524283885956, -0.3197955787181854, -0.09646143019199371, 0.013731539249420166, -0.15026597678661346, -0.5285488963127136, 0.22050604224205017, 0.3835146427154541, -0.12172186374664307, 0.1091843694448471, -0.11583882570266724, 0.1251097470521927, -0.21409820020198822, 0.2546713352203369, -0.22828757762908936, 0.16625863313674927, 0.19286644458770752, 0.07349179685115814, 0.08055682480335236, -0.16946586966514587, -0.0990941971540451, -0.34508955478668213, -0.2438754141330719, -0.2646101117134094, 0.1542905569076538, 0.33303987979888916, -0.13151401281356812, 0.21499359607696533, 0.3426207900047302, 0.22642581164836884, 0.4461938142776489, -0.12768426537513733, 0.4316767752170563, 0.28185203671455383, -0.6437907814979553, 0.1521579921245575, -0.18613117933273315, -0.053072698414325714, 0.36015933752059937, -0.07771124690771103, 0.029473133385181427, -0.1574554294347763, 0.058306943625211716, -0.3378964364528656, -0.21079277992248535, -0.0072617847472429276, -0.2567564845085144, 0.2782018184661865, -0.14798937737941742, 0.007296547293663025, -0.2808842062950134, -0.06289499998092651, 0.005472112447023392, 0.5689311623573303, 0.11677471548318863, -0.06160149723291397, -0.3760632574558258, 0.007870917208492756, -0.4856024384498596, 0.269647479057312, 0.06245287507772446, 0.6091942191123962, -0.15552634000778198, 0.031503111124038696, 0.143777996301651, 0.1085258424282074, 0.9010465145111084, -0.4391026794910431, 0.2763887345790863, 0.24810084700584412, 0.11669428646564484, -0.26317721605300903, -0.21154135465621948, -0.2682217061519623, 0.06743500381708145, -0.013137325644493103, 0.30300718545913696, 0.011896222829818726, -0.3937035799026489, 0.03399713337421417, -0.15305110812187195, -0.07940874993801117, -0.41981184482574463, -0.2535524368286133, -0.1815236508846283, -0.3771490454673767, -0.10418102890253067, 0.23979400098323822, 0.1634427011013031, -0.25633153319358826, 0.249716654419899, -0.02241017483174801, 0.28822168707847595, 0.11481194943189621, -0.04067457467317581, 0.10160744935274124, 0.3072130084037781, 0.07862652838230133, -0.08094562590122223, 0.12363222986459732, 0.21233372390270233, 0.5588169693946838, -0.02612468972802162, -0.3647991418838501, -0.11076735705137253, -0.0270078182220459, 0.4848949909210205, 0.08459784835577011, -0.15330374240875244, 0.10140476375818253, -0.22111031413078308, -0.05864448845386505, -0.3480153977870941, 0.073952816426754, 0.27310529351234436, -0.051542386412620544, 0.059536177664995193, -0.21576136350631714, 0.31640639901161194, 0.17232643067836761, -0.194337397813797, -0.0005689859390258789, 0.14229942858219147, -0.2947746515274048, -0.09350654482841492, 0.051076021045446396, 0.5023056864738464, -0.29400694370269775, 0.27977806329727173, 0.1956000030040741, -0.16591037809848785, -0.07114346325397491, 0.213572159409523, -0.08469605445861816, -0.401723712682724, -0.30050304532051086, -0.013430009596049786, -0.10526701807975769, -0.005473993718624115, 0.15854136645793915, 0.08495506644248962, 0.04002366587519646, -0.09241420030593872, 0.3835965394973755, 0.03176065534353256, 0.0596931055188179, -0.20207560062408447, -0.2441047728061676, 0.10191044956445694, 0.15196841955184937, -0.1360996663570404, -0.02357245609164238, -0.1311587691307068, 0.01354348286986351, 0.1534244865179062, 0.023918554186820984, -0.397871732711792, 0.28555580973625183, -0.32799649238586426, 0.010729631409049034, -0.1360236257314682, 0.0947401374578476, 0.5240973234176636, 0.44027066230773926, -0.006493039429187775, 0.14545460045337677, -0.25311654806137085, -0.266656756401062, 0.1540936976671219, -0.2917831540107727, -0.29157960414886475, -0.02366511896252632, 0.2547367811203003, 0.02128102257847786, -0.3019716739654541, -0.19220402836799622, -0.03317781537771225, -0.24326930940151215, -0.06305999308824539, 0.46754610538482666, 0.1187870129942894, -0.507037341594696, -0.16829383373260498, -0.23205021023750305, -0.058400288224220276, 0.07155062258243561, 0.10308665037155151, 0.15286192297935486, -0.10854354500770569, 0.06198248639702797, -0.2745192348957062, -0.2699644863605499, 0.06998232752084732, 0.4720025360584259, -0.2750081419944763, 0.10218392312526703, 0.5445799827575684, 0.4029548764228821, -0.16026076674461365, -0.24238750338554382, 0.08464693278074265, 0.08002977818250656, -0.2135886251926422, 0.0007552523165941238, 0.312019407749176, 0.045267194509506226, 0.420676589012146, 0.06798232346773148, 0.22286157310009003, -0.40208518505096436, 0.189778134226799, -0.46255165338516235, -0.11029917746782303, -0.08787930011749268, -0.1858239471912384, 0.3120943605899811, 0.09340912848711014, -0.14425835013389587, 0.030312785878777504, -0.23342302441596985, -0.29327476024627686, 0.11278581619262695, -0.002598324790596962, 0.11875800788402557, 0.45224615931510925, -0.22970938682556152, -0.08565115183591843, -0.021958179771900177, 0.0636572316288948, -0.14817719161510468, -0.17814180254936218, -0.2058383822441101, 0.003955258056521416, 0.11139517277479172, 0.18786472082138062, -0.33875033259391785, 0.08584088832139969, -0.5403546690940857, -0.2182607799768448, -0.16202302277088165, 0.2066289633512497, 0.29495781660079956, -0.1138811856508255, 0.473836749792099, 0.006451267749071121, -0.014876045286655426, 0.02123396098613739, 0.19102820754051208, -0.19150924682617188, 0.08594764024019241, -0.37891536951065063, 0.4132496118545532, 0.02589370682835579, -0.08544833213090897, -0.30491986870765686, 0.24929100275039673, 0.24214054644107819, 0.1775052547454834, 0.136467844247818, -0.2938653230667114, 0.04528404399752617, 0.1257752627134323, 0.5298551321029663, 0.09405400604009628, -0.31138256192207336, 0.030527716502547264, 0.1404469609260559, 0.2037540227174759, -0.32571181654930115, -0.15713492035865784, -0.26508408784866333, -0.11846039444208145, -0.062447015196084976, 0.1154167428612709, 0.01126733049750328, -0.34119829535484314, -0.08927716314792633, -0.11548908799886703, 0.2970600128173828, 0.22717808187007904, -0.09396527707576752, 0.5441300272941589, 0.0009060315787792206, -0.02970268204808235, 0.3708811402320862, 0.5498603582382202, 0.05003703758120537, 0.42438167333602905, 0.19492998719215393, -0.10301116108894348, -0.1730060577392578, 0.026519883424043655, -0.005094967782497406, -0.7224730253219604, 0.19037581980228424, -0.0895252525806427, -0.015327699482440948, 0.007098805159330368, -0.18461906909942627, 0.49622881412506104, -0.1142301931977272, -0.017531946301460266, -0.38817188143730164, 0.15122047066688538, -0.2028813660144806, -0.16554036736488342, -0.4238615930080414, 0.09894750267267227, -0.08774857223033905, -0.020538486540317535, -0.12521648406982422, -0.2460022121667862, 0.0037853196263313293, 0.22845768928527832, -0.03257942199707031, -0.21356500685214996, 0.34927108883857727, 0.25295090675354004, -0.13782289624214172, -0.3874366283416748, -0.078046515583992, -0.057786449790000916, 0.12036646902561188, 0.13293218612670898, 0.022233888506889343, 0.6245726346969604, 0.33184826374053955, -0.05589472874999046, -0.01267388928681612, 0.012963204644620419, -0.031459107995033264, -0.03563358634710312, 0.38662606477737427, -0.2138810157775879, 0.37004968523979187, 0.3404139578342438, 0.09749662131071091, -0.05886427313089371, -0.06138579174876213, 0.0397351011633873, -0.10482752323150635, -0.0849883109331131, -0.03841374069452286, -0.376323938369751, -0.258559912443161, -0.1624860316514969, 0.10234728455543518, -0.08691549301147461, -0.022329211235046387, 0.6900109052658081, 0.15030677616596222, 0.34198904037475586, -0.33782780170440674, 0.06619597226381302, 0.029575098305940628, 0.4036605954170227, 0.47015801072120667, 0.07601331919431686, -0.4037768840789795, -0.07999511063098907, -0.4968741834163666, 0.06213952228426933, 0.1211792528629303, -0.13171710073947906, 0.1792277693748474, -0.1361561119556427, -0.013322949409484863, -0.19852173328399658, -0.05734340846538544, 0.029725903645157814, 0.024238809943199158, 0.32170814275741577, -0.008683832362294197, -0.10772530734539032, 0.26555800437927246, -0.06722356379032135, 0.1426307111978531, -0.5638713836669922, 0.06713926792144775, -0.22150146961212158, 0.057566069066524506, -0.4719405770301819, 0.08981980383396149, 0.12385375797748566, 0.13968583941459656, 0.24312788248062134, 0.01556624285876751, 0.3771498203277588, -0.004346359521150589, 0.1913798600435257, -0.5739652514457703, 0.06780893355607986, -0.17265184223651886, 0.14340704679489136, -0.1353251188993454, -0.025137003511190414, -0.2696663737297058, 0.07280153781175613, -0.09839769452810287, 0.11882510036230087, -0.0468875914812088, 0.1527618169784546, -0.05127260088920593, 0.1282426118850708, -0.18334324657917023, -0.041647013276815414, 0.2216355800628662, -0.14370983839035034, -0.18954476714134216, 0.38026517629623413, -0.3233773112297058, -0.37237459421157837, 0.46831756830215454, -0.26504164934158325, -0.25128841400146484, 0.013105588965117931, 0.3566475212574005, -0.12010984867811203, -0.16656729578971863, -0.1439182013273239, 0.3625411093235016, 0.17249199748039246, -0.004814758896827698, -0.3380488455295563, 0.4713963568210602, -0.20368410646915436, -0.1848144680261612, 0.03641429916024208, 0.42348936200141907, -0.008436035364866257, -0.2079799771308899, 0.03416357561945915, -0.1151265799999237 ]
https://github.com/huggingface/datasets/issues/2000
Windows Permission Error (most recent version of datasets)
Hi @itsLuisa, thanks for sharing the Traceback. You are defining the "id" field as a `string` feature: ```python class Sample(datasets.GeneratorBasedBuilder): ... def _info(self): return datasets.DatasetInfo( features=datasets.Features( { "id": datasets.Value("string"), # ^^ here "tokens": datasets.Sequence(datasets.Value("string")), "pos_tags": datasets.Sequence(datasets.features.ClassLabel(names=[...])), [...] ``` But in the `_generate_examples`, the "id" field is a list: ```python ids = list() ``` Changing: ```python "id": datasets.Value("string"), ``` Into: ```python "id": datasets.Sequence(datasets.Value("string")), ``` Should fix your issue. Let me know if this helps!
Hi everyone, Can anyone help me with why the dataset loading script below raises a Windows Permission Error? I stuck quite closely to https://github.com/huggingface/datasets/blob/master/datasets/conll2003/conll2003.py , only I want to load the data from three local three-column tsv-files (id\ttokens\tpos_tags\n). I am using the most recent version of datasets. Thank you in advance! Luisa My script: ``` import datasets import csv logger = datasets.logging.get_logger(__name__) class SampleConfig(datasets.BuilderConfig): def __init__(self, **kwargs): super(SampleConfig, self).__init__(**kwargs) class Sample(datasets.GeneratorBasedBuilder): BUILDER_CONFIGS = [ SampleConfig(name="conll2003", version=datasets.Version("1.0.0"), description="Conll2003 dataset"), ] def _info(self): return datasets.DatasetInfo( description="Dataset with words and their POS-Tags", features=datasets.Features( { "id": datasets.Value("string"), "tokens": datasets.Sequence(datasets.Value("string")), "pos_tags": datasets.Sequence( datasets.features.ClassLabel( names=[ "''", ",", "-LRB-", "-RRB-", ".", ":", "CC", "CD", "DT", "EX", "FW", "HYPH", "IN", "JJ", "JJR", "JJS", "MD", "NN", "NNP", "NNPS", "NNS", "PDT", "POS", "PRP", "PRP$", "RB", "RBR", "RBS", "RP", "TO", "UH", "VB", "VBD", "VBG", "VBN", "VBP", "VBZ", "WDT", "WP", "WRB", "``" ] ) ), } ), supervised_keys=None, homepage="https://catalog.ldc.upenn.edu/LDC2011T03", citation="Weischedel, Ralph, et al. OntoNotes Release 4.0 LDC2011T03. Web Download. Philadelphia: Linguistic Data Consortium, 2011.", ) def _split_generators(self, dl_manager): loaded_files = dl_manager.download_and_extract(self.config.data_files) return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": loaded_files["train"]}), datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": loaded_files["test"]}), datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": loaded_files["val"]}) ] def _generate_examples(self, filepath): logger.info("generating examples from = %s", filepath) with open(filepath, encoding="cp1252") as f: data = csv.reader(f, delimiter="\t") ids = list() tokens = list() pos_tags = list() for id_, line in enumerate(data): #print(line) if len(line) == 1: if tokens: yield id_, {"id": ids, "tokens": tokens, "pos_tags": pos_tags} ids = list() tokens = list() pos_tags = list() else: ids.append(line[0]) tokens.append(line[1]) pos_tags.append(line[2]) # last example yield id_, {"id": ids, "tokens": tokens, "pos_tags": pos_tags} def main(): dataset = datasets.load_dataset( "data_loading.py", data_files={ "train": "train.tsv", "test": "test.tsv", "val": "val.tsv" } ) #print(dataset) if __name__=="__main__": main() ```
73
Windows Permission Error (most recent version of datasets) Hi everyone, Can anyone help me with why the dataset loading script below raises a Windows Permission Error? I stuck quite closely to https://github.com/huggingface/datasets/blob/master/datasets/conll2003/conll2003.py , only I want to load the data from three local three-column tsv-files (id\ttokens\tpos_tags\n). I am using the most recent version of datasets. Thank you in advance! Luisa My script: ``` import datasets import csv logger = datasets.logging.get_logger(__name__) class SampleConfig(datasets.BuilderConfig): def __init__(self, **kwargs): super(SampleConfig, self).__init__(**kwargs) class Sample(datasets.GeneratorBasedBuilder): BUILDER_CONFIGS = [ SampleConfig(name="conll2003", version=datasets.Version("1.0.0"), description="Conll2003 dataset"), ] def _info(self): return datasets.DatasetInfo( description="Dataset with words and their POS-Tags", features=datasets.Features( { "id": datasets.Value("string"), "tokens": datasets.Sequence(datasets.Value("string")), "pos_tags": datasets.Sequence( datasets.features.ClassLabel( names=[ "''", ",", "-LRB-", "-RRB-", ".", ":", "CC", "CD", "DT", "EX", "FW", "HYPH", "IN", "JJ", "JJR", "JJS", "MD", "NN", "NNP", "NNPS", "NNS", "PDT", "POS", "PRP", "PRP$", "RB", "RBR", "RBS", "RP", "TO", "UH", "VB", "VBD", "VBG", "VBN", "VBP", "VBZ", "WDT", "WP", "WRB", "``" ] ) ), } ), supervised_keys=None, homepage="https://catalog.ldc.upenn.edu/LDC2011T03", citation="Weischedel, Ralph, et al. OntoNotes Release 4.0 LDC2011T03. Web Download. Philadelphia: Linguistic Data Consortium, 2011.", ) def _split_generators(self, dl_manager): loaded_files = dl_manager.download_and_extract(self.config.data_files) return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": loaded_files["train"]}), datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": loaded_files["test"]}), datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": loaded_files["val"]}) ] def _generate_examples(self, filepath): logger.info("generating examples from = %s", filepath) with open(filepath, encoding="cp1252") as f: data = csv.reader(f, delimiter="\t") ids = list() tokens = list() pos_tags = list() for id_, line in enumerate(data): #print(line) if len(line) == 1: if tokens: yield id_, {"id": ids, "tokens": tokens, "pos_tags": pos_tags} ids = list() tokens = list() pos_tags = list() else: ids.append(line[0]) tokens.append(line[1]) pos_tags.append(line[2]) # last example yield id_, {"id": ids, "tokens": tokens, "pos_tags": pos_tags} def main(): dataset = datasets.load_dataset( "data_loading.py", data_files={ "train": "train.tsv", "test": "test.tsv", "val": "val.tsv" } ) #print(dataset) if __name__=="__main__": main() ``` Hi @itsLuisa, thanks for sharing the Traceback. You are defining the "id" field as a `string` feature: ```python class Sample(datasets.GeneratorBasedBuilder): ... def _info(self): return datasets.DatasetInfo( features=datasets.Features( { "id": datasets.Value("string"), # ^^ here "tokens": datasets.Sequence(datasets.Value("string")), "pos_tags": datasets.Sequence(datasets.features.ClassLabel(names=[...])), [...] ``` But in the `_generate_examples`, the "id" field is a list: ```python ids = list() ``` Changing: ```python "id": datasets.Value("string"), ``` Into: ```python "id": datasets.Sequence(datasets.Value("string")), ``` Should fix your issue. Let me know if this helps!
[ -0.18255707621574402, 0.18238547444343567, -0.040031641721725464, 0.2590482831001282, 0.08137822151184082, 0.13363799452781677, 0.45803403854370117, 0.012254403904080391, 0.18646332621574402, 0.07412855327129364, -0.06345533579587936, -0.01122708898037672, -0.10879621654748917, 0.15729252994060516, -0.03236180171370506, -0.02825137972831726, 0.14535076916217804, 0.04806853458285332, 0.03199769929051399, 0.1396457403898239, -0.40523073077201843, -0.007120972499251366, -0.2379358857870102, 0.10736618936061859, -0.22316156327724457, 0.2783440053462982, -0.01572689414024353, 0.39082902669906616, -0.033802926540374756, -0.23501801490783691, 0.2101650834083557, 0.36248597502708435, 0.6620941162109375, 0.24535292387008667, -0.00011262850603088737, -0.04844985902309418, 0.042043596506118774, -0.020131949335336685, 0.20681904256343842, 0.2423871010541916, 0.13413867354393005, -0.04518669843673706, 0.004125550389289856, -0.10666909068822861, -0.16983693838119507, 0.20000258088111877, -0.06543010473251343, -0.3538350760936737, 0.11399774998426437, 0.4263339340686798, 0.1871957629919052, 0.24746224284172058, -0.18068788945674896, -0.010653854347765446, 0.5910395383834839, 0.04759816825389862, -0.1261596530675888, 0.1927935630083084, 0.2900242209434509, -0.44280555844306946, 0.21414130926132202, 0.1609828770160675, -0.22685831785202026, 0.08554011583328247, 0.3818265199661255, -0.1632639318704605, -0.12995702028274536, -0.2830386459827423, 0.15840590000152588, 0.000052947551012039185, 0.7270632982254028, -0.16924339532852173, -0.30099254846572876, -0.03410464525222778, 0.13930895924568176, -0.26716914772987366, 0.22750520706176758, 0.336598664522171, -0.05052705109119415, 0.07535823434591293, -0.23470036685466766, -0.16715091466903687, -0.44340088963508606, 0.13589595258235931, 0.1775050014257431, -0.22929826378822327, -0.0849330797791481, 0.22970876097679138, 0.09066364914178848, -0.1301719695329666, 0.35443294048309326, 0.12944380939006805, 0.04196198657155037, 0.25175973773002625, -0.4671480059623718, 0.3360510766506195, 0.2092747688293457, 0.29802218079566956, -0.032027047127485275, 0.2779501974582672, -0.13617129623889923, -0.21062761545181274, 0.20189811289310455, 0.12501981854438782, 0.17727449536323547, -0.05427422747015953, 0.15196049213409424, 0.24112816154956818, 0.1375095248222351, -0.02251112088561058, 0.040243204683065414, -0.11744072288274765, -0.49004849791526794, -0.6061115860939026, 0.1152084469795227, 0.24548214673995972, 0.30733633041381836, -0.08926711976528168, -0.36133620142936707, 0.11647597700357437, 0.11813554912805557, 0.06809926778078079, 0.20681877434253693, 0.4097331166267395, 0.2663407027721405, 0.011945264413952827, 0.373932421207428, 0.27149978280067444, -0.0628640353679657, -0.025800086557865143, -0.08621231466531754, 0.004246184602379799, -0.24589866399765015, -0.04984544962644577, 0.42578738927841187, -0.3442578911781311, -0.11349939554929733, 0.11736317723989487, 0.035344041883945465, -0.12134968489408493, 0.04945440590381622, -0.018772169947624207, 0.116459921002388, 0.4388580322265625, 0.2584179937839508, 0.034996964037418365, 0.14504356682300568, -0.18511922657489777, -0.028277575969696045, 0.2364419400691986, -0.1324140727519989, -0.3404766619205475, -0.18835721909999847, 0.1011299192905426, 0.017074331641197205, 0.04991445317864418, -0.21830567717552185, -0.1330365091562271, 0.12284994125366211, -0.018460897728800774, 0.1442888081073761, -0.10070264339447021, -0.26606541872024536, -0.33979496359825134, -0.10151451826095581, 0.8314393162727356, -0.5272638201713562, 0.1402398943901062, -0.11474497616291046, -0.3047669231891632, 0.1072494313120842, 0.33119669556617737, -0.07649985700845718, 0.11135625839233398, -0.21448299288749695, 0.1516454815864563, -0.13571247458457947, -0.3680855631828308, -0.1788967400789261, 0.37800607085227966, -0.017754048109054565, -0.10367979854345322, 0.24373438954353333, -0.03900807350873947, 0.044485945254564285, -0.20335613191127777, -0.0898013561964035, 0.13412794470787048, 0.13846105337142944, 0.260562539100647, 0.22497491538524628, 0.00756785087287426, 0.23220951855182648, 0.31242337822914124, 0.05534496158361435, -0.06275161355733871, 0.29186737537384033, -0.21869952976703644, 0.18955263495445251, -0.30108878016471863, 0.22454604506492615, 0.4166680574417114, 0.11581951379776001, 0.3091973662376404, 0.033221274614334106, -0.2322230339050293, -0.4455748200416565, 0.26520147919654846, 0.3054819703102112, -0.12395784258842468, 0.04690246656537056, -0.256583571434021, -0.15023881196975708, 0.21092717349529266, -0.38839906454086304, 0.11677099764347076, 0.08991148322820663, 0.2979710102081299, -0.17740227282047272, -0.3208981156349182, 0.034541141241788864, 0.05634528398513794, -0.24442975223064423, -0.11113464087247849, -0.15343300998210907, 0.03845885396003723, -0.30667024850845337, 0.018042564392089844, 0.20494391024112701, -0.014822080731391907, 0.4157698452472687, -0.07438039034605026, 0.0026424801908433437, 0.35913267731666565, 0.2803249657154083, -0.03677845001220703, 0.0367962047457695, 0.09830936044454575, -0.22612757980823517, 0.07714474201202393, 0.12725761532783508, -0.009582286700606346, 0.09168652445077896, -0.10252287983894348, -0.025553949177265167, 0.12650997936725616, -0.22595013678073883, 0.004112377762794495, -0.28790777921676636, 0.131464883685112, -0.009617658331990242, 0.0248836912214756, -0.0246062483638525, -0.21992658078670502, 0.35938090085983276, 0.5096361637115479, -0.32853567600250244, -0.04535823315382004, -0.10262947529554367, -0.0515071377158165, 0.2793930768966675, -0.1505601704120636, -0.1328619420528412, 0.06870721280574799, 0.09919131547212601, 0.28524383902549744, 0.1979035586118698, 0.2263828068971634, 0.43857401609420776, 0.06445945054292679, -0.1653026044368744, 0.05295100808143616, 0.20327620208263397, -0.05280649662017822, 0.14838629961013794, -0.3353103995323181, 0.07930514216423035, 0.2603347599506378, -0.29921016097068787, 0.12752600014209747, -0.37755149602890015, -0.1403336077928543, 0.14408695697784424, 0.3369528353214264, -0.513848066329956, -0.13262994587421417, -0.01495932973921299, -0.13346050679683685, 0.11050910502672195, -0.31558093428611755, -0.28314852714538574, 0.013027379289269447, -0.20135387778282166, 0.162641242146492, -0.27326297760009766, -0.12564106285572052, -0.40158751606941223, 0.057359591126441956, 0.2376943677663803, -0.0031733252108097076, -0.021724987775087357, 0.08656207472085953, -0.023845326155424118, 0.014601659029722214, 0.4932957887649536, -0.2829744517803192, 0.43707332015037537, -0.1266709566116333, 0.38147950172424316, -0.2898308038711548, 0.10609082132577896, -0.2475932538509369, -0.33447396755218506, 0.320374459028244, 0.24623450636863708, 0.0983886644244194, -0.026245463639497757, -0.20588073134422302, 0.11958616971969604, -0.12245824933052063, -0.0811634287238121, 0.17551106214523315, 0.30421680212020874, -0.5918184518814087, -0.2506391406059265, -0.15341505408287048, -0.20429277420043945, -0.35339486598968506, 0.2209896296262741, 0.13553504645824432, 0.31105393171310425, 0.20728591084480286, -0.12186010181903839, 0.05302535369992256, 0.04345601052045822, 0.3111524283885956, -0.3197955787181854, -0.09646143019199371, 0.013731539249420166, -0.15026597678661346, -0.5285488963127136, 0.22050604224205017, 0.3835146427154541, -0.12172186374664307, 0.1091843694448471, -0.11583882570266724, 0.1251097470521927, -0.21409820020198822, 0.2546713352203369, -0.22828757762908936, 0.16625863313674927, 0.19286644458770752, 0.07349179685115814, 0.08055682480335236, -0.16946586966514587, -0.0990941971540451, -0.34508955478668213, -0.2438754141330719, -0.2646101117134094, 0.1542905569076538, 0.33303987979888916, -0.13151401281356812, 0.21499359607696533, 0.3426207900047302, 0.22642581164836884, 0.4461938142776489, -0.12768426537513733, 0.4316767752170563, 0.28185203671455383, -0.6437907814979553, 0.1521579921245575, -0.18613117933273315, -0.053072698414325714, 0.36015933752059937, -0.07771124690771103, 0.029473133385181427, -0.1574554294347763, 0.058306943625211716, -0.3378964364528656, -0.21079277992248535, -0.0072617847472429276, -0.2567564845085144, 0.2782018184661865, -0.14798937737941742, 0.007296547293663025, -0.2808842062950134, -0.06289499998092651, 0.005472112447023392, 0.5689311623573303, 0.11677471548318863, -0.06160149723291397, -0.3760632574558258, 0.007870917208492756, -0.4856024384498596, 0.269647479057312, 0.06245287507772446, 0.6091942191123962, -0.15552634000778198, 0.031503111124038696, 0.143777996301651, 0.1085258424282074, 0.9010465145111084, -0.4391026794910431, 0.2763887345790863, 0.24810084700584412, 0.11669428646564484, -0.26317721605300903, -0.21154135465621948, -0.2682217061519623, 0.06743500381708145, -0.013137325644493103, 0.30300718545913696, 0.011896222829818726, -0.3937035799026489, 0.03399713337421417, -0.15305110812187195, -0.07940874993801117, -0.41981184482574463, -0.2535524368286133, -0.1815236508846283, -0.3771490454673767, -0.10418102890253067, 0.23979400098323822, 0.1634427011013031, -0.25633153319358826, 0.249716654419899, -0.02241017483174801, 0.28822168707847595, 0.11481194943189621, -0.04067457467317581, 0.10160744935274124, 0.3072130084037781, 0.07862652838230133, -0.08094562590122223, 0.12363222986459732, 0.21233372390270233, 0.5588169693946838, -0.02612468972802162, -0.3647991418838501, -0.11076735705137253, -0.0270078182220459, 0.4848949909210205, 0.08459784835577011, -0.15330374240875244, 0.10140476375818253, -0.22111031413078308, -0.05864448845386505, -0.3480153977870941, 0.073952816426754, 0.27310529351234436, -0.051542386412620544, 0.059536177664995193, -0.21576136350631714, 0.31640639901161194, 0.17232643067836761, -0.194337397813797, -0.0005689859390258789, 0.14229942858219147, -0.2947746515274048, -0.09350654482841492, 0.051076021045446396, 0.5023056864738464, -0.29400694370269775, 0.27977806329727173, 0.1956000030040741, -0.16591037809848785, -0.07114346325397491, 0.213572159409523, -0.08469605445861816, -0.401723712682724, -0.30050304532051086, -0.013430009596049786, -0.10526701807975769, -0.005473993718624115, 0.15854136645793915, 0.08495506644248962, 0.04002366587519646, -0.09241420030593872, 0.3835965394973755, 0.03176065534353256, 0.0596931055188179, -0.20207560062408447, -0.2441047728061676, 0.10191044956445694, 0.15196841955184937, -0.1360996663570404, -0.02357245609164238, -0.1311587691307068, 0.01354348286986351, 0.1534244865179062, 0.023918554186820984, -0.397871732711792, 0.28555580973625183, -0.32799649238586426, 0.010729631409049034, -0.1360236257314682, 0.0947401374578476, 0.5240973234176636, 0.44027066230773926, -0.006493039429187775, 0.14545460045337677, -0.25311654806137085, -0.266656756401062, 0.1540936976671219, -0.2917831540107727, -0.29157960414886475, -0.02366511896252632, 0.2547367811203003, 0.02128102257847786, -0.3019716739654541, -0.19220402836799622, -0.03317781537771225, -0.24326930940151215, -0.06305999308824539, 0.46754610538482666, 0.1187870129942894, -0.507037341594696, -0.16829383373260498, -0.23205021023750305, -0.058400288224220276, 0.07155062258243561, 0.10308665037155151, 0.15286192297935486, -0.10854354500770569, 0.06198248639702797, -0.2745192348957062, -0.2699644863605499, 0.06998232752084732, 0.4720025360584259, -0.2750081419944763, 0.10218392312526703, 0.5445799827575684, 0.4029548764228821, -0.16026076674461365, -0.24238750338554382, 0.08464693278074265, 0.08002977818250656, -0.2135886251926422, 0.0007552523165941238, 0.312019407749176, 0.045267194509506226, 0.420676589012146, 0.06798232346773148, 0.22286157310009003, -0.40208518505096436, 0.189778134226799, -0.46255165338516235, -0.11029917746782303, -0.08787930011749268, -0.1858239471912384, 0.3120943605899811, 0.09340912848711014, -0.14425835013389587, 0.030312785878777504, -0.23342302441596985, -0.29327476024627686, 0.11278581619262695, -0.002598324790596962, 0.11875800788402557, 0.45224615931510925, -0.22970938682556152, -0.08565115183591843, -0.021958179771900177, 0.0636572316288948, -0.14817719161510468, -0.17814180254936218, -0.2058383822441101, 0.003955258056521416, 0.11139517277479172, 0.18786472082138062, -0.33875033259391785, 0.08584088832139969, -0.5403546690940857, -0.2182607799768448, -0.16202302277088165, 0.2066289633512497, 0.29495781660079956, -0.1138811856508255, 0.473836749792099, 0.006451267749071121, -0.014876045286655426, 0.02123396098613739, 0.19102820754051208, -0.19150924682617188, 0.08594764024019241, -0.37891536951065063, 0.4132496118545532, 0.02589370682835579, -0.08544833213090897, -0.30491986870765686, 0.24929100275039673, 0.24214054644107819, 0.1775052547454834, 0.136467844247818, -0.2938653230667114, 0.04528404399752617, 0.1257752627134323, 0.5298551321029663, 0.09405400604009628, -0.31138256192207336, 0.030527716502547264, 0.1404469609260559, 0.2037540227174759, -0.32571181654930115, -0.15713492035865784, -0.26508408784866333, -0.11846039444208145, -0.062447015196084976, 0.1154167428612709, 0.01126733049750328, -0.34119829535484314, -0.08927716314792633, -0.11548908799886703, 0.2970600128173828, 0.22717808187007904, -0.09396527707576752, 0.5441300272941589, 0.0009060315787792206, -0.02970268204808235, 0.3708811402320862, 0.5498603582382202, 0.05003703758120537, 0.42438167333602905, 0.19492998719215393, -0.10301116108894348, -0.1730060577392578, 0.026519883424043655, -0.005094967782497406, -0.7224730253219604, 0.19037581980228424, -0.0895252525806427, -0.015327699482440948, 0.007098805159330368, -0.18461906909942627, 0.49622881412506104, -0.1142301931977272, -0.017531946301460266, -0.38817188143730164, 0.15122047066688538, -0.2028813660144806, -0.16554036736488342, -0.4238615930080414, 0.09894750267267227, -0.08774857223033905, -0.020538486540317535, -0.12521648406982422, -0.2460022121667862, 0.0037853196263313293, 0.22845768928527832, -0.03257942199707031, -0.21356500685214996, 0.34927108883857727, 0.25295090675354004, -0.13782289624214172, -0.3874366283416748, -0.078046515583992, -0.057786449790000916, 0.12036646902561188, 0.13293218612670898, 0.022233888506889343, 0.6245726346969604, 0.33184826374053955, -0.05589472874999046, -0.01267388928681612, 0.012963204644620419, -0.031459107995033264, -0.03563358634710312, 0.38662606477737427, -0.2138810157775879, 0.37004968523979187, 0.3404139578342438, 0.09749662131071091, -0.05886427313089371, -0.06138579174876213, 0.0397351011633873, -0.10482752323150635, -0.0849883109331131, -0.03841374069452286, -0.376323938369751, -0.258559912443161, -0.1624860316514969, 0.10234728455543518, -0.08691549301147461, -0.022329211235046387, 0.6900109052658081, 0.15030677616596222, 0.34198904037475586, -0.33782780170440674, 0.06619597226381302, 0.029575098305940628, 0.4036605954170227, 0.47015801072120667, 0.07601331919431686, -0.4037768840789795, -0.07999511063098907, -0.4968741834163666, 0.06213952228426933, 0.1211792528629303, -0.13171710073947906, 0.1792277693748474, -0.1361561119556427, -0.013322949409484863, -0.19852173328399658, -0.05734340846538544, 0.029725903645157814, 0.024238809943199158, 0.32170814275741577, -0.008683832362294197, -0.10772530734539032, 0.26555800437927246, -0.06722356379032135, 0.1426307111978531, -0.5638713836669922, 0.06713926792144775, -0.22150146961212158, 0.057566069066524506, -0.4719405770301819, 0.08981980383396149, 0.12385375797748566, 0.13968583941459656, 0.24312788248062134, 0.01556624285876751, 0.3771498203277588, -0.004346359521150589, 0.1913798600435257, -0.5739652514457703, 0.06780893355607986, -0.17265184223651886, 0.14340704679489136, -0.1353251188993454, -0.025137003511190414, -0.2696663737297058, 0.07280153781175613, -0.09839769452810287, 0.11882510036230087, -0.0468875914812088, 0.1527618169784546, -0.05127260088920593, 0.1282426118850708, -0.18334324657917023, -0.041647013276815414, 0.2216355800628662, -0.14370983839035034, -0.18954476714134216, 0.38026517629623413, -0.3233773112297058, -0.37237459421157837, 0.46831756830215454, -0.26504164934158325, -0.25128841400146484, 0.013105588965117931, 0.3566475212574005, -0.12010984867811203, -0.16656729578971863, -0.1439182013273239, 0.3625411093235016, 0.17249199748039246, -0.004814758896827698, -0.3380488455295563, 0.4713963568210602, -0.20368410646915436, -0.1848144680261612, 0.03641429916024208, 0.42348936200141907, -0.008436035364866257, -0.2079799771308899, 0.03416357561945915, -0.1151265799999237 ]
https://github.com/huggingface/datasets/issues/1996
Error when exploring `arabic_speech_corpus`
Actually soundfile is not a dependency of this dataset. The error comes from a bug that was fixed in this commit: https://github.com/huggingface/datasets/pull/1767/commits/c304e63629f4453367de2fd42883a78768055532 Basically the library used to consider the `import soundfile` in the docstring as a dependency, while it's just here as a code example. Updating the viewer to the latest version of `datasets` should fix this issue
Navigate to https://huggingface.co/datasets/viewer/?dataset=arabic_speech_corpus Error: ``` ImportError: To be able to use this dataset, you need to install the following dependencies['soundfile'] using 'pip install soundfile' for instance' Traceback: File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/streamlit/script_runner.py", line 332, in _run_script exec(code, module.__dict__) File "/home/sasha/nlp-viewer/run.py", line 233, in <module> configs = get_confs(option) File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/streamlit/caching.py", line 604, in wrapped_func return get_or_create_cached_value() File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/streamlit/caching.py", line 588, in get_or_create_cached_value return_value = func(*args, **kwargs) File "/home/sasha/nlp-viewer/run.py", line 145, in get_confs module_path = nlp.load.prepare_module(path, dataset=True File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/datasets/load.py", line 342, in prepare_module f"To be able to use this {module_type}, you need to install the following dependencies" ```
58
Error when exploring `arabic_speech_corpus` Navigate to https://huggingface.co/datasets/viewer/?dataset=arabic_speech_corpus Error: ``` ImportError: To be able to use this dataset, you need to install the following dependencies['soundfile'] using 'pip install soundfile' for instance' Traceback: File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/streamlit/script_runner.py", line 332, in _run_script exec(code, module.__dict__) File "/home/sasha/nlp-viewer/run.py", line 233, in <module> configs = get_confs(option) File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/streamlit/caching.py", line 604, in wrapped_func return get_or_create_cached_value() File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/streamlit/caching.py", line 588, in get_or_create_cached_value return_value = func(*args, **kwargs) File "/home/sasha/nlp-viewer/run.py", line 145, in get_confs module_path = nlp.load.prepare_module(path, dataset=True File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/datasets/load.py", line 342, in prepare_module f"To be able to use this {module_type}, you need to install the following dependencies" ``` Actually soundfile is not a dependency of this dataset. The error comes from a bug that was fixed in this commit: https://github.com/huggingface/datasets/pull/1767/commits/c304e63629f4453367de2fd42883a78768055532 Basically the library used to consider the `import soundfile` in the docstring as a dependency, while it's just here as a code example. Updating the viewer to the latest version of `datasets` should fix this issue
[ -0.25912460684776306, -0.11358939111232758, -0.03638928756117821, 0.22282272577285767, 0.04178952798247337, 0.04148464649915695, 0.05358176305890083, 0.31405577063560486, -0.17314375936985016, 0.050459109246730804, -0.29817402362823486, 0.09690865874290466, -0.11128243058919907, -0.04064420983195305, 0.10654091089963913, -0.37137243151664734, 0.0633600726723671, 0.20324116945266724, 0.005492217838764191, -0.013290628790855408, -0.06974589824676514, 0.4542389214038849, -0.32863932847976685, -0.013906434178352356, -0.09688170999288559, -0.2608736753463745, -0.06015287712216377, -0.115494005382061, -0.2918647825717926, -0.46600204706192017, 0.14719313383102417, -0.07642418146133423, 0.09291426092386246, 0.38957664370536804, -0.00011437087232479826, -0.08653488010168076, 0.36810410022735596, -0.13962963223457336, -0.20889802277088165, -0.43186455965042114, 0.1541045606136322, -0.13698840141296387, -0.09956324845552444, -0.11221610009670258, -0.06622400134801865, -0.19790709018707275, 0.0398828499019146, -0.309842050075531, 0.2915136218070984, 0.31866222620010376, 0.23412150144577026, 0.18703189492225647, 0.2347777932882309, -0.041816215962171555, 0.2049751579761505, -0.001658618450164795, -0.143495574593544, 0.20946478843688965, 0.18502989411354065, 0.07412701100111008, -0.1772947609424591, 0.5136577486991882, -0.31657686829566956, -0.08392201364040375, 0.09197523444890976, -0.15538246929645538, -0.03132599592208862, -0.402174711227417, 0.17989906668663025, -0.061310283839702606, 0.4357360005378723, -0.3616383969783783, -0.24223172664642334, -0.2717437744140625, 0.15271565318107605, -0.23318347334861755, 0.26473015546798706, 0.31081491708755493, -0.2944639027118683, 0.13162179291248322, 0.0926433652639389, -0.2117515206336975, -0.014171220362186432, 0.16551995277404785, 0.05735126882791519, 0.29167914390563965, -0.29940247535705566, -0.14608630537986755, 0.35021281242370605, -0.1967083364725113, -0.24856248497962952, 0.047420989722013474, -0.08520182967185974, 0.24255475401878357, -0.06517690420150757, -0.02218315191566944, 0.16320687532424927, 0.15800714492797852, -0.038769807666540146, 0.016519013792276382, -0.11958561837673187, 0.2261199951171875, -0.17951525747776031, 0.2216256856918335, -0.01414727047085762, 0.17899112403392792, 0.2417353093624115, -0.020095430314540863, 0.22457557916641235, 0.41231706738471985, 0.01203843206167221, 0.00003392249345779419, -0.07607080042362213, -0.19488254189491272, -0.4148888885974884, -0.05483783781528473, 0.5135283470153809, -0.27397140860557556, -0.15554970502853394, 0.055430952459573746, -0.07868107408285141, -0.22092945873737335, 0.09622083604335785, 0.4137217104434967, -0.12466563284397125, -0.010580319911241531, 0.12739905714988708, 0.3244035840034485, -0.22933319211006165, -0.20255982875823975, 0.011585274711251259, 0.21795475482940674, -0.04691272974014282, 0.14438463747501373, 0.25096625089645386, -0.46308329701423645, 0.5074714422225952, 0.004960621707141399, 0.17022758722305298, 0.19168756902217865, -0.07640022784471512, -0.0905364602804184, -0.09383935481309891, 0.3047252595424652, -0.043742164969444275, 0.15940196812152863, 0.2130076289176941, -0.037815988063812256, -0.2543686628341675, 0.011780943721532822, 0.031125299632549286, -0.21736064553260803, -0.06825193762779236, 0.18231777846813202, -0.3190978765487671, -0.055439844727516174, -0.19163620471954346, 0.233000710606575, 0.17910948395729065, -0.49663838744163513, -0.04569076746702194, 0.033926550298929214, -0.5319352149963379, -0.013548699207603931, 0.059718452394008636, 0.40675532817840576, -0.07273449748754501, -0.29276713728904724, -0.08419205993413925, 0.02530171163380146, 0.15555492043495178, 0.11645440757274628, -0.038887958973646164, 0.02914973720908165, -0.27821049094200134, 0.3276976943016052, 0.3454289436340332, -0.5265829563140869, -0.43090808391571045, 0.13371744751930237, 0.11854083836078644, 0.26250168681144714, 0.3312528431415558, -0.23310460150241852, 0.24697047472000122, -0.20047271251678467, 0.17132648825645447, 0.30008232593536377, 0.19032372534275055, -0.10057314485311508, -0.18912343680858612, -0.14640940725803375, -0.03144049644470215, 0.09461119771003723, -0.14088313281536102, 0.16751250624656677, -0.0015276148915290833, -0.00044749118387699127, 0.19748345017433167, 0.07622694969177246, 0.0679524689912796, 0.2516246438026428, 0.233429953455925, 0.055890779942274094, 0.05650411546230316, -0.4098466634750366, 0.08384707570075989, 0.037753328680992126, -0.325361967086792, 0.4253624379634857, -0.41721850633621216, -0.1359887570142746, -0.23523128032684326, -0.09957888722419739, -0.24117682874202728, -0.14336629211902618, 0.15815314650535583, 0.2674129009246826, 0.1796352118253708, 0.3149424195289612, -0.2450622171163559, -0.001846490427851677, 0.1778334379196167, -0.02701246179640293, -0.6278402209281921, 0.08613032847642899, -0.21380676329135895, -0.11137524992227554, 0.37072238326072693, 0.27908214926719666, 0.1563698649406433, -0.11812129616737366, -0.08054303377866745, 0.22130978107452393, -0.06357848644256592, 0.336964875459671, -0.40501031279563904, 0.11842946708202362, 0.12250370532274246, -0.3153545558452606, 0.38484305143356323, 0.15099099278450012, 0.12453407049179077, -0.05512438341975212, 0.3454686105251312, 0.1909191906452179, 0.21360644698143005, 0.14525139331817627, 0.17015597224235535, 0.08414674550294876, 0.44805893301963806, 0.12956154346466064, -0.22462622821331024, -0.31095558404922485, 0.4079635441303253, -0.26855579018592834, 0.5072839856147766, 0.020766444504261017, -0.31802982091903687, 0.007370412349700928, 0.5209940671920776, -0.054514601826667786, 0.18443256616592407, 0.12430751323699951, -0.3222741186618805, -0.16831985116004944, 0.2562198042869568, 0.14196376502513885, 0.447182297706604, 0.12860482931137085, 0.07792215049266815, 0.1960660070180893, 0.06277250498533249, -0.34355270862579346, 0.27048632502555847, 0.030535724014043808, 0.07069467753171921, 0.27703404426574707, 0.09566142410039902, 0.0486452579498291, -0.5301121473312378, -0.03271432965993881, -0.1379944235086441, 0.16534264385700226, -0.121827632188797, 0.01617126353085041, -0.3099757134914398, -0.5472091436386108, -0.17640270292758942, -0.22634506225585938, -0.3613775670528412, -0.1843630075454712, 0.0760280042886734, 0.25840508937835693, 0.08065706491470337, 0.34669607877731323, 0.17661680281162262, 0.0651235431432724, -0.15502798557281494, -0.1836978942155838, -0.2633354067802429, -0.02570652775466442, -0.12935742735862732, 0.07394248247146606, 0.332638680934906, 0.23199562728405, 0.21944433450698853, -0.1248028501868248, -0.03895070403814316, -0.25868162512779236, -0.17832666635513306, 0.21452875435352325, -0.20758524537086487, 0.17263533174991608, 0.14714442193508148, 0.1403467208147049, -0.02512197196483612, -0.36831700801849365, 0.21502070128917694, 0.005519673228263855, -0.08204212039709091, 0.17850710451602936, -0.10321702063083649, 0.01659802533686161, -0.15827247500419617, -0.2487446665763855, -0.2342052012681961, -0.563239336013794, 0.02370408922433853, 0.035993706434965134, 0.15429624915122986, 0.6405219435691833, -0.023309608921408653, 0.2233794629573822, -0.1866190880537033, 0.44642186164855957, -0.1898084133863449, -0.2654586732387543, 0.3701416850090027, -0.3133111000061035, -0.38511890172958374, 0.0832386165857315, 0.07411753386259079, 0.5423166155815125, -0.16418054699897766, -0.4779159426689148, -0.04790140688419342, -0.2519609332084656, -0.09080041944980621, -0.027399204671382904, 0.1235232949256897, 0.37274307012557983, 0.12442050129175186, -0.05586416274309158, -0.1544632911682129, -0.11275589466094971, -0.21203872561454773, 0.03036295250058174, 0.11034323275089264, 0.11733967065811157, 0.39382076263427734, 0.03643264248967171, 0.5581878423690796, 0.18936264514923096, 0.07860925793647766, 0.508371114730835, 0.20568133890628815, 0.46202895045280457, -0.1761786937713623, -0.5006490349769592, -0.06455464661121368, -0.010614708065986633, 0.07822301238775253, 0.30122748017311096, 0.05825470760464668, -0.222574383020401, -0.4180653691291809, -0.3451641798019409, -0.13734455406665802, -0.21261714398860931, -0.026440346613526344, -0.20758885145187378, 0.31922778487205505, 0.16266784071922302, 0.04134323447942734, 0.057391207665205, -0.017887454479932785, 0.20427370071411133, 0.0971604660153389, 0.07311912626028061, -0.006309740245342255, -0.3482370972633362, -0.21479995548725128, -0.6190563440322876, 0.39823633432388306, 0.05910738185048103, 0.25021132826805115, -0.11258797347545624, 0.02648240327835083, 0.0450299009680748, -0.009492937475442886, 0.3792361617088318, -0.08854295313358307, 0.029673023149371147, 0.27199849486351013, 0.04430067539215088, -0.43528279662132263, 0.05192918702960014, -0.24492590129375458, 0.11435820907354355, -0.06596043705940247, 0.20737454295158386, -0.1998901516199112, -0.05381479859352112, 0.19536809623241425, 0.29369640350341797, 0.1380237638950348, -0.09314582496881485, -0.4292459487915039, -0.4469645321369171, -0.4218346178531647, -0.06415209919214249, 0.09730740636587143, 0.25054115056991577, 0.29453036189079285, 0.29121166467666626, 0.2619180381298065, -0.02907389961183071, 0.15676937997341156, -0.0027870982885360718, 0.02682565525174141, 0.24934779107570648, 0.015803776681423187, 0.19504232704639435, -0.005200579762458801, -0.14704826474189758, 0.5904423594474792, 0.038217611610889435, -0.319002240896225, -0.12212980538606644, 0.15565086901187897, 0.09097690880298615, 0.35107409954071045, -0.16183729469776154, 0.2359803020954132, 0.18325628340244293, -0.08828628063201904, -0.12493086606264114, -0.12215802818536758, 0.35414114594459534, 0.2038036286830902, -0.15670813620090485, -0.46497583389282227, 0.22406375408172607, -0.08672887086868286, 0.014409460127353668, 0.20861925184726715, 0.14586956799030304, -0.21548818051815033, 0.586508572101593, -0.3359626531600952, 0.9864439964294434, 0.19009290635585785, 0.15099261701107025, 0.5796766877174377, 0.2852434515953064, 0.2736802399158478, -0.02534826472401619, 0.2704007625579834, 0.1270613968372345, -0.2383604496717453, -0.063758984208107, -0.052439551800489426, 0.4439466595649719, -0.16281898319721222, -0.447186142206192, 0.19753488898277283, 0.13809096813201904, -0.19307343661785126, -0.08882147073745728, 0.1502462476491928, -0.307244211435318, -0.3726421892642975, -0.7613903880119324, 0.16294164955615997, -0.08925546705722809, 0.4359189569950104, -0.0329364575445652, -0.06482751667499542, 0.010707441717386246, -0.4352565407752991, -0.35131317377090454, 0.1951480507850647, -0.22145609557628632, 0.08132533729076385, -0.2043265402317047, 0.04010361433029175, 0.36594006419181824, 0.2889253795146942, 0.14609676599502563, 0.2889966368675232, -0.23872655630111694, 0.1064588725566864, -0.13227176666259766, -0.3824174702167511, 0.1719486117362976, 0.1419314295053482, 0.28491541743278503, -0.2990046739578247, -0.16119615733623505, 0.2049422562122345, -0.05691489577293396, 0.015096642076969147, 0.04415205121040344, 0.0061558932065963745, -0.030720695853233337, -0.1124589741230011, -0.5855565667152405, 0.07068192958831787, -0.055304672569036484, -0.13818709552288055, 0.1358395516872406, 0.024308044463396072, -0.4325522780418396, 0.02526586875319481, -0.16992256045341492, -0.1066303551197052, -0.07931900024414062, 0.5607008337974548, 0.18800237774848938, -0.16987034678459167, 0.39743006229400635, 0.31623971462249756, -0.23940996825695038, -0.1771647334098816, -0.09588813036680222, -0.330608993768692, -0.40937358140945435, -0.042702145874500275, 0.3858550488948822, -0.11723554134368896, -0.2525816857814789, 0.3071598410606384, -0.06190601736307144, -0.009678542613983154, -0.08388901501893997, -0.29286104440689087, -0.14460760354995728, 0.47821784019470215, 0.009146306663751602, -0.17945817112922668, 0.14406955242156982, -0.06868894398212433, 0.07563626766204834, 0.21577265858650208, -0.32668977975845337, 0.15659092366695404, -0.07235405594110489, 0.20357702672481537, 0.31058239936828613, 0.0021457523107528687, 0.2390640676021576, 0.05024223029613495, 0.14709345996379852, 0.16374337673187256, -0.22157004475593567, -0.20320171117782593, 0.02239454910159111, 0.10067068785429001, 0.10467519611120224, -0.016841134056448936, 0.1903945803642273, -0.08430200815200806, -0.20970763266086578, -0.14619572460651398, -0.007435186766088009, 0.3898072838783264, -0.008741706609725952, 0.03507285937666893, -0.17861033976078033, 0.030735217034816742, 0.1790194809436798, 0.00015610083937644958, -0.1717805564403534, -0.14069442451000214, 0.1362289935350418, 0.017987219616770744, -0.11187690496444702, -0.08561249077320099, -0.039743419736623764, 0.10528967529535294, 0.0032098740339279175, -0.03330005705356598, 0.2414391040802002, -0.1479864865541458, 0.1153249442577362, 0.22412008047103882, 0.27351197600364685, 0.20418091118335724, -0.17303037643432617, -0.02597237005829811, 0.37894779443740845, 0.13464191555976868, -0.5750601291656494, -0.1294364482164383, 0.22369539737701416, -0.1634567528963089, 0.1694573312997818, 0.18123812973499298, 0.24792516231536865, 0.0049992576241493225, 0.24873089790344238, 0.07014714926481247, 0.43695369362831116, -0.09821366518735886, 0.3608635365962982, 0.05501379072666168, 0.17382019758224487, -0.08352115750312805, 0.10916517674922943, 0.1809806227684021, 0.24757438898086548, 0.35810983180999756, -0.5064557790756226, 0.2399812638759613, 0.12215684354305267, -0.031216558068990707, 0.13071304559707642, -0.2954684793949127, 0.11784571409225464, 0.5222585797309875, 0.09294354170560837, 0.0833183228969574, -0.1304381936788559, 0.2733747065067291, -0.19376425445079803, -0.07021895796060562, 0.06822068244218826, 0.24201957881450653, 0.012638973072171211, 0.12432818114757538, 0.08297402411699295, -0.14135019481182098, -0.08922608196735382, -0.16058969497680664, 0.11493206024169922, -0.11064398288726807, 0.017837554216384888, -0.09270310401916504, -0.1388925164937973, -0.1294720470905304, 0.007709529250860214, -0.003696434199810028, 0.007039166986942291, -0.13627146184444427, 0.38197222352027893, 0.04027922451496124, 0.013498958200216293, 0.05457080155611038, 0.528899610042572, 0.6157766580581665, 0.2225264310836792, 0.15397831797599792, 0.22918397188186646, -0.34547144174575806, -0.04072494059801102, -0.022172261029481888, 0.24957048892974854, 0.2581285238265991, 0.31745877861976624, 0.19135060906410217, 0.10217371582984924, -0.19083291292190552, -0.12478023767471313, 0.3226773142814636, 0.11486290395259857, -0.2692888081073761, 0.10786566883325577, -0.6182483434677124, -0.019206605851650238, -0.2506210207939148, 0.021312914788722992, -0.759990394115448, 0.08910059183835983, 0.4706355035305023, -0.08878496289253235, 0.03275424242019653, -0.22526967525482178, 0.08188867568969727, -0.04470847174525261, 0.34348633885383606, 0.352957159280777, 0.2142377495765686, 0.01814511977136135, -0.32781553268432617, -0.753910481929779, 0.13262754678726196, 0.09544544667005539, 0.10851335525512695, -0.18165549635887146, -0.07984469085931778, 0.32822132110595703, 0.3236338496208191, -0.14855866134166718, 0.05366533249616623, -0.22191165387630463, -0.30841782689094543, -0.1348036825656891, 0.015472514554858208, -0.07750484347343445, 0.2150859236717224, -0.15142135322093964, -0.32067161798477173, -0.16706623136997223, -0.3572373688220978, 0.08481883257627487, -0.05128560960292816, -0.02979198843240738, -0.33330750465393066, -0.09775817394256592, 0.08510082960128784, 0.20585231482982635, 0.31443652510643005, -0.25523048639297485, -0.15018869936466217, -0.16131415963172913, -0.26322469115257263, -0.08876751363277435, 0.30321216583251953, 0.03553338721394539, 0.5683213472366333, -0.2828611433506012, 0.06549501419067383, -0.3003048002719879, 0.535661518573761, 0.09828458726406097, 0.004089550580829382, -0.22741053998470306, 0.3459278345108032, -0.16441908478736877, 0.1881946623325348, -0.0067116329446434975, 0.03184589743614197, -0.06167365610599518, 0.11457036435604095, -0.48132747411727905, -0.32610324025154114, 0.6847339272499084, -0.5025783777236938, -0.25057610869407654, 0.12680208683013916, 0.3253099322319031, 0.1369982361793518, -0.3709212839603424, -0.6134669184684753, 0.1257462501525879, 0.16148412227630615, 0.15859633684158325, -0.10426585376262665, 0.19002790749073029, -0.3713197410106659, -0.21885883808135986, -0.07576526701450348, 0.2658398151397705, 0.2960599660873413, -0.19479598104953766, 0.20116327702999115, -0.2912435531616211 ]
https://github.com/huggingface/datasets/issues/1994
not being able to get wikipedia es language
@lhoestq I really appreciate if you could help me providiing processed datasets, I do not really have access to enough resources to run the apache-beam and need to run the codes on these datasets. Only en/de/fr currently works, but I need all the languages more or less. thanks
Hi I am trying to run a code with wikipedia of config 20200501.es, getting: Traceback (most recent call last): File "run_mlm_t5.py", line 608, in <module> main() File "run_mlm_t5.py", line 359, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/load.py", line 612, in load_dataset ignore_verifications=ignore_verifications, File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 527, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 1050, in _download_and_prepare "\n\t`{}`".format(usage_example) datasets.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` thanks @lhoestq for any suggestion/help
48
not being able to get wikipedia es language Hi I am trying to run a code with wikipedia of config 20200501.es, getting: Traceback (most recent call last): File "run_mlm_t5.py", line 608, in <module> main() File "run_mlm_t5.py", line 359, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/load.py", line 612, in load_dataset ignore_verifications=ignore_verifications, File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 527, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 1050, in _download_and_prepare "\n\t`{}`".format(usage_example) datasets.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` thanks @lhoestq for any suggestion/help @lhoestq I really appreciate if you could help me providiing processed datasets, I do not really have access to enough resources to run the apache-beam and need to run the codes on these datasets. Only en/de/fr currently works, but I need all the languages more or less. thanks
[ -0.34210702776908875, 0.047192737460136414, -0.1062646210193634, 0.06201731786131859, 0.200455442070961, 0.17774438858032227, 0.17687468230724335, 0.3401966989040375, 0.13733352720737457, 0.09211809188127518, 0.4105237126350403, 0.3346937596797943, 0.01600079983472824, 0.30764591693878174, 0.11132080107927322, -0.33708709478378296, 0.0556505061686039, 0.07522188127040863, -0.19471853971481323, -0.20017598569393158, -0.1320844292640686, 0.1037432998418808, -0.272518515586853, -0.07011571526527405, -0.14883551001548767, 0.10703832656145096, 0.12277784943580627, -0.019669391214847565, -0.1926020085811615, -0.1862010657787323, 0.06802234053611755, -0.036213550716638565, 0.22803360223770142, 0.10794307291507721, -0.00010841461335076019, 0.08063134551048279, 0.5717446208000183, -0.15838035941123962, -0.4590221345424652, -0.13032205402851105, -0.0813637375831604, -0.34625768661499023, 0.25645002722740173, -0.3715742528438568, -0.3347841799259186, -0.02563929185271263, 0.3187553584575653, -0.5857163071632385, 0.24128836393356323, 0.14796146750450134, 0.21826857328414917, -0.07421091943979263, 0.3515348434448242, -0.004884451162070036, 0.41059696674346924, 0.2186068594455719, -0.036049555987119675, -0.12430763244628906, 0.010662764310836792, 0.024964923039078712, 0.06061753258109093, 0.46184754371643066, 0.0472857728600502, -0.11424730718135834, 0.3039732873439789, -0.30949053168296814, 0.26568424701690674, -0.3731166124343872, 0.42296892404556274, 0.25413212180137634, 1.016162633895874, -0.11970198899507523, 0.09952057898044586, 0.10506624728441238, 0.004074035212397575, 0.12878115475177765, 0.24283650517463684, 0.200534850358963, -0.364273339509964, -0.07967951893806458, 0.11349298804998398, -0.28304383158683777, -0.33567821979522705, 0.3455578088760376, -0.1017289012670517, 0.5368952751159668, 0.10903774946928024, 0.1416432410478592, -0.15097543597221375, -0.18528872728347778, 0.07730131596326828, -0.0707799419760704, 0.10307736694812775, 0.35414132475852966, -0.0930444747209549, 0.1351345032453537, 0.24577945470809937, 0.17513269186019897, 0.04433980584144592, -0.09479646384716034, -0.27976471185684204, 0.19170108437538147, 0.36851975321769714, 0.046186767518520355, 0.022066326811909676, 0.03235286846756935, 0.35566288232803345, -0.1849304884672165, 0.20503908395767212, -0.030573179945349693, 0.007939431816339493, 0.06664755940437317, -0.05862106382846832, -0.3365757167339325, -0.6453832387924194, 0.2325165569782257, -0.0009588506072759628, -0.13675157725811005, 0.1923418790102005, 0.15872657299041748, -0.3540835678577423, -0.29986652731895447, -0.005748574621975422, 0.20172500610351562, 0.15220452845096588, 0.20511898398399353, 0.2833248972892761, -0.08672597259283066, -0.34171026945114136, -0.3844309151172638, -0.04664040729403496, 0.28296318650245667, -0.4593489170074463, 0.07805221527814865, 0.2093626707792282, 0.10678590834140778, 0.3750688433647156, -0.03551441431045532, -0.04399970918893814, 0.0425272062420845, 0.13077132403850555, 0.07883505523204803, -0.13859930634498596, 0.15947546064853668, 0.14901871979236603, 0.24700091779232025, 0.1999043971300125, -0.22246749699115753, -0.052218470722436905, 0.0016838796436786652, -0.09037352353334427, -0.19051845371723175, -0.18565547466278076, 0.1717609018087387, 0.12278009951114655, 0.10188576579093933, 0.04582645371556282, 0.3413797914981842, 0.1713998019695282, -0.22588807344436646, 0.1436648666858673, -0.007510095834732056, -0.1345750242471695, -0.09188740700483322, 0.3624590039253235, 0.37257224321365356, -0.6563615202903748, 0.10404619574546814, -0.0495634563267231, 0.18776771426200867, 0.14370021224021912, -0.2795006036758423, -0.28138765692710876, 0.42379847168922424, -0.09351996332406998, -0.10077232122421265, 0.30891817808151245, -0.2708931863307953, 0.08159076422452927, 0.19684277474880219, 0.06733463704586029, -0.2822608947753906, 0.237100750207901, -0.11235295981168747, 0.042296603322029114, 0.16245494782924652, 0.1141090989112854, 0.1663445234298706, 0.11646009981632233, -0.07022511214017868, -0.21967563033103943, -0.1222948208451271, -0.04315415024757385, 0.11727088689804077, 0.26654431223869324, -0.11958038061857224, 0.12490186840295792, 0.5266059041023254, 0.3261626958847046, -0.26325491070747375, 0.07642484456300735, 0.5432153940200806, -0.31229186058044434, 0.08065912127494812, 0.1918928474187851, -0.05547455698251724, -0.0499003604054451, 0.18091359734535217, -0.23919463157653809, 0.4039112627506256, 0.07905761897563934, -0.0053863525390625, -0.26680687069892883, -0.053028300404548645, -0.23602883517742157, -0.4283646047115326, 0.21149234473705292, 0.04665570706129074, -0.03551911190152168, 0.2530856728553772, 0.05293479934334755, -0.09003491699695587, -0.2782234251499176, -0.13893701136112213, -0.8122116923332214, 0.2934659719467163, -0.28607627749443054, -0.08008097857236862, -0.08756023645401001, 0.02025561034679413, 0.06395119428634644, -0.1236342266201973, -0.2867788076400757, 0.10091521590948105, 0.18732760846614838, 0.03720071539282799, -0.011949196457862854, 0.1644933670759201, 0.12203004956245422, -0.2648279368877411, 0.31667110323905945, 0.3054227828979492, 0.11993999779224396, 0.01796853542327881, -0.20191505551338196, 0.11080822348594666, 0.04773319140076637, 0.3355239927768707, 0.07278653234243393, 0.26858973503112793, 0.18518298864364624, 0.1680476814508438, -0.15628114342689514, -0.15916401147842407, 0.3021565079689026, 0.4226677715778351, 0.18189740180969238, -0.14570321142673492, 0.037038616836071014, 0.07721671462059021, 0.4515744745731354, 0.10484346747398376, -0.09222405403852463, -0.12637150287628174, -0.30541035532951355, -0.05947896093130112, 0.48334479331970215, -0.17912442982196808, -0.016023173928260803, 0.2791059911251068, -0.016197215765714645, 0.07711922377347946, -0.15118557214736938, -0.1175532266497612, 0.444623202085495, 0.0723261684179306, 0.5178590416908264, -0.025720663368701935, -0.12441686540842056, -0.1868187040090561, -0.19084137678146362, -0.28794243931770325, -0.12341431528329849, 0.28474098443984985, -0.3124692738056183, 0.2768905758857727, -0.41788339614868164, -0.5642529726028442, -0.2084289789199829, 0.4299701750278473, -0.34802454710006714, -0.34306928515434265, -0.06800823658704758, 0.07788591831922531, -0.02291087992489338, 0.25001901388168335, 0.10721041262149811, -0.03554241359233856, 0.23204468190670013, 0.007473541423678398, -0.22167739272117615, -0.5956388115882874, -0.43564024567604065, 0.03266336768865585, 0.28232625126838684, 0.03737519681453705, 0.1272294521331787, -0.15690559148788452, -0.06724166125059128, -0.14529530704021454, -0.4021960198879242, 0.341444194316864, -0.08698529005050659, -0.008463874459266663, 0.11665335297584534, 0.42721861600875854, -0.19598156213760376, -0.09505882859230042, 0.30980098247528076, 0.11520181596279144, -0.14764991402626038, -0.06926561892032623, -0.0846724733710289, -0.06236208602786064, -0.030823415145277977, -0.43830153346061707, -0.15058530867099762, -0.3273378014564514, -0.18199992179870605, 0.16898353397846222, 0.13323555886745453, 0.3523072600364685, 0.2645774483680725, 0.20914851129055023, 0.3283591866493225, 0.0954611748456955, -0.09655775874853134, -0.1593371480703354, 0.21701820194721222, -0.31857234239578247, -0.31674623489379883, 0.1040424257516861, -0.14131315052509308, 0.23050685226917267, 0.113540880382061, -0.14633040130138397, 0.06803210824728012, 0.11597315222024918, 0.02005505934357643, -0.10131993889808655, 0.3257162272930145, 0.7469016313552856, -0.012623775750398636, -0.001666523516178131, -0.09881142526865005, 0.04782586172223091, 0.03073795884847641, -0.4368049204349518, 0.34731796383857727, 0.17779207229614258, 0.5277688503265381, -0.07014740258455276, 0.7515989542007446, 0.11483575403690338, 0.11667934060096741, 0.13216532766819, -0.07526101917028427, 0.06618665903806686, -0.2724727690219879, -0.18845979869365692, 0.29278135299682617, 0.040327198803424835, -0.3030904531478882, 0.3898434638977051, -0.12770211696624756, -0.25989171862602234, -0.43877696990966797, 0.07504814863204956, 0.0016000233590602875, -0.24473914504051208, -0.03760591894388199, -0.37500491738319397, 0.38391175866127014, -0.09530292451381683, 0.3992151618003845, -0.08024562895298004, -0.07314223051071167, 0.059200335294008255, 0.2196860909461975, -0.09824574738740921, 0.13422371447086334, -0.1730976402759552, -0.24974989891052246, -0.3993258476257324, 0.24614308774471283, 0.001210658112540841, 0.14361710846424103, -0.2927531599998474, 0.007916469126939774, 0.2831735610961914, 0.00874510407447815, 0.5200987458229065, -0.6470432877540588, -0.09738238155841827, 0.3353390395641327, 0.19218038022518158, -0.6571794152259827, -0.14138704538345337, -0.18767735362052917, 0.27711793780326843, 0.3285020589828491, -0.04784683883190155, -0.33222004771232605, -0.1513584554195404, 0.2680896520614624, 0.0485692098736763, -0.09909896552562714, 0.051520321518182755, -0.24175794422626495, -0.14331740140914917, -0.3353155255317688, -0.06578197330236435, -0.09969432651996613, 0.1351073682308197, 0.10023945569992065, 0.2149961143732071, 0.08130360394716263, 0.026218749582767487, -0.1448781043291092, 0.20501397550106049, 0.12260542064905167, 0.13836456835269928, -0.2560669779777527, 0.10371247678995132, 0.4806472659111023, -0.02658914215862751, -0.10802415013313293, 0.1851128190755844, -0.20795348286628723, 0.17263782024383545, -0.21509230136871338, 0.14550821483135223, 0.16041089594364166, -0.12064595520496368, -0.23936399817466736, 0.03647952526807785, -0.25429975986480713, -0.04646545648574829, 0.05284290760755539, 0.2087157815694809, 0.08100216835737228, -0.12740080058574677, -0.4575788676738739, 0.5609185695648193, 0.1885288804769516, -0.0729709267616272, 0.2990119755268097, -0.01566562056541443, -0.4306364953517914, 0.4052891135215759, 0.4329434037208557, 0.8635660409927368, 0.029916509985923767, 0.0139993354678154, 0.17142000794410706, 0.16713659465312958, 0.6254854798316956, -0.5466768741607666, 0.20916423201560974, -0.281289666891098, 0.31988757848739624, -0.0952548235654831, 0.06537748873233795, 0.3957323133945465, 0.14318522810935974, -0.22217051684856415, 0.3536060154438019, -0.017385154962539673, 0.07415876537561417, 0.05659671127796173, 0.37671729922294617, 0.12653328478336334, -0.3078528046607971, -0.11752915382385254, 0.12139658629894257, -0.18236207962036133, 0.2824687957763672, -0.2498217225074768, -0.012539304792881012, -0.014507737010717392, -0.2449241727590561, -0.41069960594177246, 0.0911932960152626, -0.22418349981307983, 0.46085530519485474, -0.3423028290271759, -0.45930570363998413, 0.2506960928440094, 0.22680909931659698, 0.23546141386032104, 0.36966606974601746, -0.3735501766204834, 0.20016779005527496, 0.015005182474851608, -0.23610655963420868, -0.07618836313486099, 0.04109736159443855, 0.38665616512298584, -0.19228029251098633, -0.3922678530216217, 0.2118113934993744, -0.17384064197540283, -0.09788397699594498, -0.2912865877151489, -0.3177189826965332, 0.3188322186470032, 0.25020185112953186, 0.12403450906276703, 0.17259103059768677, -0.08605629205703735, -0.13386225700378418, 0.11980459094047546, -0.28414225578308105, 0.010104240849614143, 0.00868891179561615, 0.08827590942382812, -0.08681836724281311, 0.03090888448059559, 0.2571510970592499, 0.1876174807548523, 0.017261352390050888, 0.5952088832855225, 0.37850505113601685, -0.2194751352071762, -0.26590627431869507, 0.1786082684993744, -0.22924365103244781, -0.06068930774927139, -0.26341670751571655, 0.15080605447292328, 0.09231793880462646, -0.05712684616446495, 0.10292032361030579, -0.015744030475616455, -0.14091041684150696, -0.007175832986831665, -0.26803749799728394, -0.020958686247467995, 0.02230006828904152, -0.1638096421957016, -0.0015578493475914001, 0.18830513954162598, 0.13324597477912903, 0.2853650152683258, -0.23602327704429626, -0.2791168689727783, -0.23883529007434845, -0.022319167852401733, 0.04532085359096527, 0.4137136936187744, -0.016639962792396545, -0.23604750633239746, -0.03873881697654724, 0.1452319622039795, -0.23010565340518951, -0.2452719807624817, -0.17255061864852905, -0.04683499038219452, 0.1290072202682495, -0.03978467732667923, -0.18745777010917664, 0.1358538419008255, -0.340359628200531, -0.2925049960613251, -0.20412948727607727, -0.13163772225379944, -0.1293071210384369, -0.024285420775413513, 0.22228829562664032, -0.1042090505361557, 0.34499114751815796, -0.2877993583679199, 0.08798322081565857, 0.034875597804784775, 0.2938317060470581, 0.0511711910367012, 0.2495485246181488, 0.41686102747917175, -0.176467627286911, -0.5602071285247803, 0.18304572999477386, -0.22114606201648712, 0.17438438534736633, 0.16332201659679413, -0.08280201256275177, -0.04801114648580551, 0.0299657192081213, -0.021473530679941177, 0.026401951909065247, -0.08198915421962738, -0.030233394354581833, 0.1355878710746765, 0.20455136895179749, -0.282722532749176, 0.12395714968442917, 0.42209798097610474, -0.03309762850403786, 0.09618964791297913, 0.026279211044311523, 0.2615511119365692, -0.053421951830387115, 0.17466285824775696, 0.04105685278773308, 0.01686435379087925, -0.04344771057367325, 0.26398909091949463, 0.09460753947496414, 0.08114725351333618, 0.11606082320213318, -0.1200716570019722, 0.046420011669397354, 0.1310724914073944, 0.37461334466934204, 0.10712627321481705, 0.0660352110862732, 0.1008155569434166, 0.21656857430934906, -0.22537630796432495, -0.1409865915775299, 0.3062991201877594, -0.1027754545211792, -0.02090812474489212, 0.022877167910337448, -0.06457258760929108, 0.07485686242580414, 0.14801691472530365, -0.06374989449977875, -0.31802263855934143, 0.13867276906967163, -0.07772723585367203, -0.18301385641098022, -0.6274291276931763, -0.2322813868522644, 0.05465109646320343, -0.01765858195722103, 0.08908896148204803, -0.08369715511798859, -0.10924747586250305, 0.20269775390625, -0.03502584993839264, -0.23063664138317108, 0.6797731518745422, -0.06164851039648056, 0.04469726234674454, -0.05517600476741791, 0.25208669900894165, -0.21323494613170624, -0.07124559581279755, -0.1705530881881714, -0.0018395930528640747, 0.15782535076141357, 0.21092861890792847, -0.47010427713394165, -0.1439928263425827, -0.0009007509797811508, 0.01894410140812397, -0.059177640825510025, 0.0006444081664085388, 0.06300108134746552, -0.03779701516032219, 0.29405084252357483, 0.10967114567756653, -0.08980168402194977, -0.19844317436218262, 0.21691656112670898, -0.0071817245334386826, -0.02003774233162403, -0.2484550178050995, 0.004518499597907066, 0.104212187230587, -0.10660849511623383, 0.11462442576885223, -0.5152723789215088, 0.04132644087076187, 0.25939980149269104, 0.38845953345298767, -0.10852837562561035, -0.22299621999263763, 0.08364375680685043, -0.3275434374809265, 0.5394179224967957, 0.08417317271232605, 0.1905834972858429, -0.11804782599210739, -0.29301464557647705, -0.2950970530509949, 0.00545337051153183, -0.16959445178508759, -0.3680245280265808, -0.120394766330719, 0.3059186041355133, 0.39280450344085693, 0.2445937842130661, 0.11688079684972763, -0.2535529136657715, -0.12980519235134125, 0.2650591731071472, -0.14386308193206787, -0.15893034636974335, -0.07328224182128906, 0.04924120008945465, -0.2251884490251541, -0.17736771702766418, 0.08320610970258713, -0.019431142136454582, 0.07522585242986679, -0.22762125730514526, -0.1473572552204132, 0.3186527192592621, -0.43477770686149597, 0.25957706570625305, 0.02589510940015316, 0.5472241044044495, 0.02913203090429306, -0.04227297008037567, -0.1655571162700653, 0.22283834218978882, -0.04500047490000725, 0.49142101407051086, 0.06162049621343613, 0.22850891947746277, -0.2155005782842636, -0.31885015964508057, -0.3452577590942383, 0.6317011117935181, 0.03209663927555084, -0.055099621415138245, -0.24908007681369781, -0.05867033451795578, -0.22949928045272827, 0.2923282980918884, -0.11924578249454498, 0.06629272550344467, -0.03665236383676529, 0.18673400580883026, -0.3581695556640625, -0.2367311716079712, 0.338419109582901, -0.42113247513771057, -0.33567994832992554, -0.18971459567546844, 0.06820904463529587, -0.14943334460258484, 0.292988657951355, -0.1057339459657669, -0.01535419374704361, 0.2634701132774353, -0.13522681593894958, -0.016723820939660072, 0.00014344137161970139, 0.059856630861759186, 0.1573980301618576, -0.2458987683057785, -0.40447181463241577, -0.19432911276817322, -0.0603257492184639, -0.3799315094947815, -0.2492925524711609 ]
https://github.com/huggingface/datasets/issues/1994
not being able to get wikipedia es language
Hi @dorost1234, I think I can help you a little. I’ve processed some Wikipedia datasets (Spanish inclusive) using the HF/datasets library during recent research. @lhoestq Could you help me to upload these preprocessed datasets to Huggingface's repositories? To be more precise, I've built datasets from the following languages using the 20201201 dumps: Spanish, Portuguese, Russian, French, Japanese, Chinese, and Turkish. Process these datasets have high costs that most of the community can't afford. I think these preprocessed datasets I have could be helpful for someone without access to high-resource machines to process Wikipedia's dumps like @dorost1234
Hi I am trying to run a code with wikipedia of config 20200501.es, getting: Traceback (most recent call last): File "run_mlm_t5.py", line 608, in <module> main() File "run_mlm_t5.py", line 359, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/load.py", line 612, in load_dataset ignore_verifications=ignore_verifications, File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 527, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 1050, in _download_and_prepare "\n\t`{}`".format(usage_example) datasets.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` thanks @lhoestq for any suggestion/help
96
not being able to get wikipedia es language Hi I am trying to run a code with wikipedia of config 20200501.es, getting: Traceback (most recent call last): File "run_mlm_t5.py", line 608, in <module> main() File "run_mlm_t5.py", line 359, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/load.py", line 612, in load_dataset ignore_verifications=ignore_verifications, File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 527, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 1050, in _download_and_prepare "\n\t`{}`".format(usage_example) datasets.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` thanks @lhoestq for any suggestion/help Hi @dorost1234, I think I can help you a little. I’ve processed some Wikipedia datasets (Spanish inclusive) using the HF/datasets library during recent research. @lhoestq Could you help me to upload these preprocessed datasets to Huggingface's repositories? To be more precise, I've built datasets from the following languages using the 20201201 dumps: Spanish, Portuguese, Russian, French, Japanese, Chinese, and Turkish. Process these datasets have high costs that most of the community can't afford. I think these preprocessed datasets I have could be helpful for someone without access to high-resource machines to process Wikipedia's dumps like @dorost1234
[ -0.34210702776908875, 0.047192737460136414, -0.1062646210193634, 0.06201731786131859, 0.200455442070961, 0.17774438858032227, 0.17687468230724335, 0.3401966989040375, 0.13733352720737457, 0.09211809188127518, 0.4105237126350403, 0.3346937596797943, 0.01600079983472824, 0.30764591693878174, 0.11132080107927322, -0.33708709478378296, 0.0556505061686039, 0.07522188127040863, -0.19471853971481323, -0.20017598569393158, -0.1320844292640686, 0.1037432998418808, -0.272518515586853, -0.07011571526527405, -0.14883551001548767, 0.10703832656145096, 0.12277784943580627, -0.019669391214847565, -0.1926020085811615, -0.1862010657787323, 0.06802234053611755, -0.036213550716638565, 0.22803360223770142, 0.10794307291507721, -0.00010841461335076019, 0.08063134551048279, 0.5717446208000183, -0.15838035941123962, -0.4590221345424652, -0.13032205402851105, -0.0813637375831604, -0.34625768661499023, 0.25645002722740173, -0.3715742528438568, -0.3347841799259186, -0.02563929185271263, 0.3187553584575653, -0.5857163071632385, 0.24128836393356323, 0.14796146750450134, 0.21826857328414917, -0.07421091943979263, 0.3515348434448242, -0.004884451162070036, 0.41059696674346924, 0.2186068594455719, -0.036049555987119675, -0.12430763244628906, 0.010662764310836792, 0.024964923039078712, 0.06061753258109093, 0.46184754371643066, 0.0472857728600502, -0.11424730718135834, 0.3039732873439789, -0.30949053168296814, 0.26568424701690674, -0.3731166124343872, 0.42296892404556274, 0.25413212180137634, 1.016162633895874, -0.11970198899507523, 0.09952057898044586, 0.10506624728441238, 0.004074035212397575, 0.12878115475177765, 0.24283650517463684, 0.200534850358963, -0.364273339509964, -0.07967951893806458, 0.11349298804998398, -0.28304383158683777, -0.33567821979522705, 0.3455578088760376, -0.1017289012670517, 0.5368952751159668, 0.10903774946928024, 0.1416432410478592, -0.15097543597221375, -0.18528872728347778, 0.07730131596326828, -0.0707799419760704, 0.10307736694812775, 0.35414132475852966, -0.0930444747209549, 0.1351345032453537, 0.24577945470809937, 0.17513269186019897, 0.04433980584144592, -0.09479646384716034, -0.27976471185684204, 0.19170108437538147, 0.36851975321769714, 0.046186767518520355, 0.022066326811909676, 0.03235286846756935, 0.35566288232803345, -0.1849304884672165, 0.20503908395767212, -0.030573179945349693, 0.007939431816339493, 0.06664755940437317, -0.05862106382846832, -0.3365757167339325, -0.6453832387924194, 0.2325165569782257, -0.0009588506072759628, -0.13675157725811005, 0.1923418790102005, 0.15872657299041748, -0.3540835678577423, -0.29986652731895447, -0.005748574621975422, 0.20172500610351562, 0.15220452845096588, 0.20511898398399353, 0.2833248972892761, -0.08672597259283066, -0.34171026945114136, -0.3844309151172638, -0.04664040729403496, 0.28296318650245667, -0.4593489170074463, 0.07805221527814865, 0.2093626707792282, 0.10678590834140778, 0.3750688433647156, -0.03551441431045532, -0.04399970918893814, 0.0425272062420845, 0.13077132403850555, 0.07883505523204803, -0.13859930634498596, 0.15947546064853668, 0.14901871979236603, 0.24700091779232025, 0.1999043971300125, -0.22246749699115753, -0.052218470722436905, 0.0016838796436786652, -0.09037352353334427, -0.19051845371723175, -0.18565547466278076, 0.1717609018087387, 0.12278009951114655, 0.10188576579093933, 0.04582645371556282, 0.3413797914981842, 0.1713998019695282, -0.22588807344436646, 0.1436648666858673, -0.007510095834732056, -0.1345750242471695, -0.09188740700483322, 0.3624590039253235, 0.37257224321365356, -0.6563615202903748, 0.10404619574546814, -0.0495634563267231, 0.18776771426200867, 0.14370021224021912, -0.2795006036758423, -0.28138765692710876, 0.42379847168922424, -0.09351996332406998, -0.10077232122421265, 0.30891817808151245, -0.2708931863307953, 0.08159076422452927, 0.19684277474880219, 0.06733463704586029, -0.2822608947753906, 0.237100750207901, -0.11235295981168747, 0.042296603322029114, 0.16245494782924652, 0.1141090989112854, 0.1663445234298706, 0.11646009981632233, -0.07022511214017868, -0.21967563033103943, -0.1222948208451271, -0.04315415024757385, 0.11727088689804077, 0.26654431223869324, -0.11958038061857224, 0.12490186840295792, 0.5266059041023254, 0.3261626958847046, -0.26325491070747375, 0.07642484456300735, 0.5432153940200806, -0.31229186058044434, 0.08065912127494812, 0.1918928474187851, -0.05547455698251724, -0.0499003604054451, 0.18091359734535217, -0.23919463157653809, 0.4039112627506256, 0.07905761897563934, -0.0053863525390625, -0.26680687069892883, -0.053028300404548645, -0.23602883517742157, -0.4283646047115326, 0.21149234473705292, 0.04665570706129074, -0.03551911190152168, 0.2530856728553772, 0.05293479934334755, -0.09003491699695587, -0.2782234251499176, -0.13893701136112213, -0.8122116923332214, 0.2934659719467163, -0.28607627749443054, -0.08008097857236862, -0.08756023645401001, 0.02025561034679413, 0.06395119428634644, -0.1236342266201973, -0.2867788076400757, 0.10091521590948105, 0.18732760846614838, 0.03720071539282799, -0.011949196457862854, 0.1644933670759201, 0.12203004956245422, -0.2648279368877411, 0.31667110323905945, 0.3054227828979492, 0.11993999779224396, 0.01796853542327881, -0.20191505551338196, 0.11080822348594666, 0.04773319140076637, 0.3355239927768707, 0.07278653234243393, 0.26858973503112793, 0.18518298864364624, 0.1680476814508438, -0.15628114342689514, -0.15916401147842407, 0.3021565079689026, 0.4226677715778351, 0.18189740180969238, -0.14570321142673492, 0.037038616836071014, 0.07721671462059021, 0.4515744745731354, 0.10484346747398376, -0.09222405403852463, -0.12637150287628174, -0.30541035532951355, -0.05947896093130112, 0.48334479331970215, -0.17912442982196808, -0.016023173928260803, 0.2791059911251068, -0.016197215765714645, 0.07711922377347946, -0.15118557214736938, -0.1175532266497612, 0.444623202085495, 0.0723261684179306, 0.5178590416908264, -0.025720663368701935, -0.12441686540842056, -0.1868187040090561, -0.19084137678146362, -0.28794243931770325, -0.12341431528329849, 0.28474098443984985, -0.3124692738056183, 0.2768905758857727, -0.41788339614868164, -0.5642529726028442, -0.2084289789199829, 0.4299701750278473, -0.34802454710006714, -0.34306928515434265, -0.06800823658704758, 0.07788591831922531, -0.02291087992489338, 0.25001901388168335, 0.10721041262149811, -0.03554241359233856, 0.23204468190670013, 0.007473541423678398, -0.22167739272117615, -0.5956388115882874, -0.43564024567604065, 0.03266336768865585, 0.28232625126838684, 0.03737519681453705, 0.1272294521331787, -0.15690559148788452, -0.06724166125059128, -0.14529530704021454, -0.4021960198879242, 0.341444194316864, -0.08698529005050659, -0.008463874459266663, 0.11665335297584534, 0.42721861600875854, -0.19598156213760376, -0.09505882859230042, 0.30980098247528076, 0.11520181596279144, -0.14764991402626038, -0.06926561892032623, -0.0846724733710289, -0.06236208602786064, -0.030823415145277977, -0.43830153346061707, -0.15058530867099762, -0.3273378014564514, -0.18199992179870605, 0.16898353397846222, 0.13323555886745453, 0.3523072600364685, 0.2645774483680725, 0.20914851129055023, 0.3283591866493225, 0.0954611748456955, -0.09655775874853134, -0.1593371480703354, 0.21701820194721222, -0.31857234239578247, -0.31674623489379883, 0.1040424257516861, -0.14131315052509308, 0.23050685226917267, 0.113540880382061, -0.14633040130138397, 0.06803210824728012, 0.11597315222024918, 0.02005505934357643, -0.10131993889808655, 0.3257162272930145, 0.7469016313552856, -0.012623775750398636, -0.001666523516178131, -0.09881142526865005, 0.04782586172223091, 0.03073795884847641, -0.4368049204349518, 0.34731796383857727, 0.17779207229614258, 0.5277688503265381, -0.07014740258455276, 0.7515989542007446, 0.11483575403690338, 0.11667934060096741, 0.13216532766819, -0.07526101917028427, 0.06618665903806686, -0.2724727690219879, -0.18845979869365692, 0.29278135299682617, 0.040327198803424835, -0.3030904531478882, 0.3898434638977051, -0.12770211696624756, -0.25989171862602234, -0.43877696990966797, 0.07504814863204956, 0.0016000233590602875, -0.24473914504051208, -0.03760591894388199, -0.37500491738319397, 0.38391175866127014, -0.09530292451381683, 0.3992151618003845, -0.08024562895298004, -0.07314223051071167, 0.059200335294008255, 0.2196860909461975, -0.09824574738740921, 0.13422371447086334, -0.1730976402759552, -0.24974989891052246, -0.3993258476257324, 0.24614308774471283, 0.001210658112540841, 0.14361710846424103, -0.2927531599998474, 0.007916469126939774, 0.2831735610961914, 0.00874510407447815, 0.5200987458229065, -0.6470432877540588, -0.09738238155841827, 0.3353390395641327, 0.19218038022518158, -0.6571794152259827, -0.14138704538345337, -0.18767735362052917, 0.27711793780326843, 0.3285020589828491, -0.04784683883190155, -0.33222004771232605, -0.1513584554195404, 0.2680896520614624, 0.0485692098736763, -0.09909896552562714, 0.051520321518182755, -0.24175794422626495, -0.14331740140914917, -0.3353155255317688, -0.06578197330236435, -0.09969432651996613, 0.1351073682308197, 0.10023945569992065, 0.2149961143732071, 0.08130360394716263, 0.026218749582767487, -0.1448781043291092, 0.20501397550106049, 0.12260542064905167, 0.13836456835269928, -0.2560669779777527, 0.10371247678995132, 0.4806472659111023, -0.02658914215862751, -0.10802415013313293, 0.1851128190755844, -0.20795348286628723, 0.17263782024383545, -0.21509230136871338, 0.14550821483135223, 0.16041089594364166, -0.12064595520496368, -0.23936399817466736, 0.03647952526807785, -0.25429975986480713, -0.04646545648574829, 0.05284290760755539, 0.2087157815694809, 0.08100216835737228, -0.12740080058574677, -0.4575788676738739, 0.5609185695648193, 0.1885288804769516, -0.0729709267616272, 0.2990119755268097, -0.01566562056541443, -0.4306364953517914, 0.4052891135215759, 0.4329434037208557, 0.8635660409927368, 0.029916509985923767, 0.0139993354678154, 0.17142000794410706, 0.16713659465312958, 0.6254854798316956, -0.5466768741607666, 0.20916423201560974, -0.281289666891098, 0.31988757848739624, -0.0952548235654831, 0.06537748873233795, 0.3957323133945465, 0.14318522810935974, -0.22217051684856415, 0.3536060154438019, -0.017385154962539673, 0.07415876537561417, 0.05659671127796173, 0.37671729922294617, 0.12653328478336334, -0.3078528046607971, -0.11752915382385254, 0.12139658629894257, -0.18236207962036133, 0.2824687957763672, -0.2498217225074768, -0.012539304792881012, -0.014507737010717392, -0.2449241727590561, -0.41069960594177246, 0.0911932960152626, -0.22418349981307983, 0.46085530519485474, -0.3423028290271759, -0.45930570363998413, 0.2506960928440094, 0.22680909931659698, 0.23546141386032104, 0.36966606974601746, -0.3735501766204834, 0.20016779005527496, 0.015005182474851608, -0.23610655963420868, -0.07618836313486099, 0.04109736159443855, 0.38665616512298584, -0.19228029251098633, -0.3922678530216217, 0.2118113934993744, -0.17384064197540283, -0.09788397699594498, -0.2912865877151489, -0.3177189826965332, 0.3188322186470032, 0.25020185112953186, 0.12403450906276703, 0.17259103059768677, -0.08605629205703735, -0.13386225700378418, 0.11980459094047546, -0.28414225578308105, 0.010104240849614143, 0.00868891179561615, 0.08827590942382812, -0.08681836724281311, 0.03090888448059559, 0.2571510970592499, 0.1876174807548523, 0.017261352390050888, 0.5952088832855225, 0.37850505113601685, -0.2194751352071762, -0.26590627431869507, 0.1786082684993744, -0.22924365103244781, -0.06068930774927139, -0.26341670751571655, 0.15080605447292328, 0.09231793880462646, -0.05712684616446495, 0.10292032361030579, -0.015744030475616455, -0.14091041684150696, -0.007175832986831665, -0.26803749799728394, -0.020958686247467995, 0.02230006828904152, -0.1638096421957016, -0.0015578493475914001, 0.18830513954162598, 0.13324597477912903, 0.2853650152683258, -0.23602327704429626, -0.2791168689727783, -0.23883529007434845, -0.022319167852401733, 0.04532085359096527, 0.4137136936187744, -0.016639962792396545, -0.23604750633239746, -0.03873881697654724, 0.1452319622039795, -0.23010565340518951, -0.2452719807624817, -0.17255061864852905, -0.04683499038219452, 0.1290072202682495, -0.03978467732667923, -0.18745777010917664, 0.1358538419008255, -0.340359628200531, -0.2925049960613251, -0.20412948727607727, -0.13163772225379944, -0.1293071210384369, -0.024285420775413513, 0.22228829562664032, -0.1042090505361557, 0.34499114751815796, -0.2877993583679199, 0.08798322081565857, 0.034875597804784775, 0.2938317060470581, 0.0511711910367012, 0.2495485246181488, 0.41686102747917175, -0.176467627286911, -0.5602071285247803, 0.18304572999477386, -0.22114606201648712, 0.17438438534736633, 0.16332201659679413, -0.08280201256275177, -0.04801114648580551, 0.0299657192081213, -0.021473530679941177, 0.026401951909065247, -0.08198915421962738, -0.030233394354581833, 0.1355878710746765, 0.20455136895179749, -0.282722532749176, 0.12395714968442917, 0.42209798097610474, -0.03309762850403786, 0.09618964791297913, 0.026279211044311523, 0.2615511119365692, -0.053421951830387115, 0.17466285824775696, 0.04105685278773308, 0.01686435379087925, -0.04344771057367325, 0.26398909091949463, 0.09460753947496414, 0.08114725351333618, 0.11606082320213318, -0.1200716570019722, 0.046420011669397354, 0.1310724914073944, 0.37461334466934204, 0.10712627321481705, 0.0660352110862732, 0.1008155569434166, 0.21656857430934906, -0.22537630796432495, -0.1409865915775299, 0.3062991201877594, -0.1027754545211792, -0.02090812474489212, 0.022877167910337448, -0.06457258760929108, 0.07485686242580414, 0.14801691472530365, -0.06374989449977875, -0.31802263855934143, 0.13867276906967163, -0.07772723585367203, -0.18301385641098022, -0.6274291276931763, -0.2322813868522644, 0.05465109646320343, -0.01765858195722103, 0.08908896148204803, -0.08369715511798859, -0.10924747586250305, 0.20269775390625, -0.03502584993839264, -0.23063664138317108, 0.6797731518745422, -0.06164851039648056, 0.04469726234674454, -0.05517600476741791, 0.25208669900894165, -0.21323494613170624, -0.07124559581279755, -0.1705530881881714, -0.0018395930528640747, 0.15782535076141357, 0.21092861890792847, -0.47010427713394165, -0.1439928263425827, -0.0009007509797811508, 0.01894410140812397, -0.059177640825510025, 0.0006444081664085388, 0.06300108134746552, -0.03779701516032219, 0.29405084252357483, 0.10967114567756653, -0.08980168402194977, -0.19844317436218262, 0.21691656112670898, -0.0071817245334386826, -0.02003774233162403, -0.2484550178050995, 0.004518499597907066, 0.104212187230587, -0.10660849511623383, 0.11462442576885223, -0.5152723789215088, 0.04132644087076187, 0.25939980149269104, 0.38845953345298767, -0.10852837562561035, -0.22299621999263763, 0.08364375680685043, -0.3275434374809265, 0.5394179224967957, 0.08417317271232605, 0.1905834972858429, -0.11804782599210739, -0.29301464557647705, -0.2950970530509949, 0.00545337051153183, -0.16959445178508759, -0.3680245280265808, -0.120394766330719, 0.3059186041355133, 0.39280450344085693, 0.2445937842130661, 0.11688079684972763, -0.2535529136657715, -0.12980519235134125, 0.2650591731071472, -0.14386308193206787, -0.15893034636974335, -0.07328224182128906, 0.04924120008945465, -0.2251884490251541, -0.17736771702766418, 0.08320610970258713, -0.019431142136454582, 0.07522585242986679, -0.22762125730514526, -0.1473572552204132, 0.3186527192592621, -0.43477770686149597, 0.25957706570625305, 0.02589510940015316, 0.5472241044044495, 0.02913203090429306, -0.04227297008037567, -0.1655571162700653, 0.22283834218978882, -0.04500047490000725, 0.49142101407051086, 0.06162049621343613, 0.22850891947746277, -0.2155005782842636, -0.31885015964508057, -0.3452577590942383, 0.6317011117935181, 0.03209663927555084, -0.055099621415138245, -0.24908007681369781, -0.05867033451795578, -0.22949928045272827, 0.2923282980918884, -0.11924578249454498, 0.06629272550344467, -0.03665236383676529, 0.18673400580883026, -0.3581695556640625, -0.2367311716079712, 0.338419109582901, -0.42113247513771057, -0.33567994832992554, -0.18971459567546844, 0.06820904463529587, -0.14943334460258484, 0.292988657951355, -0.1057339459657669, -0.01535419374704361, 0.2634701132774353, -0.13522681593894958, -0.016723820939660072, 0.00014344137161970139, 0.059856630861759186, 0.1573980301618576, -0.2458987683057785, -0.40447181463241577, -0.19432911276817322, -0.0603257492184639, -0.3799315094947815, -0.2492925524711609 ]
https://github.com/huggingface/datasets/issues/1994
not being able to get wikipedia es language
Thank you so much @jonatasgrosman , I greatly appreciate your help with them. Yes, I unfortunately does not have access to a good resource and need it for my research. I greatly appreciate @lhoestq your help with uploading the processed datasets in huggingface datasets. This would be really helpful for some users like me with not access to high-memory GPU resources. thank you both so much again. On Sat, Mar 6, 2021 at 12:55 AM Jonatas Grosman <notifications@github.com> wrote: > Hi @dorost1234 <https://github.com/dorost1234>, I think I can help you a > little. I’ve processed some Wikipedia datasets (Spanish inclusive) using > the HF/datasets library during recent research. > > @lhoestq <https://github.com/lhoestq> Could you help me to upload these > preprocessed datasets to Huggingface's repositories? To be more precise, > I've built datasets from the following languages using the 20201201 dumps: > Spanish, Portuguese, Russian, French, Japanese, Chinese, and Turkish. > Process these datasets have high costs that most of the community can't > afford. I think these preprocessed datasets I have could be helpful for > someone without access to high-resource machines to process Wikipedia's > dumps like @dorost1234 <https://github.com/dorost1234> > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/1994#issuecomment-791798195>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AS37NMWMK5GFJFU3ACCJFUDTCFVNZANCNFSM4YUZIF4A> > . >
Hi I am trying to run a code with wikipedia of config 20200501.es, getting: Traceback (most recent call last): File "run_mlm_t5.py", line 608, in <module> main() File "run_mlm_t5.py", line 359, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/load.py", line 612, in load_dataset ignore_verifications=ignore_verifications, File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 527, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 1050, in _download_and_prepare "\n\t`{}`".format(usage_example) datasets.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` thanks @lhoestq for any suggestion/help
222
not being able to get wikipedia es language Hi I am trying to run a code with wikipedia of config 20200501.es, getting: Traceback (most recent call last): File "run_mlm_t5.py", line 608, in <module> main() File "run_mlm_t5.py", line 359, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/load.py", line 612, in load_dataset ignore_verifications=ignore_verifications, File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 527, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 1050, in _download_and_prepare "\n\t`{}`".format(usage_example) datasets.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` thanks @lhoestq for any suggestion/help Thank you so much @jonatasgrosman , I greatly appreciate your help with them. Yes, I unfortunately does not have access to a good resource and need it for my research. I greatly appreciate @lhoestq your help with uploading the processed datasets in huggingface datasets. This would be really helpful for some users like me with not access to high-memory GPU resources. thank you both so much again. On Sat, Mar 6, 2021 at 12:55 AM Jonatas Grosman <notifications@github.com> wrote: > Hi @dorost1234 <https://github.com/dorost1234>, I think I can help you a > little. I’ve processed some Wikipedia datasets (Spanish inclusive) using > the HF/datasets library during recent research. > > @lhoestq <https://github.com/lhoestq> Could you help me to upload these > preprocessed datasets to Huggingface's repositories? To be more precise, > I've built datasets from the following languages using the 20201201 dumps: > Spanish, Portuguese, Russian, French, Japanese, Chinese, and Turkish. > Process these datasets have high costs that most of the community can't > afford. I think these preprocessed datasets I have could be helpful for > someone without access to high-resource machines to process Wikipedia's > dumps like @dorost1234 <https://github.com/dorost1234> > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/1994#issuecomment-791798195>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AS37NMWMK5GFJFU3ACCJFUDTCFVNZANCNFSM4YUZIF4A> > . >
[ -0.34210702776908875, 0.047192737460136414, -0.1062646210193634, 0.06201731786131859, 0.200455442070961, 0.17774438858032227, 0.17687468230724335, 0.3401966989040375, 0.13733352720737457, 0.09211809188127518, 0.4105237126350403, 0.3346937596797943, 0.01600079983472824, 0.30764591693878174, 0.11132080107927322, -0.33708709478378296, 0.0556505061686039, 0.07522188127040863, -0.19471853971481323, -0.20017598569393158, -0.1320844292640686, 0.1037432998418808, -0.272518515586853, -0.07011571526527405, -0.14883551001548767, 0.10703832656145096, 0.12277784943580627, -0.019669391214847565, -0.1926020085811615, -0.1862010657787323, 0.06802234053611755, -0.036213550716638565, 0.22803360223770142, 0.10794307291507721, -0.00010841461335076019, 0.08063134551048279, 0.5717446208000183, -0.15838035941123962, -0.4590221345424652, -0.13032205402851105, -0.0813637375831604, -0.34625768661499023, 0.25645002722740173, -0.3715742528438568, -0.3347841799259186, -0.02563929185271263, 0.3187553584575653, -0.5857163071632385, 0.24128836393356323, 0.14796146750450134, 0.21826857328414917, -0.07421091943979263, 0.3515348434448242, -0.004884451162070036, 0.41059696674346924, 0.2186068594455719, -0.036049555987119675, -0.12430763244628906, 0.010662764310836792, 0.024964923039078712, 0.06061753258109093, 0.46184754371643066, 0.0472857728600502, -0.11424730718135834, 0.3039732873439789, -0.30949053168296814, 0.26568424701690674, -0.3731166124343872, 0.42296892404556274, 0.25413212180137634, 1.016162633895874, -0.11970198899507523, 0.09952057898044586, 0.10506624728441238, 0.004074035212397575, 0.12878115475177765, 0.24283650517463684, 0.200534850358963, -0.364273339509964, -0.07967951893806458, 0.11349298804998398, -0.28304383158683777, -0.33567821979522705, 0.3455578088760376, -0.1017289012670517, 0.5368952751159668, 0.10903774946928024, 0.1416432410478592, -0.15097543597221375, -0.18528872728347778, 0.07730131596326828, -0.0707799419760704, 0.10307736694812775, 0.35414132475852966, -0.0930444747209549, 0.1351345032453537, 0.24577945470809937, 0.17513269186019897, 0.04433980584144592, -0.09479646384716034, -0.27976471185684204, 0.19170108437538147, 0.36851975321769714, 0.046186767518520355, 0.022066326811909676, 0.03235286846756935, 0.35566288232803345, -0.1849304884672165, 0.20503908395767212, -0.030573179945349693, 0.007939431816339493, 0.06664755940437317, -0.05862106382846832, -0.3365757167339325, -0.6453832387924194, 0.2325165569782257, -0.0009588506072759628, -0.13675157725811005, 0.1923418790102005, 0.15872657299041748, -0.3540835678577423, -0.29986652731895447, -0.005748574621975422, 0.20172500610351562, 0.15220452845096588, 0.20511898398399353, 0.2833248972892761, -0.08672597259283066, -0.34171026945114136, -0.3844309151172638, -0.04664040729403496, 0.28296318650245667, -0.4593489170074463, 0.07805221527814865, 0.2093626707792282, 0.10678590834140778, 0.3750688433647156, -0.03551441431045532, -0.04399970918893814, 0.0425272062420845, 0.13077132403850555, 0.07883505523204803, -0.13859930634498596, 0.15947546064853668, 0.14901871979236603, 0.24700091779232025, 0.1999043971300125, -0.22246749699115753, -0.052218470722436905, 0.0016838796436786652, -0.09037352353334427, -0.19051845371723175, -0.18565547466278076, 0.1717609018087387, 0.12278009951114655, 0.10188576579093933, 0.04582645371556282, 0.3413797914981842, 0.1713998019695282, -0.22588807344436646, 0.1436648666858673, -0.007510095834732056, -0.1345750242471695, -0.09188740700483322, 0.3624590039253235, 0.37257224321365356, -0.6563615202903748, 0.10404619574546814, -0.0495634563267231, 0.18776771426200867, 0.14370021224021912, -0.2795006036758423, -0.28138765692710876, 0.42379847168922424, -0.09351996332406998, -0.10077232122421265, 0.30891817808151245, -0.2708931863307953, 0.08159076422452927, 0.19684277474880219, 0.06733463704586029, -0.2822608947753906, 0.237100750207901, -0.11235295981168747, 0.042296603322029114, 0.16245494782924652, 0.1141090989112854, 0.1663445234298706, 0.11646009981632233, -0.07022511214017868, -0.21967563033103943, -0.1222948208451271, -0.04315415024757385, 0.11727088689804077, 0.26654431223869324, -0.11958038061857224, 0.12490186840295792, 0.5266059041023254, 0.3261626958847046, -0.26325491070747375, 0.07642484456300735, 0.5432153940200806, -0.31229186058044434, 0.08065912127494812, 0.1918928474187851, -0.05547455698251724, -0.0499003604054451, 0.18091359734535217, -0.23919463157653809, 0.4039112627506256, 0.07905761897563934, -0.0053863525390625, -0.26680687069892883, -0.053028300404548645, -0.23602883517742157, -0.4283646047115326, 0.21149234473705292, 0.04665570706129074, -0.03551911190152168, 0.2530856728553772, 0.05293479934334755, -0.09003491699695587, -0.2782234251499176, -0.13893701136112213, -0.8122116923332214, 0.2934659719467163, -0.28607627749443054, -0.08008097857236862, -0.08756023645401001, 0.02025561034679413, 0.06395119428634644, -0.1236342266201973, -0.2867788076400757, 0.10091521590948105, 0.18732760846614838, 0.03720071539282799, -0.011949196457862854, 0.1644933670759201, 0.12203004956245422, -0.2648279368877411, 0.31667110323905945, 0.3054227828979492, 0.11993999779224396, 0.01796853542327881, -0.20191505551338196, 0.11080822348594666, 0.04773319140076637, 0.3355239927768707, 0.07278653234243393, 0.26858973503112793, 0.18518298864364624, 0.1680476814508438, -0.15628114342689514, -0.15916401147842407, 0.3021565079689026, 0.4226677715778351, 0.18189740180969238, -0.14570321142673492, 0.037038616836071014, 0.07721671462059021, 0.4515744745731354, 0.10484346747398376, -0.09222405403852463, -0.12637150287628174, -0.30541035532951355, -0.05947896093130112, 0.48334479331970215, -0.17912442982196808, -0.016023173928260803, 0.2791059911251068, -0.016197215765714645, 0.07711922377347946, -0.15118557214736938, -0.1175532266497612, 0.444623202085495, 0.0723261684179306, 0.5178590416908264, -0.025720663368701935, -0.12441686540842056, -0.1868187040090561, -0.19084137678146362, -0.28794243931770325, -0.12341431528329849, 0.28474098443984985, -0.3124692738056183, 0.2768905758857727, -0.41788339614868164, -0.5642529726028442, -0.2084289789199829, 0.4299701750278473, -0.34802454710006714, -0.34306928515434265, -0.06800823658704758, 0.07788591831922531, -0.02291087992489338, 0.25001901388168335, 0.10721041262149811, -0.03554241359233856, 0.23204468190670013, 0.007473541423678398, -0.22167739272117615, -0.5956388115882874, -0.43564024567604065, 0.03266336768865585, 0.28232625126838684, 0.03737519681453705, 0.1272294521331787, -0.15690559148788452, -0.06724166125059128, -0.14529530704021454, -0.4021960198879242, 0.341444194316864, -0.08698529005050659, -0.008463874459266663, 0.11665335297584534, 0.42721861600875854, -0.19598156213760376, -0.09505882859230042, 0.30980098247528076, 0.11520181596279144, -0.14764991402626038, -0.06926561892032623, -0.0846724733710289, -0.06236208602786064, -0.030823415145277977, -0.43830153346061707, -0.15058530867099762, -0.3273378014564514, -0.18199992179870605, 0.16898353397846222, 0.13323555886745453, 0.3523072600364685, 0.2645774483680725, 0.20914851129055023, 0.3283591866493225, 0.0954611748456955, -0.09655775874853134, -0.1593371480703354, 0.21701820194721222, -0.31857234239578247, -0.31674623489379883, 0.1040424257516861, -0.14131315052509308, 0.23050685226917267, 0.113540880382061, -0.14633040130138397, 0.06803210824728012, 0.11597315222024918, 0.02005505934357643, -0.10131993889808655, 0.3257162272930145, 0.7469016313552856, -0.012623775750398636, -0.001666523516178131, -0.09881142526865005, 0.04782586172223091, 0.03073795884847641, -0.4368049204349518, 0.34731796383857727, 0.17779207229614258, 0.5277688503265381, -0.07014740258455276, 0.7515989542007446, 0.11483575403690338, 0.11667934060096741, 0.13216532766819, -0.07526101917028427, 0.06618665903806686, -0.2724727690219879, -0.18845979869365692, 0.29278135299682617, 0.040327198803424835, -0.3030904531478882, 0.3898434638977051, -0.12770211696624756, -0.25989171862602234, -0.43877696990966797, 0.07504814863204956, 0.0016000233590602875, -0.24473914504051208, -0.03760591894388199, -0.37500491738319397, 0.38391175866127014, -0.09530292451381683, 0.3992151618003845, -0.08024562895298004, -0.07314223051071167, 0.059200335294008255, 0.2196860909461975, -0.09824574738740921, 0.13422371447086334, -0.1730976402759552, -0.24974989891052246, -0.3993258476257324, 0.24614308774471283, 0.001210658112540841, 0.14361710846424103, -0.2927531599998474, 0.007916469126939774, 0.2831735610961914, 0.00874510407447815, 0.5200987458229065, -0.6470432877540588, -0.09738238155841827, 0.3353390395641327, 0.19218038022518158, -0.6571794152259827, -0.14138704538345337, -0.18767735362052917, 0.27711793780326843, 0.3285020589828491, -0.04784683883190155, -0.33222004771232605, -0.1513584554195404, 0.2680896520614624, 0.0485692098736763, -0.09909896552562714, 0.051520321518182755, -0.24175794422626495, -0.14331740140914917, -0.3353155255317688, -0.06578197330236435, -0.09969432651996613, 0.1351073682308197, 0.10023945569992065, 0.2149961143732071, 0.08130360394716263, 0.026218749582767487, -0.1448781043291092, 0.20501397550106049, 0.12260542064905167, 0.13836456835269928, -0.2560669779777527, 0.10371247678995132, 0.4806472659111023, -0.02658914215862751, -0.10802415013313293, 0.1851128190755844, -0.20795348286628723, 0.17263782024383545, -0.21509230136871338, 0.14550821483135223, 0.16041089594364166, -0.12064595520496368, -0.23936399817466736, 0.03647952526807785, -0.25429975986480713, -0.04646545648574829, 0.05284290760755539, 0.2087157815694809, 0.08100216835737228, -0.12740080058574677, -0.4575788676738739, 0.5609185695648193, 0.1885288804769516, -0.0729709267616272, 0.2990119755268097, -0.01566562056541443, -0.4306364953517914, 0.4052891135215759, 0.4329434037208557, 0.8635660409927368, 0.029916509985923767, 0.0139993354678154, 0.17142000794410706, 0.16713659465312958, 0.6254854798316956, -0.5466768741607666, 0.20916423201560974, -0.281289666891098, 0.31988757848739624, -0.0952548235654831, 0.06537748873233795, 0.3957323133945465, 0.14318522810935974, -0.22217051684856415, 0.3536060154438019, -0.017385154962539673, 0.07415876537561417, 0.05659671127796173, 0.37671729922294617, 0.12653328478336334, -0.3078528046607971, -0.11752915382385254, 0.12139658629894257, -0.18236207962036133, 0.2824687957763672, -0.2498217225074768, -0.012539304792881012, -0.014507737010717392, -0.2449241727590561, -0.41069960594177246, 0.0911932960152626, -0.22418349981307983, 0.46085530519485474, -0.3423028290271759, -0.45930570363998413, 0.2506960928440094, 0.22680909931659698, 0.23546141386032104, 0.36966606974601746, -0.3735501766204834, 0.20016779005527496, 0.015005182474851608, -0.23610655963420868, -0.07618836313486099, 0.04109736159443855, 0.38665616512298584, -0.19228029251098633, -0.3922678530216217, 0.2118113934993744, -0.17384064197540283, -0.09788397699594498, -0.2912865877151489, -0.3177189826965332, 0.3188322186470032, 0.25020185112953186, 0.12403450906276703, 0.17259103059768677, -0.08605629205703735, -0.13386225700378418, 0.11980459094047546, -0.28414225578308105, 0.010104240849614143, 0.00868891179561615, 0.08827590942382812, -0.08681836724281311, 0.03090888448059559, 0.2571510970592499, 0.1876174807548523, 0.017261352390050888, 0.5952088832855225, 0.37850505113601685, -0.2194751352071762, -0.26590627431869507, 0.1786082684993744, -0.22924365103244781, -0.06068930774927139, -0.26341670751571655, 0.15080605447292328, 0.09231793880462646, -0.05712684616446495, 0.10292032361030579, -0.015744030475616455, -0.14091041684150696, -0.007175832986831665, -0.26803749799728394, -0.020958686247467995, 0.02230006828904152, -0.1638096421957016, -0.0015578493475914001, 0.18830513954162598, 0.13324597477912903, 0.2853650152683258, -0.23602327704429626, -0.2791168689727783, -0.23883529007434845, -0.022319167852401733, 0.04532085359096527, 0.4137136936187744, -0.016639962792396545, -0.23604750633239746, -0.03873881697654724, 0.1452319622039795, -0.23010565340518951, -0.2452719807624817, -0.17255061864852905, -0.04683499038219452, 0.1290072202682495, -0.03978467732667923, -0.18745777010917664, 0.1358538419008255, -0.340359628200531, -0.2925049960613251, -0.20412948727607727, -0.13163772225379944, -0.1293071210384369, -0.024285420775413513, 0.22228829562664032, -0.1042090505361557, 0.34499114751815796, -0.2877993583679199, 0.08798322081565857, 0.034875597804784775, 0.2938317060470581, 0.0511711910367012, 0.2495485246181488, 0.41686102747917175, -0.176467627286911, -0.5602071285247803, 0.18304572999477386, -0.22114606201648712, 0.17438438534736633, 0.16332201659679413, -0.08280201256275177, -0.04801114648580551, 0.0299657192081213, -0.021473530679941177, 0.026401951909065247, -0.08198915421962738, -0.030233394354581833, 0.1355878710746765, 0.20455136895179749, -0.282722532749176, 0.12395714968442917, 0.42209798097610474, -0.03309762850403786, 0.09618964791297913, 0.026279211044311523, 0.2615511119365692, -0.053421951830387115, 0.17466285824775696, 0.04105685278773308, 0.01686435379087925, -0.04344771057367325, 0.26398909091949463, 0.09460753947496414, 0.08114725351333618, 0.11606082320213318, -0.1200716570019722, 0.046420011669397354, 0.1310724914073944, 0.37461334466934204, 0.10712627321481705, 0.0660352110862732, 0.1008155569434166, 0.21656857430934906, -0.22537630796432495, -0.1409865915775299, 0.3062991201877594, -0.1027754545211792, -0.02090812474489212, 0.022877167910337448, -0.06457258760929108, 0.07485686242580414, 0.14801691472530365, -0.06374989449977875, -0.31802263855934143, 0.13867276906967163, -0.07772723585367203, -0.18301385641098022, -0.6274291276931763, -0.2322813868522644, 0.05465109646320343, -0.01765858195722103, 0.08908896148204803, -0.08369715511798859, -0.10924747586250305, 0.20269775390625, -0.03502584993839264, -0.23063664138317108, 0.6797731518745422, -0.06164851039648056, 0.04469726234674454, -0.05517600476741791, 0.25208669900894165, -0.21323494613170624, -0.07124559581279755, -0.1705530881881714, -0.0018395930528640747, 0.15782535076141357, 0.21092861890792847, -0.47010427713394165, -0.1439928263425827, -0.0009007509797811508, 0.01894410140812397, -0.059177640825510025, 0.0006444081664085388, 0.06300108134746552, -0.03779701516032219, 0.29405084252357483, 0.10967114567756653, -0.08980168402194977, -0.19844317436218262, 0.21691656112670898, -0.0071817245334386826, -0.02003774233162403, -0.2484550178050995, 0.004518499597907066, 0.104212187230587, -0.10660849511623383, 0.11462442576885223, -0.5152723789215088, 0.04132644087076187, 0.25939980149269104, 0.38845953345298767, -0.10852837562561035, -0.22299621999263763, 0.08364375680685043, -0.3275434374809265, 0.5394179224967957, 0.08417317271232605, 0.1905834972858429, -0.11804782599210739, -0.29301464557647705, -0.2950970530509949, 0.00545337051153183, -0.16959445178508759, -0.3680245280265808, -0.120394766330719, 0.3059186041355133, 0.39280450344085693, 0.2445937842130661, 0.11688079684972763, -0.2535529136657715, -0.12980519235134125, 0.2650591731071472, -0.14386308193206787, -0.15893034636974335, -0.07328224182128906, 0.04924120008945465, -0.2251884490251541, -0.17736771702766418, 0.08320610970258713, -0.019431142136454582, 0.07522585242986679, -0.22762125730514526, -0.1473572552204132, 0.3186527192592621, -0.43477770686149597, 0.25957706570625305, 0.02589510940015316, 0.5472241044044495, 0.02913203090429306, -0.04227297008037567, -0.1655571162700653, 0.22283834218978882, -0.04500047490000725, 0.49142101407051086, 0.06162049621343613, 0.22850891947746277, -0.2155005782842636, -0.31885015964508057, -0.3452577590942383, 0.6317011117935181, 0.03209663927555084, -0.055099621415138245, -0.24908007681369781, -0.05867033451795578, -0.22949928045272827, 0.2923282980918884, -0.11924578249454498, 0.06629272550344467, -0.03665236383676529, 0.18673400580883026, -0.3581695556640625, -0.2367311716079712, 0.338419109582901, -0.42113247513771057, -0.33567994832992554, -0.18971459567546844, 0.06820904463529587, -0.14943334460258484, 0.292988657951355, -0.1057339459657669, -0.01535419374704361, 0.2634701132774353, -0.13522681593894958, -0.016723820939660072, 0.00014344137161970139, 0.059856630861759186, 0.1573980301618576, -0.2458987683057785, -0.40447181463241577, -0.19432911276817322, -0.0603257492184639, -0.3799315094947815, -0.2492925524711609 ]
https://github.com/huggingface/datasets/issues/1994
not being able to get wikipedia es language
Hi @dorost1234, so sorry, but looking at my files here, I figure out that I've preprocessed files using the HF/datasets for all the languages previously listed by me (Portuguese, Russian, French, Japanese, Chinese, and Turkish) except the Spanish (on my tests I've used the [wikicorpus](https://www.cs.upc.edu/~nlp/wikicorpus/) instead). Only with the Spanish Wikipedia's dump, I had the same `KeyError: '000nbsp'` problem already reported here https://github.com/huggingface/datasets/issues/577 So nowadays, even with access to a high resource machine, you couldn't be able to get Wikipedia's Spanish data using the HF/datasets :(
Hi I am trying to run a code with wikipedia of config 20200501.es, getting: Traceback (most recent call last): File "run_mlm_t5.py", line 608, in <module> main() File "run_mlm_t5.py", line 359, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/load.py", line 612, in load_dataset ignore_verifications=ignore_verifications, File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 527, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 1050, in _download_and_prepare "\n\t`{}`".format(usage_example) datasets.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` thanks @lhoestq for any suggestion/help
86
not being able to get wikipedia es language Hi I am trying to run a code with wikipedia of config 20200501.es, getting: Traceback (most recent call last): File "run_mlm_t5.py", line 608, in <module> main() File "run_mlm_t5.py", line 359, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/load.py", line 612, in load_dataset ignore_verifications=ignore_verifications, File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 527, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 1050, in _download_and_prepare "\n\t`{}`".format(usage_example) datasets.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` thanks @lhoestq for any suggestion/help Hi @dorost1234, so sorry, but looking at my files here, I figure out that I've preprocessed files using the HF/datasets for all the languages previously listed by me (Portuguese, Russian, French, Japanese, Chinese, and Turkish) except the Spanish (on my tests I've used the [wikicorpus](https://www.cs.upc.edu/~nlp/wikicorpus/) instead). Only with the Spanish Wikipedia's dump, I had the same `KeyError: '000nbsp'` problem already reported here https://github.com/huggingface/datasets/issues/577 So nowadays, even with access to a high resource machine, you couldn't be able to get Wikipedia's Spanish data using the HF/datasets :(
[ -0.34210702776908875, 0.047192737460136414, -0.1062646210193634, 0.06201731786131859, 0.200455442070961, 0.17774438858032227, 0.17687468230724335, 0.3401966989040375, 0.13733352720737457, 0.09211809188127518, 0.4105237126350403, 0.3346937596797943, 0.01600079983472824, 0.30764591693878174, 0.11132080107927322, -0.33708709478378296, 0.0556505061686039, 0.07522188127040863, -0.19471853971481323, -0.20017598569393158, -0.1320844292640686, 0.1037432998418808, -0.272518515586853, -0.07011571526527405, -0.14883551001548767, 0.10703832656145096, 0.12277784943580627, -0.019669391214847565, -0.1926020085811615, -0.1862010657787323, 0.06802234053611755, -0.036213550716638565, 0.22803360223770142, 0.10794307291507721, -0.00010841461335076019, 0.08063134551048279, 0.5717446208000183, -0.15838035941123962, -0.4590221345424652, -0.13032205402851105, -0.0813637375831604, -0.34625768661499023, 0.25645002722740173, -0.3715742528438568, -0.3347841799259186, -0.02563929185271263, 0.3187553584575653, -0.5857163071632385, 0.24128836393356323, 0.14796146750450134, 0.21826857328414917, -0.07421091943979263, 0.3515348434448242, -0.004884451162070036, 0.41059696674346924, 0.2186068594455719, -0.036049555987119675, -0.12430763244628906, 0.010662764310836792, 0.024964923039078712, 0.06061753258109093, 0.46184754371643066, 0.0472857728600502, -0.11424730718135834, 0.3039732873439789, -0.30949053168296814, 0.26568424701690674, -0.3731166124343872, 0.42296892404556274, 0.25413212180137634, 1.016162633895874, -0.11970198899507523, 0.09952057898044586, 0.10506624728441238, 0.004074035212397575, 0.12878115475177765, 0.24283650517463684, 0.200534850358963, -0.364273339509964, -0.07967951893806458, 0.11349298804998398, -0.28304383158683777, -0.33567821979522705, 0.3455578088760376, -0.1017289012670517, 0.5368952751159668, 0.10903774946928024, 0.1416432410478592, -0.15097543597221375, -0.18528872728347778, 0.07730131596326828, -0.0707799419760704, 0.10307736694812775, 0.35414132475852966, -0.0930444747209549, 0.1351345032453537, 0.24577945470809937, 0.17513269186019897, 0.04433980584144592, -0.09479646384716034, -0.27976471185684204, 0.19170108437538147, 0.36851975321769714, 0.046186767518520355, 0.022066326811909676, 0.03235286846756935, 0.35566288232803345, -0.1849304884672165, 0.20503908395767212, -0.030573179945349693, 0.007939431816339493, 0.06664755940437317, -0.05862106382846832, -0.3365757167339325, -0.6453832387924194, 0.2325165569782257, -0.0009588506072759628, -0.13675157725811005, 0.1923418790102005, 0.15872657299041748, -0.3540835678577423, -0.29986652731895447, -0.005748574621975422, 0.20172500610351562, 0.15220452845096588, 0.20511898398399353, 0.2833248972892761, -0.08672597259283066, -0.34171026945114136, -0.3844309151172638, -0.04664040729403496, 0.28296318650245667, -0.4593489170074463, 0.07805221527814865, 0.2093626707792282, 0.10678590834140778, 0.3750688433647156, -0.03551441431045532, -0.04399970918893814, 0.0425272062420845, 0.13077132403850555, 0.07883505523204803, -0.13859930634498596, 0.15947546064853668, 0.14901871979236603, 0.24700091779232025, 0.1999043971300125, -0.22246749699115753, -0.052218470722436905, 0.0016838796436786652, -0.09037352353334427, -0.19051845371723175, -0.18565547466278076, 0.1717609018087387, 0.12278009951114655, 0.10188576579093933, 0.04582645371556282, 0.3413797914981842, 0.1713998019695282, -0.22588807344436646, 0.1436648666858673, -0.007510095834732056, -0.1345750242471695, -0.09188740700483322, 0.3624590039253235, 0.37257224321365356, -0.6563615202903748, 0.10404619574546814, -0.0495634563267231, 0.18776771426200867, 0.14370021224021912, -0.2795006036758423, -0.28138765692710876, 0.42379847168922424, -0.09351996332406998, -0.10077232122421265, 0.30891817808151245, -0.2708931863307953, 0.08159076422452927, 0.19684277474880219, 0.06733463704586029, -0.2822608947753906, 0.237100750207901, -0.11235295981168747, 0.042296603322029114, 0.16245494782924652, 0.1141090989112854, 0.1663445234298706, 0.11646009981632233, -0.07022511214017868, -0.21967563033103943, -0.1222948208451271, -0.04315415024757385, 0.11727088689804077, 0.26654431223869324, -0.11958038061857224, 0.12490186840295792, 0.5266059041023254, 0.3261626958847046, -0.26325491070747375, 0.07642484456300735, 0.5432153940200806, -0.31229186058044434, 0.08065912127494812, 0.1918928474187851, -0.05547455698251724, -0.0499003604054451, 0.18091359734535217, -0.23919463157653809, 0.4039112627506256, 0.07905761897563934, -0.0053863525390625, -0.26680687069892883, -0.053028300404548645, -0.23602883517742157, -0.4283646047115326, 0.21149234473705292, 0.04665570706129074, -0.03551911190152168, 0.2530856728553772, 0.05293479934334755, -0.09003491699695587, -0.2782234251499176, -0.13893701136112213, -0.8122116923332214, 0.2934659719467163, -0.28607627749443054, -0.08008097857236862, -0.08756023645401001, 0.02025561034679413, 0.06395119428634644, -0.1236342266201973, -0.2867788076400757, 0.10091521590948105, 0.18732760846614838, 0.03720071539282799, -0.011949196457862854, 0.1644933670759201, 0.12203004956245422, -0.2648279368877411, 0.31667110323905945, 0.3054227828979492, 0.11993999779224396, 0.01796853542327881, -0.20191505551338196, 0.11080822348594666, 0.04773319140076637, 0.3355239927768707, 0.07278653234243393, 0.26858973503112793, 0.18518298864364624, 0.1680476814508438, -0.15628114342689514, -0.15916401147842407, 0.3021565079689026, 0.4226677715778351, 0.18189740180969238, -0.14570321142673492, 0.037038616836071014, 0.07721671462059021, 0.4515744745731354, 0.10484346747398376, -0.09222405403852463, -0.12637150287628174, -0.30541035532951355, -0.05947896093130112, 0.48334479331970215, -0.17912442982196808, -0.016023173928260803, 0.2791059911251068, -0.016197215765714645, 0.07711922377347946, -0.15118557214736938, -0.1175532266497612, 0.444623202085495, 0.0723261684179306, 0.5178590416908264, -0.025720663368701935, -0.12441686540842056, -0.1868187040090561, -0.19084137678146362, -0.28794243931770325, -0.12341431528329849, 0.28474098443984985, -0.3124692738056183, 0.2768905758857727, -0.41788339614868164, -0.5642529726028442, -0.2084289789199829, 0.4299701750278473, -0.34802454710006714, -0.34306928515434265, -0.06800823658704758, 0.07788591831922531, -0.02291087992489338, 0.25001901388168335, 0.10721041262149811, -0.03554241359233856, 0.23204468190670013, 0.007473541423678398, -0.22167739272117615, -0.5956388115882874, -0.43564024567604065, 0.03266336768865585, 0.28232625126838684, 0.03737519681453705, 0.1272294521331787, -0.15690559148788452, -0.06724166125059128, -0.14529530704021454, -0.4021960198879242, 0.341444194316864, -0.08698529005050659, -0.008463874459266663, 0.11665335297584534, 0.42721861600875854, -0.19598156213760376, -0.09505882859230042, 0.30980098247528076, 0.11520181596279144, -0.14764991402626038, -0.06926561892032623, -0.0846724733710289, -0.06236208602786064, -0.030823415145277977, -0.43830153346061707, -0.15058530867099762, -0.3273378014564514, -0.18199992179870605, 0.16898353397846222, 0.13323555886745453, 0.3523072600364685, 0.2645774483680725, 0.20914851129055023, 0.3283591866493225, 0.0954611748456955, -0.09655775874853134, -0.1593371480703354, 0.21701820194721222, -0.31857234239578247, -0.31674623489379883, 0.1040424257516861, -0.14131315052509308, 0.23050685226917267, 0.113540880382061, -0.14633040130138397, 0.06803210824728012, 0.11597315222024918, 0.02005505934357643, -0.10131993889808655, 0.3257162272930145, 0.7469016313552856, -0.012623775750398636, -0.001666523516178131, -0.09881142526865005, 0.04782586172223091, 0.03073795884847641, -0.4368049204349518, 0.34731796383857727, 0.17779207229614258, 0.5277688503265381, -0.07014740258455276, 0.7515989542007446, 0.11483575403690338, 0.11667934060096741, 0.13216532766819, -0.07526101917028427, 0.06618665903806686, -0.2724727690219879, -0.18845979869365692, 0.29278135299682617, 0.040327198803424835, -0.3030904531478882, 0.3898434638977051, -0.12770211696624756, -0.25989171862602234, -0.43877696990966797, 0.07504814863204956, 0.0016000233590602875, -0.24473914504051208, -0.03760591894388199, -0.37500491738319397, 0.38391175866127014, -0.09530292451381683, 0.3992151618003845, -0.08024562895298004, -0.07314223051071167, 0.059200335294008255, 0.2196860909461975, -0.09824574738740921, 0.13422371447086334, -0.1730976402759552, -0.24974989891052246, -0.3993258476257324, 0.24614308774471283, 0.001210658112540841, 0.14361710846424103, -0.2927531599998474, 0.007916469126939774, 0.2831735610961914, 0.00874510407447815, 0.5200987458229065, -0.6470432877540588, -0.09738238155841827, 0.3353390395641327, 0.19218038022518158, -0.6571794152259827, -0.14138704538345337, -0.18767735362052917, 0.27711793780326843, 0.3285020589828491, -0.04784683883190155, -0.33222004771232605, -0.1513584554195404, 0.2680896520614624, 0.0485692098736763, -0.09909896552562714, 0.051520321518182755, -0.24175794422626495, -0.14331740140914917, -0.3353155255317688, -0.06578197330236435, -0.09969432651996613, 0.1351073682308197, 0.10023945569992065, 0.2149961143732071, 0.08130360394716263, 0.026218749582767487, -0.1448781043291092, 0.20501397550106049, 0.12260542064905167, 0.13836456835269928, -0.2560669779777527, 0.10371247678995132, 0.4806472659111023, -0.02658914215862751, -0.10802415013313293, 0.1851128190755844, -0.20795348286628723, 0.17263782024383545, -0.21509230136871338, 0.14550821483135223, 0.16041089594364166, -0.12064595520496368, -0.23936399817466736, 0.03647952526807785, -0.25429975986480713, -0.04646545648574829, 0.05284290760755539, 0.2087157815694809, 0.08100216835737228, -0.12740080058574677, -0.4575788676738739, 0.5609185695648193, 0.1885288804769516, -0.0729709267616272, 0.2990119755268097, -0.01566562056541443, -0.4306364953517914, 0.4052891135215759, 0.4329434037208557, 0.8635660409927368, 0.029916509985923767, 0.0139993354678154, 0.17142000794410706, 0.16713659465312958, 0.6254854798316956, -0.5466768741607666, 0.20916423201560974, -0.281289666891098, 0.31988757848739624, -0.0952548235654831, 0.06537748873233795, 0.3957323133945465, 0.14318522810935974, -0.22217051684856415, 0.3536060154438019, -0.017385154962539673, 0.07415876537561417, 0.05659671127796173, 0.37671729922294617, 0.12653328478336334, -0.3078528046607971, -0.11752915382385254, 0.12139658629894257, -0.18236207962036133, 0.2824687957763672, -0.2498217225074768, -0.012539304792881012, -0.014507737010717392, -0.2449241727590561, -0.41069960594177246, 0.0911932960152626, -0.22418349981307983, 0.46085530519485474, -0.3423028290271759, -0.45930570363998413, 0.2506960928440094, 0.22680909931659698, 0.23546141386032104, 0.36966606974601746, -0.3735501766204834, 0.20016779005527496, 0.015005182474851608, -0.23610655963420868, -0.07618836313486099, 0.04109736159443855, 0.38665616512298584, -0.19228029251098633, -0.3922678530216217, 0.2118113934993744, -0.17384064197540283, -0.09788397699594498, -0.2912865877151489, -0.3177189826965332, 0.3188322186470032, 0.25020185112953186, 0.12403450906276703, 0.17259103059768677, -0.08605629205703735, -0.13386225700378418, 0.11980459094047546, -0.28414225578308105, 0.010104240849614143, 0.00868891179561615, 0.08827590942382812, -0.08681836724281311, 0.03090888448059559, 0.2571510970592499, 0.1876174807548523, 0.017261352390050888, 0.5952088832855225, 0.37850505113601685, -0.2194751352071762, -0.26590627431869507, 0.1786082684993744, -0.22924365103244781, -0.06068930774927139, -0.26341670751571655, 0.15080605447292328, 0.09231793880462646, -0.05712684616446495, 0.10292032361030579, -0.015744030475616455, -0.14091041684150696, -0.007175832986831665, -0.26803749799728394, -0.020958686247467995, 0.02230006828904152, -0.1638096421957016, -0.0015578493475914001, 0.18830513954162598, 0.13324597477912903, 0.2853650152683258, -0.23602327704429626, -0.2791168689727783, -0.23883529007434845, -0.022319167852401733, 0.04532085359096527, 0.4137136936187744, -0.016639962792396545, -0.23604750633239746, -0.03873881697654724, 0.1452319622039795, -0.23010565340518951, -0.2452719807624817, -0.17255061864852905, -0.04683499038219452, 0.1290072202682495, -0.03978467732667923, -0.18745777010917664, 0.1358538419008255, -0.340359628200531, -0.2925049960613251, -0.20412948727607727, -0.13163772225379944, -0.1293071210384369, -0.024285420775413513, 0.22228829562664032, -0.1042090505361557, 0.34499114751815796, -0.2877993583679199, 0.08798322081565857, 0.034875597804784775, 0.2938317060470581, 0.0511711910367012, 0.2495485246181488, 0.41686102747917175, -0.176467627286911, -0.5602071285247803, 0.18304572999477386, -0.22114606201648712, 0.17438438534736633, 0.16332201659679413, -0.08280201256275177, -0.04801114648580551, 0.0299657192081213, -0.021473530679941177, 0.026401951909065247, -0.08198915421962738, -0.030233394354581833, 0.1355878710746765, 0.20455136895179749, -0.282722532749176, 0.12395714968442917, 0.42209798097610474, -0.03309762850403786, 0.09618964791297913, 0.026279211044311523, 0.2615511119365692, -0.053421951830387115, 0.17466285824775696, 0.04105685278773308, 0.01686435379087925, -0.04344771057367325, 0.26398909091949463, 0.09460753947496414, 0.08114725351333618, 0.11606082320213318, -0.1200716570019722, 0.046420011669397354, 0.1310724914073944, 0.37461334466934204, 0.10712627321481705, 0.0660352110862732, 0.1008155569434166, 0.21656857430934906, -0.22537630796432495, -0.1409865915775299, 0.3062991201877594, -0.1027754545211792, -0.02090812474489212, 0.022877167910337448, -0.06457258760929108, 0.07485686242580414, 0.14801691472530365, -0.06374989449977875, -0.31802263855934143, 0.13867276906967163, -0.07772723585367203, -0.18301385641098022, -0.6274291276931763, -0.2322813868522644, 0.05465109646320343, -0.01765858195722103, 0.08908896148204803, -0.08369715511798859, -0.10924747586250305, 0.20269775390625, -0.03502584993839264, -0.23063664138317108, 0.6797731518745422, -0.06164851039648056, 0.04469726234674454, -0.05517600476741791, 0.25208669900894165, -0.21323494613170624, -0.07124559581279755, -0.1705530881881714, -0.0018395930528640747, 0.15782535076141357, 0.21092861890792847, -0.47010427713394165, -0.1439928263425827, -0.0009007509797811508, 0.01894410140812397, -0.059177640825510025, 0.0006444081664085388, 0.06300108134746552, -0.03779701516032219, 0.29405084252357483, 0.10967114567756653, -0.08980168402194977, -0.19844317436218262, 0.21691656112670898, -0.0071817245334386826, -0.02003774233162403, -0.2484550178050995, 0.004518499597907066, 0.104212187230587, -0.10660849511623383, 0.11462442576885223, -0.5152723789215088, 0.04132644087076187, 0.25939980149269104, 0.38845953345298767, -0.10852837562561035, -0.22299621999263763, 0.08364375680685043, -0.3275434374809265, 0.5394179224967957, 0.08417317271232605, 0.1905834972858429, -0.11804782599210739, -0.29301464557647705, -0.2950970530509949, 0.00545337051153183, -0.16959445178508759, -0.3680245280265808, -0.120394766330719, 0.3059186041355133, 0.39280450344085693, 0.2445937842130661, 0.11688079684972763, -0.2535529136657715, -0.12980519235134125, 0.2650591731071472, -0.14386308193206787, -0.15893034636974335, -0.07328224182128906, 0.04924120008945465, -0.2251884490251541, -0.17736771702766418, 0.08320610970258713, -0.019431142136454582, 0.07522585242986679, -0.22762125730514526, -0.1473572552204132, 0.3186527192592621, -0.43477770686149597, 0.25957706570625305, 0.02589510940015316, 0.5472241044044495, 0.02913203090429306, -0.04227297008037567, -0.1655571162700653, 0.22283834218978882, -0.04500047490000725, 0.49142101407051086, 0.06162049621343613, 0.22850891947746277, -0.2155005782842636, -0.31885015964508057, -0.3452577590942383, 0.6317011117935181, 0.03209663927555084, -0.055099621415138245, -0.24908007681369781, -0.05867033451795578, -0.22949928045272827, 0.2923282980918884, -0.11924578249454498, 0.06629272550344467, -0.03665236383676529, 0.18673400580883026, -0.3581695556640625, -0.2367311716079712, 0.338419109582901, -0.42113247513771057, -0.33567994832992554, -0.18971459567546844, 0.06820904463529587, -0.14943334460258484, 0.292988657951355, -0.1057339459657669, -0.01535419374704361, 0.2634701132774353, -0.13522681593894958, -0.016723820939660072, 0.00014344137161970139, 0.059856630861759186, 0.1573980301618576, -0.2458987683057785, -0.40447181463241577, -0.19432911276817322, -0.0603257492184639, -0.3799315094947815, -0.2492925524711609 ]
https://github.com/huggingface/datasets/issues/1994
not being able to get wikipedia es language
Thanks a lot for the information and help. This would be great to have these datasets. @lhoestq <https://github.com/lhoestq> Do you know a way I could get smaller amount of these data like 1 GBtype of each language to deal with computatioanl requirements? thanks On Sat, Mar 6, 2021 at 5:36 PM Jonatas Grosman <notifications@github.com> wrote: > Hi @dorost1234 <https://github.com/dorost1234>, so sorry, but looking at > my files here, I figure out that I've preprocessed files using the > HF/datasets for all the languages previously listed by me (Portuguese, > Russian, French, Japanese, Chinese, and Turkish) except the Spanish (on my > tests I've used the wikicorpus <https://www.cs.upc.edu/~nlp/wikicorpus/> > instead). > > Only with the Spanish Wikipedia's dump, I had the same KeyError: '000nbsp' > problem already reported here #577 > <https://github.com/huggingface/datasets/issues/577> > > So nowadays, even with access to a high resource machine, you couldn't be > able to get Wikipedia's Spanish data using the HF/datasets :( > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/1994#issuecomment-791985546>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AS37NMWMO7WOHWLOROPD6Q3TCJKXPANCNFSM4YUZIF4A> > . >
Hi I am trying to run a code with wikipedia of config 20200501.es, getting: Traceback (most recent call last): File "run_mlm_t5.py", line 608, in <module> main() File "run_mlm_t5.py", line 359, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/load.py", line 612, in load_dataset ignore_verifications=ignore_verifications, File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 527, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 1050, in _download_and_prepare "\n\t`{}`".format(usage_example) datasets.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` thanks @lhoestq for any suggestion/help
189
not being able to get wikipedia es language Hi I am trying to run a code with wikipedia of config 20200501.es, getting: Traceback (most recent call last): File "run_mlm_t5.py", line 608, in <module> main() File "run_mlm_t5.py", line 359, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/load.py", line 612, in load_dataset ignore_verifications=ignore_verifications, File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 527, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 1050, in _download_and_prepare "\n\t`{}`".format(usage_example) datasets.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` thanks @lhoestq for any suggestion/help Thanks a lot for the information and help. This would be great to have these datasets. @lhoestq <https://github.com/lhoestq> Do you know a way I could get smaller amount of these data like 1 GBtype of each language to deal with computatioanl requirements? thanks On Sat, Mar 6, 2021 at 5:36 PM Jonatas Grosman <notifications@github.com> wrote: > Hi @dorost1234 <https://github.com/dorost1234>, so sorry, but looking at > my files here, I figure out that I've preprocessed files using the > HF/datasets for all the languages previously listed by me (Portuguese, > Russian, French, Japanese, Chinese, and Turkish) except the Spanish (on my > tests I've used the wikicorpus <https://www.cs.upc.edu/~nlp/wikicorpus/> > instead). > > Only with the Spanish Wikipedia's dump, I had the same KeyError: '000nbsp' > problem already reported here #577 > <https://github.com/huggingface/datasets/issues/577> > > So nowadays, even with access to a high resource machine, you couldn't be > able to get Wikipedia's Spanish data using the HF/datasets :( > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/1994#issuecomment-791985546>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AS37NMWMO7WOHWLOROPD6Q3TCJKXPANCNFSM4YUZIF4A> > . >
[ -0.34210702776908875, 0.047192737460136414, -0.1062646210193634, 0.06201731786131859, 0.200455442070961, 0.17774438858032227, 0.17687468230724335, 0.3401966989040375, 0.13733352720737457, 0.09211809188127518, 0.4105237126350403, 0.3346937596797943, 0.01600079983472824, 0.30764591693878174, 0.11132080107927322, -0.33708709478378296, 0.0556505061686039, 0.07522188127040863, -0.19471853971481323, -0.20017598569393158, -0.1320844292640686, 0.1037432998418808, -0.272518515586853, -0.07011571526527405, -0.14883551001548767, 0.10703832656145096, 0.12277784943580627, -0.019669391214847565, -0.1926020085811615, -0.1862010657787323, 0.06802234053611755, -0.036213550716638565, 0.22803360223770142, 0.10794307291507721, -0.00010841461335076019, 0.08063134551048279, 0.5717446208000183, -0.15838035941123962, -0.4590221345424652, -0.13032205402851105, -0.0813637375831604, -0.34625768661499023, 0.25645002722740173, -0.3715742528438568, -0.3347841799259186, -0.02563929185271263, 0.3187553584575653, -0.5857163071632385, 0.24128836393356323, 0.14796146750450134, 0.21826857328414917, -0.07421091943979263, 0.3515348434448242, -0.004884451162070036, 0.41059696674346924, 0.2186068594455719, -0.036049555987119675, -0.12430763244628906, 0.010662764310836792, 0.024964923039078712, 0.06061753258109093, 0.46184754371643066, 0.0472857728600502, -0.11424730718135834, 0.3039732873439789, -0.30949053168296814, 0.26568424701690674, -0.3731166124343872, 0.42296892404556274, 0.25413212180137634, 1.016162633895874, -0.11970198899507523, 0.09952057898044586, 0.10506624728441238, 0.004074035212397575, 0.12878115475177765, 0.24283650517463684, 0.200534850358963, -0.364273339509964, -0.07967951893806458, 0.11349298804998398, -0.28304383158683777, -0.33567821979522705, 0.3455578088760376, -0.1017289012670517, 0.5368952751159668, 0.10903774946928024, 0.1416432410478592, -0.15097543597221375, -0.18528872728347778, 0.07730131596326828, -0.0707799419760704, 0.10307736694812775, 0.35414132475852966, -0.0930444747209549, 0.1351345032453537, 0.24577945470809937, 0.17513269186019897, 0.04433980584144592, -0.09479646384716034, -0.27976471185684204, 0.19170108437538147, 0.36851975321769714, 0.046186767518520355, 0.022066326811909676, 0.03235286846756935, 0.35566288232803345, -0.1849304884672165, 0.20503908395767212, -0.030573179945349693, 0.007939431816339493, 0.06664755940437317, -0.05862106382846832, -0.3365757167339325, -0.6453832387924194, 0.2325165569782257, -0.0009588506072759628, -0.13675157725811005, 0.1923418790102005, 0.15872657299041748, -0.3540835678577423, -0.29986652731895447, -0.005748574621975422, 0.20172500610351562, 0.15220452845096588, 0.20511898398399353, 0.2833248972892761, -0.08672597259283066, -0.34171026945114136, -0.3844309151172638, -0.04664040729403496, 0.28296318650245667, -0.4593489170074463, 0.07805221527814865, 0.2093626707792282, 0.10678590834140778, 0.3750688433647156, -0.03551441431045532, -0.04399970918893814, 0.0425272062420845, 0.13077132403850555, 0.07883505523204803, -0.13859930634498596, 0.15947546064853668, 0.14901871979236603, 0.24700091779232025, 0.1999043971300125, -0.22246749699115753, -0.052218470722436905, 0.0016838796436786652, -0.09037352353334427, -0.19051845371723175, -0.18565547466278076, 0.1717609018087387, 0.12278009951114655, 0.10188576579093933, 0.04582645371556282, 0.3413797914981842, 0.1713998019695282, -0.22588807344436646, 0.1436648666858673, -0.007510095834732056, -0.1345750242471695, -0.09188740700483322, 0.3624590039253235, 0.37257224321365356, -0.6563615202903748, 0.10404619574546814, -0.0495634563267231, 0.18776771426200867, 0.14370021224021912, -0.2795006036758423, -0.28138765692710876, 0.42379847168922424, -0.09351996332406998, -0.10077232122421265, 0.30891817808151245, -0.2708931863307953, 0.08159076422452927, 0.19684277474880219, 0.06733463704586029, -0.2822608947753906, 0.237100750207901, -0.11235295981168747, 0.042296603322029114, 0.16245494782924652, 0.1141090989112854, 0.1663445234298706, 0.11646009981632233, -0.07022511214017868, -0.21967563033103943, -0.1222948208451271, -0.04315415024757385, 0.11727088689804077, 0.26654431223869324, -0.11958038061857224, 0.12490186840295792, 0.5266059041023254, 0.3261626958847046, -0.26325491070747375, 0.07642484456300735, 0.5432153940200806, -0.31229186058044434, 0.08065912127494812, 0.1918928474187851, -0.05547455698251724, -0.0499003604054451, 0.18091359734535217, -0.23919463157653809, 0.4039112627506256, 0.07905761897563934, -0.0053863525390625, -0.26680687069892883, -0.053028300404548645, -0.23602883517742157, -0.4283646047115326, 0.21149234473705292, 0.04665570706129074, -0.03551911190152168, 0.2530856728553772, 0.05293479934334755, -0.09003491699695587, -0.2782234251499176, -0.13893701136112213, -0.8122116923332214, 0.2934659719467163, -0.28607627749443054, -0.08008097857236862, -0.08756023645401001, 0.02025561034679413, 0.06395119428634644, -0.1236342266201973, -0.2867788076400757, 0.10091521590948105, 0.18732760846614838, 0.03720071539282799, -0.011949196457862854, 0.1644933670759201, 0.12203004956245422, -0.2648279368877411, 0.31667110323905945, 0.3054227828979492, 0.11993999779224396, 0.01796853542327881, -0.20191505551338196, 0.11080822348594666, 0.04773319140076637, 0.3355239927768707, 0.07278653234243393, 0.26858973503112793, 0.18518298864364624, 0.1680476814508438, -0.15628114342689514, -0.15916401147842407, 0.3021565079689026, 0.4226677715778351, 0.18189740180969238, -0.14570321142673492, 0.037038616836071014, 0.07721671462059021, 0.4515744745731354, 0.10484346747398376, -0.09222405403852463, -0.12637150287628174, -0.30541035532951355, -0.05947896093130112, 0.48334479331970215, -0.17912442982196808, -0.016023173928260803, 0.2791059911251068, -0.016197215765714645, 0.07711922377347946, -0.15118557214736938, -0.1175532266497612, 0.444623202085495, 0.0723261684179306, 0.5178590416908264, -0.025720663368701935, -0.12441686540842056, -0.1868187040090561, -0.19084137678146362, -0.28794243931770325, -0.12341431528329849, 0.28474098443984985, -0.3124692738056183, 0.2768905758857727, -0.41788339614868164, -0.5642529726028442, -0.2084289789199829, 0.4299701750278473, -0.34802454710006714, -0.34306928515434265, -0.06800823658704758, 0.07788591831922531, -0.02291087992489338, 0.25001901388168335, 0.10721041262149811, -0.03554241359233856, 0.23204468190670013, 0.007473541423678398, -0.22167739272117615, -0.5956388115882874, -0.43564024567604065, 0.03266336768865585, 0.28232625126838684, 0.03737519681453705, 0.1272294521331787, -0.15690559148788452, -0.06724166125059128, -0.14529530704021454, -0.4021960198879242, 0.341444194316864, -0.08698529005050659, -0.008463874459266663, 0.11665335297584534, 0.42721861600875854, -0.19598156213760376, -0.09505882859230042, 0.30980098247528076, 0.11520181596279144, -0.14764991402626038, -0.06926561892032623, -0.0846724733710289, -0.06236208602786064, -0.030823415145277977, -0.43830153346061707, -0.15058530867099762, -0.3273378014564514, -0.18199992179870605, 0.16898353397846222, 0.13323555886745453, 0.3523072600364685, 0.2645774483680725, 0.20914851129055023, 0.3283591866493225, 0.0954611748456955, -0.09655775874853134, -0.1593371480703354, 0.21701820194721222, -0.31857234239578247, -0.31674623489379883, 0.1040424257516861, -0.14131315052509308, 0.23050685226917267, 0.113540880382061, -0.14633040130138397, 0.06803210824728012, 0.11597315222024918, 0.02005505934357643, -0.10131993889808655, 0.3257162272930145, 0.7469016313552856, -0.012623775750398636, -0.001666523516178131, -0.09881142526865005, 0.04782586172223091, 0.03073795884847641, -0.4368049204349518, 0.34731796383857727, 0.17779207229614258, 0.5277688503265381, -0.07014740258455276, 0.7515989542007446, 0.11483575403690338, 0.11667934060096741, 0.13216532766819, -0.07526101917028427, 0.06618665903806686, -0.2724727690219879, -0.18845979869365692, 0.29278135299682617, 0.040327198803424835, -0.3030904531478882, 0.3898434638977051, -0.12770211696624756, -0.25989171862602234, -0.43877696990966797, 0.07504814863204956, 0.0016000233590602875, -0.24473914504051208, -0.03760591894388199, -0.37500491738319397, 0.38391175866127014, -0.09530292451381683, 0.3992151618003845, -0.08024562895298004, -0.07314223051071167, 0.059200335294008255, 0.2196860909461975, -0.09824574738740921, 0.13422371447086334, -0.1730976402759552, -0.24974989891052246, -0.3993258476257324, 0.24614308774471283, 0.001210658112540841, 0.14361710846424103, -0.2927531599998474, 0.007916469126939774, 0.2831735610961914, 0.00874510407447815, 0.5200987458229065, -0.6470432877540588, -0.09738238155841827, 0.3353390395641327, 0.19218038022518158, -0.6571794152259827, -0.14138704538345337, -0.18767735362052917, 0.27711793780326843, 0.3285020589828491, -0.04784683883190155, -0.33222004771232605, -0.1513584554195404, 0.2680896520614624, 0.0485692098736763, -0.09909896552562714, 0.051520321518182755, -0.24175794422626495, -0.14331740140914917, -0.3353155255317688, -0.06578197330236435, -0.09969432651996613, 0.1351073682308197, 0.10023945569992065, 0.2149961143732071, 0.08130360394716263, 0.026218749582767487, -0.1448781043291092, 0.20501397550106049, 0.12260542064905167, 0.13836456835269928, -0.2560669779777527, 0.10371247678995132, 0.4806472659111023, -0.02658914215862751, -0.10802415013313293, 0.1851128190755844, -0.20795348286628723, 0.17263782024383545, -0.21509230136871338, 0.14550821483135223, 0.16041089594364166, -0.12064595520496368, -0.23936399817466736, 0.03647952526807785, -0.25429975986480713, -0.04646545648574829, 0.05284290760755539, 0.2087157815694809, 0.08100216835737228, -0.12740080058574677, -0.4575788676738739, 0.5609185695648193, 0.1885288804769516, -0.0729709267616272, 0.2990119755268097, -0.01566562056541443, -0.4306364953517914, 0.4052891135215759, 0.4329434037208557, 0.8635660409927368, 0.029916509985923767, 0.0139993354678154, 0.17142000794410706, 0.16713659465312958, 0.6254854798316956, -0.5466768741607666, 0.20916423201560974, -0.281289666891098, 0.31988757848739624, -0.0952548235654831, 0.06537748873233795, 0.3957323133945465, 0.14318522810935974, -0.22217051684856415, 0.3536060154438019, -0.017385154962539673, 0.07415876537561417, 0.05659671127796173, 0.37671729922294617, 0.12653328478336334, -0.3078528046607971, -0.11752915382385254, 0.12139658629894257, -0.18236207962036133, 0.2824687957763672, -0.2498217225074768, -0.012539304792881012, -0.014507737010717392, -0.2449241727590561, -0.41069960594177246, 0.0911932960152626, -0.22418349981307983, 0.46085530519485474, -0.3423028290271759, -0.45930570363998413, 0.2506960928440094, 0.22680909931659698, 0.23546141386032104, 0.36966606974601746, -0.3735501766204834, 0.20016779005527496, 0.015005182474851608, -0.23610655963420868, -0.07618836313486099, 0.04109736159443855, 0.38665616512298584, -0.19228029251098633, -0.3922678530216217, 0.2118113934993744, -0.17384064197540283, -0.09788397699594498, -0.2912865877151489, -0.3177189826965332, 0.3188322186470032, 0.25020185112953186, 0.12403450906276703, 0.17259103059768677, -0.08605629205703735, -0.13386225700378418, 0.11980459094047546, -0.28414225578308105, 0.010104240849614143, 0.00868891179561615, 0.08827590942382812, -0.08681836724281311, 0.03090888448059559, 0.2571510970592499, 0.1876174807548523, 0.017261352390050888, 0.5952088832855225, 0.37850505113601685, -0.2194751352071762, -0.26590627431869507, 0.1786082684993744, -0.22924365103244781, -0.06068930774927139, -0.26341670751571655, 0.15080605447292328, 0.09231793880462646, -0.05712684616446495, 0.10292032361030579, -0.015744030475616455, -0.14091041684150696, -0.007175832986831665, -0.26803749799728394, -0.020958686247467995, 0.02230006828904152, -0.1638096421957016, -0.0015578493475914001, 0.18830513954162598, 0.13324597477912903, 0.2853650152683258, -0.23602327704429626, -0.2791168689727783, -0.23883529007434845, -0.022319167852401733, 0.04532085359096527, 0.4137136936187744, -0.016639962792396545, -0.23604750633239746, -0.03873881697654724, 0.1452319622039795, -0.23010565340518951, -0.2452719807624817, -0.17255061864852905, -0.04683499038219452, 0.1290072202682495, -0.03978467732667923, -0.18745777010917664, 0.1358538419008255, -0.340359628200531, -0.2925049960613251, -0.20412948727607727, -0.13163772225379944, -0.1293071210384369, -0.024285420775413513, 0.22228829562664032, -0.1042090505361557, 0.34499114751815796, -0.2877993583679199, 0.08798322081565857, 0.034875597804784775, 0.2938317060470581, 0.0511711910367012, 0.2495485246181488, 0.41686102747917175, -0.176467627286911, -0.5602071285247803, 0.18304572999477386, -0.22114606201648712, 0.17438438534736633, 0.16332201659679413, -0.08280201256275177, -0.04801114648580551, 0.0299657192081213, -0.021473530679941177, 0.026401951909065247, -0.08198915421962738, -0.030233394354581833, 0.1355878710746765, 0.20455136895179749, -0.282722532749176, 0.12395714968442917, 0.42209798097610474, -0.03309762850403786, 0.09618964791297913, 0.026279211044311523, 0.2615511119365692, -0.053421951830387115, 0.17466285824775696, 0.04105685278773308, 0.01686435379087925, -0.04344771057367325, 0.26398909091949463, 0.09460753947496414, 0.08114725351333618, 0.11606082320213318, -0.1200716570019722, 0.046420011669397354, 0.1310724914073944, 0.37461334466934204, 0.10712627321481705, 0.0660352110862732, 0.1008155569434166, 0.21656857430934906, -0.22537630796432495, -0.1409865915775299, 0.3062991201877594, -0.1027754545211792, -0.02090812474489212, 0.022877167910337448, -0.06457258760929108, 0.07485686242580414, 0.14801691472530365, -0.06374989449977875, -0.31802263855934143, 0.13867276906967163, -0.07772723585367203, -0.18301385641098022, -0.6274291276931763, -0.2322813868522644, 0.05465109646320343, -0.01765858195722103, 0.08908896148204803, -0.08369715511798859, -0.10924747586250305, 0.20269775390625, -0.03502584993839264, -0.23063664138317108, 0.6797731518745422, -0.06164851039648056, 0.04469726234674454, -0.05517600476741791, 0.25208669900894165, -0.21323494613170624, -0.07124559581279755, -0.1705530881881714, -0.0018395930528640747, 0.15782535076141357, 0.21092861890792847, -0.47010427713394165, -0.1439928263425827, -0.0009007509797811508, 0.01894410140812397, -0.059177640825510025, 0.0006444081664085388, 0.06300108134746552, -0.03779701516032219, 0.29405084252357483, 0.10967114567756653, -0.08980168402194977, -0.19844317436218262, 0.21691656112670898, -0.0071817245334386826, -0.02003774233162403, -0.2484550178050995, 0.004518499597907066, 0.104212187230587, -0.10660849511623383, 0.11462442576885223, -0.5152723789215088, 0.04132644087076187, 0.25939980149269104, 0.38845953345298767, -0.10852837562561035, -0.22299621999263763, 0.08364375680685043, -0.3275434374809265, 0.5394179224967957, 0.08417317271232605, 0.1905834972858429, -0.11804782599210739, -0.29301464557647705, -0.2950970530509949, 0.00545337051153183, -0.16959445178508759, -0.3680245280265808, -0.120394766330719, 0.3059186041355133, 0.39280450344085693, 0.2445937842130661, 0.11688079684972763, -0.2535529136657715, -0.12980519235134125, 0.2650591731071472, -0.14386308193206787, -0.15893034636974335, -0.07328224182128906, 0.04924120008945465, -0.2251884490251541, -0.17736771702766418, 0.08320610970258713, -0.019431142136454582, 0.07522585242986679, -0.22762125730514526, -0.1473572552204132, 0.3186527192592621, -0.43477770686149597, 0.25957706570625305, 0.02589510940015316, 0.5472241044044495, 0.02913203090429306, -0.04227297008037567, -0.1655571162700653, 0.22283834218978882, -0.04500047490000725, 0.49142101407051086, 0.06162049621343613, 0.22850891947746277, -0.2155005782842636, -0.31885015964508057, -0.3452577590942383, 0.6317011117935181, 0.03209663927555084, -0.055099621415138245, -0.24908007681369781, -0.05867033451795578, -0.22949928045272827, 0.2923282980918884, -0.11924578249454498, 0.06629272550344467, -0.03665236383676529, 0.18673400580883026, -0.3581695556640625, -0.2367311716079712, 0.338419109582901, -0.42113247513771057, -0.33567994832992554, -0.18971459567546844, 0.06820904463529587, -0.14943334460258484, 0.292988657951355, -0.1057339459657669, -0.01535419374704361, 0.2634701132774353, -0.13522681593894958, -0.016723820939660072, 0.00014344137161970139, 0.059856630861759186, 0.1573980301618576, -0.2458987683057785, -0.40447181463241577, -0.19432911276817322, -0.0603257492184639, -0.3799315094947815, -0.2492925524711609 ]
https://github.com/huggingface/datasets/issues/1994
not being able to get wikipedia es language
Hi ! As mentioned above the Spanish configuration have parsing issues from `mwparserfromhell`. I haven't tested with the latest `mwparserfromhell` >=0.6 though. Which version of `mwparserfromhell` are you using ? > @lhoestq Could you help me to upload these preprocessed datasets to Huggingface's repositories? To be more precise, I've built datasets from the following languages using the 20201201 dumps: Spanish, Portuguese, Russian, French, Japanese, Chinese, and Turkish. Process these datasets have high costs that most of the community can't afford. I think these preprocessed datasets I have could be helpful for someone without access to high-resource machines to process Wikipedia's dumps like @dorost1234 That would be awesome ! Feel free to ping me on slack so we can put the processed wikipedia files on google storage with the other ones we've already preprocessed. > Do you know a way I could get smaller amount of these data like 1 GBtype of each language to deal with computatioanl requirements? thanks I'd suggest to copy the [wikipedia.py](https://github.com/huggingface/datasets/blob/master/datasets/wikipedia/wikipedia.py) to a new script `custom_wikipedia.py` and modify it to only download and process only a subset of the raw data files. You can for example replace [this line](https://github.com/huggingface/datasets/blob/64e59fc45ca2134218b3e42e83fddddbe840ff74/datasets/wikipedia/wikipedia.py#L446) by: ```python if total_bytes >= (1 << 30): # stop if the total amount of data is >= 1GB break else: xml_urls.append(_base_url(lang) + fname) ``` Then you can load your custom wikipedia dataset with ```python load_dataset("path/to/my/custom_wikipedia.py", f"{date}.{language}") ```
Hi I am trying to run a code with wikipedia of config 20200501.es, getting: Traceback (most recent call last): File "run_mlm_t5.py", line 608, in <module> main() File "run_mlm_t5.py", line 359, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/load.py", line 612, in load_dataset ignore_verifications=ignore_verifications, File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 527, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 1050, in _download_and_prepare "\n\t`{}`".format(usage_example) datasets.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` thanks @lhoestq for any suggestion/help
231
not being able to get wikipedia es language Hi I am trying to run a code with wikipedia of config 20200501.es, getting: Traceback (most recent call last): File "run_mlm_t5.py", line 608, in <module> main() File "run_mlm_t5.py", line 359, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/load.py", line 612, in load_dataset ignore_verifications=ignore_verifications, File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 527, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 1050, in _download_and_prepare "\n\t`{}`".format(usage_example) datasets.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` thanks @lhoestq for any suggestion/help Hi ! As mentioned above the Spanish configuration have parsing issues from `mwparserfromhell`. I haven't tested with the latest `mwparserfromhell` >=0.6 though. Which version of `mwparserfromhell` are you using ? > @lhoestq Could you help me to upload these preprocessed datasets to Huggingface's repositories? To be more precise, I've built datasets from the following languages using the 20201201 dumps: Spanish, Portuguese, Russian, French, Japanese, Chinese, and Turkish. Process these datasets have high costs that most of the community can't afford. I think these preprocessed datasets I have could be helpful for someone without access to high-resource machines to process Wikipedia's dumps like @dorost1234 That would be awesome ! Feel free to ping me on slack so we can put the processed wikipedia files on google storage with the other ones we've already preprocessed. > Do you know a way I could get smaller amount of these data like 1 GBtype of each language to deal with computatioanl requirements? thanks I'd suggest to copy the [wikipedia.py](https://github.com/huggingface/datasets/blob/master/datasets/wikipedia/wikipedia.py) to a new script `custom_wikipedia.py` and modify it to only download and process only a subset of the raw data files. You can for example replace [this line](https://github.com/huggingface/datasets/blob/64e59fc45ca2134218b3e42e83fddddbe840ff74/datasets/wikipedia/wikipedia.py#L446) by: ```python if total_bytes >= (1 << 30): # stop if the total amount of data is >= 1GB break else: xml_urls.append(_base_url(lang) + fname) ``` Then you can load your custom wikipedia dataset with ```python load_dataset("path/to/my/custom_wikipedia.py", f"{date}.{language}") ```
[ -0.34210702776908875, 0.047192737460136414, -0.1062646210193634, 0.06201731786131859, 0.200455442070961, 0.17774438858032227, 0.17687468230724335, 0.3401966989040375, 0.13733352720737457, 0.09211809188127518, 0.4105237126350403, 0.3346937596797943, 0.01600079983472824, 0.30764591693878174, 0.11132080107927322, -0.33708709478378296, 0.0556505061686039, 0.07522188127040863, -0.19471853971481323, -0.20017598569393158, -0.1320844292640686, 0.1037432998418808, -0.272518515586853, -0.07011571526527405, -0.14883551001548767, 0.10703832656145096, 0.12277784943580627, -0.019669391214847565, -0.1926020085811615, -0.1862010657787323, 0.06802234053611755, -0.036213550716638565, 0.22803360223770142, 0.10794307291507721, -0.00010841461335076019, 0.08063134551048279, 0.5717446208000183, -0.15838035941123962, -0.4590221345424652, -0.13032205402851105, -0.0813637375831604, -0.34625768661499023, 0.25645002722740173, -0.3715742528438568, -0.3347841799259186, -0.02563929185271263, 0.3187553584575653, -0.5857163071632385, 0.24128836393356323, 0.14796146750450134, 0.21826857328414917, -0.07421091943979263, 0.3515348434448242, -0.004884451162070036, 0.41059696674346924, 0.2186068594455719, -0.036049555987119675, -0.12430763244628906, 0.010662764310836792, 0.024964923039078712, 0.06061753258109093, 0.46184754371643066, 0.0472857728600502, -0.11424730718135834, 0.3039732873439789, -0.30949053168296814, 0.26568424701690674, -0.3731166124343872, 0.42296892404556274, 0.25413212180137634, 1.016162633895874, -0.11970198899507523, 0.09952057898044586, 0.10506624728441238, 0.004074035212397575, 0.12878115475177765, 0.24283650517463684, 0.200534850358963, -0.364273339509964, -0.07967951893806458, 0.11349298804998398, -0.28304383158683777, -0.33567821979522705, 0.3455578088760376, -0.1017289012670517, 0.5368952751159668, 0.10903774946928024, 0.1416432410478592, -0.15097543597221375, -0.18528872728347778, 0.07730131596326828, -0.0707799419760704, 0.10307736694812775, 0.35414132475852966, -0.0930444747209549, 0.1351345032453537, 0.24577945470809937, 0.17513269186019897, 0.04433980584144592, -0.09479646384716034, -0.27976471185684204, 0.19170108437538147, 0.36851975321769714, 0.046186767518520355, 0.022066326811909676, 0.03235286846756935, 0.35566288232803345, -0.1849304884672165, 0.20503908395767212, -0.030573179945349693, 0.007939431816339493, 0.06664755940437317, -0.05862106382846832, -0.3365757167339325, -0.6453832387924194, 0.2325165569782257, -0.0009588506072759628, -0.13675157725811005, 0.1923418790102005, 0.15872657299041748, -0.3540835678577423, -0.29986652731895447, -0.005748574621975422, 0.20172500610351562, 0.15220452845096588, 0.20511898398399353, 0.2833248972892761, -0.08672597259283066, -0.34171026945114136, -0.3844309151172638, -0.04664040729403496, 0.28296318650245667, -0.4593489170074463, 0.07805221527814865, 0.2093626707792282, 0.10678590834140778, 0.3750688433647156, -0.03551441431045532, -0.04399970918893814, 0.0425272062420845, 0.13077132403850555, 0.07883505523204803, -0.13859930634498596, 0.15947546064853668, 0.14901871979236603, 0.24700091779232025, 0.1999043971300125, -0.22246749699115753, -0.052218470722436905, 0.0016838796436786652, -0.09037352353334427, -0.19051845371723175, -0.18565547466278076, 0.1717609018087387, 0.12278009951114655, 0.10188576579093933, 0.04582645371556282, 0.3413797914981842, 0.1713998019695282, -0.22588807344436646, 0.1436648666858673, -0.007510095834732056, -0.1345750242471695, -0.09188740700483322, 0.3624590039253235, 0.37257224321365356, -0.6563615202903748, 0.10404619574546814, -0.0495634563267231, 0.18776771426200867, 0.14370021224021912, -0.2795006036758423, -0.28138765692710876, 0.42379847168922424, -0.09351996332406998, -0.10077232122421265, 0.30891817808151245, -0.2708931863307953, 0.08159076422452927, 0.19684277474880219, 0.06733463704586029, -0.2822608947753906, 0.237100750207901, -0.11235295981168747, 0.042296603322029114, 0.16245494782924652, 0.1141090989112854, 0.1663445234298706, 0.11646009981632233, -0.07022511214017868, -0.21967563033103943, -0.1222948208451271, -0.04315415024757385, 0.11727088689804077, 0.26654431223869324, -0.11958038061857224, 0.12490186840295792, 0.5266059041023254, 0.3261626958847046, -0.26325491070747375, 0.07642484456300735, 0.5432153940200806, -0.31229186058044434, 0.08065912127494812, 0.1918928474187851, -0.05547455698251724, -0.0499003604054451, 0.18091359734535217, -0.23919463157653809, 0.4039112627506256, 0.07905761897563934, -0.0053863525390625, -0.26680687069892883, -0.053028300404548645, -0.23602883517742157, -0.4283646047115326, 0.21149234473705292, 0.04665570706129074, -0.03551911190152168, 0.2530856728553772, 0.05293479934334755, -0.09003491699695587, -0.2782234251499176, -0.13893701136112213, -0.8122116923332214, 0.2934659719467163, -0.28607627749443054, -0.08008097857236862, -0.08756023645401001, 0.02025561034679413, 0.06395119428634644, -0.1236342266201973, -0.2867788076400757, 0.10091521590948105, 0.18732760846614838, 0.03720071539282799, -0.011949196457862854, 0.1644933670759201, 0.12203004956245422, -0.2648279368877411, 0.31667110323905945, 0.3054227828979492, 0.11993999779224396, 0.01796853542327881, -0.20191505551338196, 0.11080822348594666, 0.04773319140076637, 0.3355239927768707, 0.07278653234243393, 0.26858973503112793, 0.18518298864364624, 0.1680476814508438, -0.15628114342689514, -0.15916401147842407, 0.3021565079689026, 0.4226677715778351, 0.18189740180969238, -0.14570321142673492, 0.037038616836071014, 0.07721671462059021, 0.4515744745731354, 0.10484346747398376, -0.09222405403852463, -0.12637150287628174, -0.30541035532951355, -0.05947896093130112, 0.48334479331970215, -0.17912442982196808, -0.016023173928260803, 0.2791059911251068, -0.016197215765714645, 0.07711922377347946, -0.15118557214736938, -0.1175532266497612, 0.444623202085495, 0.0723261684179306, 0.5178590416908264, -0.025720663368701935, -0.12441686540842056, -0.1868187040090561, -0.19084137678146362, -0.28794243931770325, -0.12341431528329849, 0.28474098443984985, -0.3124692738056183, 0.2768905758857727, -0.41788339614868164, -0.5642529726028442, -0.2084289789199829, 0.4299701750278473, -0.34802454710006714, -0.34306928515434265, -0.06800823658704758, 0.07788591831922531, -0.02291087992489338, 0.25001901388168335, 0.10721041262149811, -0.03554241359233856, 0.23204468190670013, 0.007473541423678398, -0.22167739272117615, -0.5956388115882874, -0.43564024567604065, 0.03266336768865585, 0.28232625126838684, 0.03737519681453705, 0.1272294521331787, -0.15690559148788452, -0.06724166125059128, -0.14529530704021454, -0.4021960198879242, 0.341444194316864, -0.08698529005050659, -0.008463874459266663, 0.11665335297584534, 0.42721861600875854, -0.19598156213760376, -0.09505882859230042, 0.30980098247528076, 0.11520181596279144, -0.14764991402626038, -0.06926561892032623, -0.0846724733710289, -0.06236208602786064, -0.030823415145277977, -0.43830153346061707, -0.15058530867099762, -0.3273378014564514, -0.18199992179870605, 0.16898353397846222, 0.13323555886745453, 0.3523072600364685, 0.2645774483680725, 0.20914851129055023, 0.3283591866493225, 0.0954611748456955, -0.09655775874853134, -0.1593371480703354, 0.21701820194721222, -0.31857234239578247, -0.31674623489379883, 0.1040424257516861, -0.14131315052509308, 0.23050685226917267, 0.113540880382061, -0.14633040130138397, 0.06803210824728012, 0.11597315222024918, 0.02005505934357643, -0.10131993889808655, 0.3257162272930145, 0.7469016313552856, -0.012623775750398636, -0.001666523516178131, -0.09881142526865005, 0.04782586172223091, 0.03073795884847641, -0.4368049204349518, 0.34731796383857727, 0.17779207229614258, 0.5277688503265381, -0.07014740258455276, 0.7515989542007446, 0.11483575403690338, 0.11667934060096741, 0.13216532766819, -0.07526101917028427, 0.06618665903806686, -0.2724727690219879, -0.18845979869365692, 0.29278135299682617, 0.040327198803424835, -0.3030904531478882, 0.3898434638977051, -0.12770211696624756, -0.25989171862602234, -0.43877696990966797, 0.07504814863204956, 0.0016000233590602875, -0.24473914504051208, -0.03760591894388199, -0.37500491738319397, 0.38391175866127014, -0.09530292451381683, 0.3992151618003845, -0.08024562895298004, -0.07314223051071167, 0.059200335294008255, 0.2196860909461975, -0.09824574738740921, 0.13422371447086334, -0.1730976402759552, -0.24974989891052246, -0.3993258476257324, 0.24614308774471283, 0.001210658112540841, 0.14361710846424103, -0.2927531599998474, 0.007916469126939774, 0.2831735610961914, 0.00874510407447815, 0.5200987458229065, -0.6470432877540588, -0.09738238155841827, 0.3353390395641327, 0.19218038022518158, -0.6571794152259827, -0.14138704538345337, -0.18767735362052917, 0.27711793780326843, 0.3285020589828491, -0.04784683883190155, -0.33222004771232605, -0.1513584554195404, 0.2680896520614624, 0.0485692098736763, -0.09909896552562714, 0.051520321518182755, -0.24175794422626495, -0.14331740140914917, -0.3353155255317688, -0.06578197330236435, -0.09969432651996613, 0.1351073682308197, 0.10023945569992065, 0.2149961143732071, 0.08130360394716263, 0.026218749582767487, -0.1448781043291092, 0.20501397550106049, 0.12260542064905167, 0.13836456835269928, -0.2560669779777527, 0.10371247678995132, 0.4806472659111023, -0.02658914215862751, -0.10802415013313293, 0.1851128190755844, -0.20795348286628723, 0.17263782024383545, -0.21509230136871338, 0.14550821483135223, 0.16041089594364166, -0.12064595520496368, -0.23936399817466736, 0.03647952526807785, -0.25429975986480713, -0.04646545648574829, 0.05284290760755539, 0.2087157815694809, 0.08100216835737228, -0.12740080058574677, -0.4575788676738739, 0.5609185695648193, 0.1885288804769516, -0.0729709267616272, 0.2990119755268097, -0.01566562056541443, -0.4306364953517914, 0.4052891135215759, 0.4329434037208557, 0.8635660409927368, 0.029916509985923767, 0.0139993354678154, 0.17142000794410706, 0.16713659465312958, 0.6254854798316956, -0.5466768741607666, 0.20916423201560974, -0.281289666891098, 0.31988757848739624, -0.0952548235654831, 0.06537748873233795, 0.3957323133945465, 0.14318522810935974, -0.22217051684856415, 0.3536060154438019, -0.017385154962539673, 0.07415876537561417, 0.05659671127796173, 0.37671729922294617, 0.12653328478336334, -0.3078528046607971, -0.11752915382385254, 0.12139658629894257, -0.18236207962036133, 0.2824687957763672, -0.2498217225074768, -0.012539304792881012, -0.014507737010717392, -0.2449241727590561, -0.41069960594177246, 0.0911932960152626, -0.22418349981307983, 0.46085530519485474, -0.3423028290271759, -0.45930570363998413, 0.2506960928440094, 0.22680909931659698, 0.23546141386032104, 0.36966606974601746, -0.3735501766204834, 0.20016779005527496, 0.015005182474851608, -0.23610655963420868, -0.07618836313486099, 0.04109736159443855, 0.38665616512298584, -0.19228029251098633, -0.3922678530216217, 0.2118113934993744, -0.17384064197540283, -0.09788397699594498, -0.2912865877151489, -0.3177189826965332, 0.3188322186470032, 0.25020185112953186, 0.12403450906276703, 0.17259103059768677, -0.08605629205703735, -0.13386225700378418, 0.11980459094047546, -0.28414225578308105, 0.010104240849614143, 0.00868891179561615, 0.08827590942382812, -0.08681836724281311, 0.03090888448059559, 0.2571510970592499, 0.1876174807548523, 0.017261352390050888, 0.5952088832855225, 0.37850505113601685, -0.2194751352071762, -0.26590627431869507, 0.1786082684993744, -0.22924365103244781, -0.06068930774927139, -0.26341670751571655, 0.15080605447292328, 0.09231793880462646, -0.05712684616446495, 0.10292032361030579, -0.015744030475616455, -0.14091041684150696, -0.007175832986831665, -0.26803749799728394, -0.020958686247467995, 0.02230006828904152, -0.1638096421957016, -0.0015578493475914001, 0.18830513954162598, 0.13324597477912903, 0.2853650152683258, -0.23602327704429626, -0.2791168689727783, -0.23883529007434845, -0.022319167852401733, 0.04532085359096527, 0.4137136936187744, -0.016639962792396545, -0.23604750633239746, -0.03873881697654724, 0.1452319622039795, -0.23010565340518951, -0.2452719807624817, -0.17255061864852905, -0.04683499038219452, 0.1290072202682495, -0.03978467732667923, -0.18745777010917664, 0.1358538419008255, -0.340359628200531, -0.2925049960613251, -0.20412948727607727, -0.13163772225379944, -0.1293071210384369, -0.024285420775413513, 0.22228829562664032, -0.1042090505361557, 0.34499114751815796, -0.2877993583679199, 0.08798322081565857, 0.034875597804784775, 0.2938317060470581, 0.0511711910367012, 0.2495485246181488, 0.41686102747917175, -0.176467627286911, -0.5602071285247803, 0.18304572999477386, -0.22114606201648712, 0.17438438534736633, 0.16332201659679413, -0.08280201256275177, -0.04801114648580551, 0.0299657192081213, -0.021473530679941177, 0.026401951909065247, -0.08198915421962738, -0.030233394354581833, 0.1355878710746765, 0.20455136895179749, -0.282722532749176, 0.12395714968442917, 0.42209798097610474, -0.03309762850403786, 0.09618964791297913, 0.026279211044311523, 0.2615511119365692, -0.053421951830387115, 0.17466285824775696, 0.04105685278773308, 0.01686435379087925, -0.04344771057367325, 0.26398909091949463, 0.09460753947496414, 0.08114725351333618, 0.11606082320213318, -0.1200716570019722, 0.046420011669397354, 0.1310724914073944, 0.37461334466934204, 0.10712627321481705, 0.0660352110862732, 0.1008155569434166, 0.21656857430934906, -0.22537630796432495, -0.1409865915775299, 0.3062991201877594, -0.1027754545211792, -0.02090812474489212, 0.022877167910337448, -0.06457258760929108, 0.07485686242580414, 0.14801691472530365, -0.06374989449977875, -0.31802263855934143, 0.13867276906967163, -0.07772723585367203, -0.18301385641098022, -0.6274291276931763, -0.2322813868522644, 0.05465109646320343, -0.01765858195722103, 0.08908896148204803, -0.08369715511798859, -0.10924747586250305, 0.20269775390625, -0.03502584993839264, -0.23063664138317108, 0.6797731518745422, -0.06164851039648056, 0.04469726234674454, -0.05517600476741791, 0.25208669900894165, -0.21323494613170624, -0.07124559581279755, -0.1705530881881714, -0.0018395930528640747, 0.15782535076141357, 0.21092861890792847, -0.47010427713394165, -0.1439928263425827, -0.0009007509797811508, 0.01894410140812397, -0.059177640825510025, 0.0006444081664085388, 0.06300108134746552, -0.03779701516032219, 0.29405084252357483, 0.10967114567756653, -0.08980168402194977, -0.19844317436218262, 0.21691656112670898, -0.0071817245334386826, -0.02003774233162403, -0.2484550178050995, 0.004518499597907066, 0.104212187230587, -0.10660849511623383, 0.11462442576885223, -0.5152723789215088, 0.04132644087076187, 0.25939980149269104, 0.38845953345298767, -0.10852837562561035, -0.22299621999263763, 0.08364375680685043, -0.3275434374809265, 0.5394179224967957, 0.08417317271232605, 0.1905834972858429, -0.11804782599210739, -0.29301464557647705, -0.2950970530509949, 0.00545337051153183, -0.16959445178508759, -0.3680245280265808, -0.120394766330719, 0.3059186041355133, 0.39280450344085693, 0.2445937842130661, 0.11688079684972763, -0.2535529136657715, -0.12980519235134125, 0.2650591731071472, -0.14386308193206787, -0.15893034636974335, -0.07328224182128906, 0.04924120008945465, -0.2251884490251541, -0.17736771702766418, 0.08320610970258713, -0.019431142136454582, 0.07522585242986679, -0.22762125730514526, -0.1473572552204132, 0.3186527192592621, -0.43477770686149597, 0.25957706570625305, 0.02589510940015316, 0.5472241044044495, 0.02913203090429306, -0.04227297008037567, -0.1655571162700653, 0.22283834218978882, -0.04500047490000725, 0.49142101407051086, 0.06162049621343613, 0.22850891947746277, -0.2155005782842636, -0.31885015964508057, -0.3452577590942383, 0.6317011117935181, 0.03209663927555084, -0.055099621415138245, -0.24908007681369781, -0.05867033451795578, -0.22949928045272827, 0.2923282980918884, -0.11924578249454498, 0.06629272550344467, -0.03665236383676529, 0.18673400580883026, -0.3581695556640625, -0.2367311716079712, 0.338419109582901, -0.42113247513771057, -0.33567994832992554, -0.18971459567546844, 0.06820904463529587, -0.14943334460258484, 0.292988657951355, -0.1057339459657669, -0.01535419374704361, 0.2634701132774353, -0.13522681593894958, -0.016723820939660072, 0.00014344137161970139, 0.059856630861759186, 0.1573980301618576, -0.2458987683057785, -0.40447181463241577, -0.19432911276817322, -0.0603257492184639, -0.3799315094947815, -0.2492925524711609 ]
https://github.com/huggingface/datasets/issues/1994
not being able to get wikipedia es language
Hi @lhoestq! > Hi ! As mentioned above the Spanish configuration have parsing issues from mwparserfromhell. I haven't tested with the latest mwparserfromhell >=0.6 though. Which version of mwparserfromhell are you using ? I'm using the latest mwparserfromhell version (0.6) > That would be awesome ! Feel free to ping me on slack so we can put the processed wikipedia files on google storage with the other ones we've already preprocessed. I'll ping you there 👍
Hi I am trying to run a code with wikipedia of config 20200501.es, getting: Traceback (most recent call last): File "run_mlm_t5.py", line 608, in <module> main() File "run_mlm_t5.py", line 359, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/load.py", line 612, in load_dataset ignore_verifications=ignore_verifications, File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 527, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 1050, in _download_and_prepare "\n\t`{}`".format(usage_example) datasets.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` thanks @lhoestq for any suggestion/help
76
not being able to get wikipedia es language Hi I am trying to run a code with wikipedia of config 20200501.es, getting: Traceback (most recent call last): File "run_mlm_t5.py", line 608, in <module> main() File "run_mlm_t5.py", line 359, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/load.py", line 612, in load_dataset ignore_verifications=ignore_verifications, File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 527, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 1050, in _download_and_prepare "\n\t`{}`".format(usage_example) datasets.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` thanks @lhoestq for any suggestion/help Hi @lhoestq! > Hi ! As mentioned above the Spanish configuration have parsing issues from mwparserfromhell. I haven't tested with the latest mwparserfromhell >=0.6 though. Which version of mwparserfromhell are you using ? I'm using the latest mwparserfromhell version (0.6) > That would be awesome ! Feel free to ping me on slack so we can put the processed wikipedia files on google storage with the other ones we've already preprocessed. I'll ping you there 👍
[ -0.34210702776908875, 0.047192737460136414, -0.1062646210193634, 0.06201731786131859, 0.200455442070961, 0.17774438858032227, 0.17687468230724335, 0.3401966989040375, 0.13733352720737457, 0.09211809188127518, 0.4105237126350403, 0.3346937596797943, 0.01600079983472824, 0.30764591693878174, 0.11132080107927322, -0.33708709478378296, 0.0556505061686039, 0.07522188127040863, -0.19471853971481323, -0.20017598569393158, -0.1320844292640686, 0.1037432998418808, -0.272518515586853, -0.07011571526527405, -0.14883551001548767, 0.10703832656145096, 0.12277784943580627, -0.019669391214847565, -0.1926020085811615, -0.1862010657787323, 0.06802234053611755, -0.036213550716638565, 0.22803360223770142, 0.10794307291507721, -0.00010841461335076019, 0.08063134551048279, 0.5717446208000183, -0.15838035941123962, -0.4590221345424652, -0.13032205402851105, -0.0813637375831604, -0.34625768661499023, 0.25645002722740173, -0.3715742528438568, -0.3347841799259186, -0.02563929185271263, 0.3187553584575653, -0.5857163071632385, 0.24128836393356323, 0.14796146750450134, 0.21826857328414917, -0.07421091943979263, 0.3515348434448242, -0.004884451162070036, 0.41059696674346924, 0.2186068594455719, -0.036049555987119675, -0.12430763244628906, 0.010662764310836792, 0.024964923039078712, 0.06061753258109093, 0.46184754371643066, 0.0472857728600502, -0.11424730718135834, 0.3039732873439789, -0.30949053168296814, 0.26568424701690674, -0.3731166124343872, 0.42296892404556274, 0.25413212180137634, 1.016162633895874, -0.11970198899507523, 0.09952057898044586, 0.10506624728441238, 0.004074035212397575, 0.12878115475177765, 0.24283650517463684, 0.200534850358963, -0.364273339509964, -0.07967951893806458, 0.11349298804998398, -0.28304383158683777, -0.33567821979522705, 0.3455578088760376, -0.1017289012670517, 0.5368952751159668, 0.10903774946928024, 0.1416432410478592, -0.15097543597221375, -0.18528872728347778, 0.07730131596326828, -0.0707799419760704, 0.10307736694812775, 0.35414132475852966, -0.0930444747209549, 0.1351345032453537, 0.24577945470809937, 0.17513269186019897, 0.04433980584144592, -0.09479646384716034, -0.27976471185684204, 0.19170108437538147, 0.36851975321769714, 0.046186767518520355, 0.022066326811909676, 0.03235286846756935, 0.35566288232803345, -0.1849304884672165, 0.20503908395767212, -0.030573179945349693, 0.007939431816339493, 0.06664755940437317, -0.05862106382846832, -0.3365757167339325, -0.6453832387924194, 0.2325165569782257, -0.0009588506072759628, -0.13675157725811005, 0.1923418790102005, 0.15872657299041748, -0.3540835678577423, -0.29986652731895447, -0.005748574621975422, 0.20172500610351562, 0.15220452845096588, 0.20511898398399353, 0.2833248972892761, -0.08672597259283066, -0.34171026945114136, -0.3844309151172638, -0.04664040729403496, 0.28296318650245667, -0.4593489170074463, 0.07805221527814865, 0.2093626707792282, 0.10678590834140778, 0.3750688433647156, -0.03551441431045532, -0.04399970918893814, 0.0425272062420845, 0.13077132403850555, 0.07883505523204803, -0.13859930634498596, 0.15947546064853668, 0.14901871979236603, 0.24700091779232025, 0.1999043971300125, -0.22246749699115753, -0.052218470722436905, 0.0016838796436786652, -0.09037352353334427, -0.19051845371723175, -0.18565547466278076, 0.1717609018087387, 0.12278009951114655, 0.10188576579093933, 0.04582645371556282, 0.3413797914981842, 0.1713998019695282, -0.22588807344436646, 0.1436648666858673, -0.007510095834732056, -0.1345750242471695, -0.09188740700483322, 0.3624590039253235, 0.37257224321365356, -0.6563615202903748, 0.10404619574546814, -0.0495634563267231, 0.18776771426200867, 0.14370021224021912, -0.2795006036758423, -0.28138765692710876, 0.42379847168922424, -0.09351996332406998, -0.10077232122421265, 0.30891817808151245, -0.2708931863307953, 0.08159076422452927, 0.19684277474880219, 0.06733463704586029, -0.2822608947753906, 0.237100750207901, -0.11235295981168747, 0.042296603322029114, 0.16245494782924652, 0.1141090989112854, 0.1663445234298706, 0.11646009981632233, -0.07022511214017868, -0.21967563033103943, -0.1222948208451271, -0.04315415024757385, 0.11727088689804077, 0.26654431223869324, -0.11958038061857224, 0.12490186840295792, 0.5266059041023254, 0.3261626958847046, -0.26325491070747375, 0.07642484456300735, 0.5432153940200806, -0.31229186058044434, 0.08065912127494812, 0.1918928474187851, -0.05547455698251724, -0.0499003604054451, 0.18091359734535217, -0.23919463157653809, 0.4039112627506256, 0.07905761897563934, -0.0053863525390625, -0.26680687069892883, -0.053028300404548645, -0.23602883517742157, -0.4283646047115326, 0.21149234473705292, 0.04665570706129074, -0.03551911190152168, 0.2530856728553772, 0.05293479934334755, -0.09003491699695587, -0.2782234251499176, -0.13893701136112213, -0.8122116923332214, 0.2934659719467163, -0.28607627749443054, -0.08008097857236862, -0.08756023645401001, 0.02025561034679413, 0.06395119428634644, -0.1236342266201973, -0.2867788076400757, 0.10091521590948105, 0.18732760846614838, 0.03720071539282799, -0.011949196457862854, 0.1644933670759201, 0.12203004956245422, -0.2648279368877411, 0.31667110323905945, 0.3054227828979492, 0.11993999779224396, 0.01796853542327881, -0.20191505551338196, 0.11080822348594666, 0.04773319140076637, 0.3355239927768707, 0.07278653234243393, 0.26858973503112793, 0.18518298864364624, 0.1680476814508438, -0.15628114342689514, -0.15916401147842407, 0.3021565079689026, 0.4226677715778351, 0.18189740180969238, -0.14570321142673492, 0.037038616836071014, 0.07721671462059021, 0.4515744745731354, 0.10484346747398376, -0.09222405403852463, -0.12637150287628174, -0.30541035532951355, -0.05947896093130112, 0.48334479331970215, -0.17912442982196808, -0.016023173928260803, 0.2791059911251068, -0.016197215765714645, 0.07711922377347946, -0.15118557214736938, -0.1175532266497612, 0.444623202085495, 0.0723261684179306, 0.5178590416908264, -0.025720663368701935, -0.12441686540842056, -0.1868187040090561, -0.19084137678146362, -0.28794243931770325, -0.12341431528329849, 0.28474098443984985, -0.3124692738056183, 0.2768905758857727, -0.41788339614868164, -0.5642529726028442, -0.2084289789199829, 0.4299701750278473, -0.34802454710006714, -0.34306928515434265, -0.06800823658704758, 0.07788591831922531, -0.02291087992489338, 0.25001901388168335, 0.10721041262149811, -0.03554241359233856, 0.23204468190670013, 0.007473541423678398, -0.22167739272117615, -0.5956388115882874, -0.43564024567604065, 0.03266336768865585, 0.28232625126838684, 0.03737519681453705, 0.1272294521331787, -0.15690559148788452, -0.06724166125059128, -0.14529530704021454, -0.4021960198879242, 0.341444194316864, -0.08698529005050659, -0.008463874459266663, 0.11665335297584534, 0.42721861600875854, -0.19598156213760376, -0.09505882859230042, 0.30980098247528076, 0.11520181596279144, -0.14764991402626038, -0.06926561892032623, -0.0846724733710289, -0.06236208602786064, -0.030823415145277977, -0.43830153346061707, -0.15058530867099762, -0.3273378014564514, -0.18199992179870605, 0.16898353397846222, 0.13323555886745453, 0.3523072600364685, 0.2645774483680725, 0.20914851129055023, 0.3283591866493225, 0.0954611748456955, -0.09655775874853134, -0.1593371480703354, 0.21701820194721222, -0.31857234239578247, -0.31674623489379883, 0.1040424257516861, -0.14131315052509308, 0.23050685226917267, 0.113540880382061, -0.14633040130138397, 0.06803210824728012, 0.11597315222024918, 0.02005505934357643, -0.10131993889808655, 0.3257162272930145, 0.7469016313552856, -0.012623775750398636, -0.001666523516178131, -0.09881142526865005, 0.04782586172223091, 0.03073795884847641, -0.4368049204349518, 0.34731796383857727, 0.17779207229614258, 0.5277688503265381, -0.07014740258455276, 0.7515989542007446, 0.11483575403690338, 0.11667934060096741, 0.13216532766819, -0.07526101917028427, 0.06618665903806686, -0.2724727690219879, -0.18845979869365692, 0.29278135299682617, 0.040327198803424835, -0.3030904531478882, 0.3898434638977051, -0.12770211696624756, -0.25989171862602234, -0.43877696990966797, 0.07504814863204956, 0.0016000233590602875, -0.24473914504051208, -0.03760591894388199, -0.37500491738319397, 0.38391175866127014, -0.09530292451381683, 0.3992151618003845, -0.08024562895298004, -0.07314223051071167, 0.059200335294008255, 0.2196860909461975, -0.09824574738740921, 0.13422371447086334, -0.1730976402759552, -0.24974989891052246, -0.3993258476257324, 0.24614308774471283, 0.001210658112540841, 0.14361710846424103, -0.2927531599998474, 0.007916469126939774, 0.2831735610961914, 0.00874510407447815, 0.5200987458229065, -0.6470432877540588, -0.09738238155841827, 0.3353390395641327, 0.19218038022518158, -0.6571794152259827, -0.14138704538345337, -0.18767735362052917, 0.27711793780326843, 0.3285020589828491, -0.04784683883190155, -0.33222004771232605, -0.1513584554195404, 0.2680896520614624, 0.0485692098736763, -0.09909896552562714, 0.051520321518182755, -0.24175794422626495, -0.14331740140914917, -0.3353155255317688, -0.06578197330236435, -0.09969432651996613, 0.1351073682308197, 0.10023945569992065, 0.2149961143732071, 0.08130360394716263, 0.026218749582767487, -0.1448781043291092, 0.20501397550106049, 0.12260542064905167, 0.13836456835269928, -0.2560669779777527, 0.10371247678995132, 0.4806472659111023, -0.02658914215862751, -0.10802415013313293, 0.1851128190755844, -0.20795348286628723, 0.17263782024383545, -0.21509230136871338, 0.14550821483135223, 0.16041089594364166, -0.12064595520496368, -0.23936399817466736, 0.03647952526807785, -0.25429975986480713, -0.04646545648574829, 0.05284290760755539, 0.2087157815694809, 0.08100216835737228, -0.12740080058574677, -0.4575788676738739, 0.5609185695648193, 0.1885288804769516, -0.0729709267616272, 0.2990119755268097, -0.01566562056541443, -0.4306364953517914, 0.4052891135215759, 0.4329434037208557, 0.8635660409927368, 0.029916509985923767, 0.0139993354678154, 0.17142000794410706, 0.16713659465312958, 0.6254854798316956, -0.5466768741607666, 0.20916423201560974, -0.281289666891098, 0.31988757848739624, -0.0952548235654831, 0.06537748873233795, 0.3957323133945465, 0.14318522810935974, -0.22217051684856415, 0.3536060154438019, -0.017385154962539673, 0.07415876537561417, 0.05659671127796173, 0.37671729922294617, 0.12653328478336334, -0.3078528046607971, -0.11752915382385254, 0.12139658629894257, -0.18236207962036133, 0.2824687957763672, -0.2498217225074768, -0.012539304792881012, -0.014507737010717392, -0.2449241727590561, -0.41069960594177246, 0.0911932960152626, -0.22418349981307983, 0.46085530519485474, -0.3423028290271759, -0.45930570363998413, 0.2506960928440094, 0.22680909931659698, 0.23546141386032104, 0.36966606974601746, -0.3735501766204834, 0.20016779005527496, 0.015005182474851608, -0.23610655963420868, -0.07618836313486099, 0.04109736159443855, 0.38665616512298584, -0.19228029251098633, -0.3922678530216217, 0.2118113934993744, -0.17384064197540283, -0.09788397699594498, -0.2912865877151489, -0.3177189826965332, 0.3188322186470032, 0.25020185112953186, 0.12403450906276703, 0.17259103059768677, -0.08605629205703735, -0.13386225700378418, 0.11980459094047546, -0.28414225578308105, 0.010104240849614143, 0.00868891179561615, 0.08827590942382812, -0.08681836724281311, 0.03090888448059559, 0.2571510970592499, 0.1876174807548523, 0.017261352390050888, 0.5952088832855225, 0.37850505113601685, -0.2194751352071762, -0.26590627431869507, 0.1786082684993744, -0.22924365103244781, -0.06068930774927139, -0.26341670751571655, 0.15080605447292328, 0.09231793880462646, -0.05712684616446495, 0.10292032361030579, -0.015744030475616455, -0.14091041684150696, -0.007175832986831665, -0.26803749799728394, -0.020958686247467995, 0.02230006828904152, -0.1638096421957016, -0.0015578493475914001, 0.18830513954162598, 0.13324597477912903, 0.2853650152683258, -0.23602327704429626, -0.2791168689727783, -0.23883529007434845, -0.022319167852401733, 0.04532085359096527, 0.4137136936187744, -0.016639962792396545, -0.23604750633239746, -0.03873881697654724, 0.1452319622039795, -0.23010565340518951, -0.2452719807624817, -0.17255061864852905, -0.04683499038219452, 0.1290072202682495, -0.03978467732667923, -0.18745777010917664, 0.1358538419008255, -0.340359628200531, -0.2925049960613251, -0.20412948727607727, -0.13163772225379944, -0.1293071210384369, -0.024285420775413513, 0.22228829562664032, -0.1042090505361557, 0.34499114751815796, -0.2877993583679199, 0.08798322081565857, 0.034875597804784775, 0.2938317060470581, 0.0511711910367012, 0.2495485246181488, 0.41686102747917175, -0.176467627286911, -0.5602071285247803, 0.18304572999477386, -0.22114606201648712, 0.17438438534736633, 0.16332201659679413, -0.08280201256275177, -0.04801114648580551, 0.0299657192081213, -0.021473530679941177, 0.026401951909065247, -0.08198915421962738, -0.030233394354581833, 0.1355878710746765, 0.20455136895179749, -0.282722532749176, 0.12395714968442917, 0.42209798097610474, -0.03309762850403786, 0.09618964791297913, 0.026279211044311523, 0.2615511119365692, -0.053421951830387115, 0.17466285824775696, 0.04105685278773308, 0.01686435379087925, -0.04344771057367325, 0.26398909091949463, 0.09460753947496414, 0.08114725351333618, 0.11606082320213318, -0.1200716570019722, 0.046420011669397354, 0.1310724914073944, 0.37461334466934204, 0.10712627321481705, 0.0660352110862732, 0.1008155569434166, 0.21656857430934906, -0.22537630796432495, -0.1409865915775299, 0.3062991201877594, -0.1027754545211792, -0.02090812474489212, 0.022877167910337448, -0.06457258760929108, 0.07485686242580414, 0.14801691472530365, -0.06374989449977875, -0.31802263855934143, 0.13867276906967163, -0.07772723585367203, -0.18301385641098022, -0.6274291276931763, -0.2322813868522644, 0.05465109646320343, -0.01765858195722103, 0.08908896148204803, -0.08369715511798859, -0.10924747586250305, 0.20269775390625, -0.03502584993839264, -0.23063664138317108, 0.6797731518745422, -0.06164851039648056, 0.04469726234674454, -0.05517600476741791, 0.25208669900894165, -0.21323494613170624, -0.07124559581279755, -0.1705530881881714, -0.0018395930528640747, 0.15782535076141357, 0.21092861890792847, -0.47010427713394165, -0.1439928263425827, -0.0009007509797811508, 0.01894410140812397, -0.059177640825510025, 0.0006444081664085388, 0.06300108134746552, -0.03779701516032219, 0.29405084252357483, 0.10967114567756653, -0.08980168402194977, -0.19844317436218262, 0.21691656112670898, -0.0071817245334386826, -0.02003774233162403, -0.2484550178050995, 0.004518499597907066, 0.104212187230587, -0.10660849511623383, 0.11462442576885223, -0.5152723789215088, 0.04132644087076187, 0.25939980149269104, 0.38845953345298767, -0.10852837562561035, -0.22299621999263763, 0.08364375680685043, -0.3275434374809265, 0.5394179224967957, 0.08417317271232605, 0.1905834972858429, -0.11804782599210739, -0.29301464557647705, -0.2950970530509949, 0.00545337051153183, -0.16959445178508759, -0.3680245280265808, -0.120394766330719, 0.3059186041355133, 0.39280450344085693, 0.2445937842130661, 0.11688079684972763, -0.2535529136657715, -0.12980519235134125, 0.2650591731071472, -0.14386308193206787, -0.15893034636974335, -0.07328224182128906, 0.04924120008945465, -0.2251884490251541, -0.17736771702766418, 0.08320610970258713, -0.019431142136454582, 0.07522585242986679, -0.22762125730514526, -0.1473572552204132, 0.3186527192592621, -0.43477770686149597, 0.25957706570625305, 0.02589510940015316, 0.5472241044044495, 0.02913203090429306, -0.04227297008037567, -0.1655571162700653, 0.22283834218978882, -0.04500047490000725, 0.49142101407051086, 0.06162049621343613, 0.22850891947746277, -0.2155005782842636, -0.31885015964508057, -0.3452577590942383, 0.6317011117935181, 0.03209663927555084, -0.055099621415138245, -0.24908007681369781, -0.05867033451795578, -0.22949928045272827, 0.2923282980918884, -0.11924578249454498, 0.06629272550344467, -0.03665236383676529, 0.18673400580883026, -0.3581695556640625, -0.2367311716079712, 0.338419109582901, -0.42113247513771057, -0.33567994832992554, -0.18971459567546844, 0.06820904463529587, -0.14943334460258484, 0.292988657951355, -0.1057339459657669, -0.01535419374704361, 0.2634701132774353, -0.13522681593894958, -0.016723820939660072, 0.00014344137161970139, 0.059856630861759186, 0.1573980301618576, -0.2458987683057785, -0.40447181463241577, -0.19432911276817322, -0.0603257492184639, -0.3799315094947815, -0.2492925524711609 ]
https://github.com/huggingface/datasets/issues/1994
not being able to get wikipedia es language
Thank you so much @jonatasgrosman and @lhoestq this would be a great help. I am really thankful to you both and to wonderful Huggingface dataset library allowing us to train models at scale.
Hi I am trying to run a code with wikipedia of config 20200501.es, getting: Traceback (most recent call last): File "run_mlm_t5.py", line 608, in <module> main() File "run_mlm_t5.py", line 359, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/load.py", line 612, in load_dataset ignore_verifications=ignore_verifications, File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 527, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 1050, in _download_and_prepare "\n\t`{}`".format(usage_example) datasets.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` thanks @lhoestq for any suggestion/help
33
not being able to get wikipedia es language Hi I am trying to run a code with wikipedia of config 20200501.es, getting: Traceback (most recent call last): File "run_mlm_t5.py", line 608, in <module> main() File "run_mlm_t5.py", line 359, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/load.py", line 612, in load_dataset ignore_verifications=ignore_verifications, File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 527, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 1050, in _download_and_prepare "\n\t`{}`".format(usage_example) datasets.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` thanks @lhoestq for any suggestion/help Thank you so much @jonatasgrosman and @lhoestq this would be a great help. I am really thankful to you both and to wonderful Huggingface dataset library allowing us to train models at scale.
[ -0.34210702776908875, 0.047192737460136414, -0.1062646210193634, 0.06201731786131859, 0.200455442070961, 0.17774438858032227, 0.17687468230724335, 0.3401966989040375, 0.13733352720737457, 0.09211809188127518, 0.4105237126350403, 0.3346937596797943, 0.01600079983472824, 0.30764591693878174, 0.11132080107927322, -0.33708709478378296, 0.0556505061686039, 0.07522188127040863, -0.19471853971481323, -0.20017598569393158, -0.1320844292640686, 0.1037432998418808, -0.272518515586853, -0.07011571526527405, -0.14883551001548767, 0.10703832656145096, 0.12277784943580627, -0.019669391214847565, -0.1926020085811615, -0.1862010657787323, 0.06802234053611755, -0.036213550716638565, 0.22803360223770142, 0.10794307291507721, -0.00010841461335076019, 0.08063134551048279, 0.5717446208000183, -0.15838035941123962, -0.4590221345424652, -0.13032205402851105, -0.0813637375831604, -0.34625768661499023, 0.25645002722740173, -0.3715742528438568, -0.3347841799259186, -0.02563929185271263, 0.3187553584575653, -0.5857163071632385, 0.24128836393356323, 0.14796146750450134, 0.21826857328414917, -0.07421091943979263, 0.3515348434448242, -0.004884451162070036, 0.41059696674346924, 0.2186068594455719, -0.036049555987119675, -0.12430763244628906, 0.010662764310836792, 0.024964923039078712, 0.06061753258109093, 0.46184754371643066, 0.0472857728600502, -0.11424730718135834, 0.3039732873439789, -0.30949053168296814, 0.26568424701690674, -0.3731166124343872, 0.42296892404556274, 0.25413212180137634, 1.016162633895874, -0.11970198899507523, 0.09952057898044586, 0.10506624728441238, 0.004074035212397575, 0.12878115475177765, 0.24283650517463684, 0.200534850358963, -0.364273339509964, -0.07967951893806458, 0.11349298804998398, -0.28304383158683777, -0.33567821979522705, 0.3455578088760376, -0.1017289012670517, 0.5368952751159668, 0.10903774946928024, 0.1416432410478592, -0.15097543597221375, -0.18528872728347778, 0.07730131596326828, -0.0707799419760704, 0.10307736694812775, 0.35414132475852966, -0.0930444747209549, 0.1351345032453537, 0.24577945470809937, 0.17513269186019897, 0.04433980584144592, -0.09479646384716034, -0.27976471185684204, 0.19170108437538147, 0.36851975321769714, 0.046186767518520355, 0.022066326811909676, 0.03235286846756935, 0.35566288232803345, -0.1849304884672165, 0.20503908395767212, -0.030573179945349693, 0.007939431816339493, 0.06664755940437317, -0.05862106382846832, -0.3365757167339325, -0.6453832387924194, 0.2325165569782257, -0.0009588506072759628, -0.13675157725811005, 0.1923418790102005, 0.15872657299041748, -0.3540835678577423, -0.29986652731895447, -0.005748574621975422, 0.20172500610351562, 0.15220452845096588, 0.20511898398399353, 0.2833248972892761, -0.08672597259283066, -0.34171026945114136, -0.3844309151172638, -0.04664040729403496, 0.28296318650245667, -0.4593489170074463, 0.07805221527814865, 0.2093626707792282, 0.10678590834140778, 0.3750688433647156, -0.03551441431045532, -0.04399970918893814, 0.0425272062420845, 0.13077132403850555, 0.07883505523204803, -0.13859930634498596, 0.15947546064853668, 0.14901871979236603, 0.24700091779232025, 0.1999043971300125, -0.22246749699115753, -0.052218470722436905, 0.0016838796436786652, -0.09037352353334427, -0.19051845371723175, -0.18565547466278076, 0.1717609018087387, 0.12278009951114655, 0.10188576579093933, 0.04582645371556282, 0.3413797914981842, 0.1713998019695282, -0.22588807344436646, 0.1436648666858673, -0.007510095834732056, -0.1345750242471695, -0.09188740700483322, 0.3624590039253235, 0.37257224321365356, -0.6563615202903748, 0.10404619574546814, -0.0495634563267231, 0.18776771426200867, 0.14370021224021912, -0.2795006036758423, -0.28138765692710876, 0.42379847168922424, -0.09351996332406998, -0.10077232122421265, 0.30891817808151245, -0.2708931863307953, 0.08159076422452927, 0.19684277474880219, 0.06733463704586029, -0.2822608947753906, 0.237100750207901, -0.11235295981168747, 0.042296603322029114, 0.16245494782924652, 0.1141090989112854, 0.1663445234298706, 0.11646009981632233, -0.07022511214017868, -0.21967563033103943, -0.1222948208451271, -0.04315415024757385, 0.11727088689804077, 0.26654431223869324, -0.11958038061857224, 0.12490186840295792, 0.5266059041023254, 0.3261626958847046, -0.26325491070747375, 0.07642484456300735, 0.5432153940200806, -0.31229186058044434, 0.08065912127494812, 0.1918928474187851, -0.05547455698251724, -0.0499003604054451, 0.18091359734535217, -0.23919463157653809, 0.4039112627506256, 0.07905761897563934, -0.0053863525390625, -0.26680687069892883, -0.053028300404548645, -0.23602883517742157, -0.4283646047115326, 0.21149234473705292, 0.04665570706129074, -0.03551911190152168, 0.2530856728553772, 0.05293479934334755, -0.09003491699695587, -0.2782234251499176, -0.13893701136112213, -0.8122116923332214, 0.2934659719467163, -0.28607627749443054, -0.08008097857236862, -0.08756023645401001, 0.02025561034679413, 0.06395119428634644, -0.1236342266201973, -0.2867788076400757, 0.10091521590948105, 0.18732760846614838, 0.03720071539282799, -0.011949196457862854, 0.1644933670759201, 0.12203004956245422, -0.2648279368877411, 0.31667110323905945, 0.3054227828979492, 0.11993999779224396, 0.01796853542327881, -0.20191505551338196, 0.11080822348594666, 0.04773319140076637, 0.3355239927768707, 0.07278653234243393, 0.26858973503112793, 0.18518298864364624, 0.1680476814508438, -0.15628114342689514, -0.15916401147842407, 0.3021565079689026, 0.4226677715778351, 0.18189740180969238, -0.14570321142673492, 0.037038616836071014, 0.07721671462059021, 0.4515744745731354, 0.10484346747398376, -0.09222405403852463, -0.12637150287628174, -0.30541035532951355, -0.05947896093130112, 0.48334479331970215, -0.17912442982196808, -0.016023173928260803, 0.2791059911251068, -0.016197215765714645, 0.07711922377347946, -0.15118557214736938, -0.1175532266497612, 0.444623202085495, 0.0723261684179306, 0.5178590416908264, -0.025720663368701935, -0.12441686540842056, -0.1868187040090561, -0.19084137678146362, -0.28794243931770325, -0.12341431528329849, 0.28474098443984985, -0.3124692738056183, 0.2768905758857727, -0.41788339614868164, -0.5642529726028442, -0.2084289789199829, 0.4299701750278473, -0.34802454710006714, -0.34306928515434265, -0.06800823658704758, 0.07788591831922531, -0.02291087992489338, 0.25001901388168335, 0.10721041262149811, -0.03554241359233856, 0.23204468190670013, 0.007473541423678398, -0.22167739272117615, -0.5956388115882874, -0.43564024567604065, 0.03266336768865585, 0.28232625126838684, 0.03737519681453705, 0.1272294521331787, -0.15690559148788452, -0.06724166125059128, -0.14529530704021454, -0.4021960198879242, 0.341444194316864, -0.08698529005050659, -0.008463874459266663, 0.11665335297584534, 0.42721861600875854, -0.19598156213760376, -0.09505882859230042, 0.30980098247528076, 0.11520181596279144, -0.14764991402626038, -0.06926561892032623, -0.0846724733710289, -0.06236208602786064, -0.030823415145277977, -0.43830153346061707, -0.15058530867099762, -0.3273378014564514, -0.18199992179870605, 0.16898353397846222, 0.13323555886745453, 0.3523072600364685, 0.2645774483680725, 0.20914851129055023, 0.3283591866493225, 0.0954611748456955, -0.09655775874853134, -0.1593371480703354, 0.21701820194721222, -0.31857234239578247, -0.31674623489379883, 0.1040424257516861, -0.14131315052509308, 0.23050685226917267, 0.113540880382061, -0.14633040130138397, 0.06803210824728012, 0.11597315222024918, 0.02005505934357643, -0.10131993889808655, 0.3257162272930145, 0.7469016313552856, -0.012623775750398636, -0.001666523516178131, -0.09881142526865005, 0.04782586172223091, 0.03073795884847641, -0.4368049204349518, 0.34731796383857727, 0.17779207229614258, 0.5277688503265381, -0.07014740258455276, 0.7515989542007446, 0.11483575403690338, 0.11667934060096741, 0.13216532766819, -0.07526101917028427, 0.06618665903806686, -0.2724727690219879, -0.18845979869365692, 0.29278135299682617, 0.040327198803424835, -0.3030904531478882, 0.3898434638977051, -0.12770211696624756, -0.25989171862602234, -0.43877696990966797, 0.07504814863204956, 0.0016000233590602875, -0.24473914504051208, -0.03760591894388199, -0.37500491738319397, 0.38391175866127014, -0.09530292451381683, 0.3992151618003845, -0.08024562895298004, -0.07314223051071167, 0.059200335294008255, 0.2196860909461975, -0.09824574738740921, 0.13422371447086334, -0.1730976402759552, -0.24974989891052246, -0.3993258476257324, 0.24614308774471283, 0.001210658112540841, 0.14361710846424103, -0.2927531599998474, 0.007916469126939774, 0.2831735610961914, 0.00874510407447815, 0.5200987458229065, -0.6470432877540588, -0.09738238155841827, 0.3353390395641327, 0.19218038022518158, -0.6571794152259827, -0.14138704538345337, -0.18767735362052917, 0.27711793780326843, 0.3285020589828491, -0.04784683883190155, -0.33222004771232605, -0.1513584554195404, 0.2680896520614624, 0.0485692098736763, -0.09909896552562714, 0.051520321518182755, -0.24175794422626495, -0.14331740140914917, -0.3353155255317688, -0.06578197330236435, -0.09969432651996613, 0.1351073682308197, 0.10023945569992065, 0.2149961143732071, 0.08130360394716263, 0.026218749582767487, -0.1448781043291092, 0.20501397550106049, 0.12260542064905167, 0.13836456835269928, -0.2560669779777527, 0.10371247678995132, 0.4806472659111023, -0.02658914215862751, -0.10802415013313293, 0.1851128190755844, -0.20795348286628723, 0.17263782024383545, -0.21509230136871338, 0.14550821483135223, 0.16041089594364166, -0.12064595520496368, -0.23936399817466736, 0.03647952526807785, -0.25429975986480713, -0.04646545648574829, 0.05284290760755539, 0.2087157815694809, 0.08100216835737228, -0.12740080058574677, -0.4575788676738739, 0.5609185695648193, 0.1885288804769516, -0.0729709267616272, 0.2990119755268097, -0.01566562056541443, -0.4306364953517914, 0.4052891135215759, 0.4329434037208557, 0.8635660409927368, 0.029916509985923767, 0.0139993354678154, 0.17142000794410706, 0.16713659465312958, 0.6254854798316956, -0.5466768741607666, 0.20916423201560974, -0.281289666891098, 0.31988757848739624, -0.0952548235654831, 0.06537748873233795, 0.3957323133945465, 0.14318522810935974, -0.22217051684856415, 0.3536060154438019, -0.017385154962539673, 0.07415876537561417, 0.05659671127796173, 0.37671729922294617, 0.12653328478336334, -0.3078528046607971, -0.11752915382385254, 0.12139658629894257, -0.18236207962036133, 0.2824687957763672, -0.2498217225074768, -0.012539304792881012, -0.014507737010717392, -0.2449241727590561, -0.41069960594177246, 0.0911932960152626, -0.22418349981307983, 0.46085530519485474, -0.3423028290271759, -0.45930570363998413, 0.2506960928440094, 0.22680909931659698, 0.23546141386032104, 0.36966606974601746, -0.3735501766204834, 0.20016779005527496, 0.015005182474851608, -0.23610655963420868, -0.07618836313486099, 0.04109736159443855, 0.38665616512298584, -0.19228029251098633, -0.3922678530216217, 0.2118113934993744, -0.17384064197540283, -0.09788397699594498, -0.2912865877151489, -0.3177189826965332, 0.3188322186470032, 0.25020185112953186, 0.12403450906276703, 0.17259103059768677, -0.08605629205703735, -0.13386225700378418, 0.11980459094047546, -0.28414225578308105, 0.010104240849614143, 0.00868891179561615, 0.08827590942382812, -0.08681836724281311, 0.03090888448059559, 0.2571510970592499, 0.1876174807548523, 0.017261352390050888, 0.5952088832855225, 0.37850505113601685, -0.2194751352071762, -0.26590627431869507, 0.1786082684993744, -0.22924365103244781, -0.06068930774927139, -0.26341670751571655, 0.15080605447292328, 0.09231793880462646, -0.05712684616446495, 0.10292032361030579, -0.015744030475616455, -0.14091041684150696, -0.007175832986831665, -0.26803749799728394, -0.020958686247467995, 0.02230006828904152, -0.1638096421957016, -0.0015578493475914001, 0.18830513954162598, 0.13324597477912903, 0.2853650152683258, -0.23602327704429626, -0.2791168689727783, -0.23883529007434845, -0.022319167852401733, 0.04532085359096527, 0.4137136936187744, -0.016639962792396545, -0.23604750633239746, -0.03873881697654724, 0.1452319622039795, -0.23010565340518951, -0.2452719807624817, -0.17255061864852905, -0.04683499038219452, 0.1290072202682495, -0.03978467732667923, -0.18745777010917664, 0.1358538419008255, -0.340359628200531, -0.2925049960613251, -0.20412948727607727, -0.13163772225379944, -0.1293071210384369, -0.024285420775413513, 0.22228829562664032, -0.1042090505361557, 0.34499114751815796, -0.2877993583679199, 0.08798322081565857, 0.034875597804784775, 0.2938317060470581, 0.0511711910367012, 0.2495485246181488, 0.41686102747917175, -0.176467627286911, -0.5602071285247803, 0.18304572999477386, -0.22114606201648712, 0.17438438534736633, 0.16332201659679413, -0.08280201256275177, -0.04801114648580551, 0.0299657192081213, -0.021473530679941177, 0.026401951909065247, -0.08198915421962738, -0.030233394354581833, 0.1355878710746765, 0.20455136895179749, -0.282722532749176, 0.12395714968442917, 0.42209798097610474, -0.03309762850403786, 0.09618964791297913, 0.026279211044311523, 0.2615511119365692, -0.053421951830387115, 0.17466285824775696, 0.04105685278773308, 0.01686435379087925, -0.04344771057367325, 0.26398909091949463, 0.09460753947496414, 0.08114725351333618, 0.11606082320213318, -0.1200716570019722, 0.046420011669397354, 0.1310724914073944, 0.37461334466934204, 0.10712627321481705, 0.0660352110862732, 0.1008155569434166, 0.21656857430934906, -0.22537630796432495, -0.1409865915775299, 0.3062991201877594, -0.1027754545211792, -0.02090812474489212, 0.022877167910337448, -0.06457258760929108, 0.07485686242580414, 0.14801691472530365, -0.06374989449977875, -0.31802263855934143, 0.13867276906967163, -0.07772723585367203, -0.18301385641098022, -0.6274291276931763, -0.2322813868522644, 0.05465109646320343, -0.01765858195722103, 0.08908896148204803, -0.08369715511798859, -0.10924747586250305, 0.20269775390625, -0.03502584993839264, -0.23063664138317108, 0.6797731518745422, -0.06164851039648056, 0.04469726234674454, -0.05517600476741791, 0.25208669900894165, -0.21323494613170624, -0.07124559581279755, -0.1705530881881714, -0.0018395930528640747, 0.15782535076141357, 0.21092861890792847, -0.47010427713394165, -0.1439928263425827, -0.0009007509797811508, 0.01894410140812397, -0.059177640825510025, 0.0006444081664085388, 0.06300108134746552, -0.03779701516032219, 0.29405084252357483, 0.10967114567756653, -0.08980168402194977, -0.19844317436218262, 0.21691656112670898, -0.0071817245334386826, -0.02003774233162403, -0.2484550178050995, 0.004518499597907066, 0.104212187230587, -0.10660849511623383, 0.11462442576885223, -0.5152723789215088, 0.04132644087076187, 0.25939980149269104, 0.38845953345298767, -0.10852837562561035, -0.22299621999263763, 0.08364375680685043, -0.3275434374809265, 0.5394179224967957, 0.08417317271232605, 0.1905834972858429, -0.11804782599210739, -0.29301464557647705, -0.2950970530509949, 0.00545337051153183, -0.16959445178508759, -0.3680245280265808, -0.120394766330719, 0.3059186041355133, 0.39280450344085693, 0.2445937842130661, 0.11688079684972763, -0.2535529136657715, -0.12980519235134125, 0.2650591731071472, -0.14386308193206787, -0.15893034636974335, -0.07328224182128906, 0.04924120008945465, -0.2251884490251541, -0.17736771702766418, 0.08320610970258713, -0.019431142136454582, 0.07522585242986679, -0.22762125730514526, -0.1473572552204132, 0.3186527192592621, -0.43477770686149597, 0.25957706570625305, 0.02589510940015316, 0.5472241044044495, 0.02913203090429306, -0.04227297008037567, -0.1655571162700653, 0.22283834218978882, -0.04500047490000725, 0.49142101407051086, 0.06162049621343613, 0.22850891947746277, -0.2155005782842636, -0.31885015964508057, -0.3452577590942383, 0.6317011117935181, 0.03209663927555084, -0.055099621415138245, -0.24908007681369781, -0.05867033451795578, -0.22949928045272827, 0.2923282980918884, -0.11924578249454498, 0.06629272550344467, -0.03665236383676529, 0.18673400580883026, -0.3581695556640625, -0.2367311716079712, 0.338419109582901, -0.42113247513771057, -0.33567994832992554, -0.18971459567546844, 0.06820904463529587, -0.14943334460258484, 0.292988657951355, -0.1057339459657669, -0.01535419374704361, 0.2634701132774353, -0.13522681593894958, -0.016723820939660072, 0.00014344137161970139, 0.059856630861759186, 0.1573980301618576, -0.2458987683057785, -0.40447181463241577, -0.19432911276817322, -0.0603257492184639, -0.3799315094947815, -0.2492925524711609 ]
https://github.com/huggingface/datasets/issues/1993
How to load a dataset with load_from disk and save it again after doing transformations without changing the original?
Hi ! That looks like a bug, can you provide some code so that we can reproduce ? It's not supposed to update the original dataset
I am using the latest datasets library. In my work, I first use **load_from_disk** to load a data set that contains 3.8Gb information. Then during my training process, I update that dataset object and add new elements and save it in a different place. When I save the dataset with **save_to_disk**, the original dataset which is already in the disk also gets updated. I do not want to update it. How to prevent from this?
26
How to load a dataset with load_from disk and save it again after doing transformations without changing the original? I am using the latest datasets library. In my work, I first use **load_from_disk** to load a data set that contains 3.8Gb information. Then during my training process, I update that dataset object and add new elements and save it in a different place. When I save the dataset with **save_to_disk**, the original dataset which is already in the disk also gets updated. I do not want to update it. How to prevent from this? Hi ! That looks like a bug, can you provide some code so that we can reproduce ? It's not supposed to update the original dataset
[ -0.2773599922657013, -0.1424061506986618, -0.009712595492601395, 0.2224387228488922, 0.2347681224346161, 0.12864676117897034, -0.03142688795924187, -0.08363273739814758, -0.04452717304229736, 0.04259538650512695, 0.07567726075649261, 0.35082748532295227, 0.06566612422466278, 0.21509264409542084, 0.1894964724779129, 0.275509774684906, 0.3028119206428528, 0.2871474325656891, -0.33956611156463623, -0.11875340342521667, -0.22478076815605164, -0.1271234005689621, 0.003454446792602539, -0.2915342450141907, -0.181113600730896, -0.2847265303134918, -0.10517948120832443, 0.01128629595041275, 0.11921121180057526, 0.12824997305870056, 0.1472529023885727, 0.11708985269069672, 0.259893536567688, 0.32083243131637573, -0.00012003984011244029, 0.006558813154697418, -0.2820396423339844, -0.09815564006567001, -0.3171299993991852, -0.14831088483333588, 0.004069328308105469, -0.16865013539791107, 0.01257924735546112, -0.31870976090431213, 0.01671118289232254, -0.057757165282964706, -0.1532115936279297, -0.20478864014148712, 0.5439522862434387, -0.2619331181049347, 0.10759446024894714, -0.07455620169639587, -0.18759402632713318, 0.05358605459332466, -0.2637375295162201, 0.32248374819755554, 0.16352403163909912, 0.049227144569158554, -0.01661510020494461, 0.35775116086006165, 0.0076645538210868835, 0.26261138916015625, -0.2154633104801178, -0.2576286494731903, 0.3756667673587799, -0.011947101913392544, 0.1762695461511612, -0.35325226187705994, 0.15661349892616272, -0.06553100794553757, 0.7306804060935974, -0.4183008670806885, -0.2183706909418106, -0.21862584352493286, 0.14460250735282898, -0.12942300736904144, 0.1498940885066986, 0.2500554025173187, -0.00965471938252449, 0.13286328315734863, -0.5013393759727478, -0.7865971922874451, -0.09614711254835129, 0.09071970731019974, 0.051380351185798645, -0.5484755039215088, 0.0074868518859148026, 0.13161852955818176, 0.1669689565896988, 0.3084484934806824, 0.4444076418876648, -0.2608911395072937, -0.24271583557128906, 0.10328276455402374, -0.29033997654914856, -0.3080199956893921, -0.3247918486595154, 0.1850418746471405, -0.04134838283061981, 0.22324736416339874, 0.08514081686735153, -0.08969508856534958, -0.2581593096256256, 0.14035433530807495, 0.19319427013397217, 0.2976647913455963, 0.10339464247226715, 0.20719486474990845, 0.06409785896539688, 0.08677231520414352, -0.22766757011413574, -0.05554661899805069, 0.20996662974357605, 0.11168727278709412, 0.6322054266929626, -0.3062034845352173, 0.26053375005722046, 0.018100585788488388, 0.057566553354263306, 0.1173091009259224, 0.13012465834617615, -0.03814114257693291, -0.18217334151268005, 0.32183343172073364, 0.1012514978647232, 0.10706541687250137, 0.1898789405822754, 0.24064913392066956, -0.05599837750196457, -0.13123013079166412, -0.1708797663450241, -0.07950259745121002, -0.30208492279052734, 0.3862607777118683, 0.07387441396713257, 0.005374515429139137, 0.11036979407072067, 0.48390257358551025, -0.45218485593795776, -0.15698307752609253, 0.009346535429358482, -0.1823619157075882, 0.36486712098121643, 0.18075449764728546, 0.13289982080459595, 0.19297635555267334, -0.07670067250728607, -0.0259806290268898, -0.05062109977006912, 0.7035811543464661, -0.3622855246067047, -0.1167384535074234, 0.031744156032800674, 0.12887543439865112, -0.09978114068508148, 0.11891922354698181, -0.6574712991714478, 0.19570115208625793, 0.10903861373662949, -0.2294837236404419, 0.2326245903968811, 0.06447039544582367, -0.39337587356567383, -0.19553522765636444, -0.06007511913776398, 0.24467052519321442, -0.35171082615852356, -0.1330956071615219, 0.1671469360589981, -0.21639956533908844, -0.05629446357488632, 0.16038043797016144, -0.2772347927093506, 0.21077752113342285, -0.34160852432250977, -0.31829899549484253, 0.5734580159187317, 0.1237904280424118, -0.43868812918663025, 0.13765370845794678, -0.04731788486242294, -0.08549819141626358, -0.03384561091661453, 0.5759632587432861, 0.08870622515678406, -0.12185186892747879, -0.44680777192115784, 0.2835897207260132, 0.09143104404211044, 0.0993330255150795, -0.00009419023990631104, -0.17192202806472778, 0.24466410279273987, -0.31387999653816223, -0.10988235473632812, 0.48693200945854187, 0.2913510501384735, 0.4426921606063843, 0.3346463143825531, 0.05464654043316841, 0.12267656624317169, 0.42058634757995605, -0.1444275826215744, 0.03634515404701233, -0.18893392384052277, 0.16044044494628906, -0.60502690076828, -0.028306063264608383, 0.15154200792312622, -0.5714519023895264, 0.4265674352645874, -0.09662795066833496, -0.05945785716176033, -0.20614168047904968, -0.08250600099563599, 0.05658457428216934, -0.07425948977470398, 0.05404559522867203, -0.07023195922374725, -0.16912032663822174, -0.2333439141511917, 0.45659223198890686, -0.0745808333158493, 0.10198062658309937, -0.6434780359268188, 0.41207289695739746, 0.14481395483016968, -0.18760761618614197, -0.28970324993133545, -0.07700429111719131, 0.20228233933448792, 0.015842854976654053, -0.16047245264053345, 0.37946081161499023, 0.1969832181930542, 0.3693661093711853, -0.07243625074625015, 0.1969148814678192, 0.027586132287979126, -0.03662998229265213, 0.0015106089413166046, -0.1320197731256485, 0.17837348580360413, -0.08495904505252838, -0.1314106583595276, -0.025170370936393738, -0.17624132335186005, 0.056723859161138535, 0.06934567540884018, -0.1900814324617386, 0.006539149209856987, -0.3226766586303711, -0.01290181465446949, -0.2311118245124817, -0.22056891024112701, 0.19445167481899261, 0.36174947023391724, 0.10749240964651108, -0.19668260216712952, -0.17285364866256714, 0.2807903289794922, -0.25879451632499695, -0.04645457863807678, 0.04439351335167885, -0.2743504047393799, 0.009504172950983047, -0.12609440088272095, 0.5707713961601257, 0.18910163640975952, 0.10612054914236069, 0.07778427004814148, 0.17420148849487305, 0.13649189472198486, -0.02321976236999035, 0.024552330374717712, 0.035394277423620224, 0.5409011244773865, 0.2572121322154999, -0.006434861104935408, 0.08573085069656372, -0.15938761830329895, 0.46659055352211, 0.10989555716514587, -0.12078636884689331, -0.30450496077537537, 0.15231283009052277, -0.1394733488559723, 0.09345521777868271, -0.4907519221305847, -0.0858551636338234, -0.23074179887771606, 0.1629548966884613, -0.25301092863082886, 0.755164384841919, 0.20676986873149872, 0.19474932551383972, 0.15207979083061218, 0.023358598351478577, -0.08850561827421188, -0.4377727508544922, -0.08935356140136719, 0.12714122235774994, -0.09930747002363205, -0.061639439314603806, 0.07312563806772232, -0.06764546781778336, 0.39149805903434753, -0.08245687186717987, -0.05444960296154022, -0.47223997116088867, 0.06781459599733353, -0.047155119478702545, 0.0970691442489624, 0.11794319748878479, -0.17211133241653442, 0.16208341717720032, -0.4026908874511719, -0.015498043969273567, -0.11300849914550781, -0.442728191614151, -0.23764094710350037, 0.04697573930025101, 0.13580913841724396, 0.28566890954971313, -0.02071768045425415, -0.17603006958961487, 0.03132076561450958, -0.024033403024077415, -0.16447748243808746, -0.17987889051437378, 0.03812544420361519, 0.07073091715574265, 0.17854900658130646, -0.2493133246898651, 0.22521185874938965, 0.03661048412322998, -0.2901349663734436, -0.5891327857971191, 0.38103756308555603, 0.17697936296463013, -0.2777749001979828, 0.2593786120414734, -0.18305493891239166, -0.03858058527112007, 0.3359549045562744, -0.6108106374740601, -0.0890951156616211, 0.047306787222623825, 0.07121674716472626, -0.4067157804965973, 0.32668009400367737, 0.32339125871658325, -0.11059385538101196, 0.009024729952216148, -0.1059059351682663, -0.2592630386352539, 0.05878088250756264, 0.09948721528053284, 0.42001014947891235, -0.20230916142463684, 0.22214862704277039, -0.08145980536937714, 0.254272997379303, -0.007060352712869644, -0.11690784990787506, 0.3640681803226471, 0.11346179246902466, 0.5133028030395508, -0.24457934498786926, -0.1410064399242401, -0.5643540620803833, -0.1771262288093567, -0.2818340063095093, -0.011447936296463013, -0.022735729813575745, -0.044244617223739624, -0.1466464102268219, -0.29830074310302734, -0.24984216690063477, -0.15601308643817902, -0.00041647814214229584, -0.2736833095550537, 0.30529138445854187, 0.10216252505779266, 0.22628605365753174, 0.18910430371761322, -0.2032572627067566, -0.06710171699523926, 0.20099934935569763, 0.3148537278175354, 0.047192659229040146, -0.32266944646835327, -0.03061247617006302, -0.14018085598945618, 0.1583729386329651, -0.20894011855125427, -0.004810710437595844, 0.16129638254642487, -0.06423934549093246, 0.09787660092115402, 0.20930616557598114, 0.825922429561615, 0.2282084822654724, 0.16171438992023468, 0.06672358512878418, -0.3872632384300232, -0.28557446599006653, -0.005081728100776672, 0.019831042736768723, -0.27809882164001465, -0.08809292316436768, 0.6831373572349548, 0.17875289916992188, -0.05078921839594841, -0.29579421877861023, 0.46599024534225464, -0.3318033516407013, -0.3347010910511017, -0.2603488564491272, -0.19917523860931396, -0.5212270617485046, -0.1314111053943634, -0.2619123160839081, -0.02847225032746792, -0.17739850282669067, 0.1137886643409729, -0.18715128302574158, -0.07589372247457504, 0.05137554183602333, -0.17987121641635895, 0.3351960778236389, 0.33292558789253235, 0.05405164882540703, 0.08239409327507019, 0.18735221028327942, 0.1717299222946167, 0.3534221947193146, -0.09962362051010132, -0.0959053784608841, -0.04830392450094223, 0.06811340153217316, 0.14130401611328125, 0.0803869292140007, 0.05227944627404213, 0.005039677023887634, -0.02571873366832733, -0.2154925912618637, -0.36572691798210144, -0.08521479368209839, -0.08787689357995987, -0.13799475133419037, -0.2146565318107605, -0.45650479197502136, 0.5085780620574951, -0.08647041022777557, -0.08469542115926743, -0.06166296452283859, -0.09775334596633911, -0.27061861753463745, 0.10744629055261612, 0.11821190267801285, 0.8301047682762146, 0.166254460811615, 0.2188902497291565, 0.18120354413986206, -0.2468584030866623, 0.03670778498053551, 0.02898690104484558, -0.048085033893585205, -0.3911787271499634, -0.3459467589855194, -0.15159647166728973, -0.17169664800167084, 0.008690908551216125, 0.30135345458984375, -0.34600362181663513, 0.3065206706523895, -0.2786552309989929, -0.05427919700741768, -0.12685157358646393, -0.0232132226228714, -0.16166645288467407, -0.1308976262807846, -0.16279815137386322, 0.003043573349714279, -0.018612287938594818, 0.06880879402160645, -0.07297384738922119, 0.043328117579221725, 0.17787158489227295, -0.10238867998123169, 0.3078855872154236, 0.13814333081245422, -0.02809862792491913, 0.24916158616542816, -0.12033885717391968, -0.45065754652023315, -0.050609178841114044, 0.5732137560844421, 0.43365174531936646, 0.053010694682598114, 0.06874880939722061, -0.09891733527183533, -0.014194443821907043, 0.3902992010116577, -0.19780170917510986, -0.15491296350955963, 0.43206852674484253, 0.12532740831375122, -0.07732275128364563, 0.06692429631948471, -0.05341716855764389, -0.16151756048202515, -0.07303015142679214, -0.012171417474746704, 0.061018262058496475, -0.3188638985157013, 0.021541619673371315, 0.23854182660579681, 0.33574265241622925, -0.10635261237621307, 0.038011252880096436, 0.004773542284965515, -0.005508962087333202, 0.2677951157093048, 0.03569599241018295, -0.2979891002178192, 0.01340731792151928, 0.5746380090713501, 0.2181510627269745, -0.020174896344542503, 0.4256412982940674, -0.3335491716861725, 0.12486356496810913, -0.22709473967552185, 0.5075287222862244, 0.18347540497779846, -0.20383945107460022, 0.20458436012268066, 0.03836733475327492, 0.4741452932357788, -0.02725372277200222, -0.01672220602631569, 0.0738130658864975, -0.007936887443065643, 0.15436945855617523, -0.04866008087992668, -0.35172098875045776, 0.09103695303201675, 0.22863392531871796, 0.3515549302101135, 0.3458954989910126, -0.13896982371807098, 0.024869361892342567, 0.37073731422424316, -0.2032516598701477, 0.17898796498775482, 0.2704666554927826, 0.22274602949619293, 0.2163434475660324, 0.2249101996421814, -0.3069206476211548, -0.3214675188064575, -0.035305559635162354, -0.19339482486248016, -0.2613629400730133, -0.1477643847465515, -0.06892162561416626, 0.14213846623897552, -0.07358498126268387, 0.2744119167327881, -0.274053692817688, -0.42869192361831665, 0.19849061965942383, -0.1260865330696106, 0.10449784994125366, 0.18987882137298584, 0.21517343819141388, 0.2136218249797821, 0.138115793466568, 0.46343547105789185, -0.27139967679977417, -0.13523301482200623, -0.20969876646995544, 0.17337432503700256, -0.02206444926559925, -0.006473992019891739, 0.12586075067520142, -0.11786942183971405, -0.6242117881774902, -0.06739551573991776, 0.5685314536094666, 0.11676206439733505, -0.042634136974811554, -0.2280731350183487, 0.05508345738053322, 0.15555302798748016, 0.22260580956935883, 0.11807475984096527, -0.4023570120334625, -0.33652016520500183, 0.3168419599533081, 0.15491245687007904, -0.0792563259601593, -0.19125640392303467, 0.27554574608802795, -0.1716841161251068, -0.3012564182281494, 0.1850246787071228, 0.1411784440279007, -0.05262603610754013, -0.339374840259552, 0.08545952290296555, 0.2024499475955963, -0.14827600121498108, 0.40229132771492004, 0.6510446071624756, -0.2748964726924896, 0.023439284414052963, 0.14741572737693787, 0.3377689719200134, -0.14833274483680725, 0.430505633354187, -0.0011160820722579956, 0.477065771818161, -0.005232095718383789, 0.08087748289108276, -0.10373953729867935, -0.4036497473716736, 0.07697354257106781, 0.1380399763584137, -0.2588011622428894, 0.04053516685962677, -0.030086271464824677, -0.1536853313446045, 0.1886298507452011, -0.34799614548683167, -0.1480424553155899, 0.3714602589607239, -0.24119088053703308, 0.10740034282207489, -0.013434352353215218, -0.1359696388244629, 0.26272115111351013, 0.24553778767585754, -0.009992234408855438, -0.24096344411373138, 0.3795965909957886, 0.0855141431093216, -0.18178854882717133, 0.14682532846927643, 0.08944761753082275, 0.20304304361343384, -0.1944674849510193, -0.16171887516975403, 0.0693570002913475, -0.12374763190746307, 0.08710696548223495, 0.08745067566633224, 0.03893432766199112, -0.18455149233341217, 0.1138075664639473, 0.24773776531219482, 0.20417097210884094, 0.2740831673145294, -0.03731328248977661, 0.12912176549434662, 0.1125144213438034, -0.0035210102796554565, 0.009315533563494682, 0.2051871120929718, -0.0007488904520869255, 0.003897051326930523, 0.30486130714416504, 0.09476643800735474, 0.3823278248310089, -0.48483550548553467, 0.2595473527908325, 0.2937276363372803, -0.07465177774429321, -0.24958398938179016, 0.04230113327503204, 0.16892185807228088, 0.015545879490673542, 0.5528270602226257, -0.26864132285118103, 0.005601925775408745, 0.05080654099583626, 0.03817503899335861, 0.05144333094358444, 0.4367138147354126, 0.2386620193719864, -0.4496121108531952, -0.2709536850452423, -0.23190157115459442, -0.5596634149551392, 0.018424756824970245, 0.3477921485900879, 0.31311824917793274, -0.24933964014053345, 0.10257065296173096, 0.07638760656118393, 0.16521647572517395, 0.0482025220990181, -0.17678838968276978, 0.07443363964557648, 0.34125441312789917, 0.17679402232170105, -0.25348567962646484, -0.023443862795829773, 0.29201892018318176, -0.1093694418668747, -0.25149431824684143, 0.18463850021362305, 0.0725313127040863, -0.007318798452615738, 0.17855186760425568, 0.17028452455997467, -0.22358162701129913, 0.4020439684391022, 0.6338937282562256, 0.08537027984857559, 0.02354907989501953, -0.19988006353378296, 0.24535134434700012, 0.32068225741386414, -0.040375594049692154, -0.19774730503559113, -0.08490245789289474, 0.08710738271474838, 0.183311328291893, -0.39719900488853455, 0.3609267771244049, -0.21171638369560242, -0.11294576525688171, 0.12772880494594574, 0.06514547020196915, -0.535883367061615, 0.04911080002784729, 0.06941350549459457, 0.17668864130973816, 0.13684041798114777, 0.3822605609893799, 0.01205451413989067, 0.34513846039772034, -0.1944078803062439, -0.12887293100357056, 0.3826500177383423, -0.18387001752853394, -0.3120286464691162, -0.18203455209732056, 0.3298673629760742, -0.051580704748630524, -0.10722173005342484, -0.39740729331970215, 0.11220545321702957, 0.455014169216156, -0.22392737865447998, 0.012751128524541855, 0.5110881924629211, -0.20354166626930237, 0.17704004049301147, 0.13639141619205475, 0.5885224342346191, 0.12717542052268982, -0.33513593673706055, -0.004045598208904266, -0.30075281858444214 ]
https://github.com/huggingface/datasets/issues/1993
How to load a dataset with load_from disk and save it again after doing transformations without changing the original?
Hi, I experimented with RAG. Actually, you can run the [use_own_knowldge_dataset.py](https://github.com/shamanez/transformers/blob/rag-end-to-end-retrieval/examples/research_projects/rag/use_own_knowledge_dataset.py#L80). In the 80 you can save the dataset object to the disk with save_to_disk. Then in order to compute the embeddings in this use **load_from_disk**. Then finally save it. You can see the original dataset object (CSV after splitting also will be changed) One more thing- when I save the dataset object with **save_to_disk** it name the arrow file with cache.... rather than using dataset. arrow. Can you add a variable that we can feed a name to save_to_disk function?
I am using the latest datasets library. In my work, I first use **load_from_disk** to load a data set that contains 3.8Gb information. Then during my training process, I update that dataset object and add new elements and save it in a different place. When I save the dataset with **save_to_disk**, the original dataset which is already in the disk also gets updated. I do not want to update it. How to prevent from this?
91
How to load a dataset with load_from disk and save it again after doing transformations without changing the original? I am using the latest datasets library. In my work, I first use **load_from_disk** to load a data set that contains 3.8Gb information. Then during my training process, I update that dataset object and add new elements and save it in a different place. When I save the dataset with **save_to_disk**, the original dataset which is already in the disk also gets updated. I do not want to update it. How to prevent from this? Hi, I experimented with RAG. Actually, you can run the [use_own_knowldge_dataset.py](https://github.com/shamanez/transformers/blob/rag-end-to-end-retrieval/examples/research_projects/rag/use_own_knowledge_dataset.py#L80). In the 80 you can save the dataset object to the disk with save_to_disk. Then in order to compute the embeddings in this use **load_from_disk**. Then finally save it. You can see the original dataset object (CSV after splitting also will be changed) One more thing- when I save the dataset object with **save_to_disk** it name the arrow file with cache.... rather than using dataset. arrow. Can you add a variable that we can feed a name to save_to_disk function?
[ -0.2981734573841095, -0.0828651636838913, 0.026727329939603806, 0.1493995487689972, 0.3067893385887146, 0.12280101329088211, -0.05620656535029411, -0.061476822942495346, 0.0445270799100399, 0.05419421195983887, -0.06526144593954086, 0.37382441759109497, 0.02156340330839157, 0.10119784623384476, 0.14740118384361267, 0.2532070279121399, 0.19879969954490662, 0.2516975998878479, -0.2688198387622833, -0.0971936583518982, -0.21972502768039703, -0.2309301346540451, 0.05293335020542145, -0.34560704231262207, -0.21621215343475342, -0.26786479353904724, -0.17009761929512024, 0.014569766819477081, 0.10322459042072296, -0.039821479469537735, 0.1639603227376938, 0.13002529740333557, 0.3564484715461731, 0.27651476860046387, -0.0001222564751515165, 0.04494692385196686, -0.3267861008644104, -0.16619646549224854, -0.3974144756793976, -0.1439901739358902, 0.17799174785614014, -0.2638605237007141, 0.06470761448144913, -0.3373181223869324, -0.04464290291070938, -0.17650897800922394, -0.10760581493377686, -0.26364707946777344, 0.6995682716369629, -0.3083575665950775, 0.0656188502907753, -0.05405215919017792, -0.24225905537605286, 0.0614367313683033, -0.0760423019528389, 0.24499672651290894, 0.11913583427667618, 0.15196821093559265, -0.04849687218666077, 0.22260300815105438, -0.1404743790626526, 0.25488874316215515, -0.2061857134103775, -0.18936923146247864, 0.39679306745529175, -0.001980130560696125, 0.07554027438163757, -0.33136212825775146, 0.07828715443611145, -0.00028165802359580994, 0.787638247013092, -0.46938368678092957, -0.33230385184288025, -0.23040348291397095, 0.22010989487171173, -0.07076068222522736, 0.043341029435396194, 0.20691704750061035, 0.013548681512475014, 0.2221802920103073, -0.4472397565841675, -0.81059330701828, -0.1399763822555542, 0.14884620904922485, 0.0819215327501297, -0.4945164620876312, 0.023888036608695984, 0.14838430285453796, 0.2077626883983612, 0.289745032787323, 0.3728310763835907, -0.25498202443122864, -0.17426751554012299, 0.10398463904857635, -0.30444085597991943, -0.2441859096288681, -0.2922516167163849, 0.05695206671953201, -0.05470498651266098, 0.3812345862388611, 0.13492938876152039, -0.03296462446451187, -0.24124956130981445, 0.17376786470413208, 0.17379455268383026, 0.28971174359321594, 0.11092589795589447, 0.17060451209545135, 0.13796137273311615, 0.004973484203219414, -0.21062444150447845, -0.10551626235246658, 0.11871844530105591, 0.13158270716667175, 0.5387068390846252, -0.21611902117729187, 0.21053573489189148, 0.04565487429499626, 0.12340053170919418, 0.012617631815373898, 0.05493427813053131, -0.04813014715909958, -0.1775926798582077, 0.3871254622936249, 0.0820181593298912, 0.18128174543380737, 0.1506490260362625, 0.23661042749881744, 0.022876104339957237, -0.11504941433668137, -0.12618310749530792, -0.034810662269592285, -0.2900649905204773, 0.3913140892982483, 0.20096226036548615, -0.09959924221038818, 0.18688152730464935, 0.406493604183197, -0.4346121549606323, -0.15990620851516724, 0.014104211702942848, -0.23744268715381622, 0.5390254855155945, 0.1750430464744568, 0.05220373347401619, 0.20256178081035614, 0.005105402320623398, -0.04552086070179939, -0.16679954528808594, 0.519553542137146, -0.27199894189834595, -0.1811145544052124, 0.10250955820083618, 0.09023218601942062, -0.1660819798707962, 0.21139417588710785, -0.43405357003211975, 0.10766410827636719, 0.05734340101480484, -0.1293475329875946, 0.1663852334022522, 0.0311016533523798, -0.3366868793964386, -0.27857300639152527, 0.06284531205892563, 0.30723685026168823, -0.42183828353881836, -0.16415762901306152, 0.061892319470644, -0.09403963387012482, -0.2057059407234192, 0.2003055363893509, -0.28435948491096497, 0.2975262701511383, -0.2760426998138428, -0.24221257865428925, 0.5749606490135193, -0.02873414382338524, -0.48127785325050354, 0.15325623750686646, 0.025359615683555603, 0.005696995183825493, 0.001656852662563324, 0.6175721287727356, 0.3191405236721039, -0.1399003118276596, -0.4540530741214752, 0.39994144439697266, 0.1578345149755478, 0.1049264594912529, 0.021871041506528854, -0.29571443796157837, 0.21839451789855957, -0.2868964374065399, -0.18712466955184937, 0.3673587441444397, 0.2825940251350403, 0.26465561985969543, 0.36159175634384155, 0.02343355491757393, 0.15545468032360077, 0.3602968454360962, 0.022046906873583794, 0.034086696803569794, -0.10741899162530899, 0.052772797644138336, -0.6752661466598511, -0.0008340328931808472, 0.15547721087932587, -0.5374922156333923, 0.17360877990722656, -0.19348551332950592, -0.09242665022611618, -0.1653456836938858, -0.08859285712242126, -0.013568632304668427, -0.0897684097290039, -0.030893824994564056, -0.04416351765394211, -0.21191591024398804, -0.27464061975479126, 0.4201812446117401, -0.03764261305332184, 0.17623209953308105, -0.6207965612411499, 0.4170425832271576, 0.19731515645980835, -0.21418775618076324, -0.16175396740436554, -0.08378919214010239, 0.22957953810691833, 0.018593261018395424, -0.05125674977898598, 0.3639732599258423, 0.16893406212329865, 0.3720766305923462, 0.058199960738420486, 0.12339510768651962, 0.028112350031733513, -0.1681797206401825, 0.22012853622436523, -0.04351526126265526, 0.16424453258514404, -0.12329483777284622, -0.25302207469940186, 0.08864091336727142, -0.18905413150787354, 0.13726341724395752, 0.08675019443035126, -0.16632501780986786, -0.011846363544464111, -0.37781640887260437, -0.08425344526767731, -0.25644350051879883, -0.29769009351730347, 0.18484023213386536, 0.44589778780937195, 0.06325361877679825, 0.02498805522918701, -0.17374259233474731, 0.31633123755455017, -0.17564764618873596, 0.011917587369680405, 0.01527002826333046, -0.39196398854255676, -0.06950169056653976, -0.1718241423368454, 0.48889973759651184, 0.10107772797346115, 0.0891604796051979, 0.06313921511173248, 0.10610220581293106, 0.12016256153583527, 0.040463414043188095, 0.034183748066425323, 0.018937956541776657, 0.5688122510910034, 0.32381191849708557, 0.026262382045388222, 0.0392555296421051, -0.15863433480262756, 0.484120637178421, 0.13112135231494904, -0.1580861508846283, -0.2029998004436493, 0.06025094538927078, -0.12024877965450287, 0.20651564002037048, -0.48766422271728516, -0.18659280240535736, -0.33270812034606934, 0.10924672335386276, -0.2565140128135681, 0.6586430072784424, 0.21084509789943695, 0.27177807688713074, 0.15876755118370056, 0.045616984367370605, -0.12482900172472, -0.4218963384628296, -0.05364084988832474, -0.031254976987838745, 0.03746090456843376, -0.0909011960029602, -0.018166081979870796, 0.03502534702420235, 0.4715489447116852, 0.1138012483716011, -0.030668701976537704, -0.5500049591064453, 0.09202934056520462, -0.0775492787361145, 0.202233225107193, 0.08275759965181351, -0.1859750747680664, 0.1372912973165512, -0.23666003346443176, -0.07456392794847488, -0.11089567095041275, -0.45801299810409546, -0.17619295418262482, -0.004643828608095646, 0.06758388131856918, 0.3397305905818939, 0.032119881361722946, -0.3095199167728424, -0.06574389338493347, -0.07723845541477203, -0.11416612565517426, -0.18192490935325623, -0.012226171791553497, -0.053160764276981354, 0.16598299145698547, -0.23595303297042847, 0.23220476508140564, 0.005328073166310787, -0.20060239732265472, -0.4661619961261749, 0.44125381112098694, 0.12451735138893127, -0.12371860444545746, 0.2641139030456543, -0.2815726399421692, -0.16563495993614197, 0.47854846715927124, -0.5246483087539673, -0.15480460226535797, 0.05580060929059982, 0.13811691105365753, -0.3403528332710266, 0.4552115797996521, 0.30212104320526123, 0.04765690863132477, 0.014021450653672218, -0.07247712463140488, -0.22283102571964264, 0.0957026258111, 0.042999185621738434, 0.40332141518592834, -0.12401161342859268, 0.18965086340904236, -0.05260997638106346, 0.47666484117507935, 0.048253197222948074, -0.130422443151474, 0.28029245138168335, 0.19504398107528687, 0.4728264808654785, -0.1371493935585022, -0.12039539217948914, -0.48673608899116516, -0.2577688992023468, -0.22645007073879242, -0.01976555585861206, 0.0007066158577799797, 0.05172868072986603, -0.09429998695850372, -0.28632786870002747, -0.19047021865844727, -0.20414215326309204, 0.0761580541729927, -0.2113744020462036, 0.31357526779174805, 0.057280171662569046, 0.18358397483825684, 0.12215232849121094, -0.17768985033035278, 0.09917005896568298, 0.16986215114593506, 0.4022679626941681, 0.015011092647910118, -0.3136444687843323, 0.008283251896500587, -0.15071812272071838, 0.145783931016922, -0.20087112486362457, -0.10887429118156433, 0.2638159990310669, -0.09607918560504913, 0.082612544298172, 0.23463596403598785, 0.8441632390022278, 0.09459090232849121, 0.09366847574710846, 0.04526360705494881, -0.29115864634513855, -0.28527525067329407, 0.05575362965464592, 0.01388094574213028, -0.23698991537094116, -0.14522577822208405, 0.631640613079071, 0.0028982609510421753, -0.05835242196917534, -0.16309723258018494, 0.5997636318206787, -0.4410635232925415, -0.37100595235824585, -0.1498328447341919, -0.14239872992038727, -0.528294026851654, -0.227498859167099, -0.27837318181991577, -0.16511423885822296, -0.16571661829948425, 0.12169227004051208, -0.33774033188819885, -0.07975119352340698, 0.1186227947473526, -0.1386125683784485, 0.38961440324783325, 0.23845092952251434, 0.05505886301398277, 0.1810157597064972, 0.31517294049263, 0.2113417536020279, 0.4770439565181732, -0.21939674019813538, -0.30724841356277466, -0.19563919305801392, 0.15619836747646332, 0.19013428688049316, 0.10894546657800674, 0.05556658282876015, 0.043780647218227386, -0.047834619879722595, -0.19425733387470245, -0.4450426697731018, -0.13473738729953766, -0.1656712293624878, -0.09904001653194427, -0.19163919985294342, -0.46908608078956604, 0.63223797082901, -0.1739896684885025, -0.13162001967430115, -0.12352050840854645, -0.06652995944023132, -0.2540268898010254, 0.334746778011322, 0.16082549095153809, 0.9694907665252686, 0.04729386419057846, 0.15498065948486328, 0.11518806219100952, -0.3309181332588196, 0.11469751596450806, -0.09529707580804825, -0.055607229471206665, -0.4986627399921417, -0.23652546107769012, -0.150140643119812, -0.14996223151683807, 0.03695333003997803, 0.4310850501060486, -0.3788285553455353, 0.35665157437324524, -0.3201095461845398, -0.029678653925657272, -0.15644343197345734, 0.176774263381958, -0.14080221951007843, -0.2388235628604889, -0.11668820679187775, -0.01697574555873871, 0.009541556239128113, 0.11326386034488678, 0.03705333545804024, 0.02693837694823742, 0.18994228541851044, -0.01980072259902954, 0.25040632486343384, 0.1620725691318512, -0.08534044772386551, 0.3151869773864746, -0.16686907410621643, -0.5314213633537292, -0.010757078416645527, 0.5266743302345276, 0.5019898414611816, 0.05033859983086586, 0.09279179573059082, -0.01297682523727417, 0.029586125165224075, 0.2790662348270416, -0.14641740918159485, -0.10454422980546951, 0.47247177362442017, 0.1752949357032776, -0.24537906050682068, 0.2079082727432251, -0.09597043693065643, -0.10675400495529175, 0.07702207565307617, -0.04533224552869797, 0.24146918952465057, -0.36509978771209717, 0.0446833074092865, 0.2673700451850891, 0.27660390734672546, -0.08503878116607666, -0.010688461363315582, 0.03559968248009682, 0.02741091325879097, 0.2962166368961334, 0.02165084332227707, -0.22681090235710144, 0.0739026814699173, 0.45795249938964844, 0.22980967164039612, 0.0274650901556015, 0.45297861099243164, -0.30274930596351624, 0.0437544584274292, -0.23488983511924744, 0.3578222095966339, 0.15582454204559326, -0.2728920578956604, 0.1640939712524414, 0.14993031322956085, 0.3521014451980591, -0.07665479928255081, -0.18729174137115479, 0.09608282893896103, 0.009518221020698547, -0.03171095997095108, -0.09279251098632812, -0.322853684425354, 0.1501920223236084, 0.3122365474700928, 0.3856065273284912, 0.2359103262424469, -0.28647810220718384, -0.04252442717552185, 0.48291194438934326, -0.20216584205627441, 0.22362694144248962, 0.28586986660957336, 0.29844075441360474, 0.015573054552078247, 0.1222398653626442, -0.26307183504104614, -0.39102989435195923, -0.04393985867500305, -0.2537713646888733, -0.2928432524204254, -0.11671428382396698, -0.09365034103393555, 0.16134358942508698, -0.1719064712524414, 0.28613972663879395, -0.3794545531272888, -0.44281870126724243, 0.2977694272994995, -0.2330530881881714, 0.17791934311389923, 0.26347821950912476, 0.24816662073135376, 0.22948698699474335, 0.19043023884296417, 0.35979321599006653, -0.32289624214172363, -0.03726205974817276, -0.20045658946037292, 0.17675158381462097, 0.019368469715118408, 0.04378422722220421, -0.00809326209127903, -0.1049269586801529, -0.5006386637687683, -0.06236346811056137, 0.570861279964447, 0.03778371587395668, 0.07529191672801971, -0.11215843260288239, -0.07330840080976486, 0.07649467140436172, 0.25858074426651, 0.142466202378273, -0.3166399300098419, -0.31156057119369507, 0.31528240442276, 0.10834678262472153, -0.16606110334396362, -0.14550326764583588, 0.25911781191825867, -0.3066036105155945, -0.22802932560443878, 0.16273176670074463, 0.040792543441057205, 0.003027498722076416, -0.337704598903656, 0.018823686987161636, 0.3602541983127594, -0.1565861701965332, 0.3047994375228882, 0.4423653483390808, -0.09671531617641449, -0.0677863359451294, 0.10520598292350769, 0.3428688943386078, 0.05839677155017853, 0.24083645641803741, -0.06066393107175827, 0.37788334488868713, -0.015873447060585022, 0.0611627958714962, -0.03119514137506485, -0.40037158131599426, 0.06756000220775604, 0.22075459361076355, -0.23215031623840332, 0.024522867053747177, 0.009770549833774567, 0.014513857662677765, 0.27084317803382874, -0.35103917121887207, -0.15195457637310028, 0.38623708486557007, -0.06748100370168686, 0.0649072527885437, 0.05013585835695267, -0.10280033200979233, 0.22033041715621948, 0.26041939854621887, -0.0059281885623931885, -0.3765159249305725, 0.3823731243610382, 0.15470018982887268, -0.03719224035739899, 0.14263664186000824, 0.09615400433540344, 0.16138407588005066, -0.05675602704286575, -0.22179961204528809, -0.06990844011306763, 0.015247426927089691, 0.16016799211502075, 0.04541561007499695, -0.04624707251787186, -0.11481726169586182, 0.052940137684345245, 0.11007760465145111, 0.3344463109970093, 0.3077137768268585, -0.03331992030143738, 0.0886465460062027, -0.014722682535648346, -0.10163313150405884, 0.010188242420554161, 0.2018379122018814, 0.00044877827167510986, 0.018006611615419388, 0.11056441068649292, 0.018414489924907684, 0.33748552203178406, -0.36151212453842163, 0.2868885099887848, 0.3628127872943878, -0.1820758879184723, -0.16692127287387848, 0.032259952276945114, 0.1311514675617218, -0.028860434889793396, 0.6571775674819946, -0.3129003345966339, -0.0014363471418619156, 0.11267157644033432, 0.02959439903497696, -0.130078986287117, 0.2919332981109619, 0.38862305879592896, -0.42226335406303406, -0.26381850242614746, -0.14157834649085999, -0.5935498476028442, -0.07036656886339188, 0.24319060146808624, 0.12785765528678894, -0.23381632566452026, 0.13241064548492432, 0.20796805620193481, 0.2505533695220947, -0.04677264392375946, -0.23026688396930695, 0.16955533623695374, 0.3301646113395691, 0.08325381577014923, -0.23906676471233368, -0.09245535731315613, 0.4059372544288635, -0.07990200817584991, -0.36208316683769226, 0.041507817804813385, 0.18964973092079163, -0.05733895301818848, 0.24552226066589355, 0.19197070598602295, 0.009455613791942596, 0.30012935400009155, 0.616253137588501, -0.019049370661377907, -0.0020519793033599854, -0.20478954911231995, 0.20923849940299988, 0.40316930413246155, 0.02227448858320713, -0.14015954732894897, -0.09945148974657059, 0.12383316457271576, 0.2696532905101776, -0.43713998794555664, 0.32722097635269165, -0.2485329806804657, -0.1709991693496704, 0.06427592784166336, 0.08514012396335602, -0.43158629536628723, 0.050964824855327606, 0.1431972086429596, 0.2185954600572586, 0.1820223331451416, 0.3784555494785309, -0.06858572363853455, 0.3610670268535614, -0.1881100833415985, -0.10090354084968567, 0.47537270188331604, -0.15663421154022217, -0.2016953080892563, -0.08702677488327026, 0.42870473861694336, -0.0821656659245491, 0.02847795933485031, -0.529352605342865, 0.09171725064516068, 0.4609176516532898, -0.2307266891002655, -0.05105339363217354, 0.4078030586242676, -0.07364840805530548, 0.1740233153104782, 0.04776502773165703, 0.4229543209075928, 0.10436408221721649, -0.32735443115234375, -0.174510195851326, -0.3433350920677185 ]
https://github.com/huggingface/datasets/issues/1993
How to load a dataset with load_from disk and save it again after doing transformations without changing the original?
@lhoestq I also found that cache in tmp directory gets updated after transformations. This is really problematic when using datasets interactively. Let's say we use the shards function to a dataset loaded with csv, atm when we do transformations to shards and combine them it updates the original csv cache.
I am using the latest datasets library. In my work, I first use **load_from_disk** to load a data set that contains 3.8Gb information. Then during my training process, I update that dataset object and add new elements and save it in a different place. When I save the dataset with **save_to_disk**, the original dataset which is already in the disk also gets updated. I do not want to update it. How to prevent from this?
50
How to load a dataset with load_from disk and save it again after doing transformations without changing the original? I am using the latest datasets library. In my work, I first use **load_from_disk** to load a data set that contains 3.8Gb information. Then during my training process, I update that dataset object and add new elements and save it in a different place. When I save the dataset with **save_to_disk**, the original dataset which is already in the disk also gets updated. I do not want to update it. How to prevent from this? @lhoestq I also found that cache in tmp directory gets updated after transformations. This is really problematic when using datasets interactively. Let's say we use the shards function to a dataset loaded with csv, atm when we do transformations to shards and combine them it updates the original csv cache.
[ -0.37754154205322266, -0.10952471941709518, 0.001331191509962082, 0.2857871651649475, 0.25839194655418396, 0.1318964660167694, -0.0723685771226883, -0.0919269472360611, -0.04141350835561752, -0.07030737400054932, -0.05451105535030365, 0.2699581980705261, 0.023235542699694633, 0.07323307543992996, 0.1965215504169464, 0.24763040244579315, 0.26209521293640137, 0.21151715517044067, -0.4262388050556183, -0.05111546441912651, -0.21858087182044983, -0.14059163630008698, -0.004783496260643005, -0.2865777611732483, -0.2252594381570816, -0.35676416754722595, -0.09278783202171326, 0.07167571038007736, 0.2163686454296112, 0.08951323479413986, 0.19704508781433105, 0.13676144182682037, 0.21895943582057953, 0.396248996257782, -0.00012119414168410003, 0.04042834788560867, -0.3316940665245056, -0.11564680188894272, -0.31544560194015503, -0.053797319531440735, 0.0001291334629058838, -0.2120242416858673, 0.05257900804281235, -0.2816850244998932, -0.04688817635178566, 0.006446825340390205, -0.10754147171974182, -0.3362385630607605, 0.5601175427436829, -0.2909088730812073, 0.06847010552883148, -0.12584367394447327, -0.3435749411582947, 0.14751994609832764, -0.27728626132011414, 0.33504629135131836, 0.13800902664661407, -0.10395476222038269, -0.08013346791267395, 0.34435927867889404, 0.015506640076637268, 0.24345126748085022, -0.2749490737915039, -0.1867038607597351, 0.3630915582180023, -0.03993500769138336, 0.05853574350476265, -0.25517863035202026, 0.21353667974472046, -0.05024309456348419, 0.7311307787895203, -0.4320095479488373, -0.25791382789611816, -0.25243857502937317, 0.06726016849279404, -0.06089776009321213, 0.18811863660812378, 0.2648540437221527, 0.10209621489048004, 0.17737530171871185, -0.667438268661499, -0.7337229251861572, -0.025395140051841736, 0.13377268612384796, -0.0163041390478611, -0.5745214223861694, 0.0006100451573729515, 0.14879098534584045, 0.06244301423430443, 0.23910456895828247, 0.48661723732948303, -0.2371116578578949, -0.3087269961833954, 0.19659940898418427, -0.30220600962638855, -0.18647046387195587, -0.22561463713645935, 0.23952162265777588, -0.10681107640266418, 0.16157938539981842, 0.07342471182346344, -0.0433913990855217, -0.38523659110069275, 0.12986712157726288, 0.14770938456058502, 0.32104843854904175, 0.15081241726875305, 0.2113255262374878, 0.10894609987735748, -0.11712917685508728, -0.22138240933418274, -0.07700525224208832, 0.25590088963508606, 0.0755554735660553, 0.6239593625068665, -0.2735372483730316, 0.17770522832870483, 0.02218533679842949, 0.1790609061717987, 0.016073908656835556, 0.14828893542289734, -0.03884988650679588, -0.1566101312637329, 0.3401574492454529, 0.045419737696647644, 0.17250952124595642, 0.18150398135185242, 0.15426847338676453, -0.060008034110069275, -0.14816808700561523, -0.17221175134181976, -0.14594587683677673, -0.29521840810775757, 0.4529227018356323, 0.16972310841083527, -0.007035089656710625, 0.08875465393066406, 0.4451133608818054, -0.4322246313095093, -0.12008990347385406, -0.023344896733760834, -0.15216748416423798, 0.4138382077217102, 0.23239657282829285, 0.13514742255210876, 0.21690984070301056, -0.030757639557123184, 0.028732389211654663, -0.08697949349880219, 0.6420636177062988, -0.3159516453742981, -0.15361689031124115, 0.2198784053325653, 0.08554714918136597, -0.20152632892131805, 0.13202828168869019, -0.6194596290588379, 0.17275813221931458, 0.2716614603996277, -0.13686932623386383, 0.15670594573020935, 0.04619128257036209, -0.38108962774276733, -0.24224509298801422, -0.0971098393201828, 0.3406156003475189, -0.4246295988559723, -0.21635185182094574, 0.2547138035297394, -0.12895001471042633, -0.22419211268424988, 0.264713317155838, -0.2679210305213928, 0.22540539503097534, -0.23470726609230042, -0.34675276279449463, 0.5462703108787537, 0.055227700620889664, -0.3988824784755707, 0.08374512940645218, 0.05449496954679489, -0.045362286269664764, -0.0010164529085159302, 0.5464827418327332, 0.1674206703901291, -0.1307813823223114, -0.516480565071106, 0.39730679988861084, 0.1192881390452385, 0.1762741506099701, 0.03911158815026283, -0.15148575603961945, 0.2610335350036621, -0.2685457468032837, -0.08253331482410431, 0.4303968548774719, 0.29137951135635376, 0.29227131605148315, 0.21428653597831726, 0.022637490183115005, 0.18943308293819427, 0.37391942739486694, -0.18425504863262177, 0.1289740800857544, -0.12209320068359375, 0.13271105289459229, -0.6422820687294006, 0.00011523813009262085, 0.1669108122587204, -0.6285803318023682, 0.2326987236738205, -0.08321350812911987, 0.024500597268342972, -0.15356390178203583, -0.02423897013068199, 0.06090521812438965, -0.10612989217042923, 0.019947119057178497, -0.0505513921380043, -0.22839005291461945, -0.24817362427711487, 0.6387433409690857, -0.029980188235640526, 0.10817316174507141, -0.6304493546485901, 0.35277047753334045, 0.2514105439186096, -0.24752897024154663, -0.3831186294555664, -0.12129133194684982, 0.20036864280700684, -0.0978030115365982, -0.21136385202407837, 0.47610175609588623, 0.22510401904582977, 0.3998032808303833, 0.006494220346212387, 0.25754642486572266, 0.05051395297050476, 0.04448363557457924, 0.21049284934997559, -0.18476887047290802, 0.08736128360033035, -0.09541532397270203, -0.1755373775959015, 0.01916029304265976, -0.20413735508918762, 0.07820252329111099, 0.10501445829868317, -0.2045370638370514, 0.10931931436061859, -0.2950010597705841, 0.011604445055127144, -0.2338980883359909, -0.3099152147769928, 0.14548471570014954, 0.3009771704673767, 0.11183441430330276, -0.08312618732452393, -0.18306514620780945, 0.23582036793231964, -0.23094384372234344, -0.027028687298297882, 0.0012549050152301788, -0.33785998821258545, -0.052565496414899826, -0.13863635063171387, 0.5303158164024353, 0.19115352630615234, 0.06689287722110748, -0.015223760157823563, 0.12227056920528412, 0.13134050369262695, -0.03623936325311661, -0.008472226560115814, 0.007145501673221588, 0.4104354977607727, 0.21278274059295654, -0.06096638739109039, 0.10459816455841064, -0.11689936369657516, 0.49432119727134705, 0.145518496632576, -0.13046328723430634, -0.35014957189559937, 0.10025539249181747, -0.15535922348499298, 0.007296822965145111, -0.31883111596107483, -0.09770859777927399, -0.20956335961818695, 0.10841001570224762, -0.26987820863723755, 0.7121254801750183, 0.26778021454811096, 0.21807751059532166, 0.13298028707504272, 0.10297833383083344, -0.07106222957372665, -0.40813693404197693, -0.09470370411872864, -0.07534363865852356, -0.041188329458236694, -0.08888207376003265, 0.03538145869970322, -0.030645102262496948, 0.3885793685913086, -0.11652334779500961, 0.10273917764425278, -0.458065927028656, 0.07158342748880386, -0.08045652508735657, 0.10026374459266663, 0.12043295800685883, -0.25510531663894653, 0.24486792087554932, -0.4125902056694031, 0.032543912529945374, -0.10878831148147583, -0.45319706201553345, -0.19317251443862915, 0.045939989387989044, 0.054023001343011856, 0.13994832336902618, 0.03385845944285393, -0.17221000790596008, -0.015442145988345146, -0.03750976175069809, -0.16208979487419128, -0.16273178160190582, 0.05639650672674179, 0.16280952095985413, 0.07242846488952637, -0.313612699508667, 0.1613573282957077, 0.1359170377254486, -0.3148086667060852, -0.6189990043640137, 0.3667175769805908, 0.12393753230571747, -0.13686257600784302, 0.24166163802146912, -0.11942173540592194, -0.05199270322918892, 0.525345504283905, -0.6610501408576965, -0.05363111570477486, 0.027838636189699173, 0.14800317585468292, -0.34200602769851685, 0.3685709238052368, 0.3670852482318878, 0.058770034462213516, 0.017557626590132713, -0.07956738024950027, -0.21936814486980438, 0.03554324433207512, 0.19816717505455017, 0.34162306785583496, -0.14889022707939148, 0.16826730966567993, -0.01255166344344616, 0.35556280612945557, -0.0052124615758657455, -0.18766839802265167, 0.3496343493461609, 0.27601832151412964, 0.5141158103942871, -0.18929705023765564, -0.10552217811346054, -0.5744801759719849, -0.17700660228729248, -0.1977827548980713, 0.03076384961605072, 0.10370471328496933, -0.045497894287109375, -0.13610514998435974, -0.1728493869304657, -0.3196498155593872, -0.16770659387111664, 0.02158663421869278, -0.38026395440101624, 0.3766798675060272, 0.12586751580238342, 0.22622033953666687, 0.04659002646803856, -0.19719812273979187, -0.006937398575246334, 0.22071930766105652, 0.32635927200317383, 0.07621343433856964, -0.19634202122688293, 0.05602696165442467, 0.0341767854988575, 0.24277332425117493, -0.1556180715560913, -0.029406316578388214, 0.14116813242435455, -0.10309722274541855, 0.03892574831843376, 0.3316905200481415, 0.736865758895874, 0.09185371547937393, 0.09345032274723053, 0.07272379100322723, -0.3702746331691742, -0.29729241132736206, -0.01858370564877987, 0.05174940451979637, -0.21089595556259155, -0.1065102219581604, 0.6030529737472534, 0.1897173821926117, -0.09302746504545212, -0.38806191086769104, 0.49085456132888794, -0.3521106243133545, -0.4243791997432709, -0.11214262247085571, -0.07849497348070145, -0.4928719401359558, -0.19604453444480896, -0.3165834844112396, -0.17816388607025146, -0.11995736509561539, 0.01841319352388382, -0.3197627067565918, -0.11780097335577011, 0.0356118381023407, -0.15589001774787903, 0.33355316519737244, 0.3068917989730835, 0.08242495357990265, 0.10434006154537201, 0.18596936762332916, 0.05674288421869278, 0.31272390484809875, -0.1555328667163849, -0.053060322999954224, -0.17019441723823547, 0.20262667536735535, 0.06485477834939957, 0.07028333842754364, -0.005834939889609814, -0.030765578150749207, -0.13826154172420502, -0.21538369357585907, -0.26128387451171875, -0.010475407354533672, -0.22100459039211273, -0.022710343822836876, -0.1755327731370926, -0.48747530579566956, 0.45631781220436096, -0.10107362270355225, -0.18836715817451477, -0.14760036766529083, -0.07018621265888214, -0.30304771661758423, 0.16354861855506897, 0.13517817854881287, 0.8293340802192688, -0.008127205073833466, 0.15648004412651062, 0.06352736055850983, -0.10721798241138458, 0.02561427652835846, -0.13223110139369965, -0.06669959425926208, -0.33280327916145325, -0.2906268239021301, -0.18256793916225433, -0.18342627584934235, -0.018612384796142578, 0.3404781222343445, -0.3613784909248352, 0.3638465106487274, -0.2523617744445801, -0.012918345630168915, -0.06844083219766617, -0.006190929561853409, -0.08278927206993103, -0.23925504088401794, -0.12050020694732666, 0.017815236002206802, -0.12636131048202515, 0.020652074366807938, -0.01705729402601719, 0.1329820603132248, 0.16538675129413605, 0.08834430575370789, 0.36027467250823975, 0.08598506450653076, -0.061452485620975494, 0.3906382918357849, -0.16731324791908264, -0.40164464712142944, -0.10591472685337067, 0.6008508801460266, 0.4341292381286621, 0.051047489047050476, 0.09762128442525864, -0.034993577748537064, 0.04908599704504013, 0.2996880114078522, -0.16710993647575378, -0.029813971370458603, 0.4338349997997284, 0.2377781867980957, -0.008645616471767426, 0.011345990002155304, -0.10013943165540695, -0.13905319571495056, -0.017567485570907593, -0.06503652036190033, 0.044656746089458466, -0.36608564853668213, 0.04717113450169563, 0.265533447265625, 0.34601402282714844, 0.03434695675969124, 0.007505050860345364, 0.07994652539491653, 0.09046473354101181, 0.3925035297870636, 0.03614816814661026, -0.32907938957214355, 0.05187224596738815, 0.5086260437965393, 0.1846584677696228, -0.09788474440574646, 0.28652074933052063, -0.27586570382118225, 0.024218156933784485, -0.18409466743469238, 0.41328203678131104, 0.03703765198588371, -0.20014429092407227, 0.15993840992450714, 0.09372332692146301, 0.43839913606643677, 0.014929032884538174, -0.1348426192998886, 0.045336686074733734, 0.0022430419921875, 0.012987364083528519, -0.05730122700333595, -0.3163818120956421, 0.11817876994609833, 0.2467707395553589, 0.35346806049346924, 0.35820677876472473, -0.2377304881811142, -0.009120965376496315, 0.47052001953125, -0.18575167655944824, 0.1302451342344284, 0.35190635919570923, 0.32944637537002563, 0.2843283414840698, 0.12919509410858154, -0.291562557220459, -0.34963491559028625, -0.06220432370901108, -0.22978608310222626, -0.31737345457077026, -0.12544888257980347, 0.005990421399474144, 0.17603078484535217, -0.05344422906637192, 0.15711796283721924, -0.34032514691352844, -0.4503933787345886, 0.2765612304210663, -0.2510404884815216, 0.136073037981987, 0.1708594560623169, 0.08420510590076447, 0.1272507756948471, 0.19555838406085968, 0.4348476231098175, -0.2793300449848175, -0.020502813160419464, -0.209992915391922, 0.0822775661945343, -0.13716816902160645, -0.04765022546052933, 0.06809382140636444, -0.11273150146007538, -0.5614908337593079, 0.007177270948886871, 0.7099936604499817, 0.14699003100395203, 0.0845738872885704, -0.22616706788539886, 0.030661944299936295, 0.15498283505439758, 0.24252137541770935, 0.026594843715429306, -0.2630420923233032, -0.3262077569961548, 0.3222830891609192, 0.10722320526838303, 0.000780940055847168, -0.11873778700828552, 0.26671430468559265, -0.1083325669169426, -0.2915620803833008, 0.16601239144802094, 0.11827237904071808, 0.049198925495147705, -0.18925265967845917, 0.08280625939369202, 0.4146974980831146, -0.2138018161058426, 0.32868117094039917, 0.5099005699157715, -0.21692802011966705, 0.05001319199800491, 0.13840675354003906, 0.3438335359096527, -0.18013429641723633, 0.43856608867645264, 0.022765323519706726, 0.4802241921424866, -0.0042785294353961945, 0.0963331013917923, -0.04117985814809799, -0.4797661006450653, 0.086685910820961, 0.06853549182415009, -0.2614331841468811, 0.09010987728834152, 0.03875084966421127, 0.0042930468916893005, 0.17114628851413727, -0.39643871784210205, -0.17469827830791473, 0.4800511598587036, -0.15264779329299927, 0.09491918981075287, 0.101808100938797, -0.11124689877033234, 0.2824839651584625, 0.21118322014808655, -0.05955071374773979, -0.2754018306732178, 0.4276590347290039, 0.16970708966255188, -0.04299236834049225, 0.06445923447608948, 0.09705641865730286, 0.11542386561632156, -0.11765740066766739, -0.1695510447025299, 0.08830537647008896, -0.10255087912082672, 0.08091872185468674, 0.026896649971604347, -0.00968918763101101, -0.21101415157318115, 0.0987919494509697, 0.08454622328281403, 0.38342300057411194, 0.30577364563941956, -0.023361116647720337, 0.16607022285461426, 0.1643570214509964, -0.1570236086845398, -0.01902516558766365, 0.14024509489536285, -0.0021698176860809326, 0.04489751160144806, 0.21790523827075958, -0.03003885969519615, 0.4400354027748108, -0.37978094816207886, 0.23819485306739807, 0.30177822709083557, -0.10426728427410126, -0.16339436173439026, 0.057911358773708344, 0.1083805039525032, 0.03342190757393837, 0.5928041338920593, -0.3671613335609436, -0.024095360189676285, 0.0383855439722538, 0.030553054064512253, 0.0665910467505455, 0.4713371992111206, 0.2755862772464752, -0.32694560289382935, -0.2479603886604309, -0.14929339289665222, -0.5072795152664185, -0.05646554380655289, 0.34513384103775024, 0.3302525579929352, -0.34885016083717346, 0.09018337726593018, 0.09226915240287781, 0.2255481779575348, -0.005446255207061768, -0.16825984418392181, 0.17589761316776276, 0.3226557970046997, 0.04734252020716667, -0.23220916092395782, -0.022587716579437256, 0.29315561056137085, -0.11412525922060013, -0.18152058124542236, 0.11771170794963837, 0.1478695124387741, -0.017085347324609756, 0.17777396738529205, 0.14910873770713806, -0.0692705512046814, 0.3727119266986847, 0.5638625621795654, 0.012229437939822674, 0.08368780463933945, -0.10309778153896332, 0.39023250341415405, 0.3161497712135315, -0.1495489776134491, -0.05360809713602066, -0.14879408478736877, 0.06823059916496277, 0.15757550299167633, -0.5072301626205444, 0.2509377598762512, -0.1679806262254715, -0.208499014377594, 0.09727536141872406, 0.15407206118106842, -0.4413490295410156, -0.08456553518772125, 0.010088354349136353, 0.19329555332660675, 0.05996221676468849, 0.3546241819858551, 0.03193286806344986, 0.4073847234249115, -0.16564011573791504, -0.14172331988811493, 0.3911101818084717, -0.19098195433616638, -0.2934282720088959, -0.10841768234968185, 0.24967288970947266, -0.1243700161576271, -0.1343962699174881, -0.34101390838623047, 0.10879858583211899, 0.4196593463420868, -0.2753850817680359, -0.01273312047123909, 0.4381881356239319, -0.14234592020511627, 0.13404656946659088, 0.0069050975143909454, 0.5526454448699951, 0.10680556297302246, -0.26770782470703125, -0.08256204426288605, -0.2169012427330017 ]
https://github.com/huggingface/datasets/issues/1993
How to load a dataset with load_from disk and save it again after doing transformations without changing the original?
I plan to update the save_to_disk method in #2025 so I can make sure the new save_to_disk doesn't corrupt your cache files. But from your last message it looks like save_to_disk isn't the root cause right ?
I am using the latest datasets library. In my work, I first use **load_from_disk** to load a data set that contains 3.8Gb information. Then during my training process, I update that dataset object and add new elements and save it in a different place. When I save the dataset with **save_to_disk**, the original dataset which is already in the disk also gets updated. I do not want to update it. How to prevent from this?
37
How to load a dataset with load_from disk and save it again after doing transformations without changing the original? I am using the latest datasets library. In my work, I first use **load_from_disk** to load a data set that contains 3.8Gb information. Then during my training process, I update that dataset object and add new elements and save it in a different place. When I save the dataset with **save_to_disk**, the original dataset which is already in the disk also gets updated. I do not want to update it. How to prevent from this? I plan to update the save_to_disk method in #2025 so I can make sure the new save_to_disk doesn't corrupt your cache files. But from your last message it looks like save_to_disk isn't the root cause right ?
[ -0.31050845980644226, -0.06806229799985886, 0.004688400775194168, 0.2137424498796463, 0.3093697428703308, 0.09057600051164627, -0.03542671725153923, 0.05278892442584038, -0.07327672094106674, 0.006163157522678375, 0.0222795307636261, 0.3242504894733429, 0.08983743190765381, 0.10398789495229721, 0.17676064372062683, 0.25470852851867676, 0.25003373622894287, 0.19376228749752045, -0.3340504765510559, -0.02681446261703968, -0.22936399281024933, -0.1129300594329834, 0.10871069133281708, -0.283557653427124, -0.3304685950279236, -0.3502229154109955, -0.06173615902662277, 0.0674627423286438, 0.10107480734586716, 0.002596410922706127, 0.16506333649158478, 0.1604154109954834, 0.24314475059509277, 0.289010226726532, -0.00011890221503563225, 0.0036650821566581726, -0.27938807010650635, -0.0914112851023674, -0.31821200251579285, -0.06279079616069794, 0.02377169579267502, -0.16877588629722595, 0.06436233967542648, -0.27843526005744934, -0.026872847229242325, 0.04224468767642975, -0.1302841752767563, -0.20418092608451843, 0.6294939517974854, -0.20928595960140228, 0.12258811295032501, -0.14593563973903656, -0.18162305653095245, 0.026853663846850395, -0.23283708095550537, 0.2694655656814575, 0.055440790951251984, 0.03937356919050217, 0.039252717047929764, 0.3304748237133026, -0.08966740220785141, 0.22549913823604584, -0.30032044649124146, -0.23343630135059357, 0.4113834500312805, -0.06182360649108887, 0.17703410983085632, -0.35279881954193115, 0.17960500717163086, -0.04075323045253754, 0.8042431473731995, -0.3945493698120117, -0.22021600604057312, -0.27045899629592896, 0.07716482877731323, -0.12691113352775574, 0.1884327083826065, 0.0927257388830185, 0.07419534027576447, 0.1356610804796219, -0.542951762676239, -0.8058204054832458, -0.07928216457366943, 0.04397299140691757, 0.0849197655916214, -0.5327286720275879, -0.028630882501602173, 0.11435984075069427, 0.2698805332183838, 0.2803546190261841, 0.5117334127426147, -0.18186932802200317, -0.2572774887084961, 0.11778612434864044, -0.29568493366241455, -0.297961562871933, -0.2101859450340271, 0.20073828101158142, -0.037049002945423126, 0.2396801859140396, 0.13173072040081024, -0.044124193489551544, -0.2862705588340759, 0.07306365668773651, 0.13369086384773254, 0.3349231779575348, 0.07645796239376068, 0.11151347309350967, 0.09284266829490662, 0.08283068239688873, -0.19143229722976685, -0.08878760784864426, 0.30119943618774414, -0.025359440594911575, 0.6220217347145081, -0.2496522068977356, 0.30283063650131226, -0.08097396790981293, 0.13197548687458038, 0.01980217546224594, 0.16692262887954712, -0.030758898705244064, -0.14100514352321625, 0.23880639672279358, 0.12607692182064056, 0.2384851574897766, 0.16252142190933228, 0.22771568596363068, -0.08907615393400192, -0.09524969011545181, -0.19749408960342407, -0.04202718660235405, -0.2991294264793396, 0.4488776624202728, 0.17971131205558777, -0.055035028606653214, 0.06230176240205765, 0.44483986496925354, -0.42687177658081055, -0.1361713856458664, -0.055810585618019104, -0.20857979357242584, 0.336028128862381, 0.20151080191135406, 0.10506217181682587, 0.20187191665172577, -0.02057567611336708, -0.06198548898100853, -0.08048903197050095, 0.6188935041427612, -0.43601125478744507, -0.2547796368598938, 0.07202789932489395, 0.1330968737602234, -0.12926284968852997, 0.1620909869670868, -0.6500715017318726, 0.14816299080848694, 0.1823384314775467, -0.1603376418352127, 0.22861716151237488, 0.0785052552819252, -0.37905946373939514, -0.25011417269706726, -0.07686236500740051, 0.268169105052948, -0.3776041865348816, -0.09197311848402023, 0.14218272268772125, -0.19087278842926025, -0.07864267379045486, 0.2338191270828247, -0.32301223278045654, 0.25655031204223633, -0.2728484272956848, -0.2951151728630066, 0.5308730602264404, 0.10956887900829315, -0.41933491826057434, 0.1607087254524231, -0.04158098250627518, -0.06763408333063126, 0.01878490298986435, 0.5070459246635437, 0.12845420837402344, -0.21252353489398956, -0.31084784865379333, 0.24781741201877594, 0.10980693995952606, 0.055884949862957, -0.09571228921413422, -0.17687390744686127, 0.23560453951358795, -0.29864636063575745, -0.061473798006772995, 0.45171448588371277, 0.28618136048316956, 0.42018505930900574, 0.2112654745578766, 0.009220141917467117, 0.0990409329533577, 0.37046313285827637, -0.07464052736759186, -0.052176736295223236, -0.22539523243904114, 0.20607709884643555, -0.6755849123001099, 0.04093020409345627, 0.17923922836780548, -0.6058936715126038, 0.3495004177093506, -0.12510928511619568, -0.010067041963338852, -0.20554663240909576, -0.06848257780075073, 0.028655897825956345, -0.04679463431239128, 0.0033020898699760437, -0.03532117232680321, -0.16372255980968475, -0.27106809616088867, 0.5333382487297058, -0.08458106219768524, 0.07584381848573685, -0.6207578182220459, 0.34598422050476074, 0.13164597749710083, -0.16271038353443146, -0.32092180848121643, -0.07084741443395615, 0.2944810092449188, 0.022220924496650696, -0.13682428002357483, 0.3887172043323517, 0.19619426131248474, 0.4301026463508606, 0.0012600459158420563, 0.2552751302719116, 0.09395188838243484, -0.042263954877853394, 0.0979757308959961, -0.19940735399723053, 0.11120730638504028, -0.13044090569019318, -0.12597304582595825, -0.05688205361366272, -0.2236299067735672, 0.06193607300519943, 0.04391699284315109, -0.21454648673534393, 0.04352092742919922, -0.341788649559021, 0.026366734877228737, -0.2048584222793579, -0.21585185825824738, 0.1839473843574524, 0.34291672706604004, 0.159992977976799, -0.16570726037025452, -0.1038520559668541, 0.2246280014514923, -0.25855469703674316, -0.08392836898565292, 0.06092776358127594, -0.1497136652469635, -0.0967743918299675, -0.15955975651741028, 0.5698386430740356, 0.1799432933330536, 0.07228956371545792, 0.09528926014900208, 0.13224491477012634, 0.07800789922475815, -0.07570011913776398, 0.006312154233455658, -0.009838476777076721, 0.5663114190101624, 0.26228824257850647, -0.035103049129247665, 0.11737051606178284, -0.1512572467327118, 0.4364985525608063, 0.1587659865617752, -0.03202773630619049, -0.33392229676246643, 0.09730323404073715, -0.12079882621765137, 0.04361535608768463, -0.3793644607067108, -0.11524366587400436, -0.2534183859825134, 0.06178784370422363, -0.17072321474552155, 0.7471994161605835, 0.24281474947929382, 0.14776404201984406, 0.010200686752796173, 0.10778719186782837, -0.12988848984241486, -0.3767109215259552, -0.158643901348114, 0.10136239975690842, -0.01913846656680107, -0.05152071267366409, 0.12565861642360687, -0.08107221126556396, 0.38478535413742065, -0.04496809095144272, -0.018450677394866943, -0.5178280472755432, 0.07051035016775131, -0.0671273022890091, 0.07220448553562164, 0.09668461978435516, -0.1959405243396759, 0.1818971037864685, -0.36147522926330566, -0.06633975356817245, -0.1263328194618225, -0.45907753705978394, -0.18059484660625458, 0.05638711154460907, 0.0017031051684170961, 0.26456618309020996, -0.06022276729345322, -0.2389342188835144, 0.0197036974132061, -0.060427308082580566, -0.18623392283916473, -0.21047399938106537, 0.06634801626205444, 0.06242956593632698, 0.1308450996875763, -0.2201140969991684, 0.28576356172561646, 0.0032415734604001045, -0.32363182306289673, -0.6576060056686401, 0.4279024600982666, 0.17794500291347504, -0.20014098286628723, 0.3122071623802185, -0.11042672395706177, -0.026973258703947067, 0.40687811374664307, -0.5890812873840332, -0.19383692741394043, 0.008389091119170189, 0.10470893979072571, -0.41421759128570557, 0.22154121100902557, 0.3652362525463104, -0.02052387222647667, -0.042142920196056366, -0.0373716801404953, -0.25526776909828186, 0.09538687765598297, 0.15433946251869202, 0.4772273004055023, -0.20855984091758728, 0.2322051227092743, 0.03582647815346718, 0.385961651802063, -0.05119570717215538, -0.04701732471585274, 0.38214513659477234, 0.2632104158401489, 0.5747000575065613, -0.25824442505836487, -0.13345614075660706, -0.5062966346740723, -0.251956045627594, -0.30961960554122925, -0.03411507606506348, -0.04070049896836281, -0.06765488535165787, -0.1260344386100769, -0.24268598854541779, -0.2178797423839569, -0.19505910575389862, 0.07970456779003143, -0.28898224234580994, 0.32724514603614807, 0.003829067572951317, 0.19084933400154114, 0.18681587278842926, -0.2061285376548767, -0.013895631767809391, 0.21371760964393616, 0.39980176091194153, 0.08000756800174713, -0.32756340503692627, 0.014029037207365036, -0.2869061231613159, 0.20754599571228027, -0.20995956659317017, 0.0030589355155825615, 0.0532289557158947, -0.013841576874256134, 0.08948179334402084, 0.20360995829105377, 0.7742400765419006, 0.15491260588169098, 0.1421176940202713, 0.16299507021903992, -0.40927913784980774, -0.21157054603099823, 0.0028163492679595947, 0.09951868653297424, -0.23128530383110046, -0.14083394408226013, 0.6834015250205994, 0.13785505294799805, -0.11648226529359818, -0.40729227662086487, 0.4617176353931427, -0.2899159789085388, -0.24828089773654938, -0.16480381786823273, -0.2642423212528229, -0.4946276843547821, -0.14943870902061462, -0.22425490617752075, -0.10948433727025986, -0.19167460501194, 0.12370006740093231, -0.19405609369277954, -0.10666557401418686, 0.05622768774628639, -0.1836002618074417, 0.3257082402706146, 0.30641454458236694, 0.02793821692466736, 0.1640269160270691, 0.18483299016952515, 0.13145682215690613, 0.3027803301811218, -0.11241088807582855, -0.03729468584060669, -0.07904092967510223, 0.14095984399318695, 0.07190482318401337, 0.1694464534521103, 0.006110629998147488, 0.01762453466653824, -0.011918336153030396, -0.17467813193798065, -0.2852496802806854, -0.07221363484859467, -0.1454935371875763, -0.17139121890068054, -0.293667197227478, -0.43445152044296265, 0.5158483982086182, -0.04229428619146347, -0.10939878225326538, -0.11007913947105408, -0.1075986921787262, -0.2939424514770508, 0.12976056337356567, 0.22622624039649963, 0.9243403077125549, 0.08838651329278946, 0.18149946630001068, 0.08760860562324524, -0.1721743643283844, 0.01670827530324459, -0.04237225651741028, -0.046322062611579895, -0.3026044964790344, -0.365731805562973, -0.17605933547019958, -0.14439591765403748, 0.047769635915756226, 0.2639944553375244, -0.3115512430667877, 0.3357238471508026, -0.29093724489212036, -0.10348166525363922, -0.10468942672014236, -0.007561888545751572, -0.2122485637664795, -0.24587315320968628, -0.20508241653442383, 0.03132512420415878, -0.15154805779457092, -0.02738386020064354, -0.031810447573661804, -0.004562385380268097, 0.2649882137775421, -0.0017586387693881989, 0.35586053133010864, 0.15692642331123352, -0.08030693233013153, 0.29898810386657715, -0.1692276895046234, -0.4347161054611206, -0.053096652030944824, 0.5133088827133179, 0.4914640784263611, 0.011236831545829773, 0.009452808648347855, -0.05532298609614372, -0.023515380918979645, 0.35990068316459656, -0.18109087646007538, -0.19407188892364502, 0.4862326383590698, 0.08695357292890549, -0.05904064700007439, 0.049781255424022675, -0.04200213402509689, -0.29192155599594116, -0.04743131250143051, -0.12876789271831512, 0.1325778067111969, -0.27954378724098206, -0.04591233283281326, 0.2894846796989441, 0.2738041281700134, -0.0742640346288681, 0.054025404155254364, 0.08345428854227066, 0.009032304398715496, 0.32218945026397705, -0.045265745371580124, -0.3151637613773346, 0.05431612581014633, 0.5431888103485107, 0.18040558695793152, -0.046472273766994476, 0.3360171914100647, -0.3092155158519745, 0.05230017751455307, -0.2045600414276123, 0.3989340364933014, 0.17328988015651703, -0.14320997893810272, 0.13800781965255737, 0.020450081676244736, 0.44395768642425537, -0.031134916469454765, -0.024284932762384415, 0.09927064180374146, -0.008415795862674713, 0.11964020133018494, -0.04809582233428955, -0.3914588391780853, 0.13006895780563354, 0.24585191905498505, 0.381808340549469, 0.32046690583229065, -0.17630568146705627, 0.002813173457980156, 0.3804043233394623, -0.2188311219215393, 0.1583353579044342, 0.28091415762901306, 0.2071997970342636, 0.22060324251651764, 0.11623768508434296, -0.26570701599121094, -0.328016996383667, -0.05145522952079773, -0.15947552025318146, -0.30512455105781555, -0.1652148962020874, -0.030293460935354233, 0.1364436149597168, -0.03757680580019951, 0.18995536863803864, -0.25655055046081543, -0.4506433606147766, 0.267779141664505, -0.12954583764076233, 0.14293760061264038, 0.24733075499534607, 0.2051232010126114, 0.15214522182941437, 0.06534646451473236, 0.4487793743610382, -0.2328961044549942, -0.1185055524110794, -0.2105090618133545, 0.12331835180521011, -0.020708993077278137, -0.002241235226392746, 0.05803251266479492, -0.1482616364955902, -0.5246191024780273, -0.0672188326716423, 0.5569460988044739, 0.14249378442764282, -0.07652124017477036, -0.20131085813045502, 0.006890803575515747, 0.2139700949192047, 0.21155259013175964, 0.051049187779426575, -0.34327074885368347, -0.27871596813201904, 0.3432043790817261, 0.14426597952842712, -0.01604442670941353, -0.22548097372055054, 0.24616429209709167, -0.18069592118263245, -0.3061957359313965, 0.1442253291606903, 0.17676375806331635, -0.058568812906742096, -0.27548569440841675, 0.15890344977378845, 0.2719602584838867, -0.32559722661972046, 0.38286811113357544, 0.5380002856254578, -0.25912556052207947, 0.009625915437936783, 0.22572189569473267, 0.2819708585739136, -0.13357672095298767, 0.4269307851791382, 0.009849905967712402, 0.5303927659988403, -0.03958237171173096, 0.1332312971353531, -0.06337357312440872, -0.4151780605316162, 0.07029633969068527, 0.16498884558677673, -0.276658833026886, 0.060055531561374664, 0.024321015924215317, -0.09798028320074081, 0.14325879514217377, -0.4174812436103821, -0.15071195363998413, 0.41921475529670715, -0.24841928482055664, 0.1074254959821701, 0.05797527730464935, -0.11203993111848831, 0.28260207176208496, 0.2744210362434387, -0.05361952260136604, -0.22684119641780853, 0.4427158832550049, 0.12553973495960236, -0.1913318783044815, 0.20443807542324066, 0.1249767318367958, 0.1588975340127945, -0.09931295365095139, -0.11698324978351593, 0.11477227509021759, -0.08488626778125763, -0.0037678852677345276, 0.029173944145441055, 0.029879361391067505, -0.18094222247600555, 0.11180337518453598, 0.1676972657442093, 0.27837198972702026, 0.30594703555107117, -0.022886283695697784, 0.16799293458461761, 0.08274500072002411, -0.025614924728870392, -0.0337703712284565, 0.21223345398902893, 0.0137034822255373, 0.014026756398379803, 0.3118372857570648, -0.03626145049929619, 0.46307986974716187, -0.34196481108665466, 0.206288680434227, 0.41294118762016296, -0.10739969462156296, -0.1485196352005005, 0.09045715630054474, 0.12784001231193542, -0.03781129792332649, 0.5705618858337402, -0.2957130968570709, -0.01607714593410492, 0.012491741217672825, 0.03952551260590553, 0.12305039167404175, 0.43322691321372986, 0.2128029316663742, -0.4697754681110382, -0.2823476791381836, -0.16648954153060913, -0.6273468136787415, -0.05090007930994034, 0.32536548376083374, 0.37018048763275146, -0.22585631906986237, 0.11184298992156982, 0.07073675841093063, 0.2098543494939804, 0.03691679984331131, -0.23511098325252533, 0.15032634139060974, 0.299960196018219, 0.12349219620227814, -0.15950165688991547, 0.05034635588526726, 0.2770724296569824, -0.13497623801231384, -0.23883995413780212, 0.1724778711795807, 0.19705498218536377, -0.014319460839033127, 0.2137266844511032, 0.13892130553722382, -0.15568257868289948, 0.4832550585269928, 0.539031982421875, 0.13823243975639343, 0.05344154313206673, -0.18222880363464355, 0.33232712745666504, 0.2797112762928009, -0.058152202516794205, -0.16947253048419952, -0.17954689264297485, 0.07464145869016647, 0.19315171241760254, -0.3903319835662842, 0.38528406620025635, -0.26981624960899353, -0.0080448342487216, 0.07300570607185364, 0.12109638005495071, -0.5197294354438782, 0.02090476267039776, 0.13112515211105347, 0.17183172702789307, 0.17206226289272308, 0.4176314175128937, 0.04504406452178955, 0.35358959436416626, -0.2674763798713684, -0.15314914286136627, 0.4640336036682129, -0.1586667001247406, -0.3031255900859833, -0.15872064232826233, 0.30974599719047546, 0.026946280151605606, -0.06417220830917358, -0.36602821946144104, 0.021053336560726166, 0.358717679977417, -0.2671586573123932, -0.026952259242534637, 0.5555731058120728, -0.2037762999534607, 0.15760411322116852, 0.08783349394798279, 0.5945920944213867, 0.09697527438402176, -0.30531856417655945, -0.08827914297580719, -0.32908761501312256 ]
https://github.com/huggingface/datasets/issues/1993
How to load a dataset with load_from disk and save it again after doing transformations without changing the original?
ok, one more thing. When we use save_to_disk there are two files other than .arrow. dataset_info.json and state.json. Sometimes most of the fields in the dataset_infor.json are null, especially when saving dataset objects. Anyways I think load_from_disk uses the arrow files mentioned in state.json right?
I am using the latest datasets library. In my work, I first use **load_from_disk** to load a data set that contains 3.8Gb information. Then during my training process, I update that dataset object and add new elements and save it in a different place. When I save the dataset with **save_to_disk**, the original dataset which is already in the disk also gets updated. I do not want to update it. How to prevent from this?
45
How to load a dataset with load_from disk and save it again after doing transformations without changing the original? I am using the latest datasets library. In my work, I first use **load_from_disk** to load a data set that contains 3.8Gb information. Then during my training process, I update that dataset object and add new elements and save it in a different place. When I save the dataset with **save_to_disk**, the original dataset which is already in the disk also gets updated. I do not want to update it. How to prevent from this? ok, one more thing. When we use save_to_disk there are two files other than .arrow. dataset_info.json and state.json. Sometimes most of the fields in the dataset_infor.json are null, especially when saving dataset objects. Anyways I think load_from_disk uses the arrow files mentioned in state.json right?
[ -0.3007221817970276, -0.06920690834522247, -0.00548890233039856, 0.268324077129364, 0.18687604367733002, 0.08930013328790665, -0.09074194729328156, -0.05021687224507332, -0.09361155331134796, -0.029689237475395203, 0.08453071117401123, 0.39229416847229004, 0.09210685640573502, 0.2010052502155304, 0.19155588746070862, 0.21762517094612122, 0.27557864785194397, 0.25415435433387756, -0.29811495542526245, -0.08494497090578079, -0.18265840411186218, -0.201149120926857, 0.035146020352840424, -0.24502967298030853, -0.20570378005504608, -0.3581506907939911, -0.06777114421129227, 0.015392981469631195, 0.12255032360553741, 0.024549070745706558, 0.13400736451148987, 0.08922439813613892, 0.252814382314682, 0.269657701253891, -0.00012167602108092979, 0.04756750911474228, -0.30470824241638184, -0.10010555386543274, -0.3526187837123871, -0.14128859341144562, -0.06971930712461472, -0.22124145925045013, 0.07195178419351578, -0.30706626176834106, 0.05899576097726822, -0.2824414372444153, -0.12607313692569733, -0.24507825076580048, 0.6672535538673401, -0.2722015678882599, 0.06997464597225189, -0.12845972180366516, -0.16179445385932922, 0.097696952521801, -0.28881365060806274, 0.3928675651550293, 0.18045806884765625, 0.08343440294265747, -0.024898119270801544, 0.3822440505027771, -0.021969608962535858, 0.1612483710050583, -0.20002049207687378, -0.25275859236717224, 0.38334161043167114, -0.007643192075192928, 0.2212197184562683, -0.2953319549560547, 0.14677774906158447, 0.01357843354344368, 0.8064631819725037, -0.4050227999687195, -0.25748753547668457, -0.28823626041412354, 0.15362894535064697, -0.05805876478552818, 0.149630606174469, 0.215699702501297, 0.021887417882680893, 0.1402101069688797, -0.5136809945106506, -0.8684419393539429, -0.12668460607528687, 0.1264936625957489, 0.1287238448858261, -0.5532697439193726, -0.022964976727962494, 0.16374549269676208, 0.20248980820178986, 0.21852456033229828, 0.48604726791381836, -0.3468027412891388, -0.26651284098625183, 0.10810063779354095, -0.24160371720790863, -0.2579503059387207, -0.35436028242111206, 0.10118012130260468, -0.011411022394895554, 0.2894113063812256, 0.14066657423973083, -0.08367835730314255, -0.35676372051239014, 0.16038523614406586, 0.24140551686286926, 0.2809044420719147, 0.2183111011981964, 0.16930638253688812, 0.07399682700634003, -0.06319060921669006, -0.18618278205394745, -0.09705065935850143, 0.18621620535850525, 0.04151953384280205, 0.5600596070289612, -0.3111509680747986, 0.22956709563732147, -0.012257423251867294, 0.15028706192970276, 0.02281995862722397, 0.08954744786024094, -0.11794569343328476, -0.14258435368537903, 0.26709461212158203, 0.12976254522800446, 0.21942806243896484, 0.15935416519641876, 0.24073198437690735, 0.04234771430492401, -0.03760584071278572, -0.14106452465057373, -0.09188398718833923, -0.20970605313777924, 0.46615251898765564, 0.09375105798244476, -0.03884100541472435, 0.19778427481651306, 0.4313414394855499, -0.4969691038131714, -0.10859370231628418, 0.050183847546577454, -0.19309037923812866, 0.3274519443511963, 0.173668771982193, 0.14541082084178925, 0.2489250749349594, -0.0879916250705719, -0.0936395600438118, -0.11913274228572845, 0.576720118522644, -0.3575345277786255, -0.1520615518093109, 0.07011747360229492, 0.10437092185020447, -0.15982866287231445, 0.09835395216941833, -0.81502366065979, 0.1427524983882904, 0.024753481149673462, -0.12316872179508209, 0.17289792001247406, 0.053434424102306366, -0.256369024515152, -0.2302289754152298, -0.051265567541122437, 0.19309315085411072, -0.4120168685913086, -0.16803336143493652, 0.1258457452058792, -0.2549985349178314, -0.1799412965774536, 0.21087045967578888, -0.36368513107299805, 0.2950893044471741, -0.2587229311466217, -0.3023216724395752, 0.6723530888557434, 0.020460564643144608, -0.3387458920478821, 0.17606474459171295, -0.028290346264839172, -0.11844420433044434, 0.014705047011375427, 0.5250900983810425, 0.1372101604938507, -0.09531247615814209, -0.4145098626613617, 0.2945404648780823, 0.140781432390213, 0.08684303611516953, 0.07955245673656464, -0.20476602017879486, 0.1286371648311615, -0.28698524832725525, -0.2456301599740982, 0.385940283536911, 0.2542549669742584, 0.35833537578582764, 0.31058910489082336, 0.015029136091470718, 0.14104652404785156, 0.4581471085548401, -0.11642810702323914, 0.03853793069720268, -0.21276721358299255, 0.17843690514564514, -0.7484534978866577, -0.006571721285581589, 0.2338048815727234, -0.6842116713523865, 0.33453094959259033, -0.12032562494277954, -0.027776850387454033, -0.16870251297950745, -0.06641924381256104, 0.12984679639339447, -0.07622645795345306, 0.04240329936146736, -0.05291568487882614, -0.15476003289222717, -0.2675636112689972, 0.3820067048072815, -0.05238115042448044, 0.12272249907255173, -0.6055700182914734, 0.36769983172416687, 0.21118071675300598, -0.20024846494197845, -0.2397432029247284, -0.19313353300094604, 0.20552116632461548, 0.009298074059188366, -0.08935271948575974, 0.37867796421051025, 0.18095627427101135, 0.4551723599433899, 0.0918436124920845, 0.23228709399700165, 0.05342915654182434, -0.046014077961444855, 0.14472611248493195, -0.16047242283821106, 0.14525532722473145, -0.12218619883060455, -0.26380056142807007, 0.04421839863061905, -0.20154158771038055, 0.17875945568084717, 0.13454948365688324, -0.192677840590477, 0.023334180936217308, -0.2902035415172577, -0.018092283979058266, -0.22206714749336243, -0.2539125978946686, 0.18535299599170685, 0.39772242307662964, 0.12671391665935516, -0.1721726357936859, -0.12543457746505737, 0.2959307134151459, -0.25759798288345337, -0.021461136639118195, -0.01023884117603302, -0.3651677966117859, 0.00829225778579712, -0.09410903602838516, 0.6046721339225769, 0.1611141860485077, 0.08203636854887009, 0.08663938194513321, 0.09111780673265457, 0.15119165182113647, -0.04543565586209297, 0.044233448803424835, -0.010149292647838593, 0.5799142122268677, 0.24431627988815308, -0.03831623122096062, -0.03656117618083954, -0.11492468416690826, 0.353604793548584, 0.1652427762746811, -0.09468700736761093, -0.2773096561431885, 0.1180243119597435, -0.2011260688304901, 0.07135000079870224, -0.48846107721328735, -0.12731285393238068, -0.25219109654426575, 0.15127475559711456, -0.2714945077896118, 0.7723135352134705, 0.2325679063796997, 0.12630166113376617, 0.12190799415111542, 0.015432044863700867, -0.1470237672328949, -0.4388964772224426, -0.09669363498687744, -0.01956382766366005, -0.010302141308784485, -0.06224318593740463, 0.11544767022132874, 0.04939237982034683, 0.37810447812080383, -0.08105793595314026, -0.013159561902284622, -0.4396047592163086, 0.1891239583492279, -0.06568024307489395, 0.1645980179309845, 0.06599119305610657, -0.2215650975704193, 0.2795461416244507, -0.38118863105773926, -0.038419730961322784, -0.05943375080823898, -0.3607289791107178, -0.28504642844200134, -0.00652928464114666, 0.013490044511854649, 0.2896597683429718, 0.017229344695806503, -0.19021224975585938, 0.03355317562818527, -0.040297988802194595, 0.017352446913719177, -0.12257850170135498, 0.05574939027428627, -0.014035956002771854, 0.24445396661758423, -0.11309223622083664, 0.18043330311775208, 0.07642615586519241, -0.2114165723323822, -0.5961000323295593, 0.4128052592277527, 0.1633281111717224, -0.17414253950119019, 0.3108076751232147, -0.1741730272769928, -0.021046679466962814, 0.31018614768981934, -0.6087191700935364, -0.11419229954481125, 0.060061514377593994, 0.10374762117862701, -0.39194610714912415, 0.3361906409263611, 0.30627021193504333, -0.02784775011241436, 0.014444766566157341, -0.03347132354974747, -0.2389533370733261, 0.07844147831201553, 0.14377714693546295, 0.42445072531700134, -0.16125449538230896, 0.22614815831184387, -0.0966196358203888, 0.3579067587852478, 0.03173106163740158, -0.15033330023288727, 0.2577558159828186, 0.15348953008651733, 0.43872177600860596, -0.17507827281951904, -0.05227737873792648, -0.5761281251907349, -0.16182038187980652, -0.22177357971668243, -0.11482563614845276, -0.005770768970251083, 0.03239620849490166, -0.10759390890598297, -0.24965840578079224, -0.28057074546813965, -0.19337798655033112, 0.08453572541475296, -0.249349445104599, 0.26559263467788696, 0.019236791878938675, 0.17591309547424316, 0.14938661456108093, -0.13310426473617554, -0.03717384859919548, 0.24248145520687103, 0.3567499816417694, 0.034054409712553024, -0.4226413071155548, -0.08304052799940109, -0.08184448629617691, 0.17175108194351196, -0.21446384489536285, -0.0884099006652832, 0.16008339822292328, 0.0011424869298934937, 0.06771299242973328, 0.19654081761837006, 0.7361794114112854, 0.18743526935577393, 0.06370028853416443, 0.09269498288631439, -0.3455917537212372, -0.38814759254455566, 0.0843280553817749, 0.05061374977231026, -0.2877069413661957, -0.11748778820037842, 0.7245604991912842, 0.08039932698011398, -0.12068268656730652, -0.35767635703086853, 0.5562204718589783, -0.3704287111759186, -0.2955065667629242, -0.14579470455646515, -0.16646039485931396, -0.5476547479629517, -0.2133505642414093, -0.30827558040618896, -0.1582368165254593, -0.13077674806118011, 0.06464087963104248, -0.2534773349761963, -0.09157099574804306, 0.022078104317188263, -0.11822174489498138, 0.3918707072734833, 0.2666741907596588, 0.019366461783647537, 0.16446885466575623, 0.22197970747947693, 0.3284139633178711, 0.3666434586048126, -0.015375331044197083, -0.09742726385593414, -0.13260313868522644, 0.08677937835454941, 0.16486309468746185, 0.09364519268274307, 0.06861533224582672, 0.047984737902879715, 0.02683698572218418, -0.2086210995912552, -0.30927833914756775, -0.05600419268012047, -0.13409362733364105, -0.13672061264514923, -0.1440846025943756, -0.5415611863136292, 0.5702610611915588, -0.0650223046541214, -0.140814870595932, -0.08518822491168976, -0.04595446586608887, -0.271139919757843, 0.17039059102535248, 0.14987899363040924, 0.8716301918029785, 0.10897259414196014, 0.17788280546665192, 0.11092330515384674, -0.27020639181137085, 0.08745985478162766, 0.03358156979084015, -0.12014603614807129, -0.36854660511016846, -0.18291838467121124, -0.15664082765579224, -0.20753484964370728, 0.04055384546518326, 0.4153398871421814, -0.2801259756088257, 0.3261986970901489, -0.22381295263767242, -0.1505962461233139, -0.19907498359680176, 0.0961717963218689, -0.16576525568962097, -0.174345001578331, -0.16817279160022736, -0.011401291936635971, -0.08819344639778137, -0.030661005526781082, 0.005310298874974251, 0.04138844087719917, 0.055350493639707565, -0.018718725070357323, 0.37215811014175415, 0.08462388068437576, -0.06245976313948631, 0.2771231532096863, -0.15779469907283783, -0.4986286163330078, -0.0826168805360794, 0.5926851630210876, 0.396054744720459, -0.03344767168164253, 0.05265329033136368, -0.0723138153553009, 0.02688593789935112, 0.30637046694755554, -0.2422434538602829, -0.17192700505256653, 0.44817104935646057, 0.13767439126968384, -0.08551840484142303, 0.14096617698669434, -0.09451213479042053, -0.16982072591781616, -0.037681691348552704, -0.08608098328113556, 0.05510375648736954, -0.2550103962421417, 0.047466669231653214, 0.27123525738716125, 0.2530316412448883, -0.021011419594287872, 0.009576572105288506, 0.15015244483947754, 0.057904068380594254, 0.2980197072029114, 0.039453864097595215, -0.2374413013458252, 0.045955970883369446, 0.5188027620315552, 0.20673328638076782, 0.021412912756204605, 0.438172310590744, -0.32759302854537964, 0.12107419967651367, -0.24026626348495483, 0.5366314053535461, 0.20174281299114227, -0.1746366024017334, 0.186906099319458, 0.06941720098257065, 0.4007885456085205, -0.04734552279114723, -0.02130233123898506, 0.08538568019866943, 0.011167995631694794, 0.14452195167541504, -0.09580955654382706, -0.438056617975235, 0.234314426779747, 0.26247698068618774, 0.3535429537296295, 0.25838902592658997, -0.23243321478366852, -0.06804895401000977, 0.3585871160030365, -0.1744459569454193, 0.20541495084762573, 0.30052244663238525, 0.2823808491230011, 0.1684187948703766, 0.2044433355331421, -0.208718404173851, -0.3440040647983551, -0.043814852833747864, -0.25555336475372314, -0.23652933537960052, -0.12513208389282227, -0.059807173907756805, 0.15394918620586395, -0.043691352009773254, 0.16778936982154846, -0.3266105353832245, -0.48477452993392944, 0.2891402244567871, -0.1375051587820053, 0.0824396163225174, 0.08195358514785767, 0.2197142392396927, 0.18409253656864166, 0.09372925758361816, 0.44815126061439514, -0.31844180822372437, -0.11875613033771515, -0.19210216403007507, 0.17830190062522888, -0.03281107544898987, 0.012108515948057175, 0.06422204524278641, -0.13168294727802277, -0.6189083456993103, -0.09907286614179611, 0.5383809804916382, 0.16359782218933105, -0.022629067301750183, -0.16756294667720795, -0.02900712564587593, 0.10755213350057602, 0.2544229030609131, 0.2053804099559784, -0.34229570627212524, -0.2245645970106125, 0.32931965589523315, 0.12559761106967926, 0.02691103145480156, -0.1925327032804489, 0.2880919277667999, -0.19185245037078857, -0.28732845187187195, 0.1465848684310913, 0.031988199800252914, -0.051279209554195404, -0.41226184368133545, 0.025471188127994537, 0.17515450716018677, -0.15808789432048798, 0.3159533143043518, 0.597404956817627, -0.23314926028251648, -0.07084386050701141, 0.14665767550468445, 0.39944925904273987, -0.005681976675987244, 0.3305521011352539, -0.0007097795605659485, 0.3764370083808899, 0.02400367707014084, 0.09161025285720825, -0.02408871054649353, -0.3671691119670868, 0.008116189390420914, 0.13896344602108002, -0.2195098102092743, 0.04970182478427887, 0.07517584413290024, -0.088087297976017, 0.2082577496767044, -0.3309560716152191, -0.08359833806753159, 0.351094514131546, -0.1629561483860016, 0.08263368904590607, -0.12985408306121826, -0.14986374974250793, 0.30263638496398926, 0.2705850899219513, -0.07887651026248932, -0.3361343741416931, 0.3281603455543518, 0.14230342209339142, -0.09715725481510162, 0.10633023828268051, 0.18724656105041504, 0.18761956691741943, -0.16550147533416748, -0.15035855770111084, 0.012868346646428108, -0.028931573033332825, 0.012515649199485779, 0.01659618318080902, 0.0012616608291864395, -0.22744682431221008, 0.04194030910730362, 0.16575917601585388, 0.3165421187877655, 0.31962141394615173, -0.08389338850975037, 0.14995968341827393, 0.01787383295595646, -0.0008012279868125916, -0.073529452085495, 0.21277712285518646, 0.015179211273789406, 0.029453571885824203, 0.26324546337127686, 0.004401508718729019, 0.37957608699798584, -0.3571353256702423, 0.24797064065933228, 0.31067147850990295, -0.14046233892440796, -0.1665804386138916, 0.010372161865234375, 0.2103225290775299, -0.10659769922494888, 0.5434308648109436, -0.29234692454338074, -0.0012200679630041122, 0.02412480115890503, 0.014269758015871048, -0.04149911180138588, 0.4267648458480835, 0.23310022056102753, -0.43111056089401245, -0.18666750192642212, -0.18959158658981323, -0.531938910484314, -0.09898007661104202, 0.2813749611377716, 0.266811341047287, -0.2489687204360962, 0.1820267289876938, 0.1321471631526947, 0.22491274774074554, 0.059829458594322205, -0.11674930900335312, 0.1265682429075241, 0.36708515882492065, 0.11884111166000366, -0.23788468539714813, 0.05027873069047928, 0.33578577637672424, -0.09746413677930832, -0.2143314778804779, 0.1917596012353897, 0.13259468972682953, -0.05126788094639778, 0.22148948907852173, 0.18969345092773438, -0.13211636245250702, 0.4478762447834015, 0.646235466003418, 0.018949607387185097, 0.03129006177186966, -0.17740756273269653, 0.23626723885536194, 0.3744186758995056, -0.0216823723167181, -0.1565989851951599, -0.016700811684131622, 0.09220446646213531, 0.24991276860237122, -0.4566818177700043, 0.44487160444259644, -0.20418868958950043, -0.18681444227695465, 0.013796519488096237, -0.0477885864675045, -0.45817574858665466, 0.04637431353330612, 0.06515838950872421, 0.1430874913930893, 0.16218340396881104, 0.3478299379348755, -0.018715932965278625, 0.3184930980205536, -0.18996891379356384, -0.024314388632774353, 0.4145447611808777, -0.07722604274749756, -0.19070418179035187, -0.04279618337750435, 0.2818668484687805, 0.05549463629722595, 0.0050826892256736755, -0.4016096889972687, 0.12248054891824722, 0.48391786217689514, -0.26634326577186584, -0.07878068089485168, 0.392304003238678, -0.1582096666097641, 0.12561525404453278, 0.0675278902053833, 0.6033189296722412, 0.04220358282327652, -0.3597431182861328, -0.09212130308151245, -0.282744824886322 ]
https://github.com/huggingface/datasets/issues/1993
How to load a dataset with load_from disk and save it again after doing transformations without changing the original?
Perfect. For now, I am loading the dataset from CSV in my interactive process and will wait until you make the PR!
I am using the latest datasets library. In my work, I first use **load_from_disk** to load a data set that contains 3.8Gb information. Then during my training process, I update that dataset object and add new elements and save it in a different place. When I save the dataset with **save_to_disk**, the original dataset which is already in the disk also gets updated. I do not want to update it. How to prevent from this?
22
How to load a dataset with load_from disk and save it again after doing transformations without changing the original? I am using the latest datasets library. In my work, I first use **load_from_disk** to load a data set that contains 3.8Gb information. Then during my training process, I update that dataset object and add new elements and save it in a different place. When I save the dataset with **save_to_disk**, the original dataset which is already in the disk also gets updated. I do not want to update it. How to prevent from this? Perfect. For now, I am loading the dataset from CSV in my interactive process and will wait until you make the PR!
[ -0.343549519777298, -0.18609988689422607, -0.023776546120643616, 0.19790978729724884, 0.2351963222026825, 0.0903734490275383, -0.07585464417934418, -0.08912698924541473, -0.002448027953505516, 0.061352699995040894, 0.08186817914247513, 0.28882086277008057, 0.008917436003684998, 0.27421802282333374, 0.2110169231891632, 0.23116439580917358, 0.2571014165878296, 0.30344945192337036, -0.3161807060241699, -0.031089885160326958, -0.19552451372146606, -0.1905549168586731, 0.01577979326248169, -0.2773299813270569, -0.13354718685150146, -0.35825660824775696, -0.08404561132192612, -0.009930066764354706, 0.07235030829906464, 0.06707765907049179, 0.12379121780395508, 0.14212040603160858, 0.31979450583457947, 0.3073057234287262, -0.00011882342369062826, 0.01126369833946228, -0.3935624957084656, -0.11748524755239487, -0.2952142059803009, -0.17522870004177094, 0.01987271010875702, -0.19282302260398865, 0.042613036930561066, -0.28232771158218384, -0.03559240326285362, -0.07892408221960068, -0.1382196843624115, -0.1842428594827652, 0.6355671286582947, -0.27577677369117737, 0.08822813630104065, -0.10131924599409103, -0.26047560572624207, 0.10034116357564926, -0.36092594265937805, 0.3109506070613861, 0.16976536810398102, 0.03272552043199539, -0.02301182597875595, 0.35238489508628845, -0.005923710763454437, 0.18340422213077545, -0.22028231620788574, -0.2364940196275711, 0.36850401759147644, -0.05573352426290512, 0.1962566375732422, -0.3266144096851349, 0.13660380244255066, -0.05041864514350891, 0.7573293447494507, -0.3973725438117981, -0.22244404256343842, -0.22003158926963806, 0.22231143712997437, -0.1780082732439041, 0.10282004624605179, 0.27105221152305603, -0.0004195561632514, 0.13091105222702026, -0.5915707945823669, -0.8006383180618286, -0.12654562294483185, 0.05992358177900314, 0.01747792959213257, -0.6005367040634155, -0.009879342280328274, 0.10617617517709732, 0.2177744209766388, 0.2815049886703491, 0.4598250091075897, -0.2353614866733551, -0.21617814898490906, 0.142293319106102, -0.2949937582015991, -0.2745673656463623, -0.2943735718727112, 0.19076326489448547, -0.05817956104874611, 0.1961967498064041, 0.0701112225651741, -0.09236568212509155, -0.2840215563774109, 0.14825211465358734, 0.1528833508491516, 0.31609252095222473, 0.11482086777687073, 0.18086819350719452, 0.08324047923088074, 0.059058018028736115, -0.23312941193580627, -0.05364546924829483, 0.1533103883266449, 0.060394272208213806, 0.5767162442207336, -0.22734972834587097, 0.17213603854179382, 0.023944217711687088, 0.07144959270954132, 0.07317467033863068, 0.16627126932144165, -0.09022819995880127, -0.11744264513254166, 0.3433508574962616, 0.12025041878223419, 0.2047812044620514, 0.18999037146568298, 0.20102447271347046, -0.048903390765190125, -0.11417495459318161, -0.15518781542778015, -0.059546444565057755, -0.31201812624931335, 0.41968902945518494, 0.12533654272556305, 0.008064741268754005, 0.11991206556558609, 0.5349017977714539, -0.4715520143508911, -0.14504101872444153, 0.014429299160838127, -0.1974768489599228, 0.3453068733215332, 0.18376027047634125, 0.16478312015533447, 0.16721202433109283, -0.07095089554786682, -0.02989719994366169, -0.10037534683942795, 0.6497287750244141, -0.31613993644714355, -0.10923975706100464, 0.10167329013347626, 0.12629090249538422, -0.13794837892055511, 0.11074589937925339, -0.7127204537391663, 0.19799119234085083, 0.019891634583473206, -0.13777726888656616, 0.16049683094024658, 0.023832641541957855, -0.3551609218120575, -0.1828228086233139, -0.05326632410287857, 0.18040944635868073, -0.385801762342453, -0.16009432077407837, 0.19277246296405792, -0.21991121768951416, -0.11245515197515488, 0.22448483109474182, -0.3141235113143921, 0.24187928438186646, -0.27327761054039, -0.3577343821525574, 0.5291261672973633, 0.10013256967067719, -0.3341229259967804, 0.16778521239757538, -0.03481848165392876, -0.07906133681535721, 0.023173682391643524, 0.5614811778068542, 0.1681259572505951, -0.10928024351596832, -0.4543692171573639, 0.3388875126838684, 0.09942031651735306, 0.13351380825042725, 0.06959600746631622, -0.16952890157699585, 0.2710564136505127, -0.31165072321891785, -0.14273643493652344, 0.48077911138534546, 0.24605676531791687, 0.3417784571647644, 0.3239539861679077, -0.0245121531188488, 0.09958066791296005, 0.4077054262161255, -0.15120823681354523, 0.07907211035490036, -0.20955848693847656, 0.12622559070587158, -0.613804817199707, -0.031110398471355438, 0.1936895251274109, -0.5951253771781921, 0.3615719676017761, -0.12265162169933319, -0.06428457051515579, -0.2044181525707245, -0.012775909155607224, 0.074924997985363, -0.06887303292751312, -0.002293825149536133, -0.11098845303058624, -0.1776314377784729, -0.26068103313446045, 0.48376840353012085, -0.05908378213644028, 0.09318770468235016, -0.6138247847557068, 0.3396218717098236, 0.17128583788871765, -0.2045491337776184, -0.24306051433086395, -0.09670481830835342, 0.21039137244224548, 0.03194614127278328, -0.09627195447683334, 0.3377920985221863, 0.19397789239883423, 0.40883302688598633, 0.0129820816218853, 0.19935914874076843, 0.06630381941795349, -0.013269942253828049, 0.07339560240507126, -0.23201300203800201, 0.13604162633419037, -0.0811842828989029, -0.1756197214126587, 0.0617031455039978, -0.23636753857135773, 0.08926406502723694, 0.15813234448432922, -0.20450851321220398, 0.054407186806201935, -0.3416890799999237, 0.019034018740057945, -0.20467518270015717, -0.18586871027946472, 0.21923841536045074, 0.3088560998439789, 0.1363539695739746, -0.22683200240135193, -0.2074437439441681, 0.2330198734998703, -0.2737061083316803, -0.09121868759393692, 0.03533563017845154, -0.2595537602901459, 0.016884364187717438, -0.12040792405605316, 0.5437597632408142, 0.11886636912822723, 0.12753157317638397, 0.005332618951797485, 0.11943550407886505, 0.12512023746967316, 0.012979552149772644, 0.03391602635383606, -0.03439176082611084, 0.5523133873939514, 0.2647174000740051, -0.05094331130385399, 0.07244449853897095, -0.16240684688091278, 0.41986626386642456, 0.1504422277212143, -0.11968503892421722, -0.30114075541496277, 0.09947296977043152, -0.16158849000930786, 0.06608355045318604, -0.46807587146759033, -0.08413833379745483, -0.24724388122558594, 0.23663786053657532, -0.2964736223220825, 0.7885242700576782, 0.2594660818576813, 0.16251373291015625, 0.11081792414188385, 0.045969173312187195, -0.13120123744010925, -0.41802582144737244, -0.05736015364527702, 0.037437018007040024, 0.012537315487861633, -0.04833449423313141, 0.075236976146698, -0.0037030193489044905, 0.4305589199066162, -0.02910618856549263, -0.06656047701835632, -0.42697495222091675, 0.1278458535671234, -0.0823729932308197, 0.10297386348247528, 0.11045217514038086, -0.2120499610900879, 0.29741787910461426, -0.41683870553970337, -0.0541331022977829, -0.1244075670838356, -0.4201669692993164, -0.2594532370567322, 0.029452182352542877, 0.054695699363946915, 0.2615028917789459, 0.010781954973936081, -0.2051878273487091, -0.009475793689489365, -0.008310718461871147, -0.11737403273582458, -0.17131425440311432, 0.0468003936111927, 0.02035018987953663, 0.15698258578777313, -0.29466065764427185, 0.2539895176887512, 0.08229652047157288, -0.23766836524009705, -0.5970132350921631, 0.34178775548934937, 0.15990084409713745, -0.18924376368522644, 0.2897326648235321, -0.1801791787147522, -0.05541593208909035, 0.38032621145248413, -0.5858957171440125, -0.09459656476974487, 0.04431365802884102, 0.14135505259037018, -0.4069652259349823, 0.33472591638565063, 0.30819135904312134, -0.02250709943473339, -0.008129283785820007, -0.0677945464849472, -0.24541643261909485, 0.05767779052257538, 0.13562044501304626, 0.39979323744773865, -0.2072361409664154, 0.22036895155906677, -0.05733693018555641, 0.3448045253753662, -0.02469469979405403, -0.15138928592205048, 0.28974592685699463, 0.13564367592334747, 0.4245440661907196, -0.16769874095916748, -0.12704682350158691, -0.5524559617042542, -0.17350026965141296, -0.23545701801776886, -0.006048642098903656, -0.03792881965637207, 0.007215383928269148, -0.1281888484954834, -0.2558842599391937, -0.2843936085700989, -0.13080628216266632, 0.05041832476854324, -0.24523115158081055, 0.3822571337223053, 0.058705661445856094, 0.15766039490699768, 0.15273800492286682, -0.19864991307258606, -0.06896389275789261, 0.2094496488571167, 0.35488319396972656, 0.027218317613005638, -0.2600482106208801, -0.03487688675522804, -0.15328752994537354, 0.11025091260671616, -0.2091599851846695, -0.02767430990934372, 0.12216652929782867, -0.003059491515159607, 0.06094289943575859, 0.2545267939567566, 0.8182940483093262, 0.21565790474414825, 0.13744798302650452, 0.08896936476230621, -0.4251461923122406, -0.2478490024805069, 0.0456906221807003, 0.03224882110953331, -0.30787649750709534, -0.09407602250576019, 0.6723995208740234, 0.15264829993247986, -0.09020902961492538, -0.3045024871826172, 0.5188005566596985, -0.3563797175884247, -0.37377339601516724, -0.2266184687614441, -0.16631639003753662, -0.5012158751487732, -0.12888815999031067, -0.25982925295829773, -0.04399970918893814, -0.18328417837619781, 0.10613146424293518, -0.21961402893066406, -0.06760425120592117, 0.10953837633132935, -0.1310003399848938, 0.3300730586051941, 0.34216636419296265, 0.04964526370167732, 0.12424878031015396, 0.21767404675483704, 0.16693855822086334, 0.3173027038574219, -0.105336993932724, -0.11263906955718994, -0.1280663013458252, 0.12989163398742676, 0.17120611667633057, 0.07560747116804123, 0.05274233594536781, 0.07323942333459854, -0.006859118118882179, -0.16993892192840576, -0.38294342160224915, -0.045366741716861725, -0.14902162551879883, -0.07308946549892426, -0.2039041817188263, -0.4751244783401489, 0.47462892532348633, -0.09257639944553375, -0.12585893273353577, -0.14722125232219696, -0.10613900423049927, -0.29210007190704346, 0.13995499908924103, 0.13064561784267426, 0.8632395267486572, 0.032674483954906464, 0.15255975723266602, 0.11987491697072983, -0.17053164541721344, 0.016848940402269363, -0.001227106899023056, -0.08392077684402466, -0.40199539065361023, -0.32794904708862305, -0.17332270741462708, -0.19347651302814484, 0.037824518978595734, 0.32531481981277466, -0.32833051681518555, 0.3507508337497711, -0.24877850711345673, -0.10898873209953308, -0.10781438648700714, 0.04434087127447128, -0.11699370294809341, -0.16496358811855316, -0.185690775513649, -0.006143093109130859, -0.0798516571521759, -0.004473395645618439, -0.0543573796749115, 0.07407701760530472, 0.21157801151275635, 0.001940608024597168, 0.3221930265426636, 0.12272784858942032, -0.07071299105882645, 0.280503511428833, -0.1962253451347351, -0.4649518132209778, -0.005113443359732628, 0.6101838946342468, 0.43407219648361206, 0.02489287592470646, 0.08137879520654678, -0.07069772481918335, -0.026658400893211365, 0.3314717411994934, -0.2104780673980713, -0.10344050079584122, 0.45046162605285645, 0.13666749000549316, -0.10304774343967438, 0.09253308176994324, -0.04743742197751999, -0.12130829691886902, 0.01984332501888275, -0.06464098393917084, 0.11354489624500275, -0.3509957194328308, 0.0355064794421196, 0.24031835794448853, 0.3644151985645294, -0.0586993470788002, 0.03146904706954956, 0.0625162124633789, 0.013053229078650475, 0.3171583116054535, 0.07085942476987839, -0.2808796167373657, 0.03762063384056091, 0.5294991731643677, 0.20248040556907654, -0.04267840459942818, 0.3699873685836792, -0.27071571350097656, 0.0899936854839325, -0.2675444781780243, 0.46402209997177124, 0.1178860142827034, -0.17460118234157562, 0.18568962812423706, 0.12572140991687775, 0.45071202516555786, -0.015963729470968246, -0.04391380771994591, 0.08839011937379837, -0.06297915428876877, 0.1653643399477005, -0.09405681490898132, -0.38221609592437744, 0.12107311934232712, 0.23729528486728668, 0.36307331919670105, 0.3535113036632538, -0.12283357977867126, -0.03290089964866638, 0.3971117436885834, -0.21049362421035767, 0.15994925796985626, 0.28046950697898865, 0.2849237322807312, 0.2143125981092453, 0.15449561178684235, -0.32303041219711304, -0.3599318861961365, -0.009667009115219116, -0.25066637992858887, -0.2394523024559021, -0.15870380401611328, -0.0525224432349205, 0.14392820000648499, -0.11399524658918381, 0.23214738070964813, -0.2854381799697876, -0.43824708461761475, 0.23569947481155396, -0.14528614282608032, 0.09254232048988342, 0.1704605519771576, 0.2144288867712021, 0.20094145834445953, 0.07853595912456512, 0.42665624618530273, -0.34154951572418213, -0.11250364780426025, -0.21729430556297302, 0.18895256519317627, -0.032293640077114105, 0.0051218681037425995, 0.07024484872817993, -0.11696234345436096, -0.625154972076416, -0.09487884491682053, 0.6250933408737183, 0.12121498584747314, -0.007364973425865173, -0.16706383228302002, 0.01002252846956253, 0.1534460037946701, 0.2904006838798523, 0.08415527641773224, -0.37735918164253235, -0.2461012452840805, 0.3773583173751831, 0.150421604514122, -0.0956229493021965, -0.11587674915790558, 0.28522762656211853, -0.2092485874891281, -0.2813018262386322, 0.1848057210445404, 0.10580988228321075, -0.04548265412449837, -0.3390643000602722, 0.037321578711271286, 0.2553980052471161, -0.1684482991695404, 0.3619692325592041, 0.5913923382759094, -0.21821559965610504, -0.05627646669745445, 0.13966184854507446, 0.41501083970069885, -0.13962072134017944, 0.3794611692428589, -0.003684617578983307, 0.38189399242401123, -0.057031720876693726, 0.1477711796760559, -0.10903923958539963, -0.4267396330833435, 0.10113778710365295, 0.16541044414043427, -0.2610379755496979, 0.022598303854465485, -0.0011138543486595154, -0.10303271561861038, 0.1897849589586258, -0.3766220211982727, -0.11893192678689957, 0.4679531157016754, -0.21893855929374695, 0.15192781388759613, -0.0048863813281059265, -0.12191545963287354, 0.2515876889228821, 0.3047003149986267, -0.006080061197280884, -0.2621269226074219, 0.3338620662689209, 0.16961264610290527, -0.10972867906093597, 0.08383878320455551, 0.09739960730075836, 0.20913264155387878, -0.174737811088562, -0.17292574048042297, 0.04247155040502548, -0.059464603662490845, 0.083061084151268, 0.051029566675424576, 0.00681505911052227, -0.2014678716659546, 0.06833602488040924, 0.17138803005218506, 0.2928629517555237, 0.25087034702301025, -0.02510896883904934, 0.1290171593427658, 0.030784152448177338, -0.01829911768436432, 0.09670582413673401, 0.19330400228500366, 0.006185371428728104, 0.025468241423368454, 0.2639407515525818, 0.04610501602292061, 0.333449125289917, -0.37973150610923767, 0.20687416195869446, 0.4354175925254822, -0.0902821272611618, -0.24191147089004517, 0.02800162136554718, 0.21258431673049927, 0.015020795166492462, 0.5192960500717163, -0.29991868138313293, 0.01265125535428524, 0.09539908170700073, 0.030137483030557632, 0.03295265510678291, 0.3783247768878937, 0.22531045973300934, -0.37170520424842834, -0.3008451759815216, -0.21567559242248535, -0.5639151334762573, -0.08359456807374954, 0.36889439821243286, 0.24255293607711792, -0.23833361268043518, 0.09796874225139618, 0.09441707283258438, 0.15860068798065186, 0.03316566348075867, -0.15537767112255096, 0.1296759992837906, 0.38353779911994934, 0.1775437742471695, -0.20484255254268646, -0.003446333110332489, 0.3353898823261261, -0.15849681198596954, -0.19208449125289917, 0.16388514637947083, 0.09122811257839203, -0.02659733220934868, 0.18003682792186737, 0.19694432616233826, -0.19967295229434967, 0.423263281583786, 0.575847327709198, 0.033158063888549805, 0.09367974102497101, -0.2577304542064667, 0.32647770643234253, 0.45594683289527893, -0.03907439485192299, -0.18054872751235962, -0.10831897705793381, 0.14453184604644775, 0.16273938119411469, -0.4258212745189667, 0.3830117881298065, -0.22262367606163025, -0.1333853006362915, 0.08442437648773193, 0.017224181443452835, -0.5296298265457153, 0.002682747319340706, 0.12372838705778122, 0.18533743917942047, 0.12318779528141022, 0.4071831703186035, -0.020855195820331573, 0.33461591601371765, -0.17359128594398499, -0.10367567092180252, 0.37255120277404785, -0.14484713971614838, -0.25402525067329407, -0.12615150213241577, 0.3549657464027405, -0.06466779857873917, -0.019083740189671516, -0.3931906819343567, 0.14953511953353882, 0.43032214045524597, -0.24428999423980713, -0.04054361581802368, 0.5292307138442993, -0.19518931210041046, 0.15328349173069, 0.1000509262084961, 0.5462207794189453, 0.10794773697853088, -0.35732170939445496, -0.08707358688116074, -0.28853756189346313 ]
https://github.com/huggingface/datasets/issues/1992
`datasets.map` multi processing much slower than single processing
Hi @hwijeen, you might want to look at issues #1796 and #1949. I think it could be something related to the I/O operations being performed.
Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png)
25
`datasets.map` multi processing much slower than single processing Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png) Hi @hwijeen, you might want to look at issues #1796 and #1949. I think it could be something related to the I/O operations being performed.
[ -0.4131569564342499, -0.31920650601387024, -0.08791662752628326, 0.35742127895355225, -0.10274967551231384, 0.020393766462802887, 0.34240540862083435, 0.11579561233520508, 0.057924795895814896, -0.004025064408779144, 0.06569936871528625, 0.4142298400402069, 0.1868181675672531, 0.2118220329284668, -0.16755256056785583, 0.008059334009885788, 0.19050979614257812, -0.04558289051055908, 0.17406082153320312, -0.006044361740350723, -0.164241224527359, 0.1392722725868225, -0.4981358051300049, -0.002356022596359253, -0.41685232520103455, -0.14932431280612946, 0.10352018475532532, 0.13567553460597992, -0.15745927393436432, -0.22853383421897888, -0.262692928314209, 0.15996257960796356, -0.07593679428100586, 0.5732406973838806, -0.00012281167437322438, -0.19767805933952332, 0.01280040293931961, 0.2621525228023529, 0.07546849548816681, 0.06125892698764801, -0.13256099820137024, -0.2765832245349884, -0.04943997412919998, -0.10929588228464127, 0.11611337214708328, 0.20157670974731445, -0.06076165288686752, -0.4477420747280121, 0.02592349797487259, 0.08576242625713348, 0.054979357868433, 0.3612495958805084, -0.30997830629348755, 0.039308805018663406, -0.3776819407939911, 0.16872498393058777, -0.153843954205513, 0.05054822936654091, 0.2789544463157654, -0.18095572292804718, -0.10931985825300217, 0.3070889711380005, -0.07127083092927933, 0.29660937190055847, 0.008204560726881027, -0.08298171311616898, 0.053386881947517395, -0.45094865560531616, 0.18975454568862915, 0.3490733206272125, 0.03533192723989487, -0.06320396810770035, -0.16470219194889069, -0.2374165654182434, -0.3268580138683319, -0.1349686086177826, 0.20226532220840454, 0.14012615382671356, 0.18210788071155548, -0.005169391632080078, -0.5538262128829956, 0.14738357067108154, 0.3451812267303467, -0.07219496369361877, -0.11896909773349762, 0.011225283145904541, 0.12752829492092133, 0.3288133144378662, 0.3404768705368042, 0.12036216259002686, -0.05001547187566757, -0.22033929824829102, 0.3193727135658264, 0.21782690286636353, -0.7854888439178467, -0.035213954746723175, 0.2125980257987976, -0.10208625346422195, -0.08548970520496368, -0.18599890172481537, -0.10234840959310532, 0.34680840373039246, -0.3305377662181854, 0.09549469500780106, 0.30707037448883057, -0.07641930878162384, 0.007399268448352814, 0.1116781234741211, -0.03472268581390381, -0.17122918367385864, -0.3314738869667053, 0.06314946711063385, 0.09290796518325806, -0.3245919942855835, -0.06481149792671204, 0.1292852759361267, -0.3052823543548584, -0.09038940072059631, -0.15496701002120972, 0.029576439410448074, -0.23782899975776672, -0.10234231501817703, 0.1326783150434494, 0.07705114036798477, -0.012904619798064232, 0.7939468026161194, -0.25983113050460815, 0.11570443212985992, -0.4723812937736511, -0.5671400427818298, -0.026356205344200134, -0.13674698770046234, -0.37211257219314575, 0.22387434542179108, 0.1279514729976654, -0.022243265062570572, 0.14073187112808228, 0.3258403241634369, 0.05036544054746628, -0.22435548901557922, 0.32726120948791504, -0.5305339694023132, 0.19723907113075256, 0.08167748898267746, 0.1585824191570282, 0.5495988726615906, -0.11440850794315338, 0.3264816403388977, -0.12952575087547302, 0.2438601851463318, -0.5274057388305664, -0.24513556063175201, 0.18052338063716888, -0.043687812983989716, 0.10316665470600128, 0.1064128428697586, -0.4637284576892853, 0.49805736541748047, 0.3198491036891937, -0.2184123396873474, -0.1693589687347412, -0.19917947053909302, -0.6358722448348999, -0.15167707204818726, -0.06138768047094345, 0.1673317551612854, -0.33093541860580444, 0.2380712926387787, -0.3223772346973419, 0.14681890606880188, 0.43502381443977356, 0.6122488379478455, -0.1885804533958435, 0.3844543397426605, 0.0008833594620227814, 0.19841249287128448, -0.006440900266170502, -0.07650719583034515, -0.3745240271091461, 0.5169079899787903, -0.1592254936695099, -0.0011451225727796555, -0.19069433212280273, 0.15317867696285248, 0.24031944572925568, -0.05474427714943886, 0.32514217495918274, 0.29366475343704224, 0.03049536608159542, 0.3874753713607788, -0.22300639748573303, -0.11075451225042343, 0.14605547487735748, 0.039280664175748825, -0.08418335020542145, -0.09125848859548569, -0.013679727911949158, -0.2940003573894501, 0.3163222074508667, -0.012795921415090561, 0.025221362709999084, 0.4302806854248047, -0.3920019268989563, -0.1519802063703537, -0.14723727107048035, -0.2302907407283783, -0.07329975813627243, 0.36632055044174194, -0.027873484417796135, 0.050186529755592346, 0.4308088421821594, 0.035163991153240204, 0.19255197048187256, 0.11382632702589035, -0.04051540419459343, -0.06420710682868958, -0.11188489198684692, -0.08057798445224762, -0.1543222814798355, -0.1789611577987671, -0.00908692553639412, 0.4500131607055664, 0.1817546784877777, -0.10417908430099487, -0.031202688813209534, -0.13255098462104797, 0.08126545697450638, 0.05628920719027519, -0.1986996829509735, -0.06962699443101883, 0.08548879623413086, 0.050270166248083115, -0.07914648950099945, 0.2618645131587982, 0.463299959897995, -0.05390511453151703, 0.17097139358520508, 0.11557721346616745, 0.37286728620529175, -0.05402594804763794, 0.04844784736633301, -0.1458728164434433, 0.10215635597705841, -0.23902395367622375, -0.02390504628419876, 0.3120741844177246, 0.08390717208385468, 0.4422294795513153, 0.03163718432188034, -0.136115163564682, -0.010146165266633034, 0.2965462803840637, 0.15425346791744232, 0.05687396973371506, 0.3458302915096283, 0.3308041989803314, 0.23016180098056793, 0.33505484461784363, -0.1322711855173111, 0.3230474591255188, 0.6291478872299194, 0.04870801046490669, -0.3480745255947113, 0.043714798986911774, -0.18393123149871826, -0.36954033374786377, 0.02265283465385437, -0.14126695692539215, 0.5598790049552917, 0.020039893686771393, 0.23184652626514435, -0.036213986575603485, -0.10068104416131973, -0.05870397016406059, -0.023061297833919525, 0.10299089550971985, 0.2264132797718048, -0.10509219020605087, 0.2959200143814087, -0.015935420989990234, -0.06011088192462921, -0.24219225347042084, 0.33896929025650024, 0.25270164012908936, -0.26005735993385315, 0.1031632348895073, -0.2926941514015198, 0.1555965542793274, 0.1763422042131424, -0.10034091770648956, -0.2901909351348877, -0.2128412425518036, -0.15581700205802917, -0.08444616198539734, 0.22002661228179932, -0.05492326617240906, 0.27708202600479126, -0.13619394600391388, -0.10554202646017075, -0.04753945767879486, 0.001006942242383957, -0.13825702667236328, -0.1498214602470398, -0.010974638164043427, 0.2863365411758423, 0.22634732723236084, 0.04188759997487068, -0.06779255717992783, -0.2715703845024109, -0.06478718668222427, -0.20764762163162231, -0.1236516535282135, 0.14108192920684814, 0.05559167265892029, -0.1938754916191101, -0.05738765001296997, -0.2245589643716812, 0.15367703139781952, 0.18145602941513062, -0.24901999533176422, -0.18997082114219666, 0.05163352191448212, -0.10662905871868134, -0.2332419753074646, 0.04508164897561073, -0.15574219822883606, -0.08705956488847733, -0.10771098732948303, 0.2935892939567566, -0.1721997708082199, 0.34196925163269043, -0.2260829210281372, 0.06347847729921341, -0.07978197932243347, -0.10795701295137405, 0.015877319499850273, -0.3331030011177063, -0.3667623698711395, -0.011989865452051163, -0.01840476132929325, -0.19211749732494354, -0.13449311256408691, 0.08974234014749527, 0.15681172907352448, 0.17178183794021606, -0.15996544063091278, 0.16991184651851654, -0.39074063301086426, 0.11943380534648895, 0.07057368010282516, 0.06748116761445999, 0.46760088205337524, 0.02765938639640808, 0.06265600025653839, 0.015641547739505768, -0.4355054199695587, -0.06356159597635269, 0.3192831873893738, 0.0368368923664093, 0.01721787080168724, 0.3445577323436737, 0.03134605661034584, 0.6403153538703918, 0.49473869800567627, -0.16458657383918762, 0.2020888328552246, 0.009663000702857971, -0.17165033519268036, -0.40271684527397156, -0.2180115282535553, 0.1240067258477211, -0.26142317056655884, 0.16841767728328705, 0.4269155263900757, 0.0036418531090021133, -0.4294799566268921, -0.0166891161352396, 0.24397435784339905, -0.24452805519104004, -0.014102747663855553, 0.14810509979724884, -0.123268723487854, 0.19664543867111206, 0.24616727232933044, -0.1976928412914276, -0.3519734740257263, -0.03533938527107239, -0.06618938595056534, -0.10603441298007965, -0.09861531108617783, -0.24210481345653534, -0.48827996850013733, -0.03389807417988777, -0.3716013729572296, 0.26111742854118347, 0.042006418108940125, 0.2969748079776764, -0.04393855482339859, 0.10577147454023361, 0.3316417932510376, 0.029593845829367638, 0.5544950366020203, -0.4164332151412964, -0.1365625262260437, 0.1310194730758667, -0.39806750416755676, -0.28735220432281494, 0.07072900235652924, -0.17073023319244385, 0.2828144431114197, 0.5884535312652588, 0.5143989324569702, -0.05632752925157547, -0.20539195835590363, 0.00865645706653595, 0.12120897322893143, 0.1553758829832077, -0.26610541343688965, -0.3546741306781769, 0.1345769166946411, -0.1294955462217331, 0.12682437896728516, -0.042386822402477264, 0.13200446963310242, 0.12328453361988068, -0.14204688370227814, 0.019436584785580635, 0.1154944971203804, 0.23819901049137115, 0.17040187120437622, 0.12061532586812973, 0.09302570670843124, 0.3004203140735626, 0.2673076391220093, -0.07237140834331512, 0.062234945595264435, 0.32938307523727417, -0.12490655481815338, -0.09985749423503876, 0.21324077248573303, 0.02411321923136711, 0.32807493209838867, 0.3196846842765808, 0.14985789358615875, 0.03064938262104988, 0.159018412232399, 0.2774958610534668, -0.2244989424943924, 0.27217066287994385, 0.3960224986076355, 0.39168092608451843, -0.49365195631980896, -0.5062218308448792, -0.020567096769809723, 0.46491971611976624, -0.14607931673526764, 0.2714831233024597, -0.7679568529129028, 0.08006355166435242, 0.05030841752886772, 0.09993085265159607, 0.7852857112884521, -0.47313278913497925, 0.037971898913383484, -0.31195905804634094, 0.21543167531490326, -0.04817575961351395, -0.594862163066864, 0.1334770768880844, -0.18472915887832642, -0.34729844331741333, 0.02756298892199993, -0.109076127409935, 0.20319530367851257, 0.5102794766426086, 0.15832267701625824, 0.266141414642334, 0.3404271602630615, 0.07846246659755707, -0.026243804022669792, 0.35041773319244385, 0.5003811120986938, -0.31871750950813293, 0.16459015011787415, 0.032754771411418915, 0.19393585622310638, -0.20700882375240326, 0.029859531670808792, 0.07045187801122665, -0.06115050986409187, 0.029334552586078644, -0.3183440566062927, -0.22798827290534973, -0.39779844880104065, 0.19637131690979004, -0.07641217112541199, 0.2826350927352905, 0.3900783061981201, 0.26774781942367554, -0.07130789756774902, 0.09016001969575882, 0.008547365665435791, 0.05348882079124451, 0.26379480957984924, 0.23341995477676392, 0.38241055607795715, -0.4639771580696106, -0.028704112395644188, -0.10095919668674469, -0.25060462951660156, -0.2602868974208832, -0.15324212610721588, -0.11850938946008682, -0.12253829091787338, 0.4491186738014221, 0.16572850942611694, 0.15709711611270905, -0.22645705938339233, 0.23288209736347198, 0.07904191315174103, -0.10990697145462036, -0.012514319270849228, 0.09148131310939789, 0.022349350154399872, 0.6711220145225525, -0.28348222374916077, -0.5138154029846191, -0.034297723323106766, 0.3942320942878723, 0.2499610185623169, -0.09522758424282074, 0.04766499996185303, 0.21297074854373932, -0.25751370191574097, -0.13550248742103577, 0.15353024005889893, -0.1033581867814064, -0.09918605536222458, 0.10592140257358551, 0.02085013873875141, -0.22452567517757416, 0.2546939253807068, -0.13488855957984924, -0.15127943456172943, -0.053231097757816315, -0.19176703691482544, -0.2759402394294739, -0.2528984844684601, -0.18008337914943695, -0.3516547977924347, -0.21634714305400848, 0.23138174414634705, 0.02472793683409691, 0.1297435611486435, 0.4729889929294586, -0.13290397822856903, 0.05832003057003021, 0.09011110663414001, 0.211086705327034, -0.018965482711791992, -0.2514665126800537, 0.0779227614402771, -0.025827791541814804, -0.06584280729293823, 0.07955795526504517, -0.0867982730269432, -0.14740213751792908, -0.011754737235605717, 0.18517287075519562, -0.022485952824354172, -0.2631610035896301, 0.32961928844451904, -0.14561530947685242, -0.20430278778076172, -0.43027499318122864, -0.062250833958387375, 0.052159056067466736, -0.02185457944869995, -0.1042596623301506, 0.27910882234573364, -0.29837745428085327, -0.27128222584724426, 0.44272270798683167, -0.20036467909812927, -0.0969034731388092, -0.0010556792840361595, 0.2870851159095764, 0.45101025700569153, -0.0946664810180664, -0.10054163634777069, 0.02907605841755867, 0.264440655708313, 0.0692051351070404, 0.13745933771133423, -0.09657914936542511, 0.18162484467029572, 0.2666930556297302, 0.3389316499233246, 0.12725043296813965, 0.13464516401290894, -0.253165066242218, 0.0023172078654170036, 0.0016434118151664734, -0.24031175673007965, -0.17649035155773163, 0.5670021176338196, 0.03286363184452057, 0.13805876672267914, 0.051613226532936096, 0.33619415760040283, 0.2363514006137848, -0.009384237229824066, -0.10602416098117828, 0.08108226209878922, -0.2906019687652588, 0.06119458004832268, 0.15363894402980804, 0.2585487961769104, 0.2591068744659424, 0.44664859771728516, 0.11974836885929108, -0.0015336275100708008, 0.44607073068618774, 0.2742269039154053, 0.27141043543815613, 0.4872281551361084, 0.26531103253364563, -0.03955733776092529, -0.37832367420196533, 0.2097000628709793, 0.5037137269973755, -0.33295735716819763, -0.05749233067035675, -0.05780816078186035, 0.2234264314174652, -0.24945591390132904, -0.38422220945358276, -0.2609780430793762, 0.38685330748558044, -0.16557899117469788, -0.25823482871055603, 0.22120970487594604, -0.06877143681049347, -0.0023637786507606506, 0.17765723168849945, -0.22046032547950745, 0.14243990182876587, 0.7928745746612549, 0.13015294075012207, 0.044122930616140366, -0.3891388177871704, -0.34113872051239014, -0.14998984336853027, 0.16975834965705872, -0.1381986439228058, 0.1828523725271225, -0.3203030824661255, -0.010065749287605286, -0.0007450319826602936, 0.3008361756801605, 0.3764933943748474, 0.2772645652294159, -0.14288531243801117, 0.10062997788190842, -0.02218986675143242, 0.16126006841659546, 0.0074005406349897385, 0.18288131058216095, 0.03228839859366417, 0.17487110197544098, 0.16541802883148193, -0.10536821186542511, -0.09015921503305435, -0.45338255167007446, 0.030217768624424934, 0.3537490665912628, -0.1493937224149704, 0.15781396627426147, -0.30387383699417114, -0.15540523827075958, 0.010966179892420769, 0.29412975907325745, -0.2735157608985901, -0.08983959257602692, 0.495357483625412, -0.4910946190357208, 0.07306382805109024, -0.15138226747512817, 0.025312844663858414, -0.07979987561702728, 0.5650856494903564, 0.33811452984809875, 0.010556522756814957, -0.41154125332832336, -0.11511445045471191, -0.5973330736160278, -0.07119489461183548, -0.32060495018959045, 0.26980963349342346, 0.07329873740673065, 0.29093414545059204, 0.07440779358148575, 0.1212652400135994, 0.40388184785842896, -0.0933896154165268, -0.08354347944259644, 0.3543793559074402, -0.31334230303764343, 0.47695860266685486, -0.2434432953596115, -0.19460421800613403, -0.0849100649356842, -0.418690949678421, 0.37817642092704773, 0.07536059617996216, -0.14862293004989624, -0.1737610548734665, -0.0027934759855270386, 0.1544393002986908, 0.14784526824951172, 0.1885034441947937, 0.35480475425720215, 0.3634970486164093, 0.04129417985677719, 0.007807852700352669, -0.11902536451816559, 0.19369696080684662, -0.04145566746592522, 0.3311108946800232, -0.05833551660180092, 0.06890061497688293, -0.3055816888809204, 0.1666465848684311, 0.11304130405187607, -0.10937699675559998, 0.003867771476507187, -0.23709824681282043, -0.32719361782073975, -0.05050913244485855, -0.03897656127810478, 0.31715962290763855, 0.09527373313903809, 0.40332359075546265, 0.13998918235301971, -0.09344514459371567, -0.1850915253162384, -0.080137699842453, -0.028804361820220947, -0.26682543754577637, -0.2905767261981964, -0.4305556118488312, 0.22771801054477692, -0.25289085507392883, 0.16132180392742157, -0.2331477403640747, -0.3237472474575043, 0.30408549308776855, -0.024933893233537674, -0.36816179752349854, 0.36546775698661804, -0.38706284761428833, -0.0856686681509018, -0.14730603992938995, 0.029063638299703598, -0.09814479202032089, -0.44488725066185, 0.19132527709007263, -0.11978082358837128 ]
https://github.com/huggingface/datasets/issues/1992
`datasets.map` multi processing much slower than single processing
I see that many people are experiencing the same issue. Is this problem considered an "official" bug that is worth a closer look? @lhoestq
Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png)
24
`datasets.map` multi processing much slower than single processing Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png) I see that many people are experiencing the same issue. Is this problem considered an "official" bug that is worth a closer look? @lhoestq
[ -0.386633962392807, -0.27258092164993286, -0.07879330217838287, 0.3493688106536865, -0.10609236359596252, -0.005165986716747284, 0.3705374002456665, 0.12684965133666992, 0.05477996543049812, -0.01642593741416931, 0.07629214227199554, 0.43234530091285706, 0.16459403932094574, 0.17756356298923492, -0.142501562833786, 0.0690409392118454, 0.22057965397834778, -0.06273314356803894, 0.19909363985061646, -0.013120606541633606, -0.16872449219226837, 0.19284291565418243, -0.49638891220092773, -0.002165496349334717, -0.41065463423728943, -0.12482132762670517, 0.10404516756534576, 0.10486913472414017, -0.13572794198989868, -0.20465043187141418, -0.21406719088554382, 0.13701188564300537, -0.13556942343711853, 0.5738765001296997, -0.00012297085777390748, -0.19847320020198822, 0.054987624287605286, 0.2633069157600403, 0.07641573250293732, 0.08308621495962143, -0.13295415043830872, -0.26017528772354126, -0.042412422597408295, -0.08291508257389069, 0.12447307258844376, 0.2161737084388733, -0.058563895523548126, -0.46460431814193726, -0.009663015604019165, 0.08433530479669571, 0.06314415484666824, 0.37648189067840576, -0.2817440629005432, 0.014385856688022614, -0.3346053659915924, 0.15811850130558014, -0.1740897297859192, 0.050787303596735, 0.2852866053581238, -0.18645186722278595, -0.11755921691656113, 0.30481022596359253, -0.047498345375061035, 0.3209560513496399, 0.0011859387159347534, -0.032224252820014954, 0.02702028676867485, -0.4442283511161804, 0.16207677125930786, 0.37069272994995117, 0.0055632442235946655, -0.07274003326892853, -0.18548844754695892, -0.2690024971961975, -0.3177764415740967, -0.15615662932395935, 0.2311842143535614, 0.1288769692182541, 0.1493098884820938, -0.01322544738650322, -0.5340882539749146, 0.13745248317718506, 0.38666030764579773, -0.07135018706321716, -0.15233343839645386, 0.02011190354824066, 0.11030357331037521, 0.30946651101112366, 0.31424522399902344, 0.1228400468826294, -0.04554448276758194, -0.17150747776031494, 0.28854554891586304, 0.1829548478126526, -0.7955276370048523, -0.04171041399240494, 0.24892890453338623, -0.11295992881059647, -0.06155220791697502, -0.18146543204784393, -0.09858939051628113, 0.35035207867622375, -0.3340126872062683, 0.10812145471572876, 0.3353159427642822, -0.09714950621128082, 0.0022060126066207886, 0.08073712885379791, 0.01607021689414978, -0.16441071033477783, -0.3038092851638794, 0.10167227685451508, 0.1055116280913353, -0.34244462847709656, -0.07126186788082123, 0.10951653122901917, -0.2824562191963196, -0.08732813596725464, -0.14788781106472015, 0.058993611484766006, -0.2159598171710968, -0.06327272206544876, 0.10974785685539246, 0.07937061041593552, -0.019251007586717606, 0.8041567206382751, -0.2690221965312958, 0.08701770007610321, -0.4744417667388916, -0.5820885896682739, -0.01857500523328781, -0.1468965709209442, -0.35913294553756714, 0.1967967003583908, 0.10421925783157349, -0.028777383267879486, 0.10028821974992752, 0.3114528954029083, 0.0865711122751236, -0.22788837552070618, 0.30165135860443115, -0.4975838363170624, 0.22515639662742615, 0.11890891194343567, 0.14715895056724548, 0.5624080896377563, -0.12077589333057404, 0.3020245432853699, -0.12470382452011108, 0.24048951268196106, -0.5386421084403992, -0.2262619286775589, 0.13901089131832123, -0.04697037488222122, 0.09063339978456497, 0.11504185199737549, -0.4588499963283539, 0.49707838892936707, 0.33952629566192627, -0.24713240563869476, -0.16472798585891724, -0.19443926215171814, -0.66740483045578, -0.1534181535243988, -0.03762902319431305, 0.1841222196817398, -0.33534112572669983, 0.22062143683433533, -0.3466392159461975, 0.15603283047676086, 0.4348996877670288, 0.6155388951301575, -0.1899300366640091, 0.35754722356796265, -0.050650209188461304, 0.2021542340517044, -0.016385801136493683, -0.03977084159851074, -0.389843225479126, 0.5365142226219177, -0.16957181692123413, 0.011268625035881996, -0.22578826546669006, 0.16068989038467407, 0.2166392207145691, -0.06081230193376541, 0.35973790287971497, 0.2520618736743927, 0.003723548725247383, 0.4067164659500122, -0.2268608659505844, -0.14847533404827118, 0.18061010539531708, 0.035650886595249176, -0.05095549300312996, -0.10924472659826279, -0.020768076181411743, -0.29124078154563904, 0.3273308575153351, 0.03461354970932007, 0.01905198022723198, 0.42012739181518555, -0.3767901360988617, -0.17811773717403412, -0.1492091864347458, -0.24709761142730713, -0.06936465948820114, 0.3475506007671356, -0.008294694125652313, 0.03453544154763222, 0.45308202505111694, 0.02762896567583084, 0.2079561948776245, 0.12411905080080032, -0.04102836176753044, -0.07881306111812592, -0.11966797709465027, -0.08743411302566528, -0.19142991304397583, -0.1583937555551529, -0.041138287633657455, 0.45148810744285583, 0.2057487815618515, -0.12299367785453796, -0.05400468781590462, -0.13028553128242493, 0.0977361872792244, 0.07682796567678452, -0.19901610910892487, -0.08228164166212082, 0.06427590548992157, 0.027988284826278687, -0.08689803630113602, 0.26800957322120667, 0.48699241876602173, -0.07008643448352814, 0.135084867477417, 0.08798552304506302, 0.40506213903427124, -0.023111514747142792, -0.017242273315787315, -0.11152055859565735, 0.11518651247024536, -0.24092748761177063, -0.033332228660583496, 0.31634068489074707, 0.11588656902313232, 0.39955654740333557, 0.030729420483112335, -0.1051461324095726, 0.026766369119286537, 0.28517070412635803, 0.1078847348690033, 0.046005092561244965, 0.3108840584754944, 0.31362485885620117, 0.2151772528886795, 0.3205104470252991, -0.10616917908191681, 0.34561702609062195, 0.6657002568244934, 0.0833151787519455, -0.3104911148548126, 0.04963960498571396, -0.15181922912597656, -0.358157217502594, 0.014146105386316776, -0.12260755151510239, 0.5757821798324585, 0.0022506280802190304, 0.24728769063949585, -0.03825589269399643, -0.11481345444917679, -0.08098279684782028, -0.014108128845691681, 0.1080094575881958, 0.21079136431217194, -0.07103276997804642, 0.3324418067932129, -0.0037924600765109062, -0.10003350675106049, -0.21483533084392548, 0.3497823178768158, 0.20769385993480682, -0.2833831310272217, 0.10747376829385757, -0.3034689724445343, 0.20223554968833923, 0.15993162989616394, -0.10360735654830933, -0.3013637363910675, -0.2368098944425583, -0.12218354642391205, -0.08861957490444183, 0.18531738221645355, -0.01424148678779602, 0.25011301040649414, -0.09630243480205536, -0.115376316010952, -0.03657418489456177, 0.03501243144273758, -0.11283417791128159, -0.1560259461402893, -0.011422600597143173, 0.2804485261440277, 0.19014662504196167, 0.07296609878540039, -0.05632840842008591, -0.27773916721343994, -0.12467638403177261, -0.24367552995681763, -0.09375512599945068, 0.14928078651428223, 0.07661116123199463, -0.1636892855167389, -0.10741466283798218, -0.207832932472229, 0.16901035606861115, 0.15896768867969513, -0.3020038902759552, -0.20187760889530182, 0.04611559212207794, -0.11854925751686096, -0.2314855009317398, -0.010622331872582436, -0.1588878333568573, -0.09496389329433441, -0.1099473237991333, 0.2879398465156555, -0.16724750399589539, 0.31999194622039795, -0.1932983696460724, 0.05272115394473076, -0.08896811306476593, -0.11601171642541885, -0.04255594313144684, -0.3604641854763031, -0.34574729204177856, -0.007407192140817642, -0.04194582253694534, -0.22521694004535675, -0.14059624075889587, 0.07718799263238907, 0.1546163111925125, 0.15816029906272888, -0.18233659863471985, 0.1749545931816101, -0.38032636046409607, 0.13970977067947388, 0.08690960705280304, 0.0220158901065588, 0.49345630407333374, -0.0037516332231462, 0.06885962933301926, 0.00729316845536232, -0.4403323233127594, -0.06297370046377182, 0.2977604269981384, 0.023055128753185272, 0.019593384116888046, 0.3518141508102417, 0.051364120095968246, 0.6315261125564575, 0.4889100193977356, -0.15075814723968506, 0.1987278014421463, -0.04778295010328293, -0.1115792840719223, -0.39965343475341797, -0.21195432543754578, 0.11171234399080276, -0.2826228141784668, 0.12542696297168732, 0.41685783863067627, -0.011739544570446014, -0.4363332688808441, -0.009312979876995087, 0.2886066138744354, -0.22626590728759766, -0.03353482857346535, 0.1407322734594345, -0.136498361825943, 0.15566116571426392, 0.24927875399589539, -0.15197686851024628, -0.3358058035373688, -0.044301021844148636, -0.06554795801639557, -0.10168822109699249, -0.10399394482374191, -0.27545464038848877, -0.4782885015010834, -0.011620002798736095, -0.3779991865158081, 0.23008567094802856, 0.04780816659331322, 0.34983137249946594, -0.044224586337804794, 0.08695739507675171, 0.32123270630836487, -0.016898900270462036, 0.5688456296920776, -0.3910740911960602, -0.1088196337223053, 0.15168116986751556, -0.35944250226020813, -0.2883344888687134, 0.03068755939602852, -0.15070956945419312, 0.2883807420730591, 0.6098177433013916, 0.5065742135047913, -0.04169108346104622, -0.15379585325717926, 0.0076693277806043625, 0.0976753756403923, 0.1281900554895401, -0.25062400102615356, -0.37295207381248474, 0.12175223976373672, -0.09590601921081543, 0.13063374161720276, 0.014318855479359627, 0.11157216876745224, 0.12505991756916046, -0.16160716116428375, 0.023132896050810814, 0.08527657389640808, 0.22212249040603638, 0.1544777750968933, 0.11857923865318298, 0.09780620783567429, 0.33974793553352356, 0.25318318605422974, -0.09061218798160553, 0.02126561477780342, 0.34522101283073425, -0.11882559955120087, -0.10191111266613007, 0.27528300881385803, 0.014778519980609417, 0.3062773644924164, 0.3589966297149658, 0.11247961223125458, 0.028984639793634415, 0.18591952323913574, 0.26042526960372925, -0.21582429111003876, 0.24470503628253937, 0.4137658178806305, 0.3523693382740021, -0.47059366106987, -0.4870205819606781, -0.018030337989330292, 0.48103004693984985, -0.1415034830570221, 0.3186243176460266, -0.7869362831115723, 0.08054368197917938, 0.030883587896823883, 0.06852035969495773, 0.7341235280036926, -0.42445236444473267, 0.08448813855648041, -0.2732580006122589, 0.204239621758461, -0.04538000002503395, -0.5877483487129211, 0.14249356091022491, -0.19937223196029663, -0.33856871724128723, 0.026543686166405678, -0.10841798782348633, 0.17293334007263184, 0.4824620485305786, 0.19011560082435608, 0.2567995488643646, 0.3360639214515686, 0.15003462135791779, -0.012716561555862427, 0.3075163662433624, 0.49558043479919434, -0.3149346709251404, 0.15518558025360107, 0.0297931469976902, 0.2141152024269104, -0.19111616909503937, 0.03500005975365639, 0.07685814797878265, -0.045210886746644974, -0.005710657685995102, -0.3479852080345154, -0.19827839732170105, -0.3737334609031677, 0.216627836227417, -0.015300262719392776, 0.2827969193458557, 0.35747528076171875, 0.24374419450759888, -0.0598132461309433, 0.08771631121635437, -0.026788486167788506, 0.08559606224298477, 0.27741217613220215, 0.27294212579727173, 0.37182343006134033, -0.4484904408454895, -0.03296855092048645, -0.08183237910270691, -0.1895793229341507, -0.26627588272094727, -0.1657213717699051, -0.13838757574558258, -0.13470900058746338, 0.5105388164520264, 0.17554593086242676, 0.18540988862514496, -0.19831326603889465, 0.23829659819602966, 0.13685686886310577, -0.14183789491653442, -0.01546776294708252, 0.09106924384832382, 0.03672603890299797, 0.6409507989883423, -0.3012278378009796, -0.4983738660812378, -0.04416178539395332, 0.4551076292991638, 0.2364107072353363, -0.0826210305094719, 0.03786957636475563, 0.2227642685174942, -0.2593609690666199, -0.12754985690116882, 0.17501583695411682, -0.12043359130620956, -0.13313406705856323, 0.14229106903076172, -0.016994580626487732, -0.24292975664138794, 0.23972804844379425, -0.12397503852844238, -0.14859329164028168, -0.06956065446138382, -0.1981937438249588, -0.2745431661605835, -0.22849756479263306, -0.1922995001077652, -0.3533960282802582, -0.2301897555589676, 0.22551414370536804, 0.027040129527449608, 0.1312207281589508, 0.41113048791885376, -0.1242666095495224, 0.06341371685266495, 0.11516749113798141, 0.1511099487543106, -0.047739870846271515, -0.21922346949577332, 0.08489140123128891, -0.04546710103750229, -0.08864083886146545, 0.12409587949514389, -0.08634989708662033, -0.13493169844150543, -0.03594905138015747, 0.19074982404708862, -0.029350299388170242, -0.2500734329223633, 0.36382824182510376, -0.12293639779090881, -0.24730530381202698, -0.4124504327774048, -0.04349800944328308, 0.07814059406518936, -0.00846102088689804, -0.1043873056769371, 0.273549348115921, -0.3038497269153595, -0.23337820172309875, 0.4588107466697693, -0.1831393539905548, -0.04932917654514313, -0.016484515741467476, 0.29029619693756104, 0.44137054681777954, -0.06449107825756073, -0.10115336626768112, 0.027639955282211304, 0.20802971720695496, 0.08459357172250748, 0.16115057468414307, -0.13264985382556915, 0.1946249157190323, 0.2788701057434082, 0.34370848536491394, 0.1637822985649109, 0.07356712967157364, -0.2542279064655304, -0.002320115454494953, -0.004194172099232674, -0.25748956203460693, -0.20878347754478455, 0.5838803648948669, 0.0964357778429985, 0.11977756023406982, 0.0411369726061821, 0.3612367808818817, 0.18615004420280457, -0.009371772408485413, -0.07118254899978638, 0.0869951844215393, -0.3279542922973633, 0.0698118507862091, 0.18045499920845032, 0.2434646040201187, 0.2993232011795044, 0.4279683232307434, 0.09179108589887619, 0.00423111766576767, 0.4806726574897766, 0.27433037757873535, 0.25569698214530945, 0.5029740333557129, 0.24374592304229736, -0.02483738213777542, -0.38444510102272034, 0.22351931035518646, 0.4877791404724121, -0.34678828716278076, -0.038670413196086884, -0.03563009947538376, 0.23981961607933044, -0.2759624421596527, -0.36806368827819824, -0.311170756816864, 0.363938570022583, -0.1686621606349945, -0.25183364748954773, 0.2508212924003601, -0.05366276577115059, 0.011008769273757935, 0.18838852643966675, -0.2071027159690857, 0.15624310076236725, 0.8072535991668701, 0.12216933071613312, 0.0070223137736320496, -0.3940952718257904, -0.31786662340164185, -0.19333180785179138, 0.1779828667640686, -0.16003283858299255, 0.1832055151462555, -0.34811151027679443, -0.013661392033100128, -0.0037102550268173218, 0.3205561935901642, 0.37187692523002625, 0.28851252794265747, -0.13041673600673676, 0.047796133905649185, -0.029958155006170273, 0.1783384531736374, -0.026013486087322235, 0.21893422305583954, 0.028329014778137207, 0.17764616012573242, 0.14948317408561707, -0.10872088372707367, -0.08027654141187668, -0.3959602415561676, 0.05107244476675987, 0.3922525644302368, -0.18919777870178223, 0.17150628566741943, -0.3878602683544159, -0.1462847888469696, 0.0034629087895154953, 0.299342542886734, -0.2532045543193817, -0.10179130733013153, 0.5167980790138245, -0.48171764612197876, 0.08819328248500824, -0.1758195459842682, 0.026063811033964157, -0.07182307541370392, 0.5631067752838135, 0.2815418243408203, -0.015723131597042084, -0.35692811012268066, -0.0953780859708786, -0.6198182702064514, -0.01954629272222519, -0.32671016454696655, 0.32341617345809937, 0.06498539447784424, 0.30963000655174255, 0.050984177738428116, 0.11596813797950745, 0.38931000232696533, -0.1246115043759346, -0.09644467383623123, 0.3271765410900116, -0.32469791173934937, 0.44326868653297424, -0.2233608514070511, -0.19830849766731262, -0.0727175623178482, -0.44461169838905334, 0.388072669506073, 0.05435651168227196, -0.15465201437473297, -0.1481701135635376, -0.059766270220279694, 0.15541692078113556, 0.17243069410324097, 0.18925398588180542, 0.35030049085617065, 0.3331797122955322, 0.03807876259088516, -0.021268019452691078, -0.16546490788459778, 0.15533892810344696, -0.04201582446694374, 0.35191088914871216, -0.08520840108394623, 0.06823905557394028, -0.2896391451358795, 0.17770379781723022, 0.09357183426618576, -0.11462940275669098, 0.016365550458431244, -0.2013133317232132, -0.3573484420776367, -0.027392998337745667, -0.038928110152482986, 0.3227161169052124, 0.079901784658432, 0.39047038555145264, 0.07981272041797638, -0.08450132608413696, -0.16204646229743958, -0.11616896837949753, -0.02291126549243927, -0.3266755938529968, -0.2992129623889923, -0.44641441106796265, 0.24725469946861267, -0.25715288519859314, 0.10948213189840317, -0.23495268821716309, -0.33308541774749756, 0.3025575280189514, 0.001881193369626999, -0.3634392321109772, 0.3403205871582031, -0.4263153672218323, -0.09767720103263855, -0.15674486756324768, 0.07318597286939621, -0.088536836206913, -0.4450536072254181, 0.2454165518283844, -0.11635112017393112 ]
https://github.com/huggingface/datasets/issues/1992
`datasets.map` multi processing much slower than single processing
Yes this looks like a bug. On my side I haven't managed to reproduce it but @theo-m has. We'll investigate this !
Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png)
22
`datasets.map` multi processing much slower than single processing Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png) Yes this looks like a bug. On my side I haven't managed to reproduce it but @theo-m has. We'll investigate this !
[ -0.40819215774536133, -0.3062441647052765, -0.08795160055160522, 0.3387191891670227, -0.08763773739337921, 0.007327094674110413, 0.35701626539230347, 0.1153460443019867, 0.055131297558546066, 0.003546983003616333, 0.07253926992416382, 0.4414960741996765, 0.16499800980091095, 0.18758440017700195, -0.14765459299087524, 0.029333557933568954, 0.2130359262228012, -0.051500916481018066, 0.1965271383523941, -0.0178302563726902, -0.1560702919960022, 0.14759385585784912, -0.5003776550292969, 0.0025840625166893005, -0.41173693537712097, -0.11838773638010025, 0.10896937549114227, 0.11856089532375336, -0.1320059895515442, -0.21963955461978912, -0.24149224162101746, 0.13263361155986786, -0.08926446735858917, 0.576572597026825, -0.0001232842478202656, -0.191923588514328, 0.032313913106918335, 0.2691642642021179, 0.09220863878726959, 0.07736459374427795, -0.1374872624874115, -0.27046114206314087, -0.05593903362751007, -0.1042168065905571, 0.11978370696306229, 0.21111321449279785, -0.06967892497777939, -0.4599674642086029, 0.00010912120342254639, 0.0868268832564354, 0.05639433115720749, 0.3696478307247162, -0.3200596570968628, 0.03887757658958435, -0.3519628345966339, 0.1467321813106537, -0.16526642441749573, 0.04158075898885727, 0.27753907442092896, -0.17836710810661316, -0.11277522891759872, 0.31923049688339233, -0.07927512377500534, 0.30359572172164917, -0.017864465713500977, -0.055698052048683167, 0.058559954166412354, -0.459248811006546, 0.18333131074905396, 0.34586721658706665, 0.007354810833930969, -0.06437424570322037, -0.1470324844121933, -0.23857852816581726, -0.3338240385055542, -0.14053860306739807, 0.19878381490707397, 0.13647904992103577, 0.1702747792005539, -0.005242630839347839, -0.5416439771652222, 0.14655713737010956, 0.3550439178943634, -0.0761372298002243, -0.13559216260910034, 0.015759088099002838, 0.12187045812606812, 0.32525038719177246, 0.3240036964416504, 0.12754827737808228, -0.03657425567507744, -0.19486792385578156, 0.3111546039581299, 0.22319380939006805, -0.7916339635848999, -0.0396391935646534, 0.22532448172569275, -0.11117670685052872, -0.07351486384868622, -0.15931805968284607, -0.10052905976772308, 0.34465262293815613, -0.3403429388999939, 0.09903378039598465, 0.2912231683731079, -0.09502114355564117, 0.010215550661087036, 0.10840974748134613, -0.028063468635082245, -0.1825864017009735, -0.328010618686676, 0.09052769839763641, 0.09826567023992538, -0.3317925035953522, -0.04169522970914841, 0.124360591173172, -0.2980741262435913, -0.07624544948339462, -0.12360534816980362, 0.04481404647231102, -0.21686291694641113, -0.06814160943031311, 0.12968789041042328, 0.08777577430009842, -0.021284375339746475, 0.8070808053016663, -0.2816448509693146, 0.10679749399423599, -0.4744448959827423, -0.592680037021637, -0.021129578351974487, -0.13695074617862701, -0.3431304097175598, 0.2205866128206253, 0.12073053419589996, -0.025607559829950333, 0.1294146031141281, 0.3291069567203522, 0.04097643122076988, -0.2256113588809967, 0.3409343957901001, -0.5228226184844971, 0.21563895046710968, 0.09590233862400055, 0.15412698686122894, 0.5640351176261902, -0.10837532579898834, 0.3016695976257324, -0.11988309025764465, 0.26470425724983215, -0.5266968011856079, -0.23331508040428162, 0.15983155369758606, -0.05058760568499565, 0.10371844470500946, 0.11435721814632416, -0.4656694829463959, 0.49703699350357056, 0.33093419671058655, -0.23341400921344757, -0.16279390454292297, -0.18985320627689362, -0.6767977476119995, -0.15442389249801636, -0.0500025749206543, 0.16165317595005035, -0.3363912105560303, 0.22925004363059998, -0.3274928331375122, 0.15021491050720215, 0.4485820531845093, 0.5928900241851807, -0.19018962979316711, 0.3645639717578888, -0.02040935680270195, 0.1975708156824112, -0.0036316290497779846, -0.059973619878292084, -0.3936969041824341, 0.5259164571762085, -0.18290294706821442, -0.01061844639480114, -0.21508195996284485, 0.16999641060829163, 0.2287166863679886, -0.05771821364760399, 0.3219901919364929, 0.27395951747894287, 0.018851999193429947, 0.40320393443107605, -0.23306165635585785, -0.12804819643497467, 0.18040262162685394, 0.030522692948579788, -0.06365390121936798, -0.09798216074705124, -0.019356779754161835, -0.28558725118637085, 0.34829097986221313, 0.015292573720216751, 0.02458169125020504, 0.4236873388290405, -0.3783503472805023, -0.18183718621730804, -0.14478778839111328, -0.24429824948310852, -0.06795569509267807, 0.35596632957458496, -0.014005167409777641, 0.03898412734270096, 0.4375687837600708, 0.037021949887275696, 0.190771222114563, 0.11830800026655197, -0.038316015154123306, -0.07938447594642639, -0.1185753121972084, -0.08554601669311523, -0.1817227303981781, -0.17495384812355042, -0.00545964390039444, 0.4448438584804535, 0.21637684106826782, -0.11790802329778671, -0.03267752379179001, -0.1412687748670578, 0.08804475516080856, 0.09979324787855148, -0.22284549474716187, -0.09836848825216293, 0.10330328345298767, 0.03837619349360466, -0.08236206322908401, 0.25546547770500183, 0.4671521484851837, -0.06794603168964386, 0.13864775002002716, 0.0807567909359932, 0.3750539720058441, -0.04305975139141083, 0.014713883399963379, -0.12892581522464752, 0.11989369988441467, -0.2531408667564392, -0.009021498262882233, 0.3039260804653168, 0.1050678938627243, 0.43478924036026, 0.012102380394935608, -0.12857969105243683, 0.016062969341874123, 0.2944086194038391, 0.14885389804840088, 0.046885520219802856, 0.3327324390411377, 0.33127233386039734, 0.21905605494976044, 0.3297994136810303, -0.123987577855587, 0.34898313879966736, 0.6290679574012756, 0.062306713312864304, -0.3310551643371582, 0.021901382133364677, -0.1828678548336029, -0.35186275839805603, 0.027017632499337196, -0.13520434498786926, 0.560644805431366, 0.0019486923702061176, 0.23083101212978363, -0.031134402379393578, -0.09540555626153946, -0.07739713788032532, -0.03128143399953842, 0.11166650056838989, 0.22665542364120483, -0.10815802961587906, 0.3215031325817108, -0.025196470320224762, -0.03790363669395447, -0.23388463258743286, 0.34774985909461975, 0.22492766380310059, -0.2618468701839447, 0.1261751651763916, -0.3139878213405609, 0.19011318683624268, 0.168428435921669, -0.10990950465202332, -0.287541002035141, -0.21399691700935364, -0.13581442832946777, -0.08295468986034393, 0.20283165574073792, -0.030164243653416634, 0.2629522681236267, -0.14412833750247955, -0.11331098526716232, -0.05377127230167389, 0.024140149354934692, -0.12701325118541718, -0.14959990978240967, -0.01326774526387453, 0.274787038564682, 0.21334967017173767, 0.0319279208779335, -0.05735239386558533, -0.2814175486564636, -0.09137549996376038, -0.21933549642562866, -0.10366953909397125, 0.14926981925964355, 0.0610915869474411, -0.2002238929271698, -0.08718520402908325, -0.22511017322540283, 0.18764051795005798, 0.16322384774684906, -0.2574804127216339, -0.17548835277557373, 0.06255064904689789, -0.11665984988212585, -0.21866649389266968, 0.01563263311982155, -0.15037760138511658, -0.08654371649026871, -0.09193933010101318, 0.2822989225387573, -0.16554340720176697, 0.33889859914779663, -0.21832284331321716, 0.05953339859843254, -0.09011461585760117, -0.09935694187879562, -0.009092450141906738, -0.3407253324985504, -0.37112465500831604, 0.0007946640253067017, -0.02202088199555874, -0.2118554562330246, -0.1472565084695816, 0.07336761802434921, 0.16379112005233765, 0.14797846972942352, -0.16477838158607483, 0.19945725798606873, -0.3912201523780823, 0.13022665679454803, 0.06022709980607033, 0.026815315708518028, 0.470939576625824, 0.01789260283112526, 0.07758118212223053, 0.0052827633917331696, -0.43464526534080505, -0.07920394092798233, 0.2887021601200104, 0.01396467536687851, 0.010712554678320885, 0.33867645263671875, 0.03222207352519035, 0.6317051649093628, 0.48249489068984985, -0.14851239323616028, 0.18813788890838623, -0.023658541962504387, -0.16519933938980103, -0.384573370218277, -0.21333080530166626, 0.12562474608421326, -0.2637743055820465, 0.15931925177574158, 0.4151323437690735, -0.003230886533856392, -0.4213324785232544, -0.00384676456451416, 0.23390749096870422, -0.21788319945335388, -0.022622225806117058, 0.14397107064723969, -0.12975066900253296, 0.15887990593910217, 0.254635751247406, -0.17443731427192688, -0.3558160960674286, -0.04325059801340103, -0.06726938486099243, -0.10318818688392639, -0.1053575947880745, -0.2481721043586731, -0.4871167838573456, -0.019314296543598175, -0.38010039925575256, 0.24690422415733337, 0.04702206328511238, 0.3121178150177002, -0.008328352123498917, 0.11115285009145737, 0.31550294160842896, 0.012758057564496994, 0.5663394927978516, -0.3827936351299286, -0.10965390503406525, 0.14290151000022888, -0.37013497948646545, -0.3069668710231781, 0.04662377014756203, -0.1581289917230606, 0.2779013514518738, 0.588797390460968, 0.5085599422454834, -0.012226909399032593, -0.1780637800693512, -0.011926066130399704, 0.12561580538749695, 0.13657119870185852, -0.2632850706577301, -0.3686160445213318, 0.1290091574192047, -0.1209162175655365, 0.12726791203022003, -0.009382103569805622, 0.12935344874858856, 0.10886625945568085, -0.1452130228281021, 0.024979401379823685, 0.09984458237886429, 0.21392038464546204, 0.15844585001468658, 0.1112467497587204, 0.08211652934551239, 0.31426143646240234, 0.21995575726032257, -0.07877002656459808, 0.031076814979314804, 0.33122026920318604, -0.11714880168437958, -0.08940425515174866, 0.2447332739830017, 0.019406162202358246, 0.32251307368278503, 0.3028383255004883, 0.11960001289844513, 0.054276127368211746, 0.17751072347164154, 0.27208322286605835, -0.2198680341243744, 0.26392319798469543, 0.4020565152168274, 0.37880373001098633, -0.47468337416648865, -0.4993569552898407, -0.00495794415473938, 0.4775184094905853, -0.14692145586013794, 0.2806057929992676, -0.8029664158821106, 0.09968510270118713, 0.04012526944279671, 0.06926079839468002, 0.7495133876800537, -0.4353293776512146, 0.04827127233147621, -0.295123428106308, 0.19075584411621094, -0.04615228250622749, -0.5932648777961731, 0.14355634152889252, -0.19567078351974487, -0.3626368045806885, 0.027766579762101173, -0.11108365654945374, 0.18418970704078674, 0.5116980671882629, 0.17241546511650085, 0.26517465710639954, 0.3226737380027771, 0.11346796154975891, -0.016315193846821785, 0.32092541456222534, 0.5159454345703125, -0.315528929233551, 0.1688554435968399, 0.02833361178636551, 0.21236027777194977, -0.2144271731376648, 0.033512815833091736, 0.09196789562702179, -0.05548291280865669, 0.008139248937368393, -0.3170040249824524, -0.19518175721168518, -0.38439518213272095, 0.21255791187286377, -0.052966076880693436, 0.28742921352386475, 0.3768795430660248, 0.26572558283805847, -0.06939156353473663, 0.09110859036445618, 0.005701981484889984, 0.05973827838897705, 0.2934531271457672, 0.26301309466362, 0.382438063621521, -0.4781069755554199, -0.03151708096265793, -0.10588091611862183, -0.24315014481544495, -0.2555651366710663, -0.15914802253246307, -0.1154097244143486, -0.13987113535404205, 0.49645739793777466, 0.1722515970468521, 0.1893213987350464, -0.2044437974691391, 0.22769194841384888, 0.11304591596126556, -0.1316678524017334, -0.017223451286554337, 0.09602367877960205, 0.030513063073158264, 0.6575428247451782, -0.30845311284065247, -0.4944212734699249, -0.02893694117665291, 0.41968733072280884, 0.2622753381729126, -0.08516740798950195, 0.037739403545856476, 0.22677727043628693, -0.2595047652721405, -0.132346972823143, 0.1684507429599762, -0.12403633445501328, -0.10844609886407852, 0.11839939653873444, -0.009162540547549725, -0.22705458104610443, 0.24880477786064148, -0.14691495895385742, -0.16871047019958496, -0.059627316892147064, -0.19743870198726654, -0.27753353118896484, -0.25138357281684875, -0.20410411059856415, -0.3706066608428955, -0.2562870681285858, 0.24073472619056702, 0.04157640412449837, 0.11737193167209625, 0.4527793824672699, -0.12207332253456116, 0.06857147067785263, 0.11334840208292007, 0.18840466439723969, -0.05727711319923401, -0.21798822283744812, 0.07878316938877106, -0.02844761312007904, -0.08043976873159409, 0.11914022266864777, -0.07956477999687195, -0.1420937180519104, -0.03660658374428749, 0.19296449422836304, -0.014277908951044083, -0.24344263970851898, 0.3454568088054657, -0.12004046142101288, -0.2178977131843567, -0.4145103096961975, -0.04763750731945038, 0.06506887823343277, 0.0037015751004219055, -0.11266028881072998, 0.2850678265094757, -0.3049941658973694, -0.2713084816932678, 0.4439599812030792, -0.19385302066802979, -0.07405306398868561, -0.012924839742481709, 0.29565486311912537, 0.46312353014945984, -0.08201182633638382, -0.09728919714689255, 0.013659358024597168, 0.24117043614387512, 0.08485893905162811, 0.1393473744392395, -0.11892671883106232, 0.1844651848077774, 0.26355817914009094, 0.31696978211402893, 0.12332718074321747, 0.10273238271474838, -0.24900496006011963, 0.0025364472530782223, -0.009194256737828255, -0.2512865960597992, -0.21211165189743042, 0.565692663192749, 0.05405554547905922, 0.1361764371395111, 0.04824884235858917, 0.3202565312385559, 0.20822611451148987, -0.02086246758699417, -0.08466465026140213, 0.0702996551990509, -0.30350059270858765, 0.056676700711250305, 0.15492254495620728, 0.25110575556755066, 0.28120800852775574, 0.4280407130718231, 0.11426112055778503, -0.00014828890562057495, 0.47655272483825684, 0.2808414399623871, 0.2620627284049988, 0.5186693668365479, 0.23558703064918518, -0.021488606929779053, -0.36090996861457825, 0.19377516210079193, 0.501166045665741, -0.35909298062324524, -0.05650601536035538, -0.05232428014278412, 0.22668001055717468, -0.23336900770664215, -0.37950313091278076, -0.2632835805416107, 0.38851234316825867, -0.15784293413162231, -0.25851204991340637, 0.24098950624465942, -0.046933069825172424, 0.000028304755687713623, 0.17492486536502838, -0.20622247457504272, 0.150680810213089, 0.7950515747070312, 0.12426333129405975, 0.013654008507728577, -0.38083168864250183, -0.345303475856781, -0.14592483639717102, 0.16262687742710114, -0.1475110650062561, 0.16472896933555603, -0.32245832681655884, -0.026464223861694336, -0.011559996753931046, 0.2680279314517975, 0.3544740676879883, 0.28468793630599976, -0.12207990884780884, 0.07826995104551315, -0.00981452502310276, 0.16775545477867126, 0.001497223973274231, 0.1770469844341278, 0.032392390072345734, 0.16494743525981903, 0.15862780809402466, -0.11519770324230194, -0.08114960789680481, -0.4375471770763397, 0.06724986433982849, 0.39057087898254395, -0.16175664961338043, 0.17428109049797058, -0.3499734401702881, -0.15281961858272552, -0.00840698555111885, 0.2927040755748749, -0.2481120228767395, -0.0925731286406517, 0.5134467482566833, -0.48242226243019104, 0.0891168862581253, -0.17153505980968475, 0.02083948254585266, -0.08345119655132294, 0.5554558634757996, 0.28707176446914673, -0.003824327141046524, -0.383686900138855, -0.11069271713495255, -0.6020952463150024, -0.024806402623653412, -0.3344971835613251, 0.29236385226249695, 0.06843822449445724, 0.29160013794898987, 0.05646754056215286, 0.11207494139671326, 0.4103299379348755, -0.09621313959360123, -0.06532101333141327, 0.34591877460479736, -0.3264940679073334, 0.4363436698913574, -0.23905594646930695, -0.19338752329349518, -0.06941819190979004, -0.4277089834213257, 0.3903370499610901, 0.07529541850090027, -0.14495834708213806, -0.163908451795578, -0.028053537011146545, 0.16312263906002045, 0.14886298775672913, 0.20014537870883942, 0.3477190434932709, 0.3418530821800232, 0.02851879596710205, 0.0035669952630996704, -0.12161141633987427, 0.21504877507686615, -0.04891076311469078, 0.32237836718559265, -0.05265863612294197, 0.05323490500450134, -0.2986659109592438, 0.18225710093975067, 0.11141008883714676, -0.11748650670051575, 0.014588575810194016, -0.2229134440422058, -0.3370717167854309, -0.03301658481359482, -0.043577734380960464, 0.34205108880996704, 0.07115112990140915, 0.37329909205436707, 0.1057930588722229, -0.06661201268434525, -0.15768715739250183, -0.10363907366991043, -0.02031618356704712, -0.2809886336326599, -0.3029543161392212, -0.45490339398384094, 0.24474136531352997, -0.2676585614681244, 0.14667759835720062, -0.22372233867645264, -0.33500397205352783, 0.30701944231987, -0.0036483965814113617, -0.36157462000846863, 0.3468211591243744, -0.3997817635536194, -0.07524538040161133, -0.1555505394935608, 0.05853678286075592, -0.07837677747011185, -0.4409908354282379, 0.21648967266082764, -0.12507954239845276 ]
https://github.com/huggingface/datasets/issues/1992
`datasets.map` multi processing much slower than single processing
Thank you for the reply! I would be happy to follow the discussions related to the issue. If you do not mind, could you also give a little more explanation on my p.s.2? I am having a hard time figuring out why the single processing `map` uses all of my cores. @lhoestq @theo-m
Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png)
53
`datasets.map` multi processing much slower than single processing Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png) Thank you for the reply! I would be happy to follow the discussions related to the issue. If you do not mind, could you also give a little more explanation on my p.s.2? I am having a hard time figuring out why the single processing `map` uses all of my cores. @lhoestq @theo-m
[ -0.3987976014614105, -0.33985650539398193, -0.09195369482040405, 0.3478130102157593, -0.10693071782588959, 0.030263841152191162, 0.370673805475235, 0.10262519121170044, 0.06230902299284935, 0.014974378049373627, 0.09556848555803299, 0.44722825288772583, 0.17406831681728363, 0.1985434591770172, -0.1503283679485321, 0.032467734068632126, 0.20791181921958923, -0.013935573399066925, 0.20800800621509552, -0.02249791845679283, -0.14968039095401764, 0.16760139167308807, -0.46359914541244507, -0.001121610403060913, -0.42760589718818665, -0.15053001046180725, 0.10849200189113617, 0.15836894512176514, -0.15400783717632294, -0.2310480922460556, -0.2729552984237671, 0.1561855524778366, -0.07722033560276031, 0.5987081527709961, -0.00012095861893612891, -0.1784319132566452, -0.015478208661079407, 0.2657155692577362, 0.08263318240642548, 0.02261202037334442, -0.14891859889030457, -0.24391040205955505, -0.050876982510089874, -0.10651895403862, 0.12415631860494614, 0.24920517206192017, -0.0815332904458046, -0.47448015213012695, 0.03486821800470352, 0.09184543043375015, 0.07008828967809677, 0.3698403239250183, -0.35732853412628174, 0.00583479693159461, -0.4008416533470154, 0.11535536497831345, -0.13982892036437988, 0.046257250010967255, 0.30848801136016846, -0.17060355842113495, -0.14132797718048096, 0.3538625240325928, -0.05107736587524414, 0.30192428827285767, -0.0005346238613128662, -0.09177075326442719, 0.0509420745074749, -0.4716896712779999, 0.21425893902778625, 0.34412726759910583, 0.005004070699214935, -0.04491603374481201, -0.15340694785118103, -0.23391792178153992, -0.35662996768951416, -0.14253556728363037, 0.19763237237930298, 0.11915626376867294, 0.14689388871192932, 0.023606790229678154, -0.559405505657196, 0.14245587587356567, 0.3238300085067749, -0.060359448194503784, -0.12074866890907288, 0.03404073044657707, 0.10241953283548355, 0.3249111771583557, 0.3525274395942688, 0.15888695418834686, -0.07533052563667297, -0.22132480144500732, 0.3150899112224579, 0.19271306693553925, -0.7903560996055603, -0.054672956466674805, 0.21718308329582214, -0.09191270917654037, -0.05701600760221481, -0.15115860104560852, -0.1151759922504425, 0.34969407320022583, -0.34745466709136963, 0.08734380453824997, 0.3179747462272644, -0.06743325293064117, 0.033335454761981964, 0.07785732299089432, -0.039838626980781555, -0.16192291676998138, -0.298122763633728, 0.059245117008686066, 0.08211427927017212, -0.30911076068878174, -0.06774339079856873, 0.10367433726787567, -0.31283503770828247, -0.08419812470674515, -0.17084477841854095, 0.006215307861566544, -0.217565655708313, -0.08678628504276276, 0.14960630238056183, 0.09327880293130875, -0.0010674851946532726, 0.8402983546257019, -0.26444777846336365, 0.09337493777275085, -0.44387319684028625, -0.6254180073738098, -0.021487850695848465, -0.09773008525371552, -0.37839069962501526, 0.2289135456085205, 0.12024486064910889, -0.052269820123910904, 0.12999312579631805, 0.32371804118156433, 0.041928429156541824, -0.19851501286029816, 0.3197091519832611, -0.541510820388794, 0.18958362936973572, 0.06053187698125839, 0.1435222029685974, 0.566322922706604, -0.09632384777069092, 0.2923195958137512, -0.12785139679908752, 0.23476257920265198, -0.515506386756897, -0.24755680561065674, 0.17589004337787628, -0.022386401891708374, 0.10438011586666107, 0.10098733007907867, -0.4531753361225128, 0.5067190527915955, 0.2928757965564728, -0.1959371417760849, -0.15085333585739136, -0.156215637922287, -0.6555333733558655, -0.16082221269607544, -0.07108472287654877, 0.1317821592092514, -0.35833361744880676, 0.20573267340660095, -0.3523510992527008, 0.14839328825473785, 0.4070550203323364, 0.6043971180915833, -0.21384809911251068, 0.3782387971878052, 0.024564212188124657, 0.234758660197258, 0.003824375569820404, -0.086607925593853, -0.38282284140586853, 0.5263622403144836, -0.2283225655555725, -0.00030661001801490784, -0.19125819206237793, 0.17503872513771057, 0.23844584822654724, -0.027258440852165222, 0.3657394349575043, 0.26326805353164673, 0.009416569024324417, 0.38356348872184753, -0.22402149438858032, -0.15330670773983002, 0.16316333413124084, 0.052279237657785416, -0.08037309348583221, -0.10238049179315567, -0.046399302780628204, -0.29130813479423523, 0.3220100998878479, -0.00633535161614418, 0.029031390324234962, 0.4283190965652466, -0.37749266624450684, -0.19083194434642792, -0.13737639784812927, -0.24499747157096863, -0.09539058059453964, 0.38245725631713867, 0.02390369400382042, 0.07063800096511841, 0.463476300239563, 0.038681089878082275, 0.14959776401519775, 0.10425198823213577, -0.017523426562547684, -0.07937248051166534, -0.09171610325574875, -0.10167880356311798, -0.18055950105190277, -0.2226998656988144, -0.0659698098897934, 0.44194915890693665, 0.22275780141353607, -0.09889360517263412, -0.03929941728711128, -0.15863178670406342, 0.043058209121227264, 0.08399796485900879, -0.21251410245895386, -0.07890485972166061, 0.07000553607940674, 0.06417302042245865, -0.07292793691158295, 0.260272353887558, 0.425313264131546, -0.07394643127918243, 0.17464962601661682, 0.11281467229127884, 0.3552788197994232, -0.045874934643507004, 0.020368967205286026, -0.14133915305137634, 0.1449812799692154, -0.2591531574726105, -0.05213078856468201, 0.28410133719444275, 0.08382973074913025, 0.4506697654724121, 0.02356082946062088, -0.14254769682884216, -0.014093808829784393, 0.26437851786613464, 0.17081235349178314, 0.0492691695690155, 0.3555661141872406, 0.3383416533470154, 0.2349533587694168, 0.33603450655937195, -0.1631878763437271, 0.34453651309013367, 0.61266028881073, 0.041751984506845474, -0.3295563757419586, 0.029230372980237007, -0.20064207911491394, -0.3668964207172394, 0.0839066356420517, -0.11446743458509445, 0.5725327134132385, 0.02044583484530449, 0.2464558482170105, -0.04260166734457016, -0.06171882152557373, -0.07889201492071152, -0.03211825340986252, 0.10358400642871857, 0.20687337219715118, -0.13353478908538818, 0.29636260867118835, -0.02335384488105774, -0.046438563615083694, -0.2598063349723816, 0.3200156092643738, 0.21674656867980957, -0.24199238419532776, 0.13057087361812592, -0.319662868976593, 0.14523005485534668, 0.20405340194702148, -0.11868887394666672, -0.3031507730484009, -0.20740212500095367, -0.11621609330177307, -0.061946313828229904, 0.27655157446861267, -0.05911671370267868, 0.2854481041431427, -0.09246166050434113, -0.1519620567560196, -0.017240164801478386, -0.020210005342960358, -0.1655511111021042, -0.1726309359073639, 0.008546285331249237, 0.26440349221229553, 0.22060392796993256, 0.04759056866168976, -0.06418134272098541, -0.2819514870643616, -0.05248715728521347, -0.1731322556734085, -0.11061061918735504, 0.13793233036994934, 0.06425721943378448, -0.17110562324523926, 0.003956601023674011, -0.23479492962360382, 0.18941229581832886, 0.14708073437213898, -0.25779640674591064, -0.16384737193584442, 0.0355856753885746, -0.12144441902637482, -0.21226735413074493, 0.012888658791780472, -0.16581657528877258, -0.08545871078968048, -0.09553878009319305, 0.3060120940208435, -0.16613025963306427, 0.3232094645500183, -0.1944451928138733, 0.06420274823904037, -0.03899497166275978, -0.0717669203877449, 0.03120986744761467, -0.3452693819999695, -0.37136325240135193, -0.021094489842653275, 0.028096895664930344, -0.20076757669448853, -0.12266650795936584, 0.0851430594921112, 0.2075577676296234, 0.11453383415937424, -0.15104590356349945, 0.17483407258987427, -0.37280064821243286, 0.13019050657749176, 0.05893860012292862, 0.0784902274608612, 0.44672051072120667, 0.03605350852012634, 0.061704397201538086, 0.01509951800107956, -0.4115449786186218, -0.07897915691137314, 0.28646111488342285, 0.02886728197336197, 0.028506916016340256, 0.32724934816360474, 0.07906360924243927, 0.6817412376403809, 0.4720703363418579, -0.18808752298355103, 0.19480136036872864, 0.004317779093980789, -0.17797832190990448, -0.3762972354888916, -0.22146490216255188, 0.10912176221609116, -0.2775564193725586, 0.19006459414958954, 0.4069158434867859, 0.002533731982111931, -0.4038469195365906, -0.029822837561368942, 0.24674740433692932, -0.2389828860759735, -0.005850907415151596, 0.14718709886074066, -0.07959246635437012, 0.1282854676246643, 0.25440850853919983, -0.18981218338012695, -0.343929648399353, -0.033894218504428864, -0.057408470660448074, -0.07070514559745789, -0.12443942576646805, -0.2597433626651764, -0.5114726424217224, -0.03301994130015373, -0.38134628534317017, 0.24752604961395264, 0.022880280390381813, 0.26948386430740356, -0.03789045289158821, 0.12434060126543045, 0.3278180956840515, -0.006477514747530222, 0.5314376950263977, -0.3730398714542389, -0.17245188355445862, 0.12348555028438568, -0.4129559099674225, -0.2700181007385254, 0.1126653254032135, -0.18090130388736725, 0.28459498286247253, 0.5743812322616577, 0.5144293308258057, -0.045542407780885696, -0.2244945913553238, -0.037476249039173126, 0.13091088831424713, 0.13298967480659485, -0.27037563920021057, -0.32828718423843384, 0.14307725429534912, -0.1507306545972824, 0.10063637048006058, -0.020758993923664093, 0.13676698505878448, 0.12833736836910248, -0.10235993564128876, 0.058042608201503754, 0.09145315736532211, 0.2539272606372833, 0.19802837073802948, 0.09630797058343887, 0.06021043285727501, 0.2583252191543579, 0.2657186985015869, -0.09806041419506073, 0.03828421235084534, 0.3328791856765747, -0.15483492612838745, -0.09225042164325714, 0.23302355408668518, 0.060371074825525284, 0.3217379152774811, 0.3481733798980713, 0.12119100987911224, 0.0601411871612072, 0.1878470927476883, 0.2428903579711914, -0.2255193591117859, 0.2873825430870056, 0.3583303391933441, 0.3687766194343567, -0.4462329149246216, -0.49712812900543213, -0.012983754277229309, 0.4985199570655823, -0.16834354400634766, 0.3029264509677887, -0.7764922976493835, 0.07372388988733292, 0.02153344452381134, 0.07447449117898941, 0.7982969284057617, -0.4352932572364807, 0.062213946133852005, -0.29512885212898254, 0.20999227464199066, -0.056707754731178284, -0.5967226028442383, 0.13448292016983032, -0.19119788706302643, -0.37819990515708923, 0.0069170426577329636, -0.10470190644264221, 0.18575982749462128, 0.5643199682235718, 0.15238745510578156, 0.2857607901096344, 0.3366234302520752, 0.08056242018938065, -0.009591039270162582, 0.3668842315673828, 0.502819299697876, -0.3357379734516144, 0.15403427183628082, 0.04631597548723221, 0.19374927878379822, -0.19323331117630005, 0.0020392872393131256, 0.09964516013860703, -0.07191772013902664, -0.002778880298137665, -0.31431183218955994, -0.21838966012001038, -0.4510265290737152, 0.20374372601509094, -0.06801238656044006, 0.317569375038147, 0.3931637406349182, 0.27698230743408203, -0.06705012917518616, 0.04112963750958443, 0.006571223959326744, 0.03567168861627579, 0.30105164647102356, 0.2570824921131134, 0.36310410499572754, -0.4733552932739258, -0.005705440416932106, -0.1186290979385376, -0.24545809626579285, -0.21744081377983093, -0.17005276679992676, -0.05866063013672829, -0.15104421973228455, 0.4876142740249634, 0.15785367786884308, 0.16097605228424072, -0.19050192832946777, 0.24735192954540253, 0.11598794162273407, -0.11486811935901642, -0.0019467081874608994, 0.13739411532878876, 0.024704458191990852, 0.6386430859565735, -0.2702285647392273, -0.4856574535369873, -0.034576427191495895, 0.38692766427993774, 0.24855685234069824, -0.1072569414973259, 0.01169467531144619, 0.20254434645175934, -0.2665698528289795, -0.14961084723472595, 0.16378846764564514, -0.08577731251716614, -0.07299884408712387, 0.1273660510778427, 0.03483013063669205, -0.24941730499267578, 0.2480977475643158, -0.10014793276786804, -0.1314287781715393, -0.03361097723245621, -0.20421762764453888, -0.2643253207206726, -0.25447171926498413, -0.17200885713100433, -0.37506023049354553, -0.20700882375240326, 0.2421015501022339, -0.017237946391105652, 0.12845173478126526, 0.4695534110069275, -0.14978623390197754, 0.06071266531944275, 0.10215618461370468, 0.19060871005058289, -0.03850012272596359, -0.26011401414871216, 0.0941980630159378, -0.017074456438422203, -0.06436093151569366, 0.07839605957269669, -0.0853477492928505, -0.1668204367160797, -0.011580822989344597, 0.18477265536785126, -0.01303526759147644, -0.2575165927410126, 0.3359076678752899, -0.10252411663532257, -0.17392598092556, -0.3928408920764923, -0.05017773434519768, 0.04684022068977356, 0.009701505303382874, -0.10233192890882492, 0.31729987263679504, -0.29317188262939453, -0.3031933903694153, 0.40686607360839844, -0.20919057726860046, -0.06654591858386993, -0.0005235476419329643, 0.2697984278202057, 0.45956265926361084, -0.0918450877070427, -0.12778030335903168, 0.029921066015958786, 0.29427647590637207, 0.06880016624927521, 0.11208592355251312, -0.10152465105056763, 0.18292397260665894, 0.2699063718318939, 0.2781376242637634, 0.12019997835159302, 0.11410779505968094, -0.20375671982765198, 0.005394503008574247, 0.024142786860466003, -0.21305109560489655, -0.17937573790550232, 0.5706430077552795, 0.013829738833010197, 0.15188126266002655, 0.0689561665058136, 0.3217914402484894, 0.22877725958824158, -0.0012453645467758179, -0.10710863769054413, 0.08497138321399689, -0.3123016953468323, 0.06844723224639893, 0.11100947111845016, 0.24587132036685944, 0.2573176324367523, 0.436221718788147, 0.12562066316604614, 0.010121077299118042, 0.4173811078071594, 0.2422875165939331, 0.309406578540802, 0.5200668573379517, 0.24014799296855927, 0.013599097728729248, -0.36390557885169983, 0.1917431354522705, 0.490093857049942, -0.34418994188308716, -0.0662105605006218, -0.048706382513046265, 0.23945358395576477, -0.2684268653392792, -0.3709075450897217, -0.21965593099594116, 0.390693336725235, -0.17245915532112122, -0.2432682067155838, 0.2041936218738556, -0.038144372403621674, -0.04596443474292755, 0.16042423248291016, -0.2366207242012024, 0.13132520020008087, 0.8348479270935059, 0.12337593734264374, 0.03094620630145073, -0.36076122522354126, -0.391711950302124, -0.13421833515167236, 0.14807941019535065, -0.13457445800304413, 0.19029709696769714, -0.31342077255249023, -0.00687861442565918, -0.013660158962011337, 0.2765808403491974, 0.3565855324268341, 0.277443528175354, -0.11382254958152771, 0.09154732525348663, -0.026878774166107178, 0.15397533774375916, -0.018428560346364975, 0.15348638594150543, 0.006665080785751343, 0.18051715195178986, 0.15355537831783295, -0.0864599272608757, -0.09819892048835754, -0.4284720718860626, 0.04473221302032471, 0.33989858627319336, -0.16346877813339233, 0.13269291818141937, -0.31013378500938416, -0.15906009078025818, -0.01205773651599884, 0.2858179211616516, -0.24953851103782654, -0.08626348525285721, 0.4984053075313568, -0.4902803897857666, 0.07265076041221619, -0.1841205656528473, 0.03561820834875107, -0.040558312088251114, 0.5247302651405334, 0.28653740882873535, -0.012987859547138214, -0.4199312627315521, -0.11387873440980911, -0.5841234922409058, -0.06558895856142044, -0.32436639070510864, 0.2615010142326355, 0.045074671506881714, 0.2684961259365082, 0.06113744527101517, 0.14476874470710754, 0.40476179122924805, -0.10118909925222397, -0.086683489382267, 0.3594866991043091, -0.3306725025177002, 0.5003921985626221, -0.2142937034368515, -0.18564793467521667, -0.05530788376927376, -0.4004397690296173, 0.3668002486228943, 0.09689881652593613, -0.12973469495773315, -0.17157194018363953, -0.016261309385299683, 0.17877499759197235, 0.14078201353549957, 0.18065303564071655, 0.3315007984638214, 0.32670319080352783, 0.026923954486846924, -0.008941283449530602, -0.10128360986709595, 0.21931672096252441, -0.07923226803541183, 0.3145405948162079, -0.037667516618967056, 0.05904913693666458, -0.30165645480155945, 0.17764978110790253, 0.10218935459852219, -0.1452149599790573, 0.0031900666654109955, -0.2515271306037903, -0.32155898213386536, -0.03988822177052498, -0.055104054510593414, 0.3557632565498352, 0.08974410593509674, 0.4125421941280365, 0.13876482844352722, -0.08937869220972061, -0.200494647026062, -0.09980402886867523, -0.01849225163459778, -0.28247877955436707, -0.3231763243675232, -0.4460311233997345, 0.21570760011672974, -0.28526467084884644, 0.1410282850265503, -0.23297545313835144, -0.37403303384780884, 0.3034422695636749, -0.022932104766368866, -0.40841081738471985, 0.30518367886543274, -0.34856611490249634, -0.08239755779504776, -0.15028728544712067, 0.04324968531727791, -0.07814659923315048, -0.44874218106269836, 0.20017601549625397, -0.13360348343849182 ]
https://github.com/huggingface/datasets/issues/1992
`datasets.map` multi processing much slower than single processing
Regarding your ps2: It depends what function you pass to `map`. For example, fast tokenizers from `transformers` in Rust tokenize texts and parallelize the tokenization over all the cores.
Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png)
29
`datasets.map` multi processing much slower than single processing Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png) Regarding your ps2: It depends what function you pass to `map`. For example, fast tokenizers from `transformers` in Rust tokenize texts and parallelize the tokenization over all the cores.
[ -0.4439503252506256, -0.27671802043914795, -0.07882978022098541, 0.37511080503463745, -0.0908031165599823, -0.005079299211502075, 0.32117587327957153, 0.0643402487039566, -0.04580258950591087, -0.009251505136489868, 0.04776570945978165, 0.40863677859306335, 0.2179488092660904, 0.15244464576244354, -0.14575208723545074, -0.001972474157810211, 0.22548827528953552, -0.021348267793655396, 0.14677461981773376, 0.017389409244060516, -0.2218794822692871, 0.10279766470193863, -0.5076212882995605, 0.007017999887466431, -0.4328957200050354, -0.16309325397014618, 0.08521315455436707, 0.09208329021930695, -0.16287261247634888, -0.23091989755630493, -0.2925642728805542, 0.2094142735004425, -0.07405634224414825, 0.5870193243026733, -0.00011809670832008123, -0.16883841156959534, -0.010062195360660553, 0.26323097944259644, 0.10635611414909363, 0.0013798028230667114, -0.058067284524440765, -0.2970838248729706, -0.09592428058385849, -0.09749197959899902, 0.10890453308820724, 0.10524192452430725, -0.07693501561880112, -0.4238998293876648, 0.12598055601119995, 0.013792921788990498, 0.10012863576412201, 0.38188430666923523, -0.2749180793762207, -0.0349334292113781, -0.3510384261608124, 0.15261957049369812, -0.1374160498380661, -0.024036742746829987, 0.24174408614635468, -0.12406599521636963, -0.1272665560245514, 0.3543691635131836, -0.12851786613464355, 0.25875771045684814, 0.07895781844854355, -0.047851141542196274, 0.050921712070703506, -0.4571819007396698, 0.1748204231262207, 0.4000490605831146, 0.012554921209812164, -0.09772329777479172, -0.16878463327884674, -0.2309565544128418, -0.27916598320007324, -0.15732643008232117, 0.2020871937274933, 0.10408298671245575, 0.1339537650346756, -0.007066663354635239, -0.6016134023666382, 0.23995818197727203, 0.35420241951942444, -0.1202203780412674, -0.11609888821840286, 0.08904506266117096, 0.1198711022734642, 0.3441292941570282, 0.3367709517478943, 0.07703014463186264, -0.08753113448619843, -0.25671738386154175, 0.21773763000965118, 0.2279641330242157, -0.8232128024101257, -0.07567107677459717, 0.22124138474464417, -0.1676311492919922, -0.05216747894883156, -0.1305062472820282, -0.14654552936553955, 0.35693374276161194, -0.328543096780777, 0.11929953843355179, 0.29819461703300476, -0.03457886725664139, 0.014054268598556519, 0.1581132560968399, -0.010236144065856934, -0.23398467898368835, -0.3126996159553528, 0.059338025748729706, 0.034681715071201324, -0.26256516575813293, -0.03559594601392746, 0.08486094325780869, -0.35329771041870117, -0.05752497911453247, -0.210684135556221, 0.053419385105371475, -0.2790292203426361, -0.06604736298322678, 0.16198739409446716, 0.14056922495365143, 0.01060961838811636, 0.7866417765617371, -0.3018146753311157, 0.0486738383769989, -0.3648937940597534, -0.5528382658958435, -0.04295011982321739, -0.1930677741765976, -0.3997560441493988, 0.2632676661014557, 0.10551202297210693, 0.04934830591082573, 0.14946258068084717, 0.2821122109889984, 0.07659322768449783, -0.14135634899139404, 0.34946468472480774, -0.5429772734642029, 0.14964252710342407, 0.0726194679737091, 0.1545603722333908, 0.5177940130233765, -0.13847489655017853, 0.31490176916122437, -0.19714538753032684, 0.2203015387058258, -0.475266695022583, -0.23187842965126038, 0.21513278782367706, 0.013539224863052368, 0.08857876062393188, 0.07967529445886612, -0.5455647706985474, 0.5509291291236877, 0.29192832112312317, -0.17266535758972168, -0.12758499383926392, -0.18536585569381714, -0.6103132367134094, -0.17819058895111084, -0.0018491055816411972, 0.12260179221630096, -0.24178004264831543, 0.17325414717197418, -0.2710019052028656, 0.1222161054611206, 0.4497339725494385, 0.6742503046989441, -0.2196298986673355, 0.42462214827537537, 0.01584104634821415, 0.3035619854927063, 0.044914864003658295, -0.1139075756072998, -0.3109883964061737, 0.49109867215156555, -0.1610907018184662, -0.034693945199251175, -0.1811564862728119, 0.14040163159370422, 0.3190975785255432, -0.02902323007583618, 0.27423036098480225, 0.31473666429519653, 0.026518428698182106, 0.37933894991874695, -0.15751731395721436, -0.13057823479175568, 0.19623324275016785, 0.045196566730737686, -0.11504329741001129, -0.13560974597930908, -0.050352223217487335, -0.2750133275985718, 0.22480010986328125, -0.030358102172613144, 0.04873088747262955, 0.3911471366882324, -0.3012832701206207, -0.17582187056541443, -0.14155705273151398, -0.22773298621177673, -0.059974394738674164, 0.3407977223396301, 0.04308995604515076, 0.06395218521356583, 0.46081459522247314, 0.001595478504896164, 0.22768807411193848, 0.13553020358085632, -0.0380946584045887, -0.13763321936130524, -0.0313483364880085, -0.04917013645172119, -0.13466377556324005, -0.22620287537574768, -0.06786179542541504, 0.3672989308834076, 0.2238071709871292, -0.06432650238275528, 0.08833128213882446, -0.125775545835495, 0.06707961857318878, 0.006463031750172377, -0.24240273237228394, -0.03418250381946564, 0.06548822671175003, 0.10893081873655319, -0.045482564717531204, 0.2792191505432129, 0.4492981731891632, -0.038015514612197876, 0.11827266961336136, 0.16757358610630035, 0.36430951952934265, -0.042177557945251465, 0.012465085834264755, -0.12799276411533356, 0.08095546066761017, -0.22929543256759644, -0.060779817402362823, 0.2941324710845947, 0.10386358201503754, 0.47276240587234497, 0.00485973060131073, -0.1762062907218933, 0.02054598741233349, 0.28555670380592346, 0.11215873807668686, 0.10429731011390686, 0.26050126552581787, 0.3831946551799774, 0.2929072380065918, 0.3807491958141327, -0.167019784450531, 0.29105982184410095, 0.5920895338058472, -0.007292671129107475, -0.35898295044898987, 0.08166784048080444, -0.22336378693580627, -0.40922966599464417, 0.07799871265888214, -0.11239609122276306, 0.5411707162857056, 0.046613626182079315, 0.21338394284248352, -0.055546097457408905, -0.12741447985172272, -0.05245738476514816, -0.006476417183876038, 0.07260098308324814, 0.19732792675495148, -0.08159349113702774, 0.27092286944389343, 0.05631653591990471, -0.06448961794376373, -0.2889435589313507, 0.33610016107559204, 0.24157007038593292, -0.2043420970439911, 0.0760015919804573, -0.2641550600528717, 0.11246516555547714, 0.17097537219524384, -0.06071801856160164, -0.2124256193637848, -0.19044335186481476, -0.12146839499473572, -0.1239396333694458, 0.16273599863052368, -0.006701407954096794, 0.27370187640190125, -0.07645620405673981, -0.09273296594619751, -0.027558712288737297, -0.03238813579082489, -0.1445222645998001, -0.17975929379463196, 0.0104280486702919, 0.29180893301963806, 0.20764048397541046, 0.11699671298265457, -0.07550559937953949, -0.23248669505119324, -0.06650464236736298, -0.23157796263694763, -0.05561394989490509, 0.07954169809818268, 0.013508904725313187, -0.1537778228521347, -0.07506068050861359, -0.2716276943683624, 0.04610515385866165, 0.1981590837240219, -0.3055950701236725, -0.24106557667255402, 0.04261263832449913, -0.14349806308746338, -0.2572673261165619, 0.04515651986002922, -0.12291660159826279, -0.08818704634904861, -0.10831569135189056, 0.32685524225234985, -0.15633246302604675, 0.29697078466415405, -0.2059316784143448, 0.042373958975076675, -0.03508370369672775, -0.15363124012947083, 0.03894604742527008, -0.3043985664844513, -0.33414390683174133, 0.05110704153776169, -0.042935166507959366, -0.16125541925430298, -0.13110049068927765, 0.11833131313323975, 0.17082169651985168, 0.14957299828529358, -0.13461251556873322, 0.13722307980060577, -0.37642377614974976, 0.14450374245643616, 0.04949621856212616, 0.11592060327529907, 0.4347308576107025, 0.0688745304942131, 0.002096261829137802, 0.06672549247741699, -0.41926732659339905, -0.06351590901613235, 0.2809041440486908, 0.05100269615650177, 0.015669630840420723, 0.39014512300491333, 0.06004946306347847, 0.6509938836097717, 0.506364643573761, -0.18626941740512848, 0.15788313746452332, 0.014896100386977196, -0.11450688540935516, -0.40587806701660156, -0.17028921842575073, 0.10956360399723053, -0.22045671939849854, 0.11818037927150726, 0.4101582169532776, -0.0052145738154649734, -0.4526440501213074, 0.0020455382764339447, 0.26136454939842224, -0.26506954431533813, -0.01893393136560917, 0.17344333231449127, -0.10557909309864044, 0.19567817449569702, 0.18907678127288818, -0.1457652747631073, -0.3188578188419342, -0.05763121321797371, -0.049839459359645844, -0.13120299577713013, -0.11421356350183487, -0.23279373347759247, -0.5820654034614563, 0.00010468973778188229, -0.36775875091552734, 0.24394480884075165, 0.006335824728012085, 0.2492843121290207, 0.027137834578752518, 0.08906466513872147, 0.32738053798675537, -0.011615896597504616, 0.44942033290863037, -0.31709325313568115, -0.19174420833587646, 0.10785350203514099, -0.452025443315506, -0.2145805060863495, 0.0766327977180481, -0.19981279969215393, 0.2188529670238495, 0.6070112586021423, 0.5290974378585815, -0.15939313173294067, -0.24244874715805054, -0.014530997723340988, 0.06750699877738953, 0.20638692378997803, -0.2496495246887207, -0.2906804382801056, 0.12187360972166061, -0.14603358507156372, 0.16302703320980072, -0.06442739069461823, 0.15088361501693726, 0.09837628901004791, -0.18145766854286194, 0.0365004688501358, 0.05458148568868637, 0.25485700368881226, 0.2476998120546341, 0.14578324556350708, 0.0650627464056015, 0.3104206919670105, 0.32329311966896057, -0.133867084980011, 0.1037747785449028, 0.21789975464344025, -0.09251028299331665, -0.11324360966682434, 0.19099333882331848, 0.052056822925806046, 0.3045853078365326, 0.33853188157081604, 0.08565068244934082, 0.09821435809135437, 0.09432805329561234, 0.3066309690475464, -0.2347390353679657, 0.30934852361679077, 0.40028461813926697, 0.4037318527698517, -0.46672847867012024, -0.5559281706809998, -0.06902142614126205, 0.43304553627967834, -0.18206706643104553, 0.2211451232433319, -0.728504478931427, 0.0773606225848198, 0.10971562564373016, 0.1712525635957718, 0.8330796360969543, -0.4548245668411255, 0.08482154458761215, -0.3236429989337921, 0.25373661518096924, 0.05807965248823166, -0.7181652188301086, 0.09622300416231155, -0.23736369609832764, -0.2546759247779846, 0.024619942530989647, -0.1100669652223587, 0.19803094863891602, 0.5148921012878418, 0.11548203229904175, 0.2528627812862396, 0.4243816137313843, 0.2372804433107376, -0.09955567866563797, 0.3643091022968292, 0.49651166796684265, -0.41832274198532104, 0.13331332802772522, 0.08025455474853516, 0.1976228952407837, -0.23891228437423706, 0.027095399796962738, 0.08348939567804337, -0.07957035303115845, 0.018441766500473022, -0.3758699893951416, -0.2915438413619995, -0.4238470196723938, 0.20387320220470428, -0.003729216754436493, 0.26877743005752563, 0.32886308431625366, 0.2797583043575287, -0.06359651684761047, 0.1441982388496399, -0.0059178974479436874, 0.08635139465332031, 0.28421473503112793, 0.29894667863845825, 0.3509503901004791, -0.5309544801712036, -0.06711969524621964, -0.07989780604839325, -0.2635246813297272, -0.18541592359542847, -0.14250066876411438, -0.16001182794570923, -0.1232452541589737, 0.3970688581466675, 0.17071418464183807, 0.16851475834846497, -0.1710103154182434, 0.2841365337371826, 0.09731671214103699, -0.11475379765033722, 0.03051246516406536, 0.10242768377065659, -0.06325165927410126, 0.6600756049156189, -0.22631783783435822, -0.4700723886489868, -0.0673077255487442, 0.3055170774459839, 0.20261868834495544, -0.16215088963508606, 0.05144698917865753, 0.12358459830284119, -0.26544857025146484, -0.16573254764080048, 0.26792001724243164, -0.03320411220192909, -0.06326837837696075, 0.0777311697602272, -0.018564943224191666, -0.24772557616233826, 0.29143261909484863, 0.015789613127708435, -0.08396109938621521, -0.07069393247365952, -0.17017744481563568, -0.23721523582935333, -0.2801133394241333, -0.14675280451774597, -0.28205782175064087, -0.15562944114208221, 0.2202250063419342, 0.0711502730846405, 0.07661531120538712, 0.49404898285865784, -0.18919536471366882, -0.015063352882862091, -0.013006078079342842, 0.23621514439582825, -0.051591478288173676, -0.221439391374588, 0.03744545951485634, -0.02370958775281906, -0.027768157422542572, 0.09909215569496155, -0.11860202252864838, -0.17668449878692627, -0.038822755217552185, 0.1717950701713562, -0.0014159362763166428, -0.3216916620731354, 0.2939103841781616, -0.13873624801635742, -0.23626801371574402, -0.45797330141067505, -0.02533140778541565, 0.044042110443115234, -0.04571491479873657, -0.16523271799087524, 0.315408319234848, -0.21616098284721375, -0.2762583792209625, 0.4109305143356323, -0.1830655038356781, -0.07804960012435913, 0.01853926293551922, 0.2842990756034851, 0.4484984576702118, -0.09582412987947464, -0.022685233503580093, 0.07603588700294495, 0.3730267882347107, 0.05050449073314667, 0.14152127504348755, -0.08448702096939087, 0.1599351316690445, 0.24279902875423431, 0.35688790678977966, 0.18919223546981812, 0.12934906780719757, -0.28015151619911194, 0.09304122626781464, 0.05738545209169388, -0.19893676042556763, -0.12318925559520721, 0.4903809130191803, 0.01820564456284046, 0.14482532441616058, 0.09274311363697052, 0.3649458587169647, 0.30378660559654236, 0.01619809865951538, -0.12734511494636536, 0.1338045597076416, -0.2889988422393799, 0.07244923710823059, 0.0860033854842186, 0.18596605956554413, 0.25987958908081055, 0.4262659251689911, 0.06979052722454071, 0.03639069199562073, 0.4503247141838074, 0.27095499634742737, 0.33767426013946533, 0.477506548166275, 0.33443817496299744, -0.025536105036735535, -0.3478306233882904, 0.24483633041381836, 0.4501989781856537, -0.3315539062023163, -0.1329406499862671, -0.05537305772304535, 0.19378125667572021, -0.2377573400735855, -0.34167855978012085, -0.27494800090789795, 0.4440907835960388, -0.20803040266036987, -0.304545521736145, 0.17873071134090424, -0.09950248897075653, -0.039652369916439056, 0.19847853481769562, -0.21733808517456055, 0.1424005627632141, 0.7284573316574097, 0.07342737168073654, 0.048869650810956955, -0.39054012298583984, -0.29222360253334045, -0.1570206880569458, 0.11946302652359009, -0.14032408595085144, 0.26613327860832214, -0.29271256923675537, 0.04417436942458153, 0.03526071459054947, 0.35502246022224426, 0.39262548089027405, 0.3303471505641937, -0.16170835494995117, 0.08416738361120224, -0.057185862213373184, 0.15783698856830597, -0.023403173312544823, 0.2517150044441223, 0.021942704916000366, 0.08561049401760101, 0.15108489990234375, -0.06314333528280258, -0.132536381483078, -0.5011906623840332, -0.056989748030900955, 0.278266966342926, -0.14500032365322113, 0.20235779881477356, -0.28901663422584534, -0.1213657557964325, 0.06472671777009964, 0.30317747592926025, -0.24439948797225952, -0.05382281169295311, 0.450395405292511, -0.48472902178764343, 0.026895519345998764, -0.17315492033958435, 0.06005759537220001, -0.029980380088090897, 0.5599961876869202, 0.2798052132129669, -0.025549978017807007, -0.45373478531837463, -0.1623741090297699, -0.6362351775169373, -0.06692033261060715, -0.2945363521575928, 0.265595406293869, 0.015077727846801281, 0.29245004057884216, 0.0856206938624382, 0.2242642343044281, 0.3306148052215576, 0.005551450420171022, -0.13176631927490234, 0.3757708668708801, -0.23998762667179108, 0.5442320108413696, -0.2748648524284363, -0.18831363320350647, -0.08547371625900269, -0.426398903131485, 0.37695568799972534, 0.11007136106491089, -0.10970665514469147, -0.2021089792251587, 0.019511312246322632, 0.20562459528446198, 0.14386442303657532, 0.2136925458908081, 0.37139904499053955, 0.37175843119621277, 0.048874787986278534, 0.0633167251944542, -0.1134328544139862, 0.12783297896385193, -0.0979388952255249, 0.2556670010089874, -0.1105475127696991, 0.06031893193721771, -0.27971482276916504, 0.11800192296504974, 0.059330590069293976, -0.15549589693546295, -0.00025993213057518005, -0.28104937076568604, -0.3650563657283783, -0.05078356713056564, -0.12798163294792175, 0.2740597426891327, 0.04067111015319824, 0.35987287759780884, 0.17572960257530212, -0.10031192749738693, -0.2375796139240265, -0.07976215332746506, -0.0203341543674469, -0.3013193607330322, -0.2677735388278961, -0.5111194849014282, 0.10802621394395828, -0.17187973856925964, 0.1276894509792328, -0.2887657582759857, -0.3083535432815552, 0.3282150626182556, -0.018147964030504227, -0.4100753366947174, 0.33286231756210327, -0.3763076066970825, -0.13908207416534424, -0.17739874124526978, 0.025044217705726624, -0.12611821293830872, -0.444746196269989, 0.14784298837184906, -0.09666571021080017 ]
https://github.com/huggingface/datasets/issues/1992
`datasets.map` multi processing much slower than single processing
I am still experiencing this issue with datasets 1.9.0.. Has there been a further investigation? <img width="442" alt="image" src="https://user-images.githubusercontent.com/29157715/126143387-8b5ddca2-a896-4e18-abf7-4fbf62a48b41.png">
Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png)
19
`datasets.map` multi processing much slower than single processing Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png) I am still experiencing this issue with datasets 1.9.0.. Has there been a further investigation? <img width="442" alt="image" src="https://user-images.githubusercontent.com/29157715/126143387-8b5ddca2-a896-4e18-abf7-4fbf62a48b41.png">
[ -0.44086953997612, -0.2572330832481384, -0.10014642775058746, 0.34249502420425415, -0.11361953616142273, 0.025486096739768982, 0.33596640825271606, 0.13727430999279022, 0.023807551711797714, -0.026603996753692627, 0.07284329831600189, 0.42676159739494324, 0.1649506837129593, 0.18448296189308167, -0.17839741706848145, 0.07351835072040558, 0.19104689359664917, -0.023731842637062073, 0.199701189994812, -0.017558947205543518, -0.1721208542585373, 0.12671908736228943, -0.48632192611694336, -0.02511490136384964, -0.41870763897895813, -0.15518948435783386, 0.11284811794757843, 0.10783460736274719, -0.16134437918663025, -0.24240373075008392, -0.2254241555929184, 0.18126094341278076, -0.09897921234369278, 0.5712867975234985, -0.00012132778647355735, -0.17576128244400024, 0.02624962292611599, 0.26557716727256775, 0.056657690554857254, 0.06321780383586884, -0.1749776005744934, -0.2656297981739044, -0.06031227856874466, -0.10646210610866547, 0.13026633858680725, 0.1959710717201233, -0.04122678190469742, -0.4592747688293457, 0.027973420917987823, 0.09562049061059952, 0.06833577156066895, 0.3693210482597351, -0.33585643768310547, 0.019017165526747704, -0.37722936272621155, 0.17573606967926025, -0.17431333661079407, 0.043938830494880676, 0.2703155279159546, -0.18950213491916656, -0.1327497661113739, 0.2942247986793518, -0.05945514887571335, 0.2955109775066376, -0.029310159385204315, -0.08000778406858444, 0.04354162886738777, -0.4581351578235626, 0.21094274520874023, 0.3413068354129791, 0.03362324833869934, -0.05980619788169861, -0.20147140324115753, -0.25059112906455994, -0.31351062655448914, -0.09607534855604172, 0.18815037608146667, 0.1586238294839859, 0.14374291896820068, 0.00027422234416007996, -0.5647351145744324, 0.12500537931919098, 0.33291396498680115, -0.08457750082015991, -0.1606685221195221, 0.0009777545928955078, 0.12147654592990875, 0.30066442489624023, 0.328579843044281, 0.10265830159187317, -0.024033550173044205, -0.2341749370098114, 0.31866538524627686, 0.21445521712303162, -0.7959994077682495, -0.0313890315592289, 0.2321540117263794, -0.11665765196084976, -0.07023383677005768, -0.20114772021770477, -0.08243419975042343, 0.3807690143585205, -0.330359548330307, 0.09570208191871643, 0.31134599447250366, -0.0816923975944519, 0.03688135743141174, 0.13265569508075714, -0.020012937486171722, -0.16498984396457672, -0.32041874527931213, 0.08558353036642075, 0.037505779415369034, -0.3145134747028351, -0.05886894464492798, 0.10909172147512436, -0.2920224666595459, -0.07769802957773209, -0.15291990339756012, 0.0577998049557209, -0.2044588327407837, -0.07475518435239792, 0.15197479724884033, 0.09315222501754761, -0.025100834667682648, 0.7979212999343872, -0.2888891100883484, 0.06778685748577118, -0.4647262394428253, -0.5510896444320679, -0.026688454672694206, -0.14352788031101227, -0.3716951310634613, 0.20598262548446655, 0.14672809839248657, -0.0441315732896328, 0.13817369937896729, 0.29953733086586, 0.06756183505058289, -0.19425556063652039, 0.32984402775764465, -0.5215237736701965, 0.19086642563343048, 0.08976994454860687, 0.151864692568779, 0.5952268838882446, -0.13082769513130188, 0.3086305260658264, -0.11461251974105835, 0.24252432584762573, -0.5119678378105164, -0.2261335849761963, 0.18016232550144196, -0.016473140567541122, 0.06611569225788116, 0.10857880115509033, -0.45071062445640564, 0.4928017556667328, 0.3107575476169586, -0.2005254030227661, -0.19175630807876587, -0.21916677057743073, -0.6590131521224976, -0.15495821833610535, -0.03785078600049019, 0.17814719676971436, -0.3581595718860626, 0.23576557636260986, -0.3264366388320923, 0.1465035229921341, 0.43546387553215027, 0.5881883502006531, -0.19089475274085999, 0.37422695755958557, -0.01675325445830822, 0.2168683260679245, -0.005194209516048431, -0.06124437227845192, -0.4090891182422638, 0.5504704713821411, -0.15738445520401, -0.007737288251519203, -0.19969257712364197, 0.13225314021110535, 0.2520762085914612, -0.0667857974767685, 0.2841034531593323, 0.29357630014419556, 0.00940002128481865, 0.3959369361400604, -0.2198731005191803, -0.12066300958395004, 0.1546422243118286, 0.07583290338516235, -0.052067529410123825, -0.11740925163030624, -0.0040200501680374146, -0.25660762190818787, 0.3107917308807373, 0.0013411827385425568, 0.04856377840042114, 0.42027348279953003, -0.3765271008014679, -0.18144311010837555, -0.1402573436498642, -0.20915734767913818, -0.0894150361418724, 0.3687591254711151, -0.011205032467842102, 0.0369148775935173, 0.3978402018547058, 0.025036636739969254, 0.17637178301811218, 0.12760111689567566, -0.05919541046023369, -0.08343596756458282, -0.09330965578556061, -0.0704992264509201, -0.18728595972061157, -0.17432630062103271, -0.02212579734623432, 0.44328227639198303, 0.21466512978076935, -0.11095275729894638, -0.01653548702597618, -0.1274927258491516, 0.07512884587049484, 0.0695863589644432, -0.18628717958927155, -0.0800081118941307, 0.06834520399570465, 0.04427230358123779, -0.07703666388988495, 0.257357120513916, 0.4579809308052063, -0.05753892660140991, 0.1573878973722458, 0.07835762947797775, 0.3972075879573822, -0.0391157791018486, 0.02240327000617981, -0.14334312081336975, 0.11754110455513, -0.24935463070869446, -0.037316687405109406, 0.312760591506958, 0.10988244414329529, 0.41937190294265747, 0.07046180218458176, -0.1443873792886734, 0.0071859899908304214, 0.3014126420021057, 0.16434809565544128, 0.015056230127811432, 0.3293916881084442, 0.3466157019138336, 0.2566782236099243, 0.33888787031173706, -0.11545298993587494, 0.34637904167175293, 0.6238066554069519, 0.06780672073364258, -0.33615970611572266, 0.028623346239328384, -0.1701200306415558, -0.3801426291465759, 0.03958551585674286, -0.11314497143030167, 0.5269432663917542, 0.017090093344449997, 0.25774165987968445, -0.025526544079184532, -0.11627767235040665, -0.07512715458869934, -0.038765616714954376, 0.11482156813144684, 0.2368960976600647, -0.07691849023103714, 0.31694650650024414, -0.035439614206552505, -0.06354346871376038, -0.2647993862628937, 0.3754662871360779, 0.2200482040643692, -0.23821838200092316, 0.09896178543567657, -0.3365543484687805, 0.16430392861366272, 0.18566226959228516, -0.12335585802793503, -0.2650381624698639, -0.24152827262878418, -0.13819226622581482, -0.09131979942321777, 0.21746784448623657, -0.029552077874541283, 0.24394908547401428, -0.13408242166042328, -0.09430957585573196, -0.026770854368805885, 0.010889865458011627, -0.16640418767929077, -0.15597009658813477, 0.00494108721613884, 0.27044379711151123, 0.22643019258975983, 0.057202138006687164, -0.0552712008357048, -0.2538312077522278, -0.07880917191505432, -0.22050389647483826, -0.09905299544334412, 0.159148171544075, 0.05938918888568878, -0.18723884224891663, -0.07872161269187927, -0.23356172442436218, 0.17491939663887024, 0.16987736523151398, -0.24364349246025085, -0.1829374134540558, 0.06688125431537628, -0.11595170944929123, -0.24669469892978668, 0.02449560910463333, -0.14984628558158875, -0.09292871505022049, -0.11551956832408905, 0.25800949335098267, -0.17136457562446594, 0.325514018535614, -0.19325433671474457, 0.07854429632425308, -0.04881251975893974, -0.11180436611175537, -0.017139354720711708, -0.31817978620529175, -0.3501656949520111, 0.02686987817287445, -0.03202234208583832, -0.20362260937690735, -0.14498330652713776, 0.06731730699539185, 0.18034259974956512, 0.19533602893352509, -0.15743093192577362, 0.18745307624340057, -0.40016159415245056, 0.16392257809638977, 0.07313008606433868, 0.024860605597496033, 0.43353042006492615, 0.024383870884776115, 0.05988169461488724, -0.002919629216194153, -0.41671285033226013, -0.07242929190397263, 0.27535155415534973, 0.0008795782923698425, -0.009610000997781754, 0.3409213125705719, 0.07012476027011871, 0.6287551522254944, 0.5038681030273438, -0.1901986300945282, 0.1679048091173172, -0.0031844843178987503, -0.13700687885284424, -0.3670368194580078, -0.2273975908756256, 0.13439267873764038, -0.2523145079612732, 0.14938846230506897, 0.4214676022529602, -0.008276483044028282, -0.4179486632347107, -0.015330789610743523, 0.25466904044151306, -0.20119833946228027, -0.01771671511232853, 0.13254103064537048, -0.1200018972158432, 0.21483439207077026, 0.25466692447662354, -0.16450811922550201, -0.34322255849838257, -0.04560897499322891, -0.08712968230247498, -0.10864192247390747, -0.106206975877285, -0.2582452893257141, -0.4892931580543518, -0.009441319853067398, -0.3960963487625122, 0.22279594838619232, 0.052832167595624924, 0.36500227451324463, -0.03041950985789299, 0.12013082951307297, 0.3037041425704956, 0.003118547610938549, 0.5263446569442749, -0.4160199761390686, -0.11488290131092072, 0.1485779583454132, -0.38208723068237305, -0.32323122024536133, 0.05334949865937233, -0.16240441799163818, 0.3027198016643524, 0.5608928203582764, 0.5175608396530151, -0.03682418912649155, -0.2009236067533493, -0.01439576968550682, 0.12424401938915253, 0.15655291080474854, -0.25523728132247925, -0.32964903116226196, 0.11015401035547256, -0.11324324458837509, 0.10829941183328629, -0.018909404054284096, 0.12006168812513351, 0.12016555666923523, -0.15730196237564087, 0.00945231318473816, 0.1104445680975914, 0.24382098019123077, 0.20519016683101654, 0.10924428701400757, 0.0710771456360817, 0.34899887442588806, 0.2189204841852188, -0.10752098262310028, 0.07319579273462296, 0.32727769017219543, -0.11457137763500214, -0.1128835678100586, 0.23553764820098877, 0.017801612615585327, 0.30125659704208374, 0.290952205657959, 0.10269614309072495, 0.03521932661533356, 0.1488351821899414, 0.25171422958374023, -0.22046548128128052, 0.30659863352775574, 0.3736080527305603, 0.3654960095882416, -0.4923388957977295, -0.5268411636352539, -0.019487597048282623, 0.459667831659317, -0.14604441821575165, 0.26376786828041077, -0.7810157537460327, 0.09064731746912003, 0.04909732565283775, 0.08312603086233139, 0.704571545124054, -0.43341922760009766, 0.03117002546787262, -0.30113691091537476, 0.2061883956193924, -0.06066824868321419, -0.5662206411361694, 0.13236889243125916, -0.18968042731285095, -0.3490004539489746, 0.037254102528095245, -0.10875682532787323, 0.21653816103935242, 0.5372944474220276, 0.16535229980945587, 0.2765427231788635, 0.3553307056427002, 0.10849224030971527, -0.014068100601434708, 0.3652667999267578, 0.5064213871955872, -0.3291377127170563, 0.1828552931547165, 0.053333036601543427, 0.18206548690795898, -0.24166399240493774, 0.03248162195086479, 0.09637641161680222, -0.05066334456205368, 0.033735714852809906, -0.31813400983810425, -0.1936037838459015, -0.41626793146133423, 0.23536626994609833, -0.05434821918606758, 0.2807028889656067, 0.3980904817581177, 0.2447255253791809, -0.08027978241443634, 0.0983421802520752, -0.007344512268900871, 0.07430721819400787, 0.2642247974872589, 0.24037185311317444, 0.38745275139808655, -0.4567791521549225, -0.008335711434483528, -0.09590989351272583, -0.22611835598945618, -0.25819364190101624, -0.15457843244075775, -0.05948050320148468, -0.10837914049625397, 0.4497854709625244, 0.1455167680978775, 0.16358734667301178, -0.19441914558410645, 0.23126831650733948, 0.09017100930213928, -0.1244405210018158, -0.00039695389568805695, 0.09002293646335602, 0.06216633692383766, 0.662490725517273, -0.2686816453933716, -0.4959298074245453, -0.024275515228509903, 0.4147469103336334, 0.2246544361114502, -0.07707365602254868, 0.056966058909893036, 0.20686639845371246, -0.2856072783470154, -0.15423408150672913, 0.15757068991661072, -0.1063687801361084, -0.10540437698364258, 0.1102893278002739, -0.02852441556751728, -0.2333064079284668, 0.2675739526748657, -0.15705260634422302, -0.16135330498218536, -0.0919727012515068, -0.17743295431137085, -0.28063154220581055, -0.24133636057376862, -0.19484834372997284, -0.3812469244003296, -0.20530177652835846, 0.21624428033828735, 0.014936121180653572, 0.12179815769195557, 0.4578031301498413, -0.14455708861351013, 0.04786878824234009, 0.09471667557954788, 0.19627049565315247, -0.04606831818819046, -0.23534387350082397, 0.07930685579776764, -0.03858990967273712, -0.052657775580883026, 0.10635371506214142, -0.09019401669502258, -0.15756788849830627, -0.0040827784687280655, 0.17572768032550812, -0.013139672577381134, -0.25326913595199585, 0.34993070363998413, -0.11798756569623947, -0.22949129343032837, -0.41108274459838867, -0.030596010386943817, 0.06313138455152512, -0.01955363154411316, -0.08367517590522766, 0.26148778200149536, -0.30485665798187256, -0.26292988657951355, 0.44845518469810486, -0.1784745752811432, -0.07069148123264313, -0.0015806364826858044, 0.2966398596763611, 0.4717695415019989, -0.09237421303987503, -0.07663798332214355, 0.020087968558073044, 0.2456790804862976, 0.05151709169149399, 0.14671143889427185, -0.1209753155708313, 0.2085915505886078, 0.28296592831611633, 0.3256470263004303, 0.14229129254817963, 0.10228584706783295, -0.24988006055355072, 0.011392181739211082, 0.016536187380552292, -0.2410697638988495, -0.19977112114429474, 0.5652074217796326, 0.04609014093875885, 0.17196117341518402, 0.049166738986968994, 0.3464101254940033, 0.19379916787147522, -0.01700829714536667, -0.07935187965631485, 0.09418915957212448, -0.2903538942337036, 0.05940764769911766, 0.18398459255695343, 0.26288315653800964, 0.2688406705856323, 0.43619856238365173, 0.12504790723323822, -0.008382655680179596, 0.4837760925292969, 0.25778862833976746, 0.31509166955947876, 0.5179544687271118, 0.249269038438797, -0.03264836221933365, -0.3772101104259491, 0.19071106612682343, 0.49496129155158997, -0.35344523191452026, -0.046989962458610535, -0.06487478315830231, 0.21013113856315613, -0.25229164958000183, -0.34711316227912903, -0.2580219805240631, 0.3463006913661957, -0.16364777088165283, -0.2520795464515686, 0.22297531366348267, -0.06839081645011902, -0.02417924627661705, 0.17691737413406372, -0.22954633831977844, 0.14557190239429474, 0.7704070806503296, 0.11659125983715057, 0.041026487946510315, -0.38158831000328064, -0.3096578121185303, -0.16258615255355835, 0.1533404290676117, -0.1430542767047882, 0.19574160873889923, -0.3325948119163513, -0.01194339245557785, -0.02461206540465355, 0.30849722027778625, 0.36746570467948914, 0.3030281066894531, -0.12775392830371857, 0.08283359557390213, -0.011625509709119797, 0.14687979221343994, -0.005686338059604168, 0.18998603522777557, -0.018783770501613617, 0.1753656268119812, 0.18286652863025665, -0.09486469626426697, -0.09230440855026245, -0.4366373121738434, 0.05247519910335541, 0.34499824047088623, -0.16489864885807037, 0.14213551580905914, -0.31176692247390747, -0.15283238887786865, 0.040748950093984604, 0.2989789545536041, -0.2570863962173462, -0.09710275381803513, 0.5395147204399109, -0.4918874502182007, 0.07764449715614319, -0.16724540293216705, 0.035982612520456314, -0.09600409865379333, 0.5680373311042786, 0.30399155616760254, -0.015154622495174408, -0.3837939202785492, -0.12599776685237885, -0.6268150210380554, -0.06055247038602829, -0.3254487216472626, 0.25216108560562134, 0.06945373117923737, 0.2867887020111084, 0.04983723536133766, 0.1253742277622223, 0.39452511072158813, -0.09546610713005066, -0.0745222419500351, 0.33305421471595764, -0.3459298312664032, 0.4537990987300873, -0.23357655107975006, -0.20679159462451935, -0.08110222220420837, -0.4442892372608185, 0.3849731683731079, 0.073076993227005, -0.12520942091941833, -0.1655888855457306, -0.026192445307970047, 0.1744765192270279, 0.13031959533691406, 0.19542881846427917, 0.3366410434246063, 0.3453724980354309, 0.03908834606409073, 0.018438903614878654, -0.14589431881904602, 0.1976262778043747, -0.0389229841530323, 0.3265100419521332, -0.0632232129573822, 0.054796069860458374, -0.28163406252861023, 0.17220216989517212, 0.10573488473892212, -0.16681694984436035, 0.008409526199102402, -0.2033713161945343, -0.33034610748291016, -0.038922399282455444, -0.02943633496761322, 0.33693233132362366, 0.09369184821844101, 0.3858311176300049, 0.12029746919870377, -0.09688317775726318, -0.17042402923107147, -0.1283486932516098, -0.021536141633987427, -0.2728500962257385, -0.3036377429962158, -0.43934348225593567, 0.2135729193687439, -0.2672084867954254, 0.1529790759086609, -0.22650796175003052, -0.31919655203819275, 0.32116764783859253, -0.046201422810554504, -0.3679230809211731, 0.3406692445278168, -0.38307878375053406, -0.07950638234615326, -0.1634630411863327, 0.04333527758717537, -0.08365944772958755, -0.46402859687805176, 0.18666212260723114, -0.10772838443517685 ]
https://github.com/huggingface/datasets/issues/1992
`datasets.map` multi processing much slower than single processing
Hi. Is there any update on this issue? I am desperately trying to decrease my times, and multiprocessing "should" be the solution, but it literally takes 5 times longer.
Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png)
29
`datasets.map` multi processing much slower than single processing Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png) Hi. Is there any update on this issue? I am desperately trying to decrease my times, and multiprocessing "should" be the solution, but it literally takes 5 times longer.
[ -0.42404139041900635, -0.30649590492248535, -0.10040108859539032, 0.3089408278465271, -0.09691178798675537, -0.027604952454566956, 0.33366382122039795, 0.09696637094020844, 0.016606852412223816, 0.00040209293365478516, 0.06902537494897842, 0.41515111923217773, 0.16721831262111664, 0.22885887324810028, -0.16905111074447632, -0.00983293354511261, 0.21584804356098175, -0.03518790006637573, 0.18711435794830322, 0.029848359525203705, -0.12349999696016312, 0.14917580783367157, -0.5102963447570801, 0.0014061182737350464, -0.4194062650203705, -0.14234572649002075, 0.0685666874051094, 0.12405288219451904, -0.1291971653699875, -0.21374431252479553, -0.24224604666233063, 0.18232831358909607, -0.088314950466156, 0.5928700566291809, -0.0001221102720592171, -0.18878334760665894, 0.017666470259428024, 0.26442626118659973, 0.11730910837650299, 0.09569668769836426, -0.09871499240398407, -0.24706785380840302, -0.03704868257045746, -0.06928838044404984, 0.09938692301511765, 0.2005084604024887, -0.051325343549251556, -0.42326903343200684, -0.0040237754583358765, 0.09028398990631104, 0.0608314573764801, 0.35803115367889404, -0.2615487575531006, 0.06014838069677353, -0.3773099184036255, 0.15293172001838684, -0.160211980342865, 0.03064851462841034, 0.32442528009414673, -0.19081412255764008, -0.0959397628903389, 0.29947587847709656, -0.07809922844171524, 0.3064574897289276, -0.00721440464258194, -0.09911085665225983, 0.06859567761421204, -0.45223599672317505, 0.18659403920173645, 0.3529319167137146, 0.02802758291363716, -0.04739584028720856, -0.20684394240379333, -0.28159525990486145, -0.28104108572006226, -0.14980606734752655, 0.17393997311592102, 0.12651567161083221, 0.1337810456752777, -0.0006918460130691528, -0.5643566846847534, 0.14523901045322418, 0.3487376570701599, -0.07232952117919922, -0.11480723321437836, 0.015825942158699036, 0.13124506175518036, 0.31848013401031494, 0.36800670623779297, 0.09577004611492157, -0.048543140292167664, -0.22601571679115295, 0.3440171778202057, 0.19041188061237335, -0.7800562977790833, -0.023521659895777702, 0.22491273283958435, -0.07613102346658707, -0.13600876927375793, -0.159730926156044, -0.13427604734897614, 0.368017315864563, -0.3181551396846771, 0.07918418943881989, 0.3258311450481415, -0.08445955812931061, 0.01775389537215233, 0.06565410643815994, -0.033844903111457825, -0.17147590219974518, -0.32190707325935364, 0.08410201221704483, 0.12731380760669708, -0.3582635223865509, -0.07945176959037781, 0.1463806927204132, -0.3115208148956299, -0.08247759193181992, -0.15812641382217407, -0.008105822838842869, -0.22338229417800903, -0.12191709876060486, 0.1492997705936432, 0.06786105036735535, -0.05135166645050049, 0.865707278251648, -0.24392712116241455, 0.07447877526283264, -0.5154777765274048, -0.5644439458847046, -0.018556686118245125, -0.1079847663640976, -0.4029060900211334, 0.2222205400466919, 0.1215660572052002, -0.0316414013504982, 0.09320119023323059, 0.31075918674468994, 0.06246916949748993, -0.22141575813293457, 0.2774505913257599, -0.4991467595100403, 0.1817508041858673, 0.04044153541326523, 0.1272834986448288, 0.5335197448730469, -0.11622221767902374, 0.2999001741409302, -0.1434078961610794, 0.23164093494415283, -0.5309019088745117, -0.2562255263328552, 0.1685890406370163, -0.029338449239730835, 0.12193429470062256, 0.12193798273801804, -0.4468759000301361, 0.4782702326774597, 0.30067574977874756, -0.19400756061077118, -0.19944563508033752, -0.20926760137081146, -0.6196588277816772, -0.15761804580688477, -0.033155858516693115, 0.11498953402042389, -0.3290831744670868, 0.23895108699798584, -0.32002782821655273, 0.13286735117435455, 0.4471763074398041, 0.5745453834533691, -0.1774144172668457, 0.38736653327941895, 0.010523812845349312, 0.16403138637542725, -0.04099535197019577, -0.08450788259506226, -0.34048858284950256, 0.526792049407959, -0.15784403681755066, 0.009573081508278847, -0.20710018277168274, 0.15283651649951935, 0.21270328760147095, -0.05236565321683884, 0.33506065607070923, 0.2833053469657898, 0.012000659480690956, 0.40996649861335754, -0.19872555136680603, -0.1344992071390152, 0.16694499552249908, 0.05724795535206795, -0.08455286920070648, -0.11159712821245193, -0.009922556579113007, -0.25937420129776, 0.35598570108413696, -0.017274294048547745, 0.01570284739136696, 0.43721121549606323, -0.36805906891822815, -0.12489670515060425, -0.16252420842647552, -0.24890607595443726, -0.09448104351758957, 0.3484046757221222, 0.027870401740074158, 0.02973119542002678, 0.40539485216140747, 0.03267762064933777, 0.20815512537956238, 0.13118231296539307, -0.03657359257340431, -0.0865650326013565, -0.10319449752569199, -0.06835433840751648, -0.14533132314682007, -0.19199195504188538, 0.0178457610309124, 0.45974621176719666, 0.20879140496253967, -0.11779771000146866, -0.026374954730272293, -0.14740343391895294, 0.06253645569086075, 0.05620770901441574, -0.1906227320432663, -0.0663585290312767, 0.07908006757497787, 0.04598911106586456, -0.07856635004281998, 0.24157941341400146, 0.44477733969688416, -0.03615354001522064, 0.1747320294380188, 0.08931321650743484, 0.37910905480384827, -0.05245412141084671, -0.005235539749264717, -0.1525418758392334, 0.09308187663555145, -0.2373639941215515, -0.07552237063646317, 0.3334585428237915, 0.08639854192733765, 0.48117774724960327, 0.03715498745441437, -0.13619108498096466, 0.0005848128348588943, 0.28152239322662354, 0.16035354137420654, 0.054257817566394806, 0.31917259097099304, 0.3134033679962158, 0.22904954850673676, 0.32586342096328735, -0.15675294399261475, 0.3721100986003876, 0.6023620963096619, 0.06161059811711311, -0.3444567620754242, 0.04759654775261879, -0.13885977864265442, -0.3743954300880432, 0.05960366874933243, -0.14528226852416992, 0.5393680930137634, 0.015367163345217705, 0.2501756250858307, -0.039304219186306, -0.07136797904968262, -0.06424590945243835, -0.007619142532348633, 0.10774433612823486, 0.23407350480556488, -0.1059819683432579, 0.31962332129478455, -0.04233698919415474, -0.0393739677965641, -0.2370130568742752, 0.317104697227478, 0.20009520649909973, -0.2358703464269638, 0.12301818281412125, -0.36578723788261414, 0.19587373733520508, 0.17131265997886658, -0.12031050771474838, -0.2912863492965698, -0.23691204190254211, -0.15613128244876862, -0.021623659878969193, 0.18490974605083466, -0.04296209663152695, 0.2586565613746643, -0.17454244196414948, -0.12388657033443451, -0.04079184681177139, 0.044773176312446594, -0.11588315665721893, -0.14509916305541992, -0.0006933137774467468, 0.28073638677597046, 0.17941194772720337, 0.040427133440971375, -0.04596142843365669, -0.26155221462249756, -0.12260524183511734, -0.1938914954662323, -0.12099482119083405, 0.13357612490653992, 0.07164528220891953, -0.17726510763168335, -0.06796731054782867, -0.19452108442783356, 0.1225396990776062, 0.14529892802238464, -0.26763832569122314, -0.1792687177658081, 0.03738485649228096, -0.12515637278556824, -0.22868436574935913, 0.019525639712810516, -0.16168507933616638, -0.1263457089662552, -0.09069068729877472, 0.3120710253715515, -0.15647214651107788, 0.3195193409919739, -0.23018504679203033, 0.11126082390546799, -0.09060907363891602, -0.1172996237874031, 0.02432212606072426, -0.3131287097930908, -0.36014989018440247, -0.043670039623975754, 0.005444303620606661, -0.16282618045806885, -0.16602319478988647, 0.10039941966533661, 0.15846975147724152, 0.18301375210285187, -0.13472431898117065, 0.1584807187318802, -0.3828965127468109, 0.16459587216377258, 0.09849360585212708, 0.07706782221794128, 0.47326040267944336, 0.03291352838277817, 0.04382114112377167, 0.03024863451719284, -0.43562960624694824, -0.10576076060533524, 0.28299465775489807, 0.06375230848789215, 0.03266311436891556, 0.3145080506801605, 0.056744810193777084, 0.6671258807182312, 0.46987637877464294, -0.1691543459892273, 0.18110603094100952, -0.019823158159852028, -0.18703101575374603, -0.39490750432014465, -0.22768093645572662, 0.11162243038415909, -0.27200180292129517, 0.2140461951494217, 0.4039701819419861, 0.0056023867800831795, -0.42413467168807983, 0.009334307163953781, 0.2592604160308838, -0.2746962308883667, -0.03843139111995697, 0.1353749781847, -0.08155779540538788, 0.20097090303897858, 0.24141165614128113, -0.1894209384918213, -0.3661777079105377, -0.05148700624704361, -0.10708083212375641, -0.11360809206962585, -0.1295163333415985, -0.2719695568084717, -0.47877389192581177, -0.05763948708772659, -0.4196140766143799, 0.2577229142189026, 0.05241277441382408, 0.3388345241546631, -0.014092855155467987, 0.10336076468229294, 0.3378331661224365, -0.012732885777950287, 0.534639298915863, -0.4087834060192108, -0.13627581298351288, 0.1489809900522232, -0.39821624755859375, -0.29147693514823914, 0.05130695924162865, -0.13878010213375092, 0.3379053473472595, 0.5734647512435913, 0.49478593468666077, -0.06227148324251175, -0.2424440085887909, -0.009870678186416626, 0.1017724946141243, 0.14867407083511353, -0.23271723091602325, -0.3151843249797821, 0.1223248764872551, -0.12190011888742447, 0.1355767548084259, -0.02757522091269493, 0.17075933516025543, 0.11357752978801727, -0.13607122004032135, 0.03626001253724098, 0.14317536354064941, 0.2639709413051605, 0.13742731511592865, 0.1015487015247345, 0.11126070469617844, 0.30622267723083496, 0.209087535738945, -0.046751804649829865, 0.043457888066768646, 0.3119857609272003, -0.1497458517551422, -0.08439956605434418, 0.2272588014602661, 0.0002776319161057472, 0.3236634135246277, 0.33022540807724, 0.12511210143566132, 0.05880171060562134, 0.15667341649532318, 0.2917987108230591, -0.26249828934669495, 0.2506674826145172, 0.38439488410949707, 0.37011080980300903, -0.43585577607154846, -0.4813808798789978, -0.023619472980499268, 0.5003629922866821, -0.17775774002075195, 0.3052508533000946, -0.7982143759727478, 0.07543224096298218, 0.002571273595094681, 0.0934702679514885, 0.7612362504005432, -0.4470469355583191, 0.058976493775844574, -0.3217538297176361, 0.1612391173839569, -0.08599362522363663, -0.5614033937454224, 0.15133574604988098, -0.17989371716976166, -0.3175332248210907, 0.043754205107688904, -0.07702305912971497, 0.1689828634262085, 0.5144439935684204, 0.18751570582389832, 0.31447267532348633, 0.3406452536582947, 0.017468247562646866, -0.034417279064655304, 0.3425852954387665, 0.5275171399116516, -0.339141845703125, 0.15975449979305267, 0.04239582270383835, 0.20658735930919647, -0.21281780302524567, 0.02951086312532425, 0.09705150127410889, -0.016421150416135788, 0.02241794764995575, -0.32449689507484436, -0.20731624960899353, -0.3836539387702942, 0.21050257980823517, -0.03875758871436119, 0.27154314517974854, 0.3717668056488037, 0.2556736171245575, -0.08425182104110718, 0.06471574306488037, -0.0019070878624916077, 0.04072502255439758, 0.2457594871520996, 0.26476502418518066, 0.3097814917564392, -0.4713955223560333, -0.03830766677856445, -0.10293281823396683, -0.2427753210067749, -0.3045734763145447, -0.15309429168701172, -0.13116787374019623, -0.11076273024082184, 0.48477262258529663, 0.17665424942970276, 0.20261231064796448, -0.21690697968006134, 0.2660406827926636, 0.08213634788990021, -0.12008754909038544, -0.003881121054291725, 0.0930798128247261, 0.05903440713882446, 0.6829513907432556, -0.28305160999298096, -0.5114902257919312, -0.00989748165011406, 0.4169509708881378, 0.2643362283706665, -0.07066909968852997, 0.05820782482624054, 0.2446148842573166, -0.28390657901763916, -0.1566849648952484, 0.14613154530525208, -0.1352657973766327, -0.08858366310596466, 0.10554182529449463, 0.009873229078948498, -0.23390981554985046, 0.29213157296180725, -0.15652815997600555, -0.1845061182975769, -0.06127665191888809, -0.17880456149578094, -0.24402014911174774, -0.21188822388648987, -0.18145085871219635, -0.3814510405063629, -0.22540383040905, 0.24176272749900818, 0.024163879454135895, 0.13456174731254578, 0.45743200182914734, -0.13714610040187836, 0.06588950753211975, 0.10528961569070816, 0.20750942826271057, -0.019330423325300217, -0.2584454417228699, 0.0492364726960659, -0.02854560688138008, -0.06373371928930283, 0.08648176491260529, -0.08402049541473389, -0.15448543429374695, -0.010733537375926971, 0.17926140129566193, -0.04938045144081116, -0.2527525722980499, 0.35513967275619507, -0.08642610907554626, -0.19834300875663757, -0.4180436432361603, -0.03787980228662491, 0.06501225382089615, -0.002854481339454651, -0.11578904837369919, 0.2601870000362396, -0.30504345893859863, -0.2374524027109146, 0.42855435609817505, -0.16194190084934235, -0.03371168673038483, 0.0021695359610021114, 0.28170445561408997, 0.4778541028499603, -0.08786962181329727, -0.10077454149723053, 0.01711294800043106, 0.24159087240695953, 0.08705717325210571, 0.11383417248725891, -0.08431456983089447, 0.146689310669899, 0.2579994201660156, 0.31435731053352356, 0.11182376742362976, 0.13243791460990906, -0.2053966224193573, 0.02534731850028038, 0.0009487215429544449, -0.21681834757328033, -0.22062289714813232, 0.5918703079223633, 0.0241679809987545, 0.1484607756137848, 0.02038414776325226, 0.35181835293769836, 0.2257394790649414, -0.003046862781047821, -0.09816067665815353, 0.07361387461423874, -0.30449092388153076, 0.03609640523791313, 0.1209731251001358, 0.26191627979278564, 0.25944656133651733, 0.464937299489975, 0.1080205887556076, -0.019362516701221466, 0.45845508575439453, 0.27982985973358154, 0.2959017753601074, 0.47689905762672424, 0.25995585322380066, -0.03783038258552551, -0.3821808993816376, 0.1985998898744583, 0.45553162693977356, -0.31578221917152405, -0.03960280120372772, -0.08072803914546967, 0.2277611494064331, -0.2781606912612915, -0.40590351819992065, -0.23033878207206726, 0.3884923458099365, -0.14090269804000854, -0.29162082076072693, 0.21658208966255188, -0.03977128490805626, -0.037028566002845764, 0.18499888479709625, -0.22581514716148376, 0.14053022861480713, 0.833133339881897, 0.10632123053073883, 0.04986482858657837, -0.3993321657180786, -0.3424566686153412, -0.18080446124076843, 0.18968477845191956, -0.11559782922267914, 0.1703268438577652, -0.3121301531791687, 0.0071270763874053955, -0.02126995474100113, 0.2991574704647064, 0.3725630044937134, 0.2654328942298889, -0.17028814554214478, 0.06938735395669937, -0.036786824464797974, 0.15715572237968445, -0.0006606783717870712, 0.17628541588783264, -0.02620919793844223, 0.19282764196395874, 0.1633821427822113, -0.08511769771575928, -0.09314540773630142, -0.4313426613807678, 0.04740387946367264, 0.34129205346107483, -0.14667078852653503, 0.17404621839523315, -0.2828264534473419, -0.14753028750419617, 0.006619339808821678, 0.32532799243927, -0.2559443414211273, -0.07836423069238663, 0.5225288271903992, -0.5114192366600037, 0.07241621613502502, -0.16815157234668732, 0.03547009453177452, -0.043916936963796616, 0.5660347938537598, 0.3035159707069397, 0.05343182384967804, -0.3487801253795624, -0.1082431897521019, -0.5909749269485474, -0.09253912419080734, -0.3686682879924774, 0.3136667013168335, 0.06728436052799225, 0.3153100311756134, 0.0690615177154541, 0.12297317385673523, 0.42516273260116577, -0.11892330646514893, -0.05688416585326195, 0.34429287910461426, -0.3330022990703583, 0.4775371253490448, -0.18735547363758087, -0.18565528094768524, -0.0533415749669075, -0.4275646507740021, 0.37432876229286194, 0.09442322701215744, -0.13430140912532806, -0.1616566777229309, -0.010413601994514465, 0.14624086022377014, 0.13797375559806824, 0.18954873085021973, 0.33537164330482483, 0.3360673785209656, 0.0243975929915905, -0.0115220220759511, -0.14221422374248505, 0.22377906739711761, -0.028518743813037872, 0.29346299171447754, -0.07865072786808014, 0.07073670625686646, -0.32114943861961365, 0.16325142979621887, 0.08875004202127457, -0.06661637127399445, 0.00526132807135582, -0.17917612195014954, -0.3164065182209015, -0.034123197197914124, -0.0018111653625965118, 0.3192202150821686, 0.06931310147047043, 0.3991945683956146, 0.10134526342153549, -0.08832498639822006, -0.1868550330400467, -0.102094866335392, -0.045256853103637695, -0.24712663888931274, -0.3139497935771942, -0.45894816517829895, 0.21228602528572083, -0.25401875376701355, 0.20572327077388763, -0.21824109554290771, -0.30912914872169495, 0.2927694618701935, -0.04549669474363327, -0.38364118337631226, 0.3600921630859375, -0.4181595742702484, -0.11349958181381226, -0.14960350096225739, 0.011813998222351074, -0.09011180698871613, -0.43344199657440186, 0.1796877086162567, -0.11915579438209534 ]
https://github.com/huggingface/datasets/issues/1992
`datasets.map` multi processing much slower than single processing
Hi, I’m running into the same issue and trying to come up with a simple benchmark. # environment info I have a total of 80 CPUs. - `datasets` version: 2.4.0 - Platform: Linux-4.18.0-305.65.1.el8_4.x86_64-x86_64-with-glibc2.28 - Python version: 3.10.4 - PyArrow version: 8.0.0 - Pandas version: 1.4.3 # How to reproduce ```py In [1]: from datasets import Dataset, set_caching_enabled In [2]: import numpy as np In [3]: set_caching_enabled(False) In [4]: d = Dataset.from_dict({'foo': np.random.randn(1000,256)}) In [9]: d.set_format('np') In [14]: def sort(array): ...: np.sort(array) # multiprocessing disabled In [19]: %%timeit ...: d.map(sort, input_columns='foo') 78.8 ms ± 1.22 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) # multiprocessing enabled In [27]: %%timeit ...: d.map(sort, input_columns='foo',num_proc=10) 858 ms ± 45.4 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) ```
Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png)
134
`datasets.map` multi processing much slower than single processing Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png) Hi, I’m running into the same issue and trying to come up with a simple benchmark. # environment info I have a total of 80 CPUs. - `datasets` version: 2.4.0 - Platform: Linux-4.18.0-305.65.1.el8_4.x86_64-x86_64-with-glibc2.28 - Python version: 3.10.4 - PyArrow version: 8.0.0 - Pandas version: 1.4.3 # How to reproduce ```py In [1]: from datasets import Dataset, set_caching_enabled In [2]: import numpy as np In [3]: set_caching_enabled(False) In [4]: d = Dataset.from_dict({'foo': np.random.randn(1000,256)}) In [9]: d.set_format('np') In [14]: def sort(array): ...: np.sort(array) # multiprocessing disabled In [19]: %%timeit ...: d.map(sort, input_columns='foo') 78.8 ms ± 1.22 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) # multiprocessing enabled In [27]: %%timeit ...: d.map(sort, input_columns='foo',num_proc=10) 858 ms ± 45.4 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) ```
[ -0.44134435057640076, -0.26187610626220703, -0.08658704161643982, 0.32180362939834595, -0.09399205446243286, 0.02019409090280533, 0.37038761377334595, 0.19329619407653809, 0.03479070961475372, -0.015383467078208923, 0.05142585188150406, 0.4797273874282837, 0.1690007448196411, 0.13206712901592255, -0.15553425252437592, 0.04769107699394226, 0.18229591846466064, -0.026656925678253174, 0.23214448988437653, 0.02725852280855179, -0.14015839993953705, 0.1346353441476822, -0.4202497601509094, -0.028502047061920166, -0.4017288386821747, -0.1338464319705963, 0.1387295126914978, 0.13581281900405884, -0.09162000566720963, -0.2911790907382965, -0.20219747722148895, 0.10630246996879578, -0.09262852370738983, 0.6050310134887695, -0.00012028402124997228, -0.1651693731546402, -0.022458001971244812, 0.2513001561164856, 0.06505221128463745, 0.0279264897108078, -0.0766734927892685, -0.2546747922897339, -0.04413820058107376, -0.13696223497390747, 0.12323304265737534, 0.17370079457759857, -0.08583676069974899, -0.5025341510772705, 0.05218914896249771, 0.12199842184782028, 0.06819435954093933, 0.4398660957813263, -0.3975946307182312, 0.07036906480789185, -0.40010562539100647, 0.09994439780712128, -0.12171157449483871, 0.017298828810453415, 0.27976900339126587, -0.22960391640663147, -0.19758465886116028, 0.3024922311306, -0.12348619848489761, 0.3040657043457031, -0.08403366059064865, -0.08387421816587448, 0.03225603327155113, -0.37047290802001953, 0.16923320293426514, 0.34336304664611816, -0.019673392176628113, -0.16787776350975037, -0.20505733788013458, -0.25451862812042236, -0.3353482484817505, -0.14693982899188995, 0.1344522386789322, 0.10088363289833069, 0.12745454907417297, 0.018346065655350685, -0.5094106197357178, 0.17799575626850128, 0.2970947325229645, -0.07595580816268921, -0.13298529386520386, 0.017022602260112762, 0.17622044682502747, 0.3014759421348572, 0.3251456916332245, 0.13006806373596191, -0.026783481240272522, -0.2759256958961487, 0.34108033776283264, 0.23723366856575012, -0.8343703746795654, -0.04900909215211868, 0.3021261394023895, -0.1776556670665741, -0.06873483955860138, -0.15669402480125427, -0.060468025505542755, 0.381418377161026, -0.26273950934410095, 0.12652505934238434, 0.2627410590648651, -0.03196221590042114, 0.04746522009372711, 0.1891472488641739, -0.01538175344467163, -0.11613199859857559, -0.31649938225746155, 0.08239245414733887, 0.07575607299804688, -0.35764971375465393, 0.0020744092762470245, 0.1473563015460968, -0.3181460499763489, -0.09177688509225845, -0.20896953344345093, 0.08701019734144211, -0.2279869019985199, -0.0954177975654602, 0.1857134997844696, 0.1437501609325409, -0.00749284727498889, 0.7631866931915283, -0.3099229335784912, 0.12174037098884583, -0.4748975336551666, -0.5301417708396912, -0.06634017080068588, -0.039781175553798676, -0.3465285897254944, 0.2080824077129364, 0.1431373506784439, -0.06835418939590454, 0.1460196077823639, 0.3318595886230469, 0.10749626159667969, -0.2276342213153839, 0.4178266227245331, -0.5117993950843811, 0.16778412461280823, 0.05897851288318634, 0.20204758644104004, 0.5448600053787231, -0.04066747799515724, 0.2940495014190674, -0.1321762651205063, 0.20676830410957336, -0.41304177045822144, -0.28135213255882263, 0.23649293184280396, -0.019013941287994385, 0.020879976451396942, 0.12295177578926086, -0.4732315242290497, 0.46247634291648865, 0.32515788078308105, -0.17900723218917847, -0.14780455827713013, -0.16592051088809967, -0.6320610642433167, -0.1753906011581421, -0.011153391562402248, 0.1977136731147766, -0.3402854800224304, 0.20495301485061646, -0.32016706466674805, 0.2069399058818817, 0.4300444424152374, 0.6151012182235718, -0.21598374843597412, 0.3415971100330353, 0.05164877325296402, 0.22515560686588287, -0.0023539289832115173, -0.1387232393026352, -0.40849676728248596, 0.5142598152160645, -0.17398664355278015, 0.013666858896613121, -0.1646820306777954, 0.13836254179477692, 0.24922479689121246, -0.06472870707511902, 0.3306160271167755, 0.29143333435058594, 0.034145064651966095, 0.42800799012184143, -0.19738143682479858, -0.10398561507463455, 0.18469776213169098, 0.05417388305068016, -0.05661523714661598, -0.20501407980918884, -0.03715292364358902, -0.2860494554042816, 0.2572297751903534, -0.03552303835749626, 0.00824837014079094, 0.4262193441390991, -0.3082410395145416, -0.25600922107696533, -0.15802477300167084, -0.2601363956928253, -0.0037646740674972534, 0.4375154972076416, -0.0021115466952323914, 0.057485442608594894, 0.4135410785675049, 0.027944207191467285, 0.11080906540155411, 0.1494620144367218, -0.06807669997215271, -0.12232759594917297, -0.0876559317111969, -0.1260019689798355, -0.13298995792865753, -0.12464259564876556, -0.011443160474300385, 0.4414820075035095, 0.2015874981880188, -0.07738614827394485, 0.01648944616317749, -0.08991202712059021, 0.04981677606701851, 0.06579150259494781, -0.168893963098526, -0.0689554437994957, 0.059139493852853775, 0.05645480379462242, -0.10533197969198227, 0.23121270537376404, 0.5013441443443298, -0.015017107129096985, 0.21690633893013, 0.08947121351957321, 0.3605862855911255, -0.08223268389701843, 0.006993092596530914, -0.08228807151317596, 0.12697552144527435, -0.21854624152183533, -0.05808468163013458, 0.4031764268875122, 0.1453489512205124, 0.3654319643974304, 0.05722220987081528, -0.14872044324874878, -0.012652955949306488, 0.29906517267227173, 0.1308976113796234, 0.08748488128185272, 0.3935468792915344, 0.3419928252696991, 0.3217138648033142, 0.30013492703437805, -0.15013998746871948, 0.3168473243713379, 0.5996702909469604, 0.05428161099553108, -0.27991241216659546, 0.07593286037445068, -0.1620713770389557, -0.4020284116268158, 0.0846511572599411, -0.14954590797424316, 0.5025705695152283, 0.0256783589720726, 0.27717190980911255, -0.07768581807613373, -0.16445185244083405, -0.03162402659654617, 0.01853092759847641, 0.06964284926652908, 0.2023731917142868, -0.08601047843694687, 0.30453404784202576, -0.034298837184906006, -0.05905088037252426, -0.2960330545902252, 0.32209503650665283, 0.24768750369548798, -0.2464938461780548, 0.11505880206823349, -0.2985402047634125, 0.19460511207580566, 0.21182073652744293, -0.18028071522712708, -0.2740255296230316, -0.1983419507741928, -0.15078501403331757, -0.09102435410022736, 0.2649007737636566, 0.04909529536962509, 0.2131759524345398, -0.1343662589788437, -0.08811455219984055, -0.13095401227474213, 0.024823755025863647, -0.1924430876970291, -0.14756503701210022, 0.002380281686782837, 0.2600049376487732, 0.2535359859466553, 0.05255688726902008, -0.018955817446112633, -0.2758913040161133, -0.03444045037031174, -0.19469791650772095, -0.1309066116809845, 0.15538758039474487, 0.07677137851715088, -0.1676245927810669, -0.07341991364955902, -0.2072489708662033, 0.14590278267860413, 0.14387167990207672, -0.304387629032135, -0.20366406440734863, 0.09453820437192917, -0.12154125422239304, -0.25163429975509644, 0.06743322312831879, -0.10739479213953018, -0.11139700561761856, -0.1383112221956253, 0.21229393780231476, -0.16104672849178314, 0.32166755199432373, -0.20351777970790863, 0.11628930270671844, -0.038821879774332047, -0.07708505541086197, -0.03460756689310074, -0.31111711263656616, -0.3182477056980133, 0.017585810273885727, 0.007786241825670004, -0.18668469786643982, -0.17617513239383698, 0.035248540341854095, 0.18590129911899567, 0.14141196012496948, -0.1497195065021515, 0.19836193323135376, -0.40696948766708374, 0.2058570235967636, 0.08786655962467194, 0.09314820170402527, 0.41584542393684387, 0.04435030743479729, 0.05041765421628952, -0.015263848006725311, -0.39883288741111755, -0.11779283732175827, 0.23505333065986633, -0.033866576850414276, -0.03325209394097328, 0.35302624106407166, 0.14675846695899963, 0.6371400952339172, 0.49677085876464844, -0.24813212454319, 0.18340405821800232, -0.05671161413192749, -0.17932423949241638, -0.3295445144176483, -0.25131896138191223, 0.06021422520279884, -0.26325950026512146, 0.14677122235298157, 0.42665576934814453, 0.004223308525979519, -0.4380640983581543, -0.004326950758695602, 0.2549220323562622, -0.21420669555664062, -0.0036433786153793335, 0.13873377442359924, -0.13692186772823334, 0.19297263026237488, 0.24977442622184753, -0.1757775843143463, -0.4259992241859436, -0.03518478944897652, -0.0624336414039135, -0.10468293726444244, -0.1731257438659668, -0.2518579065799713, -0.4219580888748169, 0.03224589303135872, -0.433823823928833, 0.24117542803287506, 0.06254518032073975, 0.30934903025627136, -0.023705370724201202, 0.10661571472883224, 0.2530163526535034, -0.02465214766561985, 0.5251519083976746, -0.3747234344482422, -0.072280652821064, 0.19716927409172058, -0.35382920503616333, -0.379955530166626, 0.09955336153507233, -0.18695521354675293, 0.30884861946105957, 0.565625786781311, 0.5305860042572021, -0.05732497200369835, -0.1859971284866333, -0.01795293390750885, 0.08787435293197632, 0.17354267835617065, -0.23565976321697235, -0.3603866696357727, 0.11120561510324478, -0.12272065877914429, 0.14752836525440216, -0.017680354416370392, 0.1699635535478592, 0.1011919304728508, -0.17304976284503937, 0.018161291256546974, 0.09646303951740265, 0.3043765723705292, 0.2460242062807083, 0.12636354565620422, 0.025135327130556107, 0.3546011447906494, 0.16367338597774506, -0.19793862104415894, 0.08517981320619583, 0.2939789295196533, -0.15780913829803467, -0.08157630264759064, 0.19686758518218994, 0.059275414794683456, 0.2974371910095215, 0.2720458507537842, 0.05576254427433014, 0.08529733121395111, 0.12381589412689209, 0.22156310081481934, -0.18976399302482605, 0.29521313309669495, 0.31827396154403687, 0.4473123252391815, -0.45163866877555847, -0.5405714511871338, 0.04480203241109848, 0.4650714099407196, -0.1316145360469818, 0.3154815435409546, -0.7997979521751404, 0.08340603858232498, 0.05584454536437988, 0.08612283319234848, 0.6867592930793762, -0.4530681371688843, 0.05362846702337265, -0.2211478352546692, 0.2080143541097641, -0.043488118797540665, -0.515927791595459, 0.10075469315052032, -0.23057809472084045, -0.35652846097946167, 0.04124695062637329, -0.13716772198677063, 0.2404647171497345, 0.5195439457893372, 0.1649564653635025, 0.29669642448425293, 0.33780568838119507, 0.02031237632036209, 0.01692541129887104, 0.38303279876708984, 0.4501173198223114, -0.29724228382110596, 0.08399615436792374, 0.052900560200214386, 0.15039069950580597, -0.2016175091266632, 0.04991960525512695, 0.125576913356781, -0.17248721420764923, -0.004650887101888657, -0.3260076642036438, -0.19872131943702698, -0.38120952248573303, 0.27857673168182373, -0.0727510005235672, 0.23903824388980865, 0.3732855021953583, 0.22261202335357666, -0.07442896068096161, 0.03479474410414696, 0.004899557679891586, 0.028765350580215454, 0.24021616578102112, 0.23125696182250977, 0.421574205160141, -0.44060930609703064, -0.02019619755446911, -0.07752780616283417, -0.24798497557640076, -0.2530297040939331, -0.14356516301631927, -0.08309107273817062, -0.009771376848220825, 0.41262322664260864, 0.09153220057487488, 0.14758744835853577, -0.21929755806922913, 0.207706481218338, 0.11917896568775177, -0.173284113407135, 0.0028357654809951782, 0.12417858839035034, -0.011548852548003197, 0.6555912494659424, -0.3441318869590759, -0.4738885164260864, -0.04362058266997337, 0.4220101535320282, 0.17301028966903687, -0.04578784108161926, 0.06514588743448257, 0.2747505307197571, -0.264154314994812, -0.14640122652053833, 0.16977614164352417, -0.02114863134920597, -0.11398142576217651, 0.12918621301651, -0.07706288248300552, -0.22617904841899872, 0.2613056004047394, -0.13702243566513062, -0.08341121673583984, -0.026554539799690247, -0.1012946367263794, -0.2717387080192566, -0.2724473178386688, -0.19843201339244843, -0.3368959426879883, -0.1270141452550888, 0.1891498863697052, 0.034358710050582886, 0.08703608065843582, 0.437290221452713, -0.1505877673625946, 0.06359586864709854, 0.04832006245851517, 0.1567886918783188, -0.07429764419794083, -0.2773597836494446, 0.11323800683021545, -0.036702144891023636, -0.024911286309361458, 0.054106734693050385, -0.10791987180709839, -0.17885354161262512, -0.06870350241661072, 0.15673117339611053, -0.09913073480129242, -0.2538548409938812, 0.36578845977783203, -0.07963491231203079, -0.2076425552368164, -0.4486243724822998, -0.06660725921392441, 0.0809125006198883, -0.035483211278915405, -0.05807383358478546, 0.301003098487854, -0.28887712955474854, -0.33398890495300293, 0.3719589114189148, -0.21081656217575073, -0.0866609662771225, 0.022200405597686768, 0.35879456996917725, 0.4728195071220398, -0.0942239835858345, -0.04266912862658501, 0.017264869064092636, 0.2194647192955017, 0.0618240088224411, 0.11506415903568268, -0.08334419131278992, 0.15336301922798157, 0.24960459768772125, 0.38599228858947754, 0.18854740262031555, 0.08313319087028503, -0.23411968350410461, -0.02850351110100746, 0.03445030748844147, -0.25027793645858765, -0.2301441878080368, 0.5722425580024719, 0.02456621080636978, 0.21531131863594055, 0.03983885794878006, 0.3442560136318207, 0.22494551539421082, -0.029207594692707062, -0.0678626298904419, 0.14986078441143036, -0.3006119728088379, 0.06854067742824554, 0.12646788358688354, 0.24520887434482574, 0.22729259729385376, 0.41673311591148376, 0.1255267858505249, 0.0960286408662796, 0.4098244905471802, 0.239222913980484, 0.30635184049606323, 0.4426581561565399, 0.23540782928466797, -0.14710986614227295, -0.3804700970649719, 0.21758615970611572, 0.47675445675849915, -0.36888745427131653, -0.051947884261608124, 0.006247766315937042, 0.27834242582321167, -0.24606962502002716, -0.26632365584373474, -0.223383367061615, 0.3773781657218933, -0.11793873459100723, -0.30182135105133057, 0.23242220282554626, -0.06581876426935196, -0.059376925230026245, 0.11665332317352295, -0.16291317343711853, 0.11394747346639633, 0.7170908451080322, 0.12232179194688797, 0.08315408229827881, -0.3718973398208618, -0.2915075719356537, -0.1087314561009407, 0.16561052203178406, -0.11037662625312805, 0.15666407346725464, -0.2579634189605713, -0.048365041613578796, -0.09244148433208466, 0.28573039174079895, 0.444684237241745, 0.20743101835250854, -0.20754465460777283, 0.08934905380010605, -0.0035049933940172195, 0.1631726622581482, -0.0076237451285123825, 0.14340241253376007, -0.08818967640399933, 0.17719173431396484, 0.2069750726222992, -0.08804380893707275, -0.11515311896800995, -0.47493886947631836, 0.06640823185443878, 0.28731632232666016, -0.16598066687583923, 0.2223084270954132, -0.3293726146221161, -0.16212943196296692, 0.06008472293615341, 0.3436255156993866, -0.240693598985672, -0.106329046189785, 0.5321635007858276, -0.4719793498516083, 0.054653577506542206, -0.1331615149974823, 0.0444956049323082, -0.08020025491714478, 0.514208197593689, 0.2850683033466339, 0.05928637459874153, -0.4322343170642853, -0.09782451391220093, -0.632897675037384, -0.03689717501401901, -0.38162586092948914, 0.17203326523303986, 0.06113158538937569, 0.2965526282787323, -0.007945865392684937, 0.1402912139892578, 0.4338996410369873, -0.05122506245970726, -0.08582890033721924, 0.3613227605819702, -0.3320666551589966, 0.42382344603538513, -0.2775381803512573, -0.26067811250686646, -0.08485841751098633, -0.42415380477905273, 0.2904910743236542, 0.026563122868537903, -0.10747314989566803, -0.17153653502464294, -0.04353450983762741, 0.24991461634635925, 0.07920347899198532, 0.20056800544261932, 0.30702611804008484, 0.37503868341445923, 0.04232018440961838, 0.03126561641693115, -0.08442960679531097, 0.22457921504974365, -0.03340018540620804, 0.29840347170829773, -0.0642346739768982, 0.10115306079387665, -0.29234400391578674, 0.07503773272037506, 0.06471233069896698, -0.09232905507087708, 0.06366715580224991, -0.31480783224105835, -0.32325777411460876, -0.0283733531832695, -0.04619984328746796, 0.3187166154384613, 0.07380292564630508, 0.4481436610221863, 0.09804639220237732, -0.008970213122665882, -0.17299431562423706, -0.14496967196464539, -0.04854023456573486, -0.36321669816970825, -0.2774950861930847, -0.4824693500995636, 0.222147136926651, -0.24643701314926147, 0.12016762793064117, -0.21044546365737915, -0.2929733395576477, 0.3424050509929657, -0.02479216828942299, -0.41329213976860046, 0.3353043496608734, -0.35191184282302856, -0.04121983423829079, -0.1343037337064743, -0.01564345508813858, -0.10360591858625412, -0.4453982412815094, 0.18552790582180023, -0.1496315598487854 ]
https://github.com/huggingface/datasets/issues/1992
`datasets.map` multi processing much slower than single processing
Spawning multiple processes has an overhead. For small datasets the processing is likely to be faster than spawning the processes and passing the data to them. Especially since your dataset is in memory: the data has to be copied to the subprocesses. On the other hand, datasets loaded from disk are much faster to reload from a subprocess thanks to memory mapping.
Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png)
62
`datasets.map` multi processing much slower than single processing Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png) Spawning multiple processes has an overhead. For small datasets the processing is likely to be faster than spawning the processes and passing the data to them. Especially since your dataset is in memory: the data has to be copied to the subprocesses. On the other hand, datasets loaded from disk are much faster to reload from a subprocess thanks to memory mapping.
[ -0.47779253125190735, -0.3680698275566101, -0.07811873406171799, 0.34068578481674194, -0.09252801537513733, 0.01658906787633896, 0.36972060799598694, 0.12698453664779663, 0.1047443151473999, 0.04706680029630661, 0.07820647209882736, 0.3608483672142029, 0.14040358364582062, 0.17364509403705597, -0.1482640504837036, -0.005802076309919357, 0.21099895238876343, -0.03698505461215973, 0.17053289711475372, 0.02233479917049408, -0.20431414246559143, 0.07829509675502777, -0.464344322681427, -0.010334491729736328, -0.4129343330860138, -0.13991126418113708, 0.031572192907333374, 0.1677500307559967, -0.12484044581651688, -0.24092745780944824, -0.25448739528656006, 0.166389599442482, -0.022067751735448837, 0.5712305307388306, -0.00012288954167161137, -0.1602439284324646, 0.0402815118432045, 0.24634072184562683, 0.03494269773364067, 0.061230890452861786, -0.14023208618164062, -0.27453428506851196, -0.059164874255657196, -0.11772042512893677, 0.20921668410301208, 0.20063459873199463, 0.02258591167628765, -0.5070705413818359, 0.043151915073394775, 0.04017575457692146, 0.043623246252536774, 0.36386024951934814, -0.3941571116447449, 0.009192464873194695, -0.39730194211006165, 0.18948698043823242, -0.14793285727500916, 0.045641906559467316, 0.28936290740966797, -0.1812034547328949, -0.11254266649484634, 0.25891461968421936, -0.142576664686203, 0.2377368062734604, 0.05434884876012802, -0.06373213976621628, 0.09803905338048935, -0.5139292478561401, 0.1898319125175476, 0.32788631319999695, 0.01588035374879837, -0.08170174807310104, -0.20505434274673462, -0.26562047004699707, -0.2783958613872528, -0.17848438024520874, 0.15608704090118408, 0.16430918872356415, 0.21404512226581573, 0.02702060528099537, -0.5165302753448486, 0.15522415935993195, 0.33966064453125, -0.09997349977493286, -0.086005300283432, -0.013580210506916046, 0.14110253751277924, 0.36606940627098083, 0.337819904088974, 0.1556704044342041, -0.02506427839398384, -0.24616152048110962, 0.26840904355049133, 0.20214299857616425, -0.758914053440094, -0.021206406876444817, 0.23462218046188354, -0.0968051478266716, -0.055830977857112885, -0.13443993031978607, -0.09468091279268265, 0.3227056562900543, -0.27309784293174744, 0.10433612018823624, 0.3030906319618225, -0.07626214623451233, 0.03284458816051483, 0.10052625089883804, -0.017820969223976135, -0.19142280519008636, -0.3265089988708496, 0.05088568106293678, 0.04932807385921478, -0.29452264308929443, -0.007782863453030586, 0.08717255294322968, -0.2865787148475647, -0.031151676550507545, -0.18445557355880737, 0.00236421637237072, -0.22863253951072693, -0.09504790604114532, 0.11823933571577072, 0.14335386455059052, -0.007072173524647951, 0.8229696750640869, -0.2796725928783417, 0.11992177367210388, -0.4847262501716614, -0.535041868686676, -0.037287358194589615, -0.13521228730678558, -0.4223499894142151, 0.25727489590644836, 0.12146374583244324, -0.0336812399327755, 0.17965982854366302, 0.2656943202018738, 0.03451209142804146, -0.19923809170722961, 0.33559298515319824, -0.5416649580001831, 0.13500171899795532, 0.03761451318860054, 0.1695084273815155, 0.4837063252925873, -0.09666091203689575, 0.34904778003692627, -0.14925768971443176, 0.2649434506893158, -0.5347724556922913, -0.3080100119113922, 0.21588529646396637, -0.04064394533634186, 0.11959217488765717, 0.1374274045228958, -0.47775760293006897, 0.4968070387840271, 0.2853614091873169, -0.21306970715522766, -0.18284520506858826, -0.22571606934070587, -0.6584694981575012, -0.17651888728141785, -0.0494435653090477, 0.21285030245780945, -0.3014449179172516, 0.20430338382720947, -0.38305774331092834, 0.13072606921195984, 0.47404924035072327, 0.6025819182395935, -0.20697249472141266, 0.4363071322441101, 0.010282887145876884, 0.21365986764431, -0.03171955794095993, -0.08963858336210251, -0.3346375823020935, 0.5643836259841919, -0.12674187123775482, 0.001892726868391037, -0.16549789905548096, 0.15795034170150757, 0.2520487308502197, -0.045440685003995895, 0.30900314450263977, 0.25854408740997314, 0.008620990440249443, 0.4048515856266022, -0.1709887534379959, -0.1343192309141159, 0.09872369468212128, 0.03829189017415047, -0.05505770817399025, -0.04951580613851547, -0.003029733896255493, -0.23280908167362213, 0.304916113615036, -0.04164304956793785, 0.05062878131866455, 0.3785253167152405, -0.3560066223144531, -0.14524973928928375, -0.16795098781585693, -0.22134259343147278, -0.13204526901245117, 0.38553500175476074, -0.033611707389354706, 0.020686078816652298, 0.357780396938324, 0.06313878297805786, 0.22223711013793945, 0.1675800383090973, 0.005040448158979416, -0.08931407332420349, -0.12148316204547882, -0.03105129301548004, -0.12955999374389648, -0.2624804675579071, -0.07293213158845901, 0.47302159667015076, 0.1381998211145401, -0.1042991578578949, 0.004400218836963177, -0.12482529878616333, 0.07827253639698029, 0.061542313545942307, -0.2510896325111389, -0.07957249134778976, 0.01855209842324257, 0.06464418023824692, -0.03283874690532684, 0.30505436658859253, 0.46512696146965027, -0.07819141447544098, 0.159983292222023, 0.06493240594863892, 0.38838431239128113, -0.021255426108837128, 0.03432043269276619, -0.1944136917591095, 0.12156984210014343, -0.24095633625984192, 0.0005097277462482452, 0.263346791267395, 0.08865795284509659, 0.4815938174724579, 0.034648165106773376, -0.18516868352890015, -0.029863080009818077, 0.2800830006599426, 0.12097784131765366, 0.0647096037864685, 0.3086812198162079, 0.34893250465393066, 0.3053097724914551, 0.31988170742988586, -0.20718331634998322, 0.24254393577575684, 0.5811020135879517, 0.012827690690755844, -0.372744619846344, 0.038642656058073044, -0.16001003980636597, -0.35563933849334717, 0.032932549715042114, -0.14055883884429932, 0.6112039685249329, 0.03512231633067131, 0.1880444884300232, -0.027531860396265984, -0.12835632264614105, -0.019155077636241913, -0.010911665856838226, 0.11485105752944946, 0.3001854717731476, -0.08953063935041428, 0.28637823462486267, -0.0018683401867747307, -0.07356338202953339, -0.32663819193840027, 0.330575555562973, 0.22979633510112762, -0.22097446024417877, 0.10289723426103592, -0.24961479008197784, 0.1755274534225464, 0.1492181122303009, -0.056927699595689774, -0.23270577192306519, -0.20482660830020905, -0.1838318258523941, -0.09379906952381134, 0.1847364604473114, -0.050852201879024506, 0.2055351883172989, -0.09138871729373932, -0.10720209777355194, -0.042158156633377075, 0.025671474635601044, -0.10877598077058792, -0.13210523128509521, -0.029578858986496925, 0.2737327218055725, 0.20393869280815125, 0.0638914629817009, -0.03876699507236481, -0.2859659790992737, -0.06162591278553009, -0.13036444783210754, -0.0826743096113205, 0.10950418561697006, 0.06047869473695755, -0.1768243908882141, -0.01906745135784149, -0.22785794734954834, 0.05102811008691788, 0.1649019420146942, -0.27507200837135315, -0.1729993373155594, 0.013090495020151138, -0.07259359210729599, -0.26565107703208923, 0.03603089228272438, -0.1550242006778717, -0.08597701787948608, -0.12413504719734192, 0.22975550591945648, -0.14631769061088562, 0.3306138515472412, -0.18377067148685455, 0.13155928254127502, -0.07629434019327164, -0.07304555177688599, 0.04516852647066116, -0.2587586045265198, -0.34602317214012146, -0.03681821748614311, -0.011811727657914162, -0.17162859439849854, -0.1304619461297989, 0.050894975662231445, 0.14188478887081146, 0.2395346313714981, -0.1780460625886917, 0.19578470289707184, -0.3791641592979431, 0.08101989328861237, 0.07733742147684097, 0.06811591982841492, 0.4181195795536041, 0.07907988876104355, 0.05067071318626404, 0.019474856555461884, -0.405729204416275, -0.10987202078104019, 0.28470534086227417, 0.06406518816947937, 0.029624441638588905, 0.3517129123210907, 0.02703201398253441, 0.6587590575218201, 0.47140875458717346, -0.1540256142616272, 0.15839901566505432, 0.00030554644763469696, -0.12478391826152802, -0.42946043610572815, -0.2377610057592392, 0.1307957023382187, -0.27211639285087585, 0.12415550649166107, 0.4375506043434143, -0.012582875788211823, -0.43666669726371765, -0.02818235382437706, 0.29930293560028076, -0.20114952325820923, 0.00382869690656662, 0.11361004412174225, -0.11113341152667999, 0.25014740228652954, 0.21490080654621124, -0.16791486740112305, -0.3529880940914154, 0.02176046185195446, -0.07384169101715088, -0.1374402940273285, -0.05323009938001633, -0.2306896150112152, -0.521248996257782, -0.04483059421181679, -0.41510558128356934, 0.26072123646736145, 0.08850966393947601, 0.27886101603507996, 0.018249567598104477, 0.06056111305952072, 0.2783270478248596, 0.03476429358124733, 0.5380676984786987, -0.44080469012260437, -0.1788146048784256, 0.08299364149570465, -0.3682408630847931, -0.28405842185020447, 0.07760263979434967, -0.17843881249427795, 0.3193763494491577, 0.515698254108429, 0.49245455861091614, -0.11507464200258255, -0.20316562056541443, 0.0006039012223482132, 0.15722067654132843, 0.18363530933856964, -0.265253484249115, -0.37772616744041443, 0.1142752394080162, -0.18261954188346863, 0.11752230674028397, -0.11347544938325882, 0.15241234004497528, 0.09238296747207642, -0.11238421499729156, -0.011589447036385536, 0.13156381249427795, 0.2615230083465576, 0.17591097950935364, 0.11699481308460236, 0.08153096586465836, 0.2798766791820526, 0.19638480246067047, -0.006406813859939575, 0.08137727528810501, 0.343555748462677, -0.19385001063346863, -0.11726397275924683, 0.2318076491355896, 0.07706552743911743, 0.32289934158325195, 0.32174885272979736, 0.16055303812026978, 0.007986195385456085, 0.17872489988803864, 0.3007800877094269, -0.24114468693733215, 0.3462427258491516, 0.407291442155838, 0.35565975308418274, -0.534695029258728, -0.570318877696991, -0.01720721274614334, 0.4634374976158142, -0.11781883239746094, 0.2779023051261902, -0.7382718920707703, 0.10013028979301453, 0.060699716210365295, 0.1131117194890976, 0.7555438280105591, -0.43333232402801514, 0.06466620415449142, -0.24010378122329712, 0.3123728036880493, -0.004316600970923901, -0.5272634625434875, 0.1946403831243515, -0.17680515348911285, -0.34097155928611755, 0.028083333745598793, -0.12624628841876984, 0.21668758988380432, 0.5288888812065125, 0.1488390415906906, 0.28594622015953064, 0.3820950388908386, 0.05901964753866196, -0.08748173713684082, 0.3612445890903473, 0.47584742307662964, -0.4025692641735077, 0.16904835402965546, 0.02079630270600319, 0.19060464203357697, -0.23907870054244995, 0.010610885918140411, 0.12926721572875977, -0.06282040476799011, 0.044183358550071716, -0.26363247632980347, -0.21380499005317688, -0.36096668243408203, 0.22850818932056427, -0.08160939812660217, 0.28238600492477417, 0.40015390515327454, 0.2609965205192566, -0.10238610208034515, 0.09821076691150665, 0.01951908878982067, 0.0316932387650013, 0.22840848565101624, 0.22593708336353302, 0.3185228705406189, -0.4774685800075531, -0.010745564475655556, -0.024848133325576782, -0.2433706820011139, -0.2524455189704895, -0.18338416516780853, -0.0979289785027504, -0.11272981762886047, 0.46703875064849854, 0.16483476758003235, 0.13241013884544373, -0.29891788959503174, 0.27829331159591675, 0.02620576322078705, -0.10442399978637695, -0.026874568313360214, 0.06719629466533661, 0.03626848757266998, 0.6517626047134399, -0.2586066424846649, -0.5441886782646179, -0.022556427866220474, 0.3210483193397522, 0.24664628505706787, -0.08937172591686249, 0.0651855319738388, 0.21370939910411835, -0.24889208376407623, -0.138313889503479, 0.17794358730316162, -0.11948375403881073, -0.0870431512594223, 0.1423323154449463, 0.017022419720888138, -0.1975478231906891, 0.2817762494087219, -0.14836695790290833, -0.13499607145786285, -0.06331206113100052, -0.13397738337516785, -0.21639516949653625, -0.2599885165691376, -0.12088429927825928, -0.348859578371048, -0.16433821618556976, 0.2704963684082031, 0.024693220853805542, 0.11963824927806854, 0.46965593099594116, -0.1335241049528122, 0.009897174313664436, 0.0566258430480957, 0.21233730018138885, -0.031734637916088104, -0.18649253249168396, 0.0661182552576065, -0.013581037521362305, -0.05941872298717499, 0.08278654515743256, -0.1494215875864029, -0.12576478719711304, -0.00465971976518631, 0.1939237415790558, -0.01114056259393692, -0.21886396408081055, 0.376183420419693, -0.1264384388923645, -0.16395266354084015, -0.46199244260787964, -0.01565474644303322, 0.058803096413612366, -0.07984945178031921, -0.13716161251068115, 0.2798466384410858, -0.2723136842250824, -0.2650662660598755, 0.4502648115158081, -0.1723538339138031, -0.0823255330324173, 0.020225493237376213, 0.34126558899879456, 0.471483439207077, -0.09902213513851166, -0.0851592943072319, 0.041872963309288025, 0.3305743336677551, 0.08650138974189758, 0.12650738656520844, -0.11344610154628754, 0.18751463294029236, 0.21704202890396118, 0.37222060561180115, 0.1864408552646637, 0.14354918897151947, -0.20354288816452026, 0.015514002181589603, 0.0024705789983272552, -0.23408058285713196, -0.16393618285655975, 0.5111876130104065, -0.018002908676862717, 0.17587965726852417, 0.11343665421009064, 0.3213193714618683, 0.225734144449234, -0.05006793141365051, -0.11568107455968857, 0.09109579771757126, -0.3159356117248535, 0.015620929189026356, 0.18060633540153503, 0.2838674783706665, 0.2550716996192932, 0.5005251169204712, 0.11871799826622009, 0.0450022928416729, 0.4791247844696045, 0.2762135863304138, 0.3030000627040863, 0.48101121187210083, 0.2685134708881378, -0.10997762531042099, -0.3915276825428009, 0.22915232181549072, 0.5088752508163452, -0.34633734822273254, -0.07775042206048965, -0.08510048687458038, 0.1983403116464615, -0.25586363673210144, -0.3582005202770233, -0.18559716641902924, 0.37438419461250305, -0.14513343572616577, -0.29953786730766296, 0.17274028062820435, -0.06406800448894501, -0.016502369195222855, 0.1989000141620636, -0.22040778398513794, 0.10986849665641785, 0.7591729164123535, 0.11060594767332077, 0.07088838517665863, -0.39356687664985657, -0.2993130087852478, -0.11978226155042648, 0.11971749365329742, -0.17890150845050812, 0.14875169098377228, -0.33171623945236206, 0.013176694512367249, -0.020955275744199753, 0.2665024399757385, 0.4105697572231293, 0.3170457184314728, -0.17311149835586548, 0.09269357472658157, -0.024305429309606552, 0.15519678592681885, -0.04930929094552994, 0.15059995651245117, 0.04008086770772934, 0.1689121574163437, 0.21815268695354462, -0.10458117723464966, -0.07200400531291962, -0.44486963748931885, 0.0863143727183342, 0.3214755356311798, -0.19555886089801788, 0.2070317268371582, -0.2540557086467743, -0.14793761074543, 0.036049965769052505, 0.3345111906528473, -0.3402819335460663, -0.017303019762039185, 0.5046505928039551, -0.5443153381347656, 0.07279721647500992, -0.14521464705467224, 0.02349618449807167, -0.10127286612987518, 0.5818616151809692, 0.34613752365112305, 0.017151113599538803, -0.39554619789123535, -0.09593494236469269, -0.5719965100288391, -0.1185765340924263, -0.34737542271614075, 0.2939189374446869, 0.04960134997963905, 0.29207104444503784, 0.05784035846590996, 0.15755432844161987, 0.3145875632762909, -0.09944552183151245, -0.09842133522033691, 0.3791417181491852, -0.2899797856807709, 0.46246257424354553, -0.2576826810836792, -0.11436130106449127, -0.07202288508415222, -0.45843932032585144, 0.34832748770713806, 0.01390212494879961, -0.16667219996452332, -0.13781674206256866, -0.012291394174098969, 0.2097240686416626, 0.13078932464122772, 0.21424990892410278, 0.34969964623451233, 0.3433658182621002, 0.028822556138038635, 0.028492895886301994, -0.1850394904613495, 0.12442070245742798, -0.047085538506507874, 0.2991563677787781, -0.05236535146832466, 0.10860708355903625, -0.35082578659057617, 0.14569666981697083, 0.09628547728061676, -0.12942585349082947, 0.05510788410902023, -0.1827087700366974, -0.3097650408744812, -0.057826876640319824, -0.06179538741707802, 0.28014490008354187, 0.05145132914185524, 0.38869142532348633, 0.15425816178321838, -0.11569930613040924, -0.18532194197177887, -0.07604584097862244, -0.035271212458610535, -0.24921852350234985, -0.3344321548938751, -0.44452160596847534, 0.18951177597045898, -0.2386053204536438, 0.16099609434604645, -0.20531243085861206, -0.2916606068611145, 0.2965117394924164, -0.04246938228607178, -0.4383506178855896, 0.34102848172187805, -0.38336876034736633, -0.1452436000108719, -0.14981772005558014, 0.006211504340171814, -0.1134532019495964, -0.45956504344940186, 0.19487807154655457, -0.15636038780212402 ]
https://github.com/huggingface/datasets/issues/1992
`datasets.map` multi processing much slower than single processing
Thanks for the clarifications! Indeed, when saving then loading the above dataset to disk, and increasing the number of rows to 10K or 100K, the performance gap narrows. ```py # with 10000 rows In [3]: %%timeit ...: d.map(sort, input_columns='foo') 578 ms ± 5.89 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) In [4]: %%timeit ...: d.map(sort, input_columns='foo',num_proc=10) 1.06 s ± 47.4 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) # with 100000 rows In [6]: %%timeit ...: d.map(sort, input_columns='foo') 5.8 s ± 25.5 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) In [7]: %%timeit ...: d.map(sort, input_columns='foo',num_proc=10) 7.23 s ± 154 ms per loop (mean ± std. dev. of 7 runs, 1 loop each ```
Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png)
130
`datasets.map` multi processing much slower than single processing Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png) Thanks for the clarifications! Indeed, when saving then loading the above dataset to disk, and increasing the number of rows to 10K or 100K, the performance gap narrows. ```py # with 10000 rows In [3]: %%timeit ...: d.map(sort, input_columns='foo') 578 ms ± 5.89 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) In [4]: %%timeit ...: d.map(sort, input_columns='foo',num_proc=10) 1.06 s ± 47.4 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) # with 100000 rows In [6]: %%timeit ...: d.map(sort, input_columns='foo') 5.8 s ± 25.5 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) In [7]: %%timeit ...: d.map(sort, input_columns='foo',num_proc=10) 7.23 s ± 154 ms per loop (mean ± std. dev. of 7 runs, 1 loop each ```
[ -0.4322817623615265, -0.2579294443130493, -0.08461293578147888, 0.3263583183288574, -0.07161778956651688, 0.019813887774944305, 0.3386639654636383, 0.12861330807209015, 0.008681725710630417, -0.002948462963104248, 0.06923215836286545, 0.4440319836139679, 0.1702548861503601, 0.1573900580406189, -0.14709575474262238, -0.01927173137664795, 0.20209312438964844, -0.04289676249027252, 0.19961807131767273, -0.010120369493961334, -0.16581925749778748, 0.11891620606184006, -0.4899923801422119, -0.05112104117870331, -0.37706440687179565, -0.1651611179113388, 0.11827117204666138, 0.16993480920791626, -0.12231308966875076, -0.2664085328578949, -0.21290180087089539, 0.19616571068763733, -0.04376101493835449, 0.5861661434173584, -0.00012130956747569144, -0.16239872574806213, -0.0013969391584396362, 0.24128541350364685, 0.054122623056173325, 0.03290838003158569, -0.03981250524520874, -0.30132806301116943, -0.05991806834936142, -0.15847477316856384, 0.14140591025352478, 0.1517229527235031, -0.08219969272613525, -0.4708964228630066, 0.05910231173038483, 0.09058039635419846, 0.058923255652189255, 0.3776181638240814, -0.30966442823410034, 0.05654133856296539, -0.4030769169330597, 0.1606944352388382, -0.15923404693603516, 0.0766831710934639, 0.3353595435619354, -0.1811445653438568, -0.15492400527000427, 0.33524495363235474, -0.132811039686203, 0.26836854219436646, -0.01471683382987976, -0.0217091366648674, 0.09502039104700089, -0.4286113977432251, 0.18763142824172974, 0.3386853337287903, -0.007014095783233643, -0.12193737179040909, -0.20904377102851868, -0.265600323677063, -0.33860453963279724, -0.16669516265392303, 0.14143532514572144, 0.14185436069965363, 0.12829269468784332, 0.012100229039788246, -0.5084534883499146, 0.15198500454425812, 0.32277753949165344, -0.05387772619724274, -0.16295920312404633, 0.010538652539253235, 0.15842309594154358, 0.315660685300827, 0.3480282723903656, 0.10199286043643951, -0.02377348020672798, -0.25630122423171997, 0.3259471654891968, 0.22812117636203766, -0.8212324380874634, -0.053708359599113464, 0.26208579540252686, -0.15818914771080017, -0.058607492595911026, -0.18715986609458923, -0.08806227892637253, 0.35550981760025024, -0.28641337156295776, 0.07142455875873566, 0.3126235008239746, -0.024967391043901443, -0.023144245147705078, 0.16307969391345978, 0.011799648404121399, -0.15497860312461853, -0.29702499508857727, 0.0909121036529541, 0.08912665396928787, -0.3265606164932251, -0.05638613924384117, 0.09416544437408447, -0.3230789303779602, -0.04814409837126732, -0.15546780824661255, 0.06617814302444458, -0.22043541073799133, -0.088999442756176, 0.10079644620418549, 0.12539289891719818, -0.0019117128103971481, 0.8022097945213318, -0.2730165421962738, 0.14523938298225403, -0.4418557286262512, -0.490359365940094, -0.04045916348695755, -0.13173560798168182, -0.3788967430591583, 0.16944876313209534, 0.12672074139118195, -0.021758127957582474, 0.14681433141231537, 0.2961726784706116, 0.09004557132720947, -0.17687369883060455, 0.3399859368801117, -0.5481677055358887, 0.2082638442516327, 0.10650089383125305, 0.18481294810771942, 0.5351700782775879, -0.060954365879297256, 0.2989501357078552, -0.11581520736217499, 0.2777329683303833, -0.48980051279067993, -0.2366332709789276, 0.1786874532699585, -0.02343704178929329, 0.09187810868024826, 0.105769082903862, -0.49776557087898254, 0.5069153308868408, 0.3123604655265808, -0.2189122885465622, -0.15086740255355835, -0.2189129739999771, -0.6387104392051697, -0.19516156613826752, -0.05601285398006439, 0.14612674713134766, -0.3300039768218994, 0.2251076102256775, -0.275949627161026, 0.20231817662715912, 0.44086483120918274, 0.608622670173645, -0.22237981855869293, 0.38207516074180603, 0.03728261590003967, 0.25154662132263184, 0.02853430062532425, -0.14783918857574463, -0.402391254901886, 0.549670934677124, -0.14253702759742737, 0.024616872891783714, -0.1734282374382019, 0.1354864239692688, 0.3050197660923004, -0.07882625609636307, 0.3197377920150757, 0.3090602159500122, 0.01979774609208107, 0.41427358984947205, -0.22058606147766113, -0.12361520528793335, 0.1849128007888794, 0.043854955583810806, -0.03276996687054634, -0.14573991298675537, 0.00815456360578537, -0.27895861864089966, 0.34815311431884766, -0.04624522849917412, 0.0412449985742569, 0.444180965423584, -0.4214285612106323, -0.16836246848106384, -0.13746999204158783, -0.23658952116966248, -0.10303840786218643, 0.4079972505569458, -0.02267846092581749, 0.05925963819026947, 0.3460747301578522, 0.03628668189048767, 0.18585935235023499, 0.09790682792663574, -0.06379267573356628, -0.12795259058475494, -0.08214692026376724, -0.12556979060173035, -0.1554340422153473, -0.16421589255332947, -0.0508495457470417, 0.41452500224113464, 0.1759883314371109, -0.07972978055477142, 0.023207250982522964, -0.08884387463331223, 0.06380530446767807, 0.04619654268026352, -0.2082015424966812, -0.04561521112918854, 0.060906216502189636, 0.04445842280983925, -0.06936277449131012, 0.2685650885105133, 0.4515925645828247, -0.09863266348838806, 0.13501805067062378, 0.10657914727926254, 0.39893534779548645, -0.019320111721754074, 0.02745160274207592, -0.13851097226142883, 0.11754359304904938, -0.2215467393398285, -0.020774349570274353, 0.3079984188079834, 0.11575518548488617, 0.4371972978115082, 0.06561193615198135, -0.13594406843185425, 0.025877228006720543, 0.29945075511932373, 0.18153400719165802, 0.03900229185819626, 0.29662808775901794, 0.3391566574573517, 0.2941683530807495, 0.3083608150482178, -0.14352205395698547, 0.32747137546539307, 0.5888667106628418, 0.03167320415377617, -0.272320419549942, 0.035711824893951416, -0.1938026249408722, -0.3932466506958008, 0.025624524801969528, -0.09362627565860748, 0.5774245262145996, 0.01910555362701416, 0.21475212275981903, -0.04446588456630707, -0.11175490915775299, -0.05515458434820175, -0.01921629160642624, 0.12214389443397522, 0.21516954898834229, -0.05291493982076645, 0.28841909766197205, 0.010886715725064278, -0.06557860970497131, -0.26724889874458313, 0.3687692880630493, 0.2124408334493637, -0.21682052314281464, 0.14695484936237335, -0.3230144679546356, 0.17189860343933105, 0.21548837423324585, -0.14316672086715698, -0.27763473987579346, -0.1922226995229721, -0.1833767592906952, -0.08558011054992676, 0.2050676941871643, -0.032895587384700775, 0.23581573367118835, -0.18164204061031342, -0.09643428027629852, -0.10787632316350937, 0.04421805590391159, -0.1536131054162979, -0.1805272102355957, -0.009277403354644775, 0.2770015597343445, 0.21833327412605286, 0.04816849157214165, -0.039166517555713654, -0.26430702209472656, -0.06946424394845963, -0.21849355101585388, -0.11579957604408264, 0.12840375304222107, 0.055613450706005096, -0.20795223116874695, -0.04213578999042511, -0.24004410207271576, 0.14249186217784882, 0.16005942225456238, -0.2391393929719925, -0.1929902583360672, 0.04319048300385475, -0.0979963093996048, -0.2545420527458191, 0.034375499933958054, -0.17087146639823914, -0.13080574572086334, -0.11132313311100006, 0.20866939425468445, -0.15772645175457, 0.32866156101226807, -0.21925923228263855, 0.06836540251970291, -0.08385048806667328, -0.08354270458221436, 0.027808044105768204, -0.3148494064807892, -0.2786317467689514, 0.003221701830625534, -0.005440217442810535, -0.205762580037117, -0.17431792616844177, 0.023278675973415375, 0.16751189529895782, 0.18858210742473602, -0.11201038211584091, 0.17823860049247742, -0.37834757566452026, 0.17082345485687256, 0.027021249756217003, 0.07323888689279556, 0.4962664544582367, 0.03544268384575844, 0.06660010665655136, -0.02485349215567112, -0.4006776809692383, -0.08952725678682327, 0.30872151255607605, 0.028844289481639862, -0.021122753620147705, 0.3694918751716614, 0.08856558799743652, 0.6327805519104004, 0.47243523597717285, -0.1870059221982956, 0.20165252685546875, 0.016604561358690262, -0.13941343128681183, -0.37811779975891113, -0.23330996930599213, 0.09249796718358994, -0.27351492643356323, 0.17014256119728088, 0.4310263395309448, -0.007658112794160843, -0.44207942485809326, -0.006043191999197006, 0.23296496272087097, -0.21435609459877014, -0.005832284688949585, 0.16403372585773468, -0.10019887983798981, 0.22755280137062073, 0.24934709072113037, -0.1680608093738556, -0.3724818825721741, -0.010494053363800049, -0.06713640689849854, -0.11161932349205017, -0.11084645241498947, -0.23230962455272675, -0.45832329988479614, -0.01021872740238905, -0.43938612937927246, 0.21076491475105286, 0.09176412969827652, 0.3105675280094147, -0.029781688004732132, 0.08659233152866364, 0.2993978261947632, 0.02247460000216961, 0.5401840806007385, -0.3892694413661957, -0.13538070023059845, 0.17162252962589264, -0.3972965478897095, -0.30181941390037537, 0.06741601228713989, -0.1486826241016388, 0.2624460458755493, 0.5889167785644531, 0.5515156984329224, -0.09555918723344803, -0.22885781526565552, -0.001275608316063881, 0.12013817578554153, 0.15565918385982513, -0.2636566758155823, -0.3393121659755707, 0.10277729481458664, -0.1727522760629654, 0.11287585645914078, 0.0024790968745946884, 0.19095569849014282, 0.12549857795238495, -0.10929085314273834, 0.022353539243340492, 0.07274369895458221, 0.22891780734062195, 0.21903926134109497, 0.1553475260734558, 0.07175116240978241, 0.28196677565574646, 0.21246583759784698, -0.08187086880207062, 0.058709777891635895, 0.3021228611469269, -0.1479814499616623, -0.08268287777900696, 0.2071341872215271, 0.03102719411253929, 0.27480438351631165, 0.2894212603569031, 0.08670775592327118, 0.05848817527294159, 0.0760888084769249, 0.24972331523895264, -0.23633973300457, 0.2578190267086029, 0.40208595991134644, 0.3580760657787323, -0.49089038372039795, -0.5078966021537781, -0.010005056858062744, 0.4237062931060791, -0.16073238849639893, 0.23416364192962646, -0.772219717502594, 0.0878366008400917, 0.1156105250120163, 0.10018030554056168, 0.7173835635185242, -0.42056727409362793, 0.10730807483196259, -0.27291664481163025, 0.2354263812303543, -0.05320277437567711, -0.5671545267105103, 0.1027713343501091, -0.17806081473827362, -0.32350340485572815, 0.0248443353921175, -0.10682065784931183, 0.21137508749961853, 0.5223153233528137, 0.1643548309803009, 0.3037864863872528, 0.35358840227127075, 0.07099980115890503, -0.0031937099993228912, 0.3188954293727875, 0.52824467420578, -0.3171783983707428, 0.12661898136138916, 0.032342806458473206, 0.19605040550231934, -0.23408293724060059, 0.009615829214453697, 0.04738263040781021, -0.07508455216884613, 0.0024888738989830017, -0.31673869490623474, -0.22096580266952515, -0.41608038544654846, 0.24250173568725586, -0.07723230123519897, 0.2281094640493393, 0.38920265436172485, 0.2914753258228302, -0.07519926130771637, 0.09245715290307999, 0.013198000378906727, 0.03390171378850937, 0.24471694231033325, 0.2726323902606964, 0.4202452600002289, -0.4656877815723419, 0.016235288232564926, -0.09429070353507996, -0.24270135164260864, -0.2653481066226959, -0.16958226263523102, -0.12001708894968033, -0.11394233256578445, 0.46925806999206543, 0.15512731671333313, 0.17394869029521942, -0.21373726427555084, 0.22353002429008484, 0.08489808440208435, -0.13133713603019714, -0.008425876498222351, 0.1182352751493454, 0.06491149216890335, 0.6843240857124329, -0.3111732006072998, -0.5107947587966919, -0.00923888012766838, 0.4032888412475586, 0.24621674418449402, -0.1300564557313919, 0.04051517695188522, 0.21681849658489227, -0.26981014013290405, -0.1319803148508072, 0.13983720541000366, -0.13243111968040466, -0.0741342082619667, 0.1263834834098816, 0.012216075323522091, -0.23072127997875214, 0.23429030179977417, -0.16747750341892242, -0.1238117516040802, -0.05004911869764328, -0.20151963829994202, -0.3102562129497528, -0.2583882510662079, -0.17723871767520905, -0.3582620918750763, -0.218448206782341, 0.2591210901737213, 0.026152772828936577, 0.11362598836421967, 0.4798016846179962, -0.14161719381809235, 0.0834675133228302, 0.09265319257974625, 0.18027134239673615, -0.05633215606212616, -0.2523236572742462, 0.08944699168205261, -0.017983216792345047, -0.0578857883810997, 0.07543310523033142, -0.09466639161109924, -0.1529809534549713, -0.04865437373518944, 0.16862761974334717, -0.0399937704205513, -0.25141093134880066, 0.3739187717437744, -0.11973783373832703, -0.19846701622009277, -0.425310879945755, 0.01152271032333374, 0.07396210730075836, -0.029128573834896088, -0.11687280982732773, 0.29997771978378296, -0.253746896982193, -0.27025946974754333, 0.451992928981781, -0.2090889811515808, -0.11512239277362823, 0.021810075268149376, 0.30152037739753723, 0.44876885414123535, -0.108354352414608, -0.10157174617052078, -0.007414050400257111, 0.25038063526153564, 0.050521887838840485, 0.1923924684524536, -0.12307845056056976, 0.14748966693878174, 0.24733753502368927, 0.3608904182910919, 0.12418591976165771, 0.08279858529567719, -0.25509369373321533, 0.009550089947879314, 0.01160420197993517, -0.23484669625759125, -0.23700250685214996, 0.5098671913146973, 0.035651881247758865, 0.18179087340831757, 0.04065413773059845, 0.35071632266044617, 0.21187159419059753, -0.02457667887210846, -0.09887354075908661, 0.11338549107313156, -0.2813847064971924, 0.06039310619235039, 0.2061118632555008, 0.27860188484191895, 0.2668646275997162, 0.43676450848579407, 0.06758271157741547, 0.042922839522361755, 0.46857309341430664, 0.22975608706474304, 0.30647212266921997, 0.4994652569293976, 0.2016981840133667, -0.06334464997053146, -0.3744068145751953, 0.16895772516727448, 0.48031100630760193, -0.34712666273117065, -0.06393388658761978, -0.057666927576065063, 0.19249781966209412, -0.21978294849395752, -0.33541133999824524, -0.2305936962366104, 0.3555475175380707, -0.17752206325531006, -0.29457929730415344, 0.21709874272346497, -0.06540455669164658, 0.0013247430324554443, 0.15498389303684235, -0.2660343050956726, 0.10617973655462265, 0.7164216041564941, 0.11879485100507736, 0.04223538562655449, -0.3814873993396759, -0.33752429485321045, -0.1559751033782959, 0.13864174485206604, -0.10405579954385757, 0.181642085313797, -0.26638007164001465, -0.016581282019615173, -0.039660993963479996, 0.2903922200202942, 0.3987594544887543, 0.27183496952056885, -0.14743566513061523, 0.04659828916192055, -0.02250126749277115, 0.17948894202709198, -0.011970922350883484, 0.1566917449235916, -0.0049152374267578125, 0.18095692992210388, 0.20590850710868835, -0.10413706302642822, -0.10832741856575012, -0.4458036422729492, 0.05835500732064247, 0.3145572543144226, -0.1367313712835312, 0.20575690269470215, -0.3082970380783081, -0.16033323109149933, 0.04014035686850548, 0.3246297538280487, -0.2742624282836914, -0.08009056001901627, 0.5203939080238342, -0.4768272638320923, 0.07864753156900406, -0.19076551496982574, 0.03504040092229843, -0.0706164687871933, 0.5785462856292725, 0.2933376729488373, -0.02298014611005783, -0.4284251928329468, -0.10432425886392593, -0.6102975010871887, -0.053763024508953094, -0.34033089876174927, 0.2609580159187317, 0.08785762637853622, 0.2753435969352722, 0.05572962015867233, 0.17908325791358948, 0.37656164169311523, -0.07720138132572174, -0.08123816549777985, 0.36466389894485474, -0.3338918387889862, 0.4561699330806732, -0.2641914486885071, -0.1754494309425354, -0.12573257088661194, -0.4186991751194, 0.3544655442237854, 0.08285658061504364, -0.12619072198867798, -0.17398133873939514, 0.014939777553081512, 0.16692760586738586, 0.15365973114967346, 0.17353221774101257, 0.3419995903968811, 0.3732154369354248, 0.020771384239196777, 0.03831460326910019, -0.10135504603385925, 0.2289690375328064, -0.050912465900182724, 0.29982754588127136, -0.059595610946416855, 0.08355710655450821, -0.2850930690765381, 0.12634870409965515, 0.1160128265619278, -0.11851021647453308, 0.020142249763011932, -0.23625269532203674, -0.3548971116542816, -0.009558569639921188, 0.018450066447257996, 0.31269338726997375, 0.07296621799468994, 0.41841214895248413, 0.11208215355873108, -0.05073252320289612, -0.18414661288261414, -0.15812353789806366, -0.04991178214550018, -0.3088551163673401, -0.2946709096431732, -0.43859148025512695, 0.19663873314857483, -0.2502131462097168, 0.15360204875469208, -0.20084638893604279, -0.28923389315605164, 0.2915646433830261, 0.003415016457438469, -0.4269261956214905, 0.3622169494628906, -0.4096306562423706, -0.10006828606128693, -0.15139172971248627, 0.04575971141457558, -0.11853829771280289, -0.453340083360672, 0.16047313809394836, -0.15283432602882385 ]
https://github.com/huggingface/datasets/issues/1992
`datasets.map` multi processing much slower than single processing
any updates on this issue? I'm using `datasets=2.12.0`. Adding `num_proc` to the mapping function makes it at least 5x slower than using a single process.
Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png)
25
`datasets.map` multi processing much slower than single processing Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png) any updates on this issue? I'm using `datasets=2.12.0`. Adding `num_proc` to the mapping function makes it at least 5x slower than using a single process.
[ -0.4631060063838959, -0.27937936782836914, -0.09238715469837189, 0.32129305601119995, -0.10409203171730042, -0.036470986902713776, 0.32015886902809143, 0.11792917549610138, 0.03554185852408409, 0.025724336504936218, 0.07359892129898071, 0.43725132942199707, 0.14374250173568726, 0.18166330456733704, -0.1532183438539505, 0.05983063206076622, 0.1967974752187729, -0.0393500030040741, 0.21217338740825653, 0.021741949021816254, -0.1842081993818283, 0.1481236219406128, -0.4803711175918579, -0.00978504866361618, -0.43334123492240906, -0.14667849242687225, 0.12822502851486206, 0.12862180173397064, -0.08452579379081726, -0.2570115923881531, -0.24458150565624237, 0.1488047093153, -0.07247443497180939, 0.5591901540756226, -0.00012390517804306, -0.18634721636772156, 0.014899395406246185, 0.2726862132549286, 0.06676878035068512, 0.048612989485263824, -0.14198793470859528, -0.272250771522522, -0.06895793229341507, -0.08294585347175598, 0.13312214612960815, 0.22235596179962158, -0.0157731082290411, -0.44916558265686035, -0.00885888934135437, 0.13471777737140656, 0.04897205904126167, 0.354360967874527, -0.3224234879016876, 0.023277292028069496, -0.39122533798217773, 0.15662993490695953, -0.16824883222579956, 0.04285634309053421, 0.29855573177337646, -0.16049574315547943, -0.08614712208509445, 0.2682355046272278, -0.0826396495103836, 0.2504141628742218, 0.020915184170007706, -0.058016903698444366, 0.10469751060009003, -0.48210129141807556, 0.20906326174736023, 0.30035656690597534, 0.01280800998210907, -0.08221360296010971, -0.1683846265077591, -0.2703187167644501, -0.3180426359176636, -0.1616460680961609, 0.19529220461845398, 0.1372385323047638, 0.12367622554302216, -0.018616672605276108, -0.5205281972885132, 0.10929682850837708, 0.3225482702255249, -0.08042389154434204, -0.165262371301651, -0.018299758434295654, 0.1314113438129425, 0.32749632000923157, 0.3451976180076599, 0.10557036846876144, -0.06360189616680145, -0.19849519431591034, 0.3466481864452362, 0.2030349224805832, -0.7464969158172607, -0.05229848995804787, 0.25167787075042725, -0.0908949002623558, -0.11705593764781952, -0.16214360296726227, -0.14960110187530518, 0.3792581260204315, -0.3276325464248657, 0.12383285164833069, 0.29071348905563354, -0.08129298686981201, 0.08840921521186829, 0.12721958756446838, -0.0033491887152194977, -0.1675877869129181, -0.32698214054107666, 0.07037308812141418, 0.09546499699354172, -0.3269699513912201, -0.05106210708618164, 0.10697470605373383, -0.29270005226135254, -0.11314745247364044, -0.1975347399711609, 0.06846959888935089, -0.1603246033191681, -0.06928999722003937, 0.13822826743125916, 0.1054752767086029, 0.03407008945941925, 0.8057453632354736, -0.30854958295822144, 0.08552354574203491, -0.5068451166152954, -0.5502245426177979, -0.006676972843706608, -0.12894989550113678, -0.41155070066452026, 0.23806563019752502, 0.12928396463394165, -0.0516219399869442, 0.14026713371276855, 0.2684182822704315, 0.12638840079307556, -0.19334277510643005, 0.31377968192100525, -0.5508015751838684, 0.17359831929206848, 0.08024190366268158, 0.12066730856895447, 0.5513327121734619, -0.1271541565656662, 0.27248018980026245, -0.13773806393146515, 0.2654463052749634, -0.48486220836639404, -0.26085609197616577, 0.16698655486106873, -0.057055722922086716, 0.0980089008808136, 0.12972679734230042, -0.43730053305625916, 0.5124057531356812, 0.32493969798088074, -0.2532837986946106, -0.20514807105064392, -0.24408374726772308, -0.6769561767578125, -0.1852220594882965, -0.0738549754023552, 0.1390766203403473, -0.3229396343231201, 0.21920561790466309, -0.2793234586715698, 0.1336711347103119, 0.4688251316547394, 0.617296040058136, -0.17474980652332306, 0.33618244528770447, 0.03592551499605179, 0.18852351605892181, -0.012896336615085602, -0.06947243213653564, -0.40887999534606934, 0.5134081244468689, -0.14427658915519714, -0.034551963210105896, -0.21874141693115234, 0.14467941224575043, 0.2239491194486618, -0.08788537234067917, 0.33315813541412354, 0.24209488928318024, 0.01246757060289383, 0.37312987446784973, -0.20142222940921783, -0.10485176742076874, 0.18860596418380737, 0.04831739887595177, -0.06622380018234253, -0.06670951098203659, 0.020592115819454193, -0.2403540164232254, 0.287125825881958, 0.005162876099348068, 0.02686421573162079, 0.43203139305114746, -0.3610595762729645, -0.14519713819026947, -0.1805400252342224, -0.28253453969955444, -0.09857556968927383, 0.35068944096565247, -0.022011268883943558, 0.052899718284606934, 0.36035460233688354, 0.05633074790239334, 0.20483091473579407, 0.15430369973182678, 0.025584988296031952, -0.10055232048034668, -0.13499441742897034, -0.07530556619167328, -0.1731996089220047, -0.1985817551612854, -0.04610598087310791, 0.47814539074897766, 0.20668117702007294, -0.0990615263581276, -0.036945492029190063, -0.16089724004268646, 0.0672827661037445, 0.03085126355290413, -0.20866824686527252, -0.0484902560710907, 0.07641272991895676, 0.07119319587945938, -0.04490603506565094, 0.2517284154891968, 0.469748318195343, -0.10312138497829437, 0.12593728303909302, 0.10571832954883575, 0.41600191593170166, -0.0366448312997818, 0.014384545385837555, -0.17120826244354248, 0.10645313560962677, -0.2135939598083496, -0.05400724709033966, 0.3144289553165436, 0.0782550573348999, 0.436402827501297, 0.02816261351108551, -0.15473026037216187, -0.0008422341197729111, 0.3096673786640167, 0.1406204104423523, 0.04154396057128906, 0.3251098692417145, 0.35672447085380554, 0.24085034430027008, 0.3152469992637634, -0.15808415412902832, 0.3210676312446594, 0.6061282157897949, 0.07135486602783203, -0.34818941354751587, 0.04845660552382469, -0.15578654408454895, -0.3433760702610016, 0.0693611353635788, -0.14585398137569427, 0.5620859265327454, 0.02478685975074768, 0.2174762487411499, -0.020307963714003563, -0.15698733925819397, -0.051156893372535706, -0.028687410056591034, 0.09956609457731247, 0.21468187868595123, -0.09078236669301987, 0.2987828552722931, -0.013686872087419033, -0.07261389493942261, -0.30445680022239685, 0.31418943405151367, 0.2446703463792801, -0.22715257108211517, 0.08108259737491608, -0.3018348217010498, 0.1843969225883484, 0.16821062564849854, -0.11011429131031036, -0.27556249499320984, -0.24030393362045288, -0.15426205098628998, -0.0718265175819397, 0.22040259838104248, -0.0459897443652153, 0.2135314792394638, -0.14801530539989471, -0.13265903294086456, -0.03937917202711105, 0.020778901875019073, -0.1148085966706276, -0.126344233751297, -0.02643532305955887, 0.2654842734336853, 0.22993557155132294, 0.05123709887266159, -0.043326519429683685, -0.27342748641967773, -0.06361331790685654, -0.20360919833183289, -0.1068369448184967, 0.16415473818778992, 0.08116555213928223, -0.1869964301586151, -0.07590149343013763, -0.21868841350078583, 0.12310752272605896, 0.1700165718793869, -0.2801903784275055, -0.1333310455083847, 0.04248736426234245, -0.10495995730161667, -0.24122469127178192, 0.032912109047174454, -0.12744104862213135, -0.08799822628498077, -0.09600590169429779, 0.2435895949602127, -0.1223561018705368, 0.3670313358306885, -0.20050548017024994, 0.08688199520111084, -0.05740460008382797, -0.11107169091701508, 0.013874481432139874, -0.3268435001373291, -0.31507959961891174, 0.014209326356649399, 0.007764400448650122, -0.18122853338718414, -0.16436350345611572, 0.10212820768356323, 0.1257959008216858, 0.19591853022575378, -0.12738919258117676, 0.17838069796562195, -0.40270158648490906, 0.1998233199119568, 0.06047160550951958, 0.05611063912510872, 0.46802064776420593, 0.0738048106431961, 0.058486081659793854, 0.014518707990646362, -0.4673171937465668, -0.10567954927682877, 0.3144766688346863, 0.05633968487381935, 0.02380458638072014, 0.34209778904914856, 0.051504168659448624, 0.6252854466438293, 0.5261695384979248, -0.1981600821018219, 0.17383788526058197, -0.01710676960647106, -0.14659444987773895, -0.38275468349456787, -0.20903384685516357, 0.1373051255941391, -0.22646477818489075, 0.16764803230762482, 0.4163014888763428, 0.007941652089357376, -0.4495290517807007, -0.016071833670139313, 0.2564438581466675, -0.20559903979301453, -0.009608827531337738, 0.13615766167640686, -0.09363989531993866, 0.2048882246017456, 0.2558129131793976, -0.16532590985298157, -0.36460283398628235, -0.03559156879782677, -0.10037942230701447, -0.13340213894844055, -0.10826640576124191, -0.28189021348953247, -0.49346956610679626, -0.06300900876522064, -0.48063379526138306, 0.2563909888267517, 0.05514010787010193, 0.3214232325553894, -0.04788123071193695, 0.10669649392366409, 0.2942497730255127, -0.004527468699961901, 0.5314101576805115, -0.43208879232406616, -0.14537110924720764, 0.12815158069133759, -0.36779189109802246, -0.3208787441253662, 0.11061280965805054, -0.16958370804786682, 0.3342895805835724, 0.5215179324150085, 0.49993452429771423, -0.06607523560523987, -0.19706293940544128, -0.021441061049699783, 0.09069214761257172, 0.17605024576187134, -0.23652257025241852, -0.34115052223205566, 0.11339592188596725, -0.14279253780841827, 0.11571285873651505, -0.03846266493201256, 0.1393440067768097, 0.1482529193162918, -0.11259771883487701, 0.053517043590545654, 0.12524092197418213, 0.3037247061729431, 0.15923067927360535, 0.10188968479633331, 0.09709463268518448, 0.25795531272888184, 0.23682112991809845, -0.06457576155662537, 0.08792918175458908, 0.28772416710853577, -0.13008280098438263, -0.09757977724075317, 0.24771082401275635, 0.02515406161546707, 0.3430820107460022, 0.3456772565841675, 0.14937584102153778, 0.03111780434846878, 0.11782656610012054, 0.299052894115448, -0.1914905607700348, 0.27889779210090637, 0.3639029860496521, 0.40748330950737, -0.4823675751686096, -0.5084879398345947, -0.036644287407398224, 0.4794467091560364, -0.16893696784973145, 0.26346391439437866, -0.7910433411598206, 0.09308116883039474, 0.016374321654438972, 0.08874988555908203, 0.7743767499923706, -0.40912991762161255, 0.04833856225013733, -0.28974324464797974, 0.20092399418354034, -0.0006385478191077709, -0.5550944805145264, 0.13491860032081604, -0.15312695503234863, -0.3420260548591614, 0.02150660939514637, -0.09782682359218597, 0.20899507403373718, 0.48656660318374634, 0.16110368072986603, 0.30590856075286865, 0.3465704321861267, 0.06781341880559921, -0.013029016554355621, 0.3292900323867798, 0.4864005744457245, -0.32326391339302063, 0.14310753345489502, 0.021047938615083694, 0.186497762799263, -0.24895110726356506, 0.02168000489473343, 0.12130910903215408, -0.03869953006505966, 0.03753715008497238, -0.32714253664016724, -0.19658330082893372, -0.3825089633464813, 0.1982719898223877, -0.01423325389623642, 0.2970656752586365, 0.42846763134002686, 0.29285410046577454, -0.06013213098049164, 0.08030708879232407, -0.030277526006102562, 0.03166256099939346, 0.2557965815067291, 0.2783120274543762, 0.36747539043426514, -0.4674142301082611, -0.019151782616972923, -0.09219275414943695, -0.23718023300170898, -0.24614307284355164, -0.164997860789299, -0.0853985846042633, -0.12094481289386749, 0.4570506811141968, 0.17744097113609314, 0.1722303330898285, -0.19465842843055725, 0.23952694237232208, 0.05266362801194191, -0.14478449523448944, -0.02048875391483307, 0.0667794793844223, 0.04615022987127304, 0.675079345703125, -0.2679045796394348, -0.5255082845687866, -0.010151185095310211, 0.40573620796203613, 0.2579485774040222, -0.09874218702316284, 0.04464032128453255, 0.19299548864364624, -0.2902737259864807, -0.14612121880054474, 0.16300103068351746, -0.13973915576934814, -0.10644841194152832, 0.11605489253997803, 0.005952102597802877, -0.2320064902305603, 0.26799696683883667, -0.14599640667438507, -0.17842145264148712, -0.07092543691396713, -0.1519744098186493, -0.2479739636182785, -0.25916698575019836, -0.2044191211462021, -0.36933633685112, -0.21441714465618134, 0.2295302450656891, 0.023907817900180817, 0.10110779106616974, 0.44601067900657654, -0.1272546797990799, 0.03776630014181137, 0.0946689322590828, 0.21032948791980743, -0.04622600972652435, -0.21774035692214966, 0.0523742251098156, -0.034746237099170685, -0.07564183324575424, 0.13068006932735443, -0.1126655638217926, -0.12547481060028076, -0.0033405330032110214, 0.19361314177513123, -0.023170676082372665, -0.2369125634431839, 0.3401188850402832, -0.07176586240530014, -0.20193637907505035, -0.42298397421836853, -0.0015975311398506165, 0.08448177576065063, -0.04242481291294098, -0.1069817990064621, 0.32546985149383545, -0.26665031909942627, -0.2318428009748459, 0.4398973882198334, -0.19110554456710815, -0.03799770772457123, -0.0029257703572511673, 0.31725528836250305, 0.42813390493392944, -0.0823388546705246, -0.08908459544181824, 0.05668777599930763, 0.27888578176498413, 0.07445451617240906, 0.11464118957519531, -0.11526954174041748, 0.18846850097179413, 0.26755180954933167, 0.31853973865509033, 0.13707411289215088, 0.1059703677892685, -0.23267242312431335, 0.02371268905699253, -0.009915074333548546, -0.2258768528699875, -0.19414310157299042, 0.5582789182662964, 0.01596795581281185, 0.15708383917808533, 0.052536480128765106, 0.34751415252685547, 0.19598600268363953, 0.0193348191678524, -0.1209341362118721, 0.09856085479259491, -0.35165536403656006, 0.022992944344878197, 0.1617199182510376, 0.28693217039108276, 0.2679826319217682, 0.48439687490463257, 0.11176402866840363, 0.0014397799968719482, 0.5313673615455627, 0.26592645049095154, 0.296902596950531, 0.512801468372345, 0.24580103158950806, -0.060203917324543, -0.35208258032798767, 0.18827703595161438, 0.5545795559883118, -0.35153886675834656, -0.05300471931695938, -0.05336269736289978, 0.21280702948570251, -0.28296855092048645, -0.33126986026763916, -0.20432718098163605, 0.3769914209842682, -0.15475353598594666, -0.3054969608783722, 0.183238685131073, -0.0671498253941536, -0.039130039513111115, 0.18297319114208221, -0.2489110231399536, 0.12631213665008545, 0.8070129156112671, 0.12130679935216904, 0.04595748707652092, -0.40928083658218384, -0.2958022654056549, -0.1790524125099182, 0.16791962087154388, -0.1345853954553604, 0.20269566774368286, -0.3540070652961731, 0.035524897277355194, -0.00242600217461586, 0.262777715921402, 0.40421590209007263, 0.28238144516944885, -0.15473517775535583, 0.08551941066980362, -0.029643554240465164, 0.15976808965206146, 0.0035818107426166534, 0.19317106902599335, 0.011578753590583801, 0.2034623622894287, 0.20279665291309357, -0.11121664941310883, -0.08212260901927948, -0.46046173572540283, 0.06784504652023315, 0.35253390669822693, -0.12221698462963104, 0.20176556706428528, -0.31239816546440125, -0.16469693183898926, 0.035096507519483566, 0.2965366542339325, -0.24139666557312012, -0.09991700202226639, 0.481756329536438, -0.5395690202713013, 0.09032134711742401, -0.12533995509147644, 0.024174045771360397, -0.07080499827861786, 0.5681130886077881, 0.26291629672050476, 0.013359364122152328, -0.3725038170814514, -0.13435587286949158, -0.5906773209571838, -0.04928462952375412, -0.2898159921169281, 0.2739552855491638, 0.05318550392985344, 0.2757231891155243, 0.06689085811376572, 0.1401701271533966, 0.3544117212295532, -0.0525321327149868, -0.055903367698192596, 0.3612813949584961, -0.3240126967430115, 0.5110124945640564, -0.2236686497926712, -0.1659650206565857, -0.09112410992383957, -0.4334961473941803, 0.3744522035121918, 0.03306125849485397, -0.15146970748901367, -0.18289917707443237, -0.01653575897216797, 0.12721218168735504, 0.19426584243774414, 0.21456749737262726, 0.3607584834098816, 0.37278077006340027, 0.007175855338573456, -0.006277341395616531, -0.1101086437702179, 0.19247828423976898, -0.03510059788823128, 0.2998325228691101, -0.07847683131694794, 0.06557878106832504, -0.29833465814590454, 0.18626831471920013, 0.12054944038391113, -0.1224675104022026, -0.0007813014090061188, -0.17379771173000336, -0.3360218405723572, -0.054634347558021545, -0.019810307770967484, 0.321476548910141, 0.031386177986860275, 0.37564125657081604, 0.14187869429588318, -0.09746675938367844, -0.17959319055080414, -0.08932503312826157, 0.0005114972591400146, -0.2418535202741623, -0.35303154587745667, -0.45192834734916687, 0.21899785101413727, -0.2767171263694763, 0.1234150305390358, -0.19886234402656555, -0.32082465291023254, 0.2931225895881653, -0.03169255331158638, -0.44992902874946594, 0.34317365288734436, -0.4311984181404114, -0.1315288245677948, -0.15839511156082153, 0.051778361201286316, -0.08369612693786621, -0.4477474093437195, 0.173294797539711, -0.13639837503433228 ]
https://github.com/huggingface/datasets/issues/1992
`datasets.map` multi processing much slower than single processing
What kind of function are you passing to `map` ? How many CPUs do you have and what did you set for `num_proc` ?
Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png)
24
`datasets.map` multi processing much slower than single processing Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png) What kind of function are you passing to `map` ? How many CPUs do you have and what did you set for `num_proc` ?
[ -0.40575528144836426, -0.32185399532318115, -0.09277456998825073, 0.3528636693954468, -0.07814936339855194, 0.01934124529361725, 0.3336438834667206, 0.10650396347045898, 0.06625796854496002, -0.010470911860466003, 0.0814124122262001, 0.430539608001709, 0.17625194787979126, 0.18756496906280518, -0.16345708072185516, 0.034993983805179596, 0.20336481928825378, -0.0331377238035202, 0.21761642396450043, -0.012940466403961182, -0.16889601945877075, 0.13865618407726288, -0.5031325817108154, 0.012964829802513123, -0.43575549125671387, -0.16580529510974884, 0.11623947322368622, 0.1468110978603363, -0.1487027406692505, -0.21151691675186157, -0.25072914361953735, 0.1645272672176361, -0.08403701335191727, 0.5803025364875793, -0.00012175431766081601, -0.17928645014762878, 0.009871173650026321, 0.2575540542602539, 0.08032238483428955, 0.02898383140563965, -0.11719115078449249, -0.2792940139770508, -0.06619228422641754, -0.08866429328918457, 0.10607335716485977, 0.2120395302772522, -0.07260435819625854, -0.4566384553909302, 0.050421059131622314, 0.10052669048309326, 0.06897230446338654, 0.3397928774356842, -0.29735249280929565, 0.02896377444267273, -0.36789003014564514, 0.1637018620967865, -0.16120241582393646, 0.030808765441179276, 0.2666094899177551, -0.16497279703617096, -0.11042086035013199, 0.33019763231277466, -0.08382422477006912, 0.2871478796005249, 0.001865103840827942, -0.08077821880578995, 0.05237237364053726, -0.4861766993999481, 0.18504545092582703, 0.34814563393592834, 0.03517812862992287, -0.0767597034573555, -0.15326039493083954, -0.23556917905807495, -0.31761202216148376, -0.11633317917585373, 0.19866350293159485, 0.11010879278182983, 0.15543800592422485, 0.009629826992750168, -0.5390815138816833, 0.1392020285129547, 0.34892842173576355, -0.06269320845603943, -0.12977930903434753, 0.010247141122817993, 0.09879826009273529, 0.31460267305374146, 0.3392946124076843, 0.112216517329216, -0.060239288955926895, -0.2260822355747223, 0.3165932893753052, 0.22525057196617126, -0.7924758195877075, -0.05482238158583641, 0.20863190293312073, -0.09849979728460312, -0.07669184356927872, -0.158494770526886, -0.12862840294837952, 0.36604365706443787, -0.33740732073783875, 0.09591538459062576, 0.2912469804286957, -0.09137304127216339, 0.019206929951906204, 0.10826433449983597, -0.04093290865421295, -0.19007284939289093, -0.33747777342796326, 0.04831589385867119, 0.06863682717084885, -0.3374655246734619, -0.038835976272821426, 0.11667077243328094, -0.28174102306365967, -0.09929114580154419, -0.17634640634059906, 0.03753349557518959, -0.22924083471298218, -0.07875092327594757, 0.16330291330814362, 0.10351796448230743, -0.026676755398511887, 0.7955238819122314, -0.2663019895553589, 0.09983617812395096, -0.48406878113746643, -0.5733983516693115, -0.02652098797261715, -0.13116049766540527, -0.3886556029319763, 0.24169078469276428, 0.12001730501651764, -0.007264154031872749, 0.14963072538375854, 0.31896504759788513, 0.08332499116659164, -0.22662615776062012, 0.34207507967948914, -0.5364115238189697, 0.18438982963562012, 0.07009447365999222, 0.17139148712158203, 0.5643627047538757, -0.11672103404998779, 0.3120155930519104, -0.13382069766521454, 0.225431889295578, -0.5433441996574402, -0.259800523519516, 0.157196506857872, -0.030907049775123596, 0.10863082110881805, 0.10375326126813889, -0.45942315459251404, 0.5003890991210938, 0.3154749572277069, -0.20563781261444092, -0.17167127132415771, -0.19575245678424835, -0.6563147306442261, -0.16751323640346527, -0.03744754567742348, 0.16605797410011292, -0.3057042062282562, 0.23786377906799316, -0.3435862362384796, 0.15389859676361084, 0.4363234341144562, 0.6105100512504578, -0.18037396669387817, 0.3938620388507843, 0.010008750483393669, 0.20379261672496796, 0.05035518854856491, -0.06408126652240753, -0.39511048793792725, 0.5262959003448486, -0.172124981880188, -0.014517553150653839, -0.21245437860488892, 0.15057513117790222, 0.22385752201080322, -0.06044425442814827, 0.33112066984176636, 0.31097298860549927, 0.03427174314856529, 0.3743501305580139, -0.21410192549228668, -0.09845767170190811, 0.17141269147396088, 0.06482139229774475, -0.11342479288578033, -0.09501027315855026, -0.024035751819610596, -0.27366021275520325, 0.29719841480255127, 0.0010715760290622711, 0.02368796616792679, 0.44683128595352173, -0.3717479705810547, -0.13901416957378387, -0.15597842633724213, -0.24790573120117188, -0.08004016429185867, 0.3597460091114044, -0.010964861139655113, 0.04285810887813568, 0.4218512773513794, 0.032210953533649445, 0.16495224833488464, 0.1202063038945198, -0.06523358821868896, -0.07801280915737152, -0.0979684442281723, -0.07814246416091919, -0.15580257773399353, -0.1802150011062622, -0.02373351715505123, 0.4298552870750427, 0.20707783102989197, -0.1146300658583641, -0.025128789246082306, -0.14952386915683746, 0.06707610189914703, 0.057319559156894684, -0.1966666281223297, -0.059550799429416656, 0.08782768249511719, 0.08009477704763412, -0.08076674491167068, 0.2678200900554657, 0.48279547691345215, -0.07253856956958771, 0.16809815168380737, 0.10838790237903595, 0.3467795252799988, -0.06157052516937256, 0.03628293052315712, -0.15265974402427673, 0.1000831127166748, -0.23873892426490784, -0.010535135865211487, 0.3201768398284912, 0.11870753765106201, 0.43289411067962646, 0.004266951233148575, -0.12881334125995636, -0.007185911759734154, 0.29971426725387573, 0.14761152863502502, 0.04644729197025299, 0.35403379797935486, 0.33487769961357117, 0.2556379437446594, 0.3212602734565735, -0.1448904573917389, 0.3225628733634949, 0.6274805068969727, 0.04307084158062935, -0.32859334349632263, 0.0508914589881897, -0.18038851022720337, -0.36505749821662903, 0.0154205821454525, -0.1751355677843094, 0.5347017645835876, 0.029840417206287384, 0.2110193371772766, -0.03309077024459839, -0.12273295968770981, -0.05897749960422516, -0.02431134134531021, 0.08934719860553741, 0.22317297756671906, -0.12903454899787903, 0.27960312366485596, -0.010540754534304142, -0.06397850066423416, -0.2633359134197235, 0.3202177882194519, 0.25521233677864075, -0.2615378797054291, 0.117258720099926, -0.3151395320892334, 0.15640318393707275, 0.16963191330432892, -0.12785175442695618, -0.2941572368144989, -0.21520280838012695, -0.16103918850421906, -0.0819244533777237, 0.2342439889907837, -0.0428931787610054, 0.26853224635124207, -0.1364973932504654, -0.08131177723407745, -0.06215907633304596, 0.005540125072002411, -0.1406274139881134, -0.1820695996284485, -0.004209863021969795, 0.290459543466568, 0.2416667640209198, 0.06322330236434937, -0.05847814679145813, -0.24771316349506378, -0.06220099329948425, -0.2032628357410431, -0.1166076511144638, 0.1326291263103485, 0.07231524586677551, -0.18398728966712952, -0.038102880120277405, -0.23321665823459625, 0.15466473996639252, 0.18726839125156403, -0.24594086408615112, -0.17502954602241516, 0.07132730633020401, -0.11518596857786179, -0.2442406862974167, 0.05681319162249565, -0.138167142868042, -0.08246569335460663, -0.10294327139854431, 0.2364359349012375, -0.16099238395690918, 0.32737672328948975, -0.22750341892242432, 0.08936227113008499, -0.0641651377081871, -0.118947833776474, 0.04197705537080765, -0.3438558280467987, -0.3620508909225464, 0.03008597157895565, -0.022116608917713165, -0.1925748884677887, -0.13180340826511383, 0.08806298673152924, 0.16364853084087372, 0.1520836353302002, -0.16737112402915955, 0.16937488317489624, -0.38660502433776855, 0.11594179272651672, 0.05037678778171539, 0.05923754349350929, 0.45401203632354736, 0.030723169445991516, 0.05998346954584122, 0.018153801560401917, -0.4473261535167694, -0.08499752730131149, 0.29191461205482483, 0.06271269917488098, 0.0071592554450035095, 0.3513890206813812, 0.03621545061469078, 0.6544125080108643, 0.5142989158630371, -0.16717128455638885, 0.17530709505081177, -0.004799222573637962, -0.16756360232830048, -0.38487115502357483, -0.22092705965042114, 0.11938252300024033, -0.23590043187141418, 0.17809800803661346, 0.4323548674583435, 0.0031289486214518547, -0.4339539408683777, -0.03617802634835243, 0.22269469499588013, -0.24243798851966858, -0.01771300658583641, 0.15016941726207733, -0.1486891359090805, 0.1848071664571762, 0.23615407943725586, -0.1750555783510208, -0.3435821831226349, -0.04468534514307976, -0.05558024346828461, -0.09739702939987183, -0.11708050221204758, -0.23220284283161163, -0.4803028404712677, -0.034484732896089554, -0.3718947768211365, 0.2605673372745514, 0.035930946469306946, 0.30151575803756714, -0.024670615792274475, 0.11015737801790237, 0.327153742313385, 0.023534486070275307, 0.5366823673248291, -0.4129910171031952, -0.1665738970041275, 0.1328534185886383, -0.3925250470638275, -0.2957620322704315, 0.08843769133090973, -0.17068207263946533, 0.2978288531303406, 0.5768486857414246, 0.49137136340141296, -0.03946252912282944, -0.21227218210697174, -0.028686076402664185, 0.11563251912593842, 0.15140365064144135, -0.26685431599617004, -0.3615158796310425, 0.11231710761785507, -0.14874789118766785, 0.13678652048110962, -0.03182927519083023, 0.15044957399368286, 0.14885199069976807, -0.14878202974796295, 0.01945924386382103, 0.10909102112054825, 0.25370723009109497, 0.1883966624736786, 0.13411837816238403, 0.07078701257705688, 0.28145939111709595, 0.2665870785713196, -0.07637718319892883, 0.043519943952560425, 0.31598249077796936, -0.13277362287044525, -0.11004699766635895, 0.20969867706298828, 0.021966848522424698, 0.3331295847892761, 0.31462910771369934, 0.1444200575351715, 0.0550813302397728, 0.17654699087142944, 0.27070146799087524, -0.2205347716808319, 0.2817351222038269, 0.4196581542491913, 0.37210455536842346, -0.5100393295288086, -0.5413252115249634, -0.02505934238433838, 0.4583127796649933, -0.1491236537694931, 0.28820011019706726, -0.7757884860038757, 0.0840538963675499, 0.04591826722025871, 0.11989977210760117, 0.8105124235153198, -0.42858678102493286, 0.03335907310247421, -0.3121586740016937, 0.24410121142864227, -0.030725527554750443, -0.5905705690383911, 0.10646644979715347, -0.17690865695476532, -0.3398328125476837, 0.013319982215762138, -0.11371452361345291, 0.1818588376045227, 0.4940420389175415, 0.14032214879989624, 0.28606200218200684, 0.3327251076698303, 0.08835316449403763, -0.037803083658218384, 0.37366169691085815, 0.5206851959228516, -0.33667102456092834, 0.16553299129009247, 0.0453505739569664, 0.19322769343852997, -0.19165897369384766, 0.029586076736450195, 0.07140138745307922, -0.0474187508225441, 0.028996147215366364, -0.3274987041950226, -0.23010334372520447, -0.42222949862480164, 0.18654923141002655, -0.06638595461845398, 0.2822549343109131, 0.4067229926586151, 0.23773813247680664, -0.037194810807704926, 0.12127326428890228, -0.013136180117726326, 0.05827596038579941, 0.30551382899284363, 0.24080607295036316, 0.363391250371933, -0.4924754500389099, -0.020001256838440895, -0.11067843437194824, -0.24414125084877014, -0.2274419367313385, -0.13380341231822968, -0.10835196822881699, -0.13443009555339813, 0.42877769470214844, 0.1729687750339508, 0.16492408514022827, -0.21643541753292084, 0.2427481859922409, 0.11647331714630127, -0.11750493943691254, 0.0007169172167778015, 0.11262781172990799, 0.020262204110622406, 0.6604913473129272, -0.2683282792568207, -0.5007888078689575, -0.03386770561337471, 0.3703019917011261, 0.2502913773059845, -0.11114553362131119, 0.0551920011639595, 0.20397596061229706, -0.27351635694503784, -0.14951260387897491, 0.1711272895336151, -0.10596305876970291, -0.10288572311401367, 0.09409599006175995, 0.025112280622124672, -0.2084289789199829, 0.2569742798805237, -0.10938310623168945, -0.14573784172534943, -0.058172620832920074, -0.17712000012397766, -0.2814045250415802, -0.2455417662858963, -0.2101907879114151, -0.36260515451431274, -0.21584995090961456, 0.2266615927219391, 0.026496130973100662, 0.13761495053768158, 0.46537846326828003, -0.14629274606704712, 0.02197255939245224, 0.0723581612110138, 0.1922178566455841, -0.025001004338264465, -0.235014408826828, 0.0664830282330513, -0.01158318854868412, -0.05968112498521805, 0.08314169943332672, -0.10401429980993271, -0.15569567680358887, -0.02740098536014557, 0.18230514228343964, -0.025696229189634323, -0.23560096323490143, 0.3254345953464508, -0.13921889662742615, -0.19367994368076324, -0.4241236448287964, -0.08067762106657028, 0.05301234871149063, 0.006893083453178406, -0.10409341752529144, 0.2718573808670044, -0.30026230216026306, -0.27579641342163086, 0.424564003944397, -0.20057499408721924, -0.09079284965991974, 0.029693320393562317, 0.26793140172958374, 0.47549793124198914, -0.09558264166116714, -0.08262822031974792, 0.04027031734585762, 0.26856380701065063, 0.06064075604081154, 0.11613115668296814, -0.09716024994850159, 0.19463998079299927, 0.2760535180568695, 0.3014965057373047, 0.1431146264076233, 0.12019799649715424, -0.24755606055259705, 0.03746941685676575, 0.015000998973846436, -0.2426559180021286, -0.1768544614315033, 0.5455487370491028, 0.011966850608587265, 0.13661175966262817, 0.059243328869342804, 0.3187080919742584, 0.2462504506111145, 0.00623728334903717, -0.10213345289230347, 0.0636310949921608, -0.3289160132408142, 0.04786890000104904, 0.14234066009521484, 0.2602660655975342, 0.2560335099697113, 0.45530328154563904, 0.1392657607793808, 0.009783104062080383, 0.4847784638404846, 0.2805030345916748, 0.26944655179977417, 0.49003875255584717, 0.2613223195075989, -0.04613228887319565, -0.36048033833503723, 0.22667382657527924, 0.524058997631073, -0.355498731136322, -0.0723624899983406, -0.049159497022628784, 0.20633381605148315, -0.25015369057655334, -0.37074747681617737, -0.24515597522258759, 0.4013228416442871, -0.16671085357666016, -0.250407338142395, 0.19059719145298004, -0.055001985281705856, -0.03681592270731926, 0.1574648916721344, -0.19906306266784668, 0.13167141377925873, 0.7542568445205688, 0.12547872960567474, 0.03728875145316124, -0.3834441900253296, -0.32719334959983826, -0.14366072416305542, 0.15261656045913696, -0.15198762714862823, 0.20393389463424683, -0.3353726267814636, -0.01951078325510025, -0.00001099705696105957, 0.2811541259288788, 0.37603744864463806, 0.2900129556655884, -0.1674971580505371, 0.08929857611656189, -0.009067805483937263, 0.15012496709823608, 0.00661129504442215, 0.18979910016059875, 0.014895156025886536, 0.16519397497177124, 0.19246557354927063, -0.09867125749588013, -0.09784913063049316, -0.44982093572616577, 0.021220240741968155, 0.36120909452438354, -0.16359896957874298, 0.21320772171020508, -0.31195929646492004, -0.12996943295001984, -0.01414855569601059, 0.299476683139801, -0.28172701597213745, -0.08619269728660583, 0.49493205547332764, -0.4949781596660614, 0.06328487396240234, -0.1698642373085022, 0.03299979493021965, -0.058243680745363235, 0.5678465366363525, 0.32141444087028503, 0.021816369146108627, -0.40726327896118164, -0.12879352271556854, -0.6239520311355591, -0.05282986909151077, -0.32811060547828674, 0.26416292786598206, 0.06901338696479797, 0.2831359803676605, 0.07235393673181534, 0.16667422652244568, 0.39101141691207886, -0.08066776394844055, -0.09448276460170746, 0.35438621044158936, -0.3041732609272003, 0.48219433426856995, -0.26244986057281494, -0.1834861934185028, -0.08618123829364777, -0.4251328706741333, 0.3766264319419861, 0.07178407907485962, -0.1344539225101471, -0.18271870911121368, -0.022229839116334915, 0.16131682693958282, 0.14347168803215027, 0.20493163168430328, 0.35469186305999756, 0.34381741285324097, 0.04010878503322601, 0.02671067975461483, -0.11449213325977325, 0.22695879638195038, -0.05496436730027199, 0.2949264645576477, -0.04717664048075676, 0.06079993396997452, -0.2917058765888214, 0.1737319976091385, 0.09729866683483124, -0.1015218123793602, 0.030639328062534332, -0.2403692901134491, -0.33087390661239624, -0.0456937700510025, -0.03729873150587082, 0.31695106625556946, 0.08921164274215698, 0.3865976631641388, 0.13089947402477264, -0.0781034380197525, -0.18996752798557281, -0.08119677007198334, -0.0067909955978393555, -0.25034746527671814, -0.31441256403923035, -0.43865451216697693, 0.22794055938720703, -0.26012447476387024, 0.15149101614952087, -0.23185616731643677, -0.31406527757644653, 0.30718353390693665, -0.013415064662694931, -0.38922956585884094, 0.3655196726322174, -0.3912145793437958, -0.062287114560604095, -0.14104902744293213, 0.04184475168585777, -0.09152071177959442, -0.4365159571170807, 0.19022835791110992, -0.12644410133361816 ]
https://github.com/huggingface/datasets/issues/1990
OSError: Memory mapping file failed: Cannot allocate memory
Do you think this is trying to bring the dataset into memory and if I can avoid it to save on memory so it only brings a batch into memory? @lhoestq thank you
Hi, I am trying to run a code with a wikipedia dataset, here is the command to reproduce the error. You can find the codes for run_mlm.py in huggingface repo here: https://github.com/huggingface/transformers/blob/v4.3.2/examples/language-modeling/run_mlm.py ``` python run_mlm.py --model_name_or_path bert-base-multilingual-cased --dataset_name wikipedia --dataset_config_name 20200501.en --do_train --do_eval --output_dir /dara/test --max_seq_length 128 ``` I am using transformer version: 4.3.2 But I got memory erorr using this dataset, is there a way I could save on memory with dataset library with wikipedia dataset? Specially I need to train a model with multiple of wikipedia datasets concatenated. thank you very much @lhoestq for your help and suggestions: ``` File "run_mlm.py", line 441, in <module> main() File "run_mlm.py", line 233, in main split=f"train[{data_args.validation_split_percentage}%:]", File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/load.py", line 750, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 740, in as_dataset map_tuple=True, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 757, in _build_single_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 829, in _as_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 322, in read_table stream = stream_from(filename) File "pyarrow/io.pxi", line 782, in pyarrow.lib.memory_map File "pyarrow/io.pxi", line 743, in pyarrow.lib.MemoryMappedFile._open File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Memory mapping file failed: Cannot allocate memory ```
33
OSError: Memory mapping file failed: Cannot allocate memory Hi, I am trying to run a code with a wikipedia dataset, here is the command to reproduce the error. You can find the codes for run_mlm.py in huggingface repo here: https://github.com/huggingface/transformers/blob/v4.3.2/examples/language-modeling/run_mlm.py ``` python run_mlm.py --model_name_or_path bert-base-multilingual-cased --dataset_name wikipedia --dataset_config_name 20200501.en --do_train --do_eval --output_dir /dara/test --max_seq_length 128 ``` I am using transformer version: 4.3.2 But I got memory erorr using this dataset, is there a way I could save on memory with dataset library with wikipedia dataset? Specially I need to train a model with multiple of wikipedia datasets concatenated. thank you very much @lhoestq for your help and suggestions: ``` File "run_mlm.py", line 441, in <module> main() File "run_mlm.py", line 233, in main split=f"train[{data_args.validation_split_percentage}%:]", File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/load.py", line 750, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 740, in as_dataset map_tuple=True, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 757, in _build_single_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 829, in _as_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 322, in read_table stream = stream_from(filename) File "pyarrow/io.pxi", line 782, in pyarrow.lib.memory_map File "pyarrow/io.pxi", line 743, in pyarrow.lib.MemoryMappedFile._open File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Memory mapping file failed: Cannot allocate memory ``` Do you think this is trying to bring the dataset into memory and if I can avoid it to save on memory so it only brings a batch into memory? @lhoestq thank you
[ -0.2615421712398529, -0.03726428747177124, 0.05204015597701073, 0.6045715808868408, 0.4538375735282898, 0.283401221036911, 0.14564360678195953, 0.27246689796447754, 0.17855072021484375, 0.10566090792417526, -0.058184199035167694, 0.227386012673378, -0.177118182182312, -0.14591683447360992, -0.037090182304382324, -0.1933314949274063, 0.08402088284492493, 0.013471484184265137, -0.5429402589797974, 0.16046880185604095, -0.3581552803516388, 0.11570590734481812, -0.18563270568847656, -0.11716026067733765, -0.29803746938705444, -0.10351630300283432, -0.0006043799221515656, -0.09763110429048538, 0.018877994269132614, -0.327409029006958, 0.2548563778400421, -0.1293889731168747, 0.08640075474977493, 0.5501936674118042, -0.00012316074571572244, -0.013776227831840515, 0.2835690975189209, -0.1672084629535675, -0.2533998191356659, -0.12841589748859406, -0.04165663570165634, -0.029798559844493866, 0.09849677979946136, -0.22525039315223694, -0.01192392222583294, -0.05259288474917412, 0.23173043131828308, -0.34451425075531006, 0.44297468662261963, 0.2243882119655609, 0.14049464464187622, 0.06996511667966843, 0.45245224237442017, -0.04411257430911064, 0.17390726506710052, 0.3341216444969177, 0.07138047367334366, 0.3320227563381195, -0.29087117314338684, -0.4356871247291565, -0.03041280061006546, 0.39305034279823303, -0.0399409756064415, 0.005287520587444305, 0.5653292536735535, -0.14458361268043518, 0.025353118777275085, -0.33681750297546387, 0.11230871081352234, -0.007249429821968079, 0.5341091752052307, -0.4902603328227997, -0.028372643515467644, -0.014787252992391586, -0.053383439779281616, -0.09523989260196686, 0.29709821939468384, 0.26895251870155334, -0.2722629904747009, -0.14476057887077332, -0.1304170936346054, -0.32499849796295166, -0.3197004497051239, 0.44286876916885376, -0.09092172980308533, 0.19100093841552734, -0.024715948849916458, 0.3037818968296051, 0.5653706192970276, -0.2050899863243103, -0.23406215012073517, -0.07581231743097305, 0.13654348254203796, 0.3287966847419739, -0.2677210867404938, -0.16602899134159088, -0.302948921918869, -0.20470955967903137, 0.35113731026649475, -0.4987059235572815, -0.38619330525398254, -0.1260005533695221, 0.1516697257757187, 0.021239202469587326, 0.4036456346511841, 0.2817353308200836, -0.29636600613594055, 0.32283714413642883, 0.312296986579895, 0.17427153885364532, -0.24953767657279968, -0.15898960828781128, 0.07679539173841476, -0.03737843781709671, -0.11104987561702728, -0.19148299098014832, 0.08377417176961899, -0.001654159277677536, -0.01374551746994257, -0.021803636103868484, -0.21283161640167236, -0.1232089176774025, -0.05384937301278114, 0.5055232644081116, -0.10408411175012589, -0.08461867272853851, 0.37382763624191284, 0.14445945620536804, -0.012684369459748268, -0.00807699654251337, -0.05637501925230026, 0.4104226529598236, -0.3436274230480194, 0.28430673480033875, 0.050263870507478714, -0.0011583846062421799, 0.32634127140045166, -0.07270558178424835, -0.03312848508358002, -0.05668150261044502, 0.16204479336738586, -0.3580230474472046, 0.008711151778697968, 0.18468788266181946, 0.17885611951351166, 0.2493291050195694, 0.250351220369339, -0.14798587560653687, -0.1526843011379242, 0.19699668884277344, -0.16346779465675354, -0.24330344796180725, 0.03873647376894951, 0.0109291672706604, 0.09801338613033295, 0.2277470827102661, -0.2775138318538666, 0.18281039595603943, 0.6528615355491638, -0.07751546800136566, -0.057264961302280426, -0.08019676059484482, -0.22966843843460083, -0.1687687337398529, 0.2708781361579895, 0.5193134546279907, -0.06465340405702591, -0.10548350214958191, -0.11696977913379669, 0.1677045375108719, 0.25101226568222046, 0.4413837194442749, -0.1638229787349701, 0.2519155442714691, -0.09722165763378143, 0.016798384487628937, 0.4141837954521179, -0.31050920486450195, -0.34190383553504944, -0.005623938515782356, -0.025229312479496002, -0.13432259857654572, 0.023277699947357178, 0.13213112950325012, 0.07739974558353424, 0.11566591262817383, 0.11192552000284195, 0.3104182481765747, 0.05610337108373642, 0.2800839841365814, -0.30419835448265076, -0.2975761890411377, 0.25286900997161865, 0.07474641501903534, 0.06539662182331085, -0.20408308506011963, -0.06084928661584854, 0.8107677698135376, 0.29729515314102173, -0.26231226325035095, 0.15553468465805054, 0.3147749900817871, 0.10613708198070526, 0.006436236202716827, 0.0871192067861557, -0.21991276741027832, -0.25144779682159424, -0.07342473417520523, -0.056699033826589584, 0.3305933177471161, -0.14518894255161285, -0.04148092493414879, 0.15372234582901, -0.11867091059684753, -0.1722494214773178, -0.3908625543117523, 0.06229545176029205, 0.013073869049549103, 0.1235823929309845, 0.09008446335792542, 0.08106058835983276, 0.056008659303188324, -0.09396987408399582, 0.2478926181793213, -0.5998018383979797, 0.17150281369686127, -0.2896076440811157, -0.10769426822662354, -0.021439971402287483, -0.06249145418405533, 0.027415141463279724, -0.047465451061725616, -0.06855573505163193, 0.15199288725852966, 0.07713457196950912, -0.1671151965856552, -0.09068470448255539, 0.0034199804067611694, 0.31010955572128296, -0.3221142888069153, 0.16570566594600677, 0.2421719878911972, 0.19550471007823944, -0.09402269870042801, -0.19769614934921265, -0.15587864816188812, 0.10513409972190857, 0.36472123861312866, 0.0791877806186676, 0.16877515614032745, 0.026240641251206398, 0.08954767882823944, 0.17978620529174805, -0.2070019394159317, 0.21816344559192657, 0.012355413287878036, 0.24088455736637115, 0.09500669687986374, -0.029394622892141342, -0.30973294377326965, 0.4583241641521454, 0.2681969702243805, 0.27729934453964233, 0.2424817681312561, -0.4937294125556946, -0.07404258847236633, -0.06565145403146744, -0.07185489684343338, 0.3221563994884491, 0.05007864162325859, -0.11956436932086945, 0.12015479803085327, 0.19633790850639343, 0.00970306433737278, 0.30975955724716187, 0.17438873648643494, 0.49407798051834106, -0.01870843768119812, 0.10572294890880585, -0.08063475787639618, -0.09958694875240326, -0.1468479037284851, 0.05004598945379257, 0.5077634453773499, -0.17538031935691833, -0.01578528620302677, -0.18642692267894745, -0.400614470243454, -0.27539771795272827, 0.16431479156017303, -0.464242547750473, -0.13692706823349, -0.38493067026138306, 0.3247584402561188, 0.06956310570240021, 0.2584396302700043, 0.4160756766796112, -0.0507136732339859, 0.3513422906398773, -0.14067181944847107, 0.06877176463603973, -0.23041218519210815, -0.11907560378313065, -0.0627371072769165, 0.4409618079662323, -0.22047249972820282, 0.08683190494775772, 0.15672901272773743, -0.319557785987854, -0.21350941061973572, -0.1457148790359497, 0.1469896137714386, -0.08082167059183121, 0.12557418644428253, 0.05964236706495285, 0.5084345936775208, -0.12339837849140167, -0.23237629234790802, 0.1721094250679016, 0.08990707248449326, -0.05887235701084137, -0.03730016201734543, 0.023293595761060715, 0.1553845852613449, 0.05408887937664986, -0.2931138873100281, -0.17975716292858124, -0.5081841349601746, 0.40148013830184937, -0.03389136120676994, 0.1513628363609314, 0.3279181122779846, 0.1617625504732132, 0.11561520397663116, -0.12136584520339966, 0.08944830298423767, -0.16215060651302338, 0.01602005586028099, 0.3207913935184479, -0.14882585406303406, -0.211435005068779, -0.029063818976283073, 0.06273792684078217, 0.30630362033843994, 0.2301856130361557, -0.6157580614089966, -0.020910482853651047, -0.1136818677186966, -0.010894469916820526, -0.058850862085819244, 0.28631162643432617, 0.39138004183769226, 0.07892115414142609, 0.10780012607574463, 0.1375889778137207, -0.16775768995285034, 0.09490680694580078, -0.040983036160469055, 0.32489728927612305, 0.22007933259010315, 0.523425817489624, 0.06372655928134918, 0.838448703289032, 0.3419643044471741, 0.18714043498039246, 0.2288258820772171, -0.022065991535782814, 0.08356426656246185, 0.004970185458660126, -0.34818705916404724, -0.008208994753658772, -0.03689675033092499, 0.06199977546930313, 0.166143000125885, 0.008754870854318142, -0.3374429941177368, -0.16767233610153198, -0.35052865743637085, 0.04599033296108246, -0.3771669566631317, 0.2698536217212677, 0.1751250922679901, 0.36742350459098816, -0.08383555710315704, -0.08241311460733414, 0.023161564022302628, -0.3515780568122864, 0.19453319907188416, 0.21353211998939514, -0.017528630793094635, 0.021124035120010376, -0.11370822787284851, -0.3958893120288849, -0.6405460834503174, 0.11820420622825623, -0.1544019728899002, 0.06298001855611801, -0.10384844988584518, 0.0933978334069252, 0.060051754117012024, 0.15830756723880768, 0.7553266882896423, 0.005923646502196789, -0.30729252099990845, -0.046126656234264374, -0.2609424591064453, -0.5063744783401489, 0.21378390491008759, -0.1841566115617752, 0.344156950712204, 0.1433890163898468, 0.520553469657898, -0.36160171031951904, -0.09813395887613297, 0.32128769159317017, 0.3747147023677826, -0.21708260476589203, -0.2046922892332077, -0.1343318372964859, -0.2551262080669403, -0.6043946743011475, 0.004102058708667755, 0.054568856954574585, 0.19344864785671234, 0.49645256996154785, 0.20445604622364044, 0.052669115364551544, -0.05089747905731201, 0.13719363510608673, -0.05337563157081604, 0.3105927109718323, 0.11065413057804108, 0.1008518636226654, 0.13450422883033752, -0.15806804597377777, 0.3764188289642334, 0.29390791058540344, 0.07169057428836823, -0.3797556757926941, -0.09978538006544113, 0.05762171372771263, 0.2523960471153259, -0.06275585293769836, -0.013914945535361767, 0.003833949565887451, 0.026899214833974838, 0.17809507250785828, -0.09977521747350693, 0.13221970200538635, 0.1875683069229126, 0.08740754425525665, -0.45114561915397644, -0.4366306662559509, 0.3414418697357178, 0.19970457255840302, 0.15969397127628326, 0.3301560580730438, -0.14244449138641357, -0.5566366910934448, 0.32534098625183105, 0.35895806550979614, 0.9608318209648132, -0.35514843463897705, 0.39372777938842773, 0.09621825814247131, 0.21176515519618988, 0.6567654013633728, -0.47514021396636963, 0.3529614210128784, -0.3699403405189514, -0.08157602697610855, 0.043174877762794495, -0.13309967517852783, 0.1379615068435669, -0.01723291724920273, -0.4360865652561188, 0.2891327142715454, 0.0913323163986206, -0.039827536791563034, -0.18405866622924805, 0.38837021589279175, 0.11244750022888184, -0.4811996817588806, -0.18418675661087036, 0.03195121884346008, -0.1269843727350235, 0.24396701157093048, -0.045603230595588684, -0.027440320700407028, 0.11567527055740356, -0.11502759158611298, -0.39240384101867676, -0.0374513603746891, -0.4836359918117523, 0.3076912760734558, -0.25178319215774536, 0.0015956908464431763, 0.40474608540534973, 0.3928065598011017, 0.010181158781051636, 0.3698488473892212, -0.1340501457452774, 0.01052664965391159, -0.36008137464523315, -0.2767649292945862, -0.1850566416978836, 0.06766442954540253, 0.24240441620349884, -0.19374218583106995, -0.10712729394435883, 0.07636000216007233, -0.039947088807821274, -0.19824141263961792, -0.21035325527191162, -0.031876951456069946, -0.12981931865215302, -0.2045653760433197, -0.2123928815126419, 0.013283900916576385, -0.3584759831428528, -0.018619989976286888, 0.045863229781389236, 0.010847073048353195, -0.33783623576164246, 0.3286835551261902, 0.14236262440681458, -0.4008425772190094, 0.03074016235768795, 0.4164580702781677, 0.34854400157928467, 0.16058549284934998, 0.7200256586074829, 0.3232615292072296, -0.24563874304294586, -0.16185954213142395, -0.08247315883636475, -0.02533613331615925, -0.3048340976238251, 0.21009275317192078, 0.08375515788793564, 0.10605370998382568, -0.3066007196903229, -0.00037728995084762573, 0.12854324281215668, 0.045235540717840195, 0.036389101296663284, -0.30439794063568115, -0.5602001547813416, 0.20824985206127167, -0.010477691888809204, 0.03649932146072388, 0.2368941605091095, 0.022190827876329422, 0.029531529173254967, 0.24801506102085114, -0.15663054585456848, 0.020053846761584282, -0.16914232075214386, 0.2507920265197754, 0.24381892383098602, -0.11168656498193741, 0.10324367880821228, -0.0129493847489357, -0.00433901883661747, 0.15931078791618347, -0.015023648738861084, -0.12695249915122986, 0.045481566339731216, 0.15326252579689026, -0.02685132622718811, -0.2777852714061737, -0.09635823220014572, -0.5430380702018738, -0.015896983444690704, -0.30399325489997864, 0.011127669364213943, 0.02127949893474579, -0.1362699270248413, 0.1109776645898819, 0.20190317928791046, -0.2731657922267914, -0.06302572786808014, 0.27926215529441833, -0.022164739668369293, -0.05075278878211975, 0.16587083041667938, 0.2017493098974228, 0.09379894286394119, -0.15707387030124664, -0.5362305045127869, 0.05583462119102478, -0.08433611690998077, -0.02662789821624756, 0.10199372470378876, -0.11428505182266235, -0.39937615394592285, 0.3194222152233124, 0.09046699851751328, 0.15101370215415955, -0.14232775568962097, 0.20684130489826202, 0.20045143365859985, 0.008968832902610302, -0.19372668862342834, -0.041856102645397186, 0.33019840717315674, -0.2920086085796356, -0.05059781298041344, 0.3277897536754608, -0.1311674416065216, 0.04534521698951721, -0.029958173632621765, 0.13115838170051575, 0.35880255699157715, -0.07343093305826187, 0.322617769241333, 0.00615822896361351, -0.08348429203033447, -0.016720641404390335, 0.1939016580581665, 0.40572765469551086, 0.25870269536972046, 0.20438598096370697, -0.15563836693763733, 0.03763870894908905, -0.10587217658758163, -0.25482285022735596, 0.0379435271024704, -0.08367171138525009, 0.1414894163608551, 0.418973445892334, -0.17759135365486145, 0.15922003984451294, -0.19391322135925293, 0.17801788449287415, 0.18459680676460266, -0.27455827593803406, 0.07877687364816666, 0.29847145080566406, -0.21168732643127441, 0.04647519811987877, 0.1499892622232437, -0.11578129976987839, -0.06578820198774338, 0.14178557693958282, 0.07711386680603027, -0.6087396144866943, 0.45919570326805115, 0.14678677916526794, -0.22065119445323944, -0.14092658460140228, 0.27736514806747437, 0.4522537887096405, 0.07107841968536377, -0.3053988516330719, 0.057593934237957, 0.026987627148628235, 0.13658858835697174, -0.3318271338939667, 0.30944588780403137, 0.4621615707874298, 0.291585236787796, -0.19562369585037231, 0.25357285141944885, -0.1581636369228363, -0.012619178742170334, 0.015426024794578552, -0.023688942193984985, 0.11646571755409241, 0.2165057510137558, 0.11305473744869232, -0.010932743549346924, -0.0586271658539772, -0.15109537541866302, 0.16302041709423065, 0.14252081513404846, -0.22791624069213867, -0.38114219903945923, -0.0991920679807663, -0.17108914256095886, -0.0140402652323246, -0.011569984257221222, -0.5901711583137512, 0.2826707363128662, 0.5286229848861694, -0.13806666433811188, 0.08121021836996078, 0.020233072340488434, 0.013729635626077652, -0.031966160982847214, 0.48462361097335815, 0.20302323997020721, -0.03308061510324478, -0.48141664266586304, -0.31778115034103394, -0.41507598757743835, 0.024107620120048523, -0.3297812342643738, 0.0040629711002111435, -0.07540751248598099, 0.11538772284984589, -0.04735589772462845, 0.04659399017691612, 0.04862751066684723, -0.36422446370124817, -0.04351806640625, 0.17761433124542236, -0.15607206523418427, -0.255337119102478, -0.12738993763923645, 0.17875955998897552, 0.17938879132270813, -0.19811436533927917, 0.2631118893623352, 0.008783654309809208, -0.13983768224716187, -0.3518664240837097, 0.13386821746826172, 0.050196629017591476, 0.1779215782880783, 0.15763550996780396, 0.061005473136901855, 0.3895051181316376, 0.004085347056388855, -0.24227122962474823, 0.02581563964486122, 0.00026921601966023445, -0.09981406480073929, 0.14134067296981812, 0.12945717573165894, 0.3691283166408539, -0.40976518392562866, -0.38277944922447205, -0.432793527841568, 0.28977444767951965, -0.06378474086523056, -0.11976833641529083, -0.035079725086688995, -0.037601880729198456, 0.25265347957611084, 0.06882907450199127, 0.0636017695069313, 0.15866592526435852, -0.0656890943646431, -0.00033470429480075836, -0.45090389251708984, -0.26157206296920776, 0.45988529920578003, -0.4583001434803009, -0.3856022357940674, -0.08609998226165771, -0.09503522515296936, -0.14593616127967834, -0.1394125521183014, -0.7795306444168091, 0.09105934947729111, 0.29441165924072266, 0.09553072601556778, -0.42246901988983154, 0.03149568289518356, -0.1058146059513092, 0.12016618251800537, -0.12562602758407593, 0.33654993772506714, -0.09009487181901932, -0.43250614404678345, 0.16513080894947052, -0.2077716439962387 ]
https://github.com/huggingface/datasets/issues/1990
OSError: Memory mapping file failed: Cannot allocate memory
It's not trying to bring the dataset into memory. Actually, it's trying to memory map the dataset file, which is different. It allows to load large dataset files without filling up memory. What dataset did you use to get this error ? On what OS are you running ? What's your python and pyarrow version ?
Hi, I am trying to run a code with a wikipedia dataset, here is the command to reproduce the error. You can find the codes for run_mlm.py in huggingface repo here: https://github.com/huggingface/transformers/blob/v4.3.2/examples/language-modeling/run_mlm.py ``` python run_mlm.py --model_name_or_path bert-base-multilingual-cased --dataset_name wikipedia --dataset_config_name 20200501.en --do_train --do_eval --output_dir /dara/test --max_seq_length 128 ``` I am using transformer version: 4.3.2 But I got memory erorr using this dataset, is there a way I could save on memory with dataset library with wikipedia dataset? Specially I need to train a model with multiple of wikipedia datasets concatenated. thank you very much @lhoestq for your help and suggestions: ``` File "run_mlm.py", line 441, in <module> main() File "run_mlm.py", line 233, in main split=f"train[{data_args.validation_split_percentage}%:]", File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/load.py", line 750, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 740, in as_dataset map_tuple=True, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 757, in _build_single_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 829, in _as_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 322, in read_table stream = stream_from(filename) File "pyarrow/io.pxi", line 782, in pyarrow.lib.memory_map File "pyarrow/io.pxi", line 743, in pyarrow.lib.MemoryMappedFile._open File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Memory mapping file failed: Cannot allocate memory ```
56
OSError: Memory mapping file failed: Cannot allocate memory Hi, I am trying to run a code with a wikipedia dataset, here is the command to reproduce the error. You can find the codes for run_mlm.py in huggingface repo here: https://github.com/huggingface/transformers/blob/v4.3.2/examples/language-modeling/run_mlm.py ``` python run_mlm.py --model_name_or_path bert-base-multilingual-cased --dataset_name wikipedia --dataset_config_name 20200501.en --do_train --do_eval --output_dir /dara/test --max_seq_length 128 ``` I am using transformer version: 4.3.2 But I got memory erorr using this dataset, is there a way I could save on memory with dataset library with wikipedia dataset? Specially I need to train a model with multiple of wikipedia datasets concatenated. thank you very much @lhoestq for your help and suggestions: ``` File "run_mlm.py", line 441, in <module> main() File "run_mlm.py", line 233, in main split=f"train[{data_args.validation_split_percentage}%:]", File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/load.py", line 750, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 740, in as_dataset map_tuple=True, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 757, in _build_single_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 829, in _as_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 322, in read_table stream = stream_from(filename) File "pyarrow/io.pxi", line 782, in pyarrow.lib.memory_map File "pyarrow/io.pxi", line 743, in pyarrow.lib.MemoryMappedFile._open File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Memory mapping file failed: Cannot allocate memory ``` It's not trying to bring the dataset into memory. Actually, it's trying to memory map the dataset file, which is different. It allows to load large dataset files without filling up memory. What dataset did you use to get this error ? On what OS are you running ? What's your python and pyarrow version ?
[ -0.2615421712398529, -0.03726428747177124, 0.05204015597701073, 0.6045715808868408, 0.4538375735282898, 0.283401221036911, 0.14564360678195953, 0.27246689796447754, 0.17855072021484375, 0.10566090792417526, -0.058184199035167694, 0.227386012673378, -0.177118182182312, -0.14591683447360992, -0.037090182304382324, -0.1933314949274063, 0.08402088284492493, 0.013471484184265137, -0.5429402589797974, 0.16046880185604095, -0.3581552803516388, 0.11570590734481812, -0.18563270568847656, -0.11716026067733765, -0.29803746938705444, -0.10351630300283432, -0.0006043799221515656, -0.09763110429048538, 0.018877994269132614, -0.327409029006958, 0.2548563778400421, -0.1293889731168747, 0.08640075474977493, 0.5501936674118042, -0.00012316074571572244, -0.013776227831840515, 0.2835690975189209, -0.1672084629535675, -0.2533998191356659, -0.12841589748859406, -0.04165663570165634, -0.029798559844493866, 0.09849677979946136, -0.22525039315223694, -0.01192392222583294, -0.05259288474917412, 0.23173043131828308, -0.34451425075531006, 0.44297468662261963, 0.2243882119655609, 0.14049464464187622, 0.06996511667966843, 0.45245224237442017, -0.04411257430911064, 0.17390726506710052, 0.3341216444969177, 0.07138047367334366, 0.3320227563381195, -0.29087117314338684, -0.4356871247291565, -0.03041280061006546, 0.39305034279823303, -0.0399409756064415, 0.005287520587444305, 0.5653292536735535, -0.14458361268043518, 0.025353118777275085, -0.33681750297546387, 0.11230871081352234, -0.007249429821968079, 0.5341091752052307, -0.4902603328227997, -0.028372643515467644, -0.014787252992391586, -0.053383439779281616, -0.09523989260196686, 0.29709821939468384, 0.26895251870155334, -0.2722629904747009, -0.14476057887077332, -0.1304170936346054, -0.32499849796295166, -0.3197004497051239, 0.44286876916885376, -0.09092172980308533, 0.19100093841552734, -0.024715948849916458, 0.3037818968296051, 0.5653706192970276, -0.2050899863243103, -0.23406215012073517, -0.07581231743097305, 0.13654348254203796, 0.3287966847419739, -0.2677210867404938, -0.16602899134159088, -0.302948921918869, -0.20470955967903137, 0.35113731026649475, -0.4987059235572815, -0.38619330525398254, -0.1260005533695221, 0.1516697257757187, 0.021239202469587326, 0.4036456346511841, 0.2817353308200836, -0.29636600613594055, 0.32283714413642883, 0.312296986579895, 0.17427153885364532, -0.24953767657279968, -0.15898960828781128, 0.07679539173841476, -0.03737843781709671, -0.11104987561702728, -0.19148299098014832, 0.08377417176961899, -0.001654159277677536, -0.01374551746994257, -0.021803636103868484, -0.21283161640167236, -0.1232089176774025, -0.05384937301278114, 0.5055232644081116, -0.10408411175012589, -0.08461867272853851, 0.37382763624191284, 0.14445945620536804, -0.012684369459748268, -0.00807699654251337, -0.05637501925230026, 0.4104226529598236, -0.3436274230480194, 0.28430673480033875, 0.050263870507478714, -0.0011583846062421799, 0.32634127140045166, -0.07270558178424835, -0.03312848508358002, -0.05668150261044502, 0.16204479336738586, -0.3580230474472046, 0.008711151778697968, 0.18468788266181946, 0.17885611951351166, 0.2493291050195694, 0.250351220369339, -0.14798587560653687, -0.1526843011379242, 0.19699668884277344, -0.16346779465675354, -0.24330344796180725, 0.03873647376894951, 0.0109291672706604, 0.09801338613033295, 0.2277470827102661, -0.2775138318538666, 0.18281039595603943, 0.6528615355491638, -0.07751546800136566, -0.057264961302280426, -0.08019676059484482, -0.22966843843460083, -0.1687687337398529, 0.2708781361579895, 0.5193134546279907, -0.06465340405702591, -0.10548350214958191, -0.11696977913379669, 0.1677045375108719, 0.25101226568222046, 0.4413837194442749, -0.1638229787349701, 0.2519155442714691, -0.09722165763378143, 0.016798384487628937, 0.4141837954521179, -0.31050920486450195, -0.34190383553504944, -0.005623938515782356, -0.025229312479496002, -0.13432259857654572, 0.023277699947357178, 0.13213112950325012, 0.07739974558353424, 0.11566591262817383, 0.11192552000284195, 0.3104182481765747, 0.05610337108373642, 0.2800839841365814, -0.30419835448265076, -0.2975761890411377, 0.25286900997161865, 0.07474641501903534, 0.06539662182331085, -0.20408308506011963, -0.06084928661584854, 0.8107677698135376, 0.29729515314102173, -0.26231226325035095, 0.15553468465805054, 0.3147749900817871, 0.10613708198070526, 0.006436236202716827, 0.0871192067861557, -0.21991276741027832, -0.25144779682159424, -0.07342473417520523, -0.056699033826589584, 0.3305933177471161, -0.14518894255161285, -0.04148092493414879, 0.15372234582901, -0.11867091059684753, -0.1722494214773178, -0.3908625543117523, 0.06229545176029205, 0.013073869049549103, 0.1235823929309845, 0.09008446335792542, 0.08106058835983276, 0.056008659303188324, -0.09396987408399582, 0.2478926181793213, -0.5998018383979797, 0.17150281369686127, -0.2896076440811157, -0.10769426822662354, -0.021439971402287483, -0.06249145418405533, 0.027415141463279724, -0.047465451061725616, -0.06855573505163193, 0.15199288725852966, 0.07713457196950912, -0.1671151965856552, -0.09068470448255539, 0.0034199804067611694, 0.31010955572128296, -0.3221142888069153, 0.16570566594600677, 0.2421719878911972, 0.19550471007823944, -0.09402269870042801, -0.19769614934921265, -0.15587864816188812, 0.10513409972190857, 0.36472123861312866, 0.0791877806186676, 0.16877515614032745, 0.026240641251206398, 0.08954767882823944, 0.17978620529174805, -0.2070019394159317, 0.21816344559192657, 0.012355413287878036, 0.24088455736637115, 0.09500669687986374, -0.029394622892141342, -0.30973294377326965, 0.4583241641521454, 0.2681969702243805, 0.27729934453964233, 0.2424817681312561, -0.4937294125556946, -0.07404258847236633, -0.06565145403146744, -0.07185489684343338, 0.3221563994884491, 0.05007864162325859, -0.11956436932086945, 0.12015479803085327, 0.19633790850639343, 0.00970306433737278, 0.30975955724716187, 0.17438873648643494, 0.49407798051834106, -0.01870843768119812, 0.10572294890880585, -0.08063475787639618, -0.09958694875240326, -0.1468479037284851, 0.05004598945379257, 0.5077634453773499, -0.17538031935691833, -0.01578528620302677, -0.18642692267894745, -0.400614470243454, -0.27539771795272827, 0.16431479156017303, -0.464242547750473, -0.13692706823349, -0.38493067026138306, 0.3247584402561188, 0.06956310570240021, 0.2584396302700043, 0.4160756766796112, -0.0507136732339859, 0.3513422906398773, -0.14067181944847107, 0.06877176463603973, -0.23041218519210815, -0.11907560378313065, -0.0627371072769165, 0.4409618079662323, -0.22047249972820282, 0.08683190494775772, 0.15672901272773743, -0.319557785987854, -0.21350941061973572, -0.1457148790359497, 0.1469896137714386, -0.08082167059183121, 0.12557418644428253, 0.05964236706495285, 0.5084345936775208, -0.12339837849140167, -0.23237629234790802, 0.1721094250679016, 0.08990707248449326, -0.05887235701084137, -0.03730016201734543, 0.023293595761060715, 0.1553845852613449, 0.05408887937664986, -0.2931138873100281, -0.17975716292858124, -0.5081841349601746, 0.40148013830184937, -0.03389136120676994, 0.1513628363609314, 0.3279181122779846, 0.1617625504732132, 0.11561520397663116, -0.12136584520339966, 0.08944830298423767, -0.16215060651302338, 0.01602005586028099, 0.3207913935184479, -0.14882585406303406, -0.211435005068779, -0.029063818976283073, 0.06273792684078217, 0.30630362033843994, 0.2301856130361557, -0.6157580614089966, -0.020910482853651047, -0.1136818677186966, -0.010894469916820526, -0.058850862085819244, 0.28631162643432617, 0.39138004183769226, 0.07892115414142609, 0.10780012607574463, 0.1375889778137207, -0.16775768995285034, 0.09490680694580078, -0.040983036160469055, 0.32489728927612305, 0.22007933259010315, 0.523425817489624, 0.06372655928134918, 0.838448703289032, 0.3419643044471741, 0.18714043498039246, 0.2288258820772171, -0.022065991535782814, 0.08356426656246185, 0.004970185458660126, -0.34818705916404724, -0.008208994753658772, -0.03689675033092499, 0.06199977546930313, 0.166143000125885, 0.008754870854318142, -0.3374429941177368, -0.16767233610153198, -0.35052865743637085, 0.04599033296108246, -0.3771669566631317, 0.2698536217212677, 0.1751250922679901, 0.36742350459098816, -0.08383555710315704, -0.08241311460733414, 0.023161564022302628, -0.3515780568122864, 0.19453319907188416, 0.21353211998939514, -0.017528630793094635, 0.021124035120010376, -0.11370822787284851, -0.3958893120288849, -0.6405460834503174, 0.11820420622825623, -0.1544019728899002, 0.06298001855611801, -0.10384844988584518, 0.0933978334069252, 0.060051754117012024, 0.15830756723880768, 0.7553266882896423, 0.005923646502196789, -0.30729252099990845, -0.046126656234264374, -0.2609424591064453, -0.5063744783401489, 0.21378390491008759, -0.1841566115617752, 0.344156950712204, 0.1433890163898468, 0.520553469657898, -0.36160171031951904, -0.09813395887613297, 0.32128769159317017, 0.3747147023677826, -0.21708260476589203, -0.2046922892332077, -0.1343318372964859, -0.2551262080669403, -0.6043946743011475, 0.004102058708667755, 0.054568856954574585, 0.19344864785671234, 0.49645256996154785, 0.20445604622364044, 0.052669115364551544, -0.05089747905731201, 0.13719363510608673, -0.05337563157081604, 0.3105927109718323, 0.11065413057804108, 0.1008518636226654, 0.13450422883033752, -0.15806804597377777, 0.3764188289642334, 0.29390791058540344, 0.07169057428836823, -0.3797556757926941, -0.09978538006544113, 0.05762171372771263, 0.2523960471153259, -0.06275585293769836, -0.013914945535361767, 0.003833949565887451, 0.026899214833974838, 0.17809507250785828, -0.09977521747350693, 0.13221970200538635, 0.1875683069229126, 0.08740754425525665, -0.45114561915397644, -0.4366306662559509, 0.3414418697357178, 0.19970457255840302, 0.15969397127628326, 0.3301560580730438, -0.14244449138641357, -0.5566366910934448, 0.32534098625183105, 0.35895806550979614, 0.9608318209648132, -0.35514843463897705, 0.39372777938842773, 0.09621825814247131, 0.21176515519618988, 0.6567654013633728, -0.47514021396636963, 0.3529614210128784, -0.3699403405189514, -0.08157602697610855, 0.043174877762794495, -0.13309967517852783, 0.1379615068435669, -0.01723291724920273, -0.4360865652561188, 0.2891327142715454, 0.0913323163986206, -0.039827536791563034, -0.18405866622924805, 0.38837021589279175, 0.11244750022888184, -0.4811996817588806, -0.18418675661087036, 0.03195121884346008, -0.1269843727350235, 0.24396701157093048, -0.045603230595588684, -0.027440320700407028, 0.11567527055740356, -0.11502759158611298, -0.39240384101867676, -0.0374513603746891, -0.4836359918117523, 0.3076912760734558, -0.25178319215774536, 0.0015956908464431763, 0.40474608540534973, 0.3928065598011017, 0.010181158781051636, 0.3698488473892212, -0.1340501457452774, 0.01052664965391159, -0.36008137464523315, -0.2767649292945862, -0.1850566416978836, 0.06766442954540253, 0.24240441620349884, -0.19374218583106995, -0.10712729394435883, 0.07636000216007233, -0.039947088807821274, -0.19824141263961792, -0.21035325527191162, -0.031876951456069946, -0.12981931865215302, -0.2045653760433197, -0.2123928815126419, 0.013283900916576385, -0.3584759831428528, -0.018619989976286888, 0.045863229781389236, 0.010847073048353195, -0.33783623576164246, 0.3286835551261902, 0.14236262440681458, -0.4008425772190094, 0.03074016235768795, 0.4164580702781677, 0.34854400157928467, 0.16058549284934998, 0.7200256586074829, 0.3232615292072296, -0.24563874304294586, -0.16185954213142395, -0.08247315883636475, -0.02533613331615925, -0.3048340976238251, 0.21009275317192078, 0.08375515788793564, 0.10605370998382568, -0.3066007196903229, -0.00037728995084762573, 0.12854324281215668, 0.045235540717840195, 0.036389101296663284, -0.30439794063568115, -0.5602001547813416, 0.20824985206127167, -0.010477691888809204, 0.03649932146072388, 0.2368941605091095, 0.022190827876329422, 0.029531529173254967, 0.24801506102085114, -0.15663054585456848, 0.020053846761584282, -0.16914232075214386, 0.2507920265197754, 0.24381892383098602, -0.11168656498193741, 0.10324367880821228, -0.0129493847489357, -0.00433901883661747, 0.15931078791618347, -0.015023648738861084, -0.12695249915122986, 0.045481566339731216, 0.15326252579689026, -0.02685132622718811, -0.2777852714061737, -0.09635823220014572, -0.5430380702018738, -0.015896983444690704, -0.30399325489997864, 0.011127669364213943, 0.02127949893474579, -0.1362699270248413, 0.1109776645898819, 0.20190317928791046, -0.2731657922267914, -0.06302572786808014, 0.27926215529441833, -0.022164739668369293, -0.05075278878211975, 0.16587083041667938, 0.2017493098974228, 0.09379894286394119, -0.15707387030124664, -0.5362305045127869, 0.05583462119102478, -0.08433611690998077, -0.02662789821624756, 0.10199372470378876, -0.11428505182266235, -0.39937615394592285, 0.3194222152233124, 0.09046699851751328, 0.15101370215415955, -0.14232775568962097, 0.20684130489826202, 0.20045143365859985, 0.008968832902610302, -0.19372668862342834, -0.041856102645397186, 0.33019840717315674, -0.2920086085796356, -0.05059781298041344, 0.3277897536754608, -0.1311674416065216, 0.04534521698951721, -0.029958173632621765, 0.13115838170051575, 0.35880255699157715, -0.07343093305826187, 0.322617769241333, 0.00615822896361351, -0.08348429203033447, -0.016720641404390335, 0.1939016580581665, 0.40572765469551086, 0.25870269536972046, 0.20438598096370697, -0.15563836693763733, 0.03763870894908905, -0.10587217658758163, -0.25482285022735596, 0.0379435271024704, -0.08367171138525009, 0.1414894163608551, 0.418973445892334, -0.17759135365486145, 0.15922003984451294, -0.19391322135925293, 0.17801788449287415, 0.18459680676460266, -0.27455827593803406, 0.07877687364816666, 0.29847145080566406, -0.21168732643127441, 0.04647519811987877, 0.1499892622232437, -0.11578129976987839, -0.06578820198774338, 0.14178557693958282, 0.07711386680603027, -0.6087396144866943, 0.45919570326805115, 0.14678677916526794, -0.22065119445323944, -0.14092658460140228, 0.27736514806747437, 0.4522537887096405, 0.07107841968536377, -0.3053988516330719, 0.057593934237957, 0.026987627148628235, 0.13658858835697174, -0.3318271338939667, 0.30944588780403137, 0.4621615707874298, 0.291585236787796, -0.19562369585037231, 0.25357285141944885, -0.1581636369228363, -0.012619178742170334, 0.015426024794578552, -0.023688942193984985, 0.11646571755409241, 0.2165057510137558, 0.11305473744869232, -0.010932743549346924, -0.0586271658539772, -0.15109537541866302, 0.16302041709423065, 0.14252081513404846, -0.22791624069213867, -0.38114219903945923, -0.0991920679807663, -0.17108914256095886, -0.0140402652323246, -0.011569984257221222, -0.5901711583137512, 0.2826707363128662, 0.5286229848861694, -0.13806666433811188, 0.08121021836996078, 0.020233072340488434, 0.013729635626077652, -0.031966160982847214, 0.48462361097335815, 0.20302323997020721, -0.03308061510324478, -0.48141664266586304, -0.31778115034103394, -0.41507598757743835, 0.024107620120048523, -0.3297812342643738, 0.0040629711002111435, -0.07540751248598099, 0.11538772284984589, -0.04735589772462845, 0.04659399017691612, 0.04862751066684723, -0.36422446370124817, -0.04351806640625, 0.17761433124542236, -0.15607206523418427, -0.255337119102478, -0.12738993763923645, 0.17875955998897552, 0.17938879132270813, -0.19811436533927917, 0.2631118893623352, 0.008783654309809208, -0.13983768224716187, -0.3518664240837097, 0.13386821746826172, 0.050196629017591476, 0.1779215782880783, 0.15763550996780396, 0.061005473136901855, 0.3895051181316376, 0.004085347056388855, -0.24227122962474823, 0.02581563964486122, 0.00026921601966023445, -0.09981406480073929, 0.14134067296981812, 0.12945717573165894, 0.3691283166408539, -0.40976518392562866, -0.38277944922447205, -0.432793527841568, 0.28977444767951965, -0.06378474086523056, -0.11976833641529083, -0.035079725086688995, -0.037601880729198456, 0.25265347957611084, 0.06882907450199127, 0.0636017695069313, 0.15866592526435852, -0.0656890943646431, -0.00033470429480075836, -0.45090389251708984, -0.26157206296920776, 0.45988529920578003, -0.4583001434803009, -0.3856022357940674, -0.08609998226165771, -0.09503522515296936, -0.14593616127967834, -0.1394125521183014, -0.7795306444168091, 0.09105934947729111, 0.29441165924072266, 0.09553072601556778, -0.42246901988983154, 0.03149568289518356, -0.1058146059513092, 0.12016618251800537, -0.12562602758407593, 0.33654993772506714, -0.09009487181901932, -0.43250614404678345, 0.16513080894947052, -0.2077716439962387 ]
https://github.com/huggingface/datasets/issues/1990
OSError: Memory mapping file failed: Cannot allocate memory
Dear @lhoestq thank you so much for coming back to me. Please find info below: 1) Dataset name: I used wikipedia with config 20200501.en 2) I got these pyarrow in my environment: pyarrow 2.0.0 <pip> pyarrow 3.0.0 <pip> 3) python version 3.7.10 4) OS version lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 10 (buster) Release: 10 Codename: buster Is there a way I could solve the memory issue and if I could run this model, I am using GeForce GTX 108, thanks
Hi, I am trying to run a code with a wikipedia dataset, here is the command to reproduce the error. You can find the codes for run_mlm.py in huggingface repo here: https://github.com/huggingface/transformers/blob/v4.3.2/examples/language-modeling/run_mlm.py ``` python run_mlm.py --model_name_or_path bert-base-multilingual-cased --dataset_name wikipedia --dataset_config_name 20200501.en --do_train --do_eval --output_dir /dara/test --max_seq_length 128 ``` I am using transformer version: 4.3.2 But I got memory erorr using this dataset, is there a way I could save on memory with dataset library with wikipedia dataset? Specially I need to train a model with multiple of wikipedia datasets concatenated. thank you very much @lhoestq for your help and suggestions: ``` File "run_mlm.py", line 441, in <module> main() File "run_mlm.py", line 233, in main split=f"train[{data_args.validation_split_percentage}%:]", File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/load.py", line 750, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 740, in as_dataset map_tuple=True, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 757, in _build_single_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 829, in _as_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 322, in read_table stream = stream_from(filename) File "pyarrow/io.pxi", line 782, in pyarrow.lib.memory_map File "pyarrow/io.pxi", line 743, in pyarrow.lib.MemoryMappedFile._open File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Memory mapping file failed: Cannot allocate memory ```
88
OSError: Memory mapping file failed: Cannot allocate memory Hi, I am trying to run a code with a wikipedia dataset, here is the command to reproduce the error. You can find the codes for run_mlm.py in huggingface repo here: https://github.com/huggingface/transformers/blob/v4.3.2/examples/language-modeling/run_mlm.py ``` python run_mlm.py --model_name_or_path bert-base-multilingual-cased --dataset_name wikipedia --dataset_config_name 20200501.en --do_train --do_eval --output_dir /dara/test --max_seq_length 128 ``` I am using transformer version: 4.3.2 But I got memory erorr using this dataset, is there a way I could save on memory with dataset library with wikipedia dataset? Specially I need to train a model with multiple of wikipedia datasets concatenated. thank you very much @lhoestq for your help and suggestions: ``` File "run_mlm.py", line 441, in <module> main() File "run_mlm.py", line 233, in main split=f"train[{data_args.validation_split_percentage}%:]", File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/load.py", line 750, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 740, in as_dataset map_tuple=True, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 757, in _build_single_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 829, in _as_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 322, in read_table stream = stream_from(filename) File "pyarrow/io.pxi", line 782, in pyarrow.lib.memory_map File "pyarrow/io.pxi", line 743, in pyarrow.lib.MemoryMappedFile._open File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Memory mapping file failed: Cannot allocate memory ``` Dear @lhoestq thank you so much for coming back to me. Please find info below: 1) Dataset name: I used wikipedia with config 20200501.en 2) I got these pyarrow in my environment: pyarrow 2.0.0 <pip> pyarrow 3.0.0 <pip> 3) python version 3.7.10 4) OS version lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 10 (buster) Release: 10 Codename: buster Is there a way I could solve the memory issue and if I could run this model, I am using GeForce GTX 108, thanks
[ -0.2615421712398529, -0.03726428747177124, 0.05204015597701073, 0.6045715808868408, 0.4538375735282898, 0.283401221036911, 0.14564360678195953, 0.27246689796447754, 0.17855072021484375, 0.10566090792417526, -0.058184199035167694, 0.227386012673378, -0.177118182182312, -0.14591683447360992, -0.037090182304382324, -0.1933314949274063, 0.08402088284492493, 0.013471484184265137, -0.5429402589797974, 0.16046880185604095, -0.3581552803516388, 0.11570590734481812, -0.18563270568847656, -0.11716026067733765, -0.29803746938705444, -0.10351630300283432, -0.0006043799221515656, -0.09763110429048538, 0.018877994269132614, -0.327409029006958, 0.2548563778400421, -0.1293889731168747, 0.08640075474977493, 0.5501936674118042, -0.00012316074571572244, -0.013776227831840515, 0.2835690975189209, -0.1672084629535675, -0.2533998191356659, -0.12841589748859406, -0.04165663570165634, -0.029798559844493866, 0.09849677979946136, -0.22525039315223694, -0.01192392222583294, -0.05259288474917412, 0.23173043131828308, -0.34451425075531006, 0.44297468662261963, 0.2243882119655609, 0.14049464464187622, 0.06996511667966843, 0.45245224237442017, -0.04411257430911064, 0.17390726506710052, 0.3341216444969177, 0.07138047367334366, 0.3320227563381195, -0.29087117314338684, -0.4356871247291565, -0.03041280061006546, 0.39305034279823303, -0.0399409756064415, 0.005287520587444305, 0.5653292536735535, -0.14458361268043518, 0.025353118777275085, -0.33681750297546387, 0.11230871081352234, -0.007249429821968079, 0.5341091752052307, -0.4902603328227997, -0.028372643515467644, -0.014787252992391586, -0.053383439779281616, -0.09523989260196686, 0.29709821939468384, 0.26895251870155334, -0.2722629904747009, -0.14476057887077332, -0.1304170936346054, -0.32499849796295166, -0.3197004497051239, 0.44286876916885376, -0.09092172980308533, 0.19100093841552734, -0.024715948849916458, 0.3037818968296051, 0.5653706192970276, -0.2050899863243103, -0.23406215012073517, -0.07581231743097305, 0.13654348254203796, 0.3287966847419739, -0.2677210867404938, -0.16602899134159088, -0.302948921918869, -0.20470955967903137, 0.35113731026649475, -0.4987059235572815, -0.38619330525398254, -0.1260005533695221, 0.1516697257757187, 0.021239202469587326, 0.4036456346511841, 0.2817353308200836, -0.29636600613594055, 0.32283714413642883, 0.312296986579895, 0.17427153885364532, -0.24953767657279968, -0.15898960828781128, 0.07679539173841476, -0.03737843781709671, -0.11104987561702728, -0.19148299098014832, 0.08377417176961899, -0.001654159277677536, -0.01374551746994257, -0.021803636103868484, -0.21283161640167236, -0.1232089176774025, -0.05384937301278114, 0.5055232644081116, -0.10408411175012589, -0.08461867272853851, 0.37382763624191284, 0.14445945620536804, -0.012684369459748268, -0.00807699654251337, -0.05637501925230026, 0.4104226529598236, -0.3436274230480194, 0.28430673480033875, 0.050263870507478714, -0.0011583846062421799, 0.32634127140045166, -0.07270558178424835, -0.03312848508358002, -0.05668150261044502, 0.16204479336738586, -0.3580230474472046, 0.008711151778697968, 0.18468788266181946, 0.17885611951351166, 0.2493291050195694, 0.250351220369339, -0.14798587560653687, -0.1526843011379242, 0.19699668884277344, -0.16346779465675354, -0.24330344796180725, 0.03873647376894951, 0.0109291672706604, 0.09801338613033295, 0.2277470827102661, -0.2775138318538666, 0.18281039595603943, 0.6528615355491638, -0.07751546800136566, -0.057264961302280426, -0.08019676059484482, -0.22966843843460083, -0.1687687337398529, 0.2708781361579895, 0.5193134546279907, -0.06465340405702591, -0.10548350214958191, -0.11696977913379669, 0.1677045375108719, 0.25101226568222046, 0.4413837194442749, -0.1638229787349701, 0.2519155442714691, -0.09722165763378143, 0.016798384487628937, 0.4141837954521179, -0.31050920486450195, -0.34190383553504944, -0.005623938515782356, -0.025229312479496002, -0.13432259857654572, 0.023277699947357178, 0.13213112950325012, 0.07739974558353424, 0.11566591262817383, 0.11192552000284195, 0.3104182481765747, 0.05610337108373642, 0.2800839841365814, -0.30419835448265076, -0.2975761890411377, 0.25286900997161865, 0.07474641501903534, 0.06539662182331085, -0.20408308506011963, -0.06084928661584854, 0.8107677698135376, 0.29729515314102173, -0.26231226325035095, 0.15553468465805054, 0.3147749900817871, 0.10613708198070526, 0.006436236202716827, 0.0871192067861557, -0.21991276741027832, -0.25144779682159424, -0.07342473417520523, -0.056699033826589584, 0.3305933177471161, -0.14518894255161285, -0.04148092493414879, 0.15372234582901, -0.11867091059684753, -0.1722494214773178, -0.3908625543117523, 0.06229545176029205, 0.013073869049549103, 0.1235823929309845, 0.09008446335792542, 0.08106058835983276, 0.056008659303188324, -0.09396987408399582, 0.2478926181793213, -0.5998018383979797, 0.17150281369686127, -0.2896076440811157, -0.10769426822662354, -0.021439971402287483, -0.06249145418405533, 0.027415141463279724, -0.047465451061725616, -0.06855573505163193, 0.15199288725852966, 0.07713457196950912, -0.1671151965856552, -0.09068470448255539, 0.0034199804067611694, 0.31010955572128296, -0.3221142888069153, 0.16570566594600677, 0.2421719878911972, 0.19550471007823944, -0.09402269870042801, -0.19769614934921265, -0.15587864816188812, 0.10513409972190857, 0.36472123861312866, 0.0791877806186676, 0.16877515614032745, 0.026240641251206398, 0.08954767882823944, 0.17978620529174805, -0.2070019394159317, 0.21816344559192657, 0.012355413287878036, 0.24088455736637115, 0.09500669687986374, -0.029394622892141342, -0.30973294377326965, 0.4583241641521454, 0.2681969702243805, 0.27729934453964233, 0.2424817681312561, -0.4937294125556946, -0.07404258847236633, -0.06565145403146744, -0.07185489684343338, 0.3221563994884491, 0.05007864162325859, -0.11956436932086945, 0.12015479803085327, 0.19633790850639343, 0.00970306433737278, 0.30975955724716187, 0.17438873648643494, 0.49407798051834106, -0.01870843768119812, 0.10572294890880585, -0.08063475787639618, -0.09958694875240326, -0.1468479037284851, 0.05004598945379257, 0.5077634453773499, -0.17538031935691833, -0.01578528620302677, -0.18642692267894745, -0.400614470243454, -0.27539771795272827, 0.16431479156017303, -0.464242547750473, -0.13692706823349, -0.38493067026138306, 0.3247584402561188, 0.06956310570240021, 0.2584396302700043, 0.4160756766796112, -0.0507136732339859, 0.3513422906398773, -0.14067181944847107, 0.06877176463603973, -0.23041218519210815, -0.11907560378313065, -0.0627371072769165, 0.4409618079662323, -0.22047249972820282, 0.08683190494775772, 0.15672901272773743, -0.319557785987854, -0.21350941061973572, -0.1457148790359497, 0.1469896137714386, -0.08082167059183121, 0.12557418644428253, 0.05964236706495285, 0.5084345936775208, -0.12339837849140167, -0.23237629234790802, 0.1721094250679016, 0.08990707248449326, -0.05887235701084137, -0.03730016201734543, 0.023293595761060715, 0.1553845852613449, 0.05408887937664986, -0.2931138873100281, -0.17975716292858124, -0.5081841349601746, 0.40148013830184937, -0.03389136120676994, 0.1513628363609314, 0.3279181122779846, 0.1617625504732132, 0.11561520397663116, -0.12136584520339966, 0.08944830298423767, -0.16215060651302338, 0.01602005586028099, 0.3207913935184479, -0.14882585406303406, -0.211435005068779, -0.029063818976283073, 0.06273792684078217, 0.30630362033843994, 0.2301856130361557, -0.6157580614089966, -0.020910482853651047, -0.1136818677186966, -0.010894469916820526, -0.058850862085819244, 0.28631162643432617, 0.39138004183769226, 0.07892115414142609, 0.10780012607574463, 0.1375889778137207, -0.16775768995285034, 0.09490680694580078, -0.040983036160469055, 0.32489728927612305, 0.22007933259010315, 0.523425817489624, 0.06372655928134918, 0.838448703289032, 0.3419643044471741, 0.18714043498039246, 0.2288258820772171, -0.022065991535782814, 0.08356426656246185, 0.004970185458660126, -0.34818705916404724, -0.008208994753658772, -0.03689675033092499, 0.06199977546930313, 0.166143000125885, 0.008754870854318142, -0.3374429941177368, -0.16767233610153198, -0.35052865743637085, 0.04599033296108246, -0.3771669566631317, 0.2698536217212677, 0.1751250922679901, 0.36742350459098816, -0.08383555710315704, -0.08241311460733414, 0.023161564022302628, -0.3515780568122864, 0.19453319907188416, 0.21353211998939514, -0.017528630793094635, 0.021124035120010376, -0.11370822787284851, -0.3958893120288849, -0.6405460834503174, 0.11820420622825623, -0.1544019728899002, 0.06298001855611801, -0.10384844988584518, 0.0933978334069252, 0.060051754117012024, 0.15830756723880768, 0.7553266882896423, 0.005923646502196789, -0.30729252099990845, -0.046126656234264374, -0.2609424591064453, -0.5063744783401489, 0.21378390491008759, -0.1841566115617752, 0.344156950712204, 0.1433890163898468, 0.520553469657898, -0.36160171031951904, -0.09813395887613297, 0.32128769159317017, 0.3747147023677826, -0.21708260476589203, -0.2046922892332077, -0.1343318372964859, -0.2551262080669403, -0.6043946743011475, 0.004102058708667755, 0.054568856954574585, 0.19344864785671234, 0.49645256996154785, 0.20445604622364044, 0.052669115364551544, -0.05089747905731201, 0.13719363510608673, -0.05337563157081604, 0.3105927109718323, 0.11065413057804108, 0.1008518636226654, 0.13450422883033752, -0.15806804597377777, 0.3764188289642334, 0.29390791058540344, 0.07169057428836823, -0.3797556757926941, -0.09978538006544113, 0.05762171372771263, 0.2523960471153259, -0.06275585293769836, -0.013914945535361767, 0.003833949565887451, 0.026899214833974838, 0.17809507250785828, -0.09977521747350693, 0.13221970200538635, 0.1875683069229126, 0.08740754425525665, -0.45114561915397644, -0.4366306662559509, 0.3414418697357178, 0.19970457255840302, 0.15969397127628326, 0.3301560580730438, -0.14244449138641357, -0.5566366910934448, 0.32534098625183105, 0.35895806550979614, 0.9608318209648132, -0.35514843463897705, 0.39372777938842773, 0.09621825814247131, 0.21176515519618988, 0.6567654013633728, -0.47514021396636963, 0.3529614210128784, -0.3699403405189514, -0.08157602697610855, 0.043174877762794495, -0.13309967517852783, 0.1379615068435669, -0.01723291724920273, -0.4360865652561188, 0.2891327142715454, 0.0913323163986206, -0.039827536791563034, -0.18405866622924805, 0.38837021589279175, 0.11244750022888184, -0.4811996817588806, -0.18418675661087036, 0.03195121884346008, -0.1269843727350235, 0.24396701157093048, -0.045603230595588684, -0.027440320700407028, 0.11567527055740356, -0.11502759158611298, -0.39240384101867676, -0.0374513603746891, -0.4836359918117523, 0.3076912760734558, -0.25178319215774536, 0.0015956908464431763, 0.40474608540534973, 0.3928065598011017, 0.010181158781051636, 0.3698488473892212, -0.1340501457452774, 0.01052664965391159, -0.36008137464523315, -0.2767649292945862, -0.1850566416978836, 0.06766442954540253, 0.24240441620349884, -0.19374218583106995, -0.10712729394435883, 0.07636000216007233, -0.039947088807821274, -0.19824141263961792, -0.21035325527191162, -0.031876951456069946, -0.12981931865215302, -0.2045653760433197, -0.2123928815126419, 0.013283900916576385, -0.3584759831428528, -0.018619989976286888, 0.045863229781389236, 0.010847073048353195, -0.33783623576164246, 0.3286835551261902, 0.14236262440681458, -0.4008425772190094, 0.03074016235768795, 0.4164580702781677, 0.34854400157928467, 0.16058549284934998, 0.7200256586074829, 0.3232615292072296, -0.24563874304294586, -0.16185954213142395, -0.08247315883636475, -0.02533613331615925, -0.3048340976238251, 0.21009275317192078, 0.08375515788793564, 0.10605370998382568, -0.3066007196903229, -0.00037728995084762573, 0.12854324281215668, 0.045235540717840195, 0.036389101296663284, -0.30439794063568115, -0.5602001547813416, 0.20824985206127167, -0.010477691888809204, 0.03649932146072388, 0.2368941605091095, 0.022190827876329422, 0.029531529173254967, 0.24801506102085114, -0.15663054585456848, 0.020053846761584282, -0.16914232075214386, 0.2507920265197754, 0.24381892383098602, -0.11168656498193741, 0.10324367880821228, -0.0129493847489357, -0.00433901883661747, 0.15931078791618347, -0.015023648738861084, -0.12695249915122986, 0.045481566339731216, 0.15326252579689026, -0.02685132622718811, -0.2777852714061737, -0.09635823220014572, -0.5430380702018738, -0.015896983444690704, -0.30399325489997864, 0.011127669364213943, 0.02127949893474579, -0.1362699270248413, 0.1109776645898819, 0.20190317928791046, -0.2731657922267914, -0.06302572786808014, 0.27926215529441833, -0.022164739668369293, -0.05075278878211975, 0.16587083041667938, 0.2017493098974228, 0.09379894286394119, -0.15707387030124664, -0.5362305045127869, 0.05583462119102478, -0.08433611690998077, -0.02662789821624756, 0.10199372470378876, -0.11428505182266235, -0.39937615394592285, 0.3194222152233124, 0.09046699851751328, 0.15101370215415955, -0.14232775568962097, 0.20684130489826202, 0.20045143365859985, 0.008968832902610302, -0.19372668862342834, -0.041856102645397186, 0.33019840717315674, -0.2920086085796356, -0.05059781298041344, 0.3277897536754608, -0.1311674416065216, 0.04534521698951721, -0.029958173632621765, 0.13115838170051575, 0.35880255699157715, -0.07343093305826187, 0.322617769241333, 0.00615822896361351, -0.08348429203033447, -0.016720641404390335, 0.1939016580581665, 0.40572765469551086, 0.25870269536972046, 0.20438598096370697, -0.15563836693763733, 0.03763870894908905, -0.10587217658758163, -0.25482285022735596, 0.0379435271024704, -0.08367171138525009, 0.1414894163608551, 0.418973445892334, -0.17759135365486145, 0.15922003984451294, -0.19391322135925293, 0.17801788449287415, 0.18459680676460266, -0.27455827593803406, 0.07877687364816666, 0.29847145080566406, -0.21168732643127441, 0.04647519811987877, 0.1499892622232437, -0.11578129976987839, -0.06578820198774338, 0.14178557693958282, 0.07711386680603027, -0.6087396144866943, 0.45919570326805115, 0.14678677916526794, -0.22065119445323944, -0.14092658460140228, 0.27736514806747437, 0.4522537887096405, 0.07107841968536377, -0.3053988516330719, 0.057593934237957, 0.026987627148628235, 0.13658858835697174, -0.3318271338939667, 0.30944588780403137, 0.4621615707874298, 0.291585236787796, -0.19562369585037231, 0.25357285141944885, -0.1581636369228363, -0.012619178742170334, 0.015426024794578552, -0.023688942193984985, 0.11646571755409241, 0.2165057510137558, 0.11305473744869232, -0.010932743549346924, -0.0586271658539772, -0.15109537541866302, 0.16302041709423065, 0.14252081513404846, -0.22791624069213867, -0.38114219903945923, -0.0991920679807663, -0.17108914256095886, -0.0140402652323246, -0.011569984257221222, -0.5901711583137512, 0.2826707363128662, 0.5286229848861694, -0.13806666433811188, 0.08121021836996078, 0.020233072340488434, 0.013729635626077652, -0.031966160982847214, 0.48462361097335815, 0.20302323997020721, -0.03308061510324478, -0.48141664266586304, -0.31778115034103394, -0.41507598757743835, 0.024107620120048523, -0.3297812342643738, 0.0040629711002111435, -0.07540751248598099, 0.11538772284984589, -0.04735589772462845, 0.04659399017691612, 0.04862751066684723, -0.36422446370124817, -0.04351806640625, 0.17761433124542236, -0.15607206523418427, -0.255337119102478, -0.12738993763923645, 0.17875955998897552, 0.17938879132270813, -0.19811436533927917, 0.2631118893623352, 0.008783654309809208, -0.13983768224716187, -0.3518664240837097, 0.13386821746826172, 0.050196629017591476, 0.1779215782880783, 0.15763550996780396, 0.061005473136901855, 0.3895051181316376, 0.004085347056388855, -0.24227122962474823, 0.02581563964486122, 0.00026921601966023445, -0.09981406480073929, 0.14134067296981812, 0.12945717573165894, 0.3691283166408539, -0.40976518392562866, -0.38277944922447205, -0.432793527841568, 0.28977444767951965, -0.06378474086523056, -0.11976833641529083, -0.035079725086688995, -0.037601880729198456, 0.25265347957611084, 0.06882907450199127, 0.0636017695069313, 0.15866592526435852, -0.0656890943646431, -0.00033470429480075836, -0.45090389251708984, -0.26157206296920776, 0.45988529920578003, -0.4583001434803009, -0.3856022357940674, -0.08609998226165771, -0.09503522515296936, -0.14593616127967834, -0.1394125521183014, -0.7795306444168091, 0.09105934947729111, 0.29441165924072266, 0.09553072601556778, -0.42246901988983154, 0.03149568289518356, -0.1058146059513092, 0.12016618251800537, -0.12562602758407593, 0.33654993772506714, -0.09009487181901932, -0.43250614404678345, 0.16513080894947052, -0.2077716439962387 ]
https://github.com/huggingface/datasets/issues/1990
OSError: Memory mapping file failed: Cannot allocate memory
I noticed that the error happens when loading the validation dataset. What value of `data_args.validation_split_percentage` did you use ?
Hi, I am trying to run a code with a wikipedia dataset, here is the command to reproduce the error. You can find the codes for run_mlm.py in huggingface repo here: https://github.com/huggingface/transformers/blob/v4.3.2/examples/language-modeling/run_mlm.py ``` python run_mlm.py --model_name_or_path bert-base-multilingual-cased --dataset_name wikipedia --dataset_config_name 20200501.en --do_train --do_eval --output_dir /dara/test --max_seq_length 128 ``` I am using transformer version: 4.3.2 But I got memory erorr using this dataset, is there a way I could save on memory with dataset library with wikipedia dataset? Specially I need to train a model with multiple of wikipedia datasets concatenated. thank you very much @lhoestq for your help and suggestions: ``` File "run_mlm.py", line 441, in <module> main() File "run_mlm.py", line 233, in main split=f"train[{data_args.validation_split_percentage}%:]", File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/load.py", line 750, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 740, in as_dataset map_tuple=True, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 757, in _build_single_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 829, in _as_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 322, in read_table stream = stream_from(filename) File "pyarrow/io.pxi", line 782, in pyarrow.lib.memory_map File "pyarrow/io.pxi", line 743, in pyarrow.lib.MemoryMappedFile._open File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Memory mapping file failed: Cannot allocate memory ```
19
OSError: Memory mapping file failed: Cannot allocate memory Hi, I am trying to run a code with a wikipedia dataset, here is the command to reproduce the error. You can find the codes for run_mlm.py in huggingface repo here: https://github.com/huggingface/transformers/blob/v4.3.2/examples/language-modeling/run_mlm.py ``` python run_mlm.py --model_name_or_path bert-base-multilingual-cased --dataset_name wikipedia --dataset_config_name 20200501.en --do_train --do_eval --output_dir /dara/test --max_seq_length 128 ``` I am using transformer version: 4.3.2 But I got memory erorr using this dataset, is there a way I could save on memory with dataset library with wikipedia dataset? Specially I need to train a model with multiple of wikipedia datasets concatenated. thank you very much @lhoestq for your help and suggestions: ``` File "run_mlm.py", line 441, in <module> main() File "run_mlm.py", line 233, in main split=f"train[{data_args.validation_split_percentage}%:]", File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/load.py", line 750, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 740, in as_dataset map_tuple=True, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 757, in _build_single_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 829, in _as_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 322, in read_table stream = stream_from(filename) File "pyarrow/io.pxi", line 782, in pyarrow.lib.memory_map File "pyarrow/io.pxi", line 743, in pyarrow.lib.MemoryMappedFile._open File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Memory mapping file failed: Cannot allocate memory ``` I noticed that the error happens when loading the validation dataset. What value of `data_args.validation_split_percentage` did you use ?
[ -0.2615421712398529, -0.03726428747177124, 0.05204015597701073, 0.6045715808868408, 0.4538375735282898, 0.283401221036911, 0.14564360678195953, 0.27246689796447754, 0.17855072021484375, 0.10566090792417526, -0.058184199035167694, 0.227386012673378, -0.177118182182312, -0.14591683447360992, -0.037090182304382324, -0.1933314949274063, 0.08402088284492493, 0.013471484184265137, -0.5429402589797974, 0.16046880185604095, -0.3581552803516388, 0.11570590734481812, -0.18563270568847656, -0.11716026067733765, -0.29803746938705444, -0.10351630300283432, -0.0006043799221515656, -0.09763110429048538, 0.018877994269132614, -0.327409029006958, 0.2548563778400421, -0.1293889731168747, 0.08640075474977493, 0.5501936674118042, -0.00012316074571572244, -0.013776227831840515, 0.2835690975189209, -0.1672084629535675, -0.2533998191356659, -0.12841589748859406, -0.04165663570165634, -0.029798559844493866, 0.09849677979946136, -0.22525039315223694, -0.01192392222583294, -0.05259288474917412, 0.23173043131828308, -0.34451425075531006, 0.44297468662261963, 0.2243882119655609, 0.14049464464187622, 0.06996511667966843, 0.45245224237442017, -0.04411257430911064, 0.17390726506710052, 0.3341216444969177, 0.07138047367334366, 0.3320227563381195, -0.29087117314338684, -0.4356871247291565, -0.03041280061006546, 0.39305034279823303, -0.0399409756064415, 0.005287520587444305, 0.5653292536735535, -0.14458361268043518, 0.025353118777275085, -0.33681750297546387, 0.11230871081352234, -0.007249429821968079, 0.5341091752052307, -0.4902603328227997, -0.028372643515467644, -0.014787252992391586, -0.053383439779281616, -0.09523989260196686, 0.29709821939468384, 0.26895251870155334, -0.2722629904747009, -0.14476057887077332, -0.1304170936346054, -0.32499849796295166, -0.3197004497051239, 0.44286876916885376, -0.09092172980308533, 0.19100093841552734, -0.024715948849916458, 0.3037818968296051, 0.5653706192970276, -0.2050899863243103, -0.23406215012073517, -0.07581231743097305, 0.13654348254203796, 0.3287966847419739, -0.2677210867404938, -0.16602899134159088, -0.302948921918869, -0.20470955967903137, 0.35113731026649475, -0.4987059235572815, -0.38619330525398254, -0.1260005533695221, 0.1516697257757187, 0.021239202469587326, 0.4036456346511841, 0.2817353308200836, -0.29636600613594055, 0.32283714413642883, 0.312296986579895, 0.17427153885364532, -0.24953767657279968, -0.15898960828781128, 0.07679539173841476, -0.03737843781709671, -0.11104987561702728, -0.19148299098014832, 0.08377417176961899, -0.001654159277677536, -0.01374551746994257, -0.021803636103868484, -0.21283161640167236, -0.1232089176774025, -0.05384937301278114, 0.5055232644081116, -0.10408411175012589, -0.08461867272853851, 0.37382763624191284, 0.14445945620536804, -0.012684369459748268, -0.00807699654251337, -0.05637501925230026, 0.4104226529598236, -0.3436274230480194, 0.28430673480033875, 0.050263870507478714, -0.0011583846062421799, 0.32634127140045166, -0.07270558178424835, -0.03312848508358002, -0.05668150261044502, 0.16204479336738586, -0.3580230474472046, 0.008711151778697968, 0.18468788266181946, 0.17885611951351166, 0.2493291050195694, 0.250351220369339, -0.14798587560653687, -0.1526843011379242, 0.19699668884277344, -0.16346779465675354, -0.24330344796180725, 0.03873647376894951, 0.0109291672706604, 0.09801338613033295, 0.2277470827102661, -0.2775138318538666, 0.18281039595603943, 0.6528615355491638, -0.07751546800136566, -0.057264961302280426, -0.08019676059484482, -0.22966843843460083, -0.1687687337398529, 0.2708781361579895, 0.5193134546279907, -0.06465340405702591, -0.10548350214958191, -0.11696977913379669, 0.1677045375108719, 0.25101226568222046, 0.4413837194442749, -0.1638229787349701, 0.2519155442714691, -0.09722165763378143, 0.016798384487628937, 0.4141837954521179, -0.31050920486450195, -0.34190383553504944, -0.005623938515782356, -0.025229312479496002, -0.13432259857654572, 0.023277699947357178, 0.13213112950325012, 0.07739974558353424, 0.11566591262817383, 0.11192552000284195, 0.3104182481765747, 0.05610337108373642, 0.2800839841365814, -0.30419835448265076, -0.2975761890411377, 0.25286900997161865, 0.07474641501903534, 0.06539662182331085, -0.20408308506011963, -0.06084928661584854, 0.8107677698135376, 0.29729515314102173, -0.26231226325035095, 0.15553468465805054, 0.3147749900817871, 0.10613708198070526, 0.006436236202716827, 0.0871192067861557, -0.21991276741027832, -0.25144779682159424, -0.07342473417520523, -0.056699033826589584, 0.3305933177471161, -0.14518894255161285, -0.04148092493414879, 0.15372234582901, -0.11867091059684753, -0.1722494214773178, -0.3908625543117523, 0.06229545176029205, 0.013073869049549103, 0.1235823929309845, 0.09008446335792542, 0.08106058835983276, 0.056008659303188324, -0.09396987408399582, 0.2478926181793213, -0.5998018383979797, 0.17150281369686127, -0.2896076440811157, -0.10769426822662354, -0.021439971402287483, -0.06249145418405533, 0.027415141463279724, -0.047465451061725616, -0.06855573505163193, 0.15199288725852966, 0.07713457196950912, -0.1671151965856552, -0.09068470448255539, 0.0034199804067611694, 0.31010955572128296, -0.3221142888069153, 0.16570566594600677, 0.2421719878911972, 0.19550471007823944, -0.09402269870042801, -0.19769614934921265, -0.15587864816188812, 0.10513409972190857, 0.36472123861312866, 0.0791877806186676, 0.16877515614032745, 0.026240641251206398, 0.08954767882823944, 0.17978620529174805, -0.2070019394159317, 0.21816344559192657, 0.012355413287878036, 0.24088455736637115, 0.09500669687986374, -0.029394622892141342, -0.30973294377326965, 0.4583241641521454, 0.2681969702243805, 0.27729934453964233, 0.2424817681312561, -0.4937294125556946, -0.07404258847236633, -0.06565145403146744, -0.07185489684343338, 0.3221563994884491, 0.05007864162325859, -0.11956436932086945, 0.12015479803085327, 0.19633790850639343, 0.00970306433737278, 0.30975955724716187, 0.17438873648643494, 0.49407798051834106, -0.01870843768119812, 0.10572294890880585, -0.08063475787639618, -0.09958694875240326, -0.1468479037284851, 0.05004598945379257, 0.5077634453773499, -0.17538031935691833, -0.01578528620302677, -0.18642692267894745, -0.400614470243454, -0.27539771795272827, 0.16431479156017303, -0.464242547750473, -0.13692706823349, -0.38493067026138306, 0.3247584402561188, 0.06956310570240021, 0.2584396302700043, 0.4160756766796112, -0.0507136732339859, 0.3513422906398773, -0.14067181944847107, 0.06877176463603973, -0.23041218519210815, -0.11907560378313065, -0.0627371072769165, 0.4409618079662323, -0.22047249972820282, 0.08683190494775772, 0.15672901272773743, -0.319557785987854, -0.21350941061973572, -0.1457148790359497, 0.1469896137714386, -0.08082167059183121, 0.12557418644428253, 0.05964236706495285, 0.5084345936775208, -0.12339837849140167, -0.23237629234790802, 0.1721094250679016, 0.08990707248449326, -0.05887235701084137, -0.03730016201734543, 0.023293595761060715, 0.1553845852613449, 0.05408887937664986, -0.2931138873100281, -0.17975716292858124, -0.5081841349601746, 0.40148013830184937, -0.03389136120676994, 0.1513628363609314, 0.3279181122779846, 0.1617625504732132, 0.11561520397663116, -0.12136584520339966, 0.08944830298423767, -0.16215060651302338, 0.01602005586028099, 0.3207913935184479, -0.14882585406303406, -0.211435005068779, -0.029063818976283073, 0.06273792684078217, 0.30630362033843994, 0.2301856130361557, -0.6157580614089966, -0.020910482853651047, -0.1136818677186966, -0.010894469916820526, -0.058850862085819244, 0.28631162643432617, 0.39138004183769226, 0.07892115414142609, 0.10780012607574463, 0.1375889778137207, -0.16775768995285034, 0.09490680694580078, -0.040983036160469055, 0.32489728927612305, 0.22007933259010315, 0.523425817489624, 0.06372655928134918, 0.838448703289032, 0.3419643044471741, 0.18714043498039246, 0.2288258820772171, -0.022065991535782814, 0.08356426656246185, 0.004970185458660126, -0.34818705916404724, -0.008208994753658772, -0.03689675033092499, 0.06199977546930313, 0.166143000125885, 0.008754870854318142, -0.3374429941177368, -0.16767233610153198, -0.35052865743637085, 0.04599033296108246, -0.3771669566631317, 0.2698536217212677, 0.1751250922679901, 0.36742350459098816, -0.08383555710315704, -0.08241311460733414, 0.023161564022302628, -0.3515780568122864, 0.19453319907188416, 0.21353211998939514, -0.017528630793094635, 0.021124035120010376, -0.11370822787284851, -0.3958893120288849, -0.6405460834503174, 0.11820420622825623, -0.1544019728899002, 0.06298001855611801, -0.10384844988584518, 0.0933978334069252, 0.060051754117012024, 0.15830756723880768, 0.7553266882896423, 0.005923646502196789, -0.30729252099990845, -0.046126656234264374, -0.2609424591064453, -0.5063744783401489, 0.21378390491008759, -0.1841566115617752, 0.344156950712204, 0.1433890163898468, 0.520553469657898, -0.36160171031951904, -0.09813395887613297, 0.32128769159317017, 0.3747147023677826, -0.21708260476589203, -0.2046922892332077, -0.1343318372964859, -0.2551262080669403, -0.6043946743011475, 0.004102058708667755, 0.054568856954574585, 0.19344864785671234, 0.49645256996154785, 0.20445604622364044, 0.052669115364551544, -0.05089747905731201, 0.13719363510608673, -0.05337563157081604, 0.3105927109718323, 0.11065413057804108, 0.1008518636226654, 0.13450422883033752, -0.15806804597377777, 0.3764188289642334, 0.29390791058540344, 0.07169057428836823, -0.3797556757926941, -0.09978538006544113, 0.05762171372771263, 0.2523960471153259, -0.06275585293769836, -0.013914945535361767, 0.003833949565887451, 0.026899214833974838, 0.17809507250785828, -0.09977521747350693, 0.13221970200538635, 0.1875683069229126, 0.08740754425525665, -0.45114561915397644, -0.4366306662559509, 0.3414418697357178, 0.19970457255840302, 0.15969397127628326, 0.3301560580730438, -0.14244449138641357, -0.5566366910934448, 0.32534098625183105, 0.35895806550979614, 0.9608318209648132, -0.35514843463897705, 0.39372777938842773, 0.09621825814247131, 0.21176515519618988, 0.6567654013633728, -0.47514021396636963, 0.3529614210128784, -0.3699403405189514, -0.08157602697610855, 0.043174877762794495, -0.13309967517852783, 0.1379615068435669, -0.01723291724920273, -0.4360865652561188, 0.2891327142715454, 0.0913323163986206, -0.039827536791563034, -0.18405866622924805, 0.38837021589279175, 0.11244750022888184, -0.4811996817588806, -0.18418675661087036, 0.03195121884346008, -0.1269843727350235, 0.24396701157093048, -0.045603230595588684, -0.027440320700407028, 0.11567527055740356, -0.11502759158611298, -0.39240384101867676, -0.0374513603746891, -0.4836359918117523, 0.3076912760734558, -0.25178319215774536, 0.0015956908464431763, 0.40474608540534973, 0.3928065598011017, 0.010181158781051636, 0.3698488473892212, -0.1340501457452774, 0.01052664965391159, -0.36008137464523315, -0.2767649292945862, -0.1850566416978836, 0.06766442954540253, 0.24240441620349884, -0.19374218583106995, -0.10712729394435883, 0.07636000216007233, -0.039947088807821274, -0.19824141263961792, -0.21035325527191162, -0.031876951456069946, -0.12981931865215302, -0.2045653760433197, -0.2123928815126419, 0.013283900916576385, -0.3584759831428528, -0.018619989976286888, 0.045863229781389236, 0.010847073048353195, -0.33783623576164246, 0.3286835551261902, 0.14236262440681458, -0.4008425772190094, 0.03074016235768795, 0.4164580702781677, 0.34854400157928467, 0.16058549284934998, 0.7200256586074829, 0.3232615292072296, -0.24563874304294586, -0.16185954213142395, -0.08247315883636475, -0.02533613331615925, -0.3048340976238251, 0.21009275317192078, 0.08375515788793564, 0.10605370998382568, -0.3066007196903229, -0.00037728995084762573, 0.12854324281215668, 0.045235540717840195, 0.036389101296663284, -0.30439794063568115, -0.5602001547813416, 0.20824985206127167, -0.010477691888809204, 0.03649932146072388, 0.2368941605091095, 0.022190827876329422, 0.029531529173254967, 0.24801506102085114, -0.15663054585456848, 0.020053846761584282, -0.16914232075214386, 0.2507920265197754, 0.24381892383098602, -0.11168656498193741, 0.10324367880821228, -0.0129493847489357, -0.00433901883661747, 0.15931078791618347, -0.015023648738861084, -0.12695249915122986, 0.045481566339731216, 0.15326252579689026, -0.02685132622718811, -0.2777852714061737, -0.09635823220014572, -0.5430380702018738, -0.015896983444690704, -0.30399325489997864, 0.011127669364213943, 0.02127949893474579, -0.1362699270248413, 0.1109776645898819, 0.20190317928791046, -0.2731657922267914, -0.06302572786808014, 0.27926215529441833, -0.022164739668369293, -0.05075278878211975, 0.16587083041667938, 0.2017493098974228, 0.09379894286394119, -0.15707387030124664, -0.5362305045127869, 0.05583462119102478, -0.08433611690998077, -0.02662789821624756, 0.10199372470378876, -0.11428505182266235, -0.39937615394592285, 0.3194222152233124, 0.09046699851751328, 0.15101370215415955, -0.14232775568962097, 0.20684130489826202, 0.20045143365859985, 0.008968832902610302, -0.19372668862342834, -0.041856102645397186, 0.33019840717315674, -0.2920086085796356, -0.05059781298041344, 0.3277897536754608, -0.1311674416065216, 0.04534521698951721, -0.029958173632621765, 0.13115838170051575, 0.35880255699157715, -0.07343093305826187, 0.322617769241333, 0.00615822896361351, -0.08348429203033447, -0.016720641404390335, 0.1939016580581665, 0.40572765469551086, 0.25870269536972046, 0.20438598096370697, -0.15563836693763733, 0.03763870894908905, -0.10587217658758163, -0.25482285022735596, 0.0379435271024704, -0.08367171138525009, 0.1414894163608551, 0.418973445892334, -0.17759135365486145, 0.15922003984451294, -0.19391322135925293, 0.17801788449287415, 0.18459680676460266, -0.27455827593803406, 0.07877687364816666, 0.29847145080566406, -0.21168732643127441, 0.04647519811987877, 0.1499892622232437, -0.11578129976987839, -0.06578820198774338, 0.14178557693958282, 0.07711386680603027, -0.6087396144866943, 0.45919570326805115, 0.14678677916526794, -0.22065119445323944, -0.14092658460140228, 0.27736514806747437, 0.4522537887096405, 0.07107841968536377, -0.3053988516330719, 0.057593934237957, 0.026987627148628235, 0.13658858835697174, -0.3318271338939667, 0.30944588780403137, 0.4621615707874298, 0.291585236787796, -0.19562369585037231, 0.25357285141944885, -0.1581636369228363, -0.012619178742170334, 0.015426024794578552, -0.023688942193984985, 0.11646571755409241, 0.2165057510137558, 0.11305473744869232, -0.010932743549346924, -0.0586271658539772, -0.15109537541866302, 0.16302041709423065, 0.14252081513404846, -0.22791624069213867, -0.38114219903945923, -0.0991920679807663, -0.17108914256095886, -0.0140402652323246, -0.011569984257221222, -0.5901711583137512, 0.2826707363128662, 0.5286229848861694, -0.13806666433811188, 0.08121021836996078, 0.020233072340488434, 0.013729635626077652, -0.031966160982847214, 0.48462361097335815, 0.20302323997020721, -0.03308061510324478, -0.48141664266586304, -0.31778115034103394, -0.41507598757743835, 0.024107620120048523, -0.3297812342643738, 0.0040629711002111435, -0.07540751248598099, 0.11538772284984589, -0.04735589772462845, 0.04659399017691612, 0.04862751066684723, -0.36422446370124817, -0.04351806640625, 0.17761433124542236, -0.15607206523418427, -0.255337119102478, -0.12738993763923645, 0.17875955998897552, 0.17938879132270813, -0.19811436533927917, 0.2631118893623352, 0.008783654309809208, -0.13983768224716187, -0.3518664240837097, 0.13386821746826172, 0.050196629017591476, 0.1779215782880783, 0.15763550996780396, 0.061005473136901855, 0.3895051181316376, 0.004085347056388855, -0.24227122962474823, 0.02581563964486122, 0.00026921601966023445, -0.09981406480073929, 0.14134067296981812, 0.12945717573165894, 0.3691283166408539, -0.40976518392562866, -0.38277944922447205, -0.432793527841568, 0.28977444767951965, -0.06378474086523056, -0.11976833641529083, -0.035079725086688995, -0.037601880729198456, 0.25265347957611084, 0.06882907450199127, 0.0636017695069313, 0.15866592526435852, -0.0656890943646431, -0.00033470429480075836, -0.45090389251708984, -0.26157206296920776, 0.45988529920578003, -0.4583001434803009, -0.3856022357940674, -0.08609998226165771, -0.09503522515296936, -0.14593616127967834, -0.1394125521183014, -0.7795306444168091, 0.09105934947729111, 0.29441165924072266, 0.09553072601556778, -0.42246901988983154, 0.03149568289518356, -0.1058146059513092, 0.12016618251800537, -0.12562602758407593, 0.33654993772506714, -0.09009487181901932, -0.43250614404678345, 0.16513080894947052, -0.2077716439962387 ]
https://github.com/huggingface/datasets/issues/1990
OSError: Memory mapping file failed: Cannot allocate memory
Dear @lhoestq thank you very much for the very sharp observation, indeed, this happens there, I use the default value of 5, I basically plan to subsample a part of the large dataset and choose it as validation set. Do you think this is bringing the data into memory during subsampling? Is there a way I could avoid this? Thank you very much for the great help. On Mon, Mar 8, 2021 at 11:28 AM Quentin Lhoest ***@***.***> wrote: > I noticed that the error happens when loading the validation dataset. > What value of data_args.validation_split_percentage did you use ? > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/1990#issuecomment-792655644>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AS37NMS337ZUJ7HGGVVCCR3TCSREFANCNFSM4YTYAQ2A> > . >
Hi, I am trying to run a code with a wikipedia dataset, here is the command to reproduce the error. You can find the codes for run_mlm.py in huggingface repo here: https://github.com/huggingface/transformers/blob/v4.3.2/examples/language-modeling/run_mlm.py ``` python run_mlm.py --model_name_or_path bert-base-multilingual-cased --dataset_name wikipedia --dataset_config_name 20200501.en --do_train --do_eval --output_dir /dara/test --max_seq_length 128 ``` I am using transformer version: 4.3.2 But I got memory erorr using this dataset, is there a way I could save on memory with dataset library with wikipedia dataset? Specially I need to train a model with multiple of wikipedia datasets concatenated. thank you very much @lhoestq for your help and suggestions: ``` File "run_mlm.py", line 441, in <module> main() File "run_mlm.py", line 233, in main split=f"train[{data_args.validation_split_percentage}%:]", File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/load.py", line 750, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 740, in as_dataset map_tuple=True, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 757, in _build_single_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 829, in _as_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 322, in read_table stream = stream_from(filename) File "pyarrow/io.pxi", line 782, in pyarrow.lib.memory_map File "pyarrow/io.pxi", line 743, in pyarrow.lib.MemoryMappedFile._open File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Memory mapping file failed: Cannot allocate memory ```
133
OSError: Memory mapping file failed: Cannot allocate memory Hi, I am trying to run a code with a wikipedia dataset, here is the command to reproduce the error. You can find the codes for run_mlm.py in huggingface repo here: https://github.com/huggingface/transformers/blob/v4.3.2/examples/language-modeling/run_mlm.py ``` python run_mlm.py --model_name_or_path bert-base-multilingual-cased --dataset_name wikipedia --dataset_config_name 20200501.en --do_train --do_eval --output_dir /dara/test --max_seq_length 128 ``` I am using transformer version: 4.3.2 But I got memory erorr using this dataset, is there a way I could save on memory with dataset library with wikipedia dataset? Specially I need to train a model with multiple of wikipedia datasets concatenated. thank you very much @lhoestq for your help and suggestions: ``` File "run_mlm.py", line 441, in <module> main() File "run_mlm.py", line 233, in main split=f"train[{data_args.validation_split_percentage}%:]", File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/load.py", line 750, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 740, in as_dataset map_tuple=True, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 757, in _build_single_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 829, in _as_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 322, in read_table stream = stream_from(filename) File "pyarrow/io.pxi", line 782, in pyarrow.lib.memory_map File "pyarrow/io.pxi", line 743, in pyarrow.lib.MemoryMappedFile._open File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Memory mapping file failed: Cannot allocate memory ``` Dear @lhoestq thank you very much for the very sharp observation, indeed, this happens there, I use the default value of 5, I basically plan to subsample a part of the large dataset and choose it as validation set. Do you think this is bringing the data into memory during subsampling? Is there a way I could avoid this? Thank you very much for the great help. On Mon, Mar 8, 2021 at 11:28 AM Quentin Lhoest ***@***.***> wrote: > I noticed that the error happens when loading the validation dataset. > What value of data_args.validation_split_percentage did you use ? > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/1990#issuecomment-792655644>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AS37NMS337ZUJ7HGGVVCCR3TCSREFANCNFSM4YTYAQ2A> > . >
[ -0.2615421712398529, -0.03726428747177124, 0.05204015597701073, 0.6045715808868408, 0.4538375735282898, 0.283401221036911, 0.14564360678195953, 0.27246689796447754, 0.17855072021484375, 0.10566090792417526, -0.058184199035167694, 0.227386012673378, -0.177118182182312, -0.14591683447360992, -0.037090182304382324, -0.1933314949274063, 0.08402088284492493, 0.013471484184265137, -0.5429402589797974, 0.16046880185604095, -0.3581552803516388, 0.11570590734481812, -0.18563270568847656, -0.11716026067733765, -0.29803746938705444, -0.10351630300283432, -0.0006043799221515656, -0.09763110429048538, 0.018877994269132614, -0.327409029006958, 0.2548563778400421, -0.1293889731168747, 0.08640075474977493, 0.5501936674118042, -0.00012316074571572244, -0.013776227831840515, 0.2835690975189209, -0.1672084629535675, -0.2533998191356659, -0.12841589748859406, -0.04165663570165634, -0.029798559844493866, 0.09849677979946136, -0.22525039315223694, -0.01192392222583294, -0.05259288474917412, 0.23173043131828308, -0.34451425075531006, 0.44297468662261963, 0.2243882119655609, 0.14049464464187622, 0.06996511667966843, 0.45245224237442017, -0.04411257430911064, 0.17390726506710052, 0.3341216444969177, 0.07138047367334366, 0.3320227563381195, -0.29087117314338684, -0.4356871247291565, -0.03041280061006546, 0.39305034279823303, -0.0399409756064415, 0.005287520587444305, 0.5653292536735535, -0.14458361268043518, 0.025353118777275085, -0.33681750297546387, 0.11230871081352234, -0.007249429821968079, 0.5341091752052307, -0.4902603328227997, -0.028372643515467644, -0.014787252992391586, -0.053383439779281616, -0.09523989260196686, 0.29709821939468384, 0.26895251870155334, -0.2722629904747009, -0.14476057887077332, -0.1304170936346054, -0.32499849796295166, -0.3197004497051239, 0.44286876916885376, -0.09092172980308533, 0.19100093841552734, -0.024715948849916458, 0.3037818968296051, 0.5653706192970276, -0.2050899863243103, -0.23406215012073517, -0.07581231743097305, 0.13654348254203796, 0.3287966847419739, -0.2677210867404938, -0.16602899134159088, -0.302948921918869, -0.20470955967903137, 0.35113731026649475, -0.4987059235572815, -0.38619330525398254, -0.1260005533695221, 0.1516697257757187, 0.021239202469587326, 0.4036456346511841, 0.2817353308200836, -0.29636600613594055, 0.32283714413642883, 0.312296986579895, 0.17427153885364532, -0.24953767657279968, -0.15898960828781128, 0.07679539173841476, -0.03737843781709671, -0.11104987561702728, -0.19148299098014832, 0.08377417176961899, -0.001654159277677536, -0.01374551746994257, -0.021803636103868484, -0.21283161640167236, -0.1232089176774025, -0.05384937301278114, 0.5055232644081116, -0.10408411175012589, -0.08461867272853851, 0.37382763624191284, 0.14445945620536804, -0.012684369459748268, -0.00807699654251337, -0.05637501925230026, 0.4104226529598236, -0.3436274230480194, 0.28430673480033875, 0.050263870507478714, -0.0011583846062421799, 0.32634127140045166, -0.07270558178424835, -0.03312848508358002, -0.05668150261044502, 0.16204479336738586, -0.3580230474472046, 0.008711151778697968, 0.18468788266181946, 0.17885611951351166, 0.2493291050195694, 0.250351220369339, -0.14798587560653687, -0.1526843011379242, 0.19699668884277344, -0.16346779465675354, -0.24330344796180725, 0.03873647376894951, 0.0109291672706604, 0.09801338613033295, 0.2277470827102661, -0.2775138318538666, 0.18281039595603943, 0.6528615355491638, -0.07751546800136566, -0.057264961302280426, -0.08019676059484482, -0.22966843843460083, -0.1687687337398529, 0.2708781361579895, 0.5193134546279907, -0.06465340405702591, -0.10548350214958191, -0.11696977913379669, 0.1677045375108719, 0.25101226568222046, 0.4413837194442749, -0.1638229787349701, 0.2519155442714691, -0.09722165763378143, 0.016798384487628937, 0.4141837954521179, -0.31050920486450195, -0.34190383553504944, -0.005623938515782356, -0.025229312479496002, -0.13432259857654572, 0.023277699947357178, 0.13213112950325012, 0.07739974558353424, 0.11566591262817383, 0.11192552000284195, 0.3104182481765747, 0.05610337108373642, 0.2800839841365814, -0.30419835448265076, -0.2975761890411377, 0.25286900997161865, 0.07474641501903534, 0.06539662182331085, -0.20408308506011963, -0.06084928661584854, 0.8107677698135376, 0.29729515314102173, -0.26231226325035095, 0.15553468465805054, 0.3147749900817871, 0.10613708198070526, 0.006436236202716827, 0.0871192067861557, -0.21991276741027832, -0.25144779682159424, -0.07342473417520523, -0.056699033826589584, 0.3305933177471161, -0.14518894255161285, -0.04148092493414879, 0.15372234582901, -0.11867091059684753, -0.1722494214773178, -0.3908625543117523, 0.06229545176029205, 0.013073869049549103, 0.1235823929309845, 0.09008446335792542, 0.08106058835983276, 0.056008659303188324, -0.09396987408399582, 0.2478926181793213, -0.5998018383979797, 0.17150281369686127, -0.2896076440811157, -0.10769426822662354, -0.021439971402287483, -0.06249145418405533, 0.027415141463279724, -0.047465451061725616, -0.06855573505163193, 0.15199288725852966, 0.07713457196950912, -0.1671151965856552, -0.09068470448255539, 0.0034199804067611694, 0.31010955572128296, -0.3221142888069153, 0.16570566594600677, 0.2421719878911972, 0.19550471007823944, -0.09402269870042801, -0.19769614934921265, -0.15587864816188812, 0.10513409972190857, 0.36472123861312866, 0.0791877806186676, 0.16877515614032745, 0.026240641251206398, 0.08954767882823944, 0.17978620529174805, -0.2070019394159317, 0.21816344559192657, 0.012355413287878036, 0.24088455736637115, 0.09500669687986374, -0.029394622892141342, -0.30973294377326965, 0.4583241641521454, 0.2681969702243805, 0.27729934453964233, 0.2424817681312561, -0.4937294125556946, -0.07404258847236633, -0.06565145403146744, -0.07185489684343338, 0.3221563994884491, 0.05007864162325859, -0.11956436932086945, 0.12015479803085327, 0.19633790850639343, 0.00970306433737278, 0.30975955724716187, 0.17438873648643494, 0.49407798051834106, -0.01870843768119812, 0.10572294890880585, -0.08063475787639618, -0.09958694875240326, -0.1468479037284851, 0.05004598945379257, 0.5077634453773499, -0.17538031935691833, -0.01578528620302677, -0.18642692267894745, -0.400614470243454, -0.27539771795272827, 0.16431479156017303, -0.464242547750473, -0.13692706823349, -0.38493067026138306, 0.3247584402561188, 0.06956310570240021, 0.2584396302700043, 0.4160756766796112, -0.0507136732339859, 0.3513422906398773, -0.14067181944847107, 0.06877176463603973, -0.23041218519210815, -0.11907560378313065, -0.0627371072769165, 0.4409618079662323, -0.22047249972820282, 0.08683190494775772, 0.15672901272773743, -0.319557785987854, -0.21350941061973572, -0.1457148790359497, 0.1469896137714386, -0.08082167059183121, 0.12557418644428253, 0.05964236706495285, 0.5084345936775208, -0.12339837849140167, -0.23237629234790802, 0.1721094250679016, 0.08990707248449326, -0.05887235701084137, -0.03730016201734543, 0.023293595761060715, 0.1553845852613449, 0.05408887937664986, -0.2931138873100281, -0.17975716292858124, -0.5081841349601746, 0.40148013830184937, -0.03389136120676994, 0.1513628363609314, 0.3279181122779846, 0.1617625504732132, 0.11561520397663116, -0.12136584520339966, 0.08944830298423767, -0.16215060651302338, 0.01602005586028099, 0.3207913935184479, -0.14882585406303406, -0.211435005068779, -0.029063818976283073, 0.06273792684078217, 0.30630362033843994, 0.2301856130361557, -0.6157580614089966, -0.020910482853651047, -0.1136818677186966, -0.010894469916820526, -0.058850862085819244, 0.28631162643432617, 0.39138004183769226, 0.07892115414142609, 0.10780012607574463, 0.1375889778137207, -0.16775768995285034, 0.09490680694580078, -0.040983036160469055, 0.32489728927612305, 0.22007933259010315, 0.523425817489624, 0.06372655928134918, 0.838448703289032, 0.3419643044471741, 0.18714043498039246, 0.2288258820772171, -0.022065991535782814, 0.08356426656246185, 0.004970185458660126, -0.34818705916404724, -0.008208994753658772, -0.03689675033092499, 0.06199977546930313, 0.166143000125885, 0.008754870854318142, -0.3374429941177368, -0.16767233610153198, -0.35052865743637085, 0.04599033296108246, -0.3771669566631317, 0.2698536217212677, 0.1751250922679901, 0.36742350459098816, -0.08383555710315704, -0.08241311460733414, 0.023161564022302628, -0.3515780568122864, 0.19453319907188416, 0.21353211998939514, -0.017528630793094635, 0.021124035120010376, -0.11370822787284851, -0.3958893120288849, -0.6405460834503174, 0.11820420622825623, -0.1544019728899002, 0.06298001855611801, -0.10384844988584518, 0.0933978334069252, 0.060051754117012024, 0.15830756723880768, 0.7553266882896423, 0.005923646502196789, -0.30729252099990845, -0.046126656234264374, -0.2609424591064453, -0.5063744783401489, 0.21378390491008759, -0.1841566115617752, 0.344156950712204, 0.1433890163898468, 0.520553469657898, -0.36160171031951904, -0.09813395887613297, 0.32128769159317017, 0.3747147023677826, -0.21708260476589203, -0.2046922892332077, -0.1343318372964859, -0.2551262080669403, -0.6043946743011475, 0.004102058708667755, 0.054568856954574585, 0.19344864785671234, 0.49645256996154785, 0.20445604622364044, 0.052669115364551544, -0.05089747905731201, 0.13719363510608673, -0.05337563157081604, 0.3105927109718323, 0.11065413057804108, 0.1008518636226654, 0.13450422883033752, -0.15806804597377777, 0.3764188289642334, 0.29390791058540344, 0.07169057428836823, -0.3797556757926941, -0.09978538006544113, 0.05762171372771263, 0.2523960471153259, -0.06275585293769836, -0.013914945535361767, 0.003833949565887451, 0.026899214833974838, 0.17809507250785828, -0.09977521747350693, 0.13221970200538635, 0.1875683069229126, 0.08740754425525665, -0.45114561915397644, -0.4366306662559509, 0.3414418697357178, 0.19970457255840302, 0.15969397127628326, 0.3301560580730438, -0.14244449138641357, -0.5566366910934448, 0.32534098625183105, 0.35895806550979614, 0.9608318209648132, -0.35514843463897705, 0.39372777938842773, 0.09621825814247131, 0.21176515519618988, 0.6567654013633728, -0.47514021396636963, 0.3529614210128784, -0.3699403405189514, -0.08157602697610855, 0.043174877762794495, -0.13309967517852783, 0.1379615068435669, -0.01723291724920273, -0.4360865652561188, 0.2891327142715454, 0.0913323163986206, -0.039827536791563034, -0.18405866622924805, 0.38837021589279175, 0.11244750022888184, -0.4811996817588806, -0.18418675661087036, 0.03195121884346008, -0.1269843727350235, 0.24396701157093048, -0.045603230595588684, -0.027440320700407028, 0.11567527055740356, -0.11502759158611298, -0.39240384101867676, -0.0374513603746891, -0.4836359918117523, 0.3076912760734558, -0.25178319215774536, 0.0015956908464431763, 0.40474608540534973, 0.3928065598011017, 0.010181158781051636, 0.3698488473892212, -0.1340501457452774, 0.01052664965391159, -0.36008137464523315, -0.2767649292945862, -0.1850566416978836, 0.06766442954540253, 0.24240441620349884, -0.19374218583106995, -0.10712729394435883, 0.07636000216007233, -0.039947088807821274, -0.19824141263961792, -0.21035325527191162, -0.031876951456069946, -0.12981931865215302, -0.2045653760433197, -0.2123928815126419, 0.013283900916576385, -0.3584759831428528, -0.018619989976286888, 0.045863229781389236, 0.010847073048353195, -0.33783623576164246, 0.3286835551261902, 0.14236262440681458, -0.4008425772190094, 0.03074016235768795, 0.4164580702781677, 0.34854400157928467, 0.16058549284934998, 0.7200256586074829, 0.3232615292072296, -0.24563874304294586, -0.16185954213142395, -0.08247315883636475, -0.02533613331615925, -0.3048340976238251, 0.21009275317192078, 0.08375515788793564, 0.10605370998382568, -0.3066007196903229, -0.00037728995084762573, 0.12854324281215668, 0.045235540717840195, 0.036389101296663284, -0.30439794063568115, -0.5602001547813416, 0.20824985206127167, -0.010477691888809204, 0.03649932146072388, 0.2368941605091095, 0.022190827876329422, 0.029531529173254967, 0.24801506102085114, -0.15663054585456848, 0.020053846761584282, -0.16914232075214386, 0.2507920265197754, 0.24381892383098602, -0.11168656498193741, 0.10324367880821228, -0.0129493847489357, -0.00433901883661747, 0.15931078791618347, -0.015023648738861084, -0.12695249915122986, 0.045481566339731216, 0.15326252579689026, -0.02685132622718811, -0.2777852714061737, -0.09635823220014572, -0.5430380702018738, -0.015896983444690704, -0.30399325489997864, 0.011127669364213943, 0.02127949893474579, -0.1362699270248413, 0.1109776645898819, 0.20190317928791046, -0.2731657922267914, -0.06302572786808014, 0.27926215529441833, -0.022164739668369293, -0.05075278878211975, 0.16587083041667938, 0.2017493098974228, 0.09379894286394119, -0.15707387030124664, -0.5362305045127869, 0.05583462119102478, -0.08433611690998077, -0.02662789821624756, 0.10199372470378876, -0.11428505182266235, -0.39937615394592285, 0.3194222152233124, 0.09046699851751328, 0.15101370215415955, -0.14232775568962097, 0.20684130489826202, 0.20045143365859985, 0.008968832902610302, -0.19372668862342834, -0.041856102645397186, 0.33019840717315674, -0.2920086085796356, -0.05059781298041344, 0.3277897536754608, -0.1311674416065216, 0.04534521698951721, -0.029958173632621765, 0.13115838170051575, 0.35880255699157715, -0.07343093305826187, 0.322617769241333, 0.00615822896361351, -0.08348429203033447, -0.016720641404390335, 0.1939016580581665, 0.40572765469551086, 0.25870269536972046, 0.20438598096370697, -0.15563836693763733, 0.03763870894908905, -0.10587217658758163, -0.25482285022735596, 0.0379435271024704, -0.08367171138525009, 0.1414894163608551, 0.418973445892334, -0.17759135365486145, 0.15922003984451294, -0.19391322135925293, 0.17801788449287415, 0.18459680676460266, -0.27455827593803406, 0.07877687364816666, 0.29847145080566406, -0.21168732643127441, 0.04647519811987877, 0.1499892622232437, -0.11578129976987839, -0.06578820198774338, 0.14178557693958282, 0.07711386680603027, -0.6087396144866943, 0.45919570326805115, 0.14678677916526794, -0.22065119445323944, -0.14092658460140228, 0.27736514806747437, 0.4522537887096405, 0.07107841968536377, -0.3053988516330719, 0.057593934237957, 0.026987627148628235, 0.13658858835697174, -0.3318271338939667, 0.30944588780403137, 0.4621615707874298, 0.291585236787796, -0.19562369585037231, 0.25357285141944885, -0.1581636369228363, -0.012619178742170334, 0.015426024794578552, -0.023688942193984985, 0.11646571755409241, 0.2165057510137558, 0.11305473744869232, -0.010932743549346924, -0.0586271658539772, -0.15109537541866302, 0.16302041709423065, 0.14252081513404846, -0.22791624069213867, -0.38114219903945923, -0.0991920679807663, -0.17108914256095886, -0.0140402652323246, -0.011569984257221222, -0.5901711583137512, 0.2826707363128662, 0.5286229848861694, -0.13806666433811188, 0.08121021836996078, 0.020233072340488434, 0.013729635626077652, -0.031966160982847214, 0.48462361097335815, 0.20302323997020721, -0.03308061510324478, -0.48141664266586304, -0.31778115034103394, -0.41507598757743835, 0.024107620120048523, -0.3297812342643738, 0.0040629711002111435, -0.07540751248598099, 0.11538772284984589, -0.04735589772462845, 0.04659399017691612, 0.04862751066684723, -0.36422446370124817, -0.04351806640625, 0.17761433124542236, -0.15607206523418427, -0.255337119102478, -0.12738993763923645, 0.17875955998897552, 0.17938879132270813, -0.19811436533927917, 0.2631118893623352, 0.008783654309809208, -0.13983768224716187, -0.3518664240837097, 0.13386821746826172, 0.050196629017591476, 0.1779215782880783, 0.15763550996780396, 0.061005473136901855, 0.3895051181316376, 0.004085347056388855, -0.24227122962474823, 0.02581563964486122, 0.00026921601966023445, -0.09981406480073929, 0.14134067296981812, 0.12945717573165894, 0.3691283166408539, -0.40976518392562866, -0.38277944922447205, -0.432793527841568, 0.28977444767951965, -0.06378474086523056, -0.11976833641529083, -0.035079725086688995, -0.037601880729198456, 0.25265347957611084, 0.06882907450199127, 0.0636017695069313, 0.15866592526435852, -0.0656890943646431, -0.00033470429480075836, -0.45090389251708984, -0.26157206296920776, 0.45988529920578003, -0.4583001434803009, -0.3856022357940674, -0.08609998226165771, -0.09503522515296936, -0.14593616127967834, -0.1394125521183014, -0.7795306444168091, 0.09105934947729111, 0.29441165924072266, 0.09553072601556778, -0.42246901988983154, 0.03149568289518356, -0.1058146059513092, 0.12016618251800537, -0.12562602758407593, 0.33654993772506714, -0.09009487181901932, -0.43250614404678345, 0.16513080894947052, -0.2077716439962387 ]
https://github.com/huggingface/datasets/issues/1990
OSError: Memory mapping file failed: Cannot allocate memory
Methods like `dataset.shard`, `dataset.train_test_split`, `dataset.select` etc. don't bring the dataset in memory. The only time when samples are brought to memory is when you access elements via `dataset[0]`, `dataset[:10]`, `dataset["my_column_names"]`. But it's possible that trying to use those methods to build your validation set doesn't fix the issue since, if I understand correctly, the error happens when when the dataset arrow file is opened (just before the 5% percentage is applied). Did you try to reproduce this issue in a google colab ? This would be super helpful to investigate why this happened. Also maybe you can try clearing your cache at `~/.cache/huggingface/datasets` and try again. If the arrow file was corrupted somehow, removing it and rebuilding may fix the issue.
Hi, I am trying to run a code with a wikipedia dataset, here is the command to reproduce the error. You can find the codes for run_mlm.py in huggingface repo here: https://github.com/huggingface/transformers/blob/v4.3.2/examples/language-modeling/run_mlm.py ``` python run_mlm.py --model_name_or_path bert-base-multilingual-cased --dataset_name wikipedia --dataset_config_name 20200501.en --do_train --do_eval --output_dir /dara/test --max_seq_length 128 ``` I am using transformer version: 4.3.2 But I got memory erorr using this dataset, is there a way I could save on memory with dataset library with wikipedia dataset? Specially I need to train a model with multiple of wikipedia datasets concatenated. thank you very much @lhoestq for your help and suggestions: ``` File "run_mlm.py", line 441, in <module> main() File "run_mlm.py", line 233, in main split=f"train[{data_args.validation_split_percentage}%:]", File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/load.py", line 750, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 740, in as_dataset map_tuple=True, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 757, in _build_single_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 829, in _as_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 322, in read_table stream = stream_from(filename) File "pyarrow/io.pxi", line 782, in pyarrow.lib.memory_map File "pyarrow/io.pxi", line 743, in pyarrow.lib.MemoryMappedFile._open File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Memory mapping file failed: Cannot allocate memory ```
121
OSError: Memory mapping file failed: Cannot allocate memory Hi, I am trying to run a code with a wikipedia dataset, here is the command to reproduce the error. You can find the codes for run_mlm.py in huggingface repo here: https://github.com/huggingface/transformers/blob/v4.3.2/examples/language-modeling/run_mlm.py ``` python run_mlm.py --model_name_or_path bert-base-multilingual-cased --dataset_name wikipedia --dataset_config_name 20200501.en --do_train --do_eval --output_dir /dara/test --max_seq_length 128 ``` I am using transformer version: 4.3.2 But I got memory erorr using this dataset, is there a way I could save on memory with dataset library with wikipedia dataset? Specially I need to train a model with multiple of wikipedia datasets concatenated. thank you very much @lhoestq for your help and suggestions: ``` File "run_mlm.py", line 441, in <module> main() File "run_mlm.py", line 233, in main split=f"train[{data_args.validation_split_percentage}%:]", File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/load.py", line 750, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 740, in as_dataset map_tuple=True, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 757, in _build_single_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 829, in _as_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 322, in read_table stream = stream_from(filename) File "pyarrow/io.pxi", line 782, in pyarrow.lib.memory_map File "pyarrow/io.pxi", line 743, in pyarrow.lib.MemoryMappedFile._open File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Memory mapping file failed: Cannot allocate memory ``` Methods like `dataset.shard`, `dataset.train_test_split`, `dataset.select` etc. don't bring the dataset in memory. The only time when samples are brought to memory is when you access elements via `dataset[0]`, `dataset[:10]`, `dataset["my_column_names"]`. But it's possible that trying to use those methods to build your validation set doesn't fix the issue since, if I understand correctly, the error happens when when the dataset arrow file is opened (just before the 5% percentage is applied). Did you try to reproduce this issue in a google colab ? This would be super helpful to investigate why this happened. Also maybe you can try clearing your cache at `~/.cache/huggingface/datasets` and try again. If the arrow file was corrupted somehow, removing it and rebuilding may fix the issue.
[ -0.2615421712398529, -0.03726428747177124, 0.05204015597701073, 0.6045715808868408, 0.4538375735282898, 0.283401221036911, 0.14564360678195953, 0.27246689796447754, 0.17855072021484375, 0.10566090792417526, -0.058184199035167694, 0.227386012673378, -0.177118182182312, -0.14591683447360992, -0.037090182304382324, -0.1933314949274063, 0.08402088284492493, 0.013471484184265137, -0.5429402589797974, 0.16046880185604095, -0.3581552803516388, 0.11570590734481812, -0.18563270568847656, -0.11716026067733765, -0.29803746938705444, -0.10351630300283432, -0.0006043799221515656, -0.09763110429048538, 0.018877994269132614, -0.327409029006958, 0.2548563778400421, -0.1293889731168747, 0.08640075474977493, 0.5501936674118042, -0.00012316074571572244, -0.013776227831840515, 0.2835690975189209, -0.1672084629535675, -0.2533998191356659, -0.12841589748859406, -0.04165663570165634, -0.029798559844493866, 0.09849677979946136, -0.22525039315223694, -0.01192392222583294, -0.05259288474917412, 0.23173043131828308, -0.34451425075531006, 0.44297468662261963, 0.2243882119655609, 0.14049464464187622, 0.06996511667966843, 0.45245224237442017, -0.04411257430911064, 0.17390726506710052, 0.3341216444969177, 0.07138047367334366, 0.3320227563381195, -0.29087117314338684, -0.4356871247291565, -0.03041280061006546, 0.39305034279823303, -0.0399409756064415, 0.005287520587444305, 0.5653292536735535, -0.14458361268043518, 0.025353118777275085, -0.33681750297546387, 0.11230871081352234, -0.007249429821968079, 0.5341091752052307, -0.4902603328227997, -0.028372643515467644, -0.014787252992391586, -0.053383439779281616, -0.09523989260196686, 0.29709821939468384, 0.26895251870155334, -0.2722629904747009, -0.14476057887077332, -0.1304170936346054, -0.32499849796295166, -0.3197004497051239, 0.44286876916885376, -0.09092172980308533, 0.19100093841552734, -0.024715948849916458, 0.3037818968296051, 0.5653706192970276, -0.2050899863243103, -0.23406215012073517, -0.07581231743097305, 0.13654348254203796, 0.3287966847419739, -0.2677210867404938, -0.16602899134159088, -0.302948921918869, -0.20470955967903137, 0.35113731026649475, -0.4987059235572815, -0.38619330525398254, -0.1260005533695221, 0.1516697257757187, 0.021239202469587326, 0.4036456346511841, 0.2817353308200836, -0.29636600613594055, 0.32283714413642883, 0.312296986579895, 0.17427153885364532, -0.24953767657279968, -0.15898960828781128, 0.07679539173841476, -0.03737843781709671, -0.11104987561702728, -0.19148299098014832, 0.08377417176961899, -0.001654159277677536, -0.01374551746994257, -0.021803636103868484, -0.21283161640167236, -0.1232089176774025, -0.05384937301278114, 0.5055232644081116, -0.10408411175012589, -0.08461867272853851, 0.37382763624191284, 0.14445945620536804, -0.012684369459748268, -0.00807699654251337, -0.05637501925230026, 0.4104226529598236, -0.3436274230480194, 0.28430673480033875, 0.050263870507478714, -0.0011583846062421799, 0.32634127140045166, -0.07270558178424835, -0.03312848508358002, -0.05668150261044502, 0.16204479336738586, -0.3580230474472046, 0.008711151778697968, 0.18468788266181946, 0.17885611951351166, 0.2493291050195694, 0.250351220369339, -0.14798587560653687, -0.1526843011379242, 0.19699668884277344, -0.16346779465675354, -0.24330344796180725, 0.03873647376894951, 0.0109291672706604, 0.09801338613033295, 0.2277470827102661, -0.2775138318538666, 0.18281039595603943, 0.6528615355491638, -0.07751546800136566, -0.057264961302280426, -0.08019676059484482, -0.22966843843460083, -0.1687687337398529, 0.2708781361579895, 0.5193134546279907, -0.06465340405702591, -0.10548350214958191, -0.11696977913379669, 0.1677045375108719, 0.25101226568222046, 0.4413837194442749, -0.1638229787349701, 0.2519155442714691, -0.09722165763378143, 0.016798384487628937, 0.4141837954521179, -0.31050920486450195, -0.34190383553504944, -0.005623938515782356, -0.025229312479496002, -0.13432259857654572, 0.023277699947357178, 0.13213112950325012, 0.07739974558353424, 0.11566591262817383, 0.11192552000284195, 0.3104182481765747, 0.05610337108373642, 0.2800839841365814, -0.30419835448265076, -0.2975761890411377, 0.25286900997161865, 0.07474641501903534, 0.06539662182331085, -0.20408308506011963, -0.06084928661584854, 0.8107677698135376, 0.29729515314102173, -0.26231226325035095, 0.15553468465805054, 0.3147749900817871, 0.10613708198070526, 0.006436236202716827, 0.0871192067861557, -0.21991276741027832, -0.25144779682159424, -0.07342473417520523, -0.056699033826589584, 0.3305933177471161, -0.14518894255161285, -0.04148092493414879, 0.15372234582901, -0.11867091059684753, -0.1722494214773178, -0.3908625543117523, 0.06229545176029205, 0.013073869049549103, 0.1235823929309845, 0.09008446335792542, 0.08106058835983276, 0.056008659303188324, -0.09396987408399582, 0.2478926181793213, -0.5998018383979797, 0.17150281369686127, -0.2896076440811157, -0.10769426822662354, -0.021439971402287483, -0.06249145418405533, 0.027415141463279724, -0.047465451061725616, -0.06855573505163193, 0.15199288725852966, 0.07713457196950912, -0.1671151965856552, -0.09068470448255539, 0.0034199804067611694, 0.31010955572128296, -0.3221142888069153, 0.16570566594600677, 0.2421719878911972, 0.19550471007823944, -0.09402269870042801, -0.19769614934921265, -0.15587864816188812, 0.10513409972190857, 0.36472123861312866, 0.0791877806186676, 0.16877515614032745, 0.026240641251206398, 0.08954767882823944, 0.17978620529174805, -0.2070019394159317, 0.21816344559192657, 0.012355413287878036, 0.24088455736637115, 0.09500669687986374, -0.029394622892141342, -0.30973294377326965, 0.4583241641521454, 0.2681969702243805, 0.27729934453964233, 0.2424817681312561, -0.4937294125556946, -0.07404258847236633, -0.06565145403146744, -0.07185489684343338, 0.3221563994884491, 0.05007864162325859, -0.11956436932086945, 0.12015479803085327, 0.19633790850639343, 0.00970306433737278, 0.30975955724716187, 0.17438873648643494, 0.49407798051834106, -0.01870843768119812, 0.10572294890880585, -0.08063475787639618, -0.09958694875240326, -0.1468479037284851, 0.05004598945379257, 0.5077634453773499, -0.17538031935691833, -0.01578528620302677, -0.18642692267894745, -0.400614470243454, -0.27539771795272827, 0.16431479156017303, -0.464242547750473, -0.13692706823349, -0.38493067026138306, 0.3247584402561188, 0.06956310570240021, 0.2584396302700043, 0.4160756766796112, -0.0507136732339859, 0.3513422906398773, -0.14067181944847107, 0.06877176463603973, -0.23041218519210815, -0.11907560378313065, -0.0627371072769165, 0.4409618079662323, -0.22047249972820282, 0.08683190494775772, 0.15672901272773743, -0.319557785987854, -0.21350941061973572, -0.1457148790359497, 0.1469896137714386, -0.08082167059183121, 0.12557418644428253, 0.05964236706495285, 0.5084345936775208, -0.12339837849140167, -0.23237629234790802, 0.1721094250679016, 0.08990707248449326, -0.05887235701084137, -0.03730016201734543, 0.023293595761060715, 0.1553845852613449, 0.05408887937664986, -0.2931138873100281, -0.17975716292858124, -0.5081841349601746, 0.40148013830184937, -0.03389136120676994, 0.1513628363609314, 0.3279181122779846, 0.1617625504732132, 0.11561520397663116, -0.12136584520339966, 0.08944830298423767, -0.16215060651302338, 0.01602005586028099, 0.3207913935184479, -0.14882585406303406, -0.211435005068779, -0.029063818976283073, 0.06273792684078217, 0.30630362033843994, 0.2301856130361557, -0.6157580614089966, -0.020910482853651047, -0.1136818677186966, -0.010894469916820526, -0.058850862085819244, 0.28631162643432617, 0.39138004183769226, 0.07892115414142609, 0.10780012607574463, 0.1375889778137207, -0.16775768995285034, 0.09490680694580078, -0.040983036160469055, 0.32489728927612305, 0.22007933259010315, 0.523425817489624, 0.06372655928134918, 0.838448703289032, 0.3419643044471741, 0.18714043498039246, 0.2288258820772171, -0.022065991535782814, 0.08356426656246185, 0.004970185458660126, -0.34818705916404724, -0.008208994753658772, -0.03689675033092499, 0.06199977546930313, 0.166143000125885, 0.008754870854318142, -0.3374429941177368, -0.16767233610153198, -0.35052865743637085, 0.04599033296108246, -0.3771669566631317, 0.2698536217212677, 0.1751250922679901, 0.36742350459098816, -0.08383555710315704, -0.08241311460733414, 0.023161564022302628, -0.3515780568122864, 0.19453319907188416, 0.21353211998939514, -0.017528630793094635, 0.021124035120010376, -0.11370822787284851, -0.3958893120288849, -0.6405460834503174, 0.11820420622825623, -0.1544019728899002, 0.06298001855611801, -0.10384844988584518, 0.0933978334069252, 0.060051754117012024, 0.15830756723880768, 0.7553266882896423, 0.005923646502196789, -0.30729252099990845, -0.046126656234264374, -0.2609424591064453, -0.5063744783401489, 0.21378390491008759, -0.1841566115617752, 0.344156950712204, 0.1433890163898468, 0.520553469657898, -0.36160171031951904, -0.09813395887613297, 0.32128769159317017, 0.3747147023677826, -0.21708260476589203, -0.2046922892332077, -0.1343318372964859, -0.2551262080669403, -0.6043946743011475, 0.004102058708667755, 0.054568856954574585, 0.19344864785671234, 0.49645256996154785, 0.20445604622364044, 0.052669115364551544, -0.05089747905731201, 0.13719363510608673, -0.05337563157081604, 0.3105927109718323, 0.11065413057804108, 0.1008518636226654, 0.13450422883033752, -0.15806804597377777, 0.3764188289642334, 0.29390791058540344, 0.07169057428836823, -0.3797556757926941, -0.09978538006544113, 0.05762171372771263, 0.2523960471153259, -0.06275585293769836, -0.013914945535361767, 0.003833949565887451, 0.026899214833974838, 0.17809507250785828, -0.09977521747350693, 0.13221970200538635, 0.1875683069229126, 0.08740754425525665, -0.45114561915397644, -0.4366306662559509, 0.3414418697357178, 0.19970457255840302, 0.15969397127628326, 0.3301560580730438, -0.14244449138641357, -0.5566366910934448, 0.32534098625183105, 0.35895806550979614, 0.9608318209648132, -0.35514843463897705, 0.39372777938842773, 0.09621825814247131, 0.21176515519618988, 0.6567654013633728, -0.47514021396636963, 0.3529614210128784, -0.3699403405189514, -0.08157602697610855, 0.043174877762794495, -0.13309967517852783, 0.1379615068435669, -0.01723291724920273, -0.4360865652561188, 0.2891327142715454, 0.0913323163986206, -0.039827536791563034, -0.18405866622924805, 0.38837021589279175, 0.11244750022888184, -0.4811996817588806, -0.18418675661087036, 0.03195121884346008, -0.1269843727350235, 0.24396701157093048, -0.045603230595588684, -0.027440320700407028, 0.11567527055740356, -0.11502759158611298, -0.39240384101867676, -0.0374513603746891, -0.4836359918117523, 0.3076912760734558, -0.25178319215774536, 0.0015956908464431763, 0.40474608540534973, 0.3928065598011017, 0.010181158781051636, 0.3698488473892212, -0.1340501457452774, 0.01052664965391159, -0.36008137464523315, -0.2767649292945862, -0.1850566416978836, 0.06766442954540253, 0.24240441620349884, -0.19374218583106995, -0.10712729394435883, 0.07636000216007233, -0.039947088807821274, -0.19824141263961792, -0.21035325527191162, -0.031876951456069946, -0.12981931865215302, -0.2045653760433197, -0.2123928815126419, 0.013283900916576385, -0.3584759831428528, -0.018619989976286888, 0.045863229781389236, 0.010847073048353195, -0.33783623576164246, 0.3286835551261902, 0.14236262440681458, -0.4008425772190094, 0.03074016235768795, 0.4164580702781677, 0.34854400157928467, 0.16058549284934998, 0.7200256586074829, 0.3232615292072296, -0.24563874304294586, -0.16185954213142395, -0.08247315883636475, -0.02533613331615925, -0.3048340976238251, 0.21009275317192078, 0.08375515788793564, 0.10605370998382568, -0.3066007196903229, -0.00037728995084762573, 0.12854324281215668, 0.045235540717840195, 0.036389101296663284, -0.30439794063568115, -0.5602001547813416, 0.20824985206127167, -0.010477691888809204, 0.03649932146072388, 0.2368941605091095, 0.022190827876329422, 0.029531529173254967, 0.24801506102085114, -0.15663054585456848, 0.020053846761584282, -0.16914232075214386, 0.2507920265197754, 0.24381892383098602, -0.11168656498193741, 0.10324367880821228, -0.0129493847489357, -0.00433901883661747, 0.15931078791618347, -0.015023648738861084, -0.12695249915122986, 0.045481566339731216, 0.15326252579689026, -0.02685132622718811, -0.2777852714061737, -0.09635823220014572, -0.5430380702018738, -0.015896983444690704, -0.30399325489997864, 0.011127669364213943, 0.02127949893474579, -0.1362699270248413, 0.1109776645898819, 0.20190317928791046, -0.2731657922267914, -0.06302572786808014, 0.27926215529441833, -0.022164739668369293, -0.05075278878211975, 0.16587083041667938, 0.2017493098974228, 0.09379894286394119, -0.15707387030124664, -0.5362305045127869, 0.05583462119102478, -0.08433611690998077, -0.02662789821624756, 0.10199372470378876, -0.11428505182266235, -0.39937615394592285, 0.3194222152233124, 0.09046699851751328, 0.15101370215415955, -0.14232775568962097, 0.20684130489826202, 0.20045143365859985, 0.008968832902610302, -0.19372668862342834, -0.041856102645397186, 0.33019840717315674, -0.2920086085796356, -0.05059781298041344, 0.3277897536754608, -0.1311674416065216, 0.04534521698951721, -0.029958173632621765, 0.13115838170051575, 0.35880255699157715, -0.07343093305826187, 0.322617769241333, 0.00615822896361351, -0.08348429203033447, -0.016720641404390335, 0.1939016580581665, 0.40572765469551086, 0.25870269536972046, 0.20438598096370697, -0.15563836693763733, 0.03763870894908905, -0.10587217658758163, -0.25482285022735596, 0.0379435271024704, -0.08367171138525009, 0.1414894163608551, 0.418973445892334, -0.17759135365486145, 0.15922003984451294, -0.19391322135925293, 0.17801788449287415, 0.18459680676460266, -0.27455827593803406, 0.07877687364816666, 0.29847145080566406, -0.21168732643127441, 0.04647519811987877, 0.1499892622232437, -0.11578129976987839, -0.06578820198774338, 0.14178557693958282, 0.07711386680603027, -0.6087396144866943, 0.45919570326805115, 0.14678677916526794, -0.22065119445323944, -0.14092658460140228, 0.27736514806747437, 0.4522537887096405, 0.07107841968536377, -0.3053988516330719, 0.057593934237957, 0.026987627148628235, 0.13658858835697174, -0.3318271338939667, 0.30944588780403137, 0.4621615707874298, 0.291585236787796, -0.19562369585037231, 0.25357285141944885, -0.1581636369228363, -0.012619178742170334, 0.015426024794578552, -0.023688942193984985, 0.11646571755409241, 0.2165057510137558, 0.11305473744869232, -0.010932743549346924, -0.0586271658539772, -0.15109537541866302, 0.16302041709423065, 0.14252081513404846, -0.22791624069213867, -0.38114219903945923, -0.0991920679807663, -0.17108914256095886, -0.0140402652323246, -0.011569984257221222, -0.5901711583137512, 0.2826707363128662, 0.5286229848861694, -0.13806666433811188, 0.08121021836996078, 0.020233072340488434, 0.013729635626077652, -0.031966160982847214, 0.48462361097335815, 0.20302323997020721, -0.03308061510324478, -0.48141664266586304, -0.31778115034103394, -0.41507598757743835, 0.024107620120048523, -0.3297812342643738, 0.0040629711002111435, -0.07540751248598099, 0.11538772284984589, -0.04735589772462845, 0.04659399017691612, 0.04862751066684723, -0.36422446370124817, -0.04351806640625, 0.17761433124542236, -0.15607206523418427, -0.255337119102478, -0.12738993763923645, 0.17875955998897552, 0.17938879132270813, -0.19811436533927917, 0.2631118893623352, 0.008783654309809208, -0.13983768224716187, -0.3518664240837097, 0.13386821746826172, 0.050196629017591476, 0.1779215782880783, 0.15763550996780396, 0.061005473136901855, 0.3895051181316376, 0.004085347056388855, -0.24227122962474823, 0.02581563964486122, 0.00026921601966023445, -0.09981406480073929, 0.14134067296981812, 0.12945717573165894, 0.3691283166408539, -0.40976518392562866, -0.38277944922447205, -0.432793527841568, 0.28977444767951965, -0.06378474086523056, -0.11976833641529083, -0.035079725086688995, -0.037601880729198456, 0.25265347957611084, 0.06882907450199127, 0.0636017695069313, 0.15866592526435852, -0.0656890943646431, -0.00033470429480075836, -0.45090389251708984, -0.26157206296920776, 0.45988529920578003, -0.4583001434803009, -0.3856022357940674, -0.08609998226165771, -0.09503522515296936, -0.14593616127967834, -0.1394125521183014, -0.7795306444168091, 0.09105934947729111, 0.29441165924072266, 0.09553072601556778, -0.42246901988983154, 0.03149568289518356, -0.1058146059513092, 0.12016618251800537, -0.12562602758407593, 0.33654993772506714, -0.09009487181901932, -0.43250614404678345, 0.16513080894947052, -0.2077716439962387 ]
https://github.com/huggingface/datasets/issues/1989
Question/problem with dataset labels
It seems that I get parsing errors for various fields in my data. For example now I get this: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: https://www.netgalley.com/catalog/book/121872 ```
Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric.
128
Question/problem with dataset labels Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric. It seems that I get parsing errors for various fields in my data. For example now I get this: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: https://www.netgalley.com/catalog/book/121872 ```
[ 0.17891453206539154, -0.05732292681932449, 0.0051791854202747345, 0.1343669593334198, 0.4113540053367615, 0.35021263360977173, 0.6419942378997803, 0.16370749473571777, -0.16131803393363953, 0.07234975695610046, 0.17885436117649078, 0.06387517601251602, -0.060772933065891266, 0.030526036396622658, -0.13023126125335693, -0.11937084794044495, 0.08908390253782272, 0.17347916960716248, 0.1816423237323761, -0.04446651414036751, -0.2867429256439209, -0.03982596844434738, -0.15668034553527832, 0.36628860235214233, -0.2972060739994049, -0.3766842484474182, 0.21054337918758392, -0.12052827328443527, -0.1131332740187645, -0.4633956551551819, 0.27180981636047363, 0.08611994981765747, 0.0026804115623235703, 0.4034268260002136, -0.00010309630306437612, 0.05875667929649353, 0.29674795269966125, 0.1559886485338211, -0.39840808510780334, -0.43212825059890747, -0.18936029076576233, -0.023407749831676483, 0.03456375002861023, -0.30447694659233093, 0.0979834571480751, -0.28466835618019104, -0.09054110944271088, -0.27566587924957275, 0.1046861857175827, 0.4386059045791626, 0.3266400992870331, 0.2373395562171936, -0.20649957656860352, -0.2293032854795456, 0.2311525046825409, 0.12508846819400787, -0.030509009957313538, 0.04947543516755104, -0.13443872332572937, -0.0064585269428789616, 0.4515700340270996, 0.46091440320014954, -0.2723952829837799, 0.2647714614868164, 0.13536463677883148, 0.14636339247226715, 0.13772451877593994, -0.391047865152359, 0.2763095796108246, 0.19614344835281372, 0.745261013507843, -0.29649999737739563, -0.2943912744522095, -0.169705331325531, 0.1373763084411621, -0.41671931743621826, 0.1813386231660843, 0.07008323073387146, 0.006375730037689209, -0.04701496288180351, -0.033162739127874374, 0.061027172952890396, 0.08074207603931427, 0.08818022906780243, -0.05807507783174515, 0.03832857310771942, -0.09864124655723572, 0.3288170099258423, 0.11253036558628082, -0.07475075125694275, 0.29753026366233826, -0.005993807688355446, -0.08856998383998871, 0.04154462367296219, -0.4325239956378937, -0.029608357697725296, -0.03688069432973862, 0.05167611315846443, -0.11813753098249435, -0.038740478456020355, 0.018386976793408394, -0.37495625019073486, -0.14743581414222717, 0.34034502506256104, 0.2151346504688263, 0.26627588272094727, 0.2706994414329529, 0.5616863369941711, 0.09117235988378525, -0.07616271078586578, 0.030804280191659927, -0.055807456374168396, -0.0015734817134216428, -0.4626432955265045, 0.2433207482099533, 0.09893116354942322, 0.2934700846672058, -0.23985880613327026, -0.5455210208892822, 0.1924419403076172, -0.02810133621096611, 0.09409621357917786, 0.1541178822517395, 0.3049503564834595, 0.022122211754322052, 0.20651811361312866, 0.07934746146202087, 0.19360853731632233, -0.009170521050691605, -0.11720552295446396, -0.2069239765405655, 0.09760816395282745, -0.2002788484096527, -0.15010666847229004, 0.05026936158537865, -0.07205250859260559, 0.11244922131299973, 0.06405946612358093, -0.001004628837108612, -0.07605672627687454, -0.016303835436701775, -0.38646399974823, -0.012748576700687408, 0.3588930070400238, -0.1032634824514389, 0.4203506112098694, 0.2520540952682495, -0.4185497760772705, 0.059699662029743195, 0.18021142482757568, -0.3688519597053528, -0.033813636749982834, -0.21215704083442688, 0.28621289134025574, -0.10304396599531174, -0.18798115849494934, -0.12009156495332718, 0.04682375118136406, 0.41932010650634766, -0.21455375850200653, 0.15759006142616272, -0.3543839454650879, -0.3093222975730896, -0.27777010202407837, -0.06630431860685349, 0.22143234312534332, -0.6722471117973328, 0.00438961386680603, -0.14754675328731537, -0.02911316230893135, 0.052806608378887177, 0.2960191071033478, -0.08100470900535583, 0.20629197359085083, -0.07059179246425629, 0.03035011887550354, 0.13955077528953552, -0.3906910717487335, -0.11046409606933594, 0.1035437136888504, -0.14200331270694733, -0.24426430463790894, 0.07048048824071884, -0.04033976048231125, 0.09173116832971573, -0.09162644296884537, 0.05823200196027756, -0.13187766075134277, -0.19963248074054718, -0.09513352066278458, -0.14370344579219818, 0.053811050951480865, 0.6539096832275391, 0.09273292124271393, -0.01680012419819832, 0.0756470113992691, -0.10022800415754318, -0.3448362350463867, -0.04253276437520981, -0.10095550119876862, 0.20621943473815918, 0.21479018032550812, 0.05564022436738014, 0.29835933446884155, 0.14595213532447815, -0.06447020918130875, -0.4424968361854553, 0.10170135647058487, -0.040051184594631195, 0.1395646184682846, -0.14514295756816864, -0.1923438310623169, -0.3297650218009949, -0.05378587543964386, -0.20797626674175262, 0.01832391321659088, 0.1633133888244629, 0.06836073100566864, -0.22142228484153748, -0.020483465865254402, 0.014084305614233017, -0.07588380575180054, -0.01721424050629139, 0.10933065414428711, -0.10402476787567139, 0.26565203070640564, -0.0951160192489624, 0.11689429730176926, -0.02673938125371933, 0.25312021374702454, 0.43260616064071655, 0.24005185067653656, -0.04662138223648071, 0.36702412366867065, 0.08486071228981018, -0.32702261209487915, 0.007840413600206375, -0.17265819013118744, 0.01812911406159401, -0.08387461304664612, -0.01632683165371418, 0.11452454328536987, 0.2768396735191345, -0.10859730839729309, -0.08471884578466415, 0.1411859393119812, -0.17720110714435577, 0.2762836813926697, -0.16197484731674194, 0.2004607766866684, 0.2599627673625946, -0.10939294099807739, 0.1251223385334015, -0.21271121501922607, 0.2158811241388321, -0.12979836761951447, 0.23431424796581268, 0.00714217871427536, -0.26171746850013733, 0.06771935522556305, 0.42205315828323364, 0.0015309005975723267, -0.003524109721183777, 0.009774107486009598, -0.15866786241531372, 0.16574633121490479, -0.013017604127526283, 0.5957184433937073, 0.35284242033958435, 0.2059558629989624, -0.16387538611888885, -0.05826830118894577, -0.2622590661048889, -0.13698357343673706, 0.21246157586574554, 0.09510184824466705, 0.029852449893951416, 0.057296209037303925, 0.026110144332051277, -0.06643877923488617, -0.17657259106636047, -0.24333874881267548, 0.20823132991790771, 0.34643039107322693, -0.5103120803833008, -0.002906862646341324, -0.3452731966972351, -0.2318640947341919, -0.318596750497818, -0.09879090636968613, -0.2351592779159546, -0.45904412865638733, 0.09043826162815094, -0.07749123871326447, -0.19039319455623627, 0.1450759321451187, -0.03756433352828026, 0.00791795551776886, -0.09107276052236557, 0.1520518660545349, -0.09758442640304565, -0.4702497720718384, -0.2045716643333435, 0.18111222982406616, 0.007479964755475521, 0.04695342853665352, 0.48136067390441895, -0.14319847524166107, -0.12455504387617111, -0.07857242971658707, -0.2953167259693146, 0.004026547074317932, -0.27306586503982544, 0.1366044282913208, 0.18162280321121216, 0.10385961085557938, 0.008461564779281616, -0.1486843377351761, 0.2930159866809845, -0.0715193897485733, 0.02463996224105358, 0.10695695877075195, 0.04523320496082306, -0.29207324981689453, -0.2664700746536255, -0.47501876950263977, -0.47453030943870544, -0.1774820238351822, 0.06694796681404114, -0.07590820640325546, -0.0335288867354393, 0.5198026299476624, 0.06844194233417511, 0.06568092852830887, 0.09314513206481934, 0.023252563551068306, -0.3467433452606201, -0.09354066103696823, 0.24904759228229523, -0.17909157276153564, -0.2102452665567398, 0.19605740904808044, 0.10930982232093811, 0.11752843856811523, -0.20393286645412445, -0.3139225244522095, 0.0728621631860733, -0.05760142207145691, 0.058944594115018845, 0.0813104510307312, 0.1948959231376648, 0.213882714509964, 0.26710188388824463, -0.1480034589767456, -0.32705166935920715, -0.33171191811561584, 0.1381734162569046, -0.07196754217147827, 0.13063524663448334, -0.1062559112906456, 0.2940853238105774, -0.15208378434181213, 0.3265089988708496, 0.02177233248949051, -0.2126559466123581, 0.19188900291919708, -0.04784797877073288, 0.5207322239875793, 0.06838071346282959, -0.4193749725818634, 0.06588515639305115, -0.11910709738731384, 0.026946015655994415, 0.17604292929172516, -0.3196392059326172, 0.037956602871418, -0.1479680836200714, 0.39460432529449463, -0.24780485033988953, -0.0996566042304039, -0.10064300894737244, -0.150168314576149, 0.04052693769335747, 0.11690026521682739, -0.04097502678632736, -0.20840801298618317, -0.19158512353897095, -0.251280277967453, 0.05782359838485718, -0.09546125680208206, -0.08755116909742355, -0.5335748791694641, -0.2334989607334137, -0.16499599814414978, 0.2940983176231384, 0.15745152533054352, 0.3346639573574066, -0.1785169392824173, 0.24547147750854492, 0.04775853827595711, 0.2458997219800949, 0.6149806380271912, -0.48323917388916016, 0.15470220148563385, 0.2263718545436859, 0.3931272625923157, -0.17800173163414001, -0.1272554248571396, -0.16925737261772156, 0.29472607374191284, -0.29577773809432983, 0.0259886272251606, -0.15553420782089233, -0.09107694029808044, 0.2631005048751831, 0.15540610253810883, -0.12238006293773651, -0.3149801790714264, -0.2309514582157135, -0.17939317226409912, -0.12728534638881683, -0.05339682847261429, 0.06357723474502563, 0.1866377294063568, -0.3784867525100708, 0.09864826500415802, 0.1408238410949707, 0.07350717484951019, 0.27150458097457886, 0.11863504350185394, 0.22324323654174805, 0.030276760458946228, 0.19736120104789734, 0.3174026608467102, 0.25872570276260376, 0.5099823474884033, 0.5483983755111694, -0.3618464469909668, -0.5113288760185242, -0.11947879940271378, -0.11476913839578629, 0.2007075399160385, 0.06500126421451569, -0.14221495389938354, 0.1660955250263214, -0.05063997954130173, 0.18545863032341003, 0.09619792550802231, 0.022308139130473137, 0.49229511618614197, 0.16057629883289337, -0.48984774947166443, -0.5388926267623901, 0.2713593542575836, 0.03924167528748512, -0.047840673476457596, 0.12815584242343903, 0.07973237335681915, -0.3407571017742157, 0.20595282316207886, -0.15599361062049866, 0.6908725500106812, 0.08379792422056198, -0.051030565053224564, -0.01703104004263878, -0.2261730283498764, 0.7132234573364258, -0.11871135234832764, 0.0007717739790678024, -0.36142903566360474, -0.3074665665626526, -0.06222996860742569, -0.022118709981441498, 0.023474864661693573, 0.45069295167922974, -0.3085786700248718, 0.3788376748561859, -0.32851341366767883, 0.20468662679195404, 0.0287502259016037, -0.07406165450811386, 0.24943947792053223, -0.13231386244297028, -0.08248588442802429, 0.20103423297405243, -0.15761911869049072, -0.13437587022781372, -0.16743484139442444, 0.041905298829078674, -0.2318483293056488, -0.26806050539016724, -0.22626037895679474, 0.08226095885038376, -0.25382494926452637, 0.14157822728157043, -0.08565416932106018, -0.0167192742228508, 0.21681106090545654, 0.20250985026359558, 0.4863223433494568, 0.07892397046089172, -0.14828674495220184, 0.18389557301998138, 0.042148612439632416, 0.1370237171649933, 0.03434881195425987, 0.053746625781059265, 0.41506263613700867, 0.11604952067136765, -0.2699807286262512, 0.1285300999879837, -0.07956741005182266, 0.1759495884180069, -0.08703167736530304, 0.08389420062303543, -0.09839758276939392, -0.36537548899650574, 0.03264753147959709, -0.07703882455825806, 0.2287103533744812, -0.25377342104911804, 0.1773461103439331, 0.05198296159505844, -0.04668021574616432, 0.2120787501335144, -0.26369139552116394, -0.14659744501113892, -0.0457465834915638, 0.18923303484916687, 0.025963841006159782, 0.19335618615150452, 0.2472444772720337, 0.02597314491868019, -0.35139185190200806, -0.25651124119758606, 0.03895159065723419, 0.02399946004152298, -0.6778349876403809, 0.24598263204097748, 0.25335434079170227, 0.07594607770442963, -0.057189375162124634, 0.22326834499835968, -0.01583019271492958, 0.07108473032712936, 0.06101376935839653, -0.5274378061294556, -0.21865007281303406, -0.004669703543186188, -0.18475477397441864, 0.11693009734153748, 0.24786508083343506, 0.4110049605369568, 0.13375768065452576, 0.07144966721534729, -0.364154189825058, -0.020954139530658722, -0.17239390313625336, 0.2980128526687622, 0.15251107513904572, 0.01996077410876751, 0.2820310592651367, -0.17880651354789734, 0.21821677684783936, 0.0007443204522132874, 0.007750300690531731, -0.24981853365898132, -0.18720903992652893, 0.11241061985492706, 0.135209858417511, -0.19721606373786926, -0.06341155618429184, -0.16438157856464386, 0.057836927473545074, -0.0719839483499527, -0.0172507893294096, 0.31057414412498474, 0.003207750618457794, 0.37353095412254333, -0.150922030210495, 0.23278465867042542, -0.046329643577337265, 0.21827778220176697, 0.012717105448246002, -0.11400127410888672, 0.0742453783750534, 0.17296579480171204, -0.11276457458734512, 0.01947830617427826, -0.1750796139240265, 0.08479522913694382, -0.1170053631067276, -0.1179296001791954, 0.13429349660873413, -0.56898033618927, 0.2959568500518799, 0.19363825023174286, 0.4493628144264221, 0.2781367897987366, -0.18682590126991272, -0.07076673209667206, 0.38260918855667114, 0.30792683362960815, -0.3656698763370514, -0.16836020350456238, 0.16300183534622192, 0.16556134819984436, 0.0003902427852153778, 0.07560751587152481, 0.060725416988134384, -0.031059913337230682, 0.044892385601997375, 0.00808582454919815, 0.45543891191482544, -0.43765467405319214, 0.23490497469902039, 0.5269829630851746, -0.06197105720639229, 0.09998415410518646, 0.49679407477378845, 0.1731766313314438, 0.06353316456079483, 0.5881983637809753, 0.034650202840566635, 0.1773209571838379, 0.18747013807296753, -0.13795991241931915, -0.07542070001363754, -0.17221783101558685, 0.1809181272983551, 0.09697271883487701, 0.018856719136238098, -0.042831532657146454, -0.0954480916261673, 0.30113422870635986, -0.383945107460022, 0.004110261332243681, -0.0057688429951667786, 0.1111968457698822, -0.22550374269485474, -0.10601559281349182, -0.156263068318367, -0.09870950132608414, -0.16644605994224548, -0.19731584191322327, 0.014028046280145645, -0.1700509637594223, 0.3556351959705353, -0.07428097724914551, -0.19596438109874725, -0.45658159255981445, -0.18677827715873718, 0.3054199516773224, 0.06508123129606247, -0.24730996787548065, 0.01632004790008068, 0.2487560659646988, -0.14550121128559113, 0.3213777542114258, 0.08623997122049332, 0.6039391160011292, 0.17137520015239716, 0.0897911787033081, -0.3410915732383728, -0.09729558229446411, -0.08858038485050201, 0.15166372060775757, 0.21556805074214935, 0.04592078924179077, -0.03683386370539665, 0.39226579666137695, 0.20187820494174957, -0.17074908316135406, 0.30858010053634644, 0.33574214577674866, 0.2227042317390442, -0.17061986029148102, -0.06306739896535873, -0.13396553695201874, -0.25735458731651306, -0.3266395926475525, 0.10131882131099701, -0.2697950303554535, 0.1159566268324852, 0.46225565671920776, -0.041513774544000626, 0.08409010618925095, -0.29422929883003235, 0.14628013968467712, 0.13170994818210602, 0.3118899166584015, 0.2739446461200714, -0.04762434959411621, -0.34565046429634094, 0.16157139837741852, -0.5773795247077942, 0.12946023046970367, -0.11869937181472778, -0.11469243466854095, -0.033453814685344696, -0.15822353959083557, 0.1593216359615326, 0.020615065470337868, 0.38295018672943115, 0.1888180822134018, -0.015940219163894653, -0.10867761075496674, -0.11951403319835663, -0.19319884479045868, -0.08259901404380798, -0.12190099060535431, 0.20101605355739594, -0.3226902484893799, -0.061835769563913345, -0.14577674865722656, 0.03897598385810852, -0.3498081564903259, 0.09371402859687805, 0.1062968522310257, -0.02018941193819046, 0.36031779646873474, 0.1459478735923767, 0.7699720859527588, 0.048815228044986725, 0.11503099650144577, -0.0913878083229065, -0.35364940762519836, -0.40424349904060364, 0.36886849999427795, 0.3255908191204071, 0.25653591752052307, -0.10637723654508591, 0.009764187037944794, -0.1644827127456665, 0.09450652450323105, -0.043546706438064575, 0.32114848494529724, -0.2544761598110199, 0.214504674077034, -0.0240110382437706, 0.017140213400125504, 0.09913115948438644, -0.055626191198825836, -0.002646464854478836, 0.34105467796325684, -0.20675598084926605, -0.604709804058075, 0.6198093891143799, -0.21293115615844727, -0.23955528438091278, 0.153730571269989, 0.15452565252780914, 0.22137928009033203, -0.21874763071537018, -0.510053277015686, 0.0247500017285347, 0.3773822486400604, 0.01900388114154339, -0.4423445165157318, -0.00370657816529274, -0.19275733828544617, 0.051444146782159805, 0.11356012523174286, 0.30625396966934204, 0.11662857979536057, -0.1932860165834427, 0.19910496473312378, -0.25434619188308716 ]
https://github.com/huggingface/datasets/issues/1989
Question/problem with dataset labels
Not sure if this helps, this is how I load my files (as in the sample scripts on transformers): ``` if data_args.train_file.endswith(".csv"): # Loading a dataset from local csv files datasets = load_dataset("csv", data_files=data_files) ```
Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric.
35
Question/problem with dataset labels Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric. Not sure if this helps, this is how I load my files (as in the sample scripts on transformers): ``` if data_args.train_file.endswith(".csv"): # Loading a dataset from local csv files datasets = load_dataset("csv", data_files=data_files) ```
[ 0.17891453206539154, -0.05732292681932449, 0.0051791854202747345, 0.1343669593334198, 0.4113540053367615, 0.35021263360977173, 0.6419942378997803, 0.16370749473571777, -0.16131803393363953, 0.07234975695610046, 0.17885436117649078, 0.06387517601251602, -0.060772933065891266, 0.030526036396622658, -0.13023126125335693, -0.11937084794044495, 0.08908390253782272, 0.17347916960716248, 0.1816423237323761, -0.04446651414036751, -0.2867429256439209, -0.03982596844434738, -0.15668034553527832, 0.36628860235214233, -0.2972060739994049, -0.3766842484474182, 0.21054337918758392, -0.12052827328443527, -0.1131332740187645, -0.4633956551551819, 0.27180981636047363, 0.08611994981765747, 0.0026804115623235703, 0.4034268260002136, -0.00010309630306437612, 0.05875667929649353, 0.29674795269966125, 0.1559886485338211, -0.39840808510780334, -0.43212825059890747, -0.18936029076576233, -0.023407749831676483, 0.03456375002861023, -0.30447694659233093, 0.0979834571480751, -0.28466835618019104, -0.09054110944271088, -0.27566587924957275, 0.1046861857175827, 0.4386059045791626, 0.3266400992870331, 0.2373395562171936, -0.20649957656860352, -0.2293032854795456, 0.2311525046825409, 0.12508846819400787, -0.030509009957313538, 0.04947543516755104, -0.13443872332572937, -0.0064585269428789616, 0.4515700340270996, 0.46091440320014954, -0.2723952829837799, 0.2647714614868164, 0.13536463677883148, 0.14636339247226715, 0.13772451877593994, -0.391047865152359, 0.2763095796108246, 0.19614344835281372, 0.745261013507843, -0.29649999737739563, -0.2943912744522095, -0.169705331325531, 0.1373763084411621, -0.41671931743621826, 0.1813386231660843, 0.07008323073387146, 0.006375730037689209, -0.04701496288180351, -0.033162739127874374, 0.061027172952890396, 0.08074207603931427, 0.08818022906780243, -0.05807507783174515, 0.03832857310771942, -0.09864124655723572, 0.3288170099258423, 0.11253036558628082, -0.07475075125694275, 0.29753026366233826, -0.005993807688355446, -0.08856998383998871, 0.04154462367296219, -0.4325239956378937, -0.029608357697725296, -0.03688069432973862, 0.05167611315846443, -0.11813753098249435, -0.038740478456020355, 0.018386976793408394, -0.37495625019073486, -0.14743581414222717, 0.34034502506256104, 0.2151346504688263, 0.26627588272094727, 0.2706994414329529, 0.5616863369941711, 0.09117235988378525, -0.07616271078586578, 0.030804280191659927, -0.055807456374168396, -0.0015734817134216428, -0.4626432955265045, 0.2433207482099533, 0.09893116354942322, 0.2934700846672058, -0.23985880613327026, -0.5455210208892822, 0.1924419403076172, -0.02810133621096611, 0.09409621357917786, 0.1541178822517395, 0.3049503564834595, 0.022122211754322052, 0.20651811361312866, 0.07934746146202087, 0.19360853731632233, -0.009170521050691605, -0.11720552295446396, -0.2069239765405655, 0.09760816395282745, -0.2002788484096527, -0.15010666847229004, 0.05026936158537865, -0.07205250859260559, 0.11244922131299973, 0.06405946612358093, -0.001004628837108612, -0.07605672627687454, -0.016303835436701775, -0.38646399974823, -0.012748576700687408, 0.3588930070400238, -0.1032634824514389, 0.4203506112098694, 0.2520540952682495, -0.4185497760772705, 0.059699662029743195, 0.18021142482757568, -0.3688519597053528, -0.033813636749982834, -0.21215704083442688, 0.28621289134025574, -0.10304396599531174, -0.18798115849494934, -0.12009156495332718, 0.04682375118136406, 0.41932010650634766, -0.21455375850200653, 0.15759006142616272, -0.3543839454650879, -0.3093222975730896, -0.27777010202407837, -0.06630431860685349, 0.22143234312534332, -0.6722471117973328, 0.00438961386680603, -0.14754675328731537, -0.02911316230893135, 0.052806608378887177, 0.2960191071033478, -0.08100470900535583, 0.20629197359085083, -0.07059179246425629, 0.03035011887550354, 0.13955077528953552, -0.3906910717487335, -0.11046409606933594, 0.1035437136888504, -0.14200331270694733, -0.24426430463790894, 0.07048048824071884, -0.04033976048231125, 0.09173116832971573, -0.09162644296884537, 0.05823200196027756, -0.13187766075134277, -0.19963248074054718, -0.09513352066278458, -0.14370344579219818, 0.053811050951480865, 0.6539096832275391, 0.09273292124271393, -0.01680012419819832, 0.0756470113992691, -0.10022800415754318, -0.3448362350463867, -0.04253276437520981, -0.10095550119876862, 0.20621943473815918, 0.21479018032550812, 0.05564022436738014, 0.29835933446884155, 0.14595213532447815, -0.06447020918130875, -0.4424968361854553, 0.10170135647058487, -0.040051184594631195, 0.1395646184682846, -0.14514295756816864, -0.1923438310623169, -0.3297650218009949, -0.05378587543964386, -0.20797626674175262, 0.01832391321659088, 0.1633133888244629, 0.06836073100566864, -0.22142228484153748, -0.020483465865254402, 0.014084305614233017, -0.07588380575180054, -0.01721424050629139, 0.10933065414428711, -0.10402476787567139, 0.26565203070640564, -0.0951160192489624, 0.11689429730176926, -0.02673938125371933, 0.25312021374702454, 0.43260616064071655, 0.24005185067653656, -0.04662138223648071, 0.36702412366867065, 0.08486071228981018, -0.32702261209487915, 0.007840413600206375, -0.17265819013118744, 0.01812911406159401, -0.08387461304664612, -0.01632683165371418, 0.11452454328536987, 0.2768396735191345, -0.10859730839729309, -0.08471884578466415, 0.1411859393119812, -0.17720110714435577, 0.2762836813926697, -0.16197484731674194, 0.2004607766866684, 0.2599627673625946, -0.10939294099807739, 0.1251223385334015, -0.21271121501922607, 0.2158811241388321, -0.12979836761951447, 0.23431424796581268, 0.00714217871427536, -0.26171746850013733, 0.06771935522556305, 0.42205315828323364, 0.0015309005975723267, -0.003524109721183777, 0.009774107486009598, -0.15866786241531372, 0.16574633121490479, -0.013017604127526283, 0.5957184433937073, 0.35284242033958435, 0.2059558629989624, -0.16387538611888885, -0.05826830118894577, -0.2622590661048889, -0.13698357343673706, 0.21246157586574554, 0.09510184824466705, 0.029852449893951416, 0.057296209037303925, 0.026110144332051277, -0.06643877923488617, -0.17657259106636047, -0.24333874881267548, 0.20823132991790771, 0.34643039107322693, -0.5103120803833008, -0.002906862646341324, -0.3452731966972351, -0.2318640947341919, -0.318596750497818, -0.09879090636968613, -0.2351592779159546, -0.45904412865638733, 0.09043826162815094, -0.07749123871326447, -0.19039319455623627, 0.1450759321451187, -0.03756433352828026, 0.00791795551776886, -0.09107276052236557, 0.1520518660545349, -0.09758442640304565, -0.4702497720718384, -0.2045716643333435, 0.18111222982406616, 0.007479964755475521, 0.04695342853665352, 0.48136067390441895, -0.14319847524166107, -0.12455504387617111, -0.07857242971658707, -0.2953167259693146, 0.004026547074317932, -0.27306586503982544, 0.1366044282913208, 0.18162280321121216, 0.10385961085557938, 0.008461564779281616, -0.1486843377351761, 0.2930159866809845, -0.0715193897485733, 0.02463996224105358, 0.10695695877075195, 0.04523320496082306, -0.29207324981689453, -0.2664700746536255, -0.47501876950263977, -0.47453030943870544, -0.1774820238351822, 0.06694796681404114, -0.07590820640325546, -0.0335288867354393, 0.5198026299476624, 0.06844194233417511, 0.06568092852830887, 0.09314513206481934, 0.023252563551068306, -0.3467433452606201, -0.09354066103696823, 0.24904759228229523, -0.17909157276153564, -0.2102452665567398, 0.19605740904808044, 0.10930982232093811, 0.11752843856811523, -0.20393286645412445, -0.3139225244522095, 0.0728621631860733, -0.05760142207145691, 0.058944594115018845, 0.0813104510307312, 0.1948959231376648, 0.213882714509964, 0.26710188388824463, -0.1480034589767456, -0.32705166935920715, -0.33171191811561584, 0.1381734162569046, -0.07196754217147827, 0.13063524663448334, -0.1062559112906456, 0.2940853238105774, -0.15208378434181213, 0.3265089988708496, 0.02177233248949051, -0.2126559466123581, 0.19188900291919708, -0.04784797877073288, 0.5207322239875793, 0.06838071346282959, -0.4193749725818634, 0.06588515639305115, -0.11910709738731384, 0.026946015655994415, 0.17604292929172516, -0.3196392059326172, 0.037956602871418, -0.1479680836200714, 0.39460432529449463, -0.24780485033988953, -0.0996566042304039, -0.10064300894737244, -0.150168314576149, 0.04052693769335747, 0.11690026521682739, -0.04097502678632736, -0.20840801298618317, -0.19158512353897095, -0.251280277967453, 0.05782359838485718, -0.09546125680208206, -0.08755116909742355, -0.5335748791694641, -0.2334989607334137, -0.16499599814414978, 0.2940983176231384, 0.15745152533054352, 0.3346639573574066, -0.1785169392824173, 0.24547147750854492, 0.04775853827595711, 0.2458997219800949, 0.6149806380271912, -0.48323917388916016, 0.15470220148563385, 0.2263718545436859, 0.3931272625923157, -0.17800173163414001, -0.1272554248571396, -0.16925737261772156, 0.29472607374191284, -0.29577773809432983, 0.0259886272251606, -0.15553420782089233, -0.09107694029808044, 0.2631005048751831, 0.15540610253810883, -0.12238006293773651, -0.3149801790714264, -0.2309514582157135, -0.17939317226409912, -0.12728534638881683, -0.05339682847261429, 0.06357723474502563, 0.1866377294063568, -0.3784867525100708, 0.09864826500415802, 0.1408238410949707, 0.07350717484951019, 0.27150458097457886, 0.11863504350185394, 0.22324323654174805, 0.030276760458946228, 0.19736120104789734, 0.3174026608467102, 0.25872570276260376, 0.5099823474884033, 0.5483983755111694, -0.3618464469909668, -0.5113288760185242, -0.11947879940271378, -0.11476913839578629, 0.2007075399160385, 0.06500126421451569, -0.14221495389938354, 0.1660955250263214, -0.05063997954130173, 0.18545863032341003, 0.09619792550802231, 0.022308139130473137, 0.49229511618614197, 0.16057629883289337, -0.48984774947166443, -0.5388926267623901, 0.2713593542575836, 0.03924167528748512, -0.047840673476457596, 0.12815584242343903, 0.07973237335681915, -0.3407571017742157, 0.20595282316207886, -0.15599361062049866, 0.6908725500106812, 0.08379792422056198, -0.051030565053224564, -0.01703104004263878, -0.2261730283498764, 0.7132234573364258, -0.11871135234832764, 0.0007717739790678024, -0.36142903566360474, -0.3074665665626526, -0.06222996860742569, -0.022118709981441498, 0.023474864661693573, 0.45069295167922974, -0.3085786700248718, 0.3788376748561859, -0.32851341366767883, 0.20468662679195404, 0.0287502259016037, -0.07406165450811386, 0.24943947792053223, -0.13231386244297028, -0.08248588442802429, 0.20103423297405243, -0.15761911869049072, -0.13437587022781372, -0.16743484139442444, 0.041905298829078674, -0.2318483293056488, -0.26806050539016724, -0.22626037895679474, 0.08226095885038376, -0.25382494926452637, 0.14157822728157043, -0.08565416932106018, -0.0167192742228508, 0.21681106090545654, 0.20250985026359558, 0.4863223433494568, 0.07892397046089172, -0.14828674495220184, 0.18389557301998138, 0.042148612439632416, 0.1370237171649933, 0.03434881195425987, 0.053746625781059265, 0.41506263613700867, 0.11604952067136765, -0.2699807286262512, 0.1285300999879837, -0.07956741005182266, 0.1759495884180069, -0.08703167736530304, 0.08389420062303543, -0.09839758276939392, -0.36537548899650574, 0.03264753147959709, -0.07703882455825806, 0.2287103533744812, -0.25377342104911804, 0.1773461103439331, 0.05198296159505844, -0.04668021574616432, 0.2120787501335144, -0.26369139552116394, -0.14659744501113892, -0.0457465834915638, 0.18923303484916687, 0.025963841006159782, 0.19335618615150452, 0.2472444772720337, 0.02597314491868019, -0.35139185190200806, -0.25651124119758606, 0.03895159065723419, 0.02399946004152298, -0.6778349876403809, 0.24598263204097748, 0.25335434079170227, 0.07594607770442963, -0.057189375162124634, 0.22326834499835968, -0.01583019271492958, 0.07108473032712936, 0.06101376935839653, -0.5274378061294556, -0.21865007281303406, -0.004669703543186188, -0.18475477397441864, 0.11693009734153748, 0.24786508083343506, 0.4110049605369568, 0.13375768065452576, 0.07144966721534729, -0.364154189825058, -0.020954139530658722, -0.17239390313625336, 0.2980128526687622, 0.15251107513904572, 0.01996077410876751, 0.2820310592651367, -0.17880651354789734, 0.21821677684783936, 0.0007443204522132874, 0.007750300690531731, -0.24981853365898132, -0.18720903992652893, 0.11241061985492706, 0.135209858417511, -0.19721606373786926, -0.06341155618429184, -0.16438157856464386, 0.057836927473545074, -0.0719839483499527, -0.0172507893294096, 0.31057414412498474, 0.003207750618457794, 0.37353095412254333, -0.150922030210495, 0.23278465867042542, -0.046329643577337265, 0.21827778220176697, 0.012717105448246002, -0.11400127410888672, 0.0742453783750534, 0.17296579480171204, -0.11276457458734512, 0.01947830617427826, -0.1750796139240265, 0.08479522913694382, -0.1170053631067276, -0.1179296001791954, 0.13429349660873413, -0.56898033618927, 0.2959568500518799, 0.19363825023174286, 0.4493628144264221, 0.2781367897987366, -0.18682590126991272, -0.07076673209667206, 0.38260918855667114, 0.30792683362960815, -0.3656698763370514, -0.16836020350456238, 0.16300183534622192, 0.16556134819984436, 0.0003902427852153778, 0.07560751587152481, 0.060725416988134384, -0.031059913337230682, 0.044892385601997375, 0.00808582454919815, 0.45543891191482544, -0.43765467405319214, 0.23490497469902039, 0.5269829630851746, -0.06197105720639229, 0.09998415410518646, 0.49679407477378845, 0.1731766313314438, 0.06353316456079483, 0.5881983637809753, 0.034650202840566635, 0.1773209571838379, 0.18747013807296753, -0.13795991241931915, -0.07542070001363754, -0.17221783101558685, 0.1809181272983551, 0.09697271883487701, 0.018856719136238098, -0.042831532657146454, -0.0954480916261673, 0.30113422870635986, -0.383945107460022, 0.004110261332243681, -0.0057688429951667786, 0.1111968457698822, -0.22550374269485474, -0.10601559281349182, -0.156263068318367, -0.09870950132608414, -0.16644605994224548, -0.19731584191322327, 0.014028046280145645, -0.1700509637594223, 0.3556351959705353, -0.07428097724914551, -0.19596438109874725, -0.45658159255981445, -0.18677827715873718, 0.3054199516773224, 0.06508123129606247, -0.24730996787548065, 0.01632004790008068, 0.2487560659646988, -0.14550121128559113, 0.3213777542114258, 0.08623997122049332, 0.6039391160011292, 0.17137520015239716, 0.0897911787033081, -0.3410915732383728, -0.09729558229446411, -0.08858038485050201, 0.15166372060775757, 0.21556805074214935, 0.04592078924179077, -0.03683386370539665, 0.39226579666137695, 0.20187820494174957, -0.17074908316135406, 0.30858010053634644, 0.33574214577674866, 0.2227042317390442, -0.17061986029148102, -0.06306739896535873, -0.13396553695201874, -0.25735458731651306, -0.3266395926475525, 0.10131882131099701, -0.2697950303554535, 0.1159566268324852, 0.46225565671920776, -0.041513774544000626, 0.08409010618925095, -0.29422929883003235, 0.14628013968467712, 0.13170994818210602, 0.3118899166584015, 0.2739446461200714, -0.04762434959411621, -0.34565046429634094, 0.16157139837741852, -0.5773795247077942, 0.12946023046970367, -0.11869937181472778, -0.11469243466854095, -0.033453814685344696, -0.15822353959083557, 0.1593216359615326, 0.020615065470337868, 0.38295018672943115, 0.1888180822134018, -0.015940219163894653, -0.10867761075496674, -0.11951403319835663, -0.19319884479045868, -0.08259901404380798, -0.12190099060535431, 0.20101605355739594, -0.3226902484893799, -0.061835769563913345, -0.14577674865722656, 0.03897598385810852, -0.3498081564903259, 0.09371402859687805, 0.1062968522310257, -0.02018941193819046, 0.36031779646873474, 0.1459478735923767, 0.7699720859527588, 0.048815228044986725, 0.11503099650144577, -0.0913878083229065, -0.35364940762519836, -0.40424349904060364, 0.36886849999427795, 0.3255908191204071, 0.25653591752052307, -0.10637723654508591, 0.009764187037944794, -0.1644827127456665, 0.09450652450323105, -0.043546706438064575, 0.32114848494529724, -0.2544761598110199, 0.214504674077034, -0.0240110382437706, 0.017140213400125504, 0.09913115948438644, -0.055626191198825836, -0.002646464854478836, 0.34105467796325684, -0.20675598084926605, -0.604709804058075, 0.6198093891143799, -0.21293115615844727, -0.23955528438091278, 0.153730571269989, 0.15452565252780914, 0.22137928009033203, -0.21874763071537018, -0.510053277015686, 0.0247500017285347, 0.3773822486400604, 0.01900388114154339, -0.4423445165157318, -0.00370657816529274, -0.19275733828544617, 0.051444146782159805, 0.11356012523174286, 0.30625396966934204, 0.11662857979536057, -0.1932860165834427, 0.19910496473312378, -0.25434619188308716 ]
https://github.com/huggingface/datasets/issues/1989
Question/problem with dataset labels
Since this worked out of the box in a few examples before, I wonder if it's some quoting issue or something else.
Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric.
22
Question/problem with dataset labels Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric. Since this worked out of the box in a few examples before, I wonder if it's some quoting issue or something else.
[ 0.17891453206539154, -0.05732292681932449, 0.0051791854202747345, 0.1343669593334198, 0.4113540053367615, 0.35021263360977173, 0.6419942378997803, 0.16370749473571777, -0.16131803393363953, 0.07234975695610046, 0.17885436117649078, 0.06387517601251602, -0.060772933065891266, 0.030526036396622658, -0.13023126125335693, -0.11937084794044495, 0.08908390253782272, 0.17347916960716248, 0.1816423237323761, -0.04446651414036751, -0.2867429256439209, -0.03982596844434738, -0.15668034553527832, 0.36628860235214233, -0.2972060739994049, -0.3766842484474182, 0.21054337918758392, -0.12052827328443527, -0.1131332740187645, -0.4633956551551819, 0.27180981636047363, 0.08611994981765747, 0.0026804115623235703, 0.4034268260002136, -0.00010309630306437612, 0.05875667929649353, 0.29674795269966125, 0.1559886485338211, -0.39840808510780334, -0.43212825059890747, -0.18936029076576233, -0.023407749831676483, 0.03456375002861023, -0.30447694659233093, 0.0979834571480751, -0.28466835618019104, -0.09054110944271088, -0.27566587924957275, 0.1046861857175827, 0.4386059045791626, 0.3266400992870331, 0.2373395562171936, -0.20649957656860352, -0.2293032854795456, 0.2311525046825409, 0.12508846819400787, -0.030509009957313538, 0.04947543516755104, -0.13443872332572937, -0.0064585269428789616, 0.4515700340270996, 0.46091440320014954, -0.2723952829837799, 0.2647714614868164, 0.13536463677883148, 0.14636339247226715, 0.13772451877593994, -0.391047865152359, 0.2763095796108246, 0.19614344835281372, 0.745261013507843, -0.29649999737739563, -0.2943912744522095, -0.169705331325531, 0.1373763084411621, -0.41671931743621826, 0.1813386231660843, 0.07008323073387146, 0.006375730037689209, -0.04701496288180351, -0.033162739127874374, 0.061027172952890396, 0.08074207603931427, 0.08818022906780243, -0.05807507783174515, 0.03832857310771942, -0.09864124655723572, 0.3288170099258423, 0.11253036558628082, -0.07475075125694275, 0.29753026366233826, -0.005993807688355446, -0.08856998383998871, 0.04154462367296219, -0.4325239956378937, -0.029608357697725296, -0.03688069432973862, 0.05167611315846443, -0.11813753098249435, -0.038740478456020355, 0.018386976793408394, -0.37495625019073486, -0.14743581414222717, 0.34034502506256104, 0.2151346504688263, 0.26627588272094727, 0.2706994414329529, 0.5616863369941711, 0.09117235988378525, -0.07616271078586578, 0.030804280191659927, -0.055807456374168396, -0.0015734817134216428, -0.4626432955265045, 0.2433207482099533, 0.09893116354942322, 0.2934700846672058, -0.23985880613327026, -0.5455210208892822, 0.1924419403076172, -0.02810133621096611, 0.09409621357917786, 0.1541178822517395, 0.3049503564834595, 0.022122211754322052, 0.20651811361312866, 0.07934746146202087, 0.19360853731632233, -0.009170521050691605, -0.11720552295446396, -0.2069239765405655, 0.09760816395282745, -0.2002788484096527, -0.15010666847229004, 0.05026936158537865, -0.07205250859260559, 0.11244922131299973, 0.06405946612358093, -0.001004628837108612, -0.07605672627687454, -0.016303835436701775, -0.38646399974823, -0.012748576700687408, 0.3588930070400238, -0.1032634824514389, 0.4203506112098694, 0.2520540952682495, -0.4185497760772705, 0.059699662029743195, 0.18021142482757568, -0.3688519597053528, -0.033813636749982834, -0.21215704083442688, 0.28621289134025574, -0.10304396599531174, -0.18798115849494934, -0.12009156495332718, 0.04682375118136406, 0.41932010650634766, -0.21455375850200653, 0.15759006142616272, -0.3543839454650879, -0.3093222975730896, -0.27777010202407837, -0.06630431860685349, 0.22143234312534332, -0.6722471117973328, 0.00438961386680603, -0.14754675328731537, -0.02911316230893135, 0.052806608378887177, 0.2960191071033478, -0.08100470900535583, 0.20629197359085083, -0.07059179246425629, 0.03035011887550354, 0.13955077528953552, -0.3906910717487335, -0.11046409606933594, 0.1035437136888504, -0.14200331270694733, -0.24426430463790894, 0.07048048824071884, -0.04033976048231125, 0.09173116832971573, -0.09162644296884537, 0.05823200196027756, -0.13187766075134277, -0.19963248074054718, -0.09513352066278458, -0.14370344579219818, 0.053811050951480865, 0.6539096832275391, 0.09273292124271393, -0.01680012419819832, 0.0756470113992691, -0.10022800415754318, -0.3448362350463867, -0.04253276437520981, -0.10095550119876862, 0.20621943473815918, 0.21479018032550812, 0.05564022436738014, 0.29835933446884155, 0.14595213532447815, -0.06447020918130875, -0.4424968361854553, 0.10170135647058487, -0.040051184594631195, 0.1395646184682846, -0.14514295756816864, -0.1923438310623169, -0.3297650218009949, -0.05378587543964386, -0.20797626674175262, 0.01832391321659088, 0.1633133888244629, 0.06836073100566864, -0.22142228484153748, -0.020483465865254402, 0.014084305614233017, -0.07588380575180054, -0.01721424050629139, 0.10933065414428711, -0.10402476787567139, 0.26565203070640564, -0.0951160192489624, 0.11689429730176926, -0.02673938125371933, 0.25312021374702454, 0.43260616064071655, 0.24005185067653656, -0.04662138223648071, 0.36702412366867065, 0.08486071228981018, -0.32702261209487915, 0.007840413600206375, -0.17265819013118744, 0.01812911406159401, -0.08387461304664612, -0.01632683165371418, 0.11452454328536987, 0.2768396735191345, -0.10859730839729309, -0.08471884578466415, 0.1411859393119812, -0.17720110714435577, 0.2762836813926697, -0.16197484731674194, 0.2004607766866684, 0.2599627673625946, -0.10939294099807739, 0.1251223385334015, -0.21271121501922607, 0.2158811241388321, -0.12979836761951447, 0.23431424796581268, 0.00714217871427536, -0.26171746850013733, 0.06771935522556305, 0.42205315828323364, 0.0015309005975723267, -0.003524109721183777, 0.009774107486009598, -0.15866786241531372, 0.16574633121490479, -0.013017604127526283, 0.5957184433937073, 0.35284242033958435, 0.2059558629989624, -0.16387538611888885, -0.05826830118894577, -0.2622590661048889, -0.13698357343673706, 0.21246157586574554, 0.09510184824466705, 0.029852449893951416, 0.057296209037303925, 0.026110144332051277, -0.06643877923488617, -0.17657259106636047, -0.24333874881267548, 0.20823132991790771, 0.34643039107322693, -0.5103120803833008, -0.002906862646341324, -0.3452731966972351, -0.2318640947341919, -0.318596750497818, -0.09879090636968613, -0.2351592779159546, -0.45904412865638733, 0.09043826162815094, -0.07749123871326447, -0.19039319455623627, 0.1450759321451187, -0.03756433352828026, 0.00791795551776886, -0.09107276052236557, 0.1520518660545349, -0.09758442640304565, -0.4702497720718384, -0.2045716643333435, 0.18111222982406616, 0.007479964755475521, 0.04695342853665352, 0.48136067390441895, -0.14319847524166107, -0.12455504387617111, -0.07857242971658707, -0.2953167259693146, 0.004026547074317932, -0.27306586503982544, 0.1366044282913208, 0.18162280321121216, 0.10385961085557938, 0.008461564779281616, -0.1486843377351761, 0.2930159866809845, -0.0715193897485733, 0.02463996224105358, 0.10695695877075195, 0.04523320496082306, -0.29207324981689453, -0.2664700746536255, -0.47501876950263977, -0.47453030943870544, -0.1774820238351822, 0.06694796681404114, -0.07590820640325546, -0.0335288867354393, 0.5198026299476624, 0.06844194233417511, 0.06568092852830887, 0.09314513206481934, 0.023252563551068306, -0.3467433452606201, -0.09354066103696823, 0.24904759228229523, -0.17909157276153564, -0.2102452665567398, 0.19605740904808044, 0.10930982232093811, 0.11752843856811523, -0.20393286645412445, -0.3139225244522095, 0.0728621631860733, -0.05760142207145691, 0.058944594115018845, 0.0813104510307312, 0.1948959231376648, 0.213882714509964, 0.26710188388824463, -0.1480034589767456, -0.32705166935920715, -0.33171191811561584, 0.1381734162569046, -0.07196754217147827, 0.13063524663448334, -0.1062559112906456, 0.2940853238105774, -0.15208378434181213, 0.3265089988708496, 0.02177233248949051, -0.2126559466123581, 0.19188900291919708, -0.04784797877073288, 0.5207322239875793, 0.06838071346282959, -0.4193749725818634, 0.06588515639305115, -0.11910709738731384, 0.026946015655994415, 0.17604292929172516, -0.3196392059326172, 0.037956602871418, -0.1479680836200714, 0.39460432529449463, -0.24780485033988953, -0.0996566042304039, -0.10064300894737244, -0.150168314576149, 0.04052693769335747, 0.11690026521682739, -0.04097502678632736, -0.20840801298618317, -0.19158512353897095, -0.251280277967453, 0.05782359838485718, -0.09546125680208206, -0.08755116909742355, -0.5335748791694641, -0.2334989607334137, -0.16499599814414978, 0.2940983176231384, 0.15745152533054352, 0.3346639573574066, -0.1785169392824173, 0.24547147750854492, 0.04775853827595711, 0.2458997219800949, 0.6149806380271912, -0.48323917388916016, 0.15470220148563385, 0.2263718545436859, 0.3931272625923157, -0.17800173163414001, -0.1272554248571396, -0.16925737261772156, 0.29472607374191284, -0.29577773809432983, 0.0259886272251606, -0.15553420782089233, -0.09107694029808044, 0.2631005048751831, 0.15540610253810883, -0.12238006293773651, -0.3149801790714264, -0.2309514582157135, -0.17939317226409912, -0.12728534638881683, -0.05339682847261429, 0.06357723474502563, 0.1866377294063568, -0.3784867525100708, 0.09864826500415802, 0.1408238410949707, 0.07350717484951019, 0.27150458097457886, 0.11863504350185394, 0.22324323654174805, 0.030276760458946228, 0.19736120104789734, 0.3174026608467102, 0.25872570276260376, 0.5099823474884033, 0.5483983755111694, -0.3618464469909668, -0.5113288760185242, -0.11947879940271378, -0.11476913839578629, 0.2007075399160385, 0.06500126421451569, -0.14221495389938354, 0.1660955250263214, -0.05063997954130173, 0.18545863032341003, 0.09619792550802231, 0.022308139130473137, 0.49229511618614197, 0.16057629883289337, -0.48984774947166443, -0.5388926267623901, 0.2713593542575836, 0.03924167528748512, -0.047840673476457596, 0.12815584242343903, 0.07973237335681915, -0.3407571017742157, 0.20595282316207886, -0.15599361062049866, 0.6908725500106812, 0.08379792422056198, -0.051030565053224564, -0.01703104004263878, -0.2261730283498764, 0.7132234573364258, -0.11871135234832764, 0.0007717739790678024, -0.36142903566360474, -0.3074665665626526, -0.06222996860742569, -0.022118709981441498, 0.023474864661693573, 0.45069295167922974, -0.3085786700248718, 0.3788376748561859, -0.32851341366767883, 0.20468662679195404, 0.0287502259016037, -0.07406165450811386, 0.24943947792053223, -0.13231386244297028, -0.08248588442802429, 0.20103423297405243, -0.15761911869049072, -0.13437587022781372, -0.16743484139442444, 0.041905298829078674, -0.2318483293056488, -0.26806050539016724, -0.22626037895679474, 0.08226095885038376, -0.25382494926452637, 0.14157822728157043, -0.08565416932106018, -0.0167192742228508, 0.21681106090545654, 0.20250985026359558, 0.4863223433494568, 0.07892397046089172, -0.14828674495220184, 0.18389557301998138, 0.042148612439632416, 0.1370237171649933, 0.03434881195425987, 0.053746625781059265, 0.41506263613700867, 0.11604952067136765, -0.2699807286262512, 0.1285300999879837, -0.07956741005182266, 0.1759495884180069, -0.08703167736530304, 0.08389420062303543, -0.09839758276939392, -0.36537548899650574, 0.03264753147959709, -0.07703882455825806, 0.2287103533744812, -0.25377342104911804, 0.1773461103439331, 0.05198296159505844, -0.04668021574616432, 0.2120787501335144, -0.26369139552116394, -0.14659744501113892, -0.0457465834915638, 0.18923303484916687, 0.025963841006159782, 0.19335618615150452, 0.2472444772720337, 0.02597314491868019, -0.35139185190200806, -0.25651124119758606, 0.03895159065723419, 0.02399946004152298, -0.6778349876403809, 0.24598263204097748, 0.25335434079170227, 0.07594607770442963, -0.057189375162124634, 0.22326834499835968, -0.01583019271492958, 0.07108473032712936, 0.06101376935839653, -0.5274378061294556, -0.21865007281303406, -0.004669703543186188, -0.18475477397441864, 0.11693009734153748, 0.24786508083343506, 0.4110049605369568, 0.13375768065452576, 0.07144966721534729, -0.364154189825058, -0.020954139530658722, -0.17239390313625336, 0.2980128526687622, 0.15251107513904572, 0.01996077410876751, 0.2820310592651367, -0.17880651354789734, 0.21821677684783936, 0.0007443204522132874, 0.007750300690531731, -0.24981853365898132, -0.18720903992652893, 0.11241061985492706, 0.135209858417511, -0.19721606373786926, -0.06341155618429184, -0.16438157856464386, 0.057836927473545074, -0.0719839483499527, -0.0172507893294096, 0.31057414412498474, 0.003207750618457794, 0.37353095412254333, -0.150922030210495, 0.23278465867042542, -0.046329643577337265, 0.21827778220176697, 0.012717105448246002, -0.11400127410888672, 0.0742453783750534, 0.17296579480171204, -0.11276457458734512, 0.01947830617427826, -0.1750796139240265, 0.08479522913694382, -0.1170053631067276, -0.1179296001791954, 0.13429349660873413, -0.56898033618927, 0.2959568500518799, 0.19363825023174286, 0.4493628144264221, 0.2781367897987366, -0.18682590126991272, -0.07076673209667206, 0.38260918855667114, 0.30792683362960815, -0.3656698763370514, -0.16836020350456238, 0.16300183534622192, 0.16556134819984436, 0.0003902427852153778, 0.07560751587152481, 0.060725416988134384, -0.031059913337230682, 0.044892385601997375, 0.00808582454919815, 0.45543891191482544, -0.43765467405319214, 0.23490497469902039, 0.5269829630851746, -0.06197105720639229, 0.09998415410518646, 0.49679407477378845, 0.1731766313314438, 0.06353316456079483, 0.5881983637809753, 0.034650202840566635, 0.1773209571838379, 0.18747013807296753, -0.13795991241931915, -0.07542070001363754, -0.17221783101558685, 0.1809181272983551, 0.09697271883487701, 0.018856719136238098, -0.042831532657146454, -0.0954480916261673, 0.30113422870635986, -0.383945107460022, 0.004110261332243681, -0.0057688429951667786, 0.1111968457698822, -0.22550374269485474, -0.10601559281349182, -0.156263068318367, -0.09870950132608414, -0.16644605994224548, -0.19731584191322327, 0.014028046280145645, -0.1700509637594223, 0.3556351959705353, -0.07428097724914551, -0.19596438109874725, -0.45658159255981445, -0.18677827715873718, 0.3054199516773224, 0.06508123129606247, -0.24730996787548065, 0.01632004790008068, 0.2487560659646988, -0.14550121128559113, 0.3213777542114258, 0.08623997122049332, 0.6039391160011292, 0.17137520015239716, 0.0897911787033081, -0.3410915732383728, -0.09729558229446411, -0.08858038485050201, 0.15166372060775757, 0.21556805074214935, 0.04592078924179077, -0.03683386370539665, 0.39226579666137695, 0.20187820494174957, -0.17074908316135406, 0.30858010053634644, 0.33574214577674866, 0.2227042317390442, -0.17061986029148102, -0.06306739896535873, -0.13396553695201874, -0.25735458731651306, -0.3266395926475525, 0.10131882131099701, -0.2697950303554535, 0.1159566268324852, 0.46225565671920776, -0.041513774544000626, 0.08409010618925095, -0.29422929883003235, 0.14628013968467712, 0.13170994818210602, 0.3118899166584015, 0.2739446461200714, -0.04762434959411621, -0.34565046429634094, 0.16157139837741852, -0.5773795247077942, 0.12946023046970367, -0.11869937181472778, -0.11469243466854095, -0.033453814685344696, -0.15822353959083557, 0.1593216359615326, 0.020615065470337868, 0.38295018672943115, 0.1888180822134018, -0.015940219163894653, -0.10867761075496674, -0.11951403319835663, -0.19319884479045868, -0.08259901404380798, -0.12190099060535431, 0.20101605355739594, -0.3226902484893799, -0.061835769563913345, -0.14577674865722656, 0.03897598385810852, -0.3498081564903259, 0.09371402859687805, 0.1062968522310257, -0.02018941193819046, 0.36031779646873474, 0.1459478735923767, 0.7699720859527588, 0.048815228044986725, 0.11503099650144577, -0.0913878083229065, -0.35364940762519836, -0.40424349904060364, 0.36886849999427795, 0.3255908191204071, 0.25653591752052307, -0.10637723654508591, 0.009764187037944794, -0.1644827127456665, 0.09450652450323105, -0.043546706438064575, 0.32114848494529724, -0.2544761598110199, 0.214504674077034, -0.0240110382437706, 0.017140213400125504, 0.09913115948438644, -0.055626191198825836, -0.002646464854478836, 0.34105467796325684, -0.20675598084926605, -0.604709804058075, 0.6198093891143799, -0.21293115615844727, -0.23955528438091278, 0.153730571269989, 0.15452565252780914, 0.22137928009033203, -0.21874763071537018, -0.510053277015686, 0.0247500017285347, 0.3773822486400604, 0.01900388114154339, -0.4423445165157318, -0.00370657816529274, -0.19275733828544617, 0.051444146782159805, 0.11356012523174286, 0.30625396966934204, 0.11662857979536057, -0.1932860165834427, 0.19910496473312378, -0.25434619188308716 ]
https://github.com/huggingface/datasets/issues/1989
Question/problem with dataset labels
Hi @ioana-blue, Can you share a sample from your .csv? A dummy where you get this error will also help. I tried this csv: ```csv feature,label 1.2,not nurse 1.3,nurse 1.5,surgeon ``` and the following snippet: ```python from datasets import load_dataset d = load_dataset("csv",data_files=['test.csv']) print(d) print(d['train']['label']) ``` and this works perfectly fine for me: ```sh DatasetDict({ train: Dataset({ features: ['feature', 'label'], num_rows: 3 }) }) ['not nurse', 'nurse', 'surgeon'] ``` I'm sure your csv is more complicated than this one. But it is hard to tell where the issue might be without looking at a sample.
Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric.
95
Question/problem with dataset labels Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric. Hi @ioana-blue, Can you share a sample from your .csv? A dummy where you get this error will also help. I tried this csv: ```csv feature,label 1.2,not nurse 1.3,nurse 1.5,surgeon ``` and the following snippet: ```python from datasets import load_dataset d = load_dataset("csv",data_files=['test.csv']) print(d) print(d['train']['label']) ``` and this works perfectly fine for me: ```sh DatasetDict({ train: Dataset({ features: ['feature', 'label'], num_rows: 3 }) }) ['not nurse', 'nurse', 'surgeon'] ``` I'm sure your csv is more complicated than this one. But it is hard to tell where the issue might be without looking at a sample.
[ 0.17891453206539154, -0.05732292681932449, 0.0051791854202747345, 0.1343669593334198, 0.4113540053367615, 0.35021263360977173, 0.6419942378997803, 0.16370749473571777, -0.16131803393363953, 0.07234975695610046, 0.17885436117649078, 0.06387517601251602, -0.060772933065891266, 0.030526036396622658, -0.13023126125335693, -0.11937084794044495, 0.08908390253782272, 0.17347916960716248, 0.1816423237323761, -0.04446651414036751, -0.2867429256439209, -0.03982596844434738, -0.15668034553527832, 0.36628860235214233, -0.2972060739994049, -0.3766842484474182, 0.21054337918758392, -0.12052827328443527, -0.1131332740187645, -0.4633956551551819, 0.27180981636047363, 0.08611994981765747, 0.0026804115623235703, 0.4034268260002136, -0.00010309630306437612, 0.05875667929649353, 0.29674795269966125, 0.1559886485338211, -0.39840808510780334, -0.43212825059890747, -0.18936029076576233, -0.023407749831676483, 0.03456375002861023, -0.30447694659233093, 0.0979834571480751, -0.28466835618019104, -0.09054110944271088, -0.27566587924957275, 0.1046861857175827, 0.4386059045791626, 0.3266400992870331, 0.2373395562171936, -0.20649957656860352, -0.2293032854795456, 0.2311525046825409, 0.12508846819400787, -0.030509009957313538, 0.04947543516755104, -0.13443872332572937, -0.0064585269428789616, 0.4515700340270996, 0.46091440320014954, -0.2723952829837799, 0.2647714614868164, 0.13536463677883148, 0.14636339247226715, 0.13772451877593994, -0.391047865152359, 0.2763095796108246, 0.19614344835281372, 0.745261013507843, -0.29649999737739563, -0.2943912744522095, -0.169705331325531, 0.1373763084411621, -0.41671931743621826, 0.1813386231660843, 0.07008323073387146, 0.006375730037689209, -0.04701496288180351, -0.033162739127874374, 0.061027172952890396, 0.08074207603931427, 0.08818022906780243, -0.05807507783174515, 0.03832857310771942, -0.09864124655723572, 0.3288170099258423, 0.11253036558628082, -0.07475075125694275, 0.29753026366233826, -0.005993807688355446, -0.08856998383998871, 0.04154462367296219, -0.4325239956378937, -0.029608357697725296, -0.03688069432973862, 0.05167611315846443, -0.11813753098249435, -0.038740478456020355, 0.018386976793408394, -0.37495625019073486, -0.14743581414222717, 0.34034502506256104, 0.2151346504688263, 0.26627588272094727, 0.2706994414329529, 0.5616863369941711, 0.09117235988378525, -0.07616271078586578, 0.030804280191659927, -0.055807456374168396, -0.0015734817134216428, -0.4626432955265045, 0.2433207482099533, 0.09893116354942322, 0.2934700846672058, -0.23985880613327026, -0.5455210208892822, 0.1924419403076172, -0.02810133621096611, 0.09409621357917786, 0.1541178822517395, 0.3049503564834595, 0.022122211754322052, 0.20651811361312866, 0.07934746146202087, 0.19360853731632233, -0.009170521050691605, -0.11720552295446396, -0.2069239765405655, 0.09760816395282745, -0.2002788484096527, -0.15010666847229004, 0.05026936158537865, -0.07205250859260559, 0.11244922131299973, 0.06405946612358093, -0.001004628837108612, -0.07605672627687454, -0.016303835436701775, -0.38646399974823, -0.012748576700687408, 0.3588930070400238, -0.1032634824514389, 0.4203506112098694, 0.2520540952682495, -0.4185497760772705, 0.059699662029743195, 0.18021142482757568, -0.3688519597053528, -0.033813636749982834, -0.21215704083442688, 0.28621289134025574, -0.10304396599531174, -0.18798115849494934, -0.12009156495332718, 0.04682375118136406, 0.41932010650634766, -0.21455375850200653, 0.15759006142616272, -0.3543839454650879, -0.3093222975730896, -0.27777010202407837, -0.06630431860685349, 0.22143234312534332, -0.6722471117973328, 0.00438961386680603, -0.14754675328731537, -0.02911316230893135, 0.052806608378887177, 0.2960191071033478, -0.08100470900535583, 0.20629197359085083, -0.07059179246425629, 0.03035011887550354, 0.13955077528953552, -0.3906910717487335, -0.11046409606933594, 0.1035437136888504, -0.14200331270694733, -0.24426430463790894, 0.07048048824071884, -0.04033976048231125, 0.09173116832971573, -0.09162644296884537, 0.05823200196027756, -0.13187766075134277, -0.19963248074054718, -0.09513352066278458, -0.14370344579219818, 0.053811050951480865, 0.6539096832275391, 0.09273292124271393, -0.01680012419819832, 0.0756470113992691, -0.10022800415754318, -0.3448362350463867, -0.04253276437520981, -0.10095550119876862, 0.20621943473815918, 0.21479018032550812, 0.05564022436738014, 0.29835933446884155, 0.14595213532447815, -0.06447020918130875, -0.4424968361854553, 0.10170135647058487, -0.040051184594631195, 0.1395646184682846, -0.14514295756816864, -0.1923438310623169, -0.3297650218009949, -0.05378587543964386, -0.20797626674175262, 0.01832391321659088, 0.1633133888244629, 0.06836073100566864, -0.22142228484153748, -0.020483465865254402, 0.014084305614233017, -0.07588380575180054, -0.01721424050629139, 0.10933065414428711, -0.10402476787567139, 0.26565203070640564, -0.0951160192489624, 0.11689429730176926, -0.02673938125371933, 0.25312021374702454, 0.43260616064071655, 0.24005185067653656, -0.04662138223648071, 0.36702412366867065, 0.08486071228981018, -0.32702261209487915, 0.007840413600206375, -0.17265819013118744, 0.01812911406159401, -0.08387461304664612, -0.01632683165371418, 0.11452454328536987, 0.2768396735191345, -0.10859730839729309, -0.08471884578466415, 0.1411859393119812, -0.17720110714435577, 0.2762836813926697, -0.16197484731674194, 0.2004607766866684, 0.2599627673625946, -0.10939294099807739, 0.1251223385334015, -0.21271121501922607, 0.2158811241388321, -0.12979836761951447, 0.23431424796581268, 0.00714217871427536, -0.26171746850013733, 0.06771935522556305, 0.42205315828323364, 0.0015309005975723267, -0.003524109721183777, 0.009774107486009598, -0.15866786241531372, 0.16574633121490479, -0.013017604127526283, 0.5957184433937073, 0.35284242033958435, 0.2059558629989624, -0.16387538611888885, -0.05826830118894577, -0.2622590661048889, -0.13698357343673706, 0.21246157586574554, 0.09510184824466705, 0.029852449893951416, 0.057296209037303925, 0.026110144332051277, -0.06643877923488617, -0.17657259106636047, -0.24333874881267548, 0.20823132991790771, 0.34643039107322693, -0.5103120803833008, -0.002906862646341324, -0.3452731966972351, -0.2318640947341919, -0.318596750497818, -0.09879090636968613, -0.2351592779159546, -0.45904412865638733, 0.09043826162815094, -0.07749123871326447, -0.19039319455623627, 0.1450759321451187, -0.03756433352828026, 0.00791795551776886, -0.09107276052236557, 0.1520518660545349, -0.09758442640304565, -0.4702497720718384, -0.2045716643333435, 0.18111222982406616, 0.007479964755475521, 0.04695342853665352, 0.48136067390441895, -0.14319847524166107, -0.12455504387617111, -0.07857242971658707, -0.2953167259693146, 0.004026547074317932, -0.27306586503982544, 0.1366044282913208, 0.18162280321121216, 0.10385961085557938, 0.008461564779281616, -0.1486843377351761, 0.2930159866809845, -0.0715193897485733, 0.02463996224105358, 0.10695695877075195, 0.04523320496082306, -0.29207324981689453, -0.2664700746536255, -0.47501876950263977, -0.47453030943870544, -0.1774820238351822, 0.06694796681404114, -0.07590820640325546, -0.0335288867354393, 0.5198026299476624, 0.06844194233417511, 0.06568092852830887, 0.09314513206481934, 0.023252563551068306, -0.3467433452606201, -0.09354066103696823, 0.24904759228229523, -0.17909157276153564, -0.2102452665567398, 0.19605740904808044, 0.10930982232093811, 0.11752843856811523, -0.20393286645412445, -0.3139225244522095, 0.0728621631860733, -0.05760142207145691, 0.058944594115018845, 0.0813104510307312, 0.1948959231376648, 0.213882714509964, 0.26710188388824463, -0.1480034589767456, -0.32705166935920715, -0.33171191811561584, 0.1381734162569046, -0.07196754217147827, 0.13063524663448334, -0.1062559112906456, 0.2940853238105774, -0.15208378434181213, 0.3265089988708496, 0.02177233248949051, -0.2126559466123581, 0.19188900291919708, -0.04784797877073288, 0.5207322239875793, 0.06838071346282959, -0.4193749725818634, 0.06588515639305115, -0.11910709738731384, 0.026946015655994415, 0.17604292929172516, -0.3196392059326172, 0.037956602871418, -0.1479680836200714, 0.39460432529449463, -0.24780485033988953, -0.0996566042304039, -0.10064300894737244, -0.150168314576149, 0.04052693769335747, 0.11690026521682739, -0.04097502678632736, -0.20840801298618317, -0.19158512353897095, -0.251280277967453, 0.05782359838485718, -0.09546125680208206, -0.08755116909742355, -0.5335748791694641, -0.2334989607334137, -0.16499599814414978, 0.2940983176231384, 0.15745152533054352, 0.3346639573574066, -0.1785169392824173, 0.24547147750854492, 0.04775853827595711, 0.2458997219800949, 0.6149806380271912, -0.48323917388916016, 0.15470220148563385, 0.2263718545436859, 0.3931272625923157, -0.17800173163414001, -0.1272554248571396, -0.16925737261772156, 0.29472607374191284, -0.29577773809432983, 0.0259886272251606, -0.15553420782089233, -0.09107694029808044, 0.2631005048751831, 0.15540610253810883, -0.12238006293773651, -0.3149801790714264, -0.2309514582157135, -0.17939317226409912, -0.12728534638881683, -0.05339682847261429, 0.06357723474502563, 0.1866377294063568, -0.3784867525100708, 0.09864826500415802, 0.1408238410949707, 0.07350717484951019, 0.27150458097457886, 0.11863504350185394, 0.22324323654174805, 0.030276760458946228, 0.19736120104789734, 0.3174026608467102, 0.25872570276260376, 0.5099823474884033, 0.5483983755111694, -0.3618464469909668, -0.5113288760185242, -0.11947879940271378, -0.11476913839578629, 0.2007075399160385, 0.06500126421451569, -0.14221495389938354, 0.1660955250263214, -0.05063997954130173, 0.18545863032341003, 0.09619792550802231, 0.022308139130473137, 0.49229511618614197, 0.16057629883289337, -0.48984774947166443, -0.5388926267623901, 0.2713593542575836, 0.03924167528748512, -0.047840673476457596, 0.12815584242343903, 0.07973237335681915, -0.3407571017742157, 0.20595282316207886, -0.15599361062049866, 0.6908725500106812, 0.08379792422056198, -0.051030565053224564, -0.01703104004263878, -0.2261730283498764, 0.7132234573364258, -0.11871135234832764, 0.0007717739790678024, -0.36142903566360474, -0.3074665665626526, -0.06222996860742569, -0.022118709981441498, 0.023474864661693573, 0.45069295167922974, -0.3085786700248718, 0.3788376748561859, -0.32851341366767883, 0.20468662679195404, 0.0287502259016037, -0.07406165450811386, 0.24943947792053223, -0.13231386244297028, -0.08248588442802429, 0.20103423297405243, -0.15761911869049072, -0.13437587022781372, -0.16743484139442444, 0.041905298829078674, -0.2318483293056488, -0.26806050539016724, -0.22626037895679474, 0.08226095885038376, -0.25382494926452637, 0.14157822728157043, -0.08565416932106018, -0.0167192742228508, 0.21681106090545654, 0.20250985026359558, 0.4863223433494568, 0.07892397046089172, -0.14828674495220184, 0.18389557301998138, 0.042148612439632416, 0.1370237171649933, 0.03434881195425987, 0.053746625781059265, 0.41506263613700867, 0.11604952067136765, -0.2699807286262512, 0.1285300999879837, -0.07956741005182266, 0.1759495884180069, -0.08703167736530304, 0.08389420062303543, -0.09839758276939392, -0.36537548899650574, 0.03264753147959709, -0.07703882455825806, 0.2287103533744812, -0.25377342104911804, 0.1773461103439331, 0.05198296159505844, -0.04668021574616432, 0.2120787501335144, -0.26369139552116394, -0.14659744501113892, -0.0457465834915638, 0.18923303484916687, 0.025963841006159782, 0.19335618615150452, 0.2472444772720337, 0.02597314491868019, -0.35139185190200806, -0.25651124119758606, 0.03895159065723419, 0.02399946004152298, -0.6778349876403809, 0.24598263204097748, 0.25335434079170227, 0.07594607770442963, -0.057189375162124634, 0.22326834499835968, -0.01583019271492958, 0.07108473032712936, 0.06101376935839653, -0.5274378061294556, -0.21865007281303406, -0.004669703543186188, -0.18475477397441864, 0.11693009734153748, 0.24786508083343506, 0.4110049605369568, 0.13375768065452576, 0.07144966721534729, -0.364154189825058, -0.020954139530658722, -0.17239390313625336, 0.2980128526687622, 0.15251107513904572, 0.01996077410876751, 0.2820310592651367, -0.17880651354789734, 0.21821677684783936, 0.0007443204522132874, 0.007750300690531731, -0.24981853365898132, -0.18720903992652893, 0.11241061985492706, 0.135209858417511, -0.19721606373786926, -0.06341155618429184, -0.16438157856464386, 0.057836927473545074, -0.0719839483499527, -0.0172507893294096, 0.31057414412498474, 0.003207750618457794, 0.37353095412254333, -0.150922030210495, 0.23278465867042542, -0.046329643577337265, 0.21827778220176697, 0.012717105448246002, -0.11400127410888672, 0.0742453783750534, 0.17296579480171204, -0.11276457458734512, 0.01947830617427826, -0.1750796139240265, 0.08479522913694382, -0.1170053631067276, -0.1179296001791954, 0.13429349660873413, -0.56898033618927, 0.2959568500518799, 0.19363825023174286, 0.4493628144264221, 0.2781367897987366, -0.18682590126991272, -0.07076673209667206, 0.38260918855667114, 0.30792683362960815, -0.3656698763370514, -0.16836020350456238, 0.16300183534622192, 0.16556134819984436, 0.0003902427852153778, 0.07560751587152481, 0.060725416988134384, -0.031059913337230682, 0.044892385601997375, 0.00808582454919815, 0.45543891191482544, -0.43765467405319214, 0.23490497469902039, 0.5269829630851746, -0.06197105720639229, 0.09998415410518646, 0.49679407477378845, 0.1731766313314438, 0.06353316456079483, 0.5881983637809753, 0.034650202840566635, 0.1773209571838379, 0.18747013807296753, -0.13795991241931915, -0.07542070001363754, -0.17221783101558685, 0.1809181272983551, 0.09697271883487701, 0.018856719136238098, -0.042831532657146454, -0.0954480916261673, 0.30113422870635986, -0.383945107460022, 0.004110261332243681, -0.0057688429951667786, 0.1111968457698822, -0.22550374269485474, -0.10601559281349182, -0.156263068318367, -0.09870950132608414, -0.16644605994224548, -0.19731584191322327, 0.014028046280145645, -0.1700509637594223, 0.3556351959705353, -0.07428097724914551, -0.19596438109874725, -0.45658159255981445, -0.18677827715873718, 0.3054199516773224, 0.06508123129606247, -0.24730996787548065, 0.01632004790008068, 0.2487560659646988, -0.14550121128559113, 0.3213777542114258, 0.08623997122049332, 0.6039391160011292, 0.17137520015239716, 0.0897911787033081, -0.3410915732383728, -0.09729558229446411, -0.08858038485050201, 0.15166372060775757, 0.21556805074214935, 0.04592078924179077, -0.03683386370539665, 0.39226579666137695, 0.20187820494174957, -0.17074908316135406, 0.30858010053634644, 0.33574214577674866, 0.2227042317390442, -0.17061986029148102, -0.06306739896535873, -0.13396553695201874, -0.25735458731651306, -0.3266395926475525, 0.10131882131099701, -0.2697950303554535, 0.1159566268324852, 0.46225565671920776, -0.041513774544000626, 0.08409010618925095, -0.29422929883003235, 0.14628013968467712, 0.13170994818210602, 0.3118899166584015, 0.2739446461200714, -0.04762434959411621, -0.34565046429634094, 0.16157139837741852, -0.5773795247077942, 0.12946023046970367, -0.11869937181472778, -0.11469243466854095, -0.033453814685344696, -0.15822353959083557, 0.1593216359615326, 0.020615065470337868, 0.38295018672943115, 0.1888180822134018, -0.015940219163894653, -0.10867761075496674, -0.11951403319835663, -0.19319884479045868, -0.08259901404380798, -0.12190099060535431, 0.20101605355739594, -0.3226902484893799, -0.061835769563913345, -0.14577674865722656, 0.03897598385810852, -0.3498081564903259, 0.09371402859687805, 0.1062968522310257, -0.02018941193819046, 0.36031779646873474, 0.1459478735923767, 0.7699720859527588, 0.048815228044986725, 0.11503099650144577, -0.0913878083229065, -0.35364940762519836, -0.40424349904060364, 0.36886849999427795, 0.3255908191204071, 0.25653591752052307, -0.10637723654508591, 0.009764187037944794, -0.1644827127456665, 0.09450652450323105, -0.043546706438064575, 0.32114848494529724, -0.2544761598110199, 0.214504674077034, -0.0240110382437706, 0.017140213400125504, 0.09913115948438644, -0.055626191198825836, -0.002646464854478836, 0.34105467796325684, -0.20675598084926605, -0.604709804058075, 0.6198093891143799, -0.21293115615844727, -0.23955528438091278, 0.153730571269989, 0.15452565252780914, 0.22137928009033203, -0.21874763071537018, -0.510053277015686, 0.0247500017285347, 0.3773822486400604, 0.01900388114154339, -0.4423445165157318, -0.00370657816529274, -0.19275733828544617, 0.051444146782159805, 0.11356012523174286, 0.30625396966934204, 0.11662857979536057, -0.1932860165834427, 0.19910496473312378, -0.25434619188308716 ]
https://github.com/huggingface/datasets/issues/1989
Question/problem with dataset labels
I've had versions where it worked fain. For this dataset, I had all kind of parsing issues that I couldn't understand. What I ended up doing is strip all the columns that I didn't need and also make the label 0/1. I think one line that may have caused a problem was the csv version of this: ```crawl-data/CC-MAIN-2017-47/segments/1510934806225.78/wet/CC-MAIN-20171120203833-20171120223833-00571.warc.wet.gz Rose Blakey is an aspiring journalist. She is desperate to escape the from the small Australian town in which she lives. Rejection after rejection mean she is stuck in what she sees as a dead-end waitressing job. ^M ('Rose', '', 'Blakey') journalist F 38 journalist https://www.netgalley.com/catalog/book/121872 _ is desperate to escape the from the small Australian town in which _ lives. Rejection after rejection mean _ is stuck in what _ sees as a dead-end waitressing job. She is desperate to escape the from the small Australian town in which she lives. Rejection after rejection mean she is stuck in what she sees as a dead-end waitressing job.``` The error I got in this case is this one: https://github.com/huggingface/datasets/issues/1989#issuecomment-790842771 Note, this line was part of a much larger file and until this line I guess it was working fine.
Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric.
197
Question/problem with dataset labels Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric. I've had versions where it worked fain. For this dataset, I had all kind of parsing issues that I couldn't understand. What I ended up doing is strip all the columns that I didn't need and also make the label 0/1. I think one line that may have caused a problem was the csv version of this: ```crawl-data/CC-MAIN-2017-47/segments/1510934806225.78/wet/CC-MAIN-20171120203833-20171120223833-00571.warc.wet.gz Rose Blakey is an aspiring journalist. She is desperate to escape the from the small Australian town in which she lives. Rejection after rejection mean she is stuck in what she sees as a dead-end waitressing job. ^M ('Rose', '', 'Blakey') journalist F 38 journalist https://www.netgalley.com/catalog/book/121872 _ is desperate to escape the from the small Australian town in which _ lives. Rejection after rejection mean _ is stuck in what _ sees as a dead-end waitressing job. She is desperate to escape the from the small Australian town in which she lives. Rejection after rejection mean she is stuck in what she sees as a dead-end waitressing job.``` The error I got in this case is this one: https://github.com/huggingface/datasets/issues/1989#issuecomment-790842771 Note, this line was part of a much larger file and until this line I guess it was working fine.
[ 0.17891453206539154, -0.05732292681932449, 0.0051791854202747345, 0.1343669593334198, 0.4113540053367615, 0.35021263360977173, 0.6419942378997803, 0.16370749473571777, -0.16131803393363953, 0.07234975695610046, 0.17885436117649078, 0.06387517601251602, -0.060772933065891266, 0.030526036396622658, -0.13023126125335693, -0.11937084794044495, 0.08908390253782272, 0.17347916960716248, 0.1816423237323761, -0.04446651414036751, -0.2867429256439209, -0.03982596844434738, -0.15668034553527832, 0.36628860235214233, -0.2972060739994049, -0.3766842484474182, 0.21054337918758392, -0.12052827328443527, -0.1131332740187645, -0.4633956551551819, 0.27180981636047363, 0.08611994981765747, 0.0026804115623235703, 0.4034268260002136, -0.00010309630306437612, 0.05875667929649353, 0.29674795269966125, 0.1559886485338211, -0.39840808510780334, -0.43212825059890747, -0.18936029076576233, -0.023407749831676483, 0.03456375002861023, -0.30447694659233093, 0.0979834571480751, -0.28466835618019104, -0.09054110944271088, -0.27566587924957275, 0.1046861857175827, 0.4386059045791626, 0.3266400992870331, 0.2373395562171936, -0.20649957656860352, -0.2293032854795456, 0.2311525046825409, 0.12508846819400787, -0.030509009957313538, 0.04947543516755104, -0.13443872332572937, -0.0064585269428789616, 0.4515700340270996, 0.46091440320014954, -0.2723952829837799, 0.2647714614868164, 0.13536463677883148, 0.14636339247226715, 0.13772451877593994, -0.391047865152359, 0.2763095796108246, 0.19614344835281372, 0.745261013507843, -0.29649999737739563, -0.2943912744522095, -0.169705331325531, 0.1373763084411621, -0.41671931743621826, 0.1813386231660843, 0.07008323073387146, 0.006375730037689209, -0.04701496288180351, -0.033162739127874374, 0.061027172952890396, 0.08074207603931427, 0.08818022906780243, -0.05807507783174515, 0.03832857310771942, -0.09864124655723572, 0.3288170099258423, 0.11253036558628082, -0.07475075125694275, 0.29753026366233826, -0.005993807688355446, -0.08856998383998871, 0.04154462367296219, -0.4325239956378937, -0.029608357697725296, -0.03688069432973862, 0.05167611315846443, -0.11813753098249435, -0.038740478456020355, 0.018386976793408394, -0.37495625019073486, -0.14743581414222717, 0.34034502506256104, 0.2151346504688263, 0.26627588272094727, 0.2706994414329529, 0.5616863369941711, 0.09117235988378525, -0.07616271078586578, 0.030804280191659927, -0.055807456374168396, -0.0015734817134216428, -0.4626432955265045, 0.2433207482099533, 0.09893116354942322, 0.2934700846672058, -0.23985880613327026, -0.5455210208892822, 0.1924419403076172, -0.02810133621096611, 0.09409621357917786, 0.1541178822517395, 0.3049503564834595, 0.022122211754322052, 0.20651811361312866, 0.07934746146202087, 0.19360853731632233, -0.009170521050691605, -0.11720552295446396, -0.2069239765405655, 0.09760816395282745, -0.2002788484096527, -0.15010666847229004, 0.05026936158537865, -0.07205250859260559, 0.11244922131299973, 0.06405946612358093, -0.001004628837108612, -0.07605672627687454, -0.016303835436701775, -0.38646399974823, -0.012748576700687408, 0.3588930070400238, -0.1032634824514389, 0.4203506112098694, 0.2520540952682495, -0.4185497760772705, 0.059699662029743195, 0.18021142482757568, -0.3688519597053528, -0.033813636749982834, -0.21215704083442688, 0.28621289134025574, -0.10304396599531174, -0.18798115849494934, -0.12009156495332718, 0.04682375118136406, 0.41932010650634766, -0.21455375850200653, 0.15759006142616272, -0.3543839454650879, -0.3093222975730896, -0.27777010202407837, -0.06630431860685349, 0.22143234312534332, -0.6722471117973328, 0.00438961386680603, -0.14754675328731537, -0.02911316230893135, 0.052806608378887177, 0.2960191071033478, -0.08100470900535583, 0.20629197359085083, -0.07059179246425629, 0.03035011887550354, 0.13955077528953552, -0.3906910717487335, -0.11046409606933594, 0.1035437136888504, -0.14200331270694733, -0.24426430463790894, 0.07048048824071884, -0.04033976048231125, 0.09173116832971573, -0.09162644296884537, 0.05823200196027756, -0.13187766075134277, -0.19963248074054718, -0.09513352066278458, -0.14370344579219818, 0.053811050951480865, 0.6539096832275391, 0.09273292124271393, -0.01680012419819832, 0.0756470113992691, -0.10022800415754318, -0.3448362350463867, -0.04253276437520981, -0.10095550119876862, 0.20621943473815918, 0.21479018032550812, 0.05564022436738014, 0.29835933446884155, 0.14595213532447815, -0.06447020918130875, -0.4424968361854553, 0.10170135647058487, -0.040051184594631195, 0.1395646184682846, -0.14514295756816864, -0.1923438310623169, -0.3297650218009949, -0.05378587543964386, -0.20797626674175262, 0.01832391321659088, 0.1633133888244629, 0.06836073100566864, -0.22142228484153748, -0.020483465865254402, 0.014084305614233017, -0.07588380575180054, -0.01721424050629139, 0.10933065414428711, -0.10402476787567139, 0.26565203070640564, -0.0951160192489624, 0.11689429730176926, -0.02673938125371933, 0.25312021374702454, 0.43260616064071655, 0.24005185067653656, -0.04662138223648071, 0.36702412366867065, 0.08486071228981018, -0.32702261209487915, 0.007840413600206375, -0.17265819013118744, 0.01812911406159401, -0.08387461304664612, -0.01632683165371418, 0.11452454328536987, 0.2768396735191345, -0.10859730839729309, -0.08471884578466415, 0.1411859393119812, -0.17720110714435577, 0.2762836813926697, -0.16197484731674194, 0.2004607766866684, 0.2599627673625946, -0.10939294099807739, 0.1251223385334015, -0.21271121501922607, 0.2158811241388321, -0.12979836761951447, 0.23431424796581268, 0.00714217871427536, -0.26171746850013733, 0.06771935522556305, 0.42205315828323364, 0.0015309005975723267, -0.003524109721183777, 0.009774107486009598, -0.15866786241531372, 0.16574633121490479, -0.013017604127526283, 0.5957184433937073, 0.35284242033958435, 0.2059558629989624, -0.16387538611888885, -0.05826830118894577, -0.2622590661048889, -0.13698357343673706, 0.21246157586574554, 0.09510184824466705, 0.029852449893951416, 0.057296209037303925, 0.026110144332051277, -0.06643877923488617, -0.17657259106636047, -0.24333874881267548, 0.20823132991790771, 0.34643039107322693, -0.5103120803833008, -0.002906862646341324, -0.3452731966972351, -0.2318640947341919, -0.318596750497818, -0.09879090636968613, -0.2351592779159546, -0.45904412865638733, 0.09043826162815094, -0.07749123871326447, -0.19039319455623627, 0.1450759321451187, -0.03756433352828026, 0.00791795551776886, -0.09107276052236557, 0.1520518660545349, -0.09758442640304565, -0.4702497720718384, -0.2045716643333435, 0.18111222982406616, 0.007479964755475521, 0.04695342853665352, 0.48136067390441895, -0.14319847524166107, -0.12455504387617111, -0.07857242971658707, -0.2953167259693146, 0.004026547074317932, -0.27306586503982544, 0.1366044282913208, 0.18162280321121216, 0.10385961085557938, 0.008461564779281616, -0.1486843377351761, 0.2930159866809845, -0.0715193897485733, 0.02463996224105358, 0.10695695877075195, 0.04523320496082306, -0.29207324981689453, -0.2664700746536255, -0.47501876950263977, -0.47453030943870544, -0.1774820238351822, 0.06694796681404114, -0.07590820640325546, -0.0335288867354393, 0.5198026299476624, 0.06844194233417511, 0.06568092852830887, 0.09314513206481934, 0.023252563551068306, -0.3467433452606201, -0.09354066103696823, 0.24904759228229523, -0.17909157276153564, -0.2102452665567398, 0.19605740904808044, 0.10930982232093811, 0.11752843856811523, -0.20393286645412445, -0.3139225244522095, 0.0728621631860733, -0.05760142207145691, 0.058944594115018845, 0.0813104510307312, 0.1948959231376648, 0.213882714509964, 0.26710188388824463, -0.1480034589767456, -0.32705166935920715, -0.33171191811561584, 0.1381734162569046, -0.07196754217147827, 0.13063524663448334, -0.1062559112906456, 0.2940853238105774, -0.15208378434181213, 0.3265089988708496, 0.02177233248949051, -0.2126559466123581, 0.19188900291919708, -0.04784797877073288, 0.5207322239875793, 0.06838071346282959, -0.4193749725818634, 0.06588515639305115, -0.11910709738731384, 0.026946015655994415, 0.17604292929172516, -0.3196392059326172, 0.037956602871418, -0.1479680836200714, 0.39460432529449463, -0.24780485033988953, -0.0996566042304039, -0.10064300894737244, -0.150168314576149, 0.04052693769335747, 0.11690026521682739, -0.04097502678632736, -0.20840801298618317, -0.19158512353897095, -0.251280277967453, 0.05782359838485718, -0.09546125680208206, -0.08755116909742355, -0.5335748791694641, -0.2334989607334137, -0.16499599814414978, 0.2940983176231384, 0.15745152533054352, 0.3346639573574066, -0.1785169392824173, 0.24547147750854492, 0.04775853827595711, 0.2458997219800949, 0.6149806380271912, -0.48323917388916016, 0.15470220148563385, 0.2263718545436859, 0.3931272625923157, -0.17800173163414001, -0.1272554248571396, -0.16925737261772156, 0.29472607374191284, -0.29577773809432983, 0.0259886272251606, -0.15553420782089233, -0.09107694029808044, 0.2631005048751831, 0.15540610253810883, -0.12238006293773651, -0.3149801790714264, -0.2309514582157135, -0.17939317226409912, -0.12728534638881683, -0.05339682847261429, 0.06357723474502563, 0.1866377294063568, -0.3784867525100708, 0.09864826500415802, 0.1408238410949707, 0.07350717484951019, 0.27150458097457886, 0.11863504350185394, 0.22324323654174805, 0.030276760458946228, 0.19736120104789734, 0.3174026608467102, 0.25872570276260376, 0.5099823474884033, 0.5483983755111694, -0.3618464469909668, -0.5113288760185242, -0.11947879940271378, -0.11476913839578629, 0.2007075399160385, 0.06500126421451569, -0.14221495389938354, 0.1660955250263214, -0.05063997954130173, 0.18545863032341003, 0.09619792550802231, 0.022308139130473137, 0.49229511618614197, 0.16057629883289337, -0.48984774947166443, -0.5388926267623901, 0.2713593542575836, 0.03924167528748512, -0.047840673476457596, 0.12815584242343903, 0.07973237335681915, -0.3407571017742157, 0.20595282316207886, -0.15599361062049866, 0.6908725500106812, 0.08379792422056198, -0.051030565053224564, -0.01703104004263878, -0.2261730283498764, 0.7132234573364258, -0.11871135234832764, 0.0007717739790678024, -0.36142903566360474, -0.3074665665626526, -0.06222996860742569, -0.022118709981441498, 0.023474864661693573, 0.45069295167922974, -0.3085786700248718, 0.3788376748561859, -0.32851341366767883, 0.20468662679195404, 0.0287502259016037, -0.07406165450811386, 0.24943947792053223, -0.13231386244297028, -0.08248588442802429, 0.20103423297405243, -0.15761911869049072, -0.13437587022781372, -0.16743484139442444, 0.041905298829078674, -0.2318483293056488, -0.26806050539016724, -0.22626037895679474, 0.08226095885038376, -0.25382494926452637, 0.14157822728157043, -0.08565416932106018, -0.0167192742228508, 0.21681106090545654, 0.20250985026359558, 0.4863223433494568, 0.07892397046089172, -0.14828674495220184, 0.18389557301998138, 0.042148612439632416, 0.1370237171649933, 0.03434881195425987, 0.053746625781059265, 0.41506263613700867, 0.11604952067136765, -0.2699807286262512, 0.1285300999879837, -0.07956741005182266, 0.1759495884180069, -0.08703167736530304, 0.08389420062303543, -0.09839758276939392, -0.36537548899650574, 0.03264753147959709, -0.07703882455825806, 0.2287103533744812, -0.25377342104911804, 0.1773461103439331, 0.05198296159505844, -0.04668021574616432, 0.2120787501335144, -0.26369139552116394, -0.14659744501113892, -0.0457465834915638, 0.18923303484916687, 0.025963841006159782, 0.19335618615150452, 0.2472444772720337, 0.02597314491868019, -0.35139185190200806, -0.25651124119758606, 0.03895159065723419, 0.02399946004152298, -0.6778349876403809, 0.24598263204097748, 0.25335434079170227, 0.07594607770442963, -0.057189375162124634, 0.22326834499835968, -0.01583019271492958, 0.07108473032712936, 0.06101376935839653, -0.5274378061294556, -0.21865007281303406, -0.004669703543186188, -0.18475477397441864, 0.11693009734153748, 0.24786508083343506, 0.4110049605369568, 0.13375768065452576, 0.07144966721534729, -0.364154189825058, -0.020954139530658722, -0.17239390313625336, 0.2980128526687622, 0.15251107513904572, 0.01996077410876751, 0.2820310592651367, -0.17880651354789734, 0.21821677684783936, 0.0007443204522132874, 0.007750300690531731, -0.24981853365898132, -0.18720903992652893, 0.11241061985492706, 0.135209858417511, -0.19721606373786926, -0.06341155618429184, -0.16438157856464386, 0.057836927473545074, -0.0719839483499527, -0.0172507893294096, 0.31057414412498474, 0.003207750618457794, 0.37353095412254333, -0.150922030210495, 0.23278465867042542, -0.046329643577337265, 0.21827778220176697, 0.012717105448246002, -0.11400127410888672, 0.0742453783750534, 0.17296579480171204, -0.11276457458734512, 0.01947830617427826, -0.1750796139240265, 0.08479522913694382, -0.1170053631067276, -0.1179296001791954, 0.13429349660873413, -0.56898033618927, 0.2959568500518799, 0.19363825023174286, 0.4493628144264221, 0.2781367897987366, -0.18682590126991272, -0.07076673209667206, 0.38260918855667114, 0.30792683362960815, -0.3656698763370514, -0.16836020350456238, 0.16300183534622192, 0.16556134819984436, 0.0003902427852153778, 0.07560751587152481, 0.060725416988134384, -0.031059913337230682, 0.044892385601997375, 0.00808582454919815, 0.45543891191482544, -0.43765467405319214, 0.23490497469902039, 0.5269829630851746, -0.06197105720639229, 0.09998415410518646, 0.49679407477378845, 0.1731766313314438, 0.06353316456079483, 0.5881983637809753, 0.034650202840566635, 0.1773209571838379, 0.18747013807296753, -0.13795991241931915, -0.07542070001363754, -0.17221783101558685, 0.1809181272983551, 0.09697271883487701, 0.018856719136238098, -0.042831532657146454, -0.0954480916261673, 0.30113422870635986, -0.383945107460022, 0.004110261332243681, -0.0057688429951667786, 0.1111968457698822, -0.22550374269485474, -0.10601559281349182, -0.156263068318367, -0.09870950132608414, -0.16644605994224548, -0.19731584191322327, 0.014028046280145645, -0.1700509637594223, 0.3556351959705353, -0.07428097724914551, -0.19596438109874725, -0.45658159255981445, -0.18677827715873718, 0.3054199516773224, 0.06508123129606247, -0.24730996787548065, 0.01632004790008068, 0.2487560659646988, -0.14550121128559113, 0.3213777542114258, 0.08623997122049332, 0.6039391160011292, 0.17137520015239716, 0.0897911787033081, -0.3410915732383728, -0.09729558229446411, -0.08858038485050201, 0.15166372060775757, 0.21556805074214935, 0.04592078924179077, -0.03683386370539665, 0.39226579666137695, 0.20187820494174957, -0.17074908316135406, 0.30858010053634644, 0.33574214577674866, 0.2227042317390442, -0.17061986029148102, -0.06306739896535873, -0.13396553695201874, -0.25735458731651306, -0.3266395926475525, 0.10131882131099701, -0.2697950303554535, 0.1159566268324852, 0.46225565671920776, -0.041513774544000626, 0.08409010618925095, -0.29422929883003235, 0.14628013968467712, 0.13170994818210602, 0.3118899166584015, 0.2739446461200714, -0.04762434959411621, -0.34565046429634094, 0.16157139837741852, -0.5773795247077942, 0.12946023046970367, -0.11869937181472778, -0.11469243466854095, -0.033453814685344696, -0.15822353959083557, 0.1593216359615326, 0.020615065470337868, 0.38295018672943115, 0.1888180822134018, -0.015940219163894653, -0.10867761075496674, -0.11951403319835663, -0.19319884479045868, -0.08259901404380798, -0.12190099060535431, 0.20101605355739594, -0.3226902484893799, -0.061835769563913345, -0.14577674865722656, 0.03897598385810852, -0.3498081564903259, 0.09371402859687805, 0.1062968522310257, -0.02018941193819046, 0.36031779646873474, 0.1459478735923767, 0.7699720859527588, 0.048815228044986725, 0.11503099650144577, -0.0913878083229065, -0.35364940762519836, -0.40424349904060364, 0.36886849999427795, 0.3255908191204071, 0.25653591752052307, -0.10637723654508591, 0.009764187037944794, -0.1644827127456665, 0.09450652450323105, -0.043546706438064575, 0.32114848494529724, -0.2544761598110199, 0.214504674077034, -0.0240110382437706, 0.017140213400125504, 0.09913115948438644, -0.055626191198825836, -0.002646464854478836, 0.34105467796325684, -0.20675598084926605, -0.604709804058075, 0.6198093891143799, -0.21293115615844727, -0.23955528438091278, 0.153730571269989, 0.15452565252780914, 0.22137928009033203, -0.21874763071537018, -0.510053277015686, 0.0247500017285347, 0.3773822486400604, 0.01900388114154339, -0.4423445165157318, -0.00370657816529274, -0.19275733828544617, 0.051444146782159805, 0.11356012523174286, 0.30625396966934204, 0.11662857979536057, -0.1932860165834427, 0.19910496473312378, -0.25434619188308716 ]
https://github.com/huggingface/datasets/issues/1989
Question/problem with dataset labels
Hi @ioana-blue, What is the separator you're using for the csv? I see there are only two commas in the given line, but they don't seem like appropriate points. Also, is this a string part of one line, or an entire line? There should also be a label, right?
Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric.
49
Question/problem with dataset labels Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric. Hi @ioana-blue, What is the separator you're using for the csv? I see there are only two commas in the given line, but they don't seem like appropriate points. Also, is this a string part of one line, or an entire line? There should also be a label, right?
[ 0.17891453206539154, -0.05732292681932449, 0.0051791854202747345, 0.1343669593334198, 0.4113540053367615, 0.35021263360977173, 0.6419942378997803, 0.16370749473571777, -0.16131803393363953, 0.07234975695610046, 0.17885436117649078, 0.06387517601251602, -0.060772933065891266, 0.030526036396622658, -0.13023126125335693, -0.11937084794044495, 0.08908390253782272, 0.17347916960716248, 0.1816423237323761, -0.04446651414036751, -0.2867429256439209, -0.03982596844434738, -0.15668034553527832, 0.36628860235214233, -0.2972060739994049, -0.3766842484474182, 0.21054337918758392, -0.12052827328443527, -0.1131332740187645, -0.4633956551551819, 0.27180981636047363, 0.08611994981765747, 0.0026804115623235703, 0.4034268260002136, -0.00010309630306437612, 0.05875667929649353, 0.29674795269966125, 0.1559886485338211, -0.39840808510780334, -0.43212825059890747, -0.18936029076576233, -0.023407749831676483, 0.03456375002861023, -0.30447694659233093, 0.0979834571480751, -0.28466835618019104, -0.09054110944271088, -0.27566587924957275, 0.1046861857175827, 0.4386059045791626, 0.3266400992870331, 0.2373395562171936, -0.20649957656860352, -0.2293032854795456, 0.2311525046825409, 0.12508846819400787, -0.030509009957313538, 0.04947543516755104, -0.13443872332572937, -0.0064585269428789616, 0.4515700340270996, 0.46091440320014954, -0.2723952829837799, 0.2647714614868164, 0.13536463677883148, 0.14636339247226715, 0.13772451877593994, -0.391047865152359, 0.2763095796108246, 0.19614344835281372, 0.745261013507843, -0.29649999737739563, -0.2943912744522095, -0.169705331325531, 0.1373763084411621, -0.41671931743621826, 0.1813386231660843, 0.07008323073387146, 0.006375730037689209, -0.04701496288180351, -0.033162739127874374, 0.061027172952890396, 0.08074207603931427, 0.08818022906780243, -0.05807507783174515, 0.03832857310771942, -0.09864124655723572, 0.3288170099258423, 0.11253036558628082, -0.07475075125694275, 0.29753026366233826, -0.005993807688355446, -0.08856998383998871, 0.04154462367296219, -0.4325239956378937, -0.029608357697725296, -0.03688069432973862, 0.05167611315846443, -0.11813753098249435, -0.038740478456020355, 0.018386976793408394, -0.37495625019073486, -0.14743581414222717, 0.34034502506256104, 0.2151346504688263, 0.26627588272094727, 0.2706994414329529, 0.5616863369941711, 0.09117235988378525, -0.07616271078586578, 0.030804280191659927, -0.055807456374168396, -0.0015734817134216428, -0.4626432955265045, 0.2433207482099533, 0.09893116354942322, 0.2934700846672058, -0.23985880613327026, -0.5455210208892822, 0.1924419403076172, -0.02810133621096611, 0.09409621357917786, 0.1541178822517395, 0.3049503564834595, 0.022122211754322052, 0.20651811361312866, 0.07934746146202087, 0.19360853731632233, -0.009170521050691605, -0.11720552295446396, -0.2069239765405655, 0.09760816395282745, -0.2002788484096527, -0.15010666847229004, 0.05026936158537865, -0.07205250859260559, 0.11244922131299973, 0.06405946612358093, -0.001004628837108612, -0.07605672627687454, -0.016303835436701775, -0.38646399974823, -0.012748576700687408, 0.3588930070400238, -0.1032634824514389, 0.4203506112098694, 0.2520540952682495, -0.4185497760772705, 0.059699662029743195, 0.18021142482757568, -0.3688519597053528, -0.033813636749982834, -0.21215704083442688, 0.28621289134025574, -0.10304396599531174, -0.18798115849494934, -0.12009156495332718, 0.04682375118136406, 0.41932010650634766, -0.21455375850200653, 0.15759006142616272, -0.3543839454650879, -0.3093222975730896, -0.27777010202407837, -0.06630431860685349, 0.22143234312534332, -0.6722471117973328, 0.00438961386680603, -0.14754675328731537, -0.02911316230893135, 0.052806608378887177, 0.2960191071033478, -0.08100470900535583, 0.20629197359085083, -0.07059179246425629, 0.03035011887550354, 0.13955077528953552, -0.3906910717487335, -0.11046409606933594, 0.1035437136888504, -0.14200331270694733, -0.24426430463790894, 0.07048048824071884, -0.04033976048231125, 0.09173116832971573, -0.09162644296884537, 0.05823200196027756, -0.13187766075134277, -0.19963248074054718, -0.09513352066278458, -0.14370344579219818, 0.053811050951480865, 0.6539096832275391, 0.09273292124271393, -0.01680012419819832, 0.0756470113992691, -0.10022800415754318, -0.3448362350463867, -0.04253276437520981, -0.10095550119876862, 0.20621943473815918, 0.21479018032550812, 0.05564022436738014, 0.29835933446884155, 0.14595213532447815, -0.06447020918130875, -0.4424968361854553, 0.10170135647058487, -0.040051184594631195, 0.1395646184682846, -0.14514295756816864, -0.1923438310623169, -0.3297650218009949, -0.05378587543964386, -0.20797626674175262, 0.01832391321659088, 0.1633133888244629, 0.06836073100566864, -0.22142228484153748, -0.020483465865254402, 0.014084305614233017, -0.07588380575180054, -0.01721424050629139, 0.10933065414428711, -0.10402476787567139, 0.26565203070640564, -0.0951160192489624, 0.11689429730176926, -0.02673938125371933, 0.25312021374702454, 0.43260616064071655, 0.24005185067653656, -0.04662138223648071, 0.36702412366867065, 0.08486071228981018, -0.32702261209487915, 0.007840413600206375, -0.17265819013118744, 0.01812911406159401, -0.08387461304664612, -0.01632683165371418, 0.11452454328536987, 0.2768396735191345, -0.10859730839729309, -0.08471884578466415, 0.1411859393119812, -0.17720110714435577, 0.2762836813926697, -0.16197484731674194, 0.2004607766866684, 0.2599627673625946, -0.10939294099807739, 0.1251223385334015, -0.21271121501922607, 0.2158811241388321, -0.12979836761951447, 0.23431424796581268, 0.00714217871427536, -0.26171746850013733, 0.06771935522556305, 0.42205315828323364, 0.0015309005975723267, -0.003524109721183777, 0.009774107486009598, -0.15866786241531372, 0.16574633121490479, -0.013017604127526283, 0.5957184433937073, 0.35284242033958435, 0.2059558629989624, -0.16387538611888885, -0.05826830118894577, -0.2622590661048889, -0.13698357343673706, 0.21246157586574554, 0.09510184824466705, 0.029852449893951416, 0.057296209037303925, 0.026110144332051277, -0.06643877923488617, -0.17657259106636047, -0.24333874881267548, 0.20823132991790771, 0.34643039107322693, -0.5103120803833008, -0.002906862646341324, -0.3452731966972351, -0.2318640947341919, -0.318596750497818, -0.09879090636968613, -0.2351592779159546, -0.45904412865638733, 0.09043826162815094, -0.07749123871326447, -0.19039319455623627, 0.1450759321451187, -0.03756433352828026, 0.00791795551776886, -0.09107276052236557, 0.1520518660545349, -0.09758442640304565, -0.4702497720718384, -0.2045716643333435, 0.18111222982406616, 0.007479964755475521, 0.04695342853665352, 0.48136067390441895, -0.14319847524166107, -0.12455504387617111, -0.07857242971658707, -0.2953167259693146, 0.004026547074317932, -0.27306586503982544, 0.1366044282913208, 0.18162280321121216, 0.10385961085557938, 0.008461564779281616, -0.1486843377351761, 0.2930159866809845, -0.0715193897485733, 0.02463996224105358, 0.10695695877075195, 0.04523320496082306, -0.29207324981689453, -0.2664700746536255, -0.47501876950263977, -0.47453030943870544, -0.1774820238351822, 0.06694796681404114, -0.07590820640325546, -0.0335288867354393, 0.5198026299476624, 0.06844194233417511, 0.06568092852830887, 0.09314513206481934, 0.023252563551068306, -0.3467433452606201, -0.09354066103696823, 0.24904759228229523, -0.17909157276153564, -0.2102452665567398, 0.19605740904808044, 0.10930982232093811, 0.11752843856811523, -0.20393286645412445, -0.3139225244522095, 0.0728621631860733, -0.05760142207145691, 0.058944594115018845, 0.0813104510307312, 0.1948959231376648, 0.213882714509964, 0.26710188388824463, -0.1480034589767456, -0.32705166935920715, -0.33171191811561584, 0.1381734162569046, -0.07196754217147827, 0.13063524663448334, -0.1062559112906456, 0.2940853238105774, -0.15208378434181213, 0.3265089988708496, 0.02177233248949051, -0.2126559466123581, 0.19188900291919708, -0.04784797877073288, 0.5207322239875793, 0.06838071346282959, -0.4193749725818634, 0.06588515639305115, -0.11910709738731384, 0.026946015655994415, 0.17604292929172516, -0.3196392059326172, 0.037956602871418, -0.1479680836200714, 0.39460432529449463, -0.24780485033988953, -0.0996566042304039, -0.10064300894737244, -0.150168314576149, 0.04052693769335747, 0.11690026521682739, -0.04097502678632736, -0.20840801298618317, -0.19158512353897095, -0.251280277967453, 0.05782359838485718, -0.09546125680208206, -0.08755116909742355, -0.5335748791694641, -0.2334989607334137, -0.16499599814414978, 0.2940983176231384, 0.15745152533054352, 0.3346639573574066, -0.1785169392824173, 0.24547147750854492, 0.04775853827595711, 0.2458997219800949, 0.6149806380271912, -0.48323917388916016, 0.15470220148563385, 0.2263718545436859, 0.3931272625923157, -0.17800173163414001, -0.1272554248571396, -0.16925737261772156, 0.29472607374191284, -0.29577773809432983, 0.0259886272251606, -0.15553420782089233, -0.09107694029808044, 0.2631005048751831, 0.15540610253810883, -0.12238006293773651, -0.3149801790714264, -0.2309514582157135, -0.17939317226409912, -0.12728534638881683, -0.05339682847261429, 0.06357723474502563, 0.1866377294063568, -0.3784867525100708, 0.09864826500415802, 0.1408238410949707, 0.07350717484951019, 0.27150458097457886, 0.11863504350185394, 0.22324323654174805, 0.030276760458946228, 0.19736120104789734, 0.3174026608467102, 0.25872570276260376, 0.5099823474884033, 0.5483983755111694, -0.3618464469909668, -0.5113288760185242, -0.11947879940271378, -0.11476913839578629, 0.2007075399160385, 0.06500126421451569, -0.14221495389938354, 0.1660955250263214, -0.05063997954130173, 0.18545863032341003, 0.09619792550802231, 0.022308139130473137, 0.49229511618614197, 0.16057629883289337, -0.48984774947166443, -0.5388926267623901, 0.2713593542575836, 0.03924167528748512, -0.047840673476457596, 0.12815584242343903, 0.07973237335681915, -0.3407571017742157, 0.20595282316207886, -0.15599361062049866, 0.6908725500106812, 0.08379792422056198, -0.051030565053224564, -0.01703104004263878, -0.2261730283498764, 0.7132234573364258, -0.11871135234832764, 0.0007717739790678024, -0.36142903566360474, -0.3074665665626526, -0.06222996860742569, -0.022118709981441498, 0.023474864661693573, 0.45069295167922974, -0.3085786700248718, 0.3788376748561859, -0.32851341366767883, 0.20468662679195404, 0.0287502259016037, -0.07406165450811386, 0.24943947792053223, -0.13231386244297028, -0.08248588442802429, 0.20103423297405243, -0.15761911869049072, -0.13437587022781372, -0.16743484139442444, 0.041905298829078674, -0.2318483293056488, -0.26806050539016724, -0.22626037895679474, 0.08226095885038376, -0.25382494926452637, 0.14157822728157043, -0.08565416932106018, -0.0167192742228508, 0.21681106090545654, 0.20250985026359558, 0.4863223433494568, 0.07892397046089172, -0.14828674495220184, 0.18389557301998138, 0.042148612439632416, 0.1370237171649933, 0.03434881195425987, 0.053746625781059265, 0.41506263613700867, 0.11604952067136765, -0.2699807286262512, 0.1285300999879837, -0.07956741005182266, 0.1759495884180069, -0.08703167736530304, 0.08389420062303543, -0.09839758276939392, -0.36537548899650574, 0.03264753147959709, -0.07703882455825806, 0.2287103533744812, -0.25377342104911804, 0.1773461103439331, 0.05198296159505844, -0.04668021574616432, 0.2120787501335144, -0.26369139552116394, -0.14659744501113892, -0.0457465834915638, 0.18923303484916687, 0.025963841006159782, 0.19335618615150452, 0.2472444772720337, 0.02597314491868019, -0.35139185190200806, -0.25651124119758606, 0.03895159065723419, 0.02399946004152298, -0.6778349876403809, 0.24598263204097748, 0.25335434079170227, 0.07594607770442963, -0.057189375162124634, 0.22326834499835968, -0.01583019271492958, 0.07108473032712936, 0.06101376935839653, -0.5274378061294556, -0.21865007281303406, -0.004669703543186188, -0.18475477397441864, 0.11693009734153748, 0.24786508083343506, 0.4110049605369568, 0.13375768065452576, 0.07144966721534729, -0.364154189825058, -0.020954139530658722, -0.17239390313625336, 0.2980128526687622, 0.15251107513904572, 0.01996077410876751, 0.2820310592651367, -0.17880651354789734, 0.21821677684783936, 0.0007443204522132874, 0.007750300690531731, -0.24981853365898132, -0.18720903992652893, 0.11241061985492706, 0.135209858417511, -0.19721606373786926, -0.06341155618429184, -0.16438157856464386, 0.057836927473545074, -0.0719839483499527, -0.0172507893294096, 0.31057414412498474, 0.003207750618457794, 0.37353095412254333, -0.150922030210495, 0.23278465867042542, -0.046329643577337265, 0.21827778220176697, 0.012717105448246002, -0.11400127410888672, 0.0742453783750534, 0.17296579480171204, -0.11276457458734512, 0.01947830617427826, -0.1750796139240265, 0.08479522913694382, -0.1170053631067276, -0.1179296001791954, 0.13429349660873413, -0.56898033618927, 0.2959568500518799, 0.19363825023174286, 0.4493628144264221, 0.2781367897987366, -0.18682590126991272, -0.07076673209667206, 0.38260918855667114, 0.30792683362960815, -0.3656698763370514, -0.16836020350456238, 0.16300183534622192, 0.16556134819984436, 0.0003902427852153778, 0.07560751587152481, 0.060725416988134384, -0.031059913337230682, 0.044892385601997375, 0.00808582454919815, 0.45543891191482544, -0.43765467405319214, 0.23490497469902039, 0.5269829630851746, -0.06197105720639229, 0.09998415410518646, 0.49679407477378845, 0.1731766313314438, 0.06353316456079483, 0.5881983637809753, 0.034650202840566635, 0.1773209571838379, 0.18747013807296753, -0.13795991241931915, -0.07542070001363754, -0.17221783101558685, 0.1809181272983551, 0.09697271883487701, 0.018856719136238098, -0.042831532657146454, -0.0954480916261673, 0.30113422870635986, -0.383945107460022, 0.004110261332243681, -0.0057688429951667786, 0.1111968457698822, -0.22550374269485474, -0.10601559281349182, -0.156263068318367, -0.09870950132608414, -0.16644605994224548, -0.19731584191322327, 0.014028046280145645, -0.1700509637594223, 0.3556351959705353, -0.07428097724914551, -0.19596438109874725, -0.45658159255981445, -0.18677827715873718, 0.3054199516773224, 0.06508123129606247, -0.24730996787548065, 0.01632004790008068, 0.2487560659646988, -0.14550121128559113, 0.3213777542114258, 0.08623997122049332, 0.6039391160011292, 0.17137520015239716, 0.0897911787033081, -0.3410915732383728, -0.09729558229446411, -0.08858038485050201, 0.15166372060775757, 0.21556805074214935, 0.04592078924179077, -0.03683386370539665, 0.39226579666137695, 0.20187820494174957, -0.17074908316135406, 0.30858010053634644, 0.33574214577674866, 0.2227042317390442, -0.17061986029148102, -0.06306739896535873, -0.13396553695201874, -0.25735458731651306, -0.3266395926475525, 0.10131882131099701, -0.2697950303554535, 0.1159566268324852, 0.46225565671920776, -0.041513774544000626, 0.08409010618925095, -0.29422929883003235, 0.14628013968467712, 0.13170994818210602, 0.3118899166584015, 0.2739446461200714, -0.04762434959411621, -0.34565046429634094, 0.16157139837741852, -0.5773795247077942, 0.12946023046970367, -0.11869937181472778, -0.11469243466854095, -0.033453814685344696, -0.15822353959083557, 0.1593216359615326, 0.020615065470337868, 0.38295018672943115, 0.1888180822134018, -0.015940219163894653, -0.10867761075496674, -0.11951403319835663, -0.19319884479045868, -0.08259901404380798, -0.12190099060535431, 0.20101605355739594, -0.3226902484893799, -0.061835769563913345, -0.14577674865722656, 0.03897598385810852, -0.3498081564903259, 0.09371402859687805, 0.1062968522310257, -0.02018941193819046, 0.36031779646873474, 0.1459478735923767, 0.7699720859527588, 0.048815228044986725, 0.11503099650144577, -0.0913878083229065, -0.35364940762519836, -0.40424349904060364, 0.36886849999427795, 0.3255908191204071, 0.25653591752052307, -0.10637723654508591, 0.009764187037944794, -0.1644827127456665, 0.09450652450323105, -0.043546706438064575, 0.32114848494529724, -0.2544761598110199, 0.214504674077034, -0.0240110382437706, 0.017140213400125504, 0.09913115948438644, -0.055626191198825836, -0.002646464854478836, 0.34105467796325684, -0.20675598084926605, -0.604709804058075, 0.6198093891143799, -0.21293115615844727, -0.23955528438091278, 0.153730571269989, 0.15452565252780914, 0.22137928009033203, -0.21874763071537018, -0.510053277015686, 0.0247500017285347, 0.3773822486400604, 0.01900388114154339, -0.4423445165157318, -0.00370657816529274, -0.19275733828544617, 0.051444146782159805, 0.11356012523174286, 0.30625396966934204, 0.11662857979536057, -0.1932860165834427, 0.19910496473312378, -0.25434619188308716 ]
https://github.com/huggingface/datasets/issues/1989
Question/problem with dataset labels
Sorry for the confusion, the sample above was from a tsv that was used to derive the csv. Let me construct the csv again (I had remove it). This is the line in the csv - this is the whole line: ```crawl-data/CC-MAIN-2017-47/segments/1510934806225.78/wet/CC-MAIN-20171120203833-20171120223833-00571.warc.wet.gz,Rose Blakey is an aspiring journalist. She is desperate to escape the from the small Australian town in which she lives. Rejection after rejection mean she is stuck in what she sees as a dead,"('Rose', '', 'Blakey')",journalist,F,38,journalist,https://www.netgalley.com/catalog/book/121872,_ is desperate to escape the from the small Australian town in which _ lives. Rejection after rejection mean _ is stuck in what _ sees as a dead-end waitressing job., She is desperate to escape the from the small Australian town in which she lives. Rejection after rejection mean she is stuck in what she sees as a dead-end waitressing job.```
Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric.
139
Question/problem with dataset labels Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric. Sorry for the confusion, the sample above was from a tsv that was used to derive the csv. Let me construct the csv again (I had remove it). This is the line in the csv - this is the whole line: ```crawl-data/CC-MAIN-2017-47/segments/1510934806225.78/wet/CC-MAIN-20171120203833-20171120223833-00571.warc.wet.gz,Rose Blakey is an aspiring journalist. She is desperate to escape the from the small Australian town in which she lives. Rejection after rejection mean she is stuck in what she sees as a dead,"('Rose', '', 'Blakey')",journalist,F,38,journalist,https://www.netgalley.com/catalog/book/121872,_ is desperate to escape the from the small Australian town in which _ lives. Rejection after rejection mean _ is stuck in what _ sees as a dead-end waitressing job., She is desperate to escape the from the small Australian town in which she lives. Rejection after rejection mean she is stuck in what she sees as a dead-end waitressing job.```
[ 0.17891453206539154, -0.05732292681932449, 0.0051791854202747345, 0.1343669593334198, 0.4113540053367615, 0.35021263360977173, 0.6419942378997803, 0.16370749473571777, -0.16131803393363953, 0.07234975695610046, 0.17885436117649078, 0.06387517601251602, -0.060772933065891266, 0.030526036396622658, -0.13023126125335693, -0.11937084794044495, 0.08908390253782272, 0.17347916960716248, 0.1816423237323761, -0.04446651414036751, -0.2867429256439209, -0.03982596844434738, -0.15668034553527832, 0.36628860235214233, -0.2972060739994049, -0.3766842484474182, 0.21054337918758392, -0.12052827328443527, -0.1131332740187645, -0.4633956551551819, 0.27180981636047363, 0.08611994981765747, 0.0026804115623235703, 0.4034268260002136, -0.00010309630306437612, 0.05875667929649353, 0.29674795269966125, 0.1559886485338211, -0.39840808510780334, -0.43212825059890747, -0.18936029076576233, -0.023407749831676483, 0.03456375002861023, -0.30447694659233093, 0.0979834571480751, -0.28466835618019104, -0.09054110944271088, -0.27566587924957275, 0.1046861857175827, 0.4386059045791626, 0.3266400992870331, 0.2373395562171936, -0.20649957656860352, -0.2293032854795456, 0.2311525046825409, 0.12508846819400787, -0.030509009957313538, 0.04947543516755104, -0.13443872332572937, -0.0064585269428789616, 0.4515700340270996, 0.46091440320014954, -0.2723952829837799, 0.2647714614868164, 0.13536463677883148, 0.14636339247226715, 0.13772451877593994, -0.391047865152359, 0.2763095796108246, 0.19614344835281372, 0.745261013507843, -0.29649999737739563, -0.2943912744522095, -0.169705331325531, 0.1373763084411621, -0.41671931743621826, 0.1813386231660843, 0.07008323073387146, 0.006375730037689209, -0.04701496288180351, -0.033162739127874374, 0.061027172952890396, 0.08074207603931427, 0.08818022906780243, -0.05807507783174515, 0.03832857310771942, -0.09864124655723572, 0.3288170099258423, 0.11253036558628082, -0.07475075125694275, 0.29753026366233826, -0.005993807688355446, -0.08856998383998871, 0.04154462367296219, -0.4325239956378937, -0.029608357697725296, -0.03688069432973862, 0.05167611315846443, -0.11813753098249435, -0.038740478456020355, 0.018386976793408394, -0.37495625019073486, -0.14743581414222717, 0.34034502506256104, 0.2151346504688263, 0.26627588272094727, 0.2706994414329529, 0.5616863369941711, 0.09117235988378525, -0.07616271078586578, 0.030804280191659927, -0.055807456374168396, -0.0015734817134216428, -0.4626432955265045, 0.2433207482099533, 0.09893116354942322, 0.2934700846672058, -0.23985880613327026, -0.5455210208892822, 0.1924419403076172, -0.02810133621096611, 0.09409621357917786, 0.1541178822517395, 0.3049503564834595, 0.022122211754322052, 0.20651811361312866, 0.07934746146202087, 0.19360853731632233, -0.009170521050691605, -0.11720552295446396, -0.2069239765405655, 0.09760816395282745, -0.2002788484096527, -0.15010666847229004, 0.05026936158537865, -0.07205250859260559, 0.11244922131299973, 0.06405946612358093, -0.001004628837108612, -0.07605672627687454, -0.016303835436701775, -0.38646399974823, -0.012748576700687408, 0.3588930070400238, -0.1032634824514389, 0.4203506112098694, 0.2520540952682495, -0.4185497760772705, 0.059699662029743195, 0.18021142482757568, -0.3688519597053528, -0.033813636749982834, -0.21215704083442688, 0.28621289134025574, -0.10304396599531174, -0.18798115849494934, -0.12009156495332718, 0.04682375118136406, 0.41932010650634766, -0.21455375850200653, 0.15759006142616272, -0.3543839454650879, -0.3093222975730896, -0.27777010202407837, -0.06630431860685349, 0.22143234312534332, -0.6722471117973328, 0.00438961386680603, -0.14754675328731537, -0.02911316230893135, 0.052806608378887177, 0.2960191071033478, -0.08100470900535583, 0.20629197359085083, -0.07059179246425629, 0.03035011887550354, 0.13955077528953552, -0.3906910717487335, -0.11046409606933594, 0.1035437136888504, -0.14200331270694733, -0.24426430463790894, 0.07048048824071884, -0.04033976048231125, 0.09173116832971573, -0.09162644296884537, 0.05823200196027756, -0.13187766075134277, -0.19963248074054718, -0.09513352066278458, -0.14370344579219818, 0.053811050951480865, 0.6539096832275391, 0.09273292124271393, -0.01680012419819832, 0.0756470113992691, -0.10022800415754318, -0.3448362350463867, -0.04253276437520981, -0.10095550119876862, 0.20621943473815918, 0.21479018032550812, 0.05564022436738014, 0.29835933446884155, 0.14595213532447815, -0.06447020918130875, -0.4424968361854553, 0.10170135647058487, -0.040051184594631195, 0.1395646184682846, -0.14514295756816864, -0.1923438310623169, -0.3297650218009949, -0.05378587543964386, -0.20797626674175262, 0.01832391321659088, 0.1633133888244629, 0.06836073100566864, -0.22142228484153748, -0.020483465865254402, 0.014084305614233017, -0.07588380575180054, -0.01721424050629139, 0.10933065414428711, -0.10402476787567139, 0.26565203070640564, -0.0951160192489624, 0.11689429730176926, -0.02673938125371933, 0.25312021374702454, 0.43260616064071655, 0.24005185067653656, -0.04662138223648071, 0.36702412366867065, 0.08486071228981018, -0.32702261209487915, 0.007840413600206375, -0.17265819013118744, 0.01812911406159401, -0.08387461304664612, -0.01632683165371418, 0.11452454328536987, 0.2768396735191345, -0.10859730839729309, -0.08471884578466415, 0.1411859393119812, -0.17720110714435577, 0.2762836813926697, -0.16197484731674194, 0.2004607766866684, 0.2599627673625946, -0.10939294099807739, 0.1251223385334015, -0.21271121501922607, 0.2158811241388321, -0.12979836761951447, 0.23431424796581268, 0.00714217871427536, -0.26171746850013733, 0.06771935522556305, 0.42205315828323364, 0.0015309005975723267, -0.003524109721183777, 0.009774107486009598, -0.15866786241531372, 0.16574633121490479, -0.013017604127526283, 0.5957184433937073, 0.35284242033958435, 0.2059558629989624, -0.16387538611888885, -0.05826830118894577, -0.2622590661048889, -0.13698357343673706, 0.21246157586574554, 0.09510184824466705, 0.029852449893951416, 0.057296209037303925, 0.026110144332051277, -0.06643877923488617, -0.17657259106636047, -0.24333874881267548, 0.20823132991790771, 0.34643039107322693, -0.5103120803833008, -0.002906862646341324, -0.3452731966972351, -0.2318640947341919, -0.318596750497818, -0.09879090636968613, -0.2351592779159546, -0.45904412865638733, 0.09043826162815094, -0.07749123871326447, -0.19039319455623627, 0.1450759321451187, -0.03756433352828026, 0.00791795551776886, -0.09107276052236557, 0.1520518660545349, -0.09758442640304565, -0.4702497720718384, -0.2045716643333435, 0.18111222982406616, 0.007479964755475521, 0.04695342853665352, 0.48136067390441895, -0.14319847524166107, -0.12455504387617111, -0.07857242971658707, -0.2953167259693146, 0.004026547074317932, -0.27306586503982544, 0.1366044282913208, 0.18162280321121216, 0.10385961085557938, 0.008461564779281616, -0.1486843377351761, 0.2930159866809845, -0.0715193897485733, 0.02463996224105358, 0.10695695877075195, 0.04523320496082306, -0.29207324981689453, -0.2664700746536255, -0.47501876950263977, -0.47453030943870544, -0.1774820238351822, 0.06694796681404114, -0.07590820640325546, -0.0335288867354393, 0.5198026299476624, 0.06844194233417511, 0.06568092852830887, 0.09314513206481934, 0.023252563551068306, -0.3467433452606201, -0.09354066103696823, 0.24904759228229523, -0.17909157276153564, -0.2102452665567398, 0.19605740904808044, 0.10930982232093811, 0.11752843856811523, -0.20393286645412445, -0.3139225244522095, 0.0728621631860733, -0.05760142207145691, 0.058944594115018845, 0.0813104510307312, 0.1948959231376648, 0.213882714509964, 0.26710188388824463, -0.1480034589767456, -0.32705166935920715, -0.33171191811561584, 0.1381734162569046, -0.07196754217147827, 0.13063524663448334, -0.1062559112906456, 0.2940853238105774, -0.15208378434181213, 0.3265089988708496, 0.02177233248949051, -0.2126559466123581, 0.19188900291919708, -0.04784797877073288, 0.5207322239875793, 0.06838071346282959, -0.4193749725818634, 0.06588515639305115, -0.11910709738731384, 0.026946015655994415, 0.17604292929172516, -0.3196392059326172, 0.037956602871418, -0.1479680836200714, 0.39460432529449463, -0.24780485033988953, -0.0996566042304039, -0.10064300894737244, -0.150168314576149, 0.04052693769335747, 0.11690026521682739, -0.04097502678632736, -0.20840801298618317, -0.19158512353897095, -0.251280277967453, 0.05782359838485718, -0.09546125680208206, -0.08755116909742355, -0.5335748791694641, -0.2334989607334137, -0.16499599814414978, 0.2940983176231384, 0.15745152533054352, 0.3346639573574066, -0.1785169392824173, 0.24547147750854492, 0.04775853827595711, 0.2458997219800949, 0.6149806380271912, -0.48323917388916016, 0.15470220148563385, 0.2263718545436859, 0.3931272625923157, -0.17800173163414001, -0.1272554248571396, -0.16925737261772156, 0.29472607374191284, -0.29577773809432983, 0.0259886272251606, -0.15553420782089233, -0.09107694029808044, 0.2631005048751831, 0.15540610253810883, -0.12238006293773651, -0.3149801790714264, -0.2309514582157135, -0.17939317226409912, -0.12728534638881683, -0.05339682847261429, 0.06357723474502563, 0.1866377294063568, -0.3784867525100708, 0.09864826500415802, 0.1408238410949707, 0.07350717484951019, 0.27150458097457886, 0.11863504350185394, 0.22324323654174805, 0.030276760458946228, 0.19736120104789734, 0.3174026608467102, 0.25872570276260376, 0.5099823474884033, 0.5483983755111694, -0.3618464469909668, -0.5113288760185242, -0.11947879940271378, -0.11476913839578629, 0.2007075399160385, 0.06500126421451569, -0.14221495389938354, 0.1660955250263214, -0.05063997954130173, 0.18545863032341003, 0.09619792550802231, 0.022308139130473137, 0.49229511618614197, 0.16057629883289337, -0.48984774947166443, -0.5388926267623901, 0.2713593542575836, 0.03924167528748512, -0.047840673476457596, 0.12815584242343903, 0.07973237335681915, -0.3407571017742157, 0.20595282316207886, -0.15599361062049866, 0.6908725500106812, 0.08379792422056198, -0.051030565053224564, -0.01703104004263878, -0.2261730283498764, 0.7132234573364258, -0.11871135234832764, 0.0007717739790678024, -0.36142903566360474, -0.3074665665626526, -0.06222996860742569, -0.022118709981441498, 0.023474864661693573, 0.45069295167922974, -0.3085786700248718, 0.3788376748561859, -0.32851341366767883, 0.20468662679195404, 0.0287502259016037, -0.07406165450811386, 0.24943947792053223, -0.13231386244297028, -0.08248588442802429, 0.20103423297405243, -0.15761911869049072, -0.13437587022781372, -0.16743484139442444, 0.041905298829078674, -0.2318483293056488, -0.26806050539016724, -0.22626037895679474, 0.08226095885038376, -0.25382494926452637, 0.14157822728157043, -0.08565416932106018, -0.0167192742228508, 0.21681106090545654, 0.20250985026359558, 0.4863223433494568, 0.07892397046089172, -0.14828674495220184, 0.18389557301998138, 0.042148612439632416, 0.1370237171649933, 0.03434881195425987, 0.053746625781059265, 0.41506263613700867, 0.11604952067136765, -0.2699807286262512, 0.1285300999879837, -0.07956741005182266, 0.1759495884180069, -0.08703167736530304, 0.08389420062303543, -0.09839758276939392, -0.36537548899650574, 0.03264753147959709, -0.07703882455825806, 0.2287103533744812, -0.25377342104911804, 0.1773461103439331, 0.05198296159505844, -0.04668021574616432, 0.2120787501335144, -0.26369139552116394, -0.14659744501113892, -0.0457465834915638, 0.18923303484916687, 0.025963841006159782, 0.19335618615150452, 0.2472444772720337, 0.02597314491868019, -0.35139185190200806, -0.25651124119758606, 0.03895159065723419, 0.02399946004152298, -0.6778349876403809, 0.24598263204097748, 0.25335434079170227, 0.07594607770442963, -0.057189375162124634, 0.22326834499835968, -0.01583019271492958, 0.07108473032712936, 0.06101376935839653, -0.5274378061294556, -0.21865007281303406, -0.004669703543186188, -0.18475477397441864, 0.11693009734153748, 0.24786508083343506, 0.4110049605369568, 0.13375768065452576, 0.07144966721534729, -0.364154189825058, -0.020954139530658722, -0.17239390313625336, 0.2980128526687622, 0.15251107513904572, 0.01996077410876751, 0.2820310592651367, -0.17880651354789734, 0.21821677684783936, 0.0007443204522132874, 0.007750300690531731, -0.24981853365898132, -0.18720903992652893, 0.11241061985492706, 0.135209858417511, -0.19721606373786926, -0.06341155618429184, -0.16438157856464386, 0.057836927473545074, -0.0719839483499527, -0.0172507893294096, 0.31057414412498474, 0.003207750618457794, 0.37353095412254333, -0.150922030210495, 0.23278465867042542, -0.046329643577337265, 0.21827778220176697, 0.012717105448246002, -0.11400127410888672, 0.0742453783750534, 0.17296579480171204, -0.11276457458734512, 0.01947830617427826, -0.1750796139240265, 0.08479522913694382, -0.1170053631067276, -0.1179296001791954, 0.13429349660873413, -0.56898033618927, 0.2959568500518799, 0.19363825023174286, 0.4493628144264221, 0.2781367897987366, -0.18682590126991272, -0.07076673209667206, 0.38260918855667114, 0.30792683362960815, -0.3656698763370514, -0.16836020350456238, 0.16300183534622192, 0.16556134819984436, 0.0003902427852153778, 0.07560751587152481, 0.060725416988134384, -0.031059913337230682, 0.044892385601997375, 0.00808582454919815, 0.45543891191482544, -0.43765467405319214, 0.23490497469902039, 0.5269829630851746, -0.06197105720639229, 0.09998415410518646, 0.49679407477378845, 0.1731766313314438, 0.06353316456079483, 0.5881983637809753, 0.034650202840566635, 0.1773209571838379, 0.18747013807296753, -0.13795991241931915, -0.07542070001363754, -0.17221783101558685, 0.1809181272983551, 0.09697271883487701, 0.018856719136238098, -0.042831532657146454, -0.0954480916261673, 0.30113422870635986, -0.383945107460022, 0.004110261332243681, -0.0057688429951667786, 0.1111968457698822, -0.22550374269485474, -0.10601559281349182, -0.156263068318367, -0.09870950132608414, -0.16644605994224548, -0.19731584191322327, 0.014028046280145645, -0.1700509637594223, 0.3556351959705353, -0.07428097724914551, -0.19596438109874725, -0.45658159255981445, -0.18677827715873718, 0.3054199516773224, 0.06508123129606247, -0.24730996787548065, 0.01632004790008068, 0.2487560659646988, -0.14550121128559113, 0.3213777542114258, 0.08623997122049332, 0.6039391160011292, 0.17137520015239716, 0.0897911787033081, -0.3410915732383728, -0.09729558229446411, -0.08858038485050201, 0.15166372060775757, 0.21556805074214935, 0.04592078924179077, -0.03683386370539665, 0.39226579666137695, 0.20187820494174957, -0.17074908316135406, 0.30858010053634644, 0.33574214577674866, 0.2227042317390442, -0.17061986029148102, -0.06306739896535873, -0.13396553695201874, -0.25735458731651306, -0.3266395926475525, 0.10131882131099701, -0.2697950303554535, 0.1159566268324852, 0.46225565671920776, -0.041513774544000626, 0.08409010618925095, -0.29422929883003235, 0.14628013968467712, 0.13170994818210602, 0.3118899166584015, 0.2739446461200714, -0.04762434959411621, -0.34565046429634094, 0.16157139837741852, -0.5773795247077942, 0.12946023046970367, -0.11869937181472778, -0.11469243466854095, -0.033453814685344696, -0.15822353959083557, 0.1593216359615326, 0.020615065470337868, 0.38295018672943115, 0.1888180822134018, -0.015940219163894653, -0.10867761075496674, -0.11951403319835663, -0.19319884479045868, -0.08259901404380798, -0.12190099060535431, 0.20101605355739594, -0.3226902484893799, -0.061835769563913345, -0.14577674865722656, 0.03897598385810852, -0.3498081564903259, 0.09371402859687805, 0.1062968522310257, -0.02018941193819046, 0.36031779646873474, 0.1459478735923767, 0.7699720859527588, 0.048815228044986725, 0.11503099650144577, -0.0913878083229065, -0.35364940762519836, -0.40424349904060364, 0.36886849999427795, 0.3255908191204071, 0.25653591752052307, -0.10637723654508591, 0.009764187037944794, -0.1644827127456665, 0.09450652450323105, -0.043546706438064575, 0.32114848494529724, -0.2544761598110199, 0.214504674077034, -0.0240110382437706, 0.017140213400125504, 0.09913115948438644, -0.055626191198825836, -0.002646464854478836, 0.34105467796325684, -0.20675598084926605, -0.604709804058075, 0.6198093891143799, -0.21293115615844727, -0.23955528438091278, 0.153730571269989, 0.15452565252780914, 0.22137928009033203, -0.21874763071537018, -0.510053277015686, 0.0247500017285347, 0.3773822486400604, 0.01900388114154339, -0.4423445165157318, -0.00370657816529274, -0.19275733828544617, 0.051444146782159805, 0.11356012523174286, 0.30625396966934204, 0.11662857979536057, -0.1932860165834427, 0.19910496473312378, -0.25434619188308716 ]
https://github.com/huggingface/datasets/issues/1989
Question/problem with dataset labels
Hi, Just in case you want to use tsv directly, you can use the separator argument while loading the dataset. ```python d = load_dataset("csv",data_files=['test.csv'],sep="\t") ``` Additionally, I don't face the issues with the following csv (same as the one you provided): ```sh link1,text1,info1,info2,info3,info4,info5,link2,text2,text3 crawl-data/CC-MAIN-2017-47/segments/1510934806225.78/wet/CC-MAIN-20171120203833-20171120223833-00571.warc.wet.gz,Rose Blakey is an aspiring journalist. She is desperate to escape the from the small Australian town in which she lives. Rejection after rejection mean she is stuck in what she sees as a dead,"('Rose', '', 'Blakey')",journalist,F,38,journalist,https://www.netgalley.com/catalog/book/121872,_ is desperate to escape the from the small Australian town in which _ lives. Rejection after rejection mean _ is stuck in what _ sees as a dead-end waitressing job., She is desperate to escape the from the small Australian town in which she lives. Rejection after rejection mean she is stuck in what she sees as a dead-end waitressing job. ``` Output after loading: ```sh {'link1': 'crawl-data/CC-MAIN-2017-47/segments/1510934806225.78/wet/CC-MAIN-20171120203833-20171120223833-00571.warc.wet.gz', 'text1': 'Rose Blakey is an aspiring journalist. She is desperate to escape the from the small Australian town in which she lives. Rejection after rejection mean she is stuck in what she sees as a dead', 'info1': "('Rose', '', 'Blakey')", 'info2': 'journalist', 'info3': 'F', 'info4': 38, 'info5': 'journalist', 'link2': 'https://www.netgalley.com/catalog/book/121872', 'text2': '_ is desperate to escape the from the small Australian town in which _ lives. Rejection after rejection mean _ is stuck in what _ sees as a dead-end waitressing job.', 'text3': ' She is desperate to escape the from the small Australian town in which she lives. Rejection after rejection mean she is stuck in what she sees as a dead-end waitressing job.'} ``` Can you check once if the tsv works for you directly using the separator argument? The conversion from tsv to csv could create issues, I'm only guessing though.
Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric.
292
Question/problem with dataset labels Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric. Hi, Just in case you want to use tsv directly, you can use the separator argument while loading the dataset. ```python d = load_dataset("csv",data_files=['test.csv'],sep="\t") ``` Additionally, I don't face the issues with the following csv (same as the one you provided): ```sh link1,text1,info1,info2,info3,info4,info5,link2,text2,text3 crawl-data/CC-MAIN-2017-47/segments/1510934806225.78/wet/CC-MAIN-20171120203833-20171120223833-00571.warc.wet.gz,Rose Blakey is an aspiring journalist. She is desperate to escape the from the small Australian town in which she lives. Rejection after rejection mean she is stuck in what she sees as a dead,"('Rose', '', 'Blakey')",journalist,F,38,journalist,https://www.netgalley.com/catalog/book/121872,_ is desperate to escape the from the small Australian town in which _ lives. Rejection after rejection mean _ is stuck in what _ sees as a dead-end waitressing job., She is desperate to escape the from the small Australian town in which she lives. Rejection after rejection mean she is stuck in what she sees as a dead-end waitressing job. ``` Output after loading: ```sh {'link1': 'crawl-data/CC-MAIN-2017-47/segments/1510934806225.78/wet/CC-MAIN-20171120203833-20171120223833-00571.warc.wet.gz', 'text1': 'Rose Blakey is an aspiring journalist. She is desperate to escape the from the small Australian town in which she lives. Rejection after rejection mean she is stuck in what she sees as a dead', 'info1': "('Rose', '', 'Blakey')", 'info2': 'journalist', 'info3': 'F', 'info4': 38, 'info5': 'journalist', 'link2': 'https://www.netgalley.com/catalog/book/121872', 'text2': '_ is desperate to escape the from the small Australian town in which _ lives. Rejection after rejection mean _ is stuck in what _ sees as a dead-end waitressing job.', 'text3': ' She is desperate to escape the from the small Australian town in which she lives. Rejection after rejection mean she is stuck in what she sees as a dead-end waitressing job.'} ``` Can you check once if the tsv works for you directly using the separator argument? The conversion from tsv to csv could create issues, I'm only guessing though.
[ 0.17891453206539154, -0.05732292681932449, 0.0051791854202747345, 0.1343669593334198, 0.4113540053367615, 0.35021263360977173, 0.6419942378997803, 0.16370749473571777, -0.16131803393363953, 0.07234975695610046, 0.17885436117649078, 0.06387517601251602, -0.060772933065891266, 0.030526036396622658, -0.13023126125335693, -0.11937084794044495, 0.08908390253782272, 0.17347916960716248, 0.1816423237323761, -0.04446651414036751, -0.2867429256439209, -0.03982596844434738, -0.15668034553527832, 0.36628860235214233, -0.2972060739994049, -0.3766842484474182, 0.21054337918758392, -0.12052827328443527, -0.1131332740187645, -0.4633956551551819, 0.27180981636047363, 0.08611994981765747, 0.0026804115623235703, 0.4034268260002136, -0.00010309630306437612, 0.05875667929649353, 0.29674795269966125, 0.1559886485338211, -0.39840808510780334, -0.43212825059890747, -0.18936029076576233, -0.023407749831676483, 0.03456375002861023, -0.30447694659233093, 0.0979834571480751, -0.28466835618019104, -0.09054110944271088, -0.27566587924957275, 0.1046861857175827, 0.4386059045791626, 0.3266400992870331, 0.2373395562171936, -0.20649957656860352, -0.2293032854795456, 0.2311525046825409, 0.12508846819400787, -0.030509009957313538, 0.04947543516755104, -0.13443872332572937, -0.0064585269428789616, 0.4515700340270996, 0.46091440320014954, -0.2723952829837799, 0.2647714614868164, 0.13536463677883148, 0.14636339247226715, 0.13772451877593994, -0.391047865152359, 0.2763095796108246, 0.19614344835281372, 0.745261013507843, -0.29649999737739563, -0.2943912744522095, -0.169705331325531, 0.1373763084411621, -0.41671931743621826, 0.1813386231660843, 0.07008323073387146, 0.006375730037689209, -0.04701496288180351, -0.033162739127874374, 0.061027172952890396, 0.08074207603931427, 0.08818022906780243, -0.05807507783174515, 0.03832857310771942, -0.09864124655723572, 0.3288170099258423, 0.11253036558628082, -0.07475075125694275, 0.29753026366233826, -0.005993807688355446, -0.08856998383998871, 0.04154462367296219, -0.4325239956378937, -0.029608357697725296, -0.03688069432973862, 0.05167611315846443, -0.11813753098249435, -0.038740478456020355, 0.018386976793408394, -0.37495625019073486, -0.14743581414222717, 0.34034502506256104, 0.2151346504688263, 0.26627588272094727, 0.2706994414329529, 0.5616863369941711, 0.09117235988378525, -0.07616271078586578, 0.030804280191659927, -0.055807456374168396, -0.0015734817134216428, -0.4626432955265045, 0.2433207482099533, 0.09893116354942322, 0.2934700846672058, -0.23985880613327026, -0.5455210208892822, 0.1924419403076172, -0.02810133621096611, 0.09409621357917786, 0.1541178822517395, 0.3049503564834595, 0.022122211754322052, 0.20651811361312866, 0.07934746146202087, 0.19360853731632233, -0.009170521050691605, -0.11720552295446396, -0.2069239765405655, 0.09760816395282745, -0.2002788484096527, -0.15010666847229004, 0.05026936158537865, -0.07205250859260559, 0.11244922131299973, 0.06405946612358093, -0.001004628837108612, -0.07605672627687454, -0.016303835436701775, -0.38646399974823, -0.012748576700687408, 0.3588930070400238, -0.1032634824514389, 0.4203506112098694, 0.2520540952682495, -0.4185497760772705, 0.059699662029743195, 0.18021142482757568, -0.3688519597053528, -0.033813636749982834, -0.21215704083442688, 0.28621289134025574, -0.10304396599531174, -0.18798115849494934, -0.12009156495332718, 0.04682375118136406, 0.41932010650634766, -0.21455375850200653, 0.15759006142616272, -0.3543839454650879, -0.3093222975730896, -0.27777010202407837, -0.06630431860685349, 0.22143234312534332, -0.6722471117973328, 0.00438961386680603, -0.14754675328731537, -0.02911316230893135, 0.052806608378887177, 0.2960191071033478, -0.08100470900535583, 0.20629197359085083, -0.07059179246425629, 0.03035011887550354, 0.13955077528953552, -0.3906910717487335, -0.11046409606933594, 0.1035437136888504, -0.14200331270694733, -0.24426430463790894, 0.07048048824071884, -0.04033976048231125, 0.09173116832971573, -0.09162644296884537, 0.05823200196027756, -0.13187766075134277, -0.19963248074054718, -0.09513352066278458, -0.14370344579219818, 0.053811050951480865, 0.6539096832275391, 0.09273292124271393, -0.01680012419819832, 0.0756470113992691, -0.10022800415754318, -0.3448362350463867, -0.04253276437520981, -0.10095550119876862, 0.20621943473815918, 0.21479018032550812, 0.05564022436738014, 0.29835933446884155, 0.14595213532447815, -0.06447020918130875, -0.4424968361854553, 0.10170135647058487, -0.040051184594631195, 0.1395646184682846, -0.14514295756816864, -0.1923438310623169, -0.3297650218009949, -0.05378587543964386, -0.20797626674175262, 0.01832391321659088, 0.1633133888244629, 0.06836073100566864, -0.22142228484153748, -0.020483465865254402, 0.014084305614233017, -0.07588380575180054, -0.01721424050629139, 0.10933065414428711, -0.10402476787567139, 0.26565203070640564, -0.0951160192489624, 0.11689429730176926, -0.02673938125371933, 0.25312021374702454, 0.43260616064071655, 0.24005185067653656, -0.04662138223648071, 0.36702412366867065, 0.08486071228981018, -0.32702261209487915, 0.007840413600206375, -0.17265819013118744, 0.01812911406159401, -0.08387461304664612, -0.01632683165371418, 0.11452454328536987, 0.2768396735191345, -0.10859730839729309, -0.08471884578466415, 0.1411859393119812, -0.17720110714435577, 0.2762836813926697, -0.16197484731674194, 0.2004607766866684, 0.2599627673625946, -0.10939294099807739, 0.1251223385334015, -0.21271121501922607, 0.2158811241388321, -0.12979836761951447, 0.23431424796581268, 0.00714217871427536, -0.26171746850013733, 0.06771935522556305, 0.42205315828323364, 0.0015309005975723267, -0.003524109721183777, 0.009774107486009598, -0.15866786241531372, 0.16574633121490479, -0.013017604127526283, 0.5957184433937073, 0.35284242033958435, 0.2059558629989624, -0.16387538611888885, -0.05826830118894577, -0.2622590661048889, -0.13698357343673706, 0.21246157586574554, 0.09510184824466705, 0.029852449893951416, 0.057296209037303925, 0.026110144332051277, -0.06643877923488617, -0.17657259106636047, -0.24333874881267548, 0.20823132991790771, 0.34643039107322693, -0.5103120803833008, -0.002906862646341324, -0.3452731966972351, -0.2318640947341919, -0.318596750497818, -0.09879090636968613, -0.2351592779159546, -0.45904412865638733, 0.09043826162815094, -0.07749123871326447, -0.19039319455623627, 0.1450759321451187, -0.03756433352828026, 0.00791795551776886, -0.09107276052236557, 0.1520518660545349, -0.09758442640304565, -0.4702497720718384, -0.2045716643333435, 0.18111222982406616, 0.007479964755475521, 0.04695342853665352, 0.48136067390441895, -0.14319847524166107, -0.12455504387617111, -0.07857242971658707, -0.2953167259693146, 0.004026547074317932, -0.27306586503982544, 0.1366044282913208, 0.18162280321121216, 0.10385961085557938, 0.008461564779281616, -0.1486843377351761, 0.2930159866809845, -0.0715193897485733, 0.02463996224105358, 0.10695695877075195, 0.04523320496082306, -0.29207324981689453, -0.2664700746536255, -0.47501876950263977, -0.47453030943870544, -0.1774820238351822, 0.06694796681404114, -0.07590820640325546, -0.0335288867354393, 0.5198026299476624, 0.06844194233417511, 0.06568092852830887, 0.09314513206481934, 0.023252563551068306, -0.3467433452606201, -0.09354066103696823, 0.24904759228229523, -0.17909157276153564, -0.2102452665567398, 0.19605740904808044, 0.10930982232093811, 0.11752843856811523, -0.20393286645412445, -0.3139225244522095, 0.0728621631860733, -0.05760142207145691, 0.058944594115018845, 0.0813104510307312, 0.1948959231376648, 0.213882714509964, 0.26710188388824463, -0.1480034589767456, -0.32705166935920715, -0.33171191811561584, 0.1381734162569046, -0.07196754217147827, 0.13063524663448334, -0.1062559112906456, 0.2940853238105774, -0.15208378434181213, 0.3265089988708496, 0.02177233248949051, -0.2126559466123581, 0.19188900291919708, -0.04784797877073288, 0.5207322239875793, 0.06838071346282959, -0.4193749725818634, 0.06588515639305115, -0.11910709738731384, 0.026946015655994415, 0.17604292929172516, -0.3196392059326172, 0.037956602871418, -0.1479680836200714, 0.39460432529449463, -0.24780485033988953, -0.0996566042304039, -0.10064300894737244, -0.150168314576149, 0.04052693769335747, 0.11690026521682739, -0.04097502678632736, -0.20840801298618317, -0.19158512353897095, -0.251280277967453, 0.05782359838485718, -0.09546125680208206, -0.08755116909742355, -0.5335748791694641, -0.2334989607334137, -0.16499599814414978, 0.2940983176231384, 0.15745152533054352, 0.3346639573574066, -0.1785169392824173, 0.24547147750854492, 0.04775853827595711, 0.2458997219800949, 0.6149806380271912, -0.48323917388916016, 0.15470220148563385, 0.2263718545436859, 0.3931272625923157, -0.17800173163414001, -0.1272554248571396, -0.16925737261772156, 0.29472607374191284, -0.29577773809432983, 0.0259886272251606, -0.15553420782089233, -0.09107694029808044, 0.2631005048751831, 0.15540610253810883, -0.12238006293773651, -0.3149801790714264, -0.2309514582157135, -0.17939317226409912, -0.12728534638881683, -0.05339682847261429, 0.06357723474502563, 0.1866377294063568, -0.3784867525100708, 0.09864826500415802, 0.1408238410949707, 0.07350717484951019, 0.27150458097457886, 0.11863504350185394, 0.22324323654174805, 0.030276760458946228, 0.19736120104789734, 0.3174026608467102, 0.25872570276260376, 0.5099823474884033, 0.5483983755111694, -0.3618464469909668, -0.5113288760185242, -0.11947879940271378, -0.11476913839578629, 0.2007075399160385, 0.06500126421451569, -0.14221495389938354, 0.1660955250263214, -0.05063997954130173, 0.18545863032341003, 0.09619792550802231, 0.022308139130473137, 0.49229511618614197, 0.16057629883289337, -0.48984774947166443, -0.5388926267623901, 0.2713593542575836, 0.03924167528748512, -0.047840673476457596, 0.12815584242343903, 0.07973237335681915, -0.3407571017742157, 0.20595282316207886, -0.15599361062049866, 0.6908725500106812, 0.08379792422056198, -0.051030565053224564, -0.01703104004263878, -0.2261730283498764, 0.7132234573364258, -0.11871135234832764, 0.0007717739790678024, -0.36142903566360474, -0.3074665665626526, -0.06222996860742569, -0.022118709981441498, 0.023474864661693573, 0.45069295167922974, -0.3085786700248718, 0.3788376748561859, -0.32851341366767883, 0.20468662679195404, 0.0287502259016037, -0.07406165450811386, 0.24943947792053223, -0.13231386244297028, -0.08248588442802429, 0.20103423297405243, -0.15761911869049072, -0.13437587022781372, -0.16743484139442444, 0.041905298829078674, -0.2318483293056488, -0.26806050539016724, -0.22626037895679474, 0.08226095885038376, -0.25382494926452637, 0.14157822728157043, -0.08565416932106018, -0.0167192742228508, 0.21681106090545654, 0.20250985026359558, 0.4863223433494568, 0.07892397046089172, -0.14828674495220184, 0.18389557301998138, 0.042148612439632416, 0.1370237171649933, 0.03434881195425987, 0.053746625781059265, 0.41506263613700867, 0.11604952067136765, -0.2699807286262512, 0.1285300999879837, -0.07956741005182266, 0.1759495884180069, -0.08703167736530304, 0.08389420062303543, -0.09839758276939392, -0.36537548899650574, 0.03264753147959709, -0.07703882455825806, 0.2287103533744812, -0.25377342104911804, 0.1773461103439331, 0.05198296159505844, -0.04668021574616432, 0.2120787501335144, -0.26369139552116394, -0.14659744501113892, -0.0457465834915638, 0.18923303484916687, 0.025963841006159782, 0.19335618615150452, 0.2472444772720337, 0.02597314491868019, -0.35139185190200806, -0.25651124119758606, 0.03895159065723419, 0.02399946004152298, -0.6778349876403809, 0.24598263204097748, 0.25335434079170227, 0.07594607770442963, -0.057189375162124634, 0.22326834499835968, -0.01583019271492958, 0.07108473032712936, 0.06101376935839653, -0.5274378061294556, -0.21865007281303406, -0.004669703543186188, -0.18475477397441864, 0.11693009734153748, 0.24786508083343506, 0.4110049605369568, 0.13375768065452576, 0.07144966721534729, -0.364154189825058, -0.020954139530658722, -0.17239390313625336, 0.2980128526687622, 0.15251107513904572, 0.01996077410876751, 0.2820310592651367, -0.17880651354789734, 0.21821677684783936, 0.0007443204522132874, 0.007750300690531731, -0.24981853365898132, -0.18720903992652893, 0.11241061985492706, 0.135209858417511, -0.19721606373786926, -0.06341155618429184, -0.16438157856464386, 0.057836927473545074, -0.0719839483499527, -0.0172507893294096, 0.31057414412498474, 0.003207750618457794, 0.37353095412254333, -0.150922030210495, 0.23278465867042542, -0.046329643577337265, 0.21827778220176697, 0.012717105448246002, -0.11400127410888672, 0.0742453783750534, 0.17296579480171204, -0.11276457458734512, 0.01947830617427826, -0.1750796139240265, 0.08479522913694382, -0.1170053631067276, -0.1179296001791954, 0.13429349660873413, -0.56898033618927, 0.2959568500518799, 0.19363825023174286, 0.4493628144264221, 0.2781367897987366, -0.18682590126991272, -0.07076673209667206, 0.38260918855667114, 0.30792683362960815, -0.3656698763370514, -0.16836020350456238, 0.16300183534622192, 0.16556134819984436, 0.0003902427852153778, 0.07560751587152481, 0.060725416988134384, -0.031059913337230682, 0.044892385601997375, 0.00808582454919815, 0.45543891191482544, -0.43765467405319214, 0.23490497469902039, 0.5269829630851746, -0.06197105720639229, 0.09998415410518646, 0.49679407477378845, 0.1731766313314438, 0.06353316456079483, 0.5881983637809753, 0.034650202840566635, 0.1773209571838379, 0.18747013807296753, -0.13795991241931915, -0.07542070001363754, -0.17221783101558685, 0.1809181272983551, 0.09697271883487701, 0.018856719136238098, -0.042831532657146454, -0.0954480916261673, 0.30113422870635986, -0.383945107460022, 0.004110261332243681, -0.0057688429951667786, 0.1111968457698822, -0.22550374269485474, -0.10601559281349182, -0.156263068318367, -0.09870950132608414, -0.16644605994224548, -0.19731584191322327, 0.014028046280145645, -0.1700509637594223, 0.3556351959705353, -0.07428097724914551, -0.19596438109874725, -0.45658159255981445, -0.18677827715873718, 0.3054199516773224, 0.06508123129606247, -0.24730996787548065, 0.01632004790008068, 0.2487560659646988, -0.14550121128559113, 0.3213777542114258, 0.08623997122049332, 0.6039391160011292, 0.17137520015239716, 0.0897911787033081, -0.3410915732383728, -0.09729558229446411, -0.08858038485050201, 0.15166372060775757, 0.21556805074214935, 0.04592078924179077, -0.03683386370539665, 0.39226579666137695, 0.20187820494174957, -0.17074908316135406, 0.30858010053634644, 0.33574214577674866, 0.2227042317390442, -0.17061986029148102, -0.06306739896535873, -0.13396553695201874, -0.25735458731651306, -0.3266395926475525, 0.10131882131099701, -0.2697950303554535, 0.1159566268324852, 0.46225565671920776, -0.041513774544000626, 0.08409010618925095, -0.29422929883003235, 0.14628013968467712, 0.13170994818210602, 0.3118899166584015, 0.2739446461200714, -0.04762434959411621, -0.34565046429634094, 0.16157139837741852, -0.5773795247077942, 0.12946023046970367, -0.11869937181472778, -0.11469243466854095, -0.033453814685344696, -0.15822353959083557, 0.1593216359615326, 0.020615065470337868, 0.38295018672943115, 0.1888180822134018, -0.015940219163894653, -0.10867761075496674, -0.11951403319835663, -0.19319884479045868, -0.08259901404380798, -0.12190099060535431, 0.20101605355739594, -0.3226902484893799, -0.061835769563913345, -0.14577674865722656, 0.03897598385810852, -0.3498081564903259, 0.09371402859687805, 0.1062968522310257, -0.02018941193819046, 0.36031779646873474, 0.1459478735923767, 0.7699720859527588, 0.048815228044986725, 0.11503099650144577, -0.0913878083229065, -0.35364940762519836, -0.40424349904060364, 0.36886849999427795, 0.3255908191204071, 0.25653591752052307, -0.10637723654508591, 0.009764187037944794, -0.1644827127456665, 0.09450652450323105, -0.043546706438064575, 0.32114848494529724, -0.2544761598110199, 0.214504674077034, -0.0240110382437706, 0.017140213400125504, 0.09913115948438644, -0.055626191198825836, -0.002646464854478836, 0.34105467796325684, -0.20675598084926605, -0.604709804058075, 0.6198093891143799, -0.21293115615844727, -0.23955528438091278, 0.153730571269989, 0.15452565252780914, 0.22137928009033203, -0.21874763071537018, -0.510053277015686, 0.0247500017285347, 0.3773822486400604, 0.01900388114154339, -0.4423445165157318, -0.00370657816529274, -0.19275733828544617, 0.051444146782159805, 0.11356012523174286, 0.30625396966934204, 0.11662857979536057, -0.1932860165834427, 0.19910496473312378, -0.25434619188308716 ]
https://github.com/huggingface/datasets/issues/1989
Question/problem with dataset labels
thanks for the tip. very strange :/ I'll check my datasets version as well. I will have more similar experiments soon so I'll let you know if I manage to get rid of this.
Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric.
34
Question/problem with dataset labels Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric. thanks for the tip. very strange :/ I'll check my datasets version as well. I will have more similar experiments soon so I'll let you know if I manage to get rid of this.
[ 0.17891453206539154, -0.05732292681932449, 0.0051791854202747345, 0.1343669593334198, 0.4113540053367615, 0.35021263360977173, 0.6419942378997803, 0.16370749473571777, -0.16131803393363953, 0.07234975695610046, 0.17885436117649078, 0.06387517601251602, -0.060772933065891266, 0.030526036396622658, -0.13023126125335693, -0.11937084794044495, 0.08908390253782272, 0.17347916960716248, 0.1816423237323761, -0.04446651414036751, -0.2867429256439209, -0.03982596844434738, -0.15668034553527832, 0.36628860235214233, -0.2972060739994049, -0.3766842484474182, 0.21054337918758392, -0.12052827328443527, -0.1131332740187645, -0.4633956551551819, 0.27180981636047363, 0.08611994981765747, 0.0026804115623235703, 0.4034268260002136, -0.00010309630306437612, 0.05875667929649353, 0.29674795269966125, 0.1559886485338211, -0.39840808510780334, -0.43212825059890747, -0.18936029076576233, -0.023407749831676483, 0.03456375002861023, -0.30447694659233093, 0.0979834571480751, -0.28466835618019104, -0.09054110944271088, -0.27566587924957275, 0.1046861857175827, 0.4386059045791626, 0.3266400992870331, 0.2373395562171936, -0.20649957656860352, -0.2293032854795456, 0.2311525046825409, 0.12508846819400787, -0.030509009957313538, 0.04947543516755104, -0.13443872332572937, -0.0064585269428789616, 0.4515700340270996, 0.46091440320014954, -0.2723952829837799, 0.2647714614868164, 0.13536463677883148, 0.14636339247226715, 0.13772451877593994, -0.391047865152359, 0.2763095796108246, 0.19614344835281372, 0.745261013507843, -0.29649999737739563, -0.2943912744522095, -0.169705331325531, 0.1373763084411621, -0.41671931743621826, 0.1813386231660843, 0.07008323073387146, 0.006375730037689209, -0.04701496288180351, -0.033162739127874374, 0.061027172952890396, 0.08074207603931427, 0.08818022906780243, -0.05807507783174515, 0.03832857310771942, -0.09864124655723572, 0.3288170099258423, 0.11253036558628082, -0.07475075125694275, 0.29753026366233826, -0.005993807688355446, -0.08856998383998871, 0.04154462367296219, -0.4325239956378937, -0.029608357697725296, -0.03688069432973862, 0.05167611315846443, -0.11813753098249435, -0.038740478456020355, 0.018386976793408394, -0.37495625019073486, -0.14743581414222717, 0.34034502506256104, 0.2151346504688263, 0.26627588272094727, 0.2706994414329529, 0.5616863369941711, 0.09117235988378525, -0.07616271078586578, 0.030804280191659927, -0.055807456374168396, -0.0015734817134216428, -0.4626432955265045, 0.2433207482099533, 0.09893116354942322, 0.2934700846672058, -0.23985880613327026, -0.5455210208892822, 0.1924419403076172, -0.02810133621096611, 0.09409621357917786, 0.1541178822517395, 0.3049503564834595, 0.022122211754322052, 0.20651811361312866, 0.07934746146202087, 0.19360853731632233, -0.009170521050691605, -0.11720552295446396, -0.2069239765405655, 0.09760816395282745, -0.2002788484096527, -0.15010666847229004, 0.05026936158537865, -0.07205250859260559, 0.11244922131299973, 0.06405946612358093, -0.001004628837108612, -0.07605672627687454, -0.016303835436701775, -0.38646399974823, -0.012748576700687408, 0.3588930070400238, -0.1032634824514389, 0.4203506112098694, 0.2520540952682495, -0.4185497760772705, 0.059699662029743195, 0.18021142482757568, -0.3688519597053528, -0.033813636749982834, -0.21215704083442688, 0.28621289134025574, -0.10304396599531174, -0.18798115849494934, -0.12009156495332718, 0.04682375118136406, 0.41932010650634766, -0.21455375850200653, 0.15759006142616272, -0.3543839454650879, -0.3093222975730896, -0.27777010202407837, -0.06630431860685349, 0.22143234312534332, -0.6722471117973328, 0.00438961386680603, -0.14754675328731537, -0.02911316230893135, 0.052806608378887177, 0.2960191071033478, -0.08100470900535583, 0.20629197359085083, -0.07059179246425629, 0.03035011887550354, 0.13955077528953552, -0.3906910717487335, -0.11046409606933594, 0.1035437136888504, -0.14200331270694733, -0.24426430463790894, 0.07048048824071884, -0.04033976048231125, 0.09173116832971573, -0.09162644296884537, 0.05823200196027756, -0.13187766075134277, -0.19963248074054718, -0.09513352066278458, -0.14370344579219818, 0.053811050951480865, 0.6539096832275391, 0.09273292124271393, -0.01680012419819832, 0.0756470113992691, -0.10022800415754318, -0.3448362350463867, -0.04253276437520981, -0.10095550119876862, 0.20621943473815918, 0.21479018032550812, 0.05564022436738014, 0.29835933446884155, 0.14595213532447815, -0.06447020918130875, -0.4424968361854553, 0.10170135647058487, -0.040051184594631195, 0.1395646184682846, -0.14514295756816864, -0.1923438310623169, -0.3297650218009949, -0.05378587543964386, -0.20797626674175262, 0.01832391321659088, 0.1633133888244629, 0.06836073100566864, -0.22142228484153748, -0.020483465865254402, 0.014084305614233017, -0.07588380575180054, -0.01721424050629139, 0.10933065414428711, -0.10402476787567139, 0.26565203070640564, -0.0951160192489624, 0.11689429730176926, -0.02673938125371933, 0.25312021374702454, 0.43260616064071655, 0.24005185067653656, -0.04662138223648071, 0.36702412366867065, 0.08486071228981018, -0.32702261209487915, 0.007840413600206375, -0.17265819013118744, 0.01812911406159401, -0.08387461304664612, -0.01632683165371418, 0.11452454328536987, 0.2768396735191345, -0.10859730839729309, -0.08471884578466415, 0.1411859393119812, -0.17720110714435577, 0.2762836813926697, -0.16197484731674194, 0.2004607766866684, 0.2599627673625946, -0.10939294099807739, 0.1251223385334015, -0.21271121501922607, 0.2158811241388321, -0.12979836761951447, 0.23431424796581268, 0.00714217871427536, -0.26171746850013733, 0.06771935522556305, 0.42205315828323364, 0.0015309005975723267, -0.003524109721183777, 0.009774107486009598, -0.15866786241531372, 0.16574633121490479, -0.013017604127526283, 0.5957184433937073, 0.35284242033958435, 0.2059558629989624, -0.16387538611888885, -0.05826830118894577, -0.2622590661048889, -0.13698357343673706, 0.21246157586574554, 0.09510184824466705, 0.029852449893951416, 0.057296209037303925, 0.026110144332051277, -0.06643877923488617, -0.17657259106636047, -0.24333874881267548, 0.20823132991790771, 0.34643039107322693, -0.5103120803833008, -0.002906862646341324, -0.3452731966972351, -0.2318640947341919, -0.318596750497818, -0.09879090636968613, -0.2351592779159546, -0.45904412865638733, 0.09043826162815094, -0.07749123871326447, -0.19039319455623627, 0.1450759321451187, -0.03756433352828026, 0.00791795551776886, -0.09107276052236557, 0.1520518660545349, -0.09758442640304565, -0.4702497720718384, -0.2045716643333435, 0.18111222982406616, 0.007479964755475521, 0.04695342853665352, 0.48136067390441895, -0.14319847524166107, -0.12455504387617111, -0.07857242971658707, -0.2953167259693146, 0.004026547074317932, -0.27306586503982544, 0.1366044282913208, 0.18162280321121216, 0.10385961085557938, 0.008461564779281616, -0.1486843377351761, 0.2930159866809845, -0.0715193897485733, 0.02463996224105358, 0.10695695877075195, 0.04523320496082306, -0.29207324981689453, -0.2664700746536255, -0.47501876950263977, -0.47453030943870544, -0.1774820238351822, 0.06694796681404114, -0.07590820640325546, -0.0335288867354393, 0.5198026299476624, 0.06844194233417511, 0.06568092852830887, 0.09314513206481934, 0.023252563551068306, -0.3467433452606201, -0.09354066103696823, 0.24904759228229523, -0.17909157276153564, -0.2102452665567398, 0.19605740904808044, 0.10930982232093811, 0.11752843856811523, -0.20393286645412445, -0.3139225244522095, 0.0728621631860733, -0.05760142207145691, 0.058944594115018845, 0.0813104510307312, 0.1948959231376648, 0.213882714509964, 0.26710188388824463, -0.1480034589767456, -0.32705166935920715, -0.33171191811561584, 0.1381734162569046, -0.07196754217147827, 0.13063524663448334, -0.1062559112906456, 0.2940853238105774, -0.15208378434181213, 0.3265089988708496, 0.02177233248949051, -0.2126559466123581, 0.19188900291919708, -0.04784797877073288, 0.5207322239875793, 0.06838071346282959, -0.4193749725818634, 0.06588515639305115, -0.11910709738731384, 0.026946015655994415, 0.17604292929172516, -0.3196392059326172, 0.037956602871418, -0.1479680836200714, 0.39460432529449463, -0.24780485033988953, -0.0996566042304039, -0.10064300894737244, -0.150168314576149, 0.04052693769335747, 0.11690026521682739, -0.04097502678632736, -0.20840801298618317, -0.19158512353897095, -0.251280277967453, 0.05782359838485718, -0.09546125680208206, -0.08755116909742355, -0.5335748791694641, -0.2334989607334137, -0.16499599814414978, 0.2940983176231384, 0.15745152533054352, 0.3346639573574066, -0.1785169392824173, 0.24547147750854492, 0.04775853827595711, 0.2458997219800949, 0.6149806380271912, -0.48323917388916016, 0.15470220148563385, 0.2263718545436859, 0.3931272625923157, -0.17800173163414001, -0.1272554248571396, -0.16925737261772156, 0.29472607374191284, -0.29577773809432983, 0.0259886272251606, -0.15553420782089233, -0.09107694029808044, 0.2631005048751831, 0.15540610253810883, -0.12238006293773651, -0.3149801790714264, -0.2309514582157135, -0.17939317226409912, -0.12728534638881683, -0.05339682847261429, 0.06357723474502563, 0.1866377294063568, -0.3784867525100708, 0.09864826500415802, 0.1408238410949707, 0.07350717484951019, 0.27150458097457886, 0.11863504350185394, 0.22324323654174805, 0.030276760458946228, 0.19736120104789734, 0.3174026608467102, 0.25872570276260376, 0.5099823474884033, 0.5483983755111694, -0.3618464469909668, -0.5113288760185242, -0.11947879940271378, -0.11476913839578629, 0.2007075399160385, 0.06500126421451569, -0.14221495389938354, 0.1660955250263214, -0.05063997954130173, 0.18545863032341003, 0.09619792550802231, 0.022308139130473137, 0.49229511618614197, 0.16057629883289337, -0.48984774947166443, -0.5388926267623901, 0.2713593542575836, 0.03924167528748512, -0.047840673476457596, 0.12815584242343903, 0.07973237335681915, -0.3407571017742157, 0.20595282316207886, -0.15599361062049866, 0.6908725500106812, 0.08379792422056198, -0.051030565053224564, -0.01703104004263878, -0.2261730283498764, 0.7132234573364258, -0.11871135234832764, 0.0007717739790678024, -0.36142903566360474, -0.3074665665626526, -0.06222996860742569, -0.022118709981441498, 0.023474864661693573, 0.45069295167922974, -0.3085786700248718, 0.3788376748561859, -0.32851341366767883, 0.20468662679195404, 0.0287502259016037, -0.07406165450811386, 0.24943947792053223, -0.13231386244297028, -0.08248588442802429, 0.20103423297405243, -0.15761911869049072, -0.13437587022781372, -0.16743484139442444, 0.041905298829078674, -0.2318483293056488, -0.26806050539016724, -0.22626037895679474, 0.08226095885038376, -0.25382494926452637, 0.14157822728157043, -0.08565416932106018, -0.0167192742228508, 0.21681106090545654, 0.20250985026359558, 0.4863223433494568, 0.07892397046089172, -0.14828674495220184, 0.18389557301998138, 0.042148612439632416, 0.1370237171649933, 0.03434881195425987, 0.053746625781059265, 0.41506263613700867, 0.11604952067136765, -0.2699807286262512, 0.1285300999879837, -0.07956741005182266, 0.1759495884180069, -0.08703167736530304, 0.08389420062303543, -0.09839758276939392, -0.36537548899650574, 0.03264753147959709, -0.07703882455825806, 0.2287103533744812, -0.25377342104911804, 0.1773461103439331, 0.05198296159505844, -0.04668021574616432, 0.2120787501335144, -0.26369139552116394, -0.14659744501113892, -0.0457465834915638, 0.18923303484916687, 0.025963841006159782, 0.19335618615150452, 0.2472444772720337, 0.02597314491868019, -0.35139185190200806, -0.25651124119758606, 0.03895159065723419, 0.02399946004152298, -0.6778349876403809, 0.24598263204097748, 0.25335434079170227, 0.07594607770442963, -0.057189375162124634, 0.22326834499835968, -0.01583019271492958, 0.07108473032712936, 0.06101376935839653, -0.5274378061294556, -0.21865007281303406, -0.004669703543186188, -0.18475477397441864, 0.11693009734153748, 0.24786508083343506, 0.4110049605369568, 0.13375768065452576, 0.07144966721534729, -0.364154189825058, -0.020954139530658722, -0.17239390313625336, 0.2980128526687622, 0.15251107513904572, 0.01996077410876751, 0.2820310592651367, -0.17880651354789734, 0.21821677684783936, 0.0007443204522132874, 0.007750300690531731, -0.24981853365898132, -0.18720903992652893, 0.11241061985492706, 0.135209858417511, -0.19721606373786926, -0.06341155618429184, -0.16438157856464386, 0.057836927473545074, -0.0719839483499527, -0.0172507893294096, 0.31057414412498474, 0.003207750618457794, 0.37353095412254333, -0.150922030210495, 0.23278465867042542, -0.046329643577337265, 0.21827778220176697, 0.012717105448246002, -0.11400127410888672, 0.0742453783750534, 0.17296579480171204, -0.11276457458734512, 0.01947830617427826, -0.1750796139240265, 0.08479522913694382, -0.1170053631067276, -0.1179296001791954, 0.13429349660873413, -0.56898033618927, 0.2959568500518799, 0.19363825023174286, 0.4493628144264221, 0.2781367897987366, -0.18682590126991272, -0.07076673209667206, 0.38260918855667114, 0.30792683362960815, -0.3656698763370514, -0.16836020350456238, 0.16300183534622192, 0.16556134819984436, 0.0003902427852153778, 0.07560751587152481, 0.060725416988134384, -0.031059913337230682, 0.044892385601997375, 0.00808582454919815, 0.45543891191482544, -0.43765467405319214, 0.23490497469902039, 0.5269829630851746, -0.06197105720639229, 0.09998415410518646, 0.49679407477378845, 0.1731766313314438, 0.06353316456079483, 0.5881983637809753, 0.034650202840566635, 0.1773209571838379, 0.18747013807296753, -0.13795991241931915, -0.07542070001363754, -0.17221783101558685, 0.1809181272983551, 0.09697271883487701, 0.018856719136238098, -0.042831532657146454, -0.0954480916261673, 0.30113422870635986, -0.383945107460022, 0.004110261332243681, -0.0057688429951667786, 0.1111968457698822, -0.22550374269485474, -0.10601559281349182, -0.156263068318367, -0.09870950132608414, -0.16644605994224548, -0.19731584191322327, 0.014028046280145645, -0.1700509637594223, 0.3556351959705353, -0.07428097724914551, -0.19596438109874725, -0.45658159255981445, -0.18677827715873718, 0.3054199516773224, 0.06508123129606247, -0.24730996787548065, 0.01632004790008068, 0.2487560659646988, -0.14550121128559113, 0.3213777542114258, 0.08623997122049332, 0.6039391160011292, 0.17137520015239716, 0.0897911787033081, -0.3410915732383728, -0.09729558229446411, -0.08858038485050201, 0.15166372060775757, 0.21556805074214935, 0.04592078924179077, -0.03683386370539665, 0.39226579666137695, 0.20187820494174957, -0.17074908316135406, 0.30858010053634644, 0.33574214577674866, 0.2227042317390442, -0.17061986029148102, -0.06306739896535873, -0.13396553695201874, -0.25735458731651306, -0.3266395926475525, 0.10131882131099701, -0.2697950303554535, 0.1159566268324852, 0.46225565671920776, -0.041513774544000626, 0.08409010618925095, -0.29422929883003235, 0.14628013968467712, 0.13170994818210602, 0.3118899166584015, 0.2739446461200714, -0.04762434959411621, -0.34565046429634094, 0.16157139837741852, -0.5773795247077942, 0.12946023046970367, -0.11869937181472778, -0.11469243466854095, -0.033453814685344696, -0.15822353959083557, 0.1593216359615326, 0.020615065470337868, 0.38295018672943115, 0.1888180822134018, -0.015940219163894653, -0.10867761075496674, -0.11951403319835663, -0.19319884479045868, -0.08259901404380798, -0.12190099060535431, 0.20101605355739594, -0.3226902484893799, -0.061835769563913345, -0.14577674865722656, 0.03897598385810852, -0.3498081564903259, 0.09371402859687805, 0.1062968522310257, -0.02018941193819046, 0.36031779646873474, 0.1459478735923767, 0.7699720859527588, 0.048815228044986725, 0.11503099650144577, -0.0913878083229065, -0.35364940762519836, -0.40424349904060364, 0.36886849999427795, 0.3255908191204071, 0.25653591752052307, -0.10637723654508591, 0.009764187037944794, -0.1644827127456665, 0.09450652450323105, -0.043546706438064575, 0.32114848494529724, -0.2544761598110199, 0.214504674077034, -0.0240110382437706, 0.017140213400125504, 0.09913115948438644, -0.055626191198825836, -0.002646464854478836, 0.34105467796325684, -0.20675598084926605, -0.604709804058075, 0.6198093891143799, -0.21293115615844727, -0.23955528438091278, 0.153730571269989, 0.15452565252780914, 0.22137928009033203, -0.21874763071537018, -0.510053277015686, 0.0247500017285347, 0.3773822486400604, 0.01900388114154339, -0.4423445165157318, -0.00370657816529274, -0.19275733828544617, 0.051444146782159805, 0.11356012523174286, 0.30625396966934204, 0.11662857979536057, -0.1932860165834427, 0.19910496473312378, -0.25434619188308716 ]
https://github.com/huggingface/datasets/issues/1989
Question/problem with dataset labels
No problem at all. I thought I'd be able to solve this but I'm unable to replicate the issue :/
Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric.
20
Question/problem with dataset labels Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric. No problem at all. I thought I'd be able to solve this but I'm unable to replicate the issue :/
[ 0.17891453206539154, -0.05732292681932449, 0.0051791854202747345, 0.1343669593334198, 0.4113540053367615, 0.35021263360977173, 0.6419942378997803, 0.16370749473571777, -0.16131803393363953, 0.07234975695610046, 0.17885436117649078, 0.06387517601251602, -0.060772933065891266, 0.030526036396622658, -0.13023126125335693, -0.11937084794044495, 0.08908390253782272, 0.17347916960716248, 0.1816423237323761, -0.04446651414036751, -0.2867429256439209, -0.03982596844434738, -0.15668034553527832, 0.36628860235214233, -0.2972060739994049, -0.3766842484474182, 0.21054337918758392, -0.12052827328443527, -0.1131332740187645, -0.4633956551551819, 0.27180981636047363, 0.08611994981765747, 0.0026804115623235703, 0.4034268260002136, -0.00010309630306437612, 0.05875667929649353, 0.29674795269966125, 0.1559886485338211, -0.39840808510780334, -0.43212825059890747, -0.18936029076576233, -0.023407749831676483, 0.03456375002861023, -0.30447694659233093, 0.0979834571480751, -0.28466835618019104, -0.09054110944271088, -0.27566587924957275, 0.1046861857175827, 0.4386059045791626, 0.3266400992870331, 0.2373395562171936, -0.20649957656860352, -0.2293032854795456, 0.2311525046825409, 0.12508846819400787, -0.030509009957313538, 0.04947543516755104, -0.13443872332572937, -0.0064585269428789616, 0.4515700340270996, 0.46091440320014954, -0.2723952829837799, 0.2647714614868164, 0.13536463677883148, 0.14636339247226715, 0.13772451877593994, -0.391047865152359, 0.2763095796108246, 0.19614344835281372, 0.745261013507843, -0.29649999737739563, -0.2943912744522095, -0.169705331325531, 0.1373763084411621, -0.41671931743621826, 0.1813386231660843, 0.07008323073387146, 0.006375730037689209, -0.04701496288180351, -0.033162739127874374, 0.061027172952890396, 0.08074207603931427, 0.08818022906780243, -0.05807507783174515, 0.03832857310771942, -0.09864124655723572, 0.3288170099258423, 0.11253036558628082, -0.07475075125694275, 0.29753026366233826, -0.005993807688355446, -0.08856998383998871, 0.04154462367296219, -0.4325239956378937, -0.029608357697725296, -0.03688069432973862, 0.05167611315846443, -0.11813753098249435, -0.038740478456020355, 0.018386976793408394, -0.37495625019073486, -0.14743581414222717, 0.34034502506256104, 0.2151346504688263, 0.26627588272094727, 0.2706994414329529, 0.5616863369941711, 0.09117235988378525, -0.07616271078586578, 0.030804280191659927, -0.055807456374168396, -0.0015734817134216428, -0.4626432955265045, 0.2433207482099533, 0.09893116354942322, 0.2934700846672058, -0.23985880613327026, -0.5455210208892822, 0.1924419403076172, -0.02810133621096611, 0.09409621357917786, 0.1541178822517395, 0.3049503564834595, 0.022122211754322052, 0.20651811361312866, 0.07934746146202087, 0.19360853731632233, -0.009170521050691605, -0.11720552295446396, -0.2069239765405655, 0.09760816395282745, -0.2002788484096527, -0.15010666847229004, 0.05026936158537865, -0.07205250859260559, 0.11244922131299973, 0.06405946612358093, -0.001004628837108612, -0.07605672627687454, -0.016303835436701775, -0.38646399974823, -0.012748576700687408, 0.3588930070400238, -0.1032634824514389, 0.4203506112098694, 0.2520540952682495, -0.4185497760772705, 0.059699662029743195, 0.18021142482757568, -0.3688519597053528, -0.033813636749982834, -0.21215704083442688, 0.28621289134025574, -0.10304396599531174, -0.18798115849494934, -0.12009156495332718, 0.04682375118136406, 0.41932010650634766, -0.21455375850200653, 0.15759006142616272, -0.3543839454650879, -0.3093222975730896, -0.27777010202407837, -0.06630431860685349, 0.22143234312534332, -0.6722471117973328, 0.00438961386680603, -0.14754675328731537, -0.02911316230893135, 0.052806608378887177, 0.2960191071033478, -0.08100470900535583, 0.20629197359085083, -0.07059179246425629, 0.03035011887550354, 0.13955077528953552, -0.3906910717487335, -0.11046409606933594, 0.1035437136888504, -0.14200331270694733, -0.24426430463790894, 0.07048048824071884, -0.04033976048231125, 0.09173116832971573, -0.09162644296884537, 0.05823200196027756, -0.13187766075134277, -0.19963248074054718, -0.09513352066278458, -0.14370344579219818, 0.053811050951480865, 0.6539096832275391, 0.09273292124271393, -0.01680012419819832, 0.0756470113992691, -0.10022800415754318, -0.3448362350463867, -0.04253276437520981, -0.10095550119876862, 0.20621943473815918, 0.21479018032550812, 0.05564022436738014, 0.29835933446884155, 0.14595213532447815, -0.06447020918130875, -0.4424968361854553, 0.10170135647058487, -0.040051184594631195, 0.1395646184682846, -0.14514295756816864, -0.1923438310623169, -0.3297650218009949, -0.05378587543964386, -0.20797626674175262, 0.01832391321659088, 0.1633133888244629, 0.06836073100566864, -0.22142228484153748, -0.020483465865254402, 0.014084305614233017, -0.07588380575180054, -0.01721424050629139, 0.10933065414428711, -0.10402476787567139, 0.26565203070640564, -0.0951160192489624, 0.11689429730176926, -0.02673938125371933, 0.25312021374702454, 0.43260616064071655, 0.24005185067653656, -0.04662138223648071, 0.36702412366867065, 0.08486071228981018, -0.32702261209487915, 0.007840413600206375, -0.17265819013118744, 0.01812911406159401, -0.08387461304664612, -0.01632683165371418, 0.11452454328536987, 0.2768396735191345, -0.10859730839729309, -0.08471884578466415, 0.1411859393119812, -0.17720110714435577, 0.2762836813926697, -0.16197484731674194, 0.2004607766866684, 0.2599627673625946, -0.10939294099807739, 0.1251223385334015, -0.21271121501922607, 0.2158811241388321, -0.12979836761951447, 0.23431424796581268, 0.00714217871427536, -0.26171746850013733, 0.06771935522556305, 0.42205315828323364, 0.0015309005975723267, -0.003524109721183777, 0.009774107486009598, -0.15866786241531372, 0.16574633121490479, -0.013017604127526283, 0.5957184433937073, 0.35284242033958435, 0.2059558629989624, -0.16387538611888885, -0.05826830118894577, -0.2622590661048889, -0.13698357343673706, 0.21246157586574554, 0.09510184824466705, 0.029852449893951416, 0.057296209037303925, 0.026110144332051277, -0.06643877923488617, -0.17657259106636047, -0.24333874881267548, 0.20823132991790771, 0.34643039107322693, -0.5103120803833008, -0.002906862646341324, -0.3452731966972351, -0.2318640947341919, -0.318596750497818, -0.09879090636968613, -0.2351592779159546, -0.45904412865638733, 0.09043826162815094, -0.07749123871326447, -0.19039319455623627, 0.1450759321451187, -0.03756433352828026, 0.00791795551776886, -0.09107276052236557, 0.1520518660545349, -0.09758442640304565, -0.4702497720718384, -0.2045716643333435, 0.18111222982406616, 0.007479964755475521, 0.04695342853665352, 0.48136067390441895, -0.14319847524166107, -0.12455504387617111, -0.07857242971658707, -0.2953167259693146, 0.004026547074317932, -0.27306586503982544, 0.1366044282913208, 0.18162280321121216, 0.10385961085557938, 0.008461564779281616, -0.1486843377351761, 0.2930159866809845, -0.0715193897485733, 0.02463996224105358, 0.10695695877075195, 0.04523320496082306, -0.29207324981689453, -0.2664700746536255, -0.47501876950263977, -0.47453030943870544, -0.1774820238351822, 0.06694796681404114, -0.07590820640325546, -0.0335288867354393, 0.5198026299476624, 0.06844194233417511, 0.06568092852830887, 0.09314513206481934, 0.023252563551068306, -0.3467433452606201, -0.09354066103696823, 0.24904759228229523, -0.17909157276153564, -0.2102452665567398, 0.19605740904808044, 0.10930982232093811, 0.11752843856811523, -0.20393286645412445, -0.3139225244522095, 0.0728621631860733, -0.05760142207145691, 0.058944594115018845, 0.0813104510307312, 0.1948959231376648, 0.213882714509964, 0.26710188388824463, -0.1480034589767456, -0.32705166935920715, -0.33171191811561584, 0.1381734162569046, -0.07196754217147827, 0.13063524663448334, -0.1062559112906456, 0.2940853238105774, -0.15208378434181213, 0.3265089988708496, 0.02177233248949051, -0.2126559466123581, 0.19188900291919708, -0.04784797877073288, 0.5207322239875793, 0.06838071346282959, -0.4193749725818634, 0.06588515639305115, -0.11910709738731384, 0.026946015655994415, 0.17604292929172516, -0.3196392059326172, 0.037956602871418, -0.1479680836200714, 0.39460432529449463, -0.24780485033988953, -0.0996566042304039, -0.10064300894737244, -0.150168314576149, 0.04052693769335747, 0.11690026521682739, -0.04097502678632736, -0.20840801298618317, -0.19158512353897095, -0.251280277967453, 0.05782359838485718, -0.09546125680208206, -0.08755116909742355, -0.5335748791694641, -0.2334989607334137, -0.16499599814414978, 0.2940983176231384, 0.15745152533054352, 0.3346639573574066, -0.1785169392824173, 0.24547147750854492, 0.04775853827595711, 0.2458997219800949, 0.6149806380271912, -0.48323917388916016, 0.15470220148563385, 0.2263718545436859, 0.3931272625923157, -0.17800173163414001, -0.1272554248571396, -0.16925737261772156, 0.29472607374191284, -0.29577773809432983, 0.0259886272251606, -0.15553420782089233, -0.09107694029808044, 0.2631005048751831, 0.15540610253810883, -0.12238006293773651, -0.3149801790714264, -0.2309514582157135, -0.17939317226409912, -0.12728534638881683, -0.05339682847261429, 0.06357723474502563, 0.1866377294063568, -0.3784867525100708, 0.09864826500415802, 0.1408238410949707, 0.07350717484951019, 0.27150458097457886, 0.11863504350185394, 0.22324323654174805, 0.030276760458946228, 0.19736120104789734, 0.3174026608467102, 0.25872570276260376, 0.5099823474884033, 0.5483983755111694, -0.3618464469909668, -0.5113288760185242, -0.11947879940271378, -0.11476913839578629, 0.2007075399160385, 0.06500126421451569, -0.14221495389938354, 0.1660955250263214, -0.05063997954130173, 0.18545863032341003, 0.09619792550802231, 0.022308139130473137, 0.49229511618614197, 0.16057629883289337, -0.48984774947166443, -0.5388926267623901, 0.2713593542575836, 0.03924167528748512, -0.047840673476457596, 0.12815584242343903, 0.07973237335681915, -0.3407571017742157, 0.20595282316207886, -0.15599361062049866, 0.6908725500106812, 0.08379792422056198, -0.051030565053224564, -0.01703104004263878, -0.2261730283498764, 0.7132234573364258, -0.11871135234832764, 0.0007717739790678024, -0.36142903566360474, -0.3074665665626526, -0.06222996860742569, -0.022118709981441498, 0.023474864661693573, 0.45069295167922974, -0.3085786700248718, 0.3788376748561859, -0.32851341366767883, 0.20468662679195404, 0.0287502259016037, -0.07406165450811386, 0.24943947792053223, -0.13231386244297028, -0.08248588442802429, 0.20103423297405243, -0.15761911869049072, -0.13437587022781372, -0.16743484139442444, 0.041905298829078674, -0.2318483293056488, -0.26806050539016724, -0.22626037895679474, 0.08226095885038376, -0.25382494926452637, 0.14157822728157043, -0.08565416932106018, -0.0167192742228508, 0.21681106090545654, 0.20250985026359558, 0.4863223433494568, 0.07892397046089172, -0.14828674495220184, 0.18389557301998138, 0.042148612439632416, 0.1370237171649933, 0.03434881195425987, 0.053746625781059265, 0.41506263613700867, 0.11604952067136765, -0.2699807286262512, 0.1285300999879837, -0.07956741005182266, 0.1759495884180069, -0.08703167736530304, 0.08389420062303543, -0.09839758276939392, -0.36537548899650574, 0.03264753147959709, -0.07703882455825806, 0.2287103533744812, -0.25377342104911804, 0.1773461103439331, 0.05198296159505844, -0.04668021574616432, 0.2120787501335144, -0.26369139552116394, -0.14659744501113892, -0.0457465834915638, 0.18923303484916687, 0.025963841006159782, 0.19335618615150452, 0.2472444772720337, 0.02597314491868019, -0.35139185190200806, -0.25651124119758606, 0.03895159065723419, 0.02399946004152298, -0.6778349876403809, 0.24598263204097748, 0.25335434079170227, 0.07594607770442963, -0.057189375162124634, 0.22326834499835968, -0.01583019271492958, 0.07108473032712936, 0.06101376935839653, -0.5274378061294556, -0.21865007281303406, -0.004669703543186188, -0.18475477397441864, 0.11693009734153748, 0.24786508083343506, 0.4110049605369568, 0.13375768065452576, 0.07144966721534729, -0.364154189825058, -0.020954139530658722, -0.17239390313625336, 0.2980128526687622, 0.15251107513904572, 0.01996077410876751, 0.2820310592651367, -0.17880651354789734, 0.21821677684783936, 0.0007443204522132874, 0.007750300690531731, -0.24981853365898132, -0.18720903992652893, 0.11241061985492706, 0.135209858417511, -0.19721606373786926, -0.06341155618429184, -0.16438157856464386, 0.057836927473545074, -0.0719839483499527, -0.0172507893294096, 0.31057414412498474, 0.003207750618457794, 0.37353095412254333, -0.150922030210495, 0.23278465867042542, -0.046329643577337265, 0.21827778220176697, 0.012717105448246002, -0.11400127410888672, 0.0742453783750534, 0.17296579480171204, -0.11276457458734512, 0.01947830617427826, -0.1750796139240265, 0.08479522913694382, -0.1170053631067276, -0.1179296001791954, 0.13429349660873413, -0.56898033618927, 0.2959568500518799, 0.19363825023174286, 0.4493628144264221, 0.2781367897987366, -0.18682590126991272, -0.07076673209667206, 0.38260918855667114, 0.30792683362960815, -0.3656698763370514, -0.16836020350456238, 0.16300183534622192, 0.16556134819984436, 0.0003902427852153778, 0.07560751587152481, 0.060725416988134384, -0.031059913337230682, 0.044892385601997375, 0.00808582454919815, 0.45543891191482544, -0.43765467405319214, 0.23490497469902039, 0.5269829630851746, -0.06197105720639229, 0.09998415410518646, 0.49679407477378845, 0.1731766313314438, 0.06353316456079483, 0.5881983637809753, 0.034650202840566635, 0.1773209571838379, 0.18747013807296753, -0.13795991241931915, -0.07542070001363754, -0.17221783101558685, 0.1809181272983551, 0.09697271883487701, 0.018856719136238098, -0.042831532657146454, -0.0954480916261673, 0.30113422870635986, -0.383945107460022, 0.004110261332243681, -0.0057688429951667786, 0.1111968457698822, -0.22550374269485474, -0.10601559281349182, -0.156263068318367, -0.09870950132608414, -0.16644605994224548, -0.19731584191322327, 0.014028046280145645, -0.1700509637594223, 0.3556351959705353, -0.07428097724914551, -0.19596438109874725, -0.45658159255981445, -0.18677827715873718, 0.3054199516773224, 0.06508123129606247, -0.24730996787548065, 0.01632004790008068, 0.2487560659646988, -0.14550121128559113, 0.3213777542114258, 0.08623997122049332, 0.6039391160011292, 0.17137520015239716, 0.0897911787033081, -0.3410915732383728, -0.09729558229446411, -0.08858038485050201, 0.15166372060775757, 0.21556805074214935, 0.04592078924179077, -0.03683386370539665, 0.39226579666137695, 0.20187820494174957, -0.17074908316135406, 0.30858010053634644, 0.33574214577674866, 0.2227042317390442, -0.17061986029148102, -0.06306739896535873, -0.13396553695201874, -0.25735458731651306, -0.3266395926475525, 0.10131882131099701, -0.2697950303554535, 0.1159566268324852, 0.46225565671920776, -0.041513774544000626, 0.08409010618925095, -0.29422929883003235, 0.14628013968467712, 0.13170994818210602, 0.3118899166584015, 0.2739446461200714, -0.04762434959411621, -0.34565046429634094, 0.16157139837741852, -0.5773795247077942, 0.12946023046970367, -0.11869937181472778, -0.11469243466854095, -0.033453814685344696, -0.15822353959083557, 0.1593216359615326, 0.020615065470337868, 0.38295018672943115, 0.1888180822134018, -0.015940219163894653, -0.10867761075496674, -0.11951403319835663, -0.19319884479045868, -0.08259901404380798, -0.12190099060535431, 0.20101605355739594, -0.3226902484893799, -0.061835769563913345, -0.14577674865722656, 0.03897598385810852, -0.3498081564903259, 0.09371402859687805, 0.1062968522310257, -0.02018941193819046, 0.36031779646873474, 0.1459478735923767, 0.7699720859527588, 0.048815228044986725, 0.11503099650144577, -0.0913878083229065, -0.35364940762519836, -0.40424349904060364, 0.36886849999427795, 0.3255908191204071, 0.25653591752052307, -0.10637723654508591, 0.009764187037944794, -0.1644827127456665, 0.09450652450323105, -0.043546706438064575, 0.32114848494529724, -0.2544761598110199, 0.214504674077034, -0.0240110382437706, 0.017140213400125504, 0.09913115948438644, -0.055626191198825836, -0.002646464854478836, 0.34105467796325684, -0.20675598084926605, -0.604709804058075, 0.6198093891143799, -0.21293115615844727, -0.23955528438091278, 0.153730571269989, 0.15452565252780914, 0.22137928009033203, -0.21874763071537018, -0.510053277015686, 0.0247500017285347, 0.3773822486400604, 0.01900388114154339, -0.4423445165157318, -0.00370657816529274, -0.19275733828544617, 0.051444146782159805, 0.11356012523174286, 0.30625396966934204, 0.11662857979536057, -0.1932860165834427, 0.19910496473312378, -0.25434619188308716 ]
https://github.com/huggingface/datasets/issues/1988
Readme.md is misleading about kinds of datasets?
Hi ! Yes it's possible to use image data. There are already a few of them available (MNIST, CIFAR..)
Hi! At the README.MD, you say: "efficient data pre-processing: simple, fast and reproducible data pre-processing for the above public datasets as well as your own local datasets in CSV/JSON/text. " But here: https://github.com/huggingface/datasets/blob/master/templates/new_dataset_script.py#L82-L117 You mention other kinds of datasets, with images and so on. I'm confused. Is it possible to use it to store, say, imagenet locally?
19
Readme.md is misleading about kinds of datasets? Hi! At the README.MD, you say: "efficient data pre-processing: simple, fast and reproducible data pre-processing for the above public datasets as well as your own local datasets in CSV/JSON/text. " But here: https://github.com/huggingface/datasets/blob/master/templates/new_dataset_script.py#L82-L117 You mention other kinds of datasets, with images and so on. I'm confused. Is it possible to use it to store, say, imagenet locally? Hi ! Yes it's possible to use image data. There are already a few of them available (MNIST, CIFAR..)
[ -0.10489408671855927, -0.407784640789032, -0.12521050870418549, 0.35286951065063477, 0.2064330279827118, 0.07730431109666824, 0.2821693420410156, -0.013219371438026428, 0.10144536197185516, -0.09215152263641357, -0.29715442657470703, -0.07670411467552185, -0.059190548956394196, 0.5414650440216064, 0.5551632046699524, -0.055017612874507904, 0.1947561502456665, 0.007736675441265106, -0.16066411137580872, 0.024353697896003723, -0.1311551034450531, -0.01847808249294758, -0.19196178019046783, -0.0560770183801651, -0.2441975325345993, 0.07344330102205276, -0.2431037425994873, 0.20236122608184814, -0.35245534777641296, -0.31531840562820435, 0.12654778361320496, 0.14202621579170227, 0.20387938618659973, 0.15155644714832306, -0.00011447403812780976, 0.02614998072385788, 0.2794187664985657, -0.2648741602897644, -0.07990299165248871, -0.2754320502281189, -0.21003606915473938, -0.19585435092449188, 0.13650661706924438, -0.30974438786506653, -0.03440948575735092, -0.3639701306819916, 0.32087939977645874, -0.2029699981212616, 0.41632741689682007, 0.33210107684135437, 0.17345823347568512, 0.1770458221435547, -0.012029211968183517, 0.07155825942754745, 0.19949695467948914, 0.7043318748474121, -0.23532402515411377, 0.07656247913837433, 0.39669907093048096, 0.2751341462135315, 0.1317596286535263, 0.19040150940418243, -0.14710022509098053, 0.24462416768074036, 0.6670560836791992, 0.28478214144706726, -0.06340820342302322, -0.59534752368927, 0.17680981755256653, 0.36055660247802734, 0.7247244119644165, -0.25145605206489563, -0.377262681722641, -0.2556198835372925, -0.3492871820926666, -0.14611342549324036, -0.05310811847448349, 0.2958316504955292, -0.009453859180212021, 0.2340743988752365, -0.5905613303184509, -0.27589109539985657, -0.18513083457946777, -0.032956503331661224, 0.061803027987480164, 0.2776288390159607, -0.37688761949539185, 0.26679712533950806, 0.15191996097564697, 0.14780455827713013, 0.019391555339097977, -0.24111926555633545, 0.09046852588653564, 0.21363839507102966, 0.10612422227859497, -0.2127498835325241, -0.30109065771102905, 0.17350420355796814, 0.4054276943206787, 0.05134470760822296, -0.0248882956802845, -0.00017326511442661285, -0.23889422416687012, 0.26339277625083923, 0.3330245614051819, -0.06605792045593262, -0.06473434716463089, -0.07640936225652695, 0.28033027052879333, -0.06800146400928497, 0.2875715494155884, -0.09223300963640213, -0.21326355636119843, -0.057203374803066254, -0.13174107670783997, -0.3184925615787506, 0.13540104031562805, -0.2608075439929962, -0.04648958891630173, 0.058191921561956406, 0.13853245973587036, -0.18531934916973114, -0.19966484606266022, 0.23537880182266235, -0.009643486700952053, -0.16118383407592773, 0.130979984998703, 0.22348880767822266, 0.11412341147661209, -0.17014144361019135, 0.008984096348285675, 0.19496965408325195, -0.28475263714790344, 0.19639018177986145, 0.06101744994521141, -0.20415045320987701, 0.33923032879829407, -0.10499963164329529, 0.20440925657749176, 0.03427170217037201, 0.17781466245651245, -0.21196256577968597, 0.31753212213516235, 0.46555548906326294, -0.09165360033512115, 0.05782545357942581, 0.07910098135471344, 0.05070433020591736, -0.40072518587112427, 0.18673917651176453, -0.4734033942222595, -0.28558439016342163, -0.1491549164056778, 0.0366014689207077, -0.1271827220916748, 0.014197450131177902, -0.4138626754283905, 0.2678915560245514, 0.11482878029346466, 0.13253307342529297, 0.23751476407051086, 0.05657483637332916, -0.3937699496746063, -0.28001752495765686, 0.2161933034658432, 0.2000342756509781, -0.4700543284416199, 0.11660042405128479, -0.053898490965366364, -0.24849572777748108, -0.03628920763731003, 0.2947598397731781, -0.19321446120738983, 0.15620769560337067, -0.21288713812828064, 0.174045130610466, 0.13663867115974426, -0.4921635389328003, 0.20291167497634888, 0.3513151705265045, 0.3671301603317261, -0.11086376011371613, 0.04417138546705246, 0.15375012159347534, 0.04291357472538948, 0.010678733699023724, -0.2065611481666565, 0.21186430752277374, 0.02400932088494301, -0.16477717459201813, -0.0510588102042675, -0.44740280508995056, -0.05948525667190552, 0.2002524435520172, 0.09965234994888306, 0.10396308451890945, 0.13262328505516052, -0.005194108001887798, 0.09291702508926392, -0.07498040795326233, 0.30684614181518555, 0.015694094821810722, 0.15084615349769592, 0.13592839241027832, 0.13806553184986115, -0.03186606988310814, -0.4235839247703552, 0.16851362586021423, 0.06330902874469757, 0.07636597752571106, 0.07617266476154327, -0.3972407579421997, -0.017949499189853668, -0.09666262567043304, -0.022648345679044724, -0.3566534221172333, 0.019915618002414703, -0.06996329128742218, 0.11507678031921387, -0.19596955180168152, -0.5987904667854309, 0.32859301567077637, -0.1511591672897339, 0.02301456220448017, -0.42398297786712646, 0.14187300205230713, -0.13460353016853333, 0.1803494393825531, -0.028620580211281776, -0.040310755372047424, -0.22511202096939087, -0.3223881125450134, 0.2558923363685608, 0.3308746814727783, 0.09343916922807693, 0.07226038724184036, 0.15761223435401917, 0.5650752782821655, 0.13126224279403687, -0.230108842253685, 0.38807952404022217, -0.1910673975944519, 0.2906061112880707, -0.060173675417900085, -0.4578301012516022, 0.44754666090011597, -0.05503467842936516, 0.13084790110588074, 0.06384454667568207, -0.14453689754009247, 0.2165025770664215, -0.015415903180837631, -0.2617865800857544, -0.15156510472297668, -0.07501943409442902, 0.0945291668176651, 0.361197829246521, -0.0716758668422699, -0.37081289291381836, 0.036555252969264984, 0.2601165771484375, -0.1820850670337677, -0.015842482447624207, 0.24170830845832825, -0.11505598574876785, -0.3044467866420746, 0.16583187878131866, 0.06874781847000122, 0.49867475032806396, 0.039202623069286346, 0.0669749304652214, 0.2871895432472229, 0.08046194165945053, -0.16710874438285828, 0.13381825387477875, 0.02131546661257744, 0.2222682535648346, -0.003722764551639557, -0.21354039013385773, -0.03183623403310776, -0.12279924005270004, 0.09900057315826416, 0.022822203114628792, 0.07431436330080032, -0.22893355786800385, 0.25014474987983704, -0.15369805693626404, -0.22925835847854614, 0.022087663412094116, 0.08967989683151245, -0.3034621477127075, 0.004784397780895233, -0.16138313710689545, -0.05315709486603737, 0.0799914002418518, -0.1376599222421646, -0.03570611774921417, 0.4570161998271942, -0.14644238352775574, 0.14059682190418243, -0.3284785747528076, 0.07160931825637817, 0.07509099692106247, 0.07504518330097198, 0.3216892182826996, 0.13820002973079681, 0.4002685844898224, -0.37405428290367126, -0.1360500156879425, -0.36461299657821655, -0.15461072325706482, 0.40242382884025574, -0.24231429398059845, 0.39591699838638306, 0.34240293502807617, 0.22338560223579407, -0.11982958763837814, 0.23123086988925934, 0.15235395729541779, -0.2863825857639313, -0.16783711314201355, -0.3098675310611725, -0.09975558519363403, -0.2488849014043808, -0.3115009367465973, -0.005112349987030029, -0.39169424772262573, -0.14497996866703033, 0.2766249179840088, 0.30255126953125, 0.39178466796875, 0.28619837760925293, 0.16175487637519836, 0.3849443197250366, -0.2790234684944153, 0.000296643003821373, -0.36934778094291687, -0.6604458093643188, 0.2806848883628845, -0.24962370097637177, -0.3559563159942627, 0.268617182970047, 0.10826906561851501, 0.11107563972473145, 0.05241774767637253, -0.5647812485694885, -0.38039979338645935, 0.07351411879062653, -0.029881104826927185, 0.31731536984443665, 0.26447629928588867, 0.14114965498447418, -0.361651748418808, 0.021610772237181664, -0.25393980741500854, -0.2714333236217499, -0.07208404690027237, -0.006952211260795593, 0.14944660663604736, 0.3848905861377716, 0.26190894842147827, -0.06574459373950958, 0.49623382091522217, 0.10236373543739319, -0.006929624825716019, 0.4028248190879822, 0.04298781231045723, 0.4390590786933899, -0.5036187171936035, 0.18891438841819763, 0.3229767084121704, -0.22802895307540894, -0.0893525555729866, 0.27973097562789917, 0.15195232629776, -0.00028217863291502, -0.2032933533191681, 0.07419057190418243, -0.295133113861084, 0.08600418269634247, 0.1225498840212822, 0.3008064329624176, 0.03576589375734329, -0.08287183940410614, -0.21134844422340393, 0.0658426433801651, 0.0793483555316925, -0.19802166521549225, 0.5932247042655945, 0.39512205123901367, 0.04238220304250717, -0.4509612023830414, -0.049314964562654495, -0.47590386867523193, 0.20786021649837494, -0.22910462319850922, 0.036647044122219086, -0.062276411801576614, 0.1710507869720459, 0.35136163234710693, -0.2008666843175888, 0.3242229223251343, -0.4471004009246826, -0.3030695915222168, 0.11486257612705231, -0.29940420389175415, -0.19050070643424988, 0.08998653292655945, -0.17539873719215393, 0.1934821754693985, -0.04224632307887077, 0.4469906687736511, -0.26951292157173157, -0.33099985122680664, 0.21566709876060486, 0.04337224364280701, -0.20910783112049103, -0.1733766347169876, -0.023739060387015343, -0.3795314431190491, -0.46068888902664185, -0.30163469910621643, 0.10946545749902725, -0.3531164526939392, 0.07894108444452286, 0.10455839335918427, 0.07413971424102783, 0.2746051847934723, 0.07873943448066711, 0.03448586165904999, 0.08909769356250763, -0.030865704640746117, -0.11910030245780945, 0.2502971291542053, 0.2833511233329773, 0.10833840072154999, 0.6675300598144531, -0.2094116359949112, -0.17038410902023315, 0.16666126251220703, -0.06854519993066788, 0.30223408341407776, 0.29589638113975525, -0.04619221389293671, -0.05091700702905655, 0.2474735975265503, -0.03804229199886322, -0.5824605822563171, 0.0347113199532032, 0.2892964482307434, -0.13677392899990082, -0.49545180797576904, -0.5957934856414795, 0.6540586948394775, 0.07350108027458191, -0.050406623631715775, 0.08165869861841202, 0.21554557979106903, -0.3724493980407715, 0.1935533881187439, 0.5435108542442322, 1.0711708068847656, -0.2064470499753952, 0.4783610701560974, -0.03531641513109207, -0.026418257504701614, 0.3445594608783722, -0.16008217632770538, -0.2060883343219757, -0.2130374312400818, 0.05250883474946022, -0.2116367071866989, -0.043428320437669754, 0.2980109453201294, 0.07436162233352661, -0.25129756331443787, 0.07119163870811462, 0.046781182289123535, 0.19928567111492157, -0.2622814178466797, 0.3801472783088684, -0.07634784281253815, -0.23257149755954742, -0.07870880514383316, 0.15118195116519928, 0.1660849153995514, 0.08849126845598221, -0.08834343403577805, 0.051803939044475555, -0.12852956354618073, -0.010441387072205544, -0.2773342728614807, -0.4066331684589386, 0.09381073713302612, -0.21242305636405945, 0.04390927776694298, -0.04212091863155365, 0.1966654360294342, 0.06100698187947273, 0.48756444454193115, -0.011999636888504028, -0.5061598420143127, -0.09092006087303162, -0.16890621185302734, -0.16011834144592285, 0.0015376948285847902, -0.33819347620010376, 0.24137550592422485, -0.1594560146331787, 0.075615294277668, -0.08977323025465012, -0.005094137974083424, -0.28968921303749084, -0.11526376754045486, 0.07301263511180878, 0.022478550672531128, -0.11609601229429245, -0.3256324231624603, 0.04793344438076019, -0.1418658196926117, 0.01190764456987381, 0.071586474776268, 0.2889600992202759, 0.02829313464462757, 0.2428249716758728, -0.02214628830552101, -0.1877586543560028, -0.13269579410552979, 0.00516510009765625, 0.1976083517074585, -0.02160034514963627, -0.04153352975845337, 0.11552567780017853, -0.25695472955703735, -0.18793806433677673, 0.25553613901138306, 0.3657172620296478, -0.2913586497306824, 0.034341711550951004, 0.2049899399280548, -0.03859221190214157, -0.23239760100841522, 0.3837564289569855, 0.27561861276626587, -0.25395357608795166, -0.1566247195005417, -0.4555268883705139, -0.4556472897529602, 0.29151439666748047, 0.05500875413417816, 0.27226394414901733, 0.097475565969944, -0.13197281956672668, 0.3784187138080597, 0.14383140206336975, -0.26965248584747314, 0.20713624358177185, 0.19439302384853363, 0.22763288021087646, 0.306796669960022, 0.16154521703720093, 0.12732632458209991, -0.12193414568901062, -0.10211707651615143, 0.0005312375724315643, -0.5738059282302856, -0.1093946024775505, -0.08299219608306885, 0.24344003200531006, 0.21022486686706543, -0.6044512391090393, 0.2512056231498718, -0.18843460083007812, -0.4141257703304291, -0.17056088149547577, 0.05678753927350044, 0.3243681788444519, -0.13368400931358337, -0.16980057954788208, 0.3111155331134796, 0.035886455327272415, 0.10187940299510956, 0.012681439518928528, 0.1406434327363968, 0.28758445382118225, 0.10906465351581573, 0.005835574120283127, -0.15954729914665222, -0.07624640315771103, 0.2651561498641968, 0.2241550087928772, 0.30713436007499695, 0.03472628816962242, 0.45030486583709717, -0.0871046781539917, 0.299329936504364, -0.09958163648843765, 0.6628456115722656, 0.4894663989543915, -0.28992193937301636, 0.2158210426568985, 0.33993101119995117, 0.04766560718417168, -0.15153229236602783, -0.023707885295152664, 0.11338736116886139, 0.1913728564977646, -0.11480070650577545, 0.3257431089878082, 0.5763189792633057, 0.3541558086872101, -0.05522416532039642, -0.09207094460725784, 0.4977545440196991, -0.2361813336610794, -0.04511195793747902, -0.004150748252868652, -0.20093213021755219, 0.21444837749004364, 0.35680723190307617, 0.2959003746509552, 0.2447047233581543, 0.3949369192123413, -0.04496487230062485, 0.3169938027858734, 0.21171775460243225, 0.31113147735595703, 0.1836908757686615, -0.17371362447738647, 0.3419055938720703, 0.35211050510406494, -0.002910502254962921, 0.2933189570903778, 0.011504895985126495, 0.2548396587371826, -0.03777891397476196, 0.06494110077619553, -0.21810321509838104, 0.2974998950958252, 0.07369634509086609, -0.22343893349170685, -0.10657402873039246, -0.24857008457183838, 0.03517032414674759, 0.07818014919757843, -0.2575299143791199, -0.4391990303993225, 0.45280030369758606, -0.16138337552547455, 0.08142116665840149, -0.01172943040728569, 0.22998160123825073, -0.1840502917766571, -0.012600310146808624, -0.014715831726789474, 0.4757888913154602, -0.03885674476623535, 0.17514947056770325, 0.2862823009490967, 0.49843430519104004, 0.412489116191864, 0.2951301038265228, 0.04152370244264603, 0.11622747033834457, -0.21709369122982025, -0.024029087275266647, -0.10739969462156296, 0.29561975598335266, 0.10525669157505035, -0.26802194118499756, 0.3524371385574341, 0.0467497855424881, -0.01505750510841608, 0.16114653646945953, -0.24807612597942352, -0.09473231434822083, -0.2578945755958557, -0.06532620638608932, -0.03980370610952377, -0.05216699838638306, -0.019610557705163956, 0.08347953110933304, -0.46525031328201294, -0.15120214223861694, 0.40835532546043396, -0.18226076662540436, 0.2170267105102539, -0.01912485435605049, 0.04298912733793259, -0.12770384550094604, 0.5674456357955933, 0.17586660385131836, 0.22554200887680054, -0.187252014875412, -0.06541240215301514, -0.619135856628418, 0.017313361167907715, -0.1485692262649536, -0.02767718769609928, -0.03425519913434982, 0.19280098378658295, 0.11834243685007095, 0.38207995891571045, 0.1264030933380127, -0.16497570276260376, 0.0781744047999382, 0.16246111690998077, 0.06997166574001312, 0.028105197474360466, -0.13909517228603363, 0.5387628078460693, -0.12290690094232559, -0.0895441547036171, 0.3787785470485687, -0.03595172241330147, -0.11720667779445648, -0.23003999888896942, 0.2673724293708801, 0.1256117969751358, 0.05061700567603111, 0.4510185718536377, 0.011147387325763702, 0.1042972058057785, -0.23955315351486206, -0.07493393868207932, -0.2782076597213745, 0.09132262319326401, -0.3062451481819153, 0.14646291732788086, 0.039266373962163925, -0.07202088832855225, -0.5130125284194946, -0.1260090172290802, -0.10609210282564163, -0.04764547944068909, -0.2147374004125595, -0.13843294978141785, -0.2805696129798889, -0.022200649604201317, -0.3666781783103943, -0.13021820783615112, 0.07994549721479416, 0.19124174118041992, 0.020777154713869095, -0.32685548067092896, -0.42309463024139404, -0.09624465554952621, 0.5732994079589844, -0.08079154789447784, -0.09435272216796875, 0.05043022334575653, -0.2250855565071106, 0.08670587837696075, -0.16949810087680817, -0.8003810048103333, -0.02447500079870224, 0.279488205909729, 0.1144612655043602, -0.049496620893478394, 0.12134088575839996, 0.03760014474391937, -0.147103950381279, -0.3729898929595947, 0.3526129722595215, -0.0036817267537117004, -0.1638886034488678, -0.33889010548591614, -0.4334886074066162 ]
https://github.com/huggingface/datasets/issues/1987
wmt15 is broken
It's reachable for the viewer and me, so I suppose it was down at that moment?
While testing the hotfix, I tried a random other wmt release and found wmt15 to be broken: ``` python -c 'from datasets import load_dataset; load_dataset("wmt15", "de-en")' Downloading: 2.91kB [00:00, 818kB/s] Downloading: 3.02kB [00:00, 897kB/s] Downloading: 41.1kB [00:00, 19.1MB/s] Downloading and preparing dataset wmt15/de-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/stas/.cache/huggingface/datasets/wmt15/de-en/1.0.0/39ad5f9262a0910a8ad7028ad432731ad23fdf91f2cebbbf2ba4776b9859e87f... Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/builder.py", line 578, in download_and_prepare self._download_and_prepare( File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/builder.py", line 634, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/stas/.cache/huggingface/modules/datasets_modules/datasets/wmt15/39ad5f9262a0910a8ad7028ad432731ad23fdf91f2cebbbf2ba4776b9859e87f/wmt_utils.py", line 757, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 283, in download_and_extract return self.extract(self.download(url_or_urls)) File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 191, in download downloaded_path_or_paths = map_nested( File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 203, in map_nested mapped = [ File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 160, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 160, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 214, in _download return cached_path(url_or_filename, download_config=download_config) File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 274, in cached_path output_path = get_from_cache( File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 614, in get_from_cache raise FileNotFoundError("Couldn't find file at {}".format(url)) FileNotFoundError: Couldn't find file at https://huggingface.co/datasets/wmt/wmt15/resolve/main/training-parallel-nc-v10.tgz ```
16
wmt15 is broken While testing the hotfix, I tried a random other wmt release and found wmt15 to be broken: ``` python -c 'from datasets import load_dataset; load_dataset("wmt15", "de-en")' Downloading: 2.91kB [00:00, 818kB/s] Downloading: 3.02kB [00:00, 897kB/s] Downloading: 41.1kB [00:00, 19.1MB/s] Downloading and preparing dataset wmt15/de-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/stas/.cache/huggingface/datasets/wmt15/de-en/1.0.0/39ad5f9262a0910a8ad7028ad432731ad23fdf91f2cebbbf2ba4776b9859e87f... Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/builder.py", line 578, in download_and_prepare self._download_and_prepare( File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/builder.py", line 634, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/stas/.cache/huggingface/modules/datasets_modules/datasets/wmt15/39ad5f9262a0910a8ad7028ad432731ad23fdf91f2cebbbf2ba4776b9859e87f/wmt_utils.py", line 757, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 283, in download_and_extract return self.extract(self.download(url_or_urls)) File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 191, in download downloaded_path_or_paths = map_nested( File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 203, in map_nested mapped = [ File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 160, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 160, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 214, in _download return cached_path(url_or_filename, download_config=download_config) File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 274, in cached_path output_path = get_from_cache( File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 614, in get_from_cache raise FileNotFoundError("Couldn't find file at {}".format(url)) FileNotFoundError: Couldn't find file at https://huggingface.co/datasets/wmt/wmt15/resolve/main/training-parallel-nc-v10.tgz ``` It's reachable for the viewer and me, so I suppose it was down at that moment?
[ -0.6853346228599548, -0.29707038402557373, -0.03880586475133896, 0.24626073241233826, 0.36308908462524414, 0.15429624915122986, 0.2424854189157486, 0.21684566140174866, 0.30132487416267395, -0.00199340283870697, -0.022804591804742813, -0.09610413014888763, -0.22092191874980927, 0.20912215113639832, -0.07802523672580719, 0.2880145013332367, -0.15922710299491882, -0.03245757520198822, -0.5962750911712646, 0.24783451855182648, -0.15284572541713715, 0.12811952829360962, -0.16297847032546997, 0.015959128737449646, -0.3591010868549347, 0.09259217977523804, -0.08960161358118057, 0.1650625765323639, -0.21893984079360962, -0.16828998923301697, 0.38697755336761475, -0.06374727189540863, -0.2737676799297333, 0.31869038939476013, -0.00010912128345808014, 0.12825250625610352, 0.1453598588705063, -0.011793888173997402, -0.15641751885414124, -0.15688775479793549, -0.7026511430740356, -0.3176717460155487, -0.1130456030368805, 0.17468324303627014, 0.29480329155921936, -0.07594422996044159, -0.0742276981472969, -0.008093312382698059, 0.34629857540130615, 0.15748094022274017, 0.2739972770214081, 0.14632180333137512, 0.06571131944656372, -0.14453533291816711, 0.17118479311466217, 0.1545366644859314, -0.15065442025661469, 0.13261215388774872, 0.1604594588279724, 0.11836200952529907, 0.13523279130458832, 0.1928299218416214, 0.014366241171956062, 0.13279490172863007, 0.24313804507255554, -0.1521911770105362, 0.25506553053855896, 0.060861986130476, 0.23450595140457153, 0.4265193045139313, 0.15086904168128967, -0.05232872813940048, -0.04209902882575989, -0.015849120914936066, -0.35187628865242004, -0.47629815340042114, 0.007591851055622101, 0.36190441250801086, -0.045612458139657974, 0.25846853852272034, -0.023311413824558258, -0.0973968654870987, 0.2022305428981781, 0.0017022490501403809, -0.2303941696882248, 0.8920542001724243, -0.17689119279384613, -0.07781102508306503, -0.12436068058013916, -0.11482362449169159, 0.03203246742486954, 0.26742827892303467, -0.309388130903244, -0.25250452756881714, -0.07374982535839081, -0.02580077387392521, -0.007181212306022644, -0.15476897358894348, 0.2772085964679718, -0.15749265253543854, 0.032717265188694, 0.10931200534105301, 0.4526173770427704, -0.2163575291633606, 0.08722379058599472, -0.14602574706077576, -0.3087754249572754, -0.2021198570728302, 0.19545365869998932, 0.20224647223949432, -0.09477689862251282, -0.04660988599061966, 0.1686607301235199, -0.5205321907997131, -0.015737280249595642, 0.09014426171779633, 0.27877724170684814, -0.03227996081113815, -0.15548136830329895, -0.004144893027842045, 0.05271602421998978, -0.16831964254379272, -0.2369420826435089, 0.3395841121673584, -0.05848434194922447, 0.28698623180389404, -0.014324577525258064, -0.028005089610815048, -0.10559239983558655, -0.0023991549387574196, -0.19339732825756073, -0.13999028503894806, -0.06941868364810944, -0.03469100594520569, 0.16620413959026337, 0.10050041973590851, 0.25351041555404663, 0.10855420678853989, -0.22514604032039642, -0.19277510046958923, 0.12337200343608856, 0.1510060578584671, 0.3297329843044281, 0.34550926089286804, -0.14376595616340637, 0.38164958357810974, 0.21465329825878143, 0.11172561347484589, 0.04554925113916397, -0.0018641427159309387, -0.17416539788246155, -0.3020373284816742, -0.017054779455065727, 0.2978355586528778, 0.22230294346809387, 0.03180255740880966, 0.07457031309604645, 0.1877768337726593, -0.0745537057518959, 0.2630082368850708, 0.12352422624826431, -0.11913123726844788, -0.3578917682170868, -0.02086007036268711, 0.23321804404258728, 0.4444693326950073, -0.3803735077381134, -0.23459510505199432, 0.007213118951767683, 0.027561545372009277, -0.05982191115617752, -0.05286681279540062, -0.02573474869132042, 0.014390908181667328, -0.31602030992507935, -0.41579192876815796, 0.2031324952840805, -0.18629586696624756, -0.35463783144950867, 0.28929194808006287, -0.07363922894001007, -0.06315261870622635, 0.03310875594615936, -0.16385358572006226, -0.21925757825374603, -0.18275514245033264, -0.017709344625473022, 0.22571423649787903, -0.3665807545185089, -0.10018958151340485, -0.3923402428627014, -0.527472198009491, 0.344116747379303, -0.18327248096466064, 0.4856726825237274, -0.1736556887626648, 0.06917586922645569, 0.6082711219787598, 0.4511236846446991, 0.14129973948001862, -0.13915224373340607, 0.14062145352363586, -0.04109949246048927, -0.15281972289085388, -0.08436695486307144, -0.2911502420902252, -0.16859036684036255, 0.20591798424720764, -0.32293251156806946, -0.17660051584243774, 0.0801628977060318, 0.17137137055397034, -0.2847024202346802, 0.1482355147600174, -0.08587558567523956, -0.3333277702331543, 0.17092029750347137, 0.15720494091510773, -0.3839704990386963, -0.2483142763376236, 0.1355615109205246, 0.06566207110881805, -0.14756862819194794, 0.1720062792301178, -0.32127779722213745, -0.1685655415058136, -0.18469201028347015, -0.1982060670852661, 0.1802530735731125, -0.06118973344564438, 0.1549283266067505, -0.22134482860565186, -0.17944863438606262, 0.3658473491668701, 0.1999340057373047, 0.15677867829799652, -0.2048516571521759, 0.13850654661655426, 0.1675111949443817, -0.370721697807312, 0.07510888576507568, -0.016906779259443283, -0.018725937232375145, -0.09728670120239258, 0.025857511907815933, 0.1864439845085144, -0.5900583267211914, 0.17348003387451172, 0.19815759360790253, 0.12345340102910995, 0.07322043180465698, 0.08136478066444397, -0.03350680321455002, -0.25646841526031494, 0.16087912023067474, 0.14262783527374268, -0.3502248227596283, 0.0449087992310524, 0.21727105975151062, 0.09998206794261932, 0.3629685640335083, 0.30531609058380127, 0.2392159104347229, -0.24669459462165833, -0.2916313111782074, -0.11875424534082413, -0.1969740390777588, 0.033528972417116165, 0.40890657901763916, -0.0005167037015780807, 0.058157894760370255, 0.10122906416654587, 0.21728383004665375, -0.17516742646694183, 0.46646520495414734, 0.14800086617469788, -0.08234735578298569, 0.3303906321525574, 0.09172199666500092, -0.023504693061113358, -0.041696734726428986, 0.28177082538604736, -0.0375109501183033, -0.003412257879972458, -0.30789080262184143, -0.01268691010773182, -0.531610369682312, 0.05617576092481613, -0.33411705493927, -0.29125669598579407, -0.1087707132101059, -0.48057377338409424, -0.30208146572113037, -0.06331206858158112, 0.05011648312211037, 0.24501806497573853, -0.019224535673856735, -0.005628541111946106, 0.009217051789164543, 0.460618793964386, -0.10445746779441833, -0.05752352625131607, -0.026272453367710114, 0.12491753697395325, 0.28258728981018066, 0.32495975494384766, 0.25124475359916687, -0.1774459034204483, -0.2828137278556824, 0.12972693145275116, -0.27439820766448975, 0.1214510127902031, -0.04506129026412964, 0.47471877932548523, 0.4075610339641571, 0.07376658916473389, 0.05926089733839035, -0.1001361683011055, 0.3074079751968384, -0.1801583468914032, 0.14131216704845428, 0.08403515070676804, 0.05147973820567131, 0.02097204141318798, -0.019822994247078896, -0.2599348723888397, -0.20297783613204956, -0.2689879536628723, -0.11995093524456024, 0.10929299890995026, -0.15617360174655914, 0.38922396302223206, 0.004799400456249714, -0.010104541666805744, -0.019706834107637405, 0.09251923859119415, -0.24199867248535156, -0.1460903286933899, 0.24287858605384827, -0.18545286357402802, -0.28134313225746155, 0.32869869470596313, 0.14988890290260315, 0.12630154192447662, 0.0568515807390213, -0.4585639238357544, 0.30841004848480225, -0.13558104634284973, -0.058855921030044556, 0.12931528687477112, 0.11976543068885803, 0.14714732766151428, 0.006503409706056118, -0.12496108561754227, -0.142177551984787, -0.048881739377975464, -0.4137170910835266, -0.2331966757774353, 0.3202754855155945, -0.22644105553627014, 0.06817753612995148, 0.09313425421714783, 0.8657481074333191, -0.14304465055465698, 0.1247117668390274, 0.05829765275120735, -0.12630516290664673, 0.21008801460266113, -0.1021675392985344, -0.4956580400466919, 0.3797389566898346, -0.06314440071582794, 0.1919596642255783, 0.09241500496864319, 0.02434726431965828, 0.43829262256622314, -0.16077792644500732, 0.13740813732147217, 0.05677555501461029, -0.3069326877593994, 0.018465975299477577, -0.21698662638664246, 0.0738748237490654, 0.19136053323745728, 0.18468371033668518, -0.006065004505217075, -0.05260717496275902, 0.21859735250473022, 0.19433093070983887, -0.06509798020124435, -0.02683310955762863, 0.5553712248802185, 0.17438608407974243, -0.3252415060997009, -0.03157511353492737, -0.007578211836516857, 0.40711745619773865, -0.0949406623840332, -0.08885936439037323, -0.3369334936141968, -0.15882374346256256, 0.6983109712600708, -0.19533833861351013, 0.21199031174182892, 0.18286831676959991, -0.1363142877817154, -0.4159052073955536, -0.22055219113826752, -0.2515445351600647, -0.46306508779525757, -0.009615182876586914, 0.07102903723716736, 0.09762769192457199, -0.11738070845603943, 0.27870097756385803, 0.23716384172439575, -0.33051079511642456, 0.2898443043231964, -0.2844240367412567, -0.2000294327735901, -0.021302834153175354, -0.3547980785369873, 0.11218998581171036, -0.1683349609375, 0.041578665375709534, 0.0011780783534049988, -0.21149420738220215, -0.12247610092163086, 0.06953023374080658, -0.04319479316473007, 0.052985526621341705, -0.0009902868187054992, 0.2787388861179352, -0.08222229778766632, 0.6021028757095337, 0.06375858187675476, 0.3975296914577484, 0.05652150884270668, -0.2448883056640625, 0.20667603611946106, -0.2168244570493698, 0.1856403946876526, 0.32697784900665283, -0.21418985724449158, -0.04752796143293381, 0.035439133644104004, 0.15340349078178406, -0.42858654260635376, 0.2282271832227707, 0.5213337540626526, 0.04277806356549263, -0.1931886374950409, -0.19295142590999603, 0.12113870680332184, 0.061407092958688736, 0.037673771381378174, 0.3105391263961792, -0.12584826350212097, -0.3465443253517151, 0.08555876463651657, 0.24702322483062744, 0.6745328307151794, 0.13473889231681824, -0.05807328596711159, 0.04786760360002518, -0.41710466146469116, 0.42935115098953247, 0.22556857764720917, -0.05849453806877136, -0.04149676859378815, -0.5154621601104736, -0.02976393513381481, -0.20532803237438202, 0.09625975787639618, 0.008320000022649765, -0.21336153149604797, 0.1829247772693634, -0.13827946782112122, -0.19331617653369904, -0.07672257721424103, 0.09971395134925842, -0.39529669284820557, -0.08321993052959442, 0.0674428641796112, 0.19896133244037628, -0.11376124620437622, 0.07357808947563171, -0.3755570650100708, 0.1871156543493271, 0.2745499610900879, 0.06540137529373169, -0.669476330280304, -0.06543739885091782, -0.23466350138187408, 0.013740401715040207, 0.08375106751918793, -0.12367282807826996, 0.2814875841140747, -0.22729238867759705, 0.21961434185504913, 0.3676469326019287, -0.16770736873149872, 0.31232380867004395, -0.5145136713981628, 0.04936791583895683, 0.043110139667987823, 0.24584978818893433, 0.3262689411640167, -0.045092131942510605, -0.03854164481163025, -0.1445520520210266, 0.02697926014661789, 0.20566390454769135, -0.14481720328330994, -0.22752507030963898, 0.27742916345596313, -0.3383096158504486, -0.038477737456560135, 0.006970815360546112, 0.04581378772854805, -0.2876972556114197, 0.17116175591945648, -0.0475129708647728, 0.00009666895493865013, 0.349858820438385, -0.08655302226543427, -0.13937489688396454, -0.1588316112756729, 0.2467634081840515, -0.21900609135627747, 0.015630535781383514, 0.30133122205734253, 0.5076701045036316, -0.0277431458234787, -0.25799375772476196, 0.43537622690200806, 0.2010120451450348, -0.3662746548652649, 0.2136448472738266, -0.05964014306664467, 0.10658437013626099, 0.18497100472450256, 0.7023802995681763, 0.34676849842071533, -0.060019783675670624, -0.035280488431453705, -0.3392001986503601, -0.15905143320560455, 0.02567077800631523, -0.015669815242290497, 0.10333433747291565, -0.32524654269218445, 0.21785752475261688, -0.11559183895587921, 0.3449285924434662, -0.3274587392807007, 0.1763417273759842, 0.1190614327788353, -0.20704548060894012, -0.46222639083862305, -0.15849453210830688, -0.008952475152909756, -0.024981997907161713, 0.13573263585567474, 0.26296788454055786, -0.25462889671325684, -0.2689242959022522, -0.34944096207618713, 0.08072525262832642, 0.004808558151125908, -0.35588639974594116, 0.09346526861190796, 0.10591636598110199, -0.0529048852622509, -0.11620374768972397, 0.2468029260635376, 0.2352851927280426, -0.008792579174041748, 0.24779795110225677, 0.08825268596410751, 0.08414638042449951, -0.297704815864563, 0.002694498747587204, 0.24574580788612366, 0.3830374479293823, 0.17963576316833496, 0.11171343177556992, 0.1825381964445114, 0.000141046941280365, -0.21087926626205444, 0.10640047490596771, 0.04864325746893883, 0.060483939945697784, 0.6259849071502686, -0.4028777480125427, -0.16167333722114563, 0.029557490721344948, 0.40388426184654236, 0.46911123394966125, 0.05947890877723694, 0.14869315922260284, -0.0014912309125065804, 0.2757067084312439, -0.36961445212364197, 0.09274789690971375, -0.04031303897500038, 0.3096785545349121, 0.07550907135009766, 0.037241131067276, 0.0007724985480308533, -0.3666149973869324, -0.21179945766925812, 0.2064397931098938, 0.25434473156929016, -0.30114299058914185, 0.03597554564476013, 0.46280115842819214, 0.042497579008340836, 0.08167588710784912, 0.31858813762664795, 0.27760544419288635, 0.30975961685180664, 0.3427809476852417, 0.2136756181716919, 0.41119086742401123, -0.19107544422149658, 0.2344541847705841, 0.14951109886169434, -0.3245762884616852, 0.13662928342819214, 0.2327544391155243, -0.18008124828338623, 0.19777369499206543, -0.049880534410476685, 0.05187772959470749, -0.2587786018848419, -0.2937265634536743, -0.01690766215324402, -0.014145024120807648, 0.02394666150212288, -0.2614904046058655, -0.07087400555610657, 0.025010064244270325, -0.27185943722724915, 0.15927621722221375, 0.0827430784702301, -0.11511820554733276, -0.005373567342758179, 0.2761375904083252, -0.1858036071062088, -0.15667465329170227, -0.14088132977485657, -0.1307770311832428, 0.04596760869026184, -0.3002862334251404, 0.06298647075891495, 0.21573418378829956, -0.013230115175247192, 0.0013036951422691345, 0.3979824483394623, 0.24706007540225983, 0.032059960067272186, -0.28651630878448486, 0.20738185942173004, 0.11715307831764221, -0.09395632147789001, -0.1823619157075882, 0.3294694721698761, 0.04215981811285019, 0.2035927176475525, 0.10028040409088135, 0.2241791933774948, -0.22740492224693298, 0.044656798243522644, 0.16847816109657288, -0.04838469251990318, -0.18674136698246002, -0.012132510542869568, -0.1304919421672821, 0.021812550723552704, -0.060100167989730835, 0.21777665615081787, -0.28199121356010437, 0.13619543612003326, 0.4312705397605896, -0.08755504339933395, 0.3520638346672058, 0.07980158179998398, 0.11318188905715942, 0.09316357970237732, 0.4699309766292572, 0.3263107240200043, -0.0018175244331359863, -0.1799159049987793, -0.049813412129879, -0.43555596470832825, 0.005152024328708649, 0.27870801091194153, 0.21777188777923584, 0.020022431388497353, -0.027653280645608902, 0.2481432557106018, 0.10832547396421432, 0.18694201111793518, 0.13823936879634857, -0.1001126766204834, 0.06754022091627121, -0.1699223518371582, -0.33699122071266174, -0.08241195976734161, 0.1328544318675995, -0.09921002388000488, -0.09352806210517883, 0.09420844912528992, -0.25333407521247864, 0.039632782340049744, -0.2564848065376282, -0.4310186505317688, 0.07928258180618286, 0.1946449875831604, -0.07122381031513214, 0.2937232553958893, -0.10426215827465057, -0.19627243280410767, -0.17391519248485565, -0.4885261058807373, -0.33720821142196655, -0.01944393292069435, 0.1877155601978302, 0.03291551396250725, 0.12601599097251892, 0.02299671061336994, 0.14060445129871368, -0.3782918155193329, 0.18023750185966492, -0.05749201402068138, 0.1197548657655716, -0.26962894201278687, 0.20328545570373535, -0.11726528406143188, -0.044768646359443665, 0.3163084387779236, 0.3671455681324005, -0.1994989812374115, 0.09828012436628342, -0.14042720198631287, -0.12321397662162781, 0.20030635595321655, 0.1434875726699829, -0.30060240626335144, -0.3658312261104584, 0.22613832354545593, -0.5054717659950256, 0.19222402572631836, -0.3732544779777527, 0.0640420988202095, 0.22250382602214813, -0.03646944463253021, -0.26052287220954895, 0.07227420806884766, 0.3118112087249756, 0.028084319084882736, -0.10245053470134735, 0.24986426532268524, 0.26458337903022766, -0.11513371020555496, -0.05876468867063522, 0.20105978846549988 ]
https://github.com/huggingface/datasets/issues/1983
The size of CoNLL-2003 is not consistant with the official release.
Hi, if you inspect the raw data, you can find there are 946 occurrences of `-DOCSTART- -X- -X- O` in the train split and `14041 + 946 = 14987`, which is exactly the number of sentences the authors report. `-DOCSTART-` is a special line that acts as a boundary between two different documents and is filtered out in our implementation. @lhoestq What do you think about including these lines? ([Link](https://github.com/flairNLP/flair/issues/1097) to a similar issue in the flairNLP repo)
Thanks for the dataset sharing! But when I use conll-2003, I meet some questions. The statistics of conll-2003 in this repo is : \#train 14041 \#dev 3250 \#test 3453 While the official statistics is: \#train 14987 \#dev 3466 \#test 3684 Wish for your reply~
78
The size of CoNLL-2003 is not consistant with the official release. Thanks for the dataset sharing! But when I use conll-2003, I meet some questions. The statistics of conll-2003 in this repo is : \#train 14041 \#dev 3250 \#test 3453 While the official statistics is: \#train 14987 \#dev 3466 \#test 3684 Wish for your reply~ Hi, if you inspect the raw data, you can find there are 946 occurrences of `-DOCSTART- -X- -X- O` in the train split and `14041 + 946 = 14987`, which is exactly the number of sentences the authors report. `-DOCSTART-` is a special line that acts as a boundary between two different documents and is filtered out in our implementation. @lhoestq What do you think about including these lines? ([Link](https://github.com/flairNLP/flair/issues/1097) to a similar issue in the flairNLP repo)
[ 0.16607047617435455, -0.3441517949104309, -0.026520023122429848, 0.37181973457336426, -0.37470102310180664, -0.0020881593227386475, 0.06137149780988693, -0.07089865207672119, -0.9394962191581726, -0.006283782422542572, 0.12523554265499115, 0.15680807828903198, 0.08135810494422913, 0.0008894260972738266, -0.018459033221006393, 0.029295533895492554, 0.16485150158405304, -0.04007953405380249, 0.2795078158378601, -0.1671275496482849, -0.05828530341386795, 0.4750358462333679, -0.530370831489563, 0.02315157651901245, -0.821160078048706, 0.06900733709335327, -0.10389930754899979, 0.16458487510681152, -0.36793094873428345, -0.3551759123802185, 0.2766619324684143, 0.07233399897813797, 0.12486238777637482, 0.19319280982017517, -0.00012106748181395233, -0.43599313497543335, 0.22240616381168365, -0.09818238765001297, -0.19736070930957794, 0.21454182267189026, -0.1930089294910431, -0.42950573563575745, -0.03821959346532822, -0.1875087022781372, 0.21448689699172974, 0.43106216192245483, -0.545249879360199, 0.26144516468048096, 0.376606285572052, 0.3219399154186249, 0.10628651082515717, -0.05998733267188072, 0.1251412332057953, -0.060983769595623016, 0.5427100658416748, 0.04434850066900253, -0.05328752100467682, 0.2690054774284363, 0.18204790353775024, 0.22107550501823425, -0.06485464423894882, 0.3887675106525421, 0.08200567215681076, -0.2496803253889084, -0.0430985689163208, -0.028093941509723663, -0.21996912360191345, -0.22189494967460632, 0.0012414753437042236, 0.40982913970947266, 0.4609610140323639, -0.21670004725456238, -0.30234095454216003, -0.6893437504768372, 0.27309632301330566, -0.22582098841667175, 0.10935913771390915, -0.007353993132710457, -0.003954366780817509, -0.034964289516210556, -0.10261443257331848, -0.3313957750797272, -0.2891080975532532, -0.11530493199825287, -0.28885143995285034, 0.36198315024375916, -0.09821073710918427, 0.042025819420814514, 0.1299823373556137, 0.21710841357707977, 0.6810005903244019, -0.0352974496781826, -0.03743676468729973, -0.059974316507577896, 0.021308481693267822, -0.2826967239379883, 0.07698134332895279, -0.08763144165277481, 0.4273092448711395, -0.3164517879486084, -0.31126242876052856, -0.4441929757595062, 0.04227747395634651, -0.051705196499824524, 0.34669849276542664, 0.07965788245201111, 0.18349486589431763, 0.429929256439209, 0.08451047539710999, -0.04418932646512985, 0.14123572409152985, 0.11425396054983139, -0.3085029423236847, -0.10484454780817032, -0.4565204679965973, 0.08638444542884827, -0.41637927293777466, -0.41306960582733154, -0.1330946534872055, 0.17241425812244415, -0.1113019660115242, -0.2724636197090149, 0.0154791921377182, 0.09700129926204681, 0.24530364573001862, 0.5682411789894104, -0.006998661905527115, -0.15390819311141968, -0.09623553603887558, -0.27546000480651855, -0.048760704696178436, -0.1259208470582962, -0.08377915620803833, -0.040744975209236145, -0.04313648119568825, -0.4689652919769287, 0.14229024946689606, -0.036728259176015854, 0.3424779176712036, 0.10441002249717712, 0.0004996750503778458, -0.19081786274909973, 0.11239390075206757, -0.07600225508213043, -0.22809426486492157, -0.04319273680448532, 0.018265821039676666, 0.42657291889190674, -0.2598368227481842, 0.1983310580253601, -0.08259711414575577, -0.32484278082847595, -0.2638595700263977, 0.02261611819267273, -0.25616538524627686, -0.16437922418117523, 0.6193920373916626, 0.05231466889381409, 0.28747251629829407, -0.10288426280021667, 0.23427855968475342, -0.21832935512065887, -0.1448463797569275, -0.07572776824235916, 0.24447855353355408, 0.15507416427135468, -0.2432815432548523, -0.033936548978090286, 0.053597740828990936, -0.017870094627141953, 0.015810184180736542, 0.23357422649860382, -0.14548295736312866, 0.4814389646053314, -0.0997476577758789, -0.15828698873519897, 0.31443876028060913, -0.5198953747749329, -0.13040347397327423, 0.19596335291862488, 0.15127551555633545, -0.010327253490686417, -0.12460178881883621, -0.28707095980644226, 0.5772898197174072, -0.004810971207916737, 0.0324351042509079, 0.03672202304005623, 0.022380055859684944, 0.005999011918902397, -0.32432013750076294, -0.16828924417495728, -0.4615069627761841, -0.31195107102394104, -0.03923353925347328, -0.41527509689331055, -0.35702791810035706, -0.13256137073040009, 0.4206112325191498, 0.1739860326051712, -0.0713803768157959, 0.10502371937036514, 0.20620489120483398, 0.27798789739608765, 0.19167816638946533, 0.31332364678382874, -0.10010012239217758, -0.01940336637198925, 0.37023860216140747, 0.14408960938453674, 0.5833434462547302, -0.20241031050682068, -0.3424493670463562, 0.01809934712946415, 0.3618111312389374, -0.2660242021083832, 0.04643245041370392, 0.07845670729875565, 0.24907493591308594, 0.10457360744476318, -0.22303487360477448, 0.22943386435508728, -0.06860607862472534, 0.08295917510986328, -0.022883396595716476, -0.1679256558418274, 0.007626131176948547, -0.05146431177854538, 0.07654067873954773, 0.3759826719760895, 0.050176698714494705, 0.22134578227996826, -0.043064042925834656, 0.15606027841567993, 0.3733200132846832, 0.02591107040643692, 0.15937680006027222, -0.15034089982509613, 0.17129603028297424, 0.07133769989013672, 0.003965487703680992, -0.37621036171913147, -0.06715953350067139, 0.15557298064231873, -0.11901561170816422, 0.20180635154247284, 0.3937223553657532, -0.08496493846178055, 0.12510719895362854, -0.15240442752838135, -0.1032814085483551, -0.05049844831228256, -0.043563295155763626, -0.44408178329467773, -0.0775446742773056, 0.20971795916557312, 0.04346448555588722, 0.11478074640035629, -0.1278451383113861, 0.07944504916667938, 0.2715917229652405, -0.04066713899374008, -0.3521396815776825, 0.349736750125885, -0.36107122898101807, -0.04318524897098541, 0.16863206028938293, 0.15749801695346832, 0.1628728210926056, 0.27077430486679077, 0.4084942638874054, 0.013615470379590988, -0.12619538605213165, -0.2134842723608017, 0.271588534116745, 0.2755287289619446, 0.26986175775527954, 0.31304582953453064, 0.12875351309776306, 0.20439815521240234, -0.05767451599240303, -0.05223289132118225, 0.004960659891366959, -0.1004544347524643, -0.2025468349456787, -0.14761514961719513, 0.08831151574850082, -0.3175346553325653, -0.019139505922794342, -0.2643449604511261, 0.13518808782100677, -0.26328763365745544, 0.20454886555671692, -0.2654724717140198, -0.1398565173149109, -0.09684741497039795, -0.4157765805721283, 0.3907618224620819, -0.23953016102313995, 0.27841201424598694, 0.08633546531200409, -0.23837320506572723, -0.40466952323913574, 0.0646500438451767, -0.18994221091270447, -0.1168670505285263, 0.3373417854309082, -0.36702606081962585, 0.10299569368362427, 0.1408560574054718, -0.333695650100708, 0.48160800337791443, -0.16561146080493927, -0.16459566354751587, 0.20191740989685059, -0.3982415795326233, -0.08839008957147598, 0.15490809082984924, -0.18833982944488525, -0.08651816099882126, -0.010428296402096748, -0.20352056622505188, -0.10642105340957642, 0.10763252526521683, -0.11341582238674164, -0.288796603679657, 0.09650634974241257, -0.249545618891716, 0.02978881075978279, -0.1858464777469635, 0.06343284249305725, -0.3321945071220398, -0.09462418407201767, 0.1867460459470749, -0.3426504135131836, 0.28713488578796387, -0.17422153055667877, -0.33610647916793823, 0.061367880553007126, -0.11694907397031784, -0.11239942908287048, 0.051932718604803085, -0.18715313076972961, -0.11768075823783875, -0.2642970681190491, -0.5564435720443726, 0.34575241804122925, -0.06873489171266556, 0.133045494556427, -0.259146124124527, 0.11609436571598053, 0.309104859828949, 0.025471169501543045, 0.02537929080426693, -0.3204876482486725, 0.03291420638561249, -0.07022766023874283, -0.06103312969207764, 0.5930924415588379, -0.22806647419929504, 0.07297883927822113, 0.15650726854801178, 0.12258273363113403, 0.42535316944122314, 0.059368640184402466, -0.04813738167285919, 0.018266957253217697, 0.16441591084003448, -0.1071259006857872, 0.1683374047279358, 0.20772138237953186, -0.0976901650428772, -0.15633486211299896, 0.4705616235733032, 0.36462077498435974, -0.005498627200722694, -0.13887807726860046, 0.18332479894161224, -0.029337270185351372, -0.2661375403404236, 0.17399020493030548, 0.2995584011077881, 0.38801002502441406, -0.15468436479568481, 0.166090726852417, -0.15125226974487305, 0.07501843571662903, -0.23211853206157684, -0.17020003497600555, 0.3782019317150116, -0.22228498756885529, 0.3915695250034332, 0.3863413631916046, -0.3913906514644623, 0.28226324915885925, 0.32913121581077576, -0.08320406079292297, 0.020157214254140854, -0.2512384355068207, 0.05999821051955223, 0.10806293040513992, 0.3921409845352173, -0.224924236536026, -0.4162837266921997, 0.44021329283714294, 0.18641383945941925, -0.36695677042007446, -0.0029855258762836456, -0.42167481780052185, -0.6974325180053711, 1.1738078594207764, 0.2573468089103699, -0.1538088321685791, 0.006469427607953548, 0.3078433871269226, 0.07863951474428177, 0.013956200331449509, -0.20597484707832336, -0.17019720375537872, -0.13169509172439575, -0.2217644304037094, 0.058170340955257416, 0.05216260254383087, -0.045202963054180145, -0.2391822785139084, -0.14561128616333008, 0.4471743106842041, -0.17333203554153442, -0.05078473687171936, 0.3019067943096161, 0.2329542338848114, 0.03599110618233681, 0.1739751547574997, 0.19019630551338196, 0.23997539281845093, 0.21200506389141083, 0.27771031856536865, -0.0766569972038269, -0.429961621761322, 0.1638706922531128, -0.20159967243671417, 0.5481740832328796, 0.4593530297279358, 0.0066291335970163345, -0.09797989577054977, -0.5291199684143066, -0.02797267585992813, 0.30446919798851013, 0.16935276985168457, 0.24010658264160156, -0.05303084850311279, -0.3426636755466461, -0.09143010526895523, 0.10913317650556564, 0.19105137884616852, -0.3062942326068878, -0.005337893962860107, -0.25501638650894165, -0.09138911962509155, 0.0554535835981369, 0.20866554975509644, 0.9420130848884583, 0.2601422071456909, 0.19265367090702057, 0.137691468000412, -0.40851324796676636, 0.6010929346084595, 0.08202272653579712, 0.11725538969039917, -0.26836079359054565, 0.12795390188694, 0.06766249239444733, -0.19924354553222656, -0.12373530119657516, -0.27354657649993896, -0.2983318269252777, -0.15898093581199646, -0.31409069895744324, -0.17261365056037903, -0.10101442784070969, 0.3583068549633026, -0.16427621245384216, -0.08458220958709717, 0.48123684525489807, 0.039921633899211884, 0.3590170741081238, 0.00603732094168663, -0.12389634549617767, 0.03943561017513275, -0.3739423453807831, -0.09885881841182709, -0.5869011878967285, -0.24768808484077454, -0.017537284642457962, -0.02159438654780388, -0.13268910348415375, -0.6107324361801147, 0.04733387008309364, 0.284153014421463, 0.2572382986545563, -0.00015914440155029297, -0.12712454795837402, 0.13643385469913483, 0.3836011290550232, -0.0967625230550766, 0.35677167773246765, 0.14926116168498993, 0.03688770532608032, -0.18864718079566956, -0.2704181373119354, -0.05270971357822418, -0.0406092144548893, 0.010483793914318085, 0.1263318657875061, -0.012773893773555756, 0.21844764053821564, -0.525165319442749, 0.18231795728206635, 0.29482126235961914, 0.02133084088563919, -0.20413559675216675, 0.11767831444740295, 0.10391680896282196, -0.11028189957141876, 0.011642903089523315, -0.3245986998081207, -0.3441005349159241, -0.10302169620990753, -0.1764567494392395, 0.20903274416923523, -0.03252982720732689, -0.06588084995746613, 0.263450562953949, -0.16134968400001526, -0.039363570511341095, 0.40477755665779114, -0.4816961884498596, -0.17575469613075256, 0.04674651101231575, 0.38988250494003296, -0.48736709356307983, -0.20789895951747894, 0.7181902527809143, 0.28398531675338745, 0.12103177607059479, -0.24420613050460815, 0.07768566906452179, -0.21901746094226837, 0.2853500247001648, -0.1448168009519577, 0.2672012746334076, -0.17149290442466736, 0.1936889886856079, 0.17945699393749237, -0.2558460235595703, -0.2345598191022873, -0.05176563560962677, -0.06454528123140335, 0.05571488291025162, -0.08141352981328964, 0.0005703642964363098, -0.16191139817237854, -0.08690199255943298, -0.046403951942920685, 0.2907567024230957, 0.14834028482437134, -0.10663320124149323, -0.045483335852622986, 0.19944022595882416, 0.05683944746851921, -0.17142155766487122, -0.061639394611120224, 0.21247534453868866, -0.1362294703722, -0.137107715010643, 0.12863881886005402, -0.029047511518001556, 0.16672948002815247, 0.3370332717895508, -0.6418235898017883, 0.2252516746520996, 0.09848290681838989, 0.42768338322639465, 0.2031528651714325, 0.33477121591567993, 0.15897735953330994, 0.2815193831920624, -0.13676202297210693, 0.013174451887607574, 0.22457821667194366, 0.08372011035680771, -0.13950969278812408, 0.16328489780426025, -0.011857517063617706, 0.2165135145187378, 0.08821849524974823, 0.16160929203033447, -0.019505733624100685, 0.38196927309036255, -0.10949431359767914, -0.07609467208385468, 0.2928074896335602, 0.10944105684757233, -0.1039118617773056, 0.07779356837272644, -0.3227868974208832, 0.10222573578357697, -0.11770762503147125, 0.10590426623821259, 0.13384895026683807, -0.07177447527647018, -0.28603827953338623, -0.09571873396635056, 0.22872091829776764, 0.43959474563598633, 0.045202817767858505, 0.2318577617406845, -0.20782288908958435, 0.31697484850883484, -0.15387260913848877, -0.010629914700984955, 0.07696336507797241, -0.38036882877349854, 0.3780267536640167, -0.1478177011013031, 0.07938817143440247, 0.43931129574775696, 0.4490014910697937, -0.12169818580150604, 0.5643336772918701, 0.09375613182783127, 0.16626456379890442, 0.07778967916965485, -0.17478829622268677, 0.07629392296075821, 0.33940503001213074, 0.1429418921470642, -0.5593450665473938, 0.011986944824457169, 0.00983714871108532, 0.050772774964571, -0.09076395630836487, 0.07334429770708084, 0.3212532699108124, 0.08121463656425476, -0.10457086563110352, -0.04042068123817444, -0.003482922911643982, 0.08480830490589142, -0.14082849025726318, -0.08253884315490723, 0.2572430670261383, -0.14289182424545288, 0.2666390836238861, -0.2509080767631531, 0.28296786546707153, -0.13347281515598297, 0.26782822608947754, -0.0321187861263752, 0.3751234710216522, 0.3795357346534729, 0.0595998615026474, 0.2736058831214905, -0.12823985517024994, -0.042558930814266205, 0.18633753061294556, -0.007686859928071499, 0.24949650466442108, 0.38913002610206604, 0.17005757987499237, 0.2802571952342987, 0.05829948931932449, -0.02928944304585457, -0.12072448432445526, -0.030432824045419693, -0.049409981817007065, -0.06762556731700897, -0.10229700058698654, -0.06966488808393478, -0.20045751333236694, 0.18514955043792725, 0.16588543355464935, -0.308684766292572, 0.4326111972332001, 0.23650291562080383, -0.0868009403347969, -0.01615752838551998, 0.1564304679632187, 0.010688066482543945, -0.10974735021591187, 0.050485990941524506, 0.2927232086658478, 0.304137647151947, 0.13100966811180115, -0.5701605081558228, -0.12233255803585052, 0.12720270454883575, -0.1752164214849472, -0.5535441040992737, 0.14710749685764313, 0.07043035328388214, 0.10530176758766174, 0.18674108386039734, 0.13356207311153412, 0.032481156289577484, -0.1700441539287567, 0.05899455025792122, -0.09152628481388092, -0.10227453708648682, 0.3059030771255493, -0.07940752059221268, 0.015319574624300003, 0.10565932840108871, 0.051568400114774704, 0.07108418643474579, -0.11111420392990112, 0.08735749125480652, -0.2075471431016922, 0.23924189805984497, 0.2646925449371338, 0.2493785172700882, 0.3220407962799072, 0.6761341094970703, -0.1604975461959839, 0.09593826532363892, 0.0055757127702236176, -0.05480266734957695, -0.02384836971759796, 0.1650027334690094, -0.07995857298374176, -0.3598211705684662, -0.3013976216316223, 0.08759205043315887, 0.3000229001045227, 0.3268483877182007, 0.31174373626708984, -0.16945241391658783, -0.3693896234035492, -0.325494647026062, 0.0781044289469719, -0.2393304705619812, 0.10115882009267807, 0.37073493003845215, -0.17343901097774506, -0.2449706494808197, 0.034040942788124084, -0.10158959031105042, 0.434627890586853, -0.13820692896842957, 0.112789586186409, -0.3447735011577606, 0.1693846881389618, 0.6491167545318604, -0.1134442612528801, -0.6402670741081238, -0.26782289147377014, 0.348784863948822, 0.24953743815422058, -0.2667504847049713, 0.14107641577720642, 0.28269073367118835, -0.18790662288665771, -0.011999845504760742, 0.8816466331481934, -0.17402130365371704, -0.24882826209068298, -0.20546969771385193, -0.05596591532230377 ]
https://github.com/huggingface/datasets/issues/1983
The size of CoNLL-2003 is not consistant with the official release.
We should mention in the Conll2003 dataset card that these lines have been removed indeed. If some users are interested in using these lines (maybe to recombine documents ?) then we can add a parameter to the conll2003 dataset to include them. But IMO the default config should stay the current one (without the `-DOCSTART-` stuff), so that you can directly train NER models without additional preprocessing. Let me know what you think
Thanks for the dataset sharing! But when I use conll-2003, I meet some questions. The statistics of conll-2003 in this repo is : \#train 14041 \#dev 3250 \#test 3453 While the official statistics is: \#train 14987 \#dev 3466 \#test 3684 Wish for your reply~
73
The size of CoNLL-2003 is not consistant with the official release. Thanks for the dataset sharing! But when I use conll-2003, I meet some questions. The statistics of conll-2003 in this repo is : \#train 14041 \#dev 3250 \#test 3453 While the official statistics is: \#train 14987 \#dev 3466 \#test 3684 Wish for your reply~ We should mention in the Conll2003 dataset card that these lines have been removed indeed. If some users are interested in using these lines (maybe to recombine documents ?) then we can add a parameter to the conll2003 dataset to include them. But IMO the default config should stay the current one (without the `-DOCSTART-` stuff), so that you can directly train NER models without additional preprocessing. Let me know what you think
[ -0.07905159890651703, 0.005305841565132141, 0.022709064185619354, 0.17673137784004211, -0.17504680156707764, 0.009193971753120422, 0.19263379275798798, 0.15998394787311554, -1.0088422298431396, 0.09197156131267548, 0.11612187325954437, 0.03975987434387207, -0.016936663538217545, 0.11876215785741806, -0.061569035053253174, 0.30978256464004517, 0.07875282317399979, 0.06001148372888565, 0.14791831374168396, -0.11915585398674011, -0.30825090408325195, 0.3580765426158905, -0.3310668468475342, 0.040578119456768036, -0.5341423153877258, 0.16513124108314514, -0.09848064929246902, 0.18783625960350037, -0.4342067241668701, -0.4354427456855774, 0.3668314218521118, 0.1122712641954422, 0.41307923197746277, 0.01641734689474106, -0.00011188624921487644, -0.11925414204597473, 0.25202181935310364, -0.1412220150232315, -0.07669363915920258, 0.16946324706077576, -0.05020930618047714, -0.273806631565094, 0.014766018837690353, -0.027316175401210785, -0.05033503472805023, 0.2545052170753479, -0.10911515355110168, 0.2557539939880371, 0.073772132396698, 0.3681809604167938, 0.21397696435451508, 0.03844798356294632, 0.17021878063678741, -0.051483020186424255, 0.35415107011795044, 0.21729032695293427, -0.05252224951982498, 0.3811746835708618, -0.19514921307563782, 0.10401111096143723, -0.2099631130695343, 0.26880788803100586, 0.18733157217502594, -0.22681041061878204, 0.3166728615760803, 0.15400028228759766, 0.25696539878845215, -0.2214955985546112, -0.212185800075531, 0.3500756621360779, 0.29034659266471863, -0.2142491638660431, -0.1941874772310257, -0.22967645525932312, 0.2725410759449005, -0.4574778378009796, 0.06040393188595772, 0.0433201938867569, -0.005856120027601719, 0.013738436624407768, -0.21385324001312256, -0.5553432703018188, -0.29264557361602783, 0.058591537177562714, -0.36671972274780273, 0.3881663382053375, -0.11572859436273575, -0.10229036957025528, 0.18173901736736298, 0.059991441667079926, 0.6260008811950684, 0.010335557162761688, -0.16928155720233917, -0.1431289166212082, -0.11973661184310913, -0.2859584093093872, -0.05593467503786087, 0.0654560998082161, 0.2638857662677765, -0.06365455687046051, -0.11569234728813171, -0.4510706961154938, 0.21219933032989502, -0.24826321005821228, -0.00935828685760498, 0.11319538950920105, 0.28376466035842896, 0.23985555768013, 0.11208271980285645, 0.22244076430797577, 0.2796352207660675, 0.1129845380783081, -0.20290103554725647, -0.0597662478685379, -0.2434741109609604, -0.06760761141777039, -0.017915641888976097, -0.2810792028903961, 0.12912273406982422, 0.19883257150650024, 0.06394534558057785, -0.07963837683200836, -0.10121220350265503, 0.018493864685297012, 0.08200372755527496, 0.45120668411254883, 0.003432229161262512, -0.1984364241361618, -0.08452887833118439, -0.33522841334342957, -0.11661524325609207, -0.28212663531303406, -0.08293808996677399, -0.045928582549095154, 0.03554839268326759, -0.20124390721321106, 0.18888388574123383, -0.12838421761989594, 0.20891313254833221, 0.35289672017097473, 0.1774381399154663, -0.1730099767446518, 0.14464940130710602, -0.007326293736696243, -0.29753294587135315, -0.19501112401485443, -0.058565717190504074, 0.1618615984916687, -0.27998727560043335, 0.048545099794864655, -0.09934725612401962, -0.30435487627983093, -0.41628149151802063, 0.12122336775064468, -0.10190243273973465, 0.011826494708657265, 0.6224348545074463, 0.16646528244018555, 0.08264556527137756, -0.174358531832695, 0.06716440618038177, -0.4080203175544739, -0.35393285751342773, -0.1758715659379959, 0.31934332847595215, 0.2330731451511383, -0.23004478216171265, -0.11733397841453552, -0.0911654457449913, -0.15054480731487274, 0.13107091188430786, 0.008416876196861267, -0.17774508893489838, 0.1105760931968689, -0.07205739617347717, -0.221540167927742, 0.2518274188041687, -0.33606523275375366, -0.34178754687309265, 0.11124373227357864, 0.21982364356517792, -0.32668623328208923, -0.0330129936337471, -0.05166804417967796, 0.34880530834198, -0.03355396166443825, 0.022242911159992218, 0.09916239976882935, 0.022030632942914963, -0.21327129006385803, -0.317937433719635, -0.28154587745666504, -0.3954843282699585, -0.1032077819108963, 0.14736083149909973, -0.19750016927719116, -0.35294562578201294, 0.03155667334794998, 0.3055685758590698, 0.19243304431438446, 0.011237621307373047, 0.30210399627685547, 0.374783456325531, -0.1904214769601822, 0.07839398086071014, 0.2963237464427948, -0.6002676486968994, 0.03336130082607269, -0.08809255808591843, 0.2312198132276535, 0.7295772433280945, -0.08657678961753845, -0.04869629815220833, -0.10753533244132996, 0.19382420182228088, -0.21021269261837006, 0.11658404767513275, 0.06021583452820778, 0.23704254627227783, 0.08849410712718964, -0.13644061982631683, 0.07854686677455902, -0.23631569743156433, 0.11352124065160751, -0.22788521647453308, -0.17920711636543274, -0.08976990729570389, -0.00248698890209198, 0.009241342544555664, 0.06790992617607117, -0.17652982473373413, 0.22188016772270203, 0.04400637745857239, 0.3089010417461395, 0.30449143052101135, -0.3136172294616699, 0.08099931478500366, -0.0011135637760162354, 0.007004153914749622, 0.056819867342710495, 0.008292736485600471, -0.2714274823665619, -0.3744518458843231, 0.25553739070892334, -0.08464062958955765, 0.0808001309633255, 0.46528714895248413, -0.06986937671899796, 0.20971955358982086, -0.0009585469961166382, -0.14544709026813507, -0.01717808097600937, -0.07667367160320282, -0.5671275854110718, -0.27561384439468384, 0.3597343862056732, -0.00900832749903202, 0.3806384205818176, -0.35566309094429016, -0.06700582057237625, 0.2865484952926636, 0.0019144043326377869, -0.4107646942138672, 0.44181638956069946, -0.37452659010887146, -0.08145324885845184, 0.10613241046667099, 0.48378506302833557, 0.09477196633815765, 0.262970894575119, 0.2847137749195099, 0.17737965285778046, -0.06069240719079971, -0.09770466387271881, 0.38253915309906006, 0.07971799373626709, 0.6006678938865662, 0.22282102704048157, 0.015330195426940918, 0.09871159493923187, 0.08725029975175858, -0.16376431286334991, 0.01818874664604664, 0.15279415249824524, -0.2198045551776886, -0.2572903037071228, 0.06017594784498215, -0.067752905189991, -0.07474903017282486, -0.017704926431179047, -0.32437536120414734, -0.1396196186542511, 0.06037997454404831, -0.23856908082962036, 0.07134738564491272, -0.029460160061717033, -0.5579314827919006, 0.3389029800891876, -0.2254011034965515, 0.21552588045597076, 0.15094240009784698, 0.0823792889714241, -0.5002076029777527, 0.14829280972480774, -0.10691840946674347, -0.35319405794143677, 0.048199962824583054, -0.41826891899108887, 0.06689489632844925, 0.2385118156671524, -0.3264961242675781, 0.3696916103363037, 0.13476675748825073, 0.19042931497097015, 0.22300584614276886, -0.3871461749076843, -0.16407504677772522, 0.28418582677841187, -0.181134894490242, 0.01831733249127865, -0.21519185602664948, -0.0226855780929327, -0.33989933133125305, 0.2574866712093353, -0.165543332695961, -0.41320446133613586, -0.0645681694149971, -0.16896221041679382, -0.0013988763093948364, 0.06847706437110901, 0.0359240360558033, 0.007292131893336773, -0.02684912085533142, -0.07572778314352036, -0.40063101053237915, 0.27608147263526917, -0.011455211788415909, -0.24530746042728424, 0.2559419870376587, 0.00253243837505579, -0.18186406791210175, -0.020004376769065857, -0.1705813854932785, 0.13180509209632874, -0.10819263756275177, -0.6059449911117554, 0.23638269305229187, -0.0703083872795105, -0.01066073402762413, -0.1274937242269516, -0.0597984716296196, 0.3178865909576416, 0.23252832889556885, -0.026087656617164612, 0.09492147713899612, 0.038314517587423325, 0.2087802141904831, -0.12872332334518433, 0.461124449968338, -0.097686268389225, 0.07730984687805176, 0.04596143588423729, 0.3247414827346802, 0.28466907143592834, -0.29289838671684265, -0.12634925544261932, 0.08746189624071121, 0.33588314056396484, 0.00022000819444656372, 0.22093543410301208, 0.025913216173648834, 0.035393327474594116, 0.015260506421327591, 0.3652917742729187, 0.20625072717666626, -0.11519943922758102, 0.01741768792271614, 0.23813176155090332, 0.19254270195960999, -0.16756120324134827, 0.032713890075683594, 0.2342025488615036, 0.6284465789794922, -0.16603754460811615, 0.03294582664966583, 0.02767910808324814, -0.3331252634525299, -0.17341797053813934, -0.12247222661972046, 0.19044488668441772, -0.13016441464424133, 0.1776048094034195, 0.5518295764923096, -0.5440958142280579, 0.2639870047569275, -0.051418501883745193, 0.08053838461637497, 0.1151379644870758, -0.28172507882118225, -0.16047199070453644, -0.006048859562724829, 0.4679945111274719, -0.048159316182136536, -0.41257935762405396, 0.3504716753959656, 0.16530509293079376, -0.473429411649704, -0.12155444920063019, -0.2587651014328003, -0.5339024662971497, 1.0868711471557617, 0.5440797805786133, -0.03594012185931206, -0.23142585158348083, 0.3389776647090912, -0.028615601360797882, -0.22212748229503632, -0.16248975694179535, -0.2948032319545746, 0.07528490573167801, -0.020975470542907715, -0.05505640059709549, -0.26033487915992737, -0.11307592689990997, -0.20744365453720093, -0.010298501700162888, 0.2051171064376831, -0.1974099576473236, 0.0964839830994606, 0.21910957992076874, 0.38136813044548035, 0.1402324140071869, 0.24319306015968323, 0.059384800493717194, 0.4666581153869629, 0.48510175943374634, 0.15328598022460938, -0.057361286133527756, -0.27194827795028687, 0.2822733223438263, -0.10912292450666428, 0.5299075841903687, 0.310782790184021, -0.057263027876615524, -0.02130161225795746, -0.2038784623146057, 0.07713915407657623, 0.07609622925519943, 0.2159232199192047, 0.32422828674316406, -0.21654443442821503, -0.32043883204460144, -0.120432548224926, 0.020163092762231827, 0.20612625777721405, -0.20278510451316833, -0.454334557056427, -0.1485801786184311, -0.0730133056640625, -0.10132001340389252, 0.4920629560947418, 0.8532761335372925, 0.06602271646261215, 0.299186646938324, -0.017136871814727783, -0.2874806523323059, 0.48880377411842346, -0.08671286702156067, 0.13918882608413696, -0.3684089183807373, -0.007965791039168835, 0.07105083763599396, -0.10880318284034729, -0.14667439460754395, 0.08640895038843155, -0.1399548202753067, 0.09944615513086319, -0.13181665539741516, -0.24831733107566833, -0.012179449200630188, 0.362718790769577, 0.06245862692594528, 0.047075603157281876, 0.6486376523971558, 0.04023905098438263, -0.001870855689048767, -0.1850622445344925, -0.033013105392456055, -0.06685119867324829, -0.11628027260303497, 0.04118828475475311, -0.13688582181930542, -0.11154001951217651, 0.08052586019039154, -0.02134852483868599, 0.19952744245529175, -0.40300703048706055, 0.08989666402339935, 0.5373721122741699, 0.1734156459569931, 0.2524736523628235, -0.26674818992614746, -0.07807384431362152, 0.2593311071395874, -0.12004099041223526, 0.39830413460731506, 0.13484874367713928, 0.05711755529046059, -0.2200692594051361, -0.29074540734291077, -0.03892980515956879, 0.11887799203395844, 0.11488835513591766, 0.0022324472665786743, -0.3247588276863098, 0.13972745835781097, -0.5065873861312866, 0.141708642244339, 0.07076610624790192, 0.04117324575781822, -0.1231541633605957, 0.20836889743804932, -0.12431596219539642, -0.02244298905134201, 0.03080054000020027, -0.1415696144104004, -0.3870668113231659, -0.08690789341926575, -0.10634506493806839, 0.2709778845310211, 0.2768916189670563, 0.1275360882282257, 0.14968615770339966, -0.05271095037460327, -0.08569096773862839, 0.29014894366264343, -0.1613321304321289, -0.15065361559391022, 0.15199874341487885, 0.40722405910491943, -0.055911630392074585, -0.095918670296669, 0.2289099544286728, 0.24414560198783875, 0.01380113884806633, -0.08439202606678009, 0.2946997582912445, -0.4281083047389984, 0.18212449550628662, -0.20106786489486694, 0.4821610748767853, -0.11250215023756027, -0.05479583516716957, -0.07321462780237198, -0.2601739466190338, -0.3238525986671448, -0.015386691316962242, -0.19747109711170197, -0.08789552748203278, -0.28027811646461487, 0.01686709374189377, -0.24527375400066376, -0.05612817034125328, 0.03208131343126297, -0.08785399049520493, -0.08350922167301178, -0.18519747257232666, -0.06912321597337723, 0.10991714894771576, -0.03504205122590065, -0.11354777216911316, 0.18619829416275024, 0.0987313762307167, -0.33183249831199646, -0.05687440186738968, -0.07248495519161224, -0.20562389492988586, 0.21655941009521484, 0.6052782535552979, -0.4788682162761688, 0.017434336245059967, 0.21672730147838593, 0.3572169542312622, 0.06316870450973511, 0.2910679578781128, 0.19182473421096802, 0.5138152837753296, -0.09727125614881516, 0.01675625890493393, -0.08037366718053818, 0.13940724730491638, -0.371076762676239, -0.03750380128622055, -0.017877310514450073, 0.08289246261119843, -0.04806656017899513, -0.004185530357062817, 0.13872380554676056, 0.11442691832780838, -0.08109830319881439, -0.11322833597660065, 0.24255633354187012, 0.23905307054519653, -0.24246983230113983, 0.038446348160505295, -0.17254497110843658, 0.05876419320702553, -0.034701913595199585, 0.165069580078125, 0.16523334383964539, -0.06663130223751068, -0.18372021615505219, 0.15023097395896912, -0.09414989501237869, 0.4256553053855896, -0.014578409492969513, 0.24392199516296387, 0.006996918469667435, 0.30488935112953186, 0.3469516634941101, -0.12999184429645538, 0.15805518627166748, -0.045257650315761566, 0.5192874073982239, -0.04321855306625366, -0.13205423951148987, 0.30897611379623413, 0.3415549397468567, -0.4437057673931122, 0.4573952257633209, 0.19896826148033142, 0.11211767792701721, 0.07460144907236099, -0.06781905889511108, 0.0970052033662796, 0.40119388699531555, -0.13414835929870605, -0.5298084020614624, 0.0278156828135252, -0.0927998498082161, -0.17680220305919647, -0.16490428149700165, -0.05882986634969711, 0.4024438261985779, 0.38728493452072144, -0.06080818548798561, -0.15170563757419586, -0.0667157918214798, 0.0923592746257782, -0.2444104701280594, 0.057436875998973846, 0.5005820989608765, -0.022106043994426727, 0.058125924319028854, -0.24973216652870178, 0.03160673379898071, -0.11271019279956818, -0.0047120600938797, -0.1360367387533188, 0.4472348988056183, 0.2742927074432373, 0.05042418837547302, 0.16266678273677826, -0.19843189418315887, 0.2732846438884735, 0.049782894551754, -0.1446201503276825, 0.1420496702194214, 0.501946210861206, 0.2180439531803131, 0.18412189185619354, 0.12611082196235657, -0.01633044332265854, -0.22221918404102325, -0.12272925674915314, 0.03806573897600174, -0.025414030998945236, 0.13666054606437683, 0.24366053938865662, -0.17855724692344666, 0.1551506221294403, 0.2969259023666382, -0.4654332399368286, 0.3182470500469208, 0.5749576687812805, 0.13110138475894928, 0.035470470786094666, 0.057807065546512604, 0.07111497968435287, -0.1768956035375595, 0.04467000439763069, 0.20893989503383636, 0.16239991784095764, -0.10821767896413803, -0.5213892459869385, -0.08115924894809723, 0.2729398310184479, -0.10016103088855743, -0.16458076238632202, 0.13134725391864777, 0.18350957334041595, 0.07779616117477417, 0.013211548328399658, -0.11204682290554047, -0.05270839482545853, -0.4384751319885254, 0.18090692162513733, -0.15602536499500275, 0.02024378441274166, -0.1199275404214859, -0.005276555195450783, 0.028947394341230392, -0.11492223292589188, -0.011854272335767746, -0.12899312376976013, -0.0810680165886879, -0.09689096361398697, 0.13122354447841644, 0.38444727659225464, 0.43712013959884644, 0.2869356870651245, 0.21507851779460907, 0.35340672731399536, -0.05999309569597244, -0.22324402630329132, -0.07869532704353333, 0.21015599370002747, -0.2013532668352127, -0.058558546006679535, -0.20938563346862793, -0.2135194092988968, -0.3199551999568939, -0.13258028030395508, 0.10560514032840729, 0.2887853980064392, 0.2079719752073288, -0.08566325902938843, -0.34847286343574524, -0.14502303302288055, 0.10127488523721695, -0.26137182116508484, 0.26028570532798767, 0.27641016244888306, -0.10399377346038818, -0.2661340832710266, -0.06568807363510132, -0.007432427257299423, 0.3319243788719177, 0.096885547041893, 0.2977839410305023, -0.47838208079338074, -0.0235062837600708, 0.2744104862213135, 0.03644351661205292, -0.49608170986175537, -0.07097101956605911, 0.479934424161911, 0.13487592339515686, -0.26060640811920166, 0.372286856174469, 0.13075599074363708, -0.08449815213680267, -0.1351376473903656, 0.5800470113754272, -0.3410004675388336, -0.3498987853527069, -0.520211935043335, -0.1578117460012436 ]
https://github.com/huggingface/datasets/issues/1983
The size of CoNLL-2003 is not consistant with the official release.
@lhoestq Yes, I agree adding a small note should be sufficient. Currently, NLTK's `ConllCorpusReader` ignores the `-DOCSTART-` lines so I think it's ok if we do the same. If there is an interest in the future to use these lines, then we can include them.
Thanks for the dataset sharing! But when I use conll-2003, I meet some questions. The statistics of conll-2003 in this repo is : \#train 14041 \#dev 3250 \#test 3453 While the official statistics is: \#train 14987 \#dev 3466 \#test 3684 Wish for your reply~
45
The size of CoNLL-2003 is not consistant with the official release. Thanks for the dataset sharing! But when I use conll-2003, I meet some questions. The statistics of conll-2003 in this repo is : \#train 14041 \#dev 3250 \#test 3453 While the official statistics is: \#train 14987 \#dev 3466 \#test 3684 Wish for your reply~ @lhoestq Yes, I agree adding a small note should be sufficient. Currently, NLTK's `ConllCorpusReader` ignores the `-DOCSTART-` lines so I think it's ok if we do the same. If there is an interest in the future to use these lines, then we can include them.
[ 0.13010777533054352, 0.0962897539138794, 0.039451006799936295, 0.05336666479706764, -0.21693092584609985, 0.007521115243434906, 0.15427355468273163, -0.00016199052333831787, -0.9731168150901794, 0.06726909428834915, 0.2056131660938263, 0.07014183700084686, -0.05132952332496643, -0.08427192270755768, -0.08032707124948502, 0.3419833779335022, -0.06757483631372452, 0.32786044478416443, 0.22854715585708618, -0.12276361882686615, -0.36684590578079224, 0.27751731872558594, -0.2749776244163513, -0.008239015936851501, -0.3934665322303772, 0.0806119292974472, -0.14193370938301086, 0.2710109055042267, -0.24152658879756927, -0.5320179462432861, 0.39744171500205994, 0.2227785736322403, 0.07723739743232727, 0.028881147503852844, -0.00011551201896509156, -0.212649866938591, 0.38725167512893677, -0.21596533060073853, -0.20997467637062073, 0.47307687997817993, -0.11290423572063446, -0.766028881072998, -0.04437275975942612, -0.44478246569633484, 0.031934238970279694, 0.5121641755104065, -0.08175244927406311, 0.1743456870317459, 0.2542616128921509, 0.16135869920253754, 0.16769349575042725, 0.23931804299354553, 0.2375084012746811, 0.13331788778305054, 0.34750044345855713, -0.02496901899576187, -0.1696096956729889, 0.5508459806442261, -0.20811337232589722, 0.12033335864543915, -0.2780005931854248, 0.3548775911331177, 0.14675290882587433, -0.233613982796669, 0.1369727998971939, -0.038033626973629, 0.2645011246204376, -0.06747445464134216, -0.14199906587600708, 0.2909510135650635, 0.2943902909755707, -0.2650745213031769, -0.11949881911277771, -0.5421317219734192, 0.26774969696998596, -0.49856701493263245, 0.09953822940587997, -0.03655887395143509, -0.015111682936549187, 0.017059385776519775, -0.2545987069606781, -0.4198876917362213, -0.3282952904701233, 0.12001718580722809, -0.15987926721572876, 0.41808387637138367, -0.02724004164338112, 0.030142739415168762, 0.15385925769805908, 0.15866416692733765, 0.5796195268630981, 0.07672003656625748, -0.24449455738067627, 0.02156645804643631, -0.03778201714158058, -0.4418600797653198, 0.19023051857948303, -0.13099128007888794, 0.16423335671424866, -0.21044765412807465, -0.12043766677379608, -0.41997042298316956, -0.09010660648345947, -0.05931007117033005, 0.01935000531375408, 0.05434070900082588, 0.4128796458244324, 0.3364701569080353, 0.24082259833812714, -0.10006083548069, 0.4114399552345276, 0.14362244307994843, -0.25296664237976074, -0.18112079799175262, -0.12394465506076813, 0.1675828993320465, -0.2642974555492401, -0.24068963527679443, 0.1624811589717865, 0.15658344328403473, -0.03493647277355194, -0.07352843135595322, -0.06181761249899864, -0.017856687307357788, 0.27473992109298706, 0.3580443561077118, 0.06861715763807297, -0.0945587307214737, 0.07715898752212524, -0.27236074209213257, -0.059463270008563995, -0.34875258803367615, 0.005908463150262833, -0.01715308241546154, -0.1843850314617157, -0.05625881627202034, 0.3026260435581207, -0.31279975175857544, 0.25982335209846497, 0.3169444799423218, 0.15031659603118896, 0.012402430176734924, 0.09437437355518341, 0.04884954169392586, -0.08826036006212234, -0.14847637712955475, 0.021239036694169044, 0.17100118100643158, -0.37301725149154663, 0.22069987654685974, 0.10787881910800934, -0.3871755599975586, -0.4981613755226135, 0.05744687840342522, -0.3294164538383484, -0.06611459702253342, 0.5692339539527893, 0.06155224144458771, 0.15338583290576935, -0.29847362637519836, 0.24794846773147583, -0.16791439056396484, -0.17644435167312622, -0.13770057260990143, 0.279529333114624, 0.07242708653211594, 0.0772199034690857, -0.23270244896411896, -0.2192712426185608, -0.14208011329174042, 0.21048477292060852, 0.04647001624107361, -0.19113458693027496, 0.18372748792171478, -0.08464393764734268, -0.0169069841504097, 0.4908643066883087, -0.318949431180954, -0.2493036687374115, 0.43014755845069885, -0.036891281604766846, -0.21944020688533783, -0.09887907654047012, 0.13893039524555206, 0.17065726220607758, -0.19584296643733978, -0.03320281207561493, 0.15175987780094147, 0.031092580407857895, 0.12894538044929504, -0.3339417278766632, -0.22194337844848633, -0.23179589211940765, -0.21673057973384857, 0.163366436958313, -0.22278565168380737, -0.2178173065185547, 0.29569369554519653, 0.43389880657196045, 0.05951729789376259, -0.0693800151348114, 0.2499167025089264, 0.3685534596443176, -0.21286745369434357, -0.10876695066690445, 0.4909602701663971, -0.386334627866745, 0.08844330161809921, 0.08078821003437042, 0.21464326977729797, 0.7478345036506653, -0.265327513217926, -0.23058098554611206, -0.15998169779777527, 0.2598365247249603, -0.0037722699344158173, 0.11042000353336334, 0.15214090049266815, 0.15954512357711792, 0.23140887916088104, 0.14877939224243164, 0.0730557069182396, -0.16152212023735046, 0.037176065146923065, 0.07722382247447968, -0.1853344440460205, -0.030261466279625893, -0.11656513810157776, 0.1630459725856781, 0.313379168510437, 0.04098435491323471, 0.2251073718070984, -0.12525400519371033, 0.3692483901977539, 0.04595823585987091, -0.04813101887702942, 0.07098101079463959, -0.16615842282772064, 0.046177417039871216, 0.2672269642353058, -0.01272229291498661, -0.3932291269302368, -0.41525423526763916, 0.061391301453113556, 0.0116802416741848, 0.09879329800605774, 0.5511184334754944, -0.2438945472240448, 0.07469239830970764, -0.0841132327914238, -0.19023361802101135, -0.14992330968379974, -0.20794619619846344, -0.2950228750705719, -0.21364392340183258, 0.3231470286846161, -0.21288460493087769, 0.15343336760997772, -0.3101695477962494, -0.06339956074953079, 0.4416494071483612, -0.18532350659370422, -0.1847083866596222, 0.3180699646472931, -0.2418944537639618, -0.08907422423362732, 0.24813497066497803, 0.22561414539813995, 0.015950322151184082, 0.2709316611289978, 0.2830387353897095, 0.13575437664985657, -0.2408517301082611, -0.1283157467842102, 0.17523227632045746, 0.23882299661636353, 0.43944430351257324, 0.23919594287872314, 0.0922868549823761, 0.11481419205665588, 0.034071557223796844, -0.004529394209384918, -0.005415596999228001, -0.027731312438845634, -0.22798755764961243, -0.3621949255466461, 0.16025415062904358, -0.15049824118614197, -0.0650818943977356, -0.30937930941581726, -0.225450336933136, -0.3511162996292114, 0.1018533855676651, -0.1388068050146103, -0.1369156688451767, 0.1145193874835968, -0.5290248990058899, 0.4189199209213257, -0.03922177106142044, 0.20312944054603577, 0.20474475622177124, -0.24976746737957, -0.5104729533195496, 0.0853450745344162, -0.04100549966096878, -0.3061431646347046, 0.35237035155296326, -0.479440838098526, 0.028088636696338654, 0.24861985445022583, -0.48069483041763306, 0.3634324371814728, -0.08300338685512543, -0.15813501179218292, 0.20183232426643372, -0.20512954890727997, -0.3833320736885071, 0.12080509960651398, -0.24498553574085236, 0.22460636496543884, -0.15399940311908722, 0.0005652476102113724, -0.07204611599445343, 0.21230244636535645, -0.44823095202445984, -0.16380813717842102, 0.16696718335151672, -0.337891548871994, 0.19773392379283905, -0.09125696122646332, 0.016074322164058685, 0.08179191499948502, -0.16228348016738892, 0.20118477940559387, -0.1818695068359375, 0.1154792457818985, -0.11367292702198029, 0.016707714647054672, 0.2259344607591629, -0.08113156259059906, -0.16622349619865417, 0.06995877623558044, -0.23872110247612, 0.010603461414575577, -0.3078629970550537, -0.7261511087417603, 0.07437453418970108, 0.05952514708042145, -0.06015833467245102, -0.11508268117904663, 0.03760460391640663, 0.2131718099117279, 0.11275213956832886, 0.05231928825378418, -0.08557416498661041, -0.12262330949306488, 0.1621294617652893, 0.09451113641262054, 0.5319260954856873, -0.22288790345191956, 0.3096298575401306, -0.002292826771736145, 0.15905654430389404, 0.28537628054618835, -0.0007305294275283813, -0.22525686025619507, -0.0015947762876749039, 0.2930026650428772, 0.2588473856449127, 0.32865819334983826, 0.3251231610774994, 0.10309890657663345, -0.13795572519302368, 0.45384103059768677, 0.07739976048469543, -0.14601773023605347, 0.055396758019924164, 0.1441573053598404, 0.016938239336013794, -0.43416959047317505, 0.0573548898100853, 0.1168065220117569, 0.5626435279846191, -0.21847765147686005, -0.008421096950769424, -0.1097339540719986, -0.16501373052597046, -0.23411819338798523, -0.02932010591030121, 0.30052298307418823, -0.029177311807870865, 0.20548872649669647, 0.24581889808177948, -0.5631024241447449, 0.21508845686912537, -0.036278270184993744, 0.0829901173710823, 0.1746261715888977, -0.25356778502464294, -0.23569969832897186, 0.1044343113899231, 0.03609602898359299, -0.09381762892007828, -0.2063308209180832, 0.3459344506263733, 0.3252568244934082, -0.2910984456539154, -0.21757648885250092, -0.22080279886722565, -0.26990756392478943, 1.2819184064865112, 0.42557668685913086, -0.38629627227783203, 0.04303553327918053, 0.37623241543769836, -0.14831776916980743, -0.14912700653076172, -0.21907274425029755, -0.39829012751579285, -0.176394522190094, -0.19425158202648163, 0.11788605898618698, -0.015451560728251934, -0.08903250098228455, -0.12346091866493225, 0.09127946197986603, 0.3205409646034241, -0.1780042052268982, 0.09684169292449951, 0.3929636478424072, 0.22838595509529114, 0.5601587891578674, 0.16726383566856384, 0.051121022552251816, 0.3188779652118683, -0.05534544587135315, 0.19465523958206177, 0.11765533685684204, -0.08283419907093048, 0.2511400282382965, -0.3525596261024475, 0.46209806203842163, 0.3488360047340393, 0.13131657242774963, -0.10071643441915512, -0.1621301770210266, 0.017741598188877106, 0.17482033371925354, 0.35415327548980713, 0.15578168630599976, -0.32480189204216003, -0.32516586780548096, -0.14338843524456024, 0.2663401961326599, 0.06850862503051758, -0.1487399786710739, -0.4119543731212616, -0.1902713030576706, -0.21399779617786407, -0.1538042426109314, 0.2392159402370453, 0.8080554604530334, 0.12398334592580795, 0.17042703926563263, 0.355984091758728, -0.2942582964897156, 0.4923354387283325, 0.08145080506801605, 0.03882971405982971, -0.331809401512146, 0.269488662481308, 0.143042653799057, -0.04125957936048508, -0.24669510126113892, -0.04838947951793671, -0.4165378510951996, -0.0031492735724896193, 0.002239406108856201, -0.24130293726921082, -0.09307276457548141, 0.32376086711883545, 0.05278392881155014, 0.06395368278026581, 0.27525603771209717, 0.038937389850616455, 0.13261032104492188, -0.05100220814347267, 0.012095862999558449, -0.2595163583755493, -0.1758071482181549, -0.17704667150974274, -0.35323554277420044, -0.311477929353714, 0.14125977456569672, 0.018509266898036003, -0.023656215518712997, -0.4095526933670044, 0.19212041795253754, 0.2770197093486786, 0.3589105010032654, 0.29704973101615906, -0.21692819893360138, -0.10931122303009033, 0.25289639830589294, -0.20342643558979034, 0.35744819045066833, 0.24697533249855042, 0.034818653017282486, -0.2830645442008972, -0.1956479251384735, 0.15171831846237183, -0.10017740726470947, -0.037681907415390015, 0.14607781171798706, -0.1781594604253769, 0.014208026230335236, -0.34177929162979126, -0.0354531928896904, 0.3411010503768921, -0.08775469660758972, -0.01003001257777214, 0.13758628070354462, 0.093252032995224, -0.035301245748996735, -0.15632355213165283, -0.282082200050354, -0.20600435137748718, -0.04445665702223778, -0.3939487636089325, 0.13725395500659943, 0.1824112981557846, -0.02189122885465622, 0.042390670627355576, 0.02285020798444748, 0.0014152191579341888, 0.12895700335502625, -0.4131375253200531, -0.07709568738937378, -0.06685728579759598, 0.5177927017211914, -0.29522332549095154, -0.2913731038570404, 0.24817653000354767, 0.19479629397392273, 0.29998934268951416, -0.10228262841701508, 0.2632977068424225, -0.40712565183639526, 0.2513202428817749, -0.2720453143119812, 0.44590577483177185, 0.000008802860975265503, 0.40267905592918396, -0.07454844564199448, -0.1872907280921936, -0.2772980332374573, -0.27209916710853577, -0.22974856197834015, 0.01079796813428402, -0.1879495084285736, 0.045885905623435974, -0.14564263820648193, -0.12315250933170319, -0.027407126501202583, 0.16666294634342194, -0.0020087938755750656, -0.10856495797634125, 0.026101786643266678, 0.16789928078651428, 0.045809827744960785, -0.036275096237659454, 0.22900156676769257, 0.0017386097460985184, -0.13957783579826355, -0.020596349611878395, 0.03945034742355347, -0.3833730220794678, 0.13144460320472717, 0.6604421138763428, -0.5886901021003723, 0.4171708822250366, 0.25117361545562744, 0.2564389109611511, -0.019274890422821045, 0.35321158170700073, -0.11483420431613922, 0.542819619178772, -0.004675372503697872, 0.10385286808013916, 0.24781964719295502, 0.06584326177835464, -0.392231285572052, 0.1441468894481659, -0.0034277737140655518, 0.1552131175994873, -0.07603452354669571, 0.004132298287004232, -0.053770553320646286, 0.07223518937826157, -0.29650381207466125, -0.1990164816379547, 0.21631363034248352, 0.17534422874450684, -0.2990162968635559, 0.1887124627828598, -0.16726700961589813, -0.03487393632531166, 0.15876682102680206, 0.1492215096950531, 0.031630393117666245, -0.10849244892597198, -0.1870100051164627, 0.20799225568771362, -0.11515633761882782, 0.3894234299659729, -0.018680477514863014, 0.2622988224029541, -0.09827084094285965, 0.275237113237381, 0.0979672446846962, -0.1320030391216278, 0.26433131098747253, -0.40305179357528687, 0.526894211769104, -0.16619859635829926, -0.12497081607580185, 0.269634872674942, 0.18433746695518494, -0.21038055419921875, 0.3639317452907562, 0.3102310597896576, 0.09927679598331451, 0.2528161108493805, 0.040955763310194016, 0.11011335253715515, 0.1543636918067932, 0.17724527418613434, -0.6114674806594849, 0.13042542338371277, -0.02178473025560379, 0.03717849776148796, 0.002565208822488785, 0.2486213743686676, 0.1974562704563141, 0.11357434093952179, -0.0705638974905014, -0.030934646725654602, -0.3614555597305298, 0.03569512069225311, -0.07797934114933014, 0.21711839735507965, 0.335873007774353, 0.14980366826057434, 0.09457580745220184, -0.36916154623031616, 0.037160806357860565, -0.16399221122264862, -0.02640785276889801, -0.11657805740833282, 0.42300674319267273, 0.3049890398979187, 0.014247577637434006, 0.17972397804260254, -0.062314722687006, 0.19799712300300598, 0.1574593037366867, -0.13977670669555664, 0.07171036303043365, 0.3436501920223236, 0.08094320446252823, 0.2746039927005768, 0.10123302787542343, -0.06630124151706696, 0.04072051867842674, -0.19175104796886444, -0.1818830370903015, 0.025763165205717087, 0.14800892770290375, 0.15532644093036652, -0.2714478373527527, 0.13517457246780396, 0.1511496901512146, -0.27487432956695557, 0.3268388509750366, 0.36956971883773804, 0.3335464596748352, 0.09222062677145004, -0.11992450803518295, 0.0460597425699234, -0.05181458964943886, 0.13571147620677948, 0.33516648411750793, 0.11567054688930511, 0.05916611850261688, -0.6472338438034058, -0.2615154981613159, 0.2753867506980896, -0.18589870631694794, -0.6451835632324219, 0.30449795722961426, 0.023329855874180794, 0.10429554432630539, 0.07858934998512268, -0.11200384795665741, -0.10325048118829727, -0.4663718640804291, -0.12247924506664276, -0.17097914218902588, -0.1859329789876938, 0.033265210688114166, -0.08088599145412445, 0.06168288737535477, -0.055532485246658325, 0.08941947668790817, 0.08451379090547562, -0.005715351551771164, -0.07989831268787384, 0.15644539892673492, 0.40280792117118835, 0.5088064670562744, 0.27726468443870544, 0.1935526728630066, 0.5034725666046143, -0.16098931431770325, -0.21870911121368408, 0.09614268690347672, 0.015352731570601463, -0.040619928389787674, -0.1719720959663391, -0.23269915580749512, -0.09010586142539978, -0.20258384943008423, 0.1903233826160431, -0.013450929895043373, 0.2978092133998871, 0.23215769231319427, -0.0934981182217598, -0.1128152459859848, -0.13202160596847534, -0.00029584020376205444, -0.1756168156862259, 0.06333691626787186, 0.2933475375175476, -0.09903989732265472, -0.032828476279973984, -0.06937801837921143, -0.22041893005371094, 0.27432477474212646, -0.0955025851726532, 0.17145808041095734, -0.26964128017425537, 0.1478176712989807, 0.08460347354412079, 0.1020461693406105, -0.5734165906906128, -0.0022001639008522034, 0.44563716650009155, 0.39070308208465576, -0.3774711489677429, 0.2812386751174927, 0.19217048585414886, -0.11856801807880402, 0.03169798478484154, 0.6229761838912964, -0.28076058626174927, -0.5063767433166504, -0.40812820196151733, -0.25199955701828003 ]
https://github.com/huggingface/datasets/issues/1983
The size of CoNLL-2003 is not consistant with the official release.
I added a mention of this in conll2003's dataset card: https://github.com/huggingface/datasets/blob/fc9796920da88486c3b97690969aabf03d6b4088/datasets/conll2003/README.md#conll2003 Edit: just saw your PR @mariosasko (noticed it too late ^^) Let me take a look at it :)
Thanks for the dataset sharing! But when I use conll-2003, I meet some questions. The statistics of conll-2003 in this repo is : \#train 14041 \#dev 3250 \#test 3453 While the official statistics is: \#train 14987 \#dev 3466 \#test 3684 Wish for your reply~
30
The size of CoNLL-2003 is not consistant with the official release. Thanks for the dataset sharing! But when I use conll-2003, I meet some questions. The statistics of conll-2003 in this repo is : \#train 14041 \#dev 3250 \#test 3453 While the official statistics is: \#train 14987 \#dev 3466 \#test 3684 Wish for your reply~ I added a mention of this in conll2003's dataset card: https://github.com/huggingface/datasets/blob/fc9796920da88486c3b97690969aabf03d6b4088/datasets/conll2003/README.md#conll2003 Edit: just saw your PR @mariosasko (noticed it too late ^^) Let me take a look at it :)
[ -0.117779940366745, -0.14909020066261292, -0.1239805817604065, 0.4063590168952942, -0.14216811954975128, -0.1860255002975464, 0.26956719160079956, 0.010811308398842812, -0.9765852093696594, 0.12976129353046417, 0.031708553433418274, -0.04653046652674675, 0.0295424684882164, 0.17403796315193176, -0.07360469549894333, 0.1277458369731903, 0.0628562644124031, -0.11948907375335693, -0.07110390067100525, -0.16196894645690918, -0.146912083029747, 0.42279791831970215, -0.34524035453796387, -0.056981101632118225, -0.47104915976524353, 0.24249611794948578, -0.12262798100709915, 0.07011772692203522, -0.5567558407783508, -0.3233379125595093, 0.4087005853652954, -0.08661074936389923, 0.176932230591774, 0.35544222593307495, -0.00010404669592389837, -0.1748577356338501, 0.2246980518102646, -0.11574243754148483, -0.06555616855621338, 0.24040211737155914, -0.20043280720710754, -0.19203902781009674, -0.1547529548406601, -0.03028583526611328, 0.02811155468225479, 0.27323609590530396, -0.3089977502822876, 0.29939207434654236, 0.18221697211265564, 0.24308809638023376, 0.2945329546928406, 0.08092108368873596, 0.21791504323482513, -0.1760447919368744, 0.2989802062511444, 0.19175875186920166, -0.11657198518514633, 0.22604456543922424, -0.13071970641613007, 0.22758346796035767, -0.0872839167714119, 0.28604233264923096, 0.3349747061729431, -0.17243051528930664, 0.08490601927042007, -0.026191718876361847, -0.08708209544420242, -0.08644361793994904, 0.09545346349477768, 0.3211066722869873, 0.3949131369590759, -0.3121788203716278, -0.4026530385017395, -0.19136935472488403, 0.03105168417096138, -0.3462635278701782, 0.05632057040929794, 0.009638825431466103, 0.04613183066248894, -0.05843725427985191, -0.49825790524482727, -0.1443537175655365, -0.20755670964717865, -0.0425582230091095, -0.36249804496765137, 0.451224148273468, -0.24200719594955444, 0.017778519541025162, 0.10087136924266815, -0.05274096131324768, 0.41424623131752014, 0.027485353872179985, -0.09224441647529602, -0.08609512448310852, -0.240775004029274, -0.3211272358894348, 0.11061978340148926, -0.12677547335624695, 0.41346970200538635, -0.17619043588638306, -0.3213562071323395, -0.41952279210090637, 0.015968460589647293, -0.3341854214668274, 0.1879395842552185, 0.2340651899576187, 0.01041567325592041, 0.1668914258480072, 0.11904726177453995, 0.07611890137195587, 0.2723380923271179, 0.09307579696178436, -0.24491003155708313, -0.10014082491397858, -0.25912901759147644, -0.01999567821621895, -0.14235526323318481, -0.2868365943431854, -0.10391685366630554, 0.09911207109689713, -0.09187116473913193, -0.15839654207229614, -0.04698771983385086, 0.15262436866760254, -0.007952634245157242, 0.4125000834465027, -0.12674033641815186, -0.05551902949810028, -0.025935210287570953, -0.2938325107097626, -0.23627354204654694, -0.3069847822189331, -0.11960893869400024, -0.20697736740112305, -0.13348141312599182, -0.14952872693538666, 0.29413244128227234, -0.11338261514902115, 0.2720679044723511, 0.2048839032649994, 0.020979614928364754, -0.13109873235225677, 0.03509744256734848, -0.003628823906183243, -0.21244435012340546, -0.24516378343105316, -0.09873637557029724, 0.16802318394184113, -0.2560645043849945, -0.12840813398361206, 0.05714040249586105, -0.3249761760234833, -0.3823208510875702, 0.17053154110908508, -0.19792823493480682, -0.029026523232460022, 0.5316368937492371, 0.09593676030635834, 0.0505765825510025, 0.1557334065437317, 0.14039191603660583, -0.34081751108169556, -0.06990757584571838, -0.2292315661907196, 0.3176361620426178, 0.08362932503223419, -0.1907854527235031, -0.07872002571821213, -0.08769621700048447, -0.20946015417575836, 0.17757733166217804, 0.21580548584461212, -0.0621548593044281, -0.09345769137144089, -0.1083809956908226, -0.23431424796581268, 0.14963477849960327, -0.36167892813682556, -0.4399797320365906, 0.22092047333717346, 0.17576871812343597, -0.2946111261844635, 0.07708042860031128, -0.0218824315816164, 0.3208503723144531, 0.04633285850286484, 0.09113885462284088, 0.09181388467550278, 0.04175315424799919, -0.03488215059041977, -0.17902244627475739, -0.34284570813179016, -0.35422807931900024, -0.13857710361480713, 0.2041584551334381, -0.34457409381866455, -0.14810514450073242, 0.07305465638637543, 0.37618908286094666, 0.22624634206295013, -0.07077203691005707, 0.2620159387588501, 0.49646931886672974, -0.14206521213054657, 0.020205995067954063, 0.2618131935596466, -0.3479643166065216, 0.038945287466049194, 0.12039603292942047, 0.1105894148349762, 0.7259974479675293, -0.1705368161201477, -0.27065935730934143, 0.04658079147338867, 0.24936488270759583, -0.09994462132453918, 0.20311540365219116, 0.04045889899134636, 0.36503931879997253, -0.004091810435056686, -0.11047088354825974, 0.11397478729486465, -0.01789829321205616, -0.029275715351104736, 0.10107056796550751, -0.13705845177173615, -0.0016139186918735504, -0.06534235179424286, 0.15497848391532898, 0.24030321836471558, -0.04119230806827545, 0.10021001100540161, -0.04795258119702339, 0.2280956506729126, 0.3012150824069977, -0.2031024843454361, 0.2046174705028534, 0.04229387640953064, 0.06248020380735397, 0.2254553735256195, 0.08787033706903458, -0.4247789680957794, -0.23242495954036713, 0.27758321166038513, -0.12411341816186905, 0.22564712166786194, 0.48455458879470825, -0.23233073949813843, 0.11955147981643677, -0.029378291219472885, 0.025112783536314964, -0.08480620384216309, 0.005210520699620247, -0.3428601622581482, -0.22045885026454926, 0.18156291544437408, 0.05754237249493599, 0.26551228761672974, -0.36896976828575134, 0.03828401491045952, 0.31362825632095337, -0.04310721904039383, -0.30630210041999817, 0.2688688039779663, -0.49136435985565186, -0.08226501196622849, 0.22808896005153656, 0.46485987305641174, 0.10761507600545883, 0.2788808047771454, 0.4253007769584656, 0.06829416751861572, 0.05181307718157768, -0.044577568769454956, 0.19963020086288452, 0.047904640436172485, 0.4186435043811798, 0.14364153146743774, 0.08310969918966293, 0.09657829999923706, -0.03898854926228523, -0.06463438272476196, -0.0050443606451153755, 0.0042764050886034966, -0.08243860304355621, -0.24268877506256104, -0.09078726917505264, -0.010019376873970032, -0.012167160399258137, -0.21765564382076263, -0.25143787264823914, -0.16269934177398682, 0.12141791731119156, -0.3009016513824463, 0.0510755218565464, -0.06331103295087814, -0.35886433720588684, 0.1681373119354248, 0.013690093532204628, 0.31354382634162903, 0.23851501941680908, 0.13889384269714355, -0.47994810342788696, 0.22591707110404968, -0.13570469617843628, -0.37816354632377625, 0.2379622459411621, -0.41664671897888184, 0.06953953951597214, 0.0819513127207756, -0.2997787296772003, 0.3862544596195221, -0.12782816588878632, 0.006457795388996601, 0.16388753056526184, -0.34232866764068604, -0.25727522373199463, 0.3563472032546997, -0.07302328199148178, -0.10173332691192627, -0.23864343762397766, 0.005729855969548225, -0.3039765954017639, 0.0857311338186264, -0.24003222584724426, -0.26037684082984924, -0.08343025296926498, -0.09324316680431366, 0.19438062608242035, 0.018759798258543015, -0.027861498296260834, 0.02402905374765396, 0.114752858877182, 0.15723678469657898, -0.21346794068813324, 0.14951954782009125, -0.28038689494132996, -0.3806743919849396, 0.1139083057641983, -0.03517451137304306, -0.2225526124238968, 0.04819964990019798, 0.030506890267133713, 0.09311652183532715, -0.15763792395591736, -0.6883490681648254, -0.08882852643728256, -0.15760880708694458, 0.1290764957666397, -0.1252102553844452, 0.15569667518138885, 0.2230456918478012, 0.05399664118885994, -0.12115860730409622, -0.1104235053062439, -0.15637491643428802, 0.041127149015665054, 0.09459470212459564, 0.6660494804382324, -0.19457396864891052, 0.20592492818832397, 0.243673175573349, 0.46270495653152466, 0.4733082950115204, -0.25809815526008606, -0.0867396891117096, -0.006799457594752312, 0.2599474787712097, 0.012500196695327759, 0.3047552704811096, 0.34876495599746704, -0.06934556365013123, -0.042856380343437195, 0.3592761754989624, 0.2311931550502777, -0.0112246572971344, 0.1118728369474411, 0.2965574860572815, 0.10823681205511093, -0.07360944896936417, -0.005964025855064392, 0.4028126299381256, 0.4447231888771057, -0.10624177753925323, 0.14737579226493835, -0.13482894003391266, -0.1046176478266716, -0.1210751086473465, -0.26051759719848633, 0.09954924136400223, -0.10714764893054962, 0.2515937387943268, 0.344848096370697, -0.6651982665061951, 0.32503312826156616, 0.05197717621922493, 0.026448899880051613, 0.06465934216976166, -0.10421475768089294, -0.10223056375980377, 0.08454647660255432, 0.40170836448669434, 0.01580376923084259, -0.17368997633457184, 0.26010721921920776, -0.028570925816893578, -0.3924731910228729, -0.09871209412813187, -0.41333919763565063, -0.41861623525619507, 1.0134057998657227, 0.47790876030921936, -0.198934867978096, -0.07238193601369858, 0.2843051850795746, 0.14225506782531738, -0.0698137879371643, -0.1559869349002838, -0.33039844036102295, -0.15887081623077393, 0.04165671020746231, 0.05858590453863144, -0.023408835753798485, 0.006052276585251093, -0.13934311270713806, -0.11416606605052948, 0.22119605541229248, -0.2400444746017456, 0.030337922275066376, 0.2552056610584259, 0.41715577244758606, 0.2711315453052521, 0.19917818903923035, -0.022170569747686386, 0.35900554060935974, 0.23648245632648468, 0.3872632086277008, 0.07967402040958405, -0.25585880875587463, 0.3316527009010315, -0.005172219127416611, 0.4434926509857178, 0.35732346773147583, -0.02774800732731819, -0.1808558702468872, -0.2613324224948883, 0.16654819250106812, 0.08239523321390152, 0.21233634650707245, 0.3883031904697418, -0.01157592236995697, -0.24624435603618622, -0.11238867044448853, 0.18287667632102966, 0.10397104918956757, -0.0659533366560936, -0.24619323015213013, -0.08138085901737213, 0.020325833931565285, -0.08066151291131973, 0.28850656747817993, 0.8127254843711853, -0.08199061453342438, 0.05961114913225174, 0.041176293045282364, -0.3376252055168152, 0.23989243805408478, -0.06954269856214523, 0.11487598717212677, -0.3390147089958191, -0.08353977650403976, 0.13620994985103607, -0.11373168975114822, -0.2418113350868225, -0.07806886732578278, -0.15532340109348297, 0.03906872868537903, -0.1424751877784729, -0.09211690723896027, -0.09233052283525467, 0.24105221033096313, -0.013318894430994987, 0.1570475548505783, 0.4033716320991516, 0.2571757137775421, 0.24672195315361023, 0.03120913915336132, -0.007686961907893419, -0.09422760456800461, -0.25115782022476196, -0.0310157909989357, -0.4506996273994446, -0.14965420961380005, -0.04153910651803017, 0.04370705038309097, 0.14639593660831451, -0.44778257608413696, -0.05231275409460068, 0.4075409770011902, 0.19180047512054443, 0.17629893124103546, -0.1778768002986908, 0.1143677681684494, 0.15891487896442413, 0.16220754384994507, 0.4319051504135132, 0.21484069526195526, -0.1464109718799591, -0.1885228157043457, -0.29691997170448303, 0.13717743754386902, 0.0668579488992691, 0.050846293568611145, 0.06209374964237213, -0.18321926891803741, 0.008464343845844269, -0.4938530921936035, 0.3007796108722687, 0.02568383887410164, 0.06528714299201965, -0.015288660302758217, 0.2463904321193695, 0.07471168786287308, -0.0519326888024807, 0.03467215597629547, -0.07042062282562256, -0.43629640340805054, -0.16064676642417908, -0.10923369973897934, 0.15914341807365417, 0.36847609281539917, -0.07097414135932922, 0.1098434329032898, 0.03274492174386978, -0.03099437803030014, 0.26324716210365295, -0.3497714102268219, -0.04679598659276962, 0.041174814105033875, 0.06604738533496857, -0.22398236393928528, -0.10873494297266006, 0.19834572076797485, 0.3862469792366028, -0.0009007900953292847, -0.20269784331321716, 0.11716678738594055, -0.36693719029426575, 0.16624397039413452, -0.14059306681156158, 0.4673707187175751, -0.25691717863082886, 0.17297148704528809, -0.022886214777827263, -0.3501439690589905, -0.3971062898635864, -0.12634029984474182, -0.26596859097480774, -0.11352552473545074, -0.39127856492996216, -0.1805749535560608, -0.10140250623226166, -0.01712210848927498, 0.14420028030872345, -0.05240114778280258, -0.12381219863891602, -0.2701585590839386, -0.027882808819413185, 0.05541236698627472, -0.07997078448534012, -0.12377873808145523, 0.07321883738040924, 0.12106648087501526, -0.34723225235939026, -0.05541165918111801, 0.14605388045310974, -0.03953234478831291, 0.22610996663570404, 0.40764763951301575, -0.5039832592010498, 0.07259467989206314, 0.2214103490114212, 0.21205876767635345, 0.3264291286468506, 0.39905762672424316, 0.08246231079101562, 0.4527710974216461, 0.1557217240333557, 0.06853696703910828, -0.01746232993900776, 0.042617686092853546, -0.22377263009548187, -0.03870737552642822, 0.08531893789768219, 0.1677064299583435, 0.13168609142303467, 0.2200065702199936, 0.22729448974132538, 0.1832953691482544, -0.10640949755907059, 0.048275426030159, 0.1594008505344391, 0.30505484342575073, -0.274384081363678, 0.10712284594774246, -0.2487889528274536, 0.36901789903640747, -0.03234736993908882, 0.17794233560562134, 0.17119574546813965, 0.03996460139751434, -0.03352263569831848, 0.07940035313367844, 0.08340588957071304, 0.5254680514335632, -0.016351623460650444, 0.1120552346110344, -0.01855369284749031, 0.40082570910453796, 0.2523585557937622, -0.20617692172527313, 0.16379742324352264, 0.03493687883019447, 0.3331681191921234, -0.11944136023521423, -0.28567296266555786, 0.29205557703971863, 0.3565743863582611, -0.1682107299566269, 0.33400270342826843, 0.1833135485649109, -0.06671307981014252, 0.017981451004743576, -0.08595554530620575, 0.1677904725074768, -0.012094701640307903, -0.0016967514529824257, -0.7779326438903809, 0.05127423256635666, -0.056156761944293976, -0.10494972765445709, 0.12080958485603333, -0.08152011036872864, 0.17091888189315796, 0.33472496271133423, -0.23473647236824036, -0.12702882289886475, 0.05502010136842728, -0.07581090927124023, -0.13941413164138794, -0.05091829597949982, 0.10899249464273453, 0.20494738221168518, 0.07400844991207123, -0.2799776494503021, 0.21236209571361542, 0.07560980319976807, 0.10400274395942688, -0.10481676459312439, 0.4057822823524475, 0.28502199053764343, -0.08171545714139938, 0.016661077737808228, -0.09043942391872406, 0.2010718137025833, 0.10498973727226257, -0.2600874900817871, 0.09408798813819885, 0.33851078152656555, 0.07876735925674438, 0.2597366273403168, 0.20111238956451416, -0.13432933390140533, -0.24169199168682098, -0.2874896228313446, 0.050415001809597015, -0.18829286098480225, 0.1537919044494629, -0.1491672396659851, -0.09165169298648834, 0.05430513992905617, 0.13055165112018585, -0.4923567473888397, 0.22768981754779816, 0.3193548321723938, 0.05561170354485512, 0.13013088703155518, -0.01937941461801529, 0.11609448492527008, -0.27945676445961, -0.022717494517564774, 0.24742391705513, 0.2013022005558014, 0.087941475212574, -0.581574559211731, -0.09237462282180786, 0.31054043769836426, -0.16546760499477386, -0.3447999954223633, 0.05326163023710251, 0.3007673919200897, 0.03726835548877716, 0.037697333842515945, 0.19740736484527588, -0.1079811155796051, -0.2613871991634369, 0.1192394271492958, -0.30531373620033264, 0.015738746151328087, 0.0029160380363464355, 0.024956440553069115, 0.17743735015392303, -0.016139652580022812, 0.05651034414768219, -0.13105317950248718, 0.015971750020980835, -0.11696968972682953, 0.02399984747171402, 0.32449692487716675, 0.21143542230129242, 0.3351796567440033, 0.1502852886915207, 0.4356198310852051, -0.11513228714466095, -0.3086128532886505, -0.10748793184757233, 0.05397898703813553, 0.04323895275592804, -0.10129562765359879, -0.3373301327228546, -0.2797777056694031, -0.19995926320552826, 0.039729516953229904, 0.21891537308692932, 0.4644095003604889, 0.2239392250776291, -0.14496903121471405, -0.23409315943717957, -0.09603957831859589, -0.1071276143193245, -0.33279478549957275, 0.17314650118350983, 0.2569659352302551, -0.1455279290676117, -0.27069729566574097, 0.01752416044473648, -0.004645980894565582, 0.3147622048854828, -0.18139922618865967, 0.10842776298522949, -0.3498392403125763, -0.15410640835762024, 0.24462342262268066, -0.1181633397936821, -0.41305264830589294, 0.07198972254991531, 0.3762161433696747, 0.32415586709976196, -0.09674985706806183, 0.3059368431568146, 0.14065130054950714, -0.18889163434505463, -0.0053488947451114655, 0.7830973863601685, -0.30708134174346924, -0.42964255809783936, -0.11242811381816864, -0.06672387570142746 ]
https://github.com/huggingface/datasets/issues/1981
wmt datasets fail to load
yes, of course, I reverted to the version before that and it works ;) but since a new release was just made you will probably need to make a hotfix. and add the wmt to the tests?
on master: ``` python -c 'from datasets import load_dataset; load_dataset("wmt14", "de-en")' Downloading and preparing dataset wmt14/de-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/stas/.cache/huggingface/datasets/wmt14/de-en/1.0.0/43e717d978d2261502b0194999583acb874ba73b0f4aed0ada2889d1bb00f36e... Traceback (most recent call last): File "<string>", line 1, in <module> File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/builder.py", line 578, in download_and_prepare self._download_and_prepare( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/builder.py", line 634, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/stas/.cache/huggingface/modules/datasets_modules/datasets/wmt14/43e717d978d2261502b0194999583acb874ba73b0f4aed0ada2889d1bb00f36e/wmt_utils.py", line 760, in _split_generators extraction_map = dict(downloaded_files, **manual_files) ``` it worked fine recently. same problem if I try wmt16. git bisect points to this commit from Feb 25 as the culprit https://github.com/huggingface/datasets/commit/792f1d9bb1c5361908f73e2ef7f0181b2be409fa @albertvillanova
37
wmt datasets fail to load on master: ``` python -c 'from datasets import load_dataset; load_dataset("wmt14", "de-en")' Downloading and preparing dataset wmt14/de-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/stas/.cache/huggingface/datasets/wmt14/de-en/1.0.0/43e717d978d2261502b0194999583acb874ba73b0f4aed0ada2889d1bb00f36e... Traceback (most recent call last): File "<string>", line 1, in <module> File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/builder.py", line 578, in download_and_prepare self._download_and_prepare( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/builder.py", line 634, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/stas/.cache/huggingface/modules/datasets_modules/datasets/wmt14/43e717d978d2261502b0194999583acb874ba73b0f4aed0ada2889d1bb00f36e/wmt_utils.py", line 760, in _split_generators extraction_map = dict(downloaded_files, **manual_files) ``` it worked fine recently. same problem if I try wmt16. git bisect points to this commit from Feb 25 as the culprit https://github.com/huggingface/datasets/commit/792f1d9bb1c5361908f73e2ef7f0181b2be409fa @albertvillanova yes, of course, I reverted to the version before that and it works ;) but since a new release was just made you will probably need to make a hotfix. and add the wmt to the tests?
[ -0.32907193899154663, -0.058494262397289276, -0.010408008471131325, 0.5395736694335938, 0.3104318380355835, 0.0041045621037483215, 0.20978009700775146, 0.08727017790079117, 0.31293514370918274, 0.10788632929325104, -0.022499706596136093, -0.12566184997558594, -0.29693156480789185, 0.18879450857639313, 0.11141669750213623, 0.18481960892677307, -0.1364240050315857, 0.00585397332906723, -0.8216053247451782, 0.01586899161338806, -0.18384934961795807, 0.19848424196243286, -0.16734208166599274, -0.09697246551513672, -0.5068026185035706, 0.2375524491071701, -0.030008822679519653, 0.2536420524120331, -0.2113710194826126, -0.4816317558288574, 0.5141909122467041, 0.03097504749894142, 0.051851317286491394, 0.5576851963996887, -0.00011410436854930595, 0.15152542293071747, 0.29352450370788574, -0.010245817713439465, -0.24660298228263855, -0.29741209745407104, -0.5779011845588684, -0.38273191452026367, 0.021960651502013206, 0.2245502471923828, -0.18846163153648376, 0.08209525793790817, -0.24006642401218414, -0.3640686869621277, 0.2820509076118469, 0.2943233251571655, 0.2214951366186142, 0.4151586890220642, 0.27894607186317444, -0.3091941773891449, 0.051097653806209564, 0.290771484375, -0.13798768818378448, -0.02800120785832405, 0.013575345277786255, -0.13521736860275269, 0.023276574909687042, 0.031645286828279495, 0.07332310080528259, 0.3297722041606903, 0.34579384326934814, -0.15872330963611603, 0.285740464925766, -0.008102737367153168, 0.2792249321937561, 0.05777999758720398, 0.19649559259414673, -0.07577904313802719, -0.23603951930999756, -0.05943118780851364, -0.13069522380828857, -0.4276524782180786, 0.25920283794403076, 0.2658739686012268, 0.030344273895025253, 0.2660057842731476, -0.3589407205581665, 0.07395801693201065, 0.22120824456214905, 0.03178746998310089, -0.3881676495075226, 0.3771405816078186, -0.31149426102638245, 0.0018197260797023773, 0.2749299108982086, -0.19026868045330048, 0.1660654991865158, -0.11145973205566406, -0.018748272210359573, 0.08372054249048233, -0.5072568655014038, 0.26169174909591675, 0.025559719651937485, 0.2756202220916748, -0.08005708456039429, 0.15823689103126526, -0.2520159184932709, 0.014927629381418228, 0.20893779397010803, -0.015564925968647003, 0.1787935197353363, 0.13862453401088715, -0.10994485765695572, -0.062659852206707, 0.274922251701355, 0.055098213255405426, -0.1853412389755249, 0.1351206749677658, -0.17037884891033173, -0.44336530566215515, -0.08917561173439026, -0.18943122029304504, 0.1525506228208542, -0.07202714681625366, -0.2599218487739563, 0.06353207677602768, 0.13551828265190125, -0.3142126798629761, 0.020418863743543625, 0.2855191230773926, 0.048408813774585724, 0.17023730278015137, 0.11796155571937561, 0.003653271123766899, -0.004202693700790405, -0.03577065467834473, -0.3564472794532776, -0.39062005281448364, -0.2991640567779541, 0.06112080067396164, 0.40783941745758057, -0.21857240796089172, 0.22830288112163544, 0.00041116029024124146, -0.13100437819957733, -0.12732087075710297, -0.22692903876304626, -0.007741729263216257, 0.2188926637172699, 0.48240309953689575, 0.07109299302101135, 0.2990787923336029, 0.24436655640602112, 0.1595919132232666, -0.008130796253681183, -0.007438965141773224, -0.09953901916742325, -0.2956002950668335, 0.12952107191085815, 0.2581731379032135, -0.08152320981025696, 0.15706396102905273, -0.22945067286491394, -0.11366282403469086, 0.10501961410045624, 0.3215995132923126, -0.1928716003894806, -0.24175457656383514, -0.16372540593147278, -0.06663879752159119, 0.5321366786956787, 0.5977168679237366, 0.009566176682710648, -0.1942434161901474, -0.3947504460811615, -0.04718605801463127, 0.23443353176116943, 0.3322232663631439, -0.029823768883943558, 0.10070206224918365, -0.260995477437973, -0.24706058204174042, -0.08204642683267593, -0.05945007875561714, -0.183284193277359, 0.13714534044265747, -0.13132387399673462, 0.2751171290874481, 0.032451458275318146, -0.12638048827648163, 0.014531425200402737, -0.22653542459011078, 0.34289053082466125, 0.08913625776767731, -0.15807798504829407, 0.08362795412540436, -0.07941610366106033, -0.3164914548397064, 0.24742822349071503, 0.188627228140831, 0.19368183612823486, -0.18961668014526367, 0.21572498977184296, 0.024288207292556763, 0.0684090107679367, 0.05708950757980347, 0.129250168800354, 0.038518816232681274, 0.08485783636569977, -0.012777797877788544, -0.08891846984624863, 0.05340246856212616, -0.44730257987976074, 0.29648831486701965, 0.2691924273967743, 0.0437411330640316, 0.11734650284051895, 0.12081678211688995, -0.16221857070922852, 0.1335766613483429, -0.3434741497039795, -0.18876855075359344, 0.08767978847026825, 0.13490287959575653, -0.0035161394625902176, -0.14503434300422668, -0.038808006793260574, -0.02397805266082287, -0.2259172797203064, 0.14871419966220856, 0.24453294277191162, 0.06671956926584244, -0.14334510266780853, -0.1252082735300064, 0.2802845239639282, 0.2743450403213501, 0.16356036067008972, -0.16976895928382874, -0.1630629301071167, 0.09085767716169357, 0.13997486233711243, 0.3951959013938904, -0.08718659728765488, 0.10392157733440399, 0.17919187247753143, -0.4736977815628052, 0.16994324326515198, 0.13616161048412323, -0.14026868343353271, -0.2992376685142517, 0.1204284280538559, 0.04246184974908829, -0.11031593382358551, 0.2675851285457611, 0.11755944788455963, 0.035734713077545166, 0.16481773555278778, 0.07099002599716187, 0.1453135758638382, -0.38792145252227783, 0.28014668822288513, -0.0923154205083847, 0.342855840921402, 0.2670232951641083, 0.023953691124916077, -0.04255003482103348, 0.380538672208786, 0.1634017676115036, 0.20223495364189148, 0.0150984488427639, -0.38560065627098083, -0.08566152304410934, -0.0661868080496788, 0.050184983760118484, 0.39677345752716064, 0.0735272616147995, 0.09358692914247513, 0.17863629758358002, 0.1149711012840271, -0.3025267422199249, 0.4467020630836487, -0.07497899234294891, -0.07670669257640839, 0.3043878674507141, -0.02355940453708172, -0.07227760553359985, -0.2620560824871063, 0.5669640898704529, 0.058210261166095734, 0.006217313930392265, -0.1975160390138626, -0.2630079984664917, -0.4342725872993469, 0.2357843816280365, -0.3500570058822632, -0.5691422820091248, -0.20526406168937683, -0.20574329793453217, -0.2758673429489136, 0.11813656985759735, -0.09885376691818237, 0.2478710114955902, 0.06874626874923706, 0.21888890862464905, -0.04907882213592529, 0.3465985655784607, -0.09770283102989197, -0.2259610891342163, -0.10649795085191727, 0.03910538926720619, 0.5312058329582214, -0.2995472252368927, 0.3275356888771057, -0.19571347534656525, 0.06398872286081314, -0.20025905966758728, -0.22829708456993103, 0.08723188936710358, -0.047870151698589325, 0.3465411365032196, 0.21176856756210327, -0.023282036185264587, 0.3644337058067322, -0.10893479734659195, 0.3259529769420624, -0.1572982668876648, -0.015334568917751312, 0.0034699682146310806, -0.04454423859715462, -0.14267030358314514, -0.22285400331020355, -0.3446229100227356, -0.440805584192276, -0.3883454501628876, -0.010653063654899597, -0.026188936084508896, -0.041893839836120605, 0.09175796806812286, -0.1342879682779312, -0.05323022976517677, -0.01781129464507103, -0.025890355929732323, -0.3486144542694092, -0.2984476685523987, 0.20006705820560455, -0.30206429958343506, -0.28192436695098877, 0.23929280042648315, 0.13543707132339478, 0.4544386565685272, 0.04012768715620041, -0.39373892545700073, 0.5808193683624268, -0.13911129534244537, -0.1142631322145462, 0.1804572492837906, 0.30906355381011963, -0.09056590497493744, 0.16540446877479553, -0.04958571493625641, -0.16574788093566895, -0.2646006941795349, -0.18060189485549927, -0.23206648230552673, 0.15910457074642181, -0.1456703543663025, 0.06278622895479202, 0.010418035089969635, 0.8047191500663757, 0.06547841429710388, -0.294353187084198, 0.18274539709091187, 0.1267123520374298, 0.22185368835926056, -0.0006967410445213318, -0.5895354151725769, 0.2010108381509781, -0.09861728549003601, 0.22158372402191162, 0.3626626133918762, 0.043291084468364716, 0.1737743765115738, -0.11392209678888321, 0.19395984709262848, -0.18877893686294556, -0.3513714373111725, -0.1281632035970688, 0.20051026344299316, 0.3849678039550781, 0.09005260467529297, 0.12198890000581741, 0.02739161252975464, -0.09549248963594437, -0.00953587330877781, 0.35470157861709595, 0.12224739789962769, 0.08853304386138916, -0.10506351292133331, -0.05601249262690544, -0.23697498440742493, 0.05358906462788582, -0.19320541620254517, 0.45756322145462036, -0.0324503555893898, -0.12304750829935074, -0.04231591522693634, -0.018290573731064796, 0.5026885867118835, 0.19673912227153778, 0.39276963472366333, 0.10224755108356476, -0.4248225688934326, -0.2393004596233368, -0.1275758594274521, 0.0902228057384491, -0.07357800006866455, 0.12852050364017487, 0.18462111055850983, -0.20202882587909698, -0.5072080492973328, 0.2025780826807022, 0.11079109460115433, -0.18881279230117798, -0.11982733011245728, -0.1453295201063156, 0.02494926005601883, -0.29022103548049927, -0.07774067670106888, -0.2248145043849945, 0.1797916293144226, -0.40493863821029663, -0.02397262491285801, -0.15451815724372864, -0.07883806526660919, 0.15115898847579956, 0.06572160124778748, 0.09346508234739304, 0.04429992288351059, 0.49238139390945435, 0.31229734420776367, 0.32004937529563904, 0.5650812387466431, 0.6159527897834778, -0.10106369853019714, 0.034418683499097824, 0.0835057944059372, 0.01637929677963257, 0.05228253826498985, 0.2831600308418274, -0.07817678153514862, 0.11110049486160278, 0.04386186599731445, 0.11074797809123993, -0.5960835814476013, 0.12400148808956146, 0.20190812647342682, 0.0680200383067131, -0.35724133253097534, -0.09975926578044891, 0.1946081966161728, 0.026873696595430374, 0.20069776475429535, 0.1760101020336151, 0.1702604740858078, -0.3972955346107483, -0.4666159749031067, 0.01681913435459137, 0.4947304129600525, -0.07358752191066742, 0.22224310040473938, -0.1423189342021942, -0.11037734895944595, 0.05664823576807976, 0.2778765559196472, -0.11726561188697815, -0.19149483740329742, 0.17908507585525513, 0.03193071484565735, -0.15855570137500763, 0.08609454333782196, 0.11525708436965942, -0.07403635233640671, 0.27611008286476135, 0.047311052680015564, 0.5473364591598511, 0.13990306854248047, 0.0827617198228836, -0.13338841497898102, -0.257003515958786, -0.2534720003604889, 0.14690124988555908, -0.040101923048496246, 0.3355656564235687, -0.23143866658210754, -0.10192489624023438, 0.31197452545166016, -0.06653502583503723, -0.2452952116727829, 0.00657934695482254, -0.6495987772941589, 0.1033412516117096, -0.035761285573244095, -0.103101946413517, 0.36922430992126465, -0.2313641607761383, 0.18111541867256165, 0.31997641921043396, -0.1902635246515274, 0.1010996550321579, -0.31379464268684387, 0.03833193704485893, -0.23027189075946808, 0.2646707594394684, 0.10080141574144363, -0.033616796135902405, -0.06036468967795372, -0.1086396649479866, -0.0407438687980175, -0.05392929166555405, 0.03385224938392639, 0.050771161913871765, -0.05529211461544037, -0.049336016178131104, -0.3194895386695862, 0.011819854378700256, 0.013151746243238449, -0.15111088752746582, 0.15436112880706787, 0.02908092364668846, -0.054928213357925415, 0.32918503880500793, -0.05495497211813927, -0.10675458610057831, -0.058550406247377396, 0.414590060710907, -0.26236167550086975, 0.022986114025115967, 0.3038802444934845, 0.41510719060897827, -0.017547883093357086, -0.28132718801498413, -0.06851477175951004, 0.09080655872821808, -0.24481120705604553, 0.27016735076904297, 0.11642146855592728, -0.08998148143291473, 0.38016775250434875, 0.5611444711685181, 0.342260479927063, -0.14982518553733826, 0.012246739119291306, -0.28683650493621826, -0.19111819565296173, 0.06081492453813553, -0.1435583382844925, 0.16259469091892242, 0.027714021503925323, 0.4404922425746918, -0.17470510303974152, 0.3926442265510559, -0.30593597888946533, 0.27493780851364136, -0.09475702792406082, -0.000058183446526527405, 0.21237292885780334, -0.15855348110198975, 0.15915870666503906, -0.09213447570800781, 0.04122515767812729, -0.03402690589427948, -0.5342016816139221, -0.21376070380210876, -0.11785957217216492, 0.09453805536031723, 0.09808217734098434, -0.27111488580703735, 0.16907458007335663, -0.10803552716970444, 0.08079562336206436, -0.16971120238304138, 0.34704694151878357, 0.06606924533843994, -0.12226046621799469, 0.022902507334947586, 0.07030072063207626, 0.06582561135292053, -0.16896110773086548, 0.1390579640865326, 0.07145338505506516, -0.06772729754447937, -0.004992922302335501, -0.041077978909015656, 0.04417871683835983, 0.020838044583797455, 0.1150297075510025, 0.01028750091791153, -0.02165897935628891, 0.11822184175252914, 0.509399950504303, -0.3056080937385559, -0.25251108407974243, 0.26381129026412964, 0.28566694259643555, 0.16861793398857117, 0.051361776888370514, 0.06142774969339371, -0.16902199387550354, 0.17126987874507904, -0.29538440704345703, -0.07953903079032898, -0.03775757923722267, 0.16378173232078552, 0.08571270108222961, 0.04997243732213974, 0.3570749759674072, -0.21518956124782562, -0.2337026447057724, 0.35498762130737305, 0.3251190483570099, -0.11169223487377167, 0.17485353350639343, 0.4612632393836975, 0.08477871119976044, 0.20866727828979492, 0.10753433406352997, -0.1653205156326294, 0.10477466881275177, 0.3765079379081726, -0.23962637782096863, 0.680370032787323, 0.06465374678373337, 0.006373293697834015, 0.24075540900230408, -0.41432812809944153, 0.11077095568180084, 0.26909780502319336, -0.1568296253681183, 0.024420179426670074, -0.26308101415634155, 0.13773304224014282, -0.34020113945007324, -0.2731529772281647, -0.18553663790225983, 0.19849227368831635, -0.0655512809753418, -0.12541396915912628, -0.25567567348480225, -0.11668610572814941, -0.07807502895593643, 0.027362387627363205, -0.07522279024124146, -0.10226817429065704, 0.25959253311157227, 0.17326080799102783, -0.1564747542142868, -0.40464797616004944, -0.3694784641265869, 0.016144240275025368, -0.09832116216421127, -0.12282145023345947, 0.25600799918174744, 0.4048370122909546, -0.21233734488487244, 0.13849541544914246, 0.40516260266304016, 0.47156742215156555, 0.3013877868652344, -0.01928633078932762, -0.08603359013795853, 0.08719691634178162, -0.08513972163200378, -0.2775002419948578, 0.41972658038139343, -0.2568068206310272, -0.15734171867370605, 0.004949338734149933, 0.16996346414089203, -0.18624229729175568, -0.36442500352859497, 0.12785623967647552, -0.312605082988739, -0.28356245160102844, 0.19259682297706604, -0.08869684487581253, -0.05764871463179588, -0.04640498012304306, 0.38013118505477905, -0.04635748639702797, 0.22710709273815155, 0.6677181720733643, -0.02753516100347042, 0.12809234857559204, -0.24235892295837402, 0.10048851370811462, 0.08526210486888885, 0.719906210899353, 0.2930559813976288, -0.08171448856592178, -0.2865349054336548, -0.5099942088127136, -0.7815920114517212, 0.048260077834129333, 0.15429113805294037, 0.4362877905368805, 0.07365288585424423, 0.04398801177740097, 0.1192261278629303, -0.02252999320626259, 0.15371666848659515, 0.12201902270317078, 0.2925752103328705, -0.2151339054107666, -0.3548644185066223, 0.17969530820846558, -0.09501537680625916, -0.19067220389842987, -0.005381263792514801, -0.32201990485191345, 0.14668790996074677, -0.27889272570610046, 0.02470320463180542, -0.2417234629392624, 0.42358943819999695, 0.0029745828360319138, 0.287581205368042, 0.21881239116191864, 0.08809083700180054, 0.30637127161026, 0.010798502713441849, -0.06305795162916183, -0.41973257064819336, -0.31127816438674927, 0.014537611044943333, 0.08607403934001923, -0.10746857523918152, 0.3646841049194336, -0.053701192140579224, -0.2685219347476959, -0.4432086646556854, 0.10508588701486588, 0.11436872184276581, 0.20233547687530518, -0.17699383199214935, 0.22221094369888306, -0.21476879715919495, -0.17331434786319733, 0.344375878572464, 0.4282420575618744, -0.029237285256385803, 0.18783731758594513, -0.21067628264427185, -0.38733208179473877, 0.2546340227127075, -0.28877824544906616, -0.16298481822013855, -0.4629840850830078, 0.17723648250102997, -0.09543926268815994, -0.1698627769947052, -0.42177996039390564, 0.15284335613250732, 0.17121748626232147, -0.10168138891458511, -0.21474716067314148, 0.37261301279067993, -0.04605422168970108, -0.06841431558132172, -0.018581615760922432, 0.16946753859519958, 0.18038463592529297, -0.33431875705718994, -0.11396193504333496, -0.0598333477973938 ]
https://github.com/huggingface/datasets/issues/1981
wmt datasets fail to load
@stas00 it is fixed. @lhoestq are you releasing the hot fix or would you prefer me to do it?
on master: ``` python -c 'from datasets import load_dataset; load_dataset("wmt14", "de-en")' Downloading and preparing dataset wmt14/de-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/stas/.cache/huggingface/datasets/wmt14/de-en/1.0.0/43e717d978d2261502b0194999583acb874ba73b0f4aed0ada2889d1bb00f36e... Traceback (most recent call last): File "<string>", line 1, in <module> File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/builder.py", line 578, in download_and_prepare self._download_and_prepare( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/builder.py", line 634, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/stas/.cache/huggingface/modules/datasets_modules/datasets/wmt14/43e717d978d2261502b0194999583acb874ba73b0f4aed0ada2889d1bb00f36e/wmt_utils.py", line 760, in _split_generators extraction_map = dict(downloaded_files, **manual_files) ``` it worked fine recently. same problem if I try wmt16. git bisect points to this commit from Feb 25 as the culprit https://github.com/huggingface/datasets/commit/792f1d9bb1c5361908f73e2ef7f0181b2be409fa @albertvillanova
19
wmt datasets fail to load on master: ``` python -c 'from datasets import load_dataset; load_dataset("wmt14", "de-en")' Downloading and preparing dataset wmt14/de-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/stas/.cache/huggingface/datasets/wmt14/de-en/1.0.0/43e717d978d2261502b0194999583acb874ba73b0f4aed0ada2889d1bb00f36e... Traceback (most recent call last): File "<string>", line 1, in <module> File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/builder.py", line 578, in download_and_prepare self._download_and_prepare( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/builder.py", line 634, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/stas/.cache/huggingface/modules/datasets_modules/datasets/wmt14/43e717d978d2261502b0194999583acb874ba73b0f4aed0ada2889d1bb00f36e/wmt_utils.py", line 760, in _split_generators extraction_map = dict(downloaded_files, **manual_files) ``` it worked fine recently. same problem if I try wmt16. git bisect points to this commit from Feb 25 as the culprit https://github.com/huggingface/datasets/commit/792f1d9bb1c5361908f73e2ef7f0181b2be409fa @albertvillanova @stas00 it is fixed. @lhoestq are you releasing the hot fix or would you prefer me to do it?
[ -0.32907193899154663, -0.058494262397289276, -0.010408008471131325, 0.5395736694335938, 0.3104318380355835, 0.0041045621037483215, 0.20978009700775146, 0.08727017790079117, 0.31293514370918274, 0.10788632929325104, -0.022499706596136093, -0.12566184997558594, -0.29693156480789185, 0.18879450857639313, 0.11141669750213623, 0.18481960892677307, -0.1364240050315857, 0.00585397332906723, -0.8216053247451782, 0.01586899161338806, -0.18384934961795807, 0.19848424196243286, -0.16734208166599274, -0.09697246551513672, -0.5068026185035706, 0.2375524491071701, -0.030008822679519653, 0.2536420524120331, -0.2113710194826126, -0.4816317558288574, 0.5141909122467041, 0.03097504749894142, 0.051851317286491394, 0.5576851963996887, -0.00011410436854930595, 0.15152542293071747, 0.29352450370788574, -0.010245817713439465, -0.24660298228263855, -0.29741209745407104, -0.5779011845588684, -0.38273191452026367, 0.021960651502013206, 0.2245502471923828, -0.18846163153648376, 0.08209525793790817, -0.24006642401218414, -0.3640686869621277, 0.2820509076118469, 0.2943233251571655, 0.2214951366186142, 0.4151586890220642, 0.27894607186317444, -0.3091941773891449, 0.051097653806209564, 0.290771484375, -0.13798768818378448, -0.02800120785832405, 0.013575345277786255, -0.13521736860275269, 0.023276574909687042, 0.031645286828279495, 0.07332310080528259, 0.3297722041606903, 0.34579384326934814, -0.15872330963611603, 0.285740464925766, -0.008102737367153168, 0.2792249321937561, 0.05777999758720398, 0.19649559259414673, -0.07577904313802719, -0.23603951930999756, -0.05943118780851364, -0.13069522380828857, -0.4276524782180786, 0.25920283794403076, 0.2658739686012268, 0.030344273895025253, 0.2660057842731476, -0.3589407205581665, 0.07395801693201065, 0.22120824456214905, 0.03178746998310089, -0.3881676495075226, 0.3771405816078186, -0.31149426102638245, 0.0018197260797023773, 0.2749299108982086, -0.19026868045330048, 0.1660654991865158, -0.11145973205566406, -0.018748272210359573, 0.08372054249048233, -0.5072568655014038, 0.26169174909591675, 0.025559719651937485, 0.2756202220916748, -0.08005708456039429, 0.15823689103126526, -0.2520159184932709, 0.014927629381418228, 0.20893779397010803, -0.015564925968647003, 0.1787935197353363, 0.13862453401088715, -0.10994485765695572, -0.062659852206707, 0.274922251701355, 0.055098213255405426, -0.1853412389755249, 0.1351206749677658, -0.17037884891033173, -0.44336530566215515, -0.08917561173439026, -0.18943122029304504, 0.1525506228208542, -0.07202714681625366, -0.2599218487739563, 0.06353207677602768, 0.13551828265190125, -0.3142126798629761, 0.020418863743543625, 0.2855191230773926, 0.048408813774585724, 0.17023730278015137, 0.11796155571937561, 0.003653271123766899, -0.004202693700790405, -0.03577065467834473, -0.3564472794532776, -0.39062005281448364, -0.2991640567779541, 0.06112080067396164, 0.40783941745758057, -0.21857240796089172, 0.22830288112163544, 0.00041116029024124146, -0.13100437819957733, -0.12732087075710297, -0.22692903876304626, -0.007741729263216257, 0.2188926637172699, 0.48240309953689575, 0.07109299302101135, 0.2990787923336029, 0.24436655640602112, 0.1595919132232666, -0.008130796253681183, -0.007438965141773224, -0.09953901916742325, -0.2956002950668335, 0.12952107191085815, 0.2581731379032135, -0.08152320981025696, 0.15706396102905273, -0.22945067286491394, -0.11366282403469086, 0.10501961410045624, 0.3215995132923126, -0.1928716003894806, -0.24175457656383514, -0.16372540593147278, -0.06663879752159119, 0.5321366786956787, 0.5977168679237366, 0.009566176682710648, -0.1942434161901474, -0.3947504460811615, -0.04718605801463127, 0.23443353176116943, 0.3322232663631439, -0.029823768883943558, 0.10070206224918365, -0.260995477437973, -0.24706058204174042, -0.08204642683267593, -0.05945007875561714, -0.183284193277359, 0.13714534044265747, -0.13132387399673462, 0.2751171290874481, 0.032451458275318146, -0.12638048827648163, 0.014531425200402737, -0.22653542459011078, 0.34289053082466125, 0.08913625776767731, -0.15807798504829407, 0.08362795412540436, -0.07941610366106033, -0.3164914548397064, 0.24742822349071503, 0.188627228140831, 0.19368183612823486, -0.18961668014526367, 0.21572498977184296, 0.024288207292556763, 0.0684090107679367, 0.05708950757980347, 0.129250168800354, 0.038518816232681274, 0.08485783636569977, -0.012777797877788544, -0.08891846984624863, 0.05340246856212616, -0.44730257987976074, 0.29648831486701965, 0.2691924273967743, 0.0437411330640316, 0.11734650284051895, 0.12081678211688995, -0.16221857070922852, 0.1335766613483429, -0.3434741497039795, -0.18876855075359344, 0.08767978847026825, 0.13490287959575653, -0.0035161394625902176, -0.14503434300422668, -0.038808006793260574, -0.02397805266082287, -0.2259172797203064, 0.14871419966220856, 0.24453294277191162, 0.06671956926584244, -0.14334510266780853, -0.1252082735300064, 0.2802845239639282, 0.2743450403213501, 0.16356036067008972, -0.16976895928382874, -0.1630629301071167, 0.09085767716169357, 0.13997486233711243, 0.3951959013938904, -0.08718659728765488, 0.10392157733440399, 0.17919187247753143, -0.4736977815628052, 0.16994324326515198, 0.13616161048412323, -0.14026868343353271, -0.2992376685142517, 0.1204284280538559, 0.04246184974908829, -0.11031593382358551, 0.2675851285457611, 0.11755944788455963, 0.035734713077545166, 0.16481773555278778, 0.07099002599716187, 0.1453135758638382, -0.38792145252227783, 0.28014668822288513, -0.0923154205083847, 0.342855840921402, 0.2670232951641083, 0.023953691124916077, -0.04255003482103348, 0.380538672208786, 0.1634017676115036, 0.20223495364189148, 0.0150984488427639, -0.38560065627098083, -0.08566152304410934, -0.0661868080496788, 0.050184983760118484, 0.39677345752716064, 0.0735272616147995, 0.09358692914247513, 0.17863629758358002, 0.1149711012840271, -0.3025267422199249, 0.4467020630836487, -0.07497899234294891, -0.07670669257640839, 0.3043878674507141, -0.02355940453708172, -0.07227760553359985, -0.2620560824871063, 0.5669640898704529, 0.058210261166095734, 0.006217313930392265, -0.1975160390138626, -0.2630079984664917, -0.4342725872993469, 0.2357843816280365, -0.3500570058822632, -0.5691422820091248, -0.20526406168937683, -0.20574329793453217, -0.2758673429489136, 0.11813656985759735, -0.09885376691818237, 0.2478710114955902, 0.06874626874923706, 0.21888890862464905, -0.04907882213592529, 0.3465985655784607, -0.09770283102989197, -0.2259610891342163, -0.10649795085191727, 0.03910538926720619, 0.5312058329582214, -0.2995472252368927, 0.3275356888771057, -0.19571347534656525, 0.06398872286081314, -0.20025905966758728, -0.22829708456993103, 0.08723188936710358, -0.047870151698589325, 0.3465411365032196, 0.21176856756210327, -0.023282036185264587, 0.3644337058067322, -0.10893479734659195, 0.3259529769420624, -0.1572982668876648, -0.015334568917751312, 0.0034699682146310806, -0.04454423859715462, -0.14267030358314514, -0.22285400331020355, -0.3446229100227356, -0.440805584192276, -0.3883454501628876, -0.010653063654899597, -0.026188936084508896, -0.041893839836120605, 0.09175796806812286, -0.1342879682779312, -0.05323022976517677, -0.01781129464507103, -0.025890355929732323, -0.3486144542694092, -0.2984476685523987, 0.20006705820560455, -0.30206429958343506, -0.28192436695098877, 0.23929280042648315, 0.13543707132339478, 0.4544386565685272, 0.04012768715620041, -0.39373892545700073, 0.5808193683624268, -0.13911129534244537, -0.1142631322145462, 0.1804572492837906, 0.30906355381011963, -0.09056590497493744, 0.16540446877479553, -0.04958571493625641, -0.16574788093566895, -0.2646006941795349, -0.18060189485549927, -0.23206648230552673, 0.15910457074642181, -0.1456703543663025, 0.06278622895479202, 0.010418035089969635, 0.8047191500663757, 0.06547841429710388, -0.294353187084198, 0.18274539709091187, 0.1267123520374298, 0.22185368835926056, -0.0006967410445213318, -0.5895354151725769, 0.2010108381509781, -0.09861728549003601, 0.22158372402191162, 0.3626626133918762, 0.043291084468364716, 0.1737743765115738, -0.11392209678888321, 0.19395984709262848, -0.18877893686294556, -0.3513714373111725, -0.1281632035970688, 0.20051026344299316, 0.3849678039550781, 0.09005260467529297, 0.12198890000581741, 0.02739161252975464, -0.09549248963594437, -0.00953587330877781, 0.35470157861709595, 0.12224739789962769, 0.08853304386138916, -0.10506351292133331, -0.05601249262690544, -0.23697498440742493, 0.05358906462788582, -0.19320541620254517, 0.45756322145462036, -0.0324503555893898, -0.12304750829935074, -0.04231591522693634, -0.018290573731064796, 0.5026885867118835, 0.19673912227153778, 0.39276963472366333, 0.10224755108356476, -0.4248225688934326, -0.2393004596233368, -0.1275758594274521, 0.0902228057384491, -0.07357800006866455, 0.12852050364017487, 0.18462111055850983, -0.20202882587909698, -0.5072080492973328, 0.2025780826807022, 0.11079109460115433, -0.18881279230117798, -0.11982733011245728, -0.1453295201063156, 0.02494926005601883, -0.29022103548049927, -0.07774067670106888, -0.2248145043849945, 0.1797916293144226, -0.40493863821029663, -0.02397262491285801, -0.15451815724372864, -0.07883806526660919, 0.15115898847579956, 0.06572160124778748, 0.09346508234739304, 0.04429992288351059, 0.49238139390945435, 0.31229734420776367, 0.32004937529563904, 0.5650812387466431, 0.6159527897834778, -0.10106369853019714, 0.034418683499097824, 0.0835057944059372, 0.01637929677963257, 0.05228253826498985, 0.2831600308418274, -0.07817678153514862, 0.11110049486160278, 0.04386186599731445, 0.11074797809123993, -0.5960835814476013, 0.12400148808956146, 0.20190812647342682, 0.0680200383067131, -0.35724133253097534, -0.09975926578044891, 0.1946081966161728, 0.026873696595430374, 0.20069776475429535, 0.1760101020336151, 0.1702604740858078, -0.3972955346107483, -0.4666159749031067, 0.01681913435459137, 0.4947304129600525, -0.07358752191066742, 0.22224310040473938, -0.1423189342021942, -0.11037734895944595, 0.05664823576807976, 0.2778765559196472, -0.11726561188697815, -0.19149483740329742, 0.17908507585525513, 0.03193071484565735, -0.15855570137500763, 0.08609454333782196, 0.11525708436965942, -0.07403635233640671, 0.27611008286476135, 0.047311052680015564, 0.5473364591598511, 0.13990306854248047, 0.0827617198228836, -0.13338841497898102, -0.257003515958786, -0.2534720003604889, 0.14690124988555908, -0.040101923048496246, 0.3355656564235687, -0.23143866658210754, -0.10192489624023438, 0.31197452545166016, -0.06653502583503723, -0.2452952116727829, 0.00657934695482254, -0.6495987772941589, 0.1033412516117096, -0.035761285573244095, -0.103101946413517, 0.36922430992126465, -0.2313641607761383, 0.18111541867256165, 0.31997641921043396, -0.1902635246515274, 0.1010996550321579, -0.31379464268684387, 0.03833193704485893, -0.23027189075946808, 0.2646707594394684, 0.10080141574144363, -0.033616796135902405, -0.06036468967795372, -0.1086396649479866, -0.0407438687980175, -0.05392929166555405, 0.03385224938392639, 0.050771161913871765, -0.05529211461544037, -0.049336016178131104, -0.3194895386695862, 0.011819854378700256, 0.013151746243238449, -0.15111088752746582, 0.15436112880706787, 0.02908092364668846, -0.054928213357925415, 0.32918503880500793, -0.05495497211813927, -0.10675458610057831, -0.058550406247377396, 0.414590060710907, -0.26236167550086975, 0.022986114025115967, 0.3038802444934845, 0.41510719060897827, -0.017547883093357086, -0.28132718801498413, -0.06851477175951004, 0.09080655872821808, -0.24481120705604553, 0.27016735076904297, 0.11642146855592728, -0.08998148143291473, 0.38016775250434875, 0.5611444711685181, 0.342260479927063, -0.14982518553733826, 0.012246739119291306, -0.28683650493621826, -0.19111819565296173, 0.06081492453813553, -0.1435583382844925, 0.16259469091892242, 0.027714021503925323, 0.4404922425746918, -0.17470510303974152, 0.3926442265510559, -0.30593597888946533, 0.27493780851364136, -0.09475702792406082, -0.000058183446526527405, 0.21237292885780334, -0.15855348110198975, 0.15915870666503906, -0.09213447570800781, 0.04122515767812729, -0.03402690589427948, -0.5342016816139221, -0.21376070380210876, -0.11785957217216492, 0.09453805536031723, 0.09808217734098434, -0.27111488580703735, 0.16907458007335663, -0.10803552716970444, 0.08079562336206436, -0.16971120238304138, 0.34704694151878357, 0.06606924533843994, -0.12226046621799469, 0.022902507334947586, 0.07030072063207626, 0.06582561135292053, -0.16896110773086548, 0.1390579640865326, 0.07145338505506516, -0.06772729754447937, -0.004992922302335501, -0.041077978909015656, 0.04417871683835983, 0.020838044583797455, 0.1150297075510025, 0.01028750091791153, -0.02165897935628891, 0.11822184175252914, 0.509399950504303, -0.3056080937385559, -0.25251108407974243, 0.26381129026412964, 0.28566694259643555, 0.16861793398857117, 0.051361776888370514, 0.06142774969339371, -0.16902199387550354, 0.17126987874507904, -0.29538440704345703, -0.07953903079032898, -0.03775757923722267, 0.16378173232078552, 0.08571270108222961, 0.04997243732213974, 0.3570749759674072, -0.21518956124782562, -0.2337026447057724, 0.35498762130737305, 0.3251190483570099, -0.11169223487377167, 0.17485353350639343, 0.4612632393836975, 0.08477871119976044, 0.20866727828979492, 0.10753433406352997, -0.1653205156326294, 0.10477466881275177, 0.3765079379081726, -0.23962637782096863, 0.680370032787323, 0.06465374678373337, 0.006373293697834015, 0.24075540900230408, -0.41432812809944153, 0.11077095568180084, 0.26909780502319336, -0.1568296253681183, 0.024420179426670074, -0.26308101415634155, 0.13773304224014282, -0.34020113945007324, -0.2731529772281647, -0.18553663790225983, 0.19849227368831635, -0.0655512809753418, -0.12541396915912628, -0.25567567348480225, -0.11668610572814941, -0.07807502895593643, 0.027362387627363205, -0.07522279024124146, -0.10226817429065704, 0.25959253311157227, 0.17326080799102783, -0.1564747542142868, -0.40464797616004944, -0.3694784641265869, 0.016144240275025368, -0.09832116216421127, -0.12282145023345947, 0.25600799918174744, 0.4048370122909546, -0.21233734488487244, 0.13849541544914246, 0.40516260266304016, 0.47156742215156555, 0.3013877868652344, -0.01928633078932762, -0.08603359013795853, 0.08719691634178162, -0.08513972163200378, -0.2775002419948578, 0.41972658038139343, -0.2568068206310272, -0.15734171867370605, 0.004949338734149933, 0.16996346414089203, -0.18624229729175568, -0.36442500352859497, 0.12785623967647552, -0.312605082988739, -0.28356245160102844, 0.19259682297706604, -0.08869684487581253, -0.05764871463179588, -0.04640498012304306, 0.38013118505477905, -0.04635748639702797, 0.22710709273815155, 0.6677181720733643, -0.02753516100347042, 0.12809234857559204, -0.24235892295837402, 0.10048851370811462, 0.08526210486888885, 0.719906210899353, 0.2930559813976288, -0.08171448856592178, -0.2865349054336548, -0.5099942088127136, -0.7815920114517212, 0.048260077834129333, 0.15429113805294037, 0.4362877905368805, 0.07365288585424423, 0.04398801177740097, 0.1192261278629303, -0.02252999320626259, 0.15371666848659515, 0.12201902270317078, 0.2925752103328705, -0.2151339054107666, -0.3548644185066223, 0.17969530820846558, -0.09501537680625916, -0.19067220389842987, -0.005381263792514801, -0.32201990485191345, 0.14668790996074677, -0.27889272570610046, 0.02470320463180542, -0.2417234629392624, 0.42358943819999695, 0.0029745828360319138, 0.287581205368042, 0.21881239116191864, 0.08809083700180054, 0.30637127161026, 0.010798502713441849, -0.06305795162916183, -0.41973257064819336, -0.31127816438674927, 0.014537611044943333, 0.08607403934001923, -0.10746857523918152, 0.3646841049194336, -0.053701192140579224, -0.2685219347476959, -0.4432086646556854, 0.10508588701486588, 0.11436872184276581, 0.20233547687530518, -0.17699383199214935, 0.22221094369888306, -0.21476879715919495, -0.17331434786319733, 0.344375878572464, 0.4282420575618744, -0.029237285256385803, 0.18783731758594513, -0.21067628264427185, -0.38733208179473877, 0.2546340227127075, -0.28877824544906616, -0.16298481822013855, -0.4629840850830078, 0.17723648250102997, -0.09543926268815994, -0.1698627769947052, -0.42177996039390564, 0.15284335613250732, 0.17121748626232147, -0.10168138891458511, -0.21474716067314148, 0.37261301279067993, -0.04605422168970108, -0.06841431558132172, -0.018581615760922432, 0.16946753859519958, 0.18038463592529297, -0.33431875705718994, -0.11396193504333496, -0.0598333477973938 ]
https://github.com/huggingface/datasets/issues/1981
wmt datasets fail to load
I'll do a patch release for this issue early tomorrow. And yes we absolutly need tests for the wmt datasets: The missing tests for wmt are an artifact from the early development of the lib but now we have tools to generate automatically the dummy data used for tests :)
on master: ``` python -c 'from datasets import load_dataset; load_dataset("wmt14", "de-en")' Downloading and preparing dataset wmt14/de-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/stas/.cache/huggingface/datasets/wmt14/de-en/1.0.0/43e717d978d2261502b0194999583acb874ba73b0f4aed0ada2889d1bb00f36e... Traceback (most recent call last): File "<string>", line 1, in <module> File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/builder.py", line 578, in download_and_prepare self._download_and_prepare( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/builder.py", line 634, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/stas/.cache/huggingface/modules/datasets_modules/datasets/wmt14/43e717d978d2261502b0194999583acb874ba73b0f4aed0ada2889d1bb00f36e/wmt_utils.py", line 760, in _split_generators extraction_map = dict(downloaded_files, **manual_files) ``` it worked fine recently. same problem if I try wmt16. git bisect points to this commit from Feb 25 as the culprit https://github.com/huggingface/datasets/commit/792f1d9bb1c5361908f73e2ef7f0181b2be409fa @albertvillanova
50
wmt datasets fail to load on master: ``` python -c 'from datasets import load_dataset; load_dataset("wmt14", "de-en")' Downloading and preparing dataset wmt14/de-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/stas/.cache/huggingface/datasets/wmt14/de-en/1.0.0/43e717d978d2261502b0194999583acb874ba73b0f4aed0ada2889d1bb00f36e... Traceback (most recent call last): File "<string>", line 1, in <module> File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/builder.py", line 578, in download_and_prepare self._download_and_prepare( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/builder.py", line 634, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/stas/.cache/huggingface/modules/datasets_modules/datasets/wmt14/43e717d978d2261502b0194999583acb874ba73b0f4aed0ada2889d1bb00f36e/wmt_utils.py", line 760, in _split_generators extraction_map = dict(downloaded_files, **manual_files) ``` it worked fine recently. same problem if I try wmt16. git bisect points to this commit from Feb 25 as the culprit https://github.com/huggingface/datasets/commit/792f1d9bb1c5361908f73e2ef7f0181b2be409fa @albertvillanova I'll do a patch release for this issue early tomorrow. And yes we absolutly need tests for the wmt datasets: The missing tests for wmt are an artifact from the early development of the lib but now we have tools to generate automatically the dummy data used for tests :)
[ -0.32907193899154663, -0.058494262397289276, -0.010408008471131325, 0.5395736694335938, 0.3104318380355835, 0.0041045621037483215, 0.20978009700775146, 0.08727017790079117, 0.31293514370918274, 0.10788632929325104, -0.022499706596136093, -0.12566184997558594, -0.29693156480789185, 0.18879450857639313, 0.11141669750213623, 0.18481960892677307, -0.1364240050315857, 0.00585397332906723, -0.8216053247451782, 0.01586899161338806, -0.18384934961795807, 0.19848424196243286, -0.16734208166599274, -0.09697246551513672, -0.5068026185035706, 0.2375524491071701, -0.030008822679519653, 0.2536420524120331, -0.2113710194826126, -0.4816317558288574, 0.5141909122467041, 0.03097504749894142, 0.051851317286491394, 0.5576851963996887, -0.00011410436854930595, 0.15152542293071747, 0.29352450370788574, -0.010245817713439465, -0.24660298228263855, -0.29741209745407104, -0.5779011845588684, -0.38273191452026367, 0.021960651502013206, 0.2245502471923828, -0.18846163153648376, 0.08209525793790817, -0.24006642401218414, -0.3640686869621277, 0.2820509076118469, 0.2943233251571655, 0.2214951366186142, 0.4151586890220642, 0.27894607186317444, -0.3091941773891449, 0.051097653806209564, 0.290771484375, -0.13798768818378448, -0.02800120785832405, 0.013575345277786255, -0.13521736860275269, 0.023276574909687042, 0.031645286828279495, 0.07332310080528259, 0.3297722041606903, 0.34579384326934814, -0.15872330963611603, 0.285740464925766, -0.008102737367153168, 0.2792249321937561, 0.05777999758720398, 0.19649559259414673, -0.07577904313802719, -0.23603951930999756, -0.05943118780851364, -0.13069522380828857, -0.4276524782180786, 0.25920283794403076, 0.2658739686012268, 0.030344273895025253, 0.2660057842731476, -0.3589407205581665, 0.07395801693201065, 0.22120824456214905, 0.03178746998310089, -0.3881676495075226, 0.3771405816078186, -0.31149426102638245, 0.0018197260797023773, 0.2749299108982086, -0.19026868045330048, 0.1660654991865158, -0.11145973205566406, -0.018748272210359573, 0.08372054249048233, -0.5072568655014038, 0.26169174909591675, 0.025559719651937485, 0.2756202220916748, -0.08005708456039429, 0.15823689103126526, -0.2520159184932709, 0.014927629381418228, 0.20893779397010803, -0.015564925968647003, 0.1787935197353363, 0.13862453401088715, -0.10994485765695572, -0.062659852206707, 0.274922251701355, 0.055098213255405426, -0.1853412389755249, 0.1351206749677658, -0.17037884891033173, -0.44336530566215515, -0.08917561173439026, -0.18943122029304504, 0.1525506228208542, -0.07202714681625366, -0.2599218487739563, 0.06353207677602768, 0.13551828265190125, -0.3142126798629761, 0.020418863743543625, 0.2855191230773926, 0.048408813774585724, 0.17023730278015137, 0.11796155571937561, 0.003653271123766899, -0.004202693700790405, -0.03577065467834473, -0.3564472794532776, -0.39062005281448364, -0.2991640567779541, 0.06112080067396164, 0.40783941745758057, -0.21857240796089172, 0.22830288112163544, 0.00041116029024124146, -0.13100437819957733, -0.12732087075710297, -0.22692903876304626, -0.007741729263216257, 0.2188926637172699, 0.48240309953689575, 0.07109299302101135, 0.2990787923336029, 0.24436655640602112, 0.1595919132232666, -0.008130796253681183, -0.007438965141773224, -0.09953901916742325, -0.2956002950668335, 0.12952107191085815, 0.2581731379032135, -0.08152320981025696, 0.15706396102905273, -0.22945067286491394, -0.11366282403469086, 0.10501961410045624, 0.3215995132923126, -0.1928716003894806, -0.24175457656383514, -0.16372540593147278, -0.06663879752159119, 0.5321366786956787, 0.5977168679237366, 0.009566176682710648, -0.1942434161901474, -0.3947504460811615, -0.04718605801463127, 0.23443353176116943, 0.3322232663631439, -0.029823768883943558, 0.10070206224918365, -0.260995477437973, -0.24706058204174042, -0.08204642683267593, -0.05945007875561714, -0.183284193277359, 0.13714534044265747, -0.13132387399673462, 0.2751171290874481, 0.032451458275318146, -0.12638048827648163, 0.014531425200402737, -0.22653542459011078, 0.34289053082466125, 0.08913625776767731, -0.15807798504829407, 0.08362795412540436, -0.07941610366106033, -0.3164914548397064, 0.24742822349071503, 0.188627228140831, 0.19368183612823486, -0.18961668014526367, 0.21572498977184296, 0.024288207292556763, 0.0684090107679367, 0.05708950757980347, 0.129250168800354, 0.038518816232681274, 0.08485783636569977, -0.012777797877788544, -0.08891846984624863, 0.05340246856212616, -0.44730257987976074, 0.29648831486701965, 0.2691924273967743, 0.0437411330640316, 0.11734650284051895, 0.12081678211688995, -0.16221857070922852, 0.1335766613483429, -0.3434741497039795, -0.18876855075359344, 0.08767978847026825, 0.13490287959575653, -0.0035161394625902176, -0.14503434300422668, -0.038808006793260574, -0.02397805266082287, -0.2259172797203064, 0.14871419966220856, 0.24453294277191162, 0.06671956926584244, -0.14334510266780853, -0.1252082735300064, 0.2802845239639282, 0.2743450403213501, 0.16356036067008972, -0.16976895928382874, -0.1630629301071167, 0.09085767716169357, 0.13997486233711243, 0.3951959013938904, -0.08718659728765488, 0.10392157733440399, 0.17919187247753143, -0.4736977815628052, 0.16994324326515198, 0.13616161048412323, -0.14026868343353271, -0.2992376685142517, 0.1204284280538559, 0.04246184974908829, -0.11031593382358551, 0.2675851285457611, 0.11755944788455963, 0.035734713077545166, 0.16481773555278778, 0.07099002599716187, 0.1453135758638382, -0.38792145252227783, 0.28014668822288513, -0.0923154205083847, 0.342855840921402, 0.2670232951641083, 0.023953691124916077, -0.04255003482103348, 0.380538672208786, 0.1634017676115036, 0.20223495364189148, 0.0150984488427639, -0.38560065627098083, -0.08566152304410934, -0.0661868080496788, 0.050184983760118484, 0.39677345752716064, 0.0735272616147995, 0.09358692914247513, 0.17863629758358002, 0.1149711012840271, -0.3025267422199249, 0.4467020630836487, -0.07497899234294891, -0.07670669257640839, 0.3043878674507141, -0.02355940453708172, -0.07227760553359985, -0.2620560824871063, 0.5669640898704529, 0.058210261166095734, 0.006217313930392265, -0.1975160390138626, -0.2630079984664917, -0.4342725872993469, 0.2357843816280365, -0.3500570058822632, -0.5691422820091248, -0.20526406168937683, -0.20574329793453217, -0.2758673429489136, 0.11813656985759735, -0.09885376691818237, 0.2478710114955902, 0.06874626874923706, 0.21888890862464905, -0.04907882213592529, 0.3465985655784607, -0.09770283102989197, -0.2259610891342163, -0.10649795085191727, 0.03910538926720619, 0.5312058329582214, -0.2995472252368927, 0.3275356888771057, -0.19571347534656525, 0.06398872286081314, -0.20025905966758728, -0.22829708456993103, 0.08723188936710358, -0.047870151698589325, 0.3465411365032196, 0.21176856756210327, -0.023282036185264587, 0.3644337058067322, -0.10893479734659195, 0.3259529769420624, -0.1572982668876648, -0.015334568917751312, 0.0034699682146310806, -0.04454423859715462, -0.14267030358314514, -0.22285400331020355, -0.3446229100227356, -0.440805584192276, -0.3883454501628876, -0.010653063654899597, -0.026188936084508896, -0.041893839836120605, 0.09175796806812286, -0.1342879682779312, -0.05323022976517677, -0.01781129464507103, -0.025890355929732323, -0.3486144542694092, -0.2984476685523987, 0.20006705820560455, -0.30206429958343506, -0.28192436695098877, 0.23929280042648315, 0.13543707132339478, 0.4544386565685272, 0.04012768715620041, -0.39373892545700073, 0.5808193683624268, -0.13911129534244537, -0.1142631322145462, 0.1804572492837906, 0.30906355381011963, -0.09056590497493744, 0.16540446877479553, -0.04958571493625641, -0.16574788093566895, -0.2646006941795349, -0.18060189485549927, -0.23206648230552673, 0.15910457074642181, -0.1456703543663025, 0.06278622895479202, 0.010418035089969635, 0.8047191500663757, 0.06547841429710388, -0.294353187084198, 0.18274539709091187, 0.1267123520374298, 0.22185368835926056, -0.0006967410445213318, -0.5895354151725769, 0.2010108381509781, -0.09861728549003601, 0.22158372402191162, 0.3626626133918762, 0.043291084468364716, 0.1737743765115738, -0.11392209678888321, 0.19395984709262848, -0.18877893686294556, -0.3513714373111725, -0.1281632035970688, 0.20051026344299316, 0.3849678039550781, 0.09005260467529297, 0.12198890000581741, 0.02739161252975464, -0.09549248963594437, -0.00953587330877781, 0.35470157861709595, 0.12224739789962769, 0.08853304386138916, -0.10506351292133331, -0.05601249262690544, -0.23697498440742493, 0.05358906462788582, -0.19320541620254517, 0.45756322145462036, -0.0324503555893898, -0.12304750829935074, -0.04231591522693634, -0.018290573731064796, 0.5026885867118835, 0.19673912227153778, 0.39276963472366333, 0.10224755108356476, -0.4248225688934326, -0.2393004596233368, -0.1275758594274521, 0.0902228057384491, -0.07357800006866455, 0.12852050364017487, 0.18462111055850983, -0.20202882587909698, -0.5072080492973328, 0.2025780826807022, 0.11079109460115433, -0.18881279230117798, -0.11982733011245728, -0.1453295201063156, 0.02494926005601883, -0.29022103548049927, -0.07774067670106888, -0.2248145043849945, 0.1797916293144226, -0.40493863821029663, -0.02397262491285801, -0.15451815724372864, -0.07883806526660919, 0.15115898847579956, 0.06572160124778748, 0.09346508234739304, 0.04429992288351059, 0.49238139390945435, 0.31229734420776367, 0.32004937529563904, 0.5650812387466431, 0.6159527897834778, -0.10106369853019714, 0.034418683499097824, 0.0835057944059372, 0.01637929677963257, 0.05228253826498985, 0.2831600308418274, -0.07817678153514862, 0.11110049486160278, 0.04386186599731445, 0.11074797809123993, -0.5960835814476013, 0.12400148808956146, 0.20190812647342682, 0.0680200383067131, -0.35724133253097534, -0.09975926578044891, 0.1946081966161728, 0.026873696595430374, 0.20069776475429535, 0.1760101020336151, 0.1702604740858078, -0.3972955346107483, -0.4666159749031067, 0.01681913435459137, 0.4947304129600525, -0.07358752191066742, 0.22224310040473938, -0.1423189342021942, -0.11037734895944595, 0.05664823576807976, 0.2778765559196472, -0.11726561188697815, -0.19149483740329742, 0.17908507585525513, 0.03193071484565735, -0.15855570137500763, 0.08609454333782196, 0.11525708436965942, -0.07403635233640671, 0.27611008286476135, 0.047311052680015564, 0.5473364591598511, 0.13990306854248047, 0.0827617198228836, -0.13338841497898102, -0.257003515958786, -0.2534720003604889, 0.14690124988555908, -0.040101923048496246, 0.3355656564235687, -0.23143866658210754, -0.10192489624023438, 0.31197452545166016, -0.06653502583503723, -0.2452952116727829, 0.00657934695482254, -0.6495987772941589, 0.1033412516117096, -0.035761285573244095, -0.103101946413517, 0.36922430992126465, -0.2313641607761383, 0.18111541867256165, 0.31997641921043396, -0.1902635246515274, 0.1010996550321579, -0.31379464268684387, 0.03833193704485893, -0.23027189075946808, 0.2646707594394684, 0.10080141574144363, -0.033616796135902405, -0.06036468967795372, -0.1086396649479866, -0.0407438687980175, -0.05392929166555405, 0.03385224938392639, 0.050771161913871765, -0.05529211461544037, -0.049336016178131104, -0.3194895386695862, 0.011819854378700256, 0.013151746243238449, -0.15111088752746582, 0.15436112880706787, 0.02908092364668846, -0.054928213357925415, 0.32918503880500793, -0.05495497211813927, -0.10675458610057831, -0.058550406247377396, 0.414590060710907, -0.26236167550086975, 0.022986114025115967, 0.3038802444934845, 0.41510719060897827, -0.017547883093357086, -0.28132718801498413, -0.06851477175951004, 0.09080655872821808, -0.24481120705604553, 0.27016735076904297, 0.11642146855592728, -0.08998148143291473, 0.38016775250434875, 0.5611444711685181, 0.342260479927063, -0.14982518553733826, 0.012246739119291306, -0.28683650493621826, -0.19111819565296173, 0.06081492453813553, -0.1435583382844925, 0.16259469091892242, 0.027714021503925323, 0.4404922425746918, -0.17470510303974152, 0.3926442265510559, -0.30593597888946533, 0.27493780851364136, -0.09475702792406082, -0.000058183446526527405, 0.21237292885780334, -0.15855348110198975, 0.15915870666503906, -0.09213447570800781, 0.04122515767812729, -0.03402690589427948, -0.5342016816139221, -0.21376070380210876, -0.11785957217216492, 0.09453805536031723, 0.09808217734098434, -0.27111488580703735, 0.16907458007335663, -0.10803552716970444, 0.08079562336206436, -0.16971120238304138, 0.34704694151878357, 0.06606924533843994, -0.12226046621799469, 0.022902507334947586, 0.07030072063207626, 0.06582561135292053, -0.16896110773086548, 0.1390579640865326, 0.07145338505506516, -0.06772729754447937, -0.004992922302335501, -0.041077978909015656, 0.04417871683835983, 0.020838044583797455, 0.1150297075510025, 0.01028750091791153, -0.02165897935628891, 0.11822184175252914, 0.509399950504303, -0.3056080937385559, -0.25251108407974243, 0.26381129026412964, 0.28566694259643555, 0.16861793398857117, 0.051361776888370514, 0.06142774969339371, -0.16902199387550354, 0.17126987874507904, -0.29538440704345703, -0.07953903079032898, -0.03775757923722267, 0.16378173232078552, 0.08571270108222961, 0.04997243732213974, 0.3570749759674072, -0.21518956124782562, -0.2337026447057724, 0.35498762130737305, 0.3251190483570099, -0.11169223487377167, 0.17485353350639343, 0.4612632393836975, 0.08477871119976044, 0.20866727828979492, 0.10753433406352997, -0.1653205156326294, 0.10477466881275177, 0.3765079379081726, -0.23962637782096863, 0.680370032787323, 0.06465374678373337, 0.006373293697834015, 0.24075540900230408, -0.41432812809944153, 0.11077095568180084, 0.26909780502319336, -0.1568296253681183, 0.024420179426670074, -0.26308101415634155, 0.13773304224014282, -0.34020113945007324, -0.2731529772281647, -0.18553663790225983, 0.19849227368831635, -0.0655512809753418, -0.12541396915912628, -0.25567567348480225, -0.11668610572814941, -0.07807502895593643, 0.027362387627363205, -0.07522279024124146, -0.10226817429065704, 0.25959253311157227, 0.17326080799102783, -0.1564747542142868, -0.40464797616004944, -0.3694784641265869, 0.016144240275025368, -0.09832116216421127, -0.12282145023345947, 0.25600799918174744, 0.4048370122909546, -0.21233734488487244, 0.13849541544914246, 0.40516260266304016, 0.47156742215156555, 0.3013877868652344, -0.01928633078932762, -0.08603359013795853, 0.08719691634178162, -0.08513972163200378, -0.2775002419948578, 0.41972658038139343, -0.2568068206310272, -0.15734171867370605, 0.004949338734149933, 0.16996346414089203, -0.18624229729175568, -0.36442500352859497, 0.12785623967647552, -0.312605082988739, -0.28356245160102844, 0.19259682297706604, -0.08869684487581253, -0.05764871463179588, -0.04640498012304306, 0.38013118505477905, -0.04635748639702797, 0.22710709273815155, 0.6677181720733643, -0.02753516100347042, 0.12809234857559204, -0.24235892295837402, 0.10048851370811462, 0.08526210486888885, 0.719906210899353, 0.2930559813976288, -0.08171448856592178, -0.2865349054336548, -0.5099942088127136, -0.7815920114517212, 0.048260077834129333, 0.15429113805294037, 0.4362877905368805, 0.07365288585424423, 0.04398801177740097, 0.1192261278629303, -0.02252999320626259, 0.15371666848659515, 0.12201902270317078, 0.2925752103328705, -0.2151339054107666, -0.3548644185066223, 0.17969530820846558, -0.09501537680625916, -0.19067220389842987, -0.005381263792514801, -0.32201990485191345, 0.14668790996074677, -0.27889272570610046, 0.02470320463180542, -0.2417234629392624, 0.42358943819999695, 0.0029745828360319138, 0.287581205368042, 0.21881239116191864, 0.08809083700180054, 0.30637127161026, 0.010798502713441849, -0.06305795162916183, -0.41973257064819336, -0.31127816438674927, 0.014537611044943333, 0.08607403934001923, -0.10746857523918152, 0.3646841049194336, -0.053701192140579224, -0.2685219347476959, -0.4432086646556854, 0.10508588701486588, 0.11436872184276581, 0.20233547687530518, -0.17699383199214935, 0.22221094369888306, -0.21476879715919495, -0.17331434786319733, 0.344375878572464, 0.4282420575618744, -0.029237285256385803, 0.18783731758594513, -0.21067628264427185, -0.38733208179473877, 0.2546340227127075, -0.28877824544906616, -0.16298481822013855, -0.4629840850830078, 0.17723648250102997, -0.09543926268815994, -0.1698627769947052, -0.42177996039390564, 0.15284335613250732, 0.17121748626232147, -0.10168138891458511, -0.21474716067314148, 0.37261301279067993, -0.04605422168970108, -0.06841431558132172, -0.018581615760922432, 0.16946753859519958, 0.18038463592529297, -0.33431875705718994, -0.11396193504333496, -0.0598333477973938 ]
https://github.com/huggingface/datasets/issues/1981
wmt datasets fail to load
still facing the same issue or similar: from datasets import load_dataset wtm14_test = load_dataset('wmt14',"de-en",cache_dir='./datasets') ~.cache\huggingface\modules\datasets_modules\datasets\wmt14\43e717d978d2261502b0194999583acb874ba73b0f4aed0ada2889d1bb00f36e\wmt_utils.py in _split_generators(self, dl_manager) 758 # Extract manually downloaded files. 759 manual_files = dl_manager.extract(manual_paths_dict) --> 760 extraction_map = dict(downloaded_files, **manual_files) 761 762 for language in self.config.language_pair: TypeError: type object argument after ** must be a mapping, not list
on master: ``` python -c 'from datasets import load_dataset; load_dataset("wmt14", "de-en")' Downloading and preparing dataset wmt14/de-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/stas/.cache/huggingface/datasets/wmt14/de-en/1.0.0/43e717d978d2261502b0194999583acb874ba73b0f4aed0ada2889d1bb00f36e... Traceback (most recent call last): File "<string>", line 1, in <module> File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/builder.py", line 578, in download_and_prepare self._download_and_prepare( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/builder.py", line 634, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/stas/.cache/huggingface/modules/datasets_modules/datasets/wmt14/43e717d978d2261502b0194999583acb874ba73b0f4aed0ada2889d1bb00f36e/wmt_utils.py", line 760, in _split_generators extraction_map = dict(downloaded_files, **manual_files) ``` it worked fine recently. same problem if I try wmt16. git bisect points to this commit from Feb 25 as the culprit https://github.com/huggingface/datasets/commit/792f1d9bb1c5361908f73e2ef7f0181b2be409fa @albertvillanova
52
wmt datasets fail to load on master: ``` python -c 'from datasets import load_dataset; load_dataset("wmt14", "de-en")' Downloading and preparing dataset wmt14/de-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/stas/.cache/huggingface/datasets/wmt14/de-en/1.0.0/43e717d978d2261502b0194999583acb874ba73b0f4aed0ada2889d1bb00f36e... Traceback (most recent call last): File "<string>", line 1, in <module> File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/builder.py", line 578, in download_and_prepare self._download_and_prepare( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/builder.py", line 634, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/stas/.cache/huggingface/modules/datasets_modules/datasets/wmt14/43e717d978d2261502b0194999583acb874ba73b0f4aed0ada2889d1bb00f36e/wmt_utils.py", line 760, in _split_generators extraction_map = dict(downloaded_files, **manual_files) ``` it worked fine recently. same problem if I try wmt16. git bisect points to this commit from Feb 25 as the culprit https://github.com/huggingface/datasets/commit/792f1d9bb1c5361908f73e2ef7f0181b2be409fa @albertvillanova still facing the same issue or similar: from datasets import load_dataset wtm14_test = load_dataset('wmt14',"de-en",cache_dir='./datasets') ~.cache\huggingface\modules\datasets_modules\datasets\wmt14\43e717d978d2261502b0194999583acb874ba73b0f4aed0ada2889d1bb00f36e\wmt_utils.py in _split_generators(self, dl_manager) 758 # Extract manually downloaded files. 759 manual_files = dl_manager.extract(manual_paths_dict) --> 760 extraction_map = dict(downloaded_files, **manual_files) 761 762 for language in self.config.language_pair: TypeError: type object argument after ** must be a mapping, not list
[ -0.32907193899154663, -0.058494262397289276, -0.010408008471131325, 0.5395736694335938, 0.3104318380355835, 0.0041045621037483215, 0.20978009700775146, 0.08727017790079117, 0.31293514370918274, 0.10788632929325104, -0.022499706596136093, -0.12566184997558594, -0.29693156480789185, 0.18879450857639313, 0.11141669750213623, 0.18481960892677307, -0.1364240050315857, 0.00585397332906723, -0.8216053247451782, 0.01586899161338806, -0.18384934961795807, 0.19848424196243286, -0.16734208166599274, -0.09697246551513672, -0.5068026185035706, 0.2375524491071701, -0.030008822679519653, 0.2536420524120331, -0.2113710194826126, -0.4816317558288574, 0.5141909122467041, 0.03097504749894142, 0.051851317286491394, 0.5576851963996887, -0.00011410436854930595, 0.15152542293071747, 0.29352450370788574, -0.010245817713439465, -0.24660298228263855, -0.29741209745407104, -0.5779011845588684, -0.38273191452026367, 0.021960651502013206, 0.2245502471923828, -0.18846163153648376, 0.08209525793790817, -0.24006642401218414, -0.3640686869621277, 0.2820509076118469, 0.2943233251571655, 0.2214951366186142, 0.4151586890220642, 0.27894607186317444, -0.3091941773891449, 0.051097653806209564, 0.290771484375, -0.13798768818378448, -0.02800120785832405, 0.013575345277786255, -0.13521736860275269, 0.023276574909687042, 0.031645286828279495, 0.07332310080528259, 0.3297722041606903, 0.34579384326934814, -0.15872330963611603, 0.285740464925766, -0.008102737367153168, 0.2792249321937561, 0.05777999758720398, 0.19649559259414673, -0.07577904313802719, -0.23603951930999756, -0.05943118780851364, -0.13069522380828857, -0.4276524782180786, 0.25920283794403076, 0.2658739686012268, 0.030344273895025253, 0.2660057842731476, -0.3589407205581665, 0.07395801693201065, 0.22120824456214905, 0.03178746998310089, -0.3881676495075226, 0.3771405816078186, -0.31149426102638245, 0.0018197260797023773, 0.2749299108982086, -0.19026868045330048, 0.1660654991865158, -0.11145973205566406, -0.018748272210359573, 0.08372054249048233, -0.5072568655014038, 0.26169174909591675, 0.025559719651937485, 0.2756202220916748, -0.08005708456039429, 0.15823689103126526, -0.2520159184932709, 0.014927629381418228, 0.20893779397010803, -0.015564925968647003, 0.1787935197353363, 0.13862453401088715, -0.10994485765695572, -0.062659852206707, 0.274922251701355, 0.055098213255405426, -0.1853412389755249, 0.1351206749677658, -0.17037884891033173, -0.44336530566215515, -0.08917561173439026, -0.18943122029304504, 0.1525506228208542, -0.07202714681625366, -0.2599218487739563, 0.06353207677602768, 0.13551828265190125, -0.3142126798629761, 0.020418863743543625, 0.2855191230773926, 0.048408813774585724, 0.17023730278015137, 0.11796155571937561, 0.003653271123766899, -0.004202693700790405, -0.03577065467834473, -0.3564472794532776, -0.39062005281448364, -0.2991640567779541, 0.06112080067396164, 0.40783941745758057, -0.21857240796089172, 0.22830288112163544, 0.00041116029024124146, -0.13100437819957733, -0.12732087075710297, -0.22692903876304626, -0.007741729263216257, 0.2188926637172699, 0.48240309953689575, 0.07109299302101135, 0.2990787923336029, 0.24436655640602112, 0.1595919132232666, -0.008130796253681183, -0.007438965141773224, -0.09953901916742325, -0.2956002950668335, 0.12952107191085815, 0.2581731379032135, -0.08152320981025696, 0.15706396102905273, -0.22945067286491394, -0.11366282403469086, 0.10501961410045624, 0.3215995132923126, -0.1928716003894806, -0.24175457656383514, -0.16372540593147278, -0.06663879752159119, 0.5321366786956787, 0.5977168679237366, 0.009566176682710648, -0.1942434161901474, -0.3947504460811615, -0.04718605801463127, 0.23443353176116943, 0.3322232663631439, -0.029823768883943558, 0.10070206224918365, -0.260995477437973, -0.24706058204174042, -0.08204642683267593, -0.05945007875561714, -0.183284193277359, 0.13714534044265747, -0.13132387399673462, 0.2751171290874481, 0.032451458275318146, -0.12638048827648163, 0.014531425200402737, -0.22653542459011078, 0.34289053082466125, 0.08913625776767731, -0.15807798504829407, 0.08362795412540436, -0.07941610366106033, -0.3164914548397064, 0.24742822349071503, 0.188627228140831, 0.19368183612823486, -0.18961668014526367, 0.21572498977184296, 0.024288207292556763, 0.0684090107679367, 0.05708950757980347, 0.129250168800354, 0.038518816232681274, 0.08485783636569977, -0.012777797877788544, -0.08891846984624863, 0.05340246856212616, -0.44730257987976074, 0.29648831486701965, 0.2691924273967743, 0.0437411330640316, 0.11734650284051895, 0.12081678211688995, -0.16221857070922852, 0.1335766613483429, -0.3434741497039795, -0.18876855075359344, 0.08767978847026825, 0.13490287959575653, -0.0035161394625902176, -0.14503434300422668, -0.038808006793260574, -0.02397805266082287, -0.2259172797203064, 0.14871419966220856, 0.24453294277191162, 0.06671956926584244, -0.14334510266780853, -0.1252082735300064, 0.2802845239639282, 0.2743450403213501, 0.16356036067008972, -0.16976895928382874, -0.1630629301071167, 0.09085767716169357, 0.13997486233711243, 0.3951959013938904, -0.08718659728765488, 0.10392157733440399, 0.17919187247753143, -0.4736977815628052, 0.16994324326515198, 0.13616161048412323, -0.14026868343353271, -0.2992376685142517, 0.1204284280538559, 0.04246184974908829, -0.11031593382358551, 0.2675851285457611, 0.11755944788455963, 0.035734713077545166, 0.16481773555278778, 0.07099002599716187, 0.1453135758638382, -0.38792145252227783, 0.28014668822288513, -0.0923154205083847, 0.342855840921402, 0.2670232951641083, 0.023953691124916077, -0.04255003482103348, 0.380538672208786, 0.1634017676115036, 0.20223495364189148, 0.0150984488427639, -0.38560065627098083, -0.08566152304410934, -0.0661868080496788, 0.050184983760118484, 0.39677345752716064, 0.0735272616147995, 0.09358692914247513, 0.17863629758358002, 0.1149711012840271, -0.3025267422199249, 0.4467020630836487, -0.07497899234294891, -0.07670669257640839, 0.3043878674507141, -0.02355940453708172, -0.07227760553359985, -0.2620560824871063, 0.5669640898704529, 0.058210261166095734, 0.006217313930392265, -0.1975160390138626, -0.2630079984664917, -0.4342725872993469, 0.2357843816280365, -0.3500570058822632, -0.5691422820091248, -0.20526406168937683, -0.20574329793453217, -0.2758673429489136, 0.11813656985759735, -0.09885376691818237, 0.2478710114955902, 0.06874626874923706, 0.21888890862464905, -0.04907882213592529, 0.3465985655784607, -0.09770283102989197, -0.2259610891342163, -0.10649795085191727, 0.03910538926720619, 0.5312058329582214, -0.2995472252368927, 0.3275356888771057, -0.19571347534656525, 0.06398872286081314, -0.20025905966758728, -0.22829708456993103, 0.08723188936710358, -0.047870151698589325, 0.3465411365032196, 0.21176856756210327, -0.023282036185264587, 0.3644337058067322, -0.10893479734659195, 0.3259529769420624, -0.1572982668876648, -0.015334568917751312, 0.0034699682146310806, -0.04454423859715462, -0.14267030358314514, -0.22285400331020355, -0.3446229100227356, -0.440805584192276, -0.3883454501628876, -0.010653063654899597, -0.026188936084508896, -0.041893839836120605, 0.09175796806812286, -0.1342879682779312, -0.05323022976517677, -0.01781129464507103, -0.025890355929732323, -0.3486144542694092, -0.2984476685523987, 0.20006705820560455, -0.30206429958343506, -0.28192436695098877, 0.23929280042648315, 0.13543707132339478, 0.4544386565685272, 0.04012768715620041, -0.39373892545700073, 0.5808193683624268, -0.13911129534244537, -0.1142631322145462, 0.1804572492837906, 0.30906355381011963, -0.09056590497493744, 0.16540446877479553, -0.04958571493625641, -0.16574788093566895, -0.2646006941795349, -0.18060189485549927, -0.23206648230552673, 0.15910457074642181, -0.1456703543663025, 0.06278622895479202, 0.010418035089969635, 0.8047191500663757, 0.06547841429710388, -0.294353187084198, 0.18274539709091187, 0.1267123520374298, 0.22185368835926056, -0.0006967410445213318, -0.5895354151725769, 0.2010108381509781, -0.09861728549003601, 0.22158372402191162, 0.3626626133918762, 0.043291084468364716, 0.1737743765115738, -0.11392209678888321, 0.19395984709262848, -0.18877893686294556, -0.3513714373111725, -0.1281632035970688, 0.20051026344299316, 0.3849678039550781, 0.09005260467529297, 0.12198890000581741, 0.02739161252975464, -0.09549248963594437, -0.00953587330877781, 0.35470157861709595, 0.12224739789962769, 0.08853304386138916, -0.10506351292133331, -0.05601249262690544, -0.23697498440742493, 0.05358906462788582, -0.19320541620254517, 0.45756322145462036, -0.0324503555893898, -0.12304750829935074, -0.04231591522693634, -0.018290573731064796, 0.5026885867118835, 0.19673912227153778, 0.39276963472366333, 0.10224755108356476, -0.4248225688934326, -0.2393004596233368, -0.1275758594274521, 0.0902228057384491, -0.07357800006866455, 0.12852050364017487, 0.18462111055850983, -0.20202882587909698, -0.5072080492973328, 0.2025780826807022, 0.11079109460115433, -0.18881279230117798, -0.11982733011245728, -0.1453295201063156, 0.02494926005601883, -0.29022103548049927, -0.07774067670106888, -0.2248145043849945, 0.1797916293144226, -0.40493863821029663, -0.02397262491285801, -0.15451815724372864, -0.07883806526660919, 0.15115898847579956, 0.06572160124778748, 0.09346508234739304, 0.04429992288351059, 0.49238139390945435, 0.31229734420776367, 0.32004937529563904, 0.5650812387466431, 0.6159527897834778, -0.10106369853019714, 0.034418683499097824, 0.0835057944059372, 0.01637929677963257, 0.05228253826498985, 0.2831600308418274, -0.07817678153514862, 0.11110049486160278, 0.04386186599731445, 0.11074797809123993, -0.5960835814476013, 0.12400148808956146, 0.20190812647342682, 0.0680200383067131, -0.35724133253097534, -0.09975926578044891, 0.1946081966161728, 0.026873696595430374, 0.20069776475429535, 0.1760101020336151, 0.1702604740858078, -0.3972955346107483, -0.4666159749031067, 0.01681913435459137, 0.4947304129600525, -0.07358752191066742, 0.22224310040473938, -0.1423189342021942, -0.11037734895944595, 0.05664823576807976, 0.2778765559196472, -0.11726561188697815, -0.19149483740329742, 0.17908507585525513, 0.03193071484565735, -0.15855570137500763, 0.08609454333782196, 0.11525708436965942, -0.07403635233640671, 0.27611008286476135, 0.047311052680015564, 0.5473364591598511, 0.13990306854248047, 0.0827617198228836, -0.13338841497898102, -0.257003515958786, -0.2534720003604889, 0.14690124988555908, -0.040101923048496246, 0.3355656564235687, -0.23143866658210754, -0.10192489624023438, 0.31197452545166016, -0.06653502583503723, -0.2452952116727829, 0.00657934695482254, -0.6495987772941589, 0.1033412516117096, -0.035761285573244095, -0.103101946413517, 0.36922430992126465, -0.2313641607761383, 0.18111541867256165, 0.31997641921043396, -0.1902635246515274, 0.1010996550321579, -0.31379464268684387, 0.03833193704485893, -0.23027189075946808, 0.2646707594394684, 0.10080141574144363, -0.033616796135902405, -0.06036468967795372, -0.1086396649479866, -0.0407438687980175, -0.05392929166555405, 0.03385224938392639, 0.050771161913871765, -0.05529211461544037, -0.049336016178131104, -0.3194895386695862, 0.011819854378700256, 0.013151746243238449, -0.15111088752746582, 0.15436112880706787, 0.02908092364668846, -0.054928213357925415, 0.32918503880500793, -0.05495497211813927, -0.10675458610057831, -0.058550406247377396, 0.414590060710907, -0.26236167550086975, 0.022986114025115967, 0.3038802444934845, 0.41510719060897827, -0.017547883093357086, -0.28132718801498413, -0.06851477175951004, 0.09080655872821808, -0.24481120705604553, 0.27016735076904297, 0.11642146855592728, -0.08998148143291473, 0.38016775250434875, 0.5611444711685181, 0.342260479927063, -0.14982518553733826, 0.012246739119291306, -0.28683650493621826, -0.19111819565296173, 0.06081492453813553, -0.1435583382844925, 0.16259469091892242, 0.027714021503925323, 0.4404922425746918, -0.17470510303974152, 0.3926442265510559, -0.30593597888946533, 0.27493780851364136, -0.09475702792406082, -0.000058183446526527405, 0.21237292885780334, -0.15855348110198975, 0.15915870666503906, -0.09213447570800781, 0.04122515767812729, -0.03402690589427948, -0.5342016816139221, -0.21376070380210876, -0.11785957217216492, 0.09453805536031723, 0.09808217734098434, -0.27111488580703735, 0.16907458007335663, -0.10803552716970444, 0.08079562336206436, -0.16971120238304138, 0.34704694151878357, 0.06606924533843994, -0.12226046621799469, 0.022902507334947586, 0.07030072063207626, 0.06582561135292053, -0.16896110773086548, 0.1390579640865326, 0.07145338505506516, -0.06772729754447937, -0.004992922302335501, -0.041077978909015656, 0.04417871683835983, 0.020838044583797455, 0.1150297075510025, 0.01028750091791153, -0.02165897935628891, 0.11822184175252914, 0.509399950504303, -0.3056080937385559, -0.25251108407974243, 0.26381129026412964, 0.28566694259643555, 0.16861793398857117, 0.051361776888370514, 0.06142774969339371, -0.16902199387550354, 0.17126987874507904, -0.29538440704345703, -0.07953903079032898, -0.03775757923722267, 0.16378173232078552, 0.08571270108222961, 0.04997243732213974, 0.3570749759674072, -0.21518956124782562, -0.2337026447057724, 0.35498762130737305, 0.3251190483570099, -0.11169223487377167, 0.17485353350639343, 0.4612632393836975, 0.08477871119976044, 0.20866727828979492, 0.10753433406352997, -0.1653205156326294, 0.10477466881275177, 0.3765079379081726, -0.23962637782096863, 0.680370032787323, 0.06465374678373337, 0.006373293697834015, 0.24075540900230408, -0.41432812809944153, 0.11077095568180084, 0.26909780502319336, -0.1568296253681183, 0.024420179426670074, -0.26308101415634155, 0.13773304224014282, -0.34020113945007324, -0.2731529772281647, -0.18553663790225983, 0.19849227368831635, -0.0655512809753418, -0.12541396915912628, -0.25567567348480225, -0.11668610572814941, -0.07807502895593643, 0.027362387627363205, -0.07522279024124146, -0.10226817429065704, 0.25959253311157227, 0.17326080799102783, -0.1564747542142868, -0.40464797616004944, -0.3694784641265869, 0.016144240275025368, -0.09832116216421127, -0.12282145023345947, 0.25600799918174744, 0.4048370122909546, -0.21233734488487244, 0.13849541544914246, 0.40516260266304016, 0.47156742215156555, 0.3013877868652344, -0.01928633078932762, -0.08603359013795853, 0.08719691634178162, -0.08513972163200378, -0.2775002419948578, 0.41972658038139343, -0.2568068206310272, -0.15734171867370605, 0.004949338734149933, 0.16996346414089203, -0.18624229729175568, -0.36442500352859497, 0.12785623967647552, -0.312605082988739, -0.28356245160102844, 0.19259682297706604, -0.08869684487581253, -0.05764871463179588, -0.04640498012304306, 0.38013118505477905, -0.04635748639702797, 0.22710709273815155, 0.6677181720733643, -0.02753516100347042, 0.12809234857559204, -0.24235892295837402, 0.10048851370811462, 0.08526210486888885, 0.719906210899353, 0.2930559813976288, -0.08171448856592178, -0.2865349054336548, -0.5099942088127136, -0.7815920114517212, 0.048260077834129333, 0.15429113805294037, 0.4362877905368805, 0.07365288585424423, 0.04398801177740097, 0.1192261278629303, -0.02252999320626259, 0.15371666848659515, 0.12201902270317078, 0.2925752103328705, -0.2151339054107666, -0.3548644185066223, 0.17969530820846558, -0.09501537680625916, -0.19067220389842987, -0.005381263792514801, -0.32201990485191345, 0.14668790996074677, -0.27889272570610046, 0.02470320463180542, -0.2417234629392624, 0.42358943819999695, 0.0029745828360319138, 0.287581205368042, 0.21881239116191864, 0.08809083700180054, 0.30637127161026, 0.010798502713441849, -0.06305795162916183, -0.41973257064819336, -0.31127816438674927, 0.014537611044943333, 0.08607403934001923, -0.10746857523918152, 0.3646841049194336, -0.053701192140579224, -0.2685219347476959, -0.4432086646556854, 0.10508588701486588, 0.11436872184276581, 0.20233547687530518, -0.17699383199214935, 0.22221094369888306, -0.21476879715919495, -0.17331434786319733, 0.344375878572464, 0.4282420575618744, -0.029237285256385803, 0.18783731758594513, -0.21067628264427185, -0.38733208179473877, 0.2546340227127075, -0.28877824544906616, -0.16298481822013855, -0.4629840850830078, 0.17723648250102997, -0.09543926268815994, -0.1698627769947052, -0.42177996039390564, 0.15284335613250732, 0.17121748626232147, -0.10168138891458511, -0.21474716067314148, 0.37261301279067993, -0.04605422168970108, -0.06841431558132172, -0.018581615760922432, 0.16946753859519958, 0.18038463592529297, -0.33431875705718994, -0.11396193504333496, -0.0598333477973938 ]
https://github.com/huggingface/datasets/issues/1977
ModuleNotFoundError: No module named 'apache_beam' for wikipedia datasets
I sometimes also get this error with other languages of the same dataset: File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 322, in read_table stream = stream_from(filename) File "pyarrow/io.pxi", line 782, in pyarrow.lib.memory_map File "pyarrow/io.pxi", line 743, in pyarrow.lib.MemoryMappedFile._open File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Memory mapping file failed: Cannot allocate memory @lhoestq
Hi I am trying to run run_mlm.py code [1] of huggingface with following "wikipedia"/ "20200501.aa" dataset: `python run_mlm.py --model_name_or_path bert-base-multilingual-cased --dataset_name wikipedia --dataset_config_name 20200501.aa --do_train --do_eval --output_dir /tmp/test-mlm --max_seq_length 256 ` I am getting this error, but as per documentation, huggingface dataset provide processed version of this dataset and users can load it without requiring setup extra settings for apache-beam. could you help me please to load this dataset? Do you think I can run run_ml.py with this dataset? or anyway I could subsample and train the model? I greatly appreciate providing the processed version of all languages for this dataset, which allow the user to use them without setting up apache-beam,. thanks I really appreciate your help. @lhoestq thanks. [1] https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py error I get: ``` >>> import datasets >>> datasets.load_dataset("wikipedia", "20200501.aa") Downloading and preparing dataset wikipedia/20200501.aa (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /dara/temp/cache_home_2/datasets/wikipedia/20200501.aa/1.0.0/4021357e28509391eab2f8300d9b689e7e8f3a877ebb3d354b01577d497ebc63... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/dara/temp/libs/anaconda3/envs/codes/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/dara/temp/libs/anaconda3/envs/codes/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/temp/libs/anaconda3/envs/codes/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 1099, in _download_and_prepare import apache_beam as beam ModuleNotFoundError: No module named 'apache_beam' ```
55
ModuleNotFoundError: No module named 'apache_beam' for wikipedia datasets Hi I am trying to run run_mlm.py code [1] of huggingface with following "wikipedia"/ "20200501.aa" dataset: `python run_mlm.py --model_name_or_path bert-base-multilingual-cased --dataset_name wikipedia --dataset_config_name 20200501.aa --do_train --do_eval --output_dir /tmp/test-mlm --max_seq_length 256 ` I am getting this error, but as per documentation, huggingface dataset provide processed version of this dataset and users can load it without requiring setup extra settings for apache-beam. could you help me please to load this dataset? Do you think I can run run_ml.py with this dataset? or anyway I could subsample and train the model? I greatly appreciate providing the processed version of all languages for this dataset, which allow the user to use them without setting up apache-beam,. thanks I really appreciate your help. @lhoestq thanks. [1] https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py error I get: ``` >>> import datasets >>> datasets.load_dataset("wikipedia", "20200501.aa") Downloading and preparing dataset wikipedia/20200501.aa (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /dara/temp/cache_home_2/datasets/wikipedia/20200501.aa/1.0.0/4021357e28509391eab2f8300d9b689e7e8f3a877ebb3d354b01577d497ebc63... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/dara/temp/libs/anaconda3/envs/codes/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/dara/temp/libs/anaconda3/envs/codes/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/temp/libs/anaconda3/envs/codes/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 1099, in _download_and_prepare import apache_beam as beam ModuleNotFoundError: No module named 'apache_beam' ``` I sometimes also get this error with other languages of the same dataset: File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 322, in read_table stream = stream_from(filename) File "pyarrow/io.pxi", line 782, in pyarrow.lib.memory_map File "pyarrow/io.pxi", line 743, in pyarrow.lib.MemoryMappedFile._open File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Memory mapping file failed: Cannot allocate memory @lhoestq
[ -0.21314120292663574, -0.3383001685142517, 0.001538597047328949, 0.3398340344429016, 0.2197452038526535, 0.23544153571128845, 0.25071418285369873, 0.26806211471557617, 0.18148531019687653, -0.01445208489894867, -0.03593198210000992, 0.03648987039923668, -0.1710570603609085, 0.10198693722486496, 0.16277804970741272, -0.4244249761104584, 0.18501700460910797, -0.13246998190879822, -0.2871961295604706, -0.06233303248882294, -0.2229190319776535, 0.34670770168304443, -0.27872657775878906, 0.08045472204685211, -0.09311272948980331, -0.11170362681150436, -0.023321814835071564, 0.1777574121952057, -0.05407240241765976, -0.14760424196720123, 0.10969774425029755, -0.2670563757419586, 0.2810363173484802, 0.339610755443573, -0.00012048807548126206, 0.07037323713302612, 0.3882130980491638, -0.21051515638828278, -0.33135998249053955, -0.350504994392395, 0.1729956865310669, -0.12941814959049225, 0.1381455510854721, -0.2263069450855255, -0.2553460896015167, -0.14388339221477509, 0.15258212387561798, -0.2568323016166687, 0.6282422542572021, -0.06245463714003563, 0.15261581540107727, 0.3100939989089966, 0.34254154562950134, -0.02962614968419075, 0.13509681820869446, 0.23606723546981812, -0.02384283021092415, 0.33658647537231445, -0.16997092962265015, -0.1384141594171524, 0.13686919212341309, 0.540743350982666, -0.2211785763502121, -0.012528035789728165, 0.46234777569770813, -0.20029158890247345, 0.098788321018219, -0.5092287063598633, 0.11675378680229187, 0.2758406698703766, 0.503131628036499, -0.26792722940444946, -0.1555139273405075, -0.04995511472225189, 0.033807892352342606, -0.035364117473363876, 0.02328554168343544, 0.22989101707935333, -0.11794991791248322, 0.07345682382583618, 0.22955751419067383, -0.3673398494720459, -0.19676579535007477, 0.23053903877735138, 0.2532697021961212, 0.21524667739868164, -0.06695104390382767, 0.22250059247016907, 0.17485679686069489, -0.10259373486042023, -0.46211400628089905, -0.04027450829744339, 0.15612639486789703, 0.4422606825828552, -0.23123221099376678, 0.0028231777250766754, -0.14729979634284973, 0.2895691692829132, 0.24781042337417603, -0.170307457447052, -0.45384612679481506, 0.11530546844005585, 0.27100756764411926, 0.03217586874961853, 0.014241233468055725, 0.01483348198235035, 0.1804620623588562, -0.14045648276805878, 0.2022215873003006, 0.15210825204849243, 0.028499510139226913, 0.047168124467134476, -0.08343213051557541, -0.09261229634284973, -0.6663610935211182, -0.014430690556764603, 0.25717824697494507, -0.11041142046451569, -0.1701253205537796, 0.009011832065880299, -0.5486822128295898, -0.2558382451534271, -0.11783411353826523, 0.4914836585521698, -0.08762352168560028, -0.04323609918355942, 0.30668431520462036, 0.2725154459476471, -0.31960466504096985, -0.33294710516929626, -0.025987533852458, 0.397068589925766, -0.4042430520057678, 0.25805631279945374, 0.1624428778886795, -0.18520943820476532, 0.33001577854156494, -0.09699124842882156, 0.061208367347717285, -0.012666486203670502, 0.09383236616849899, 0.016033807769417763, -0.2645793855190277, 0.13766168057918549, 0.2601518929004669, 0.2935318052768707, 0.3347855508327484, -0.10729697346687317, -0.13033723831176758, -0.013006120920181274, -0.2017829716205597, -0.07858681678771973, 0.08498815447092056, 0.010448042303323746, -0.17483049631118774, 0.15169692039489746, -0.16323181986808777, 0.27823585271835327, -0.06219659000635147, 0.05895116552710533, -0.04853334277868271, 0.2518557906150818, -0.07311583310365677, -0.15454214811325073, 0.4467759132385254, 0.7152785062789917, -0.09245473146438599, -0.18328148126602173, -0.12486562132835388, 0.08887943625450134, -0.13308185338974, 0.037833280861377716, -0.020148182287812233, 0.20382952690124512, -0.19446371495723724, 0.00741240382194519, 0.268869012594223, -0.40801265835762024, 0.028128162026405334, 0.05157012492418289, 0.07580317556858063, 0.06895088404417038, 0.17303773760795593, -0.1063593402504921, -0.28764694929122925, -0.043013930320739746, -0.05049334466457367, 0.20063577592372894, 0.1387096792459488, -0.09723867475986481, -0.12215331196784973, -0.2608405649662018, 0.0938873142004013, 0.23396189510822296, 0.10460534691810608, -0.02143554389476776, 0.059847358614206314, 0.5199071168899536, 0.2253655195236206, -0.14686162769794464, 0.1068723276257515, 0.36510610580444336, -0.10320736467838287, 0.21242132782936096, 0.08010091632604599, -0.2059348225593567, -0.1896691620349884, 0.0508292093873024, -0.21553796529769897, 0.5097803473472595, -0.1102500706911087, -0.049657758325338364, -0.20627567172050476, -0.06230100989341736, -0.17669859528541565, -0.5256917476654053, 0.01746334880590439, -0.10822418332099915, 0.13924796879291534, 0.3834105134010315, -0.10240133106708527, 0.2250567525625229, 0.005566244944930077, 0.19906675815582275, -0.8539178967475891, 0.1584816724061966, -0.1625041514635086, 0.04183021932840347, 0.11883465945720673, 0.2998979687690735, 0.14185522496700287, -0.24503284692764282, 0.14501875638961792, 0.2261148989200592, 0.055780742317438126, 0.012418307363986969, 0.042055271565914154, -0.10973487794399261, 0.14787977933883667, -0.38458549976348877, 0.255229651927948, 0.022389091551303864, 0.08743896335363388, 0.05944906920194626, 0.006711166352033615, 0.26688724756240845, 0.15427617728710175, 0.3922148644924164, 0.16030298173427582, 0.16773952543735504, -0.06528376042842865, 0.015454638749361038, -0.21062830090522766, -0.3001222610473633, 0.32338809967041016, 0.19253163039684296, 0.33152803778648376, -0.22223235666751862, -0.11972332000732422, -0.39486128091812134, 0.257723331451416, -0.025115614756941795, 0.22707578539848328, -0.05601603537797928, -0.6535446643829346, 0.2904535233974457, 0.13731910288333893, -0.23335684835910797, 0.1929880976676941, 0.23383142054080963, -0.17620119452476501, 0.20471782982349396, 0.17583151161670685, 0.06484106928110123, 0.2654978334903717, 0.08825437724590302, 0.4785861074924469, -0.08195438235998154, -0.22944945096969604, -0.11144257336854935, -0.21780267357826233, -0.17939649522304535, -0.26915380358695984, 0.14483001828193665, -0.3526339530944824, 0.1320124715566635, -0.2323409616947174, -0.5582603216171265, -0.30511945486068726, -0.02173856645822525, -0.5030120015144348, -0.09741118550300598, -0.3454746603965759, 0.15300364792346954, 0.19943514466285706, 0.4281540513038635, 0.2881687581539154, -0.036483749747276306, 0.08334247767925262, -0.15672960877418518, -0.18805080652236938, -0.15029440820217133, -0.2787012457847595, -0.006759753450751305, 0.375251829624176, 0.13934282958507538, 0.15505319833755493, -0.2120731920003891, -0.08613932132720947, -0.03835386782884598, -0.42709222435951233, 0.22448872029781342, -0.2542716860771179, 0.26284199953079224, 0.18856173753738403, 0.4130576252937317, -0.17570346593856812, -0.050250131636857986, 0.36043408513069153, 0.022533977404236794, -0.09792277961969376, -0.07104945927858353, 0.07581111788749695, 0.07908879220485687, 0.0070312246680259705, -0.28766894340515137, -0.2747099995613098, -0.30010634660720825, 0.1849592924118042, 0.11328890919685364, -0.07090909779071808, 0.3787711560726166, 0.20081304013729095, 0.15348224341869354, -0.051665157079696655, 0.05775999277830124, -0.1449173390865326, 0.03990707919001579, 0.37082812190055847, -0.23937152326107025, -0.35595279932022095, 0.1864738166332245, -0.1147247776389122, 0.21947981417179108, -0.03918949142098427, -0.26816195249557495, -0.1775781512260437, 0.3354674279689789, -0.1826426088809967, -0.010824106633663177, 0.32287314534187317, 0.23392535746097565, -0.1341770589351654, 0.15626034140586853, -0.11748594790697098, -0.04107736051082611, -0.08017022162675858, -0.4929055869579315, 0.3673177659511566, 0.2488037347793579, 0.6314404606819153, -0.08031442016363144, 0.8895262479782104, 0.2763771712779999, 0.2054402232170105, 0.1781025230884552, -0.0261582862585783, 0.3253341019153595, -0.07672099024057388, -0.2912576198577881, -0.16960912942886353, 0.016621142625808716, 0.13850568234920502, 0.30688655376434326, -0.028720710426568985, 0.06901434063911438, -0.5301672220230103, -0.25678595900535583, -0.14135658740997314, -0.23499418795108795, 0.028941325843334198, -0.11575073003768921, 0.4020377993583679, 0.0677075982093811, 0.20306017994880676, 0.06312750279903412, -0.03347882628440857, 0.33154207468032837, 0.5468325018882751, 0.07335477322340012, 0.17794759571552277, -0.010167352855205536, -0.1991821676492691, -0.5310760140419006, 0.4021536111831665, -0.14989730715751648, 0.000715792179107666, -0.0902603417634964, -0.10642106831073761, 0.17108884453773499, 0.020813267678022385, 0.7178600430488586, -0.08887720853090286, -0.0936145931482315, 0.13589715957641602, 0.0015429630875587463, -0.7305617332458496, 0.105054572224617, 0.015100624412298203, 0.1899866908788681, 0.15724612772464752, 0.26132333278656006, -0.47098496556282043, -0.12989398837089539, 0.4364517331123352, 0.18564550578594208, -0.1291804164648056, -0.15219391882419586, -0.5246488451957703, -0.17365965247154236, -0.437241792678833, -0.19014281034469604, -0.012295100837945938, 0.13663533329963684, 0.14503280818462372, 0.3733566701412201, 0.026763761416077614, -0.17194566130638123, 0.2619961202144623, 0.270851731300354, 0.3428226411342621, -0.004150520544499159, -0.1550675481557846, 0.1976626217365265, 0.3420526683330536, -0.02633095346391201, 0.19292257726192474, -0.008190512657165527, -0.4109746217727661, -0.04815257340669632, 0.0178305022418499, 0.23247256875038147, 0.13118450343608856, -0.13448649644851685, 0.10069748759269714, 0.19318214058876038, -0.09219512343406677, -0.1482953131198883, -0.09537869691848755, 0.23876339197158813, 0.26654765009880066, -0.3958491384983063, -0.41668522357940674, 0.6590350270271301, 0.06487999856472015, 0.05684037506580353, 0.1441074013710022, 0.2705357074737549, -0.3297988474369049, 0.30836784839630127, 0.10009358078241348, 1.03299081325531, -0.030320502817630768, 0.18676051497459412, 0.21420273184776306, 0.16141177713871002, 0.8284096121788025, -0.446865439414978, 0.18071767687797546, -0.32085639238357544, 0.1913250982761383, -0.008997643366456032, -0.07284251600503922, 0.43847182393074036, 0.07672464102506638, -0.12313507497310638, 0.33073633909225464, 0.2205318957567215, 0.0837886705994606, -0.1420513242483139, 0.45861732959747314, -0.01945083774626255, -0.22196568548679352, -0.457787424325943, 0.0059212930500507355, -0.10632103681564331, 0.6052085757255554, -0.2764025032520294, -0.1886194944381714, -0.23043814301490784, -0.25357598066329956, -0.1999850869178772, -0.015350951813161373, -0.3532024919986725, 0.2437591850757599, -0.10922381281852722, -0.23117050528526306, 0.3377096652984619, 0.20062986016273499, 0.24540828168392181, 0.0233234241604805, -0.3331473171710968, 0.18419237434864044, -0.3711702823638916, -0.43091946840286255, -0.20071552693843842, 0.09084340929985046, 0.3212777078151703, -0.17387640476226807, -0.1705290675163269, 0.02836620807647705, -0.07446960359811783, 0.002398878335952759, -0.15167643129825592, -0.19765223562717438, 0.23124028742313385, 0.04174736887216568, -0.17325568199157715, 0.24821405112743378, 0.13648663461208344, 0.10780242085456848, 0.04661001265048981, -0.17688396573066711, -0.1747896671295166, -0.05952029675245285, 0.18114840984344482, -0.15081092715263367, -0.013554040342569351, 0.47744905948638916, 0.1515924632549286, -0.054503582417964935, 0.5850342512130737, 0.43203356862068176, -0.14666259288787842, -0.1480633020401001, 0.11502938717603683, 0.05947740748524666, -0.35198962688446045, -0.07950009405612946, 0.34367457032203674, 0.22882552444934845, -0.10906827449798584, 0.015570629388093948, 0.06602109968662262, -0.22050192952156067, 0.11754578351974487, -0.4755691587924957, -0.16504046320915222, 0.4451126456260681, -0.22263120114803314, -0.16485100984573364, 0.21920686960220337, 0.26403629779815674, 0.22207330167293549, -0.09109857678413391, -0.15931448340415955, -0.10720335692167282, 0.1454126387834549, 0.010521695017814636, 0.5708839893341064, 0.05724706873297691, 0.17814987897872925, 0.14909511804580688, 0.04419323801994324, 0.02111446112394333, -0.28323325514793396, -0.06363028287887573, -0.07201018929481506, 0.21727322041988373, -0.18768951296806335, -0.12580597400665283, 0.04180391505360603, -0.2209446132183075, -0.05052034929394722, -0.18613070249557495, 0.022619646042585373, -0.05297864228487015, 0.028419792652130127, 0.04804788902401924, 0.04413432627916336, 0.23480990529060364, -0.43689626455307007, 0.04374255985021591, -0.06880928575992584, 0.10230698436498642, 0.2306392937898636, -0.09788797795772552, 0.3817758560180664, 0.042677074670791626, -0.31698524951934814, 0.009664773941040039, 0.018873311579227448, -0.09281273931264877, 0.21142622828483582, 0.017306052148342133, -0.17566420137882233, -0.017882082611322403, 0.04502131789922714, 0.2304660826921463, -0.11787679046392441, 0.027178095653653145, 0.21840956807136536, 0.04929039627313614, -0.45879673957824707, 0.3201702833175659, 0.4787878692150116, -0.27355265617370605, -0.08761025965213776, 0.24805420637130737, 0.04774506762623787, 0.3263319730758667, 0.06583346426486969, 0.1816515028476715, 0.28873586654663086, 0.10451533645391464, 0.3736541271209717, 0.024186380207538605, 0.12390893697738647, 0.13295148313045502, 0.24445542693138123, 0.15558591485023499, 0.21123658120632172, 0.4075266718864441, -0.2197609841823578, 0.29343053698539734, -0.29030701518058777, 0.06939905881881714, -0.05847936123609543, -0.16341081261634827, 0.16874821484088898, 0.3123423457145691, 0.08327596634626389, 0.17232781648635864, -0.2653709948062897, 0.4888256788253784, -0.03982909768819809, -0.2026306390762329, -0.19325341284275055, 0.2618727684020996, -0.07163038849830627, -0.12677879631519318, -0.11078673601150513, -0.22174254059791565, -0.14468619227409363, -0.03420834615826607, 0.14421647787094116, -0.6080904603004456, 0.165825754404068, 0.1780465543270111, -0.1325172632932663, -0.16971834003925323, -0.10607986897230148, 0.23422682285308838, 0.10969898849725723, -0.07398642599582672, -0.020564550533890724, 0.02205408364534378, 0.050831783562898636, -0.03176910802721977, 0.070794478058815, 0.2845672369003296, 0.06949974596500397, -0.3261432349681854, -0.08860757946968079, 0.028168920427560806, 0.07733581215143204, 0.15406937897205353, -0.03257226571440697, 0.14802177250385284, 0.23446747660636902, 0.13024242222309113, 0.042234741151332855, -0.08777227252721786, -0.17669208347797394, 0.11539068818092346, 0.0173513013869524, -0.34970128536224365, -0.1444835662841797, -0.5136169195175171, 0.1191742792725563, -0.3950393795967102, 0.15203499794006348, -0.6309110522270203, 0.31771233677864075, 0.24209316074848175, 0.1043875589966774, -0.23572760820388794, -0.2944583594799042, -0.018367426469922066, -0.20888231694698334, 0.48256635665893555, 0.2201557755470276, 0.11751540750265121, -0.21929147839546204, -0.34981781244277954, -0.5625341534614563, -0.025322534143924713, -0.13899095356464386, -0.08248308300971985, -0.2705153524875641, -0.004103201441466808, 0.27469807863235474, 0.27625781297683716, -0.05681362748146057, -0.0429307259619236, -0.08370907604694366, 0.0761818066239357, -0.19958442449569702, -0.21123190224170685, -0.3830574154853821, 0.18049326539039612, -0.1026848778128624, -0.049556490033864975, -0.08051405847072601, -0.029824215918779373, -0.11194411665201187, -0.2530982494354248, -0.1765735149383545, 0.17103438079357147, -0.14912588894367218, 0.3884041905403137, -0.016554953530430794, 0.33595705032348633, 0.07936479151248932, -0.18749697506427765, -0.11238186061382294, 0.0434567891061306, -0.05401867255568504, 0.3798461854457855, 0.0634099543094635, 0.22555992007255554, -0.27846288681030273, -0.35390129685401917, -0.3619382679462433, 0.5960182547569275, 0.11591865122318268, -0.057555947452783585, -0.3417951762676239, 0.10503008216619492, -0.023262690752744675, 0.1765863299369812, -0.056663628667593, 0.24891135096549988, -0.15924493968486786, 0.09201464056968689, -0.43464410305023193, -0.04721039906144142, 0.5104726552963257, -0.8678758144378662, -0.26052170991897583, 0.003188053146004677, 0.07321590185165405, -0.03882104903459549, -0.20408765971660614, -0.6355010867118835, 0.18922296166419983, 0.30167871713638306, 0.17507460713386536, -0.003179101273417473, 0.22777052223682404, -0.1221884936094284, -0.052579715847969055, -0.05607391148805618, -0.3247562646865845, -0.0901467502117157, -0.19452111423015594, 0.0034506022930145264, -0.23504352569580078 ]
https://github.com/huggingface/datasets/issues/1977
ModuleNotFoundError: No module named 'apache_beam' for wikipedia datasets
Hi ! Thanks for reporting Some wikipedia configurations do require the user to have `apache_beam` in order to parse the wikimedia data. On the other hand regarding your second issue ``` OSError: Memory mapping file failed: Cannot allocate memory ``` I've never experienced this, can you open a new issue for this specific error and provide more details please ? For example what script did you use to get this, what language did you use, what's your environment details (os, python version, pyarrow version)..
Hi I am trying to run run_mlm.py code [1] of huggingface with following "wikipedia"/ "20200501.aa" dataset: `python run_mlm.py --model_name_or_path bert-base-multilingual-cased --dataset_name wikipedia --dataset_config_name 20200501.aa --do_train --do_eval --output_dir /tmp/test-mlm --max_seq_length 256 ` I am getting this error, but as per documentation, huggingface dataset provide processed version of this dataset and users can load it without requiring setup extra settings for apache-beam. could you help me please to load this dataset? Do you think I can run run_ml.py with this dataset? or anyway I could subsample and train the model? I greatly appreciate providing the processed version of all languages for this dataset, which allow the user to use them without setting up apache-beam,. thanks I really appreciate your help. @lhoestq thanks. [1] https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py error I get: ``` >>> import datasets >>> datasets.load_dataset("wikipedia", "20200501.aa") Downloading and preparing dataset wikipedia/20200501.aa (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /dara/temp/cache_home_2/datasets/wikipedia/20200501.aa/1.0.0/4021357e28509391eab2f8300d9b689e7e8f3a877ebb3d354b01577d497ebc63... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/dara/temp/libs/anaconda3/envs/codes/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/dara/temp/libs/anaconda3/envs/codes/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/temp/libs/anaconda3/envs/codes/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 1099, in _download_and_prepare import apache_beam as beam ModuleNotFoundError: No module named 'apache_beam' ```
84
ModuleNotFoundError: No module named 'apache_beam' for wikipedia datasets Hi I am trying to run run_mlm.py code [1] of huggingface with following "wikipedia"/ "20200501.aa" dataset: `python run_mlm.py --model_name_or_path bert-base-multilingual-cased --dataset_name wikipedia --dataset_config_name 20200501.aa --do_train --do_eval --output_dir /tmp/test-mlm --max_seq_length 256 ` I am getting this error, but as per documentation, huggingface dataset provide processed version of this dataset and users can load it without requiring setup extra settings for apache-beam. could you help me please to load this dataset? Do you think I can run run_ml.py with this dataset? or anyway I could subsample and train the model? I greatly appreciate providing the processed version of all languages for this dataset, which allow the user to use them without setting up apache-beam,. thanks I really appreciate your help. @lhoestq thanks. [1] https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py error I get: ``` >>> import datasets >>> datasets.load_dataset("wikipedia", "20200501.aa") Downloading and preparing dataset wikipedia/20200501.aa (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /dara/temp/cache_home_2/datasets/wikipedia/20200501.aa/1.0.0/4021357e28509391eab2f8300d9b689e7e8f3a877ebb3d354b01577d497ebc63... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/dara/temp/libs/anaconda3/envs/codes/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/dara/temp/libs/anaconda3/envs/codes/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/temp/libs/anaconda3/envs/codes/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 1099, in _download_and_prepare import apache_beam as beam ModuleNotFoundError: No module named 'apache_beam' ``` Hi ! Thanks for reporting Some wikipedia configurations do require the user to have `apache_beam` in order to parse the wikimedia data. On the other hand regarding your second issue ``` OSError: Memory mapping file failed: Cannot allocate memory ``` I've never experienced this, can you open a new issue for this specific error and provide more details please ? For example what script did you use to get this, what language did you use, what's your environment details (os, python version, pyarrow version)..
[ -0.21314120292663574, -0.3383001685142517, 0.001538597047328949, 0.3398340344429016, 0.2197452038526535, 0.23544153571128845, 0.25071418285369873, 0.26806211471557617, 0.18148531019687653, -0.01445208489894867, -0.03593198210000992, 0.03648987039923668, -0.1710570603609085, 0.10198693722486496, 0.16277804970741272, -0.4244249761104584, 0.18501700460910797, -0.13246998190879822, -0.2871961295604706, -0.06233303248882294, -0.2229190319776535, 0.34670770168304443, -0.27872657775878906, 0.08045472204685211, -0.09311272948980331, -0.11170362681150436, -0.023321814835071564, 0.1777574121952057, -0.05407240241765976, -0.14760424196720123, 0.10969774425029755, -0.2670563757419586, 0.2810363173484802, 0.339610755443573, -0.00012048807548126206, 0.07037323713302612, 0.3882130980491638, -0.21051515638828278, -0.33135998249053955, -0.350504994392395, 0.1729956865310669, -0.12941814959049225, 0.1381455510854721, -0.2263069450855255, -0.2553460896015167, -0.14388339221477509, 0.15258212387561798, -0.2568323016166687, 0.6282422542572021, -0.06245463714003563, 0.15261581540107727, 0.3100939989089966, 0.34254154562950134, -0.02962614968419075, 0.13509681820869446, 0.23606723546981812, -0.02384283021092415, 0.33658647537231445, -0.16997092962265015, -0.1384141594171524, 0.13686919212341309, 0.540743350982666, -0.2211785763502121, -0.012528035789728165, 0.46234777569770813, -0.20029158890247345, 0.098788321018219, -0.5092287063598633, 0.11675378680229187, 0.2758406698703766, 0.503131628036499, -0.26792722940444946, -0.1555139273405075, -0.04995511472225189, 0.033807892352342606, -0.035364117473363876, 0.02328554168343544, 0.22989101707935333, -0.11794991791248322, 0.07345682382583618, 0.22955751419067383, -0.3673398494720459, -0.19676579535007477, 0.23053903877735138, 0.2532697021961212, 0.21524667739868164, -0.06695104390382767, 0.22250059247016907, 0.17485679686069489, -0.10259373486042023, -0.46211400628089905, -0.04027450829744339, 0.15612639486789703, 0.4422606825828552, -0.23123221099376678, 0.0028231777250766754, -0.14729979634284973, 0.2895691692829132, 0.24781042337417603, -0.170307457447052, -0.45384612679481506, 0.11530546844005585, 0.27100756764411926, 0.03217586874961853, 0.014241233468055725, 0.01483348198235035, 0.1804620623588562, -0.14045648276805878, 0.2022215873003006, 0.15210825204849243, 0.028499510139226913, 0.047168124467134476, -0.08343213051557541, -0.09261229634284973, -0.6663610935211182, -0.014430690556764603, 0.25717824697494507, -0.11041142046451569, -0.1701253205537796, 0.009011832065880299, -0.5486822128295898, -0.2558382451534271, -0.11783411353826523, 0.4914836585521698, -0.08762352168560028, -0.04323609918355942, 0.30668431520462036, 0.2725154459476471, -0.31960466504096985, -0.33294710516929626, -0.025987533852458, 0.397068589925766, -0.4042430520057678, 0.25805631279945374, 0.1624428778886795, -0.18520943820476532, 0.33001577854156494, -0.09699124842882156, 0.061208367347717285, -0.012666486203670502, 0.09383236616849899, 0.016033807769417763, -0.2645793855190277, 0.13766168057918549, 0.2601518929004669, 0.2935318052768707, 0.3347855508327484, -0.10729697346687317, -0.13033723831176758, -0.013006120920181274, -0.2017829716205597, -0.07858681678771973, 0.08498815447092056, 0.010448042303323746, -0.17483049631118774, 0.15169692039489746, -0.16323181986808777, 0.27823585271835327, -0.06219659000635147, 0.05895116552710533, -0.04853334277868271, 0.2518557906150818, -0.07311583310365677, -0.15454214811325073, 0.4467759132385254, 0.7152785062789917, -0.09245473146438599, -0.18328148126602173, -0.12486562132835388, 0.08887943625450134, -0.13308185338974, 0.037833280861377716, -0.020148182287812233, 0.20382952690124512, -0.19446371495723724, 0.00741240382194519, 0.268869012594223, -0.40801265835762024, 0.028128162026405334, 0.05157012492418289, 0.07580317556858063, 0.06895088404417038, 0.17303773760795593, -0.1063593402504921, -0.28764694929122925, -0.043013930320739746, -0.05049334466457367, 0.20063577592372894, 0.1387096792459488, -0.09723867475986481, -0.12215331196784973, -0.2608405649662018, 0.0938873142004013, 0.23396189510822296, 0.10460534691810608, -0.02143554389476776, 0.059847358614206314, 0.5199071168899536, 0.2253655195236206, -0.14686162769794464, 0.1068723276257515, 0.36510610580444336, -0.10320736467838287, 0.21242132782936096, 0.08010091632604599, -0.2059348225593567, -0.1896691620349884, 0.0508292093873024, -0.21553796529769897, 0.5097803473472595, -0.1102500706911087, -0.049657758325338364, -0.20627567172050476, -0.06230100989341736, -0.17669859528541565, -0.5256917476654053, 0.01746334880590439, -0.10822418332099915, 0.13924796879291534, 0.3834105134010315, -0.10240133106708527, 0.2250567525625229, 0.005566244944930077, 0.19906675815582275, -0.8539178967475891, 0.1584816724061966, -0.1625041514635086, 0.04183021932840347, 0.11883465945720673, 0.2998979687690735, 0.14185522496700287, -0.24503284692764282, 0.14501875638961792, 0.2261148989200592, 0.055780742317438126, 0.012418307363986969, 0.042055271565914154, -0.10973487794399261, 0.14787977933883667, -0.38458549976348877, 0.255229651927948, 0.022389091551303864, 0.08743896335363388, 0.05944906920194626, 0.006711166352033615, 0.26688724756240845, 0.15427617728710175, 0.3922148644924164, 0.16030298173427582, 0.16773952543735504, -0.06528376042842865, 0.015454638749361038, -0.21062830090522766, -0.3001222610473633, 0.32338809967041016, 0.19253163039684296, 0.33152803778648376, -0.22223235666751862, -0.11972332000732422, -0.39486128091812134, 0.257723331451416, -0.025115614756941795, 0.22707578539848328, -0.05601603537797928, -0.6535446643829346, 0.2904535233974457, 0.13731910288333893, -0.23335684835910797, 0.1929880976676941, 0.23383142054080963, -0.17620119452476501, 0.20471782982349396, 0.17583151161670685, 0.06484106928110123, 0.2654978334903717, 0.08825437724590302, 0.4785861074924469, -0.08195438235998154, -0.22944945096969604, -0.11144257336854935, -0.21780267357826233, -0.17939649522304535, -0.26915380358695984, 0.14483001828193665, -0.3526339530944824, 0.1320124715566635, -0.2323409616947174, -0.5582603216171265, -0.30511945486068726, -0.02173856645822525, -0.5030120015144348, -0.09741118550300598, -0.3454746603965759, 0.15300364792346954, 0.19943514466285706, 0.4281540513038635, 0.2881687581539154, -0.036483749747276306, 0.08334247767925262, -0.15672960877418518, -0.18805080652236938, -0.15029440820217133, -0.2787012457847595, -0.006759753450751305, 0.375251829624176, 0.13934282958507538, 0.15505319833755493, -0.2120731920003891, -0.08613932132720947, -0.03835386782884598, -0.42709222435951233, 0.22448872029781342, -0.2542716860771179, 0.26284199953079224, 0.18856173753738403, 0.4130576252937317, -0.17570346593856812, -0.050250131636857986, 0.36043408513069153, 0.022533977404236794, -0.09792277961969376, -0.07104945927858353, 0.07581111788749695, 0.07908879220485687, 0.0070312246680259705, -0.28766894340515137, -0.2747099995613098, -0.30010634660720825, 0.1849592924118042, 0.11328890919685364, -0.07090909779071808, 0.3787711560726166, 0.20081304013729095, 0.15348224341869354, -0.051665157079696655, 0.05775999277830124, -0.1449173390865326, 0.03990707919001579, 0.37082812190055847, -0.23937152326107025, -0.35595279932022095, 0.1864738166332245, -0.1147247776389122, 0.21947981417179108, -0.03918949142098427, -0.26816195249557495, -0.1775781512260437, 0.3354674279689789, -0.1826426088809967, -0.010824106633663177, 0.32287314534187317, 0.23392535746097565, -0.1341770589351654, 0.15626034140586853, -0.11748594790697098, -0.04107736051082611, -0.08017022162675858, -0.4929055869579315, 0.3673177659511566, 0.2488037347793579, 0.6314404606819153, -0.08031442016363144, 0.8895262479782104, 0.2763771712779999, 0.2054402232170105, 0.1781025230884552, -0.0261582862585783, 0.3253341019153595, -0.07672099024057388, -0.2912576198577881, -0.16960912942886353, 0.016621142625808716, 0.13850568234920502, 0.30688655376434326, -0.028720710426568985, 0.06901434063911438, -0.5301672220230103, -0.25678595900535583, -0.14135658740997314, -0.23499418795108795, 0.028941325843334198, -0.11575073003768921, 0.4020377993583679, 0.0677075982093811, 0.20306017994880676, 0.06312750279903412, -0.03347882628440857, 0.33154207468032837, 0.5468325018882751, 0.07335477322340012, 0.17794759571552277, -0.010167352855205536, -0.1991821676492691, -0.5310760140419006, 0.4021536111831665, -0.14989730715751648, 0.000715792179107666, -0.0902603417634964, -0.10642106831073761, 0.17108884453773499, 0.020813267678022385, 0.7178600430488586, -0.08887720853090286, -0.0936145931482315, 0.13589715957641602, 0.0015429630875587463, -0.7305617332458496, 0.105054572224617, 0.015100624412298203, 0.1899866908788681, 0.15724612772464752, 0.26132333278656006, -0.47098496556282043, -0.12989398837089539, 0.4364517331123352, 0.18564550578594208, -0.1291804164648056, -0.15219391882419586, -0.5246488451957703, -0.17365965247154236, -0.437241792678833, -0.19014281034469604, -0.012295100837945938, 0.13663533329963684, 0.14503280818462372, 0.3733566701412201, 0.026763761416077614, -0.17194566130638123, 0.2619961202144623, 0.270851731300354, 0.3428226411342621, -0.004150520544499159, -0.1550675481557846, 0.1976626217365265, 0.3420526683330536, -0.02633095346391201, 0.19292257726192474, -0.008190512657165527, -0.4109746217727661, -0.04815257340669632, 0.0178305022418499, 0.23247256875038147, 0.13118450343608856, -0.13448649644851685, 0.10069748759269714, 0.19318214058876038, -0.09219512343406677, -0.1482953131198883, -0.09537869691848755, 0.23876339197158813, 0.26654765009880066, -0.3958491384983063, -0.41668522357940674, 0.6590350270271301, 0.06487999856472015, 0.05684037506580353, 0.1441074013710022, 0.2705357074737549, -0.3297988474369049, 0.30836784839630127, 0.10009358078241348, 1.03299081325531, -0.030320502817630768, 0.18676051497459412, 0.21420273184776306, 0.16141177713871002, 0.8284096121788025, -0.446865439414978, 0.18071767687797546, -0.32085639238357544, 0.1913250982761383, -0.008997643366456032, -0.07284251600503922, 0.43847182393074036, 0.07672464102506638, -0.12313507497310638, 0.33073633909225464, 0.2205318957567215, 0.0837886705994606, -0.1420513242483139, 0.45861732959747314, -0.01945083774626255, -0.22196568548679352, -0.457787424325943, 0.0059212930500507355, -0.10632103681564331, 0.6052085757255554, -0.2764025032520294, -0.1886194944381714, -0.23043814301490784, -0.25357598066329956, -0.1999850869178772, -0.015350951813161373, -0.3532024919986725, 0.2437591850757599, -0.10922381281852722, -0.23117050528526306, 0.3377096652984619, 0.20062986016273499, 0.24540828168392181, 0.0233234241604805, -0.3331473171710968, 0.18419237434864044, -0.3711702823638916, -0.43091946840286255, -0.20071552693843842, 0.09084340929985046, 0.3212777078151703, -0.17387640476226807, -0.1705290675163269, 0.02836620807647705, -0.07446960359811783, 0.002398878335952759, -0.15167643129825592, -0.19765223562717438, 0.23124028742313385, 0.04174736887216568, -0.17325568199157715, 0.24821405112743378, 0.13648663461208344, 0.10780242085456848, 0.04661001265048981, -0.17688396573066711, -0.1747896671295166, -0.05952029675245285, 0.18114840984344482, -0.15081092715263367, -0.013554040342569351, 0.47744905948638916, 0.1515924632549286, -0.054503582417964935, 0.5850342512130737, 0.43203356862068176, -0.14666259288787842, -0.1480633020401001, 0.11502938717603683, 0.05947740748524666, -0.35198962688446045, -0.07950009405612946, 0.34367457032203674, 0.22882552444934845, -0.10906827449798584, 0.015570629388093948, 0.06602109968662262, -0.22050192952156067, 0.11754578351974487, -0.4755691587924957, -0.16504046320915222, 0.4451126456260681, -0.22263120114803314, -0.16485100984573364, 0.21920686960220337, 0.26403629779815674, 0.22207330167293549, -0.09109857678413391, -0.15931448340415955, -0.10720335692167282, 0.1454126387834549, 0.010521695017814636, 0.5708839893341064, 0.05724706873297691, 0.17814987897872925, 0.14909511804580688, 0.04419323801994324, 0.02111446112394333, -0.28323325514793396, -0.06363028287887573, -0.07201018929481506, 0.21727322041988373, -0.18768951296806335, -0.12580597400665283, 0.04180391505360603, -0.2209446132183075, -0.05052034929394722, -0.18613070249557495, 0.022619646042585373, -0.05297864228487015, 0.028419792652130127, 0.04804788902401924, 0.04413432627916336, 0.23480990529060364, -0.43689626455307007, 0.04374255985021591, -0.06880928575992584, 0.10230698436498642, 0.2306392937898636, -0.09788797795772552, 0.3817758560180664, 0.042677074670791626, -0.31698524951934814, 0.009664773941040039, 0.018873311579227448, -0.09281273931264877, 0.21142622828483582, 0.017306052148342133, -0.17566420137882233, -0.017882082611322403, 0.04502131789922714, 0.2304660826921463, -0.11787679046392441, 0.027178095653653145, 0.21840956807136536, 0.04929039627313614, -0.45879673957824707, 0.3201702833175659, 0.4787878692150116, -0.27355265617370605, -0.08761025965213776, 0.24805420637130737, 0.04774506762623787, 0.3263319730758667, 0.06583346426486969, 0.1816515028476715, 0.28873586654663086, 0.10451533645391464, 0.3736541271209717, 0.024186380207538605, 0.12390893697738647, 0.13295148313045502, 0.24445542693138123, 0.15558591485023499, 0.21123658120632172, 0.4075266718864441, -0.2197609841823578, 0.29343053698539734, -0.29030701518058777, 0.06939905881881714, -0.05847936123609543, -0.16341081261634827, 0.16874821484088898, 0.3123423457145691, 0.08327596634626389, 0.17232781648635864, -0.2653709948062897, 0.4888256788253784, -0.03982909768819809, -0.2026306390762329, -0.19325341284275055, 0.2618727684020996, -0.07163038849830627, -0.12677879631519318, -0.11078673601150513, -0.22174254059791565, -0.14468619227409363, -0.03420834615826607, 0.14421647787094116, -0.6080904603004456, 0.165825754404068, 0.1780465543270111, -0.1325172632932663, -0.16971834003925323, -0.10607986897230148, 0.23422682285308838, 0.10969898849725723, -0.07398642599582672, -0.020564550533890724, 0.02205408364534378, 0.050831783562898636, -0.03176910802721977, 0.070794478058815, 0.2845672369003296, 0.06949974596500397, -0.3261432349681854, -0.08860757946968079, 0.028168920427560806, 0.07733581215143204, 0.15406937897205353, -0.03257226571440697, 0.14802177250385284, 0.23446747660636902, 0.13024242222309113, 0.042234741151332855, -0.08777227252721786, -0.17669208347797394, 0.11539068818092346, 0.0173513013869524, -0.34970128536224365, -0.1444835662841797, -0.5136169195175171, 0.1191742792725563, -0.3950393795967102, 0.15203499794006348, -0.6309110522270203, 0.31771233677864075, 0.24209316074848175, 0.1043875589966774, -0.23572760820388794, -0.2944583594799042, -0.018367426469922066, -0.20888231694698334, 0.48256635665893555, 0.2201557755470276, 0.11751540750265121, -0.21929147839546204, -0.34981781244277954, -0.5625341534614563, -0.025322534143924713, -0.13899095356464386, -0.08248308300971985, -0.2705153524875641, -0.004103201441466808, 0.27469807863235474, 0.27625781297683716, -0.05681362748146057, -0.0429307259619236, -0.08370907604694366, 0.0761818066239357, -0.19958442449569702, -0.21123190224170685, -0.3830574154853821, 0.18049326539039612, -0.1026848778128624, -0.049556490033864975, -0.08051405847072601, -0.029824215918779373, -0.11194411665201187, -0.2530982494354248, -0.1765735149383545, 0.17103438079357147, -0.14912588894367218, 0.3884041905403137, -0.016554953530430794, 0.33595705032348633, 0.07936479151248932, -0.18749697506427765, -0.11238186061382294, 0.0434567891061306, -0.05401867255568504, 0.3798461854457855, 0.0634099543094635, 0.22555992007255554, -0.27846288681030273, -0.35390129685401917, -0.3619382679462433, 0.5960182547569275, 0.11591865122318268, -0.057555947452783585, -0.3417951762676239, 0.10503008216619492, -0.023262690752744675, 0.1765863299369812, -0.056663628667593, 0.24891135096549988, -0.15924493968486786, 0.09201464056968689, -0.43464410305023193, -0.04721039906144142, 0.5104726552963257, -0.8678758144378662, -0.26052170991897583, 0.003188053146004677, 0.07321590185165405, -0.03882104903459549, -0.20408765971660614, -0.6355010867118835, 0.18922296166419983, 0.30167871713638306, 0.17507460713386536, -0.003179101273417473, 0.22777052223682404, -0.1221884936094284, -0.052579715847969055, -0.05607391148805618, -0.3247562646865845, -0.0901467502117157, -0.19452111423015594, 0.0034506022930145264, -0.23504352569580078 ]
https://github.com/huggingface/datasets/issues/1973
Question: what gets stored in the datasets cache and why is it so huge?
Echo'ing this observation: I have a few datasets in the neighborhood of 2GB CSVs uncompressed, and when I use something like `Dataset.save_to_disk()` it's ~18GB on disk. If this is unexpected behavior, would be happy to help run debugging as needed.
I'm running several training jobs (around 10) with a relatively large dataset (3M samples). The datasets cache reached 178G and it seems really large. What is it stored in there and why is it so large? I don't think I noticed this problem before and seems to be related to the new version of the datasets library. Any insight? Thank you!
40
Question: what gets stored in the datasets cache and why is it so huge? I'm running several training jobs (around 10) with a relatively large dataset (3M samples). The datasets cache reached 178G and it seems really large. What is it stored in there and why is it so large? I don't think I noticed this problem before and seems to be related to the new version of the datasets library. Any insight? Thank you! Echo'ing this observation: I have a few datasets in the neighborhood of 2GB CSVs uncompressed, and when I use something like `Dataset.save_to_disk()` it's ~18GB on disk. If this is unexpected behavior, would be happy to help run debugging as needed.
[ -0.036060526967048645, -0.06625652313232422, -0.10862754285335541, 0.538281261920929, 0.17685192823410034, 0.30466482043266296, -0.06870958209037781, 0.2563447654247284, -0.14989309012889862, -0.11155147850513458, -0.00441442197188735, -0.23843663930892944, -0.15991584956645966, -0.2295418232679367, 0.15508709847927094, 0.24381251633167267, 0.14176490902900696, -0.0338776558637619, -0.08829846978187561, -0.0986519455909729, -0.11497285217046738, 0.03713041916489601, 0.000026404857635498047, -0.17599664628505707, -0.5011153221130371, -0.19515438377857208, -0.1269189417362213, -0.02260766178369522, -0.1835441291332245, -0.1439896672964096, 0.20840151607990265, -0.09003627300262451, 0.3271472752094269, 0.44731035828590393, -0.00011150483624078333, -0.36219626665115356, 0.32275092601776123, -0.008409533649682999, -0.3896474838256836, 0.3312593698501587, -0.3773743510246277, -0.39234253764152527, -0.10465330630540848, -0.1323722004890442, 0.37905481457710266, -0.030565865337848663, -0.0775613859295845, -0.41556456685066223, -0.10019727051258087, 0.2361394762992859, 0.2581385374069214, -0.20531275868415833, -0.34421709179878235, 0.13730227947235107, 0.10905762016773224, 0.07371372729539871, -0.1573266088962555, -0.2792854607105255, 0.26278018951416016, 0.23566070199012756, -0.0979839488863945, 0.10340823233127594, 0.0833161473274231, -0.02011987566947937, 0.2829729914665222, -0.07905064523220062, -0.3153597116470337, -0.20741716027259827, 0.6619530916213989, 0.20528632402420044, 0.8683173060417175, -0.34828057885169983, -0.0808233991265297, -0.2358756959438324, -0.14973701536655426, -0.23025266826152802, 0.16973893344402313, 0.4599975347518921, 0.050564032047986984, 0.004005838185548782, -0.590930163860321, -0.4143616855144501, -0.12680310010910034, -0.1330242156982422, -0.24533431231975555, -0.2898690700531006, -0.3402653932571411, 0.03711102157831192, 0.16387593746185303, -0.03439849615097046, 0.30529698729515076, -0.3209098279476166, -0.09717011451721191, 0.20201249420642853, -0.3501281142234802, -0.28082066774368286, -0.10917571932077408, 0.4334007501602173, 0.24324965476989746, 0.026310529559850693, -0.25469261407852173, -0.15975314378738403, -0.11928927898406982, -0.04932330548763275, 0.23717516660690308, 0.41530176997184753, -0.10425106436014175, 0.048230625689029694, -0.04939725250005722, -0.34862348437309265, -0.1449478417634964, -0.1352473497390747, 0.12274020910263062, 0.07192567735910416, 0.4723915457725525, -0.47453171014785767, -0.16422362625598907, -0.3412803113460541, 0.17872723937034607, 0.2651432156562805, 0.054917991161346436, 0.02787267602980137, 0.08754308521747589, 0.16120103001594543, -0.11396890133619308, 0.23803183436393738, -0.28660818934440613, -0.1712254285812378, 0.08064460754394531, -0.15506517887115479, -0.24835646152496338, -0.1152961403131485, -0.07121546566486359, 0.24896134436130524, 0.3250066637992859, -0.2040180116891861, 0.25587964057922363, 0.09029345959424973, -0.05817185342311859, -0.12216593325138092, 0.1817217916250229, -0.36637890338897705, 0.45946040749549866, 0.3355000913143158, -0.1150590032339096, 0.42094936966896057, -0.17990224063396454, 0.10787270963191986, -0.21132540702819824, 0.2094637155532837, -0.41736483573913574, -0.43497681617736816, -0.06228667497634888, 0.08994629979133606, -0.23166631162166595, 0.007756594568490982, -0.3615065813064575, 0.09032505005598068, 0.4243745803833008, 0.18849439918994904, 0.22170329093933105, -0.10526047646999359, -0.3592415452003479, -0.26064378023147583, -0.12783341109752655, 0.18289798498153687, -0.549599826335907, 0.23165568709373474, -0.01718471385538578, 0.2038089632987976, 0.026567727327346802, 0.38626039028167725, -0.06768431514501572, 0.05148841440677643, -0.07389062643051147, -0.13878880441188812, -0.027305208146572113, 0.04106872156262398, -0.6250163316726685, 0.176568403840065, 0.34900206327438354, -0.05228442698717117, -0.08217842131853104, 0.39639949798583984, 0.09157934039831161, -0.04627891257405281, -0.11379745602607727, 0.2983601689338684, -0.2702442705631256, -0.1422474980354309, -0.37102630734443665, -0.10004082322120667, 0.048665087670087814, -0.08005090057849884, 0.058471716940402985, -0.20005789399147034, -0.06482771784067154, 0.21716085076332092, -0.006897374987602234, 0.1431346833705902, 0.22139538824558258, 0.38005542755126953, -0.04003610834479332, 0.24627235531806946, 0.25457763671875, 0.004556287080049515, -0.38909950852394104, 0.29578906297683716, 0.3068706691265106, -0.6919740438461304, 0.15637360513210297, -0.1010131686925888, 0.1169685646891594, 0.10495320707559586, -0.03308512642979622, -0.18949688971042633, -0.020221229642629623, 0.08104496449232101, 0.05127789452672005, -0.10196852684020996, -0.022128786891698837, 0.4722431004047394, 0.0037869978696107864, -0.17206205427646637, -0.3683249056339264, -0.20580723881721497, 0.08472684770822525, 0.03663242235779762, -0.17738081514835358, 0.020200170576572418, 0.03595740348100662, -0.11589950323104858, -0.16112738847732544, 0.14031510055065155, 0.1411767303943634, -0.16527263820171356, 0.20106402039527893, 0.5026525259017944, -0.009897569194436073, 0.11339381337165833, 0.352916955947876, -0.05426976457238197, 0.12951892614364624, -0.18244990706443787, -0.24554967880249023, 0.0227382630109787, -0.10563679039478302, 0.08912612497806549, -0.001870717853307724, -0.10946885496377945, 0.06705879420042038, 0.08063660562038422, 0.2521677613258362, 0.049688465893268585, 0.15565206110477448, -0.11023928225040436, 0.30046766996383667, 0.3928951621055603, -0.048834867775440216, 0.21085374057292938, 0.41105514764785767, -0.2141382396221161, 0.0022682100534439087, 0.16358549892902374, -0.2870110869407654, -0.46922531723976135, 0.09584697335958481, 0.36196208000183105, 0.4408290982246399, 0.07988020777702332, 0.33153048157691956, -0.10543269664049149, 0.2634229362010956, -0.18672813475131989, 0.08324804157018661, 0.045525774359703064, 0.013066944666206837, -0.17170149087905884, 0.1634773463010788, -0.0028158212080597878, -0.029500922188162804, 0.2800488770008087, -0.08154739439487457, 0.2360970824956894, -0.031367309391498566, 0.40498512983322144, -0.2644423246383667, -0.05649501830339432, -0.002913746051490307, 0.3724588453769684, -0.2667140066623688, -0.12638422846794128, -0.10695679485797882, -0.07814684510231018, 0.23202702403068542, -0.26432085037231445, -0.2530313730239868, 0.6069623231887817, 0.046741172671318054, 0.12233862280845642, 0.17496226727962494, -0.045466430485248566, -0.3047425448894501, 0.11479440331459045, 0.17044970393180847, -0.32436636090278625, 0.25305452942848206, 0.20051582157611847, 0.11972223222255707, -0.2608417570590973, -0.18692615628242493, -0.1394842565059662, 0.12433189898729324, 0.21618996560573578, -0.35058674216270447, 0.030197620391845703, -0.2612142562866211, 0.14561134576797485, -0.3643140196800232, -0.11692236363887787, -0.04941222071647644, 0.16843748092651367, -0.04160876199603081, -0.0869179517030716, 0.16039572656154633, -0.004781737923622131, -0.2482864409685135, 0.005788523703813553, 0.21277743577957153, -0.16231779754161835, -0.029823288321495056, 0.1968926340341568, -0.12277092784643173, 0.02862246334552765, -0.11358517408370972, -0.0954577773809433, -0.37360477447509766, -0.7964872717857361, 0.3856803774833679, 0.10866843163967133, -0.2260924130678177, 0.1569167971611023, 0.18523173034191132, -0.028862718492746353, 0.13900670409202576, -0.7766134142875671, 0.27811065316200256, -0.2700861394405365, 0.1859995722770691, 0.05073480308055878, -0.048259347677230835, 0.21868182718753815, -0.24565809965133667, 0.04442925751209259, -0.1558120995759964, -0.33634546399116516, -0.2957932949066162, 0.152001291513443, 0.5615337491035461, -0.23647046089172363, -0.03459914028644562, 0.38503599166870117, 0.546937108039856, 0.4004914164543152, -0.06703583896160126, -0.06798140704631805, 0.418462336063385, 0.5475916862487793, -0.3115634322166443, -0.07918240129947662, 0.23399609327316284, -0.1497088372707367, -0.09969137609004974, 0.362091064453125, 0.3107397258281708, -0.16335192322731018, 0.28696343302726746, 0.0401582308113575, 0.13267183303833008, 0.09427660703659058, 0.22417700290679932, -0.30987510085105896, 0.10052494704723358, 0.19264435768127441, -0.18801137804985046, -0.05187486857175827, -0.39898020029067993, -0.12183615565299988, -0.024360544979572296, 0.06100092828273773, 0.26462653279304504, -0.19705462455749512, -0.06007155403494835, -0.06499549001455307, 0.14433127641677856, 0.002743261633440852, 0.016104187816381454, -0.012198951095342636, 0.21550750732421875, 0.27962011098861694, 0.26869887113571167, 0.4034876823425293, -0.2655993103981018, -0.09433002769947052, -0.13388381898403168, -0.14404965937137604, -0.05714390426874161, -0.047582291066646576, 0.08558046817779541, 0.2596668601036072, 0.10971209406852722, 0.11560075730085373, 0.3220531642436981, -0.09705930948257446, -0.044779933989048004, 0.45601633191108704, -0.3914613127708435, -0.2944035232067108, 0.029758792370557785, -0.19125372171401978, 0.2687641680240631, -0.08918499201536179, -0.09293173253536224, -0.24344860017299652, -0.035828568041324615, -0.03125200793147087, -0.16419914364814758, 0.13429123163223267, 0.12780900299549103, -0.16050340235233307, 0.14075660705566406, 0.25802046060562134, 0.1434347778558731, 0.05388840287923813, 0.21261319518089294, 0.12165749073028564, 0.2759927809238434, -0.0779656320810318, 0.1932588517665863, 0.07230647653341293, -0.06120223551988602, 0.18875561654567719, 0.0845034047961235, -0.21575927734375, -0.19941475987434387, -0.26058998703956604, -0.07520659267902374, -0.19388361275196075, 0.23180191218852997, 0.07605589181184769, 0.18432258069515228, -0.2688039243221283, -0.5139298439025879, 0.40543875098228455, 0.2316490262746811, -0.059795577079057693, 0.18443064391613007, -0.3162137269973755, -0.012924833223223686, -0.08002941310405731, 0.007393784821033478, 0.619428277015686, -0.22549279034137726, 0.376330703496933, -0.15092161297798157, -0.04439644515514374, 0.3291860520839691, -0.49757885932922363, -0.054918333888053894, -0.04054449498653412, -0.2693861126899719, -0.006473502144217491, -0.044316209852695465, -0.11642742902040482, 0.0063692256808280945, -0.06392284482717514, 0.33582380414009094, -0.1385200321674347, 0.016102341935038567, 0.10282550752162933, 0.06300263851881027, 0.09825857728719711, -0.13434825837612152, 0.06006458401679993, 0.27100270986557007, -0.12895488739013672, -0.10425253212451935, -0.04861713945865631, 0.10039401054382324, 0.018198523670434952, 0.2117585688829422, -0.34841054677963257, -0.18064680695533752, 0.019387664273381233, 0.32638370990753174, 0.00040443986654281616, -0.19310984015464783, -0.024747131392359734, 0.1287291795015335, 0.22111229598522186, 0.20695054531097412, -0.1576766073703766, 0.24063768982887268, -0.0560305193066597, 0.177082821726799, 0.22212599217891693, -0.14282213151454926, 0.16038765013217926, -0.04007747024297714, 0.059972815215587616, -0.03603309392929077, 0.06365323066711426, -0.18742316961288452, -0.06896191090345383, 0.2709847688674927, 0.17043444514274597, -0.05340179055929184, -0.26052165031433105, 0.04661668464541435, 0.14195232093334198, 0.06659461557865143, 0.14568832516670227, 0.30925294756889343, -0.030454251915216446, 0.5358055830001831, -0.24374686181545258, -0.4441324770450592, -0.04914618656039238, 0.08958238363265991, 0.47069817781448364, -0.2969498336315155, 0.24614086747169495, -0.01178700104355812, -0.19941087067127228, -0.005233701318502426, 0.31880882382392883, 0.06725677847862244, 0.03130187839269638, 0.10301847010850906, -0.2232806235551834, 0.2156287580728531, -0.1635623723268509, -0.4461267292499542, 0.12239678204059601, -0.39683282375335693, -0.2381705939769745, -0.11695872247219086, -0.43057432770729065, -0.09596671164035797, -0.20706097781658173, 0.2224825918674469, 0.02885519713163376, -0.4427160918712616, 0.1704186052083969, 0.41686388850212097, -0.24085906147956848, 0.10305849462747574, 0.11973727494478226, 0.21504992246627808, 0.09835522621870041, -0.06391031295061111, 0.06558441370725632, -0.16618598997592926, -0.11517977714538574, -0.05735479295253754, -0.14301471412181854, -0.25264081358909607, 0.04019627347588539, 0.11941943317651749, 0.19409924745559692, -0.08460093289613724, -0.16089396178722382, -0.3413432240486145, 0.027758171781897545, -0.2151891142129898, 0.04585549607872963, 0.32810330390930176, 0.2502226233482361, 0.05252501741051674, -0.019048627465963364, -0.25456497073173523, 0.060661859810352325, 0.2935042381286621, 0.07076803594827652, 0.32964861392974854, 0.08343451470136642, 0.13963501155376434, 0.15718282759189606, -0.2573202848434448, -0.42196524143218994, 0.18723317980766296, -0.10205921530723572, -0.0509159117937088, 0.2260444462299347, -0.22510121762752533, 0.2495863139629364, 0.44107913970947266, -0.12338405102491379, 0.1734837293624878, -0.08097958564758301, -0.18590356409549713, 0.05571761727333069, 0.14885064959526062, 0.2688769996166229, -0.11519164592027664, 0.03358036279678345, 0.41760727763175964, -0.27110329270362854, 0.06648916006088257, 0.15447361767292023, -0.07571618258953094, 0.048786189407110214, 0.10514456778764725, 0.44115394353866577, -0.23535506427288055, 0.1328931599855423, 0.12037046253681183, 0.2203480750322342, -0.04145200923085213, 0.39158251881599426, 0.4607022702693939, 0.06688922643661499, 0.5477507710456848, 0.19092696905136108, 0.2733960747718811, 0.4535444974899292, -0.19882944226264954, -0.09163834899663925, -0.3442137539386749, -0.12067630887031555, 0.3691904544830322, -0.11198346316814423, 0.11483274400234222, -0.0498376339673996, 0.20118814706802368, 0.171062633395195, -0.41177254915237427, -0.1741054207086563, -0.0463557206094265, -0.3184817433357239, -0.05628255754709244, 0.46612322330474854, 0.009787485003471375, 0.19801050424575806, 0.30311185121536255, -0.0922476202249527, -0.3561854958534241, 0.47742995619773865, -0.033411867916584015, -0.2023455649614334, -0.27700772881507874, 0.2927493751049042, 0.13489151000976562, -0.17489731311798096, -0.10158844292163849, 0.2509453296661377, -0.2589645981788635, -0.06469246745109558, -0.02425270900130272, 0.09333856403827667, 0.14874233305454254, 0.1655646562576294, 0.05718619376420975, 0.3473057150840759, 0.13912764191627502, -0.07070457190275192, -0.18023653328418732, 0.23289531469345093, -0.17529287934303284, -0.13025672733783722, -0.06931580603122711, 0.10115477442741394, 0.0940849781036377, 0.30566954612731934, 0.01869470253586769, 0.26011234521865845, -0.2928523123264313, -0.18822023272514343, 0.006708171218633652, -0.01925848424434662, -0.23055905103683472, 0.25834929943084717, -0.39107346534729004, -0.17371127009391785, 0.6758272647857666, -0.25805899500846863, 0.13592377305030823, -0.11407868564128876, 0.09606234729290009, -0.19106224179267883, 0.4656353294849396, 0.44589704275131226, -0.057966433465480804, -0.2991357445716858, 0.007432013750076294, -0.2848968505859375, 0.1120932400226593, -0.2606488764286041, 0.47349366545677185, -0.10066626965999603, 0.5078716278076172, -0.14431211352348328, -0.07843752205371857, -0.10948126018047333, -0.033502303063869476, -0.05626188591122627, -0.07852400839328766, -0.28453537821769714, -0.05053452029824257, 0.11402563750743866, 0.16739846765995026, 0.05656864494085312, -0.16808098554611206, 0.29486098885536194, -0.21466559171676636, -0.031139204278588295, -0.08887658268213272, 0.03239593654870987, 0.0776209682226181, 0.3440168797969818, 0.08082501590251923, 0.04520218074321747, 0.01370837539434433, 0.16302290558815002, 0.18541933596134186, -0.3548767566680908, 0.0036778340581804514, 0.14070972800254822, 0.0632229819893837, 0.05392371863126755, -0.02358882874250412, -0.519605815410614, 0.19731773436069489, 0.1435050666332245, 0.060323797166347504, -0.1435733437538147, -0.026682915166020393, 0.08549706637859344, -0.3765108287334442, -0.2722698450088501, 0.3478080928325653, 0.44590070843696594, 0.14414605498313904, -0.16811895370483398, -0.050699882209300995, -0.20869840681552887, -0.08807037025690079, 0.28265494108200073, 0.05814600735902786, -0.33237701654434204, -0.0007808897644281387, 0.12037543952465057, 0.5062112212181091, -0.16270610690116882, -0.3356367349624634, 0.10497532039880753, 0.42891550064086914, -0.17106613516807556, -0.23429062962532043, 0.2778823971748352, -0.2623940706253052, 0.16532786190509796, -0.12412849068641663, 0.617326021194458, 0.00017234869301319122, -0.04310963302850723, 0.21920901536941528, -0.18616251647472382 ]
https://github.com/huggingface/datasets/issues/1973
Question: what gets stored in the datasets cache and why is it so huge?
Thanks @ioana-blue for pointing out this problem (and thanks also @justin-yan). You are right that current implementation of the datasets caching files take too much memory. We are definitely changing this and optimizing the defaults, so that the file sizes are considerably reduced. I will come back to you as soon as this is fixed.
I'm running several training jobs (around 10) with a relatively large dataset (3M samples). The datasets cache reached 178G and it seems really large. What is it stored in there and why is it so large? I don't think I noticed this problem before and seems to be related to the new version of the datasets library. Any insight? Thank you!
55
Question: what gets stored in the datasets cache and why is it so huge? I'm running several training jobs (around 10) with a relatively large dataset (3M samples). The datasets cache reached 178G and it seems really large. What is it stored in there and why is it so large? I don't think I noticed this problem before and seems to be related to the new version of the datasets library. Any insight? Thank you! Thanks @ioana-blue for pointing out this problem (and thanks also @justin-yan). You are right that current implementation of the datasets caching files take too much memory. We are definitely changing this and optimizing the defaults, so that the file sizes are considerably reduced. I will come back to you as soon as this is fixed.
[ -0.08335061371326447, 0.01212504506111145, -0.12917543947696686, 0.5186681747436523, 0.14931663870811462, 0.24268415570259094, -0.07578983902931213, 0.301964670419693, -0.08773303031921387, -0.03593537211418152, -0.029559293761849403, -0.253434419631958, -0.09368398785591125, -0.2008039504289627, 0.07230792194604874, 0.1365637183189392, 0.09018193185329437, -0.06537255644798279, -0.0765933096408844, -0.07977353781461716, -0.10622917115688324, -0.04332581162452698, -0.013511791825294495, -0.17180116474628448, -0.5766088962554932, -0.18230777978897095, -0.12539707124233246, -0.005154266953468323, -0.20074264705181122, -0.17834819853305817, 0.18083994090557098, -0.02916255220770836, 0.32375770807266235, 0.3823104500770569, -0.00010807607759488747, -0.3183884620666504, 0.3569487929344177, 0.025818387046456337, -0.35998138785362244, 0.3442702889442444, -0.5000377893447876, -0.29746213555336, -0.13125774264335632, -0.13604383170604706, 0.340459406375885, -0.045787662267684937, -0.0374121218919754, -0.39421239495277405, -0.007716409862041473, 0.24499323964118958, 0.2759653329849243, -0.22573746740818024, -0.3055837154388428, 0.09275799989700317, 0.20781031250953674, 0.02361385151743889, -0.13388364017009735, -0.2668149471282959, 0.27038609981536865, 0.16546985507011414, -0.17307278513908386, 0.1816096007823944, 0.09015259891748428, -0.04119541868567467, 0.28494876623153687, -0.08678758889436722, -0.24214327335357666, -0.20348142087459564, 0.6005626320838928, 0.21978530287742615, 0.933112382888794, -0.30523157119750977, -0.10026480257511139, -0.1678260862827301, -0.14389632642269135, -0.1512909233570099, 0.21347486972808838, 0.4073272943496704, 0.07088331878185272, -0.005550786852836609, -0.5161412358283997, -0.41973838210105896, -0.1441660225391388, -0.12126177549362183, -0.1735285520553589, -0.25120410323143005, -0.27400243282318115, 0.05890706926584244, 0.1617283970117569, -0.06185436248779297, 0.4042038917541504, -0.2412802278995514, -0.16097156703472137, 0.173191100358963, -0.3817911744117737, -0.2755790948867798, -0.22292399406433105, 0.48648878931999207, 0.24029535055160522, 0.0038444027304649353, -0.2600577771663666, -0.10929196327924728, -0.10398289561271667, -0.020295560359954834, 0.22253383696079254, 0.3948449194431305, -0.10594744235277176, 0.10321502387523651, -0.03397016227245331, -0.3564934730529785, -0.23452797532081604, -0.1782759130001068, 0.10712853819131851, 0.023265618830919266, 0.4347735643386841, -0.45174694061279297, -0.19633576273918152, -0.3539864718914032, 0.20494811236858368, 0.14514027535915375, -0.02099478989839554, -0.0245747622102499, 0.14594830572605133, 0.1945817768573761, -0.16341890394687653, 0.2311793565750122, -0.29167312383651733, -0.24189822375774384, 0.014577699825167656, -0.21426309645175934, -0.24923716485500336, -0.06235925480723381, -0.14812111854553223, 0.3357032239437103, 0.30380764603614807, -0.17901349067687988, 0.28062400221824646, 0.06774460524320602, -0.0248507559299469, -0.14286896586418152, 0.23853948712348938, -0.35735300183296204, 0.40107104182243347, 0.32826557755470276, -0.13110926747322083, 0.2729564607143402, -0.20016665756702423, 0.1455436646938324, -0.19071358442306519, 0.19668662548065186, -0.5129279494285583, -0.4545753002166748, -0.005171457305550575, 0.11762923002243042, -0.10547617077827454, 0.037894874811172485, -0.31925129890441895, 0.04728829860687256, 0.4130817949771881, 0.16914764046669006, 0.17519234120845795, -0.12079060077667236, -0.4018245041370392, -0.23242729902267456, -0.12635913491249084, 0.18704456090927124, -0.3892208933830261, 0.21346202492713928, 0.009946482256054878, 0.21146000921726227, 0.05776000767946243, 0.383622944355011, -0.14838220179080963, 0.07767506688833237, -0.08700772374868393, -0.12093722075223923, 0.00015598535537719727, -0.07957988232374191, -0.636711061000824, 0.12182251363992691, 0.3812287449836731, -0.11843262612819672, -0.018993698060512543, 0.4304908514022827, 0.028324497863650322, -0.09627872705459595, -0.17109999060630798, 0.23588795959949493, -0.27055373787879944, -0.13954433798789978, -0.2917768657207489, -0.12081320583820343, -0.008378315716981888, -0.038046058267354965, 0.08657841384410858, -0.16433647274971008, -0.014614537358283997, 0.33071169257164, -0.005859531462192535, 0.13749030232429504, 0.08674029260873795, 0.3432820439338684, -0.030141565948724747, 0.2613257169723511, 0.30532848834991455, 0.04604717344045639, -0.4341363310813904, 0.2702083885669708, 0.18654240667819977, -0.6862898468971252, 0.19061613082885742, -0.1346430480480194, 0.14363613724708557, 0.04208236187696457, -0.012628447264432907, -0.19467301666736603, 0.02075960487127304, 0.0416756235063076, 0.06791305541992188, -0.20976458489894867, -0.01889258623123169, 0.5739930868148804, -0.09885537624359131, -0.1863345503807068, -0.39654025435447693, -0.21634888648986816, 0.04310457780957222, 0.039131101220846176, -0.07313480973243713, -0.013769984245300293, 0.05581377074122429, -0.0892111212015152, -0.1688680350780487, 0.1361525058746338, 0.23211850225925446, -0.13084377348423004, 0.2174193263053894, 0.5695486664772034, -0.035529278218746185, 0.09772685170173645, 0.37127038836479187, -0.100741446018219, 0.0756177082657814, -0.19840532541275024, -0.24194958806037903, -0.017980992794036865, -0.15060225129127502, 0.10634981840848923, 0.027817457914352417, -0.11540129035711288, 0.0016547869890928268, 0.06064079329371452, 0.296420156955719, 0.07286886870861053, 0.13805517554283142, -0.10588604211807251, 0.324592262506485, 0.43826794624328613, -0.07809963822364807, 0.17649996280670166, 0.46059057116508484, -0.15093925595283508, -0.04101976007223129, 0.15645921230316162, -0.2423931360244751, -0.4789293110370636, 0.15061451494693756, 0.3311379849910736, 0.39076298475265503, 0.10922090709209442, 0.2850668430328369, -0.10331206768751144, 0.2868417203426361, -0.16082388162612915, 0.08122245967388153, 0.06671290844678879, 0.02194855734705925, -0.28847330808639526, 0.09321267902851105, -0.04104211553931236, -0.012691715732216835, 0.21647164225578308, -0.05561839044094086, 0.29834622144699097, -0.01099218800663948, 0.3491842746734619, -0.2550544738769531, -0.1621963083744049, -0.007012319751083851, 0.3860311806201935, -0.2329476773738861, -0.14071734249591827, -0.10029134154319763, -0.05844172462821007, 0.26604321599006653, -0.1486244946718216, -0.23000839352607727, 0.5778571367263794, 0.08205186575651169, 0.14235767722129822, 0.08803501725196838, -0.07994663715362549, -0.306051641702652, 0.11107467114925385, 0.2493351250886917, -0.3045136630535126, 0.19990383088588715, 0.11631245166063309, 0.06194886565208435, -0.27682942152023315, -0.13323961198329926, -0.10868622362613678, 0.18352042138576508, 0.19871509075164795, -0.30276235938072205, 0.010949663817882538, -0.3178112506866455, 0.13803257048130035, -0.362697958946228, -0.1848437637090683, -0.11651087552309036, 0.14849142730236053, -0.04460640624165535, -0.006233240943402052, 0.21585291624069214, -0.07369861751794815, -0.16288478672504425, -0.019652366638183594, 0.17239528894424438, -0.16155028343200684, 0.04386012628674507, 0.3077872395515442, -0.13090260326862335, 0.03141210973262787, -0.2782614827156067, -0.04710666835308075, -0.3229494094848633, -0.8187429904937744, 0.2975212037563324, 0.10099130123853683, -0.22606663405895233, 0.13213345408439636, 0.2460591048002243, 0.06018538028001785, 0.19010330736637115, -0.7528635263442993, 0.1599373072385788, -0.2401580661535263, 0.15511056780815125, -0.0018201172351837158, -0.0307550597935915, 0.20117998123168945, -0.179815873503685, 0.007336219772696495, -0.12457945942878723, -0.19678834080696106, -0.2765606641769409, 0.14565639197826385, 0.4915035367012024, -0.19250258803367615, -0.06338515877723694, 0.3370994031429291, 0.5671012997627258, 0.5190480947494507, 0.044670335948467255, -0.0705256462097168, 0.3782270550727844, 0.4487403333187103, -0.3152037560939789, -0.08806610852479935, 0.2686745524406433, -0.14358359575271606, -0.04211701452732086, 0.40305477380752563, 0.3427504301071167, -0.16616562008857727, 0.21249541640281677, -0.06964270770549774, 0.17014926671981812, 0.03604772314429283, 0.19996534287929535, -0.2818186581134796, 0.16307836771011353, 0.1915142685174942, -0.21352306008338928, -0.08052903413772583, -0.4090752601623535, -0.009725996293127537, -0.04902373254299164, 0.060440804809331894, 0.3139720559120178, -0.20419155061244965, -0.02162802405655384, -0.03547956794500351, 0.0954543948173523, 0.03737321123480797, 0.034018877893686295, -0.07384815067052841, 0.2846229076385498, 0.21864499151706696, 0.30762699246406555, 0.3758860230445862, -0.18458260595798492, -0.12808305025100708, -0.1948767602443695, -0.15428996086120605, 0.04977233707904816, 0.004588406533002853, 0.07709962129592896, 0.31253698468208313, 0.10592919588088989, 0.12062154710292816, 0.3195887506008148, -0.16949540376663208, -0.06327635794878006, 0.4400780200958252, -0.350592702627182, -0.34305882453918457, 0.031194377690553665, -0.15526443719863892, 0.26213976740837097, -0.11667092889547348, -0.07119549810886383, -0.2251216471195221, 0.028257688507437706, -0.039983734488487244, -0.11761820316314697, 0.08859734982252121, 0.14254073798656464, -0.14572425186634064, 0.11152008920907974, 0.23307080566883087, 0.1177610456943512, 0.1649424135684967, 0.16298305988311768, 0.1325433999300003, 0.2992496192455292, -0.10561072826385498, 0.1794903576374054, 0.04357941076159477, -0.051701851189136505, 0.19084087014198303, 0.0886831134557724, -0.2106287032365799, -0.19950348138809204, -0.21762792766094208, -0.10438568890094757, -0.17740163207054138, 0.2469908446073532, 0.049936480820178986, 0.1593247801065445, -0.2842358648777008, -0.589231014251709, 0.4678238332271576, 0.2875883877277374, -0.0503036230802536, 0.28165048360824585, -0.30008846521377563, -0.026213498786091805, -0.11707274615764618, 0.07197897136211395, 0.6400008797645569, -0.21708492934703827, 0.35474246740341187, -0.16071990132331848, -0.005751453340053558, 0.3252638578414917, -0.4948311448097229, -0.020331401377916336, -0.031721025705337524, -0.29430311918258667, 0.0027601029723882675, -0.07939707487821579, -0.10423975437879562, 0.016007989645004272, -0.03759865090250969, 0.38064563274383545, -0.07707992196083069, 0.017146164551377296, 0.10230275988578796, 0.21115729212760925, 0.06839156150817871, -0.12194789946079254, 0.14120319485664368, 0.28217071294784546, -0.13760368525981903, -0.14865563809871674, -0.025010420009493828, 0.10325045138597488, 0.03348735347390175, 0.22285066545009613, -0.2927025854587555, -0.17541339993476868, -0.028216416016221046, 0.3199634552001953, -0.023945685476064682, -0.1103065013885498, 0.022418443113565445, 0.15084584057331085, 0.196602463722229, 0.22022275626659393, -0.17551371455192566, 0.2917008101940155, -0.059079818427562714, 0.1441817730665207, 0.22621747851371765, -0.1373249739408493, 0.1802838146686554, -0.09225533902645111, -0.015595965087413788, -0.006195545196533203, 0.07561638951301575, -0.20754697918891907, -0.18158087134361267, 0.259036123752594, 0.17530041933059692, -0.031870611011981964, -0.1809740662574768, 0.011145055294036865, 0.09685559570789337, 0.07200287282466888, 0.1782183051109314, 0.3341042995452881, -0.014710013754665852, 0.5450965762138367, -0.1917358785867691, -0.4085078537464142, -0.03902486339211464, 0.03764563053846359, 0.4952649176120758, -0.2649909555912018, 0.2961457371711731, 0.010836243629455566, -0.21051035821437836, -0.03007778711616993, 0.24015143513679504, 0.1065254658460617, -0.019221864640712738, 0.04640500992536545, -0.198755145072937, 0.2384648472070694, -0.10023362934589386, -0.3699209988117218, 0.06722038984298706, -0.3693827986717224, -0.1530642956495285, -0.1152307391166687, -0.47390520572662354, -0.055658429861068726, -0.24850596487522125, 0.21754039824008942, -0.003382734954357147, -0.4405685067176819, 0.12124750018119812, 0.4964889585971832, -0.28471773862838745, 0.017355244606733322, 0.07669512927532196, 0.25611430406570435, 0.01281949132680893, -0.1073092445731163, 0.06617851555347443, -0.13967493176460266, -0.08898720890283585, -0.0818246603012085, -0.14626531302928925, -0.26981690526008606, 0.06404069066047668, 0.10603256523609161, 0.17889466881752014, -0.09701691567897797, -0.1527719795703888, -0.3858829736709595, -0.00404953770339489, -0.24052134156227112, 0.05081683024764061, 0.28741148114204407, 0.2743217945098877, 0.09709428995847702, 0.028157159686088562, -0.34594348073005676, 0.14096029102802277, 0.3457013964653015, 0.06635422259569168, 0.2746604084968567, 0.0574163980782032, 0.1722717583179474, 0.1525082141160965, -0.267560750246048, -0.3174441456794739, 0.19160965085029602, -0.10968631505966187, -0.11077537387609482, 0.18503159284591675, -0.20563383400440216, 0.2195080816745758, 0.4261029064655304, -0.15347318351268768, 0.13960802555084229, -0.06268151849508286, -0.1825830191373825, 0.14209991693496704, 0.17698483169078827, 0.21078090369701385, -0.15529951453208923, 0.027027767151594162, 0.38250961899757385, -0.26317280530929565, 0.10178641974925995, 0.18272249400615692, -0.09958197176456451, 0.11504177749156952, 0.09167832881212234, 0.3488774597644806, -0.32273489236831665, 0.08936342597007751, -0.0018477514386177063, 0.2343330830335617, -0.14708973467350006, 0.43423137068748474, 0.5094913244247437, 0.05560716241598129, 0.5676189661026001, 0.21294191479682922, 0.34386304020881653, 0.42684319615364075, -0.13542085886001587, -0.07074735313653946, -0.2690298855304718, -0.22017376124858856, 0.4318249523639679, -0.16168707609176636, 0.06000597029924393, -0.09151005744934082, 0.2003549039363861, 0.2525603473186493, -0.3557162284851074, -0.1063612550497055, -0.0910748839378357, -0.2840983271598816, -0.05441374331712723, 0.43283379077911377, 0.01951531320810318, 0.1626622974872589, 0.28042587637901306, -0.05027002468705177, -0.31966614723205566, 0.478455126285553, 0.01762370765209198, -0.2315436452627182, -0.20452646911144257, 0.2657102048397064, 0.22161346673965454, -0.09625022858381271, -0.15031497180461884, 0.28404760360717773, -0.2878262996673584, -0.05214690417051315, -0.0020575709640979767, 0.13534937798976898, 0.10797441750764847, 0.11734350025653839, 0.09008952975273132, 0.2902497947216034, 0.126077800989151, -0.11774706095457077, -0.15779228508472443, 0.2456447035074234, -0.14798809587955475, -0.16312380135059357, -0.05842377617955208, 0.10515045374631882, 0.08605807274580002, 0.18093468248844147, -0.010962475091218948, 0.20414379239082336, -0.29032066464424133, -0.18781542778015137, 0.08265363425016403, -0.029163233935832977, -0.1981455236673355, 0.30620110034942627, -0.3989688754081726, -0.17466770112514496, 0.6400594711303711, -0.27700722217559814, 0.07932456582784653, -0.15325705707073212, 0.11832126975059509, -0.255944162607193, 0.5393372178077698, 0.4638424515724182, 0.06437916308641434, -0.28855037689208984, -0.06692708283662796, -0.21840867400169373, 0.09966067969799042, -0.3270793855190277, 0.4932592213153839, -0.029724903404712677, 0.46986669301986694, -0.20549795031547546, -0.1049918383359909, -0.09086832404136658, -0.10213978588581085, -0.010525318793952465, -0.10089161992073059, -0.30232691764831543, -0.04875138774514198, 0.1350870132446289, 0.1893383413553238, 0.03125368431210518, -0.14794620871543884, 0.3177105784416199, -0.24408742785453796, 0.01397705078125, -0.13946759700775146, -0.006686720997095108, 0.1513635814189911, 0.35545599460601807, 0.08276642858982086, 0.0488256961107254, -0.047821223735809326, 0.15646138787269592, 0.14938655495643616, -0.39695021510124207, -0.051136504858732224, 0.08510101586580276, -0.06664631515741348, 0.028011241927742958, -0.04668756574392319, -0.5293647050857544, 0.19655846059322357, 0.0999138355255127, 0.12868905067443848, -0.2723075747489929, -0.06693942099809647, 0.06155892461538315, -0.3856149911880493, -0.19794973731040955, 0.3814427852630615, 0.3347821831703186, 0.13502725958824158, -0.11805053055286407, -0.10023903846740723, -0.28793442249298096, -0.06453873217105865, 0.28689342737197876, 0.008070572279393673, -0.3462713062763214, 0.06570089608430862, 0.10393241047859192, 0.4476662576198578, -0.12307944148778915, -0.3959048390388489, 0.12563112378120422, 0.4089435040950775, -0.09788443893194199, -0.16935832798480988, 0.22781208157539368, -0.13476169109344482, 0.22644473612308502, -0.09897653758525848, 0.5771961212158203, -0.05495842546224594, -0.007208796218037605, 0.20377469062805176, -0.15643411874771118 ]
https://github.com/huggingface/datasets/issues/1973
Question: what gets stored in the datasets cache and why is it so huge?
Thank you! Also I noticed that the files don't seem to be cleaned after the jobs finish. Last night I had only 3 jobs running, but the cache was still at 180GB.
I'm running several training jobs (around 10) with a relatively large dataset (3M samples). The datasets cache reached 178G and it seems really large. What is it stored in there and why is it so large? I don't think I noticed this problem before and seems to be related to the new version of the datasets library. Any insight? Thank you!
32
Question: what gets stored in the datasets cache and why is it so huge? I'm running several training jobs (around 10) with a relatively large dataset (3M samples). The datasets cache reached 178G and it seems really large. What is it stored in there and why is it so large? I don't think I noticed this problem before and seems to be related to the new version of the datasets library. Any insight? Thank you! Thank you! Also I noticed that the files don't seem to be cleaned after the jobs finish. Last night I had only 3 jobs running, but the cache was still at 180GB.
[ -0.161356121301651, 0.0733160525560379, -0.13332891464233398, 0.5806113481521606, 0.07841749489307404, 0.27426087856292725, -0.05600644275546074, 0.24571029841899872, -0.12449765205383301, -0.0830649882555008, -0.04089423269033432, -0.2797766327857971, -0.10303022712469101, -0.17857399582862854, 0.09679722785949707, 0.21813370287418365, 0.08794723451137543, -0.12073037028312683, -0.1814737617969513, -0.16226352751255035, -0.10233262181282043, -0.01791645772755146, 0.022489294409751892, -0.11800533533096313, -0.6523396968841553, -0.22123542428016663, -0.11310690641403198, 0.0551731213927269, -0.14046761393547058, -0.09337927401065826, 0.14397664368152618, -0.04608602449297905, 0.3950192332267761, 0.5104987025260925, -0.00011396430636523291, -0.2925599217414856, 0.38237208127975464, 0.05450742691755295, -0.4045553207397461, 0.3270021080970764, -0.45708420872688293, -0.32796141505241394, -0.10859257727861404, -0.10039473325014114, 0.4394213855266571, -0.020424004644155502, 0.0014365855604410172, -0.3428095877170563, -0.0186627060174942, 0.264045387506485, 0.23587541282176971, -0.30489489436149597, -0.3635196387767792, 0.11350035667419434, 0.16813702881336212, 0.12315891683101654, -0.044124893844127655, -0.26131829619407654, 0.2455042451620102, 0.1298610270023346, -0.1326354444026947, 0.15698489546775818, 0.1074741929769516, -0.029607106000185013, 0.1850612759590149, -0.05028695985674858, -0.21645650267601013, -0.2998598515987396, 0.7091449499130249, 0.22740834951400757, 0.8417986631393433, -0.23840463161468506, -0.08283213526010513, -0.2749614417552948, -0.1479182243347168, -0.15803250670433044, 0.22078484296798706, 0.517449140548706, 0.11287879943847656, -0.031704213470220566, -0.5117552280426025, -0.380275696516037, -0.06558047235012054, -0.18402902781963348, -0.1793045997619629, -0.2046903371810913, -0.309480756521225, 0.0825137197971344, 0.14816083014011383, -0.0059115104377269745, 0.3916052579879761, -0.2668062448501587, -0.1414569616317749, 0.23165841400623322, -0.3380453586578369, -0.24815525114536285, -0.17257454991340637, 0.5365598201751709, 0.1817600429058075, -0.03296537697315216, -0.3444199562072754, -0.11244209855794907, -0.21145884692668915, -0.00009302422404289246, 0.2603340744972229, 0.3116797208786011, -0.08616966754198074, 0.11873962730169296, 0.008573506027460098, -0.38542982935905457, -0.32199883460998535, -0.1497400403022766, 0.03725322335958481, 0.02213362604379654, 0.3994233012199402, -0.41647064685821533, -0.17342936992645264, -0.3614162802696228, 0.19853819906711578, 0.19566355645656586, -0.0042335279285907745, -0.07227486371994019, 0.11211654543876648, 0.21831712126731873, -0.18712696433067322, 0.2036716341972351, -0.26116782426834106, -0.23135899007320404, 0.028411494567990303, -0.1532808542251587, -0.22855070233345032, -0.09090578556060791, -0.13276439905166626, 0.2995835542678833, 0.27651554346084595, -0.13965480029582977, 0.33096396923065186, 0.03688781335949898, -0.06481792032718658, -0.15633416175842285, 0.2549433410167694, -0.3582814931869507, 0.3950999975204468, 0.40937724709510803, -0.11242842674255371, 0.3327392339706421, -0.22171981632709503, 0.211544468998909, -0.18270745873451233, 0.2137184739112854, -0.5258371829986572, -0.44183415174484253, -0.015943126752972603, 0.09838298708200455, -0.15725287795066833, 0.07682532072067261, -0.3453718423843384, -0.018948465585708618, 0.4571042060852051, 0.22756168246269226, 0.22568246722221375, -0.16460172832012177, -0.32790884375572205, -0.18948079645633698, -0.22783730924129486, 0.14644955098628998, -0.3910386860370636, 0.25113633275032043, 0.017940638586878777, 0.14544276893138885, 0.07118380814790726, 0.2979472577571869, -0.1191539466381073, 0.13153937458992004, -0.09786947816610336, -0.13482888042926788, 0.027983255684375763, -0.04060821980237961, -0.5370231866836548, 0.14215350151062012, 0.4007992744445801, -0.16228193044662476, -0.07457990199327469, 0.34595775604248047, 0.029050670564174652, -0.06799285858869553, -0.151448592543602, 0.28605401515960693, -0.2108336091041565, -0.12791727483272552, -0.2654140293598175, -0.08853775262832642, -0.03838268667459488, -0.01847071200609207, 0.09985034167766571, -0.2232891023159027, -0.03680510073900223, 0.18819615244865417, 0.02879326045513153, 0.1677853763103485, 0.09766294807195663, 0.33059996366500854, -0.1397835612297058, 0.4280257821083069, 0.287923127412796, 0.030645933002233505, -0.4317772686481476, 0.23434042930603027, 0.13497501611709595, -0.6966277360916138, 0.16239649057388306, -0.12691143155097961, 0.2554289400577545, 0.07292642444372177, -0.07310037314891815, -0.23378917574882507, -0.0279716644436121, 0.18455460667610168, 0.03013293445110321, -0.1857679933309555, -0.07111506164073944, 0.4955204427242279, -0.11407365649938583, -0.1607787013053894, -0.4297209680080414, -0.18484467267990112, 0.1431550234556198, -0.0023233629763126373, -0.14595656096935272, 0.041118402034044266, 0.07868634909391403, -0.11176136881113052, -0.16376352310180664, 0.11105547100305557, 0.24776650965213776, -0.14847058057785034, 0.26828160881996155, 0.5673516392707825, -0.054856449365615845, 0.19515034556388855, 0.30026715993881226, -0.0716317743062973, 0.06362487375736237, -0.1734064519405365, -0.2402176856994629, -0.05086873471736908, -0.2077072411775589, 0.15258389711380005, 0.0015326887369155884, -0.1117343083024025, 0.05426672101020813, 0.019021812826395035, 0.26369553804397583, 0.12933966517448425, 0.16328713297843933, -0.07560360431671143, 0.21680347621440887, 0.4447782337665558, -0.15190574526786804, 0.174780935049057, 0.47067347168922424, -0.1771165430545807, -0.05168476700782776, 0.11131919175386429, -0.2850255072116852, -0.4193947911262512, 0.10504419356584549, 0.4016013741493225, 0.4452231526374817, 0.04961085692048073, 0.3604389429092407, -0.07568255811929703, 0.2775464355945587, -0.18372845649719238, 0.02088751643896103, 0.07489875704050064, -0.04879350960254669, -0.15229257941246033, 0.07957231998443604, -0.007895669899880886, -0.030309803783893585, 0.168120875954628, -0.0738716796040535, 0.2904917299747467, -0.03633502870798111, 0.35726797580718994, -0.25805893540382385, -0.13162410259246826, -0.07329104095697403, 0.3482123017311096, -0.21507880091667175, -0.1365123987197876, -0.10949176549911499, -0.07098589837551117, 0.2380700707435608, -0.16246095299720764, -0.21391786634922028, 0.5364329814910889, -0.014211481437087059, 0.15005743503570557, 0.07355199754238129, -0.0893295407295227, -0.3087903559207916, 0.06903225183486938, 0.257231742143631, -0.20986057817935944, 0.2047886699438095, 0.09221115708351135, 0.06648408621549606, -0.27575981616973877, -0.12378226220607758, -0.17662732303142548, 0.19516818225383759, 0.2061215341091156, -0.28823772072792053, 0.0006670728325843811, -0.26265957951545715, 0.09052626043558121, -0.3399084210395813, -0.1441928595304489, -0.043229490518569946, 0.060996122658252716, -0.06964758783578873, 0.007228394504636526, 0.20787963271141052, -0.005456700921058655, -0.20654353499412537, -0.026030099019408226, 0.19364798069000244, -0.15582320094108582, -0.0068773552775382996, 0.20635351538658142, -0.2218584269285202, 0.016188781708478928, -0.24534818530082703, -0.015154510736465454, -0.382066011428833, -0.928337812423706, 0.25924989581108093, 0.0368521586060524, -0.16974732279777527, 0.20853671431541443, 0.19651064276695251, 0.023202143609523773, 0.16150526702404022, -0.7610763311386108, 0.20209988951683044, -0.23725517094135284, 0.1262795776128769, 0.007772844284772873, 0.031102584674954414, 0.20271924138069153, -0.1744493991136551, 0.042354121804237366, -0.1398322433233261, -0.23667432367801666, -0.305412620306015, 0.1870911419391632, 0.5237811803817749, -0.2106369137763977, -0.08409605175256729, 0.18112453818321228, 0.5365935564041138, 0.48664677143096924, -0.038164954632520676, -0.12050755321979523, 0.4225435256958008, 0.4848380982875824, -0.2912485897541046, -0.07838451862335205, 0.2911514937877655, -0.08664335310459137, -0.09044113010168076, 0.41849493980407715, 0.3539147973060608, -0.08119536191225052, 0.251194566488266, -0.03327068313956261, 0.040464967489242554, 0.08541722595691681, 0.2601003646850586, -0.34807509183883667, 0.13716727495193481, 0.12855063378810883, -0.1664552390575409, -0.056688178330659866, -0.38691246509552, -0.041066620498895645, -0.008741848170757294, 0.08424269407987595, 0.266794890165329, -0.19630147516727448, -0.09375353902578354, 0.010485369712114334, 0.10130920261144638, -0.008818217553198338, -0.03581111505627632, -0.061879150569438934, 0.29164642095565796, 0.27791786193847656, 0.32211655378341675, 0.3650977909564972, -0.3677513003349304, -0.06260192394256592, -0.13756589591503143, -0.176758274435997, 0.059802547097206116, -0.05227451026439667, 0.034192148596048355, 0.2674121558666229, 0.17843367159366608, 0.18543300032615662, 0.31227561831474304, -0.13318797945976257, 0.05650186166167259, 0.4341003894805908, -0.39354947209358215, -0.3147129714488983, 0.018036652356386185, -0.19345331192016602, 0.2668856978416443, -0.0967533215880394, -0.11345171928405762, -0.25438010692596436, -0.013445919379591942, -0.04582514241337776, -0.15634308755397797, 0.12444011121988297, 0.15522539615631104, -0.1609625518321991, 0.08118074387311935, 0.3141675591468811, 0.11197829246520996, 0.1702609807252884, 0.21741516888141632, 0.1782798171043396, 0.3218366503715515, -0.17879776656627655, 0.20747408270835876, 0.09105712920427322, -0.06859881430864334, 0.2785595655441284, 0.07792702317237854, -0.17360511422157288, -0.2642304599285126, -0.23684075474739075, -0.06791014969348907, -0.17781399190425873, 0.2747412323951721, 0.07858369499444962, 0.25606676936149597, -0.2771657407283783, -0.5995447635650635, 0.3857508897781372, 0.28626659512519836, -0.1092851385474205, 0.26713961362838745, -0.48955440521240234, -0.010604538023471832, -0.1321154236793518, -0.0013052597641944885, 0.6466192007064819, -0.20871581137180328, 0.32602787017822266, -0.19991618394851685, -0.06675848364830017, 0.36438822746276855, -0.5225834846496582, -0.07692565768957138, -0.0006270371377468109, -0.20322313904762268, -0.037431392818689346, -0.07650356739759445, -0.1397908627986908, 0.038002751767635345, -0.0022654980421066284, 0.3384400010108948, -0.08165209740400314, 0.017325563356280327, 0.07315146178007126, 0.14528654515743256, 0.06336216628551483, -0.08831456303596497, 0.1170082837343216, 0.21215321123600006, -0.11985097825527191, -0.083139568567276, -0.08992701023817062, 0.122337207198143, 0.1065187156200409, 0.263184130191803, -0.26845699548721313, -0.186166912317276, -0.01665342226624489, 0.2970578670501709, 0.023721609264612198, -0.15677198767662048, -0.0804009735584259, 0.19315935671329498, 0.18699193000793457, 0.14789584279060364, -0.10960154235363007, 0.28805050253868103, -0.09818357974290848, 0.12493773549795151, 0.19413577020168304, -0.10727576911449432, 0.2267090529203415, -0.06493570655584335, -0.024834297597408295, 0.024596236646175385, 0.044823627918958664, -0.17323721945285797, -0.21949739754199982, 0.3592067360877991, 0.1631356179714203, -0.0518304705619812, -0.20334075391292572, 0.05336114019155502, 0.05762868747115135, 0.13599945604801178, 0.13847586512565613, 0.33636027574539185, -0.07369114458560944, 0.6109340190887451, -0.2178419679403305, -0.4782261848449707, -0.07675150036811829, -0.023203112185001373, 0.5032826662063599, -0.23378126323223114, 0.2860405743122101, 0.01846664771437645, -0.17513220012187958, -0.031149843707680702, 0.25590798258781433, 0.14707712829113007, 0.0428166389465332, 0.08567997068166733, -0.16492190957069397, 0.21760718524456024, -0.06420154869556427, -0.43415606021881104, 0.013234563171863556, -0.3945583403110504, -0.23240220546722412, -0.17341654002666473, -0.43588805198669434, -0.030370689928531647, -0.2216002494096756, 0.2527503967285156, 0.02949386090040207, -0.3938133120536804, 0.21684801578521729, 0.4286859333515167, -0.23612786829471588, 0.1436598300933838, 0.06520488113164902, 0.3111395537853241, 0.06429088860750198, -0.05766255408525467, 0.08792532980442047, -0.1032581776380539, -0.15508516132831573, -0.06536713987588882, -0.12484852969646454, -0.2228998839855194, 0.05259178206324577, 0.13725921511650085, 0.18830782175064087, -0.04887567460536957, -0.14311949908733368, -0.3217913508415222, 0.08516736328601837, -0.21216942369937897, 0.0646224319934845, 0.18694451451301575, 0.20908105373382568, 0.15641309320926666, 0.1074780598282814, -0.2736564576625824, 0.07986512780189514, 0.32914021611213684, 0.04492365941405296, 0.29570186138153076, 0.047216515988111496, 0.12260361015796661, 0.13798964023590088, -0.26602375507354736, -0.34097692370414734, 0.09064804762601852, -0.09493261575698853, -0.06992999464273453, 0.20950406789779663, -0.21705172955989838, 0.2317306399345398, 0.43289002776145935, -0.1261773705482483, 0.2592014670372009, -0.02091522328555584, -0.17933322489261627, 0.17944884300231934, 0.13025952875614166, 0.22332999110221863, -0.060343604534864426, 0.06645146012306213, 0.4383385479450226, -0.30422353744506836, 0.09798534959554672, 0.10236740112304688, -0.12074053287506104, 0.06066711246967316, 0.15093594789505005, 0.3464745283126831, -0.3671175241470337, 0.1173052042722702, 0.07256034016609192, 0.15377679467201233, -0.07002951204776764, 0.4517395496368408, 0.4793989360332489, 0.0183849036693573, 0.5429624915122986, 0.3200545608997345, 0.41497090458869934, 0.4656390845775604, -0.18553388118743896, -0.08966263383626938, -0.3549955487251282, -0.2353120595216751, 0.517494261264801, -0.12136690318584442, 0.04258592426776886, -0.12810339033603668, 0.19108878076076508, 0.21330223977565765, -0.34495460987091064, -0.1182982549071312, -0.022355344146490097, -0.2834680378437042, -0.0617317371070385, 0.38319894671440125, 0.03487567603588104, 0.25707098841667175, 0.32795876264572144, -0.03918047621846199, -0.2646862864494324, 0.5557454824447632, -0.017133623361587524, -0.2771162986755371, -0.2427123636007309, 0.25369006395339966, 0.12252801656723022, -0.13679856061935425, -0.1073722094297409, 0.2526150643825531, -0.3126510977745056, -0.03371074050664902, -0.012856878340244293, 0.14730404317378998, 0.19368216395378113, 0.19008208811283112, -0.014122068881988525, 0.31076911091804504, 0.09389181435108185, -0.051972895860672, -0.21078582108020782, 0.33679676055908203, -0.16807153820991516, -0.13897733390331268, -0.06917065382003784, 0.09623157978057861, 0.09664154052734375, 0.24900735914707184, -0.050926994532346725, 0.2233564704656601, -0.2308836579322815, -0.19310462474822998, 0.13382786512374878, -0.014766022562980652, -0.22119683027267456, 0.2575015127658844, -0.3979860246181488, -0.1736106127500534, 0.6114833354949951, -0.25984522700309753, 0.07225983589887619, -0.149504616856575, 0.07011079043149948, -0.26538461446762085, 0.5645387768745422, 0.5225405693054199, 0.08851534128189087, -0.27808529138565063, -0.08638264238834381, -0.27431005239486694, 0.06438136100769043, -0.3352907598018646, 0.5271924734115601, -0.11854232847690582, 0.4859291911125183, -0.20189887285232544, -0.11495450139045715, -0.04285691678524017, -0.12204206734895706, -0.0005121808499097824, -0.11984755098819733, -0.3422715365886688, -0.09232054650783539, 0.12599802017211914, 0.1910204440355301, 0.08991850167512894, -0.16043031215667725, 0.28595346212387085, -0.23846326768398285, -0.057617053389549255, -0.05389317125082016, -0.045309193432331085, 0.10334821045398712, 0.37795573472976685, 0.14626836776733398, 0.07114908844232559, -0.009199358522891998, 0.13758698105812073, 0.22917723655700684, -0.39523008465766907, -0.07520012557506561, 0.1247660219669342, 0.01920780912041664, 0.029072236269712448, -0.05750157684087753, -0.5672250390052795, 0.29111728072166443, 0.11378911882638931, 0.05809216946363449, -0.24751029908657074, -0.039872851222753525, 0.09269487112760544, -0.4392722547054291, -0.18697816133499146, 0.33820807933807373, 0.36804428696632385, 0.180120050907135, -0.11657148599624634, -0.14169694483280182, -0.2414921522140503, -0.034917235374450684, 0.3328414261341095, 0.041523367166519165, -0.4040129780769348, -0.04936475306749344, 0.09169746935367584, 0.41542258858680725, -0.06201004236936569, -0.4134926199913025, 0.15192559361457825, 0.42605990171432495, -0.0775112435221672, -0.1994900405406952, 0.16507437825202942, -0.08299127221107483, 0.20373539626598358, -0.06600838899612427, 0.48993611335754395, -0.06266937404870987, -0.039693012833595276, 0.22041964530944824, -0.13789580762386322 ]
https://github.com/huggingface/datasets/issues/1973
Question: what gets stored in the datasets cache and why is it so huge?
Hi ! As Albert said they can sometimes take more space that expected but we'll fix that soon. Also, to give more details about caching: computations on a dataset are cached by default so that you don't have to recompute them the next time you run them. So by default the cache files stay on your disk when you job is finished (so that if you re-execute it, it will be reloaded from the cache). Feel free to clear your cache after your job has finished, or disable caching using ```python import datasets datasets.set_caching_enabled(False) ```
I'm running several training jobs (around 10) with a relatively large dataset (3M samples). The datasets cache reached 178G and it seems really large. What is it stored in there and why is it so large? I don't think I noticed this problem before and seems to be related to the new version of the datasets library. Any insight? Thank you!
95
Question: what gets stored in the datasets cache and why is it so huge? I'm running several training jobs (around 10) with a relatively large dataset (3M samples). The datasets cache reached 178G and it seems really large. What is it stored in there and why is it so large? I don't think I noticed this problem before and seems to be related to the new version of the datasets library. Any insight? Thank you! Hi ! As Albert said they can sometimes take more space that expected but we'll fix that soon. Also, to give more details about caching: computations on a dataset are cached by default so that you don't have to recompute them the next time you run them. So by default the cache files stay on your disk when you job is finished (so that if you re-execute it, it will be reloaded from the cache). Feel free to clear your cache after your job has finished, or disable caching using ```python import datasets datasets.set_caching_enabled(False) ```
[ -0.06116174906492233, -0.033495813608169556, -0.12972277402877808, 0.5127938389778137, 0.11739451438188553, 0.2473042905330658, -0.010423634201288223, 0.24276398122310638, -0.0756755918264389, -0.038447558879852295, -0.05764537304639816, -0.28561273217201233, -0.06284087896347046, -0.1385337859392166, 0.13607312738895416, 0.07365583628416061, 0.05712877959012985, -0.09240193665027618, -0.06304806470870972, -0.16052457690238953, -0.18041279911994934, 0.0023391135036945343, -0.043512385338544846, -0.10900488495826721, -0.606941282749176, -0.16713042557239532, -0.17605048418045044, 0.013318318873643875, -0.12662096321582794, -0.22560720145702362, 0.18126413226127625, -0.0810929387807846, 0.32982009649276733, 0.512885570526123, -0.00011297239689156413, -0.3193744421005249, 0.3587915301322937, 0.0623999685049057, -0.43793100118637085, 0.2950621545314789, -0.3354635238647461, -0.42711907625198364, -0.02036355994641781, -0.168697327375412, 0.32144156098365784, -0.07674281299114227, -0.1329326629638672, -0.4167047142982483, -0.05872642993927002, 0.2930721938610077, 0.24946989119052887, -0.13664522767066956, -0.3039158582687378, 0.11788945645093918, 0.12352944910526276, -0.014665000140666962, -0.04523427039384842, -0.2453739047050476, 0.21589310467243195, 0.16460998356342316, 0.0025356635451316833, 0.14777004718780518, 0.016941888257861137, 0.0003060474991798401, 0.26844170689582825, -0.03967736288905144, -0.22547167539596558, -0.31182560324668884, 0.6033416986465454, 0.22328975796699524, 0.8363255858421326, -0.2880609333515167, -0.2029639333486557, -0.29797184467315674, -0.11180438846349716, -0.2330390214920044, 0.10092431306838989, 0.49501529335975647, 0.09886899590492249, -0.04551956430077553, -0.48677241802215576, -0.34488847851753235, -0.07778572291135788, -0.04656221717596054, -0.2821795344352722, -0.14238063991069794, -0.2524191439151764, 0.11254064738750458, 0.10554236173629761, -0.028494730591773987, 0.3575476109981537, -0.33634600043296814, -0.015786387026309967, 0.23456768691539764, -0.35094285011291504, -0.20114900171756744, -0.13220909237861633, 0.5577652454376221, 0.1247599795460701, 0.005221391096711159, -0.3312217891216278, -0.18048319220542908, -0.18224014341831207, 0.01676909253001213, 0.1956835836172104, 0.38347387313842773, -0.17569470405578613, 0.18440426886081696, 0.03591533750295639, -0.38286083936691284, -0.23496325314044952, -0.1346772015094757, 0.131239652633667, -0.00123372464440763, 0.47623318433761597, -0.4796634614467621, -0.098684161901474, -0.30292055010795593, 0.17073506116867065, 0.24442902207374573, -0.09662234783172607, 0.027322927489876747, 0.11690303683280945, 0.2148652970790863, -0.2545848786830902, 0.2108536958694458, -0.23043105006217957, -0.12434294819831848, -0.04876148700714111, -0.14547289907932281, -0.24924109876155853, -0.09256479144096375, -0.0672144964337349, 0.26859715580940247, 0.28568288683891296, -0.2234882414340973, 0.3373491168022156, 0.02777605503797531, 0.10636438429355621, -0.141156405210495, 0.25927436351776123, -0.37533456087112427, 0.3710656762123108, 0.46559831500053406, -0.016244713217020035, 0.37491723895072937, -0.1396910697221756, 0.12049461901187897, -0.2708755433559418, 0.2553669512271881, -0.5015743970870972, -0.4222275912761688, 0.01911545917391777, 0.10458812862634659, -0.20295992493629456, -0.02288997918367386, -0.31812477111816406, -0.0490734837949276, 0.44517454504966736, 0.2298893928527832, 0.2339739203453064, -0.22580678761005402, -0.34814050793647766, -0.2585400640964508, -0.1718461960554123, 0.11320341378450394, -0.38377779722213745, 0.20078054070472717, 0.01880013570189476, 0.28245052695274353, 0.04340692609548569, 0.4158514440059662, -0.13150624930858612, 0.15676149725914001, -0.053813330829143524, -0.12092351913452148, 0.030462652444839478, -0.15666262805461884, -0.6271007657051086, 0.1202649250626564, 0.4168611168861389, -0.02748839557170868, -0.12232358008623123, 0.46304214000701904, 0.07040571421384811, -0.015833592042326927, -0.10969196259975433, 0.3284006714820862, -0.15589305758476257, -0.09018345177173615, -0.2928348481655121, -0.03867379203438759, 0.10614380240440369, -0.021642237901687622, 0.11887125670909882, -0.23058265447616577, -0.13090470433235168, 0.18368734419345856, 0.05275164172053337, 0.12596118450164795, 0.06942334026098251, 0.3437756299972534, -0.010146591812372208, 0.374839723110199, 0.323258638381958, -0.007865400984883308, -0.36534714698791504, 0.25736328959465027, 0.24196386337280273, -0.6245023608207703, 0.14552728831768036, -0.13397301733493805, 0.127224862575531, 0.14506632089614868, -0.09690834581851959, -0.21187306940555573, -0.022333376109600067, 0.02976907789707184, 0.11519894003868103, -0.2108958214521408, -0.04496879130601883, 0.5452651977539062, -0.06355765461921692, -0.11038018018007278, -0.41820305585861206, -0.17080391943454742, 0.09381169080734253, 0.049202658236026764, -0.13592834770679474, 0.06500786542892456, 0.10108382254838943, -0.08951254934072495, -0.1746930480003357, 0.10818620026111603, 0.29734140634536743, -0.14394409954547882, 0.10779912769794464, 0.578406572341919, -0.014512622728943825, 0.11640043556690216, 0.4233708083629608, -0.010668914765119553, 0.09052155166864395, -0.1879728138446808, -0.16970065236091614, 0.05671007186174393, -0.1616251915693283, 0.16764533519744873, -0.002934195101261139, -0.05884357541799545, 0.06384500116109848, 0.10506054759025574, 0.18707841634750366, 0.08603955805301666, 0.19270265102386475, -0.06624491512775421, 0.3792734742164612, 0.4196593761444092, -0.08191108703613281, 0.16549968719482422, 0.491253137588501, -0.18894226849079132, 0.02042917162179947, 0.11435342580080032, -0.34885796904563904, -0.4260421693325043, 0.08246129751205444, 0.3058713972568512, 0.4276179075241089, 0.09186921268701553, 0.2786063551902771, -0.018704863265156746, 0.19489122927188873, -0.19646494090557098, 0.1110934466123581, 0.145748108625412, -0.08426957577466965, -0.26391297578811646, 0.16103315353393555, -0.008886410854756832, 0.019062384963035583, 0.18688589334487915, -0.15324684977531433, 0.3150746822357178, -0.08109518885612488, 0.42585301399230957, -0.21984733641147614, -0.06663322448730469, -0.042165592312812805, 0.18540170788764954, -0.2399904429912567, -0.26960697770118713, -0.16476070880889893, -0.09104236960411072, 0.2942962348461151, -0.18275102972984314, -0.2300926297903061, 0.4699304699897766, 0.01856032945215702, 0.010768862441182137, 0.1471358835697174, -0.06532386690378189, -0.3312748968601227, 0.06420604884624481, 0.13775978982448578, -0.25509020686149597, 0.20907147228717804, 0.07851506024599075, 0.03159172832965851, -0.23038490116596222, -0.15852418541908264, -0.19498774409294128, 0.1075047105550766, 0.1837017685174942, -0.2883618175983429, 0.05217558518052101, -0.2645150423049927, 0.15478619933128357, -0.2806059718132019, -0.11429501324892044, -0.05779748409986496, 0.11491930484771729, -0.05098980665206909, 0.0269425418227911, 0.2000138759613037, -0.03131870925426483, -0.2764132022857666, 0.0005233269184827805, 0.23733402788639069, -0.02653992921113968, 0.012948133051395416, 0.23928776383399963, -0.15576401352882385, -0.017659693956375122, -0.1436423808336258, -0.010004004463553429, -0.3633744418621063, -0.7905564308166504, 0.3151327073574066, 0.03856072574853897, -0.17887482047080994, 0.20860841870307922, 0.18666082620620728, 0.0924992710351944, 0.13879965245723724, -0.7085634469985962, 0.07248174399137497, -0.31428804993629456, 0.21800243854522705, 0.014360366389155388, 0.07650797069072723, 0.13859762251377106, -0.18085497617721558, 0.08067265897989273, -0.11428674310445786, -0.2508400082588196, -0.40357232093811035, 0.202921062707901, 0.38248351216316223, -0.2886652648448944, -0.034572236239910126, 0.20574446022510529, 0.4963882565498352, 0.5578777194023132, -0.01902512088418007, -0.10989665985107422, 0.37469297647476196, 0.46458014845848083, -0.3987114727497101, -0.11856827884912491, 0.20618200302124023, -0.10183209180831909, -0.12223772704601288, 0.3536936342716217, 0.355835497379303, -0.07255709171295166, 0.2818089425563812, -0.0484958291053772, 0.03525041043758392, 0.0698835700750351, 0.22349637746810913, -0.2844495177268982, 0.19335438311100006, 0.11918151378631592, -0.16556677222251892, -0.14250363409519196, -0.39732861518859863, -0.07350832223892212, -0.02141716331243515, 0.04561401531100273, 0.282697468996048, -0.18429529666900635, -0.12794415652751923, -0.07540103048086166, 0.14234131574630737, -0.023120639845728874, -0.04972489923238754, 0.05146171525120735, 0.2763727903366089, 0.30833810567855835, 0.3073398470878601, 0.3131423592567444, -0.27446213364601135, -0.21389175951480865, -0.10583755373954773, -0.24112600088119507, -0.11868799477815628, -0.03182213753461838, -0.005750145763158798, 0.3012588918209076, 0.15123124420642853, 0.13165125250816345, 0.32110774517059326, -0.1440429985523224, 0.008774988353252411, 0.5344349145889282, -0.3888072967529297, -0.29434919357299805, -0.08408275991678238, -0.27626827359199524, 0.2164512574672699, -0.12520912289619446, -0.12012878060340881, -0.15077829360961914, 0.023403603583574295, -0.06327269226312637, -0.24045021831989288, 0.11369986087083817, 0.19014856219291687, -0.12031888961791992, 0.15611007809638977, 0.2085816115140915, 0.08535884320735931, 0.18421761691570282, 0.1479959785938263, 0.10423024743795395, 0.3757861256599426, -0.19130299985408783, 0.11269855499267578, -0.0072585828602313995, 0.03526274114847183, 0.2778845727443695, 0.05631345510482788, -0.1737891584634781, -0.18324652314186096, -0.2612358033657074, 0.01435890793800354, -0.2691155970096588, 0.22376284003257751, 0.14963792264461517, 0.2776619493961334, -0.261851966381073, -0.6982131600379944, 0.4616203308105469, 0.2764630615711212, -0.07165608555078506, 0.24240098893642426, -0.4183201789855957, -0.036516085267066956, -0.05436302348971367, -0.006419047713279724, 0.6589265465736389, -0.2236090749502182, 0.4306711256504059, -0.039567455649375916, 0.03441626578569412, 0.406558632850647, -0.4473716616630554, -0.028658200055360794, -0.07948605716228485, -0.18457475304603577, 0.004067620262503624, -0.10198734700679779, -0.17714214324951172, -0.05752566456794739, -0.045195262879133224, 0.44016867876052856, -0.18058905005455017, -0.014215748757123947, 0.016240300610661507, 0.18616983294487, 0.043687183409929276, -0.10952721536159515, -0.04217614233493805, 0.24925169348716736, -0.12847116589546204, -0.04252145066857338, -0.06162421777844429, 0.14966981112957, 0.019974026829004288, 0.18912462890148163, -0.31401339173316956, -0.20124542713165283, -0.028866609558463097, 0.3245885968208313, 0.009894877672195435, -0.18066787719726562, -0.058039795607328415, 0.19137604534626007, 0.22039645910263062, 0.29010239243507385, -0.09614381194114685, 0.2670595645904541, -0.18764570355415344, 0.15556921064853668, 0.24353785812854767, -0.0914694219827652, 0.18211914598941803, -0.027039479464292526, -0.033897578716278076, 0.038403525948524475, 0.08266207575798035, -0.21283958852291107, -0.15913482010364532, 0.3341325521469116, 0.09771431982517242, -0.06411006301641464, -0.23870697617530823, 0.030994754284620285, 0.11649225652217865, 0.08354611694812775, 0.13956226408481598, 0.3734084963798523, -0.05978664383292198, 0.6573855876922607, -0.21889089047908783, -0.5179986357688904, -0.09089693427085876, -0.04303980618715286, 0.5688450336456299, -0.24621069431304932, 0.3715308904647827, 0.02285769209265709, -0.21903090178966522, -0.02647443115711212, 0.23503777384757996, 0.06352876126766205, 0.10498363524675369, 0.13248544931411743, -0.13336077332496643, 0.29877525568008423, -0.12851588428020477, -0.39205747842788696, 0.037085387855768204, -0.38797420263290405, -0.2860274612903595, -0.16716602444648743, -0.41051000356674194, -0.026691965758800507, -0.08780571818351746, 0.22428767383098602, 0.05688603222370148, -0.2973291277885437, 0.18873317539691925, 0.4064841866493225, -0.24334338307380676, 0.0819341316819191, 0.029714765027165413, 0.2258060723543167, 0.06756091117858887, -0.09677615016698837, 0.09969180077314377, -0.12727952003479004, -0.13189508020877838, -0.09469810128211975, -0.1185579001903534, -0.23982742428779602, -0.01790991798043251, 0.1461031585931778, 0.17136329412460327, -0.09413393586874008, -0.10986772924661636, -0.355812668800354, 0.12864860892295837, -0.2562294006347656, 0.08476091921329498, 0.29193055629730225, 0.23461505770683289, 0.1277679204940796, 0.023526061326265335, -0.259302020072937, 0.11677625775337219, 0.3148724436759949, 0.037009209394454956, 0.2348185032606125, 0.16095419228076935, 0.18931977450847626, 0.23608942329883575, -0.18186044692993164, -0.2923297882080078, 0.09817451983690262, -0.13927313685417175, -0.11103598028421402, 0.1921972632408142, -0.22428618371486664, 0.27739956974983215, 0.38683629035949707, -0.10515149682760239, 0.24715951085090637, -0.05146464332938194, -0.17147015035152435, 0.14368721842765808, 0.1363578736782074, 0.16662076115608215, -0.16293221712112427, 0.0704922080039978, 0.44747990369796753, -0.2449590116739273, 0.180870920419693, 0.11145694553852081, -0.008500158786773682, -0.02191905677318573, 0.07802283018827438, 0.341085821390152, -0.31422942876815796, 0.152182474732399, 0.07506527751684189, 0.1814650446176529, -0.12329806387424469, 0.44410860538482666, 0.4823724031448364, 0.0159764364361763, 0.5705835223197937, 0.17768073081970215, 0.37091583013534546, 0.35532277822494507, -0.26797667145729065, -0.06162566691637039, -0.30101436376571655, -0.2353510707616806, 0.38645485043525696, -0.1725267469882965, 0.07773394137620926, -0.07969023287296295, 0.15310770273208618, 0.148529052734375, -0.31904083490371704, -0.20613797008991241, -0.008643165230751038, -0.2841351330280304, -0.12843042612075806, 0.43972572684288025, 0.06067910045385361, 0.21454203128814697, 0.2614770531654358, -0.010537751019001007, -0.42435091733932495, 0.5057738423347473, -0.02884484827518463, -0.2109094113111496, -0.2632436454296112, 0.28053420782089233, 0.14052137732505798, -0.13639798760414124, -0.1008690893650055, 0.1854051947593689, -0.23705454170703888, -0.03490188717842102, -0.12824280560016632, 0.08834277838468552, 0.2755080461502075, 0.1468670517206192, 0.016594434157013893, 0.3816765248775482, 0.06199689581990242, -0.06606355309486389, -0.19621208310127258, 0.17964081466197968, -0.21971115469932556, -0.09329774975776672, -0.03034106455743313, 0.10746457427740097, 0.06470973789691925, 0.21080677211284637, -0.06530188024044037, 0.2227582484483719, -0.3473087549209595, -0.011109806597232819, 0.06068982556462288, -0.06442925333976746, -0.25144708156585693, 0.3058980703353882, -0.4158518612384796, -0.1779729276895523, 0.6756240725517273, -0.1745561808347702, 0.04350588098168373, -0.20436587929725647, 0.08278615027666092, -0.23638728260993958, 0.572400689125061, 0.5509410500526428, 0.18470844626426697, -0.2911016047000885, 0.0006311163306236267, -0.26498013734817505, 0.09146188199520111, -0.4748069643974304, 0.39636820554733276, -0.043477777391672134, 0.46918898820877075, -0.21202895045280457, -0.06281063705682755, -0.0016784965991973877, -0.016443388536572456, -0.039684318006038666, -0.17218421399593353, -0.3049777150154114, -0.07415933907032013, 0.03930100053548813, 0.14384961128234863, 0.09578542411327362, -0.16422399878501892, 0.2386147379875183, -0.3013191521167755, -0.03273991495370865, -0.16073419153690338, 0.05226355046033859, 0.16345073282718658, 0.33783644437789917, 0.1687491536140442, 0.09036903828382492, 0.08495883643627167, 0.21904245018959045, 0.1733667105436325, -0.3463301360607147, -0.06033822521567345, 0.08934970945119858, 0.07502532005310059, -0.056997787207365036, -0.038594458252191544, -0.5262832641601562, 0.13579414784908295, 0.10509759932756424, 0.15552513301372528, -0.1740638017654419, -0.185195654630661, 0.13137096166610718, -0.3232075572013855, -0.18270860612392426, 0.3909306526184082, 0.3479953110218048, 0.17916375398635864, -0.1575753092765808, -0.03871820122003555, -0.19114933907985687, -0.07482332736253738, 0.30766189098358154, -0.04385223984718323, -0.38765302300453186, -0.05052477866411209, 0.12587325274944305, 0.4357413649559021, -0.14103323221206665, -0.41102421283721924, 0.12452178448438644, 0.46660831570625305, -0.08974026143550873, -0.22205419838428497, 0.267652302980423, -0.119644895195961, 0.1683700829744339, -0.07176217436790466, 0.5194829702377319, -0.12566643953323364, -0.05293714255094528, 0.2193591594696045, -0.18383978307247162 ]
https://github.com/huggingface/datasets/issues/1973
Question: what gets stored in the datasets cache and why is it so huge?
Hi @ioana-blue, we have optimized Datasets' disk usage in the latest release v1.5. Feel free to update your Datasets version ```shell pip install -U datasets ``` and see if it better suits your needs.
I'm running several training jobs (around 10) with a relatively large dataset (3M samples). The datasets cache reached 178G and it seems really large. What is it stored in there and why is it so large? I don't think I noticed this problem before and seems to be related to the new version of the datasets library. Any insight? Thank you!
34
Question: what gets stored in the datasets cache and why is it so huge? I'm running several training jobs (around 10) with a relatively large dataset (3M samples). The datasets cache reached 178G and it seems really large. What is it stored in there and why is it so large? I don't think I noticed this problem before and seems to be related to the new version of the datasets library. Any insight? Thank you! Hi @ioana-blue, we have optimized Datasets' disk usage in the latest release v1.5. Feel free to update your Datasets version ```shell pip install -U datasets ``` and see if it better suits your needs.
[ -0.1255369484424591, -0.033677779138088226, -0.14823271334171295, 0.5212605595588684, 0.161496102809906, 0.2426842749118805, -0.09253215789794922, 0.2584301829338074, -0.08028019964694977, -0.022632285952568054, -0.07931534945964813, -0.19939731061458588, -0.0890250876545906, -0.19370605051517487, 0.060006070882081985, 0.14411109685897827, 0.10287399590015411, -0.0664711743593216, -0.07058241963386536, -0.09681346267461777, -0.12117104977369308, 0.01945975050330162, 0.03529468923807144, -0.16793592274188995, -0.5302941203117371, -0.1817646026611328, -0.10133828967809677, -0.0436646044254303, -0.1651500165462494, -0.17851528525352478, 0.1776832491159439, -0.029039669781923294, 0.3176937401294708, 0.4055047333240509, -0.00011095382797066122, -0.30997297167778015, 0.37145477533340454, 0.11500194668769836, -0.46963760256767273, 0.30746209621429443, -0.3643328845500946, -0.37403273582458496, -0.026445314288139343, -0.14283506572246552, 0.3908945918083191, 0.006897563114762306, -0.049771472811698914, -0.4210887551307678, -0.06840105354785919, 0.18612544238567352, 0.2560693025588989, -0.1310577243566513, -0.32159656286239624, 0.10462270677089691, 0.11983676254749298, 0.013890881091356277, -0.14686913788318634, -0.27661779522895813, 0.25723278522491455, 0.3019108474254608, -0.10688570886850357, 0.2367846816778183, 0.06181827932596207, 0.04761548712849617, 0.2798641622066498, -0.019858919084072113, -0.13032087683677673, -0.15880657732486725, 0.6128363609313965, 0.22039979696273804, 0.9452202916145325, -0.3251808285713196, -0.10904450714588165, -0.22707992792129517, -0.1699434518814087, -0.1856396198272705, 0.20531147718429565, 0.37740129232406616, 0.062372732907533646, -0.0036445967853069305, -0.4708918333053589, -0.42041605710983276, -0.13688774406909943, -0.10697828233242035, -0.1935635507106781, -0.23926594853401184, -0.29302719235420227, 0.07387036085128784, 0.20061077177524567, -0.03582896292209625, 0.3408770263195038, -0.2122141271829605, -0.1762351244688034, 0.12552079558372498, -0.34561073780059814, -0.2916094660758972, -0.14448615908622742, 0.45452961325645447, 0.16601234674453735, 0.03921575844287872, -0.32473087310791016, -0.11981641501188278, -0.13231290876865387, 0.00587102398276329, 0.2860298752784729, 0.3430539667606354, -0.06693872064352036, 0.1038036048412323, -0.04293222725391388, -0.3748680353164673, -0.13341833651065826, -0.18650242686271667, 0.157068133354187, 0.06314859539270401, 0.44415736198425293, -0.5209648609161377, -0.08174441754817963, -0.34503549337387085, 0.1652763932943344, 0.1584223210811615, 0.05724819749593735, -0.035849373787641525, 0.1435464322566986, 0.19111451506614685, -0.11076117306947708, 0.2182202935218811, -0.2996866703033447, -0.21457439661026, 0.017783036455512047, -0.16057069599628448, -0.22814980149269104, -0.13163377344608307, -0.09491650760173798, 0.2396894097328186, 0.27446672320365906, -0.1647273302078247, 0.23715731501579285, 0.06348898261785507, -0.09071482717990875, -0.14221975207328796, 0.2349056899547577, -0.40325412154197693, 0.3749282658100128, 0.41676607728004456, -0.07437159866094589, 0.3681035041809082, -0.1970902979373932, 0.15276259183883667, -0.22742581367492676, 0.24490070343017578, -0.4916738271713257, -0.4740639925003052, -0.1170700341463089, 0.1085805594921112, -0.1619233787059784, -0.028812304139137268, -0.34499436616897583, 0.09223859012126923, 0.3634018301963806, 0.15356770157814026, 0.16030994057655334, -0.09195747971534729, -0.41790950298309326, -0.22896146774291992, -0.15715743601322174, 0.1740283966064453, -0.429195374250412, 0.1551632136106491, -0.13559553027153015, 0.186601459980011, 0.07132884860038757, 0.3658941090106964, -0.12019369006156921, 0.07646984606981277, -0.0518551766872406, -0.15323728322982788, 0.04061797261238098, -0.10573205351829529, -0.6648841500282288, 0.1029137521982193, 0.3574773073196411, -0.17406213283538818, -0.03679261356592178, 0.45617708563804626, -0.0024711815640330315, -0.03706035390496254, -0.23030462861061096, 0.29075080156326294, -0.20545680820941925, -0.14547164738178253, -0.3278050422668457, -0.0776619240641594, 0.037857621908187866, -0.015408172272145748, 0.0659242570400238, -0.23206877708435059, -0.03714422136545181, 0.27977466583251953, -0.010811537504196167, 0.19344575703144073, 0.11483603715896606, 0.3457118272781372, 0.03142698109149933, 0.35400575399398804, 0.3015317916870117, -0.021894561126828194, -0.3611466884613037, 0.25093716382980347, 0.2351718544960022, -0.7048801779747009, 0.1734369695186615, -0.13211816549301147, 0.14480739831924438, 0.14322446286678314, -0.020702529698610306, -0.1719021052122116, -0.00455213338136673, 0.08709155023097992, 0.07007594406604767, -0.17848937213420868, -0.018237043172121048, 0.4595891833305359, -0.025414681062102318, -0.12793679535388947, -0.3539285659790039, -0.1449452042579651, 0.04878270626068115, 0.009199935011565685, -0.1538001298904419, 0.03138614818453789, 0.062304720282554626, -0.07687792927026749, -0.1596943736076355, 0.15247952938079834, 0.22657187283039093, -0.19287694990634918, 0.29526689648628235, 0.5493301749229431, -0.0663551315665245, 0.17073306441307068, 0.38524800539016724, -0.07029880583286285, 0.10173386335372925, -0.1299525946378708, -0.2927916347980499, -0.03750956058502197, -0.15197394788265228, 0.14032000303268433, -0.024933651089668274, -0.02929726615548134, 0.04167085886001587, 0.08926995098590851, 0.34361743927001953, 0.010455705225467682, 0.16061381995677948, -0.14703883230686188, 0.29275670647621155, 0.40692809224128723, -0.024014439433813095, 0.2519697844982147, 0.47828975319862366, -0.15289397537708282, 0.028991445899009705, 0.17442750930786133, -0.23875609040260315, -0.5282309055328369, 0.1187322735786438, 0.37883225083351135, 0.4037414789199829, 0.10024005174636841, 0.31536900997161865, -0.15072305500507355, 0.298399418592453, -0.14193180203437805, 0.07694981247186661, 0.08003740757703781, -0.03909733518958092, -0.2749994099140167, 0.1334962695837021, -0.06806964427232742, -0.01567690633237362, 0.19873444736003876, -0.08296827226877213, 0.3320789039134979, -0.03652409464120865, 0.3400941789150238, -0.22613488137722015, -0.11018198728561401, 0.08747849613428116, 0.3231963515281677, -0.20590704679489136, -0.2550525367259979, -0.1116032749414444, -0.05905129387974739, 0.27817124128341675, -0.16444943845272064, -0.11989152431488037, 0.49011439085006714, 0.07628045231103897, 0.10169409215450287, 0.07007700204849243, -0.07086795568466187, -0.31645485758781433, 0.10305175185203552, 0.16256678104400635, -0.2699265778064728, 0.23979529738426208, 0.10292000323534012, 0.08525553345680237, -0.33617714047431946, -0.15106947720050812, -0.14905241131782532, 0.11909408867359161, 0.24857912957668304, -0.25340086221694946, 0.012669011950492859, -0.3917894959449768, 0.1810094267129898, -0.29362058639526367, -0.16140620410442352, -0.03952077031135559, 0.16289210319519043, -0.1019606664776802, -0.04075944423675537, 0.1762523055076599, 0.010380297899246216, -0.249156191945076, -0.0023535452783107758, 0.21229949593544006, -0.1259872168302536, 0.05490678921341896, 0.2655705511569977, -0.11264639347791672, 0.05556368827819824, -0.1928706169128418, -0.04971236735582352, -0.3669954836368561, -0.7784826159477234, 0.2513563930988312, 0.13957233726978302, -0.12406061589717865, 0.16954687237739563, 0.22488237917423248, -0.01925484463572502, 0.1598346084356308, -0.7960991263389587, 0.08482315391302109, -0.2673851251602173, 0.26291558146476746, 0.02603236213326454, 0.03807845339179039, 0.23602472245693207, -0.17748624086380005, 0.02845330722630024, -0.15285253524780273, -0.25662466883659363, -0.30627208948135376, 0.13671660423278809, 0.41938304901123047, -0.23109519481658936, -0.02712356299161911, 0.3263311982154846, 0.5199459195137024, 0.42826908826828003, 0.01441764086484909, -0.05717996507883072, 0.3847505450248718, 0.5536594986915588, -0.38876697421073914, -0.07960859686136246, 0.2006559818983078, -0.07270251214504242, -0.07316169142723083, 0.3296694755554199, 0.34068894386291504, -0.12321869283914566, 0.28475451469421387, -0.08130036294460297, 0.09379010647535324, 0.10117809474468231, 0.19880864024162292, -0.2678992450237274, 0.1599433571100235, 0.18611179292201996, -0.16084305942058563, -0.06561367958784103, -0.3909839391708374, -0.06927040219306946, -0.030938759446144104, 0.0783749371767044, 0.26836007833480835, -0.20413987338542938, 0.00292666326276958, -0.06782854348421097, 0.10111851990222931, -0.028785431757569313, -0.006165004335343838, -0.08387624472379684, 0.30646732449531555, 0.28351032733917236, 0.2794952988624573, 0.3214492201805115, -0.2633187770843506, -0.06171182543039322, -0.16462022066116333, -0.1650077998638153, -0.1018124669790268, 0.006461825221776962, -0.010833203792572021, 0.29966360330581665, 0.08372502028942108, 0.08623438328504562, 0.3078324794769287, -0.18520329892635345, 0.03754403442144394, 0.4310304522514343, -0.383084774017334, -0.30028435587882996, 0.041409846395254135, -0.26254987716674805, 0.2326449751853943, -0.12943220138549805, -0.11873892694711685, -0.21533559262752533, 0.07149678468704224, 0.005964294075965881, -0.20017336308956146, 0.13650301098823547, 0.16084244847297668, -0.15479135513305664, 0.19323021173477173, 0.2181788682937622, 0.11206799745559692, 0.1524924486875534, 0.11460813134908676, 0.09786490350961685, 0.2603719234466553, -0.11085568368434906, 0.20939821004867554, 0.0343884602189064, -0.013865692541003227, 0.15962764620780945, 0.01384037733078003, -0.19946600496768951, -0.186809241771698, -0.3193315863609314, -0.05327901244163513, -0.1618548184633255, 0.22617246210575104, 0.062184251844882965, 0.26453593373298645, -0.2653852105140686, -0.5795576572418213, 0.474296510219574, 0.33996468782424927, -0.1296410709619522, 0.2579101324081421, -0.2862512469291687, 0.016155753284692764, -0.06674225628376007, 0.01117406040430069, 0.5658620595932007, -0.19475530087947845, 0.3254499137401581, -0.07941180467605591, -0.06162964552640915, 0.3023923635482788, -0.4567986726760864, -0.06524091958999634, -0.04686124995350838, -0.30454638600349426, -0.0021180137991905212, -0.07209897041320801, -0.14111363887786865, -0.01998378336429596, -0.0946820005774498, 0.34433138370513916, -0.16534563899040222, -0.05447397753596306, 0.10155607014894485, 0.16015739738941193, 0.05024443566799164, -0.1256176233291626, 0.04040879011154175, 0.27858787775039673, -0.18076561391353607, -0.11137351393699646, -0.05399360880255699, 0.13071224093437195, 0.08629772067070007, 0.2149006575345993, -0.3181106448173523, -0.2407788336277008, 0.013959575444459915, 0.3552247881889343, -0.0003474913537502289, -0.12526807188987732, -0.06686623394489288, 0.13323763012886047, 0.2062504142522812, 0.23439538478851318, -0.1449892222881317, 0.31113654375076294, -0.1219344213604927, 0.14707593619823456, 0.2458629310131073, -0.1360156536102295, 0.11848919838666916, -0.08178471028804779, -0.03650599718093872, -0.043431252241134644, 0.07059602439403534, -0.22965672612190247, -0.1445903331041336, 0.2853672206401825, 0.17216256260871887, -0.011902501806616783, -0.20529361069202423, 0.03546644002199173, 0.03150307014584541, 0.07947704195976257, 0.1419689804315567, 0.38440608978271484, -0.06099636107683182, 0.5599352121353149, -0.25621503591537476, -0.4541352093219757, -0.04628342017531395, 0.022462844848632812, 0.5034422278404236, -0.21780867874622345, 0.2553485035896301, -0.031237898394465446, -0.17679288983345032, -0.04693753644824028, 0.25336548686027527, 0.060182005167007446, -0.020442403852939606, 0.1567867249250412, -0.1809256672859192, 0.2217562347650528, -0.14142288267612457, -0.42983654141426086, 0.026533594354987144, -0.3845813572406769, -0.29967647790908813, -0.11566585302352905, -0.430551677942276, -0.055520281195640564, -0.2334783524274826, 0.1969345211982727, 0.028452783823013306, -0.4536217749118805, 0.16285641491413116, 0.41744109988212585, -0.26163357496261597, 0.09885457903146744, 0.18300019204616547, 0.26799631118774414, 0.01615263894200325, -0.14392265677452087, 0.12687765061855316, -0.16161872446537018, -0.10911412537097931, -0.14186818897724152, -0.1457023173570633, -0.2609521150588989, 0.05034792795777321, 0.13330000638961792, 0.1298939287662506, -0.07710527628660202, -0.16118578612804413, -0.30703896284103394, 0.04763239249587059, -0.2632961869239807, 0.059422437101602554, 0.3452679514884949, 0.2517390251159668, 0.09511365741491318, 0.10641108453273773, -0.3072999119758606, 0.12782582640647888, 0.32236361503601074, 0.0648430734872818, 0.2507064938545227, 0.03932998701930046, 0.20244178175926208, 0.16778789460659027, -0.26296061277389526, -0.3952634334564209, 0.18136106431484222, -0.06677697598934174, -0.11520837992429733, 0.18392203748226166, -0.24107445776462555, 0.209316223859787, 0.45769616961479187, -0.09308938682079315, 0.13186077773571014, -0.0612671822309494, -0.22615037858486176, 0.03258682042360306, 0.1872493177652359, 0.25838667154312134, -0.1771104484796524, 0.06147683784365654, 0.44825929403305054, -0.23756073415279388, 0.09747021645307541, 0.17231564223766327, -0.07930580526590347, 0.09265271574258804, 0.1511339247226715, 0.3712778091430664, -0.3484846353530884, 0.1774655431509018, 0.11492569744586945, 0.188287153840065, -0.1611398458480835, 0.44056233763694763, 0.46502402424812317, 0.0315324142575264, 0.5609919428825378, 0.1833840310573578, 0.3716110587120056, 0.5011677145957947, -0.19158312678337097, -0.11417379230260849, -0.2393340915441513, -0.20154885947704315, 0.4385494291782379, -0.11617644131183624, 0.059284355491399765, -0.07144854962825775, 0.2083076387643814, 0.183802992105484, -0.368093341588974, -0.1831095814704895, -0.1217208206653595, -0.3449108600616455, -0.11003534495830536, 0.4735719561576843, 0.0752972885966301, 0.14376088976860046, 0.2953139841556549, -0.06254428625106812, -0.3859572410583496, 0.44119444489479065, -0.014914177358150482, -0.1918068677186966, -0.2876867353916168, 0.2943647801876068, 0.27622148394584656, -0.1601945161819458, -0.12198619544506073, 0.289183646440506, -0.23471109569072723, -0.04510504752397537, -0.026934433728456497, 0.13308009505271912, 0.21976310014724731, 0.08573707193136215, 0.02602941170334816, 0.3150090277194977, 0.09791335463523865, -0.10025128722190857, -0.20878712832927704, 0.22685229778289795, -0.23611187934875488, -0.09080703556537628, -0.08618871867656708, 0.10703816264867783, 0.07988271117210388, 0.27716031670570374, -0.0013057142496109009, 0.27859506011009216, -0.29909929633140564, -0.12700340151786804, 0.05658351629972458, -0.028875000774860382, -0.15548962354660034, 0.3027580976486206, -0.3916992247104645, -0.23834910988807678, 0.6524435877799988, -0.21377064287662506, 0.04228908196091652, -0.1606040596961975, 0.10845007002353668, -0.23499879240989685, 0.44781553745269775, 0.4689296782016754, 0.0369882732629776, -0.3087176978588104, -0.026965267956256866, -0.24805521965026855, 0.06575645506381989, -0.30297309160232544, 0.4378799796104431, -0.012735318392515182, 0.5008687973022461, -0.23981714248657227, -0.03820471465587616, -0.007469922304153442, -0.06819873303174973, -0.03516636788845062, -0.13187508285045624, -0.3061082661151886, -0.013797633349895477, 0.1377975046634674, 0.15438959002494812, 0.06812986731529236, -0.20357269048690796, 0.21413567662239075, -0.23551014065742493, -0.028905188664793968, -0.1541021764278412, -0.011040672659873962, 0.1529419869184494, 0.40673699975013733, 0.08646801859140396, 0.12577010691165924, -0.04939751327037811, 0.1526634395122528, 0.15464308857917786, -0.3914335370063782, -0.07627696543931961, 0.05194872245192528, -0.021860547363758087, 0.04637952148914337, 0.0035662930458784103, -0.5463688969612122, 0.2738310992717743, 0.13444462418556213, 0.15156643092632294, -0.16159191727638245, 0.008753204718232155, 0.10737662762403488, -0.3834524154663086, -0.2046900987625122, 0.34149372577667236, 0.31232360005378723, 0.143702432513237, -0.07226978242397308, -0.03942326828837395, -0.3186277449131012, -0.07897767424583435, 0.30322620272636414, 0.08692025393247604, -0.40653446316719055, -0.003789405571296811, 0.10156669467687607, 0.5180829763412476, -0.17034737765789032, -0.39082348346710205, 0.14765027165412903, 0.47722840309143066, -0.10269580036401749, -0.19707880914211273, 0.260714590549469, -0.12446045875549316, 0.2009635716676712, -0.06363672763109207, 0.5886344909667969, -0.05914245545864105, -0.037484683096408844, 0.22273412346839905, -0.13123923540115356 ]
https://github.com/huggingface/datasets/issues/1965
Can we parallelized the add_faiss_index process over dataset shards ?
Hi ! As far as I know not all faiss indexes can be computed in parallel and then merged. For example [here](https://github.com/facebookresearch/faiss/wiki/Special-operations-on-indexes#splitting-and-merging-indexes) is is mentioned that only IndexIVF indexes can be merged. Moreover faiss already works using multithreading to parallelize the workload over your different CPU cores. You can find more info [here](https://github.com/facebookresearch/faiss/wiki/Threads-and-asynchronous-calls#internal-threading) So I feel like the gains we would get by implementing a parallel `add_faiss_index` would not be that important, but let me know what you think.
I am thinking of making the **add_faiss_index** process faster. What if we run the add_faiss_index process on separate dataset shards and then combine them before (dataset.concatenate) saving the faiss.index file ? I feel theoretically this will reduce the accuracy of retrieval since it affects the indexing process. @lhoestq
79
Can we parallelized the add_faiss_index process over dataset shards ? I am thinking of making the **add_faiss_index** process faster. What if we run the add_faiss_index process on separate dataset shards and then combine them before (dataset.concatenate) saving the faiss.index file ? I feel theoretically this will reduce the accuracy of retrieval since it affects the indexing process. @lhoestq Hi ! As far as I know not all faiss indexes can be computed in parallel and then merged. For example [here](https://github.com/facebookresearch/faiss/wiki/Special-operations-on-indexes#splitting-and-merging-indexes) is is mentioned that only IndexIVF indexes can be merged. Moreover faiss already works using multithreading to parallelize the workload over your different CPU cores. You can find more info [here](https://github.com/facebookresearch/faiss/wiki/Threads-and-asynchronous-calls#internal-threading) So I feel like the gains we would get by implementing a parallel `add_faiss_index` would not be that important, but let me know what you think.
[ -0.27894076704978943, -0.06273242831230164, -0.15734586119651794, 0.11061182618141174, -0.3771442174911499, 0.24785169959068298, 0.2097892463207245, 0.10627031326293945, 0.1371021717786789, 0.17192494869232178, -0.1766025424003601, -0.13538478314876556, 0.34148678183555603, 0.11399654299020767, -0.3853699862957001, 0.24953871965408325, 0.35134151577949524, -0.1033913642168045, 0.2524387240409851, 0.11257201433181763, -0.31739702820777893, 0.010329616256058216, 0.029140301048755646, -0.26742130517959595, -0.17801433801651, 0.35085585713386536, -0.25829899311065674, 0.05323968082666397, -0.013286083936691284, -0.24838903546333313, -0.24804551899433136, 0.3926287591457367, 0.06793708354234695, 0.30049243569374084, -0.0001269444910576567, -0.05022599548101425, 0.10691998898983002, 0.06911764293909073, 0.15334489941596985, 0.5967572331428528, -0.27112138271331787, 0.012097259983420372, -0.07629485428333282, -0.17294681072235107, -0.0013872571289539337, -0.30307215452194214, -0.033929094672203064, -0.26206350326538086, -0.2039727121591568, -0.17197899520397186, -0.010249238461256027, -0.12378902733325958, 0.08485868573188782, 0.04814453050494194, -0.042805396020412445, -0.20388515293598175, -0.1553710401058197, -0.14555723965168, 0.08886593580245972, 0.22371868789196014, 0.23216402530670166, 0.1709752082824707, 0.018992280587553978, -0.17045994102954865, 0.0877622663974762, -0.044863004237413406, 0.45251572132110596, -0.05265109986066818, 0.010519439354538918, -0.12257867306470871, 0.10863187909126282, 0.04548342153429985, -0.46512356400489807, -0.2125898003578186, 0.06843005120754242, 0.08244262635707855, -0.2274455726146698, -0.1753319650888443, 0.03901347145438194, 0.009271852672100067, 0.07140661776065826, -0.4730629622936249, 0.0494285449385643, 0.1115151196718216, 0.3911832571029663, 0.060830116271972656, 0.26112642884254456, 0.11175049841403961, 0.4002320468425751, -0.10470588505268097, 0.026290353387594223, -0.11287979781627655, -0.09638917446136475, 0.1314450204372406, -0.614268958568573, 0.023287363350391388, -0.08992404490709305, -0.2996669113636017, 0.020942281931638718, -0.17933467030525208, -0.30220940709114075, 0.28851768374443054, 0.020277488976716995, 0.11981599032878876, 0.0016668420284986496, -0.15365247428417206, 0.20662081241607666, -0.25012335181236267, -0.012503892183303833, -0.48817193508148193, -0.11448025703430176, 0.13744786381721497, 0.14788569509983063, -0.12011575698852539, -0.6300249099731445, -0.1439971625804901, -0.3549610376358032, -0.16061580181121826, -0.06207024306058884, -0.1819743812084198, 0.023842237889766693, -0.09950185567140579, 0.1697281152009964, 0.1614188849925995, 0.3377493917942047, -0.001671072095632553, -0.13387063145637512, 0.011225350201129913, -0.06729896366596222, -0.054043401032686234, -0.002299006562680006, -0.27954399585723877, 0.2434515655040741, 0.5302848219871521, -0.00426081195473671, -0.2697485089302063, -0.41651785373687744, -0.027876898646354675, -0.07647030055522919, 0.15636678040027618, 0.03360718488693237, -0.15612062811851501, 0.03361562639474869, 0.07779231667518616, -0.023553306236863136, 0.002042759209871292, -0.05854553356766701, 0.16879361867904663, -0.24290433526039124, 0.1656707227230072, -0.21596497297286987, -0.3029152452945709, 0.05567501485347748, 0.00540904700756073, -0.0320965051651001, -0.13710901141166687, -0.16576585173606873, 0.5699174404144287, 0.17614787817001343, -0.04327009618282318, -0.03847064822912216, 0.18389052152633667, -0.3282160460948944, -0.11314569413661957, 0.16092561185359955, 0.1564362496137619, -0.29618531465530396, -0.2146448791027069, -0.14362241327762604, -0.18578559160232544, 0.006723649799823761, 0.5707305669784546, -0.021195149049162865, 0.08170703053474426, -0.28755074739456177, 0.5438026785850525, 0.2934736907482147, -0.2815660834312439, 0.050518929958343506, 0.08856512606143951, -0.06114475801587105, -0.16531109809875488, 0.05208449065685272, 0.19225053489208221, 0.11792817711830139, -0.05686471238732338, 0.22768008708953857, 0.2944648265838623, -0.08390109241008759, -0.11941148340702057, -0.26156994700431824, -0.3064998984336853, 0.49368083477020264, 0.24300889670848846, -0.10712465643882751, 0.07610894739627838, 0.043990593403577805, -0.7627865076065063, 0.2860037088394165, -0.13234055042266846, 0.19447214901447296, 0.038325000554323196, 0.28911542892456055, 0.4427099823951721, 0.44583967328071594, -0.11409676820039749, 0.04726489633321762, 0.2294325828552246, -0.15346825122833252, -0.001935616135597229, 0.3032388687133789, -0.34508174657821655, 0.47406744956970215, -0.05071765184402466, 0.03056385926902294, 0.3955182135105133, -0.06766745448112488, -0.2117537260055542, 0.1425749659538269, -0.3888498842716217, -0.3314332067966461, 0.4658035933971405, -0.395569771528244, -0.16595034301280975, -0.07245984673500061, 0.22638095915317535, -0.031209519132971764, -0.033708356320858, -0.3186899721622467, 0.09592930227518082, 0.15915453433990479, -0.2405867874622345, -0.10593243688344955, 0.30295825004577637, 0.024729911237955093, 0.0376865454018116, 0.9103012681007385, 0.2225019633769989, -0.07068495452404022, 0.24210944771766663, 0.05819948762655258, -0.25952279567718506, -0.1585789918899536, -0.18931356072425842, 0.3330981433391571, 0.05451585352420807, 0.08871126174926758, 0.5726431012153625, 0.0026578977704048157, -0.17207546532154083, 0.13808442652225494, 0.16192997992038727, 0.06609921902418137, -0.024327531456947327, -0.015229161828756332, -0.1266034096479416, -0.113096222281456, 0.08865182846784592, -0.027728736400604248, 0.5910165309906006, -0.2684077024459839, -0.08228589594364166, -0.17265334725379944, -0.00343964621424675, -0.03269875794649124, 0.08870238810777664, -0.042020656168460846, -0.19486784934997559, 0.31219911575317383, 0.11687754094600677, 0.05203065276145935, -0.15843047201633453, 0.3804953098297119, -0.11364763975143433, -0.03972005099058151, 0.3633239269256592, 0.2026498168706894, 0.07501354813575745, 0.16845639050006866, -0.058085646480321884, -0.05710172280669212, -0.1315048485994339, 0.06884455680847168, 0.03194304555654526, -0.011060919612646103, -0.08506900817155838, 0.1229412704706192, 0.08009044080972672, -0.14919179677963257, -0.20431308448314667, -0.39691105484962463, -0.19689878821372986, 0.22377507388591766, 0.012625597417354584, -0.2535368502140045, -0.058051228523254395, -0.07751893997192383, 0.532956063747406, -0.09465470165014267, -0.2684037983417511, -0.31247830390930176, -0.017046812921762466, 0.147861510515213, -0.12594029307365417, 0.2970302700996399, 0.18879185616970062, -0.05323141813278198, 0.11885081976652145, -0.08682672679424286, -0.3709443211555481, -0.09349781274795532, -0.14484158158302307, -0.01734040305018425, -0.1443890482187271, -0.2989172637462616, -0.2838762402534485, -0.1429504007101059, -0.16447564959526062, 0.15370987355709076, -0.04506377875804901, -0.09645462781190872, -0.2686009109020233, 0.029160117730498314, 0.049685075879096985, 0.10258930921554565, 0.07483947277069092, -0.39372187852859497, -0.23962752521038055, 0.34491539001464844, -0.06186097115278244, 0.0971539169549942, -0.35338297486305237, -0.2882669270038605, -0.19735150039196014, -0.2623566687107086, -0.23437270522117615, -0.36561715602874756, 0.020294200628995895, 0.16198399662971497, -0.11174663156270981, -0.1317775696516037, 0.0018892623484134674, 0.08150193095207214, -0.2325877547264099, 0.3353889584541321, 0.007211409509181976, 0.07340199500322342, -0.006610998883843422, 0.1284044235944748, -0.2605767548084259, 0.162367045879364, 0.1447143703699112, -0.11158152669668198, -0.006871392950415611, 0.09250014275312424, 0.15545988082885742, 0.2978834807872772, 0.16144666075706482, 0.16048763692378998, -0.14161819219589233, -0.025723326951265335, -0.1567707657814026, 0.7340023517608643, 0.25772568583488464, -0.025465015321969986, 0.1525011658668518, 0.1177445724606514, 0.03646904230117798, 0.06441676616668701, -0.14035829901695251, 0.29623112082481384, 0.0880492627620697, -0.11837482452392578, 0.02492017298936844, 0.048686616122722626, -0.09814753383398056, 0.044014960527420044, -0.1993705779314041, -0.11117040365934372, -0.11878068745136261, -0.056894540786743164, 0.22076229751110077, 0.5126080513000488, 0.00251711905002594, -0.05494679883122444, -0.28083428740501404, 0.009422291070222855, 0.183281809091568, 0.36201637983322144, 0.49926793575286865, -0.19273753464221954, 0.15172000229358673, -0.20252439379692078, -0.465570330619812, 0.4637286067008972, 0.008780417032539845, 0.2816375195980072, 0.016597356647253036, -0.04479118064045906, 0.24940577149391174, -0.19141356647014618, 0.8901628255844116, 0.003486907109618187, -0.4772208333015442, 0.11347915232181549, -0.045214127749204636, -0.32665327191352844, -0.23263739049434662, 0.3000528812408447, 0.21723681688308716, 0.45111310482025146, 0.23085200786590576, -0.24606698751449585, -0.30183783173561096, 0.17565225064754486, 0.07519057393074036, -0.2882426977157593, -0.5182567834854126, -0.14690212905406952, 0.06615640968084335, -0.08232804387807846, 0.11566585302352905, -0.29636064171791077, 0.11399231106042862, 0.036134280264377594, 0.009262360632419586, -0.1929907649755478, 0.02985980361700058, -0.03710930049419403, 0.0602857880294323, 0.05106427147984505, 0.11202342063188553, 0.44474267959594727, 0.32193946838378906, -0.28902748227119446, 0.2662295699119568, 0.08223149180412292, 0.32869136333465576, 0.010901480913162231, -0.09023620933294296, -0.004467066377401352, 0.21505464613437653, 0.07194337993860245, 0.06396187096834183, 0.28535550832748413, -0.12183806300163269, 0.20228472352027893, -0.21379441022872925, 0.12985099852085114, 0.13420140743255615, 0.29304152727127075, -0.19150158762931824, -0.17332801222801208, 0.49624866247177124, 0.044202614575624466, -0.10585369914770126, -0.07675783336162567, 0.4734346866607666, -0.009986601769924164, 0.7146955728530884, 0.0455126129090786, 0.7037384510040283, -0.12488517165184021, -0.15265977382659912, -0.2615526020526886, 0.11584506928920746, 0.042072851210832596, -0.647426187992096, 0.31069743633270264, -0.19071893393993378, -0.20526814460754395, 0.1221536248922348, -0.10489243268966675, 0.11495770514011383, 0.369793176651001, 0.27974799275398254, 0.11209546774625778, 0.21661274135112762, -0.20353655517101288, -0.2071070671081543, 0.34009093046188354, 0.18269658088684082, -0.2283104807138443, 0.280376136302948, 0.03911091387271881, 0.07976093888282776, -0.03066558763384819, 0.0226752907037735, 0.06154470518231392, -0.15808047354221344, 0.352602481842041, -0.11979950219392776, -0.048302214592695236, 0.3265136778354645, 0.29863840341567993, -0.2302095592021942, -0.04550895467400551, 0.12094396352767944, -0.5679506063461304, 0.2275296300649643, -0.25742387771606445, -0.14876484870910645, 0.10445113480091095, 0.142887145280838, -0.15386924147605896, -0.060420677065849304, -0.5270248651504517, -0.0879807323217392, 0.019898798316717148, -0.30471280217170715, -0.1901979148387909, 0.26885005831718445, -0.8522263169288635, -0.3888072371482849, 0.09306995570659637, -0.0728897899389267, 0.06558911502361298, -0.1263830065727234, 0.5215662121772766, -0.19129174947738647, 0.035854827612638474, -0.047652099281549454, 0.25924456119537354, -0.44251301884651184, 0.7070087194442749, -0.39102035760879517, -0.008542954921722412, -0.0221073217689991, 0.2433183789253235, 0.23579588532447815, -0.3659256398677826, 0.08451087027788162, -0.09706693887710571, -0.19156144559383392, 0.03983403742313385, -0.5570605993270874, 0.09053624421358109, 0.4957045018672943, -0.08260748535394669, 0.028738565742969513, -0.12357940524816513, 0.05283600464463234, -0.18909141421318054, -0.14166881144046783, -0.043360933661460876, -0.6022045612335205, -0.1440008133649826, -0.2501831352710724, 0.09472405910491943, 0.20089085400104523, 0.36705344915390015, 0.13654857873916626, 0.11507239937782288, -0.33184847235679626, 0.15168897807598114, -0.10885385423898697, -0.005322727374732494, 0.1221119686961174, 0.09590441733598709, -0.02048489823937416, -0.09278828650712967, 0.13202153146266937, -0.0813644677400589, -0.09008510410785675, 0.162706658244133, 0.16680404543876648, -0.06546609103679657, 0.237111896276474, 0.22617459297180176, 0.3129313886165619, 0.15668146312236786, -0.1954318732023239, -0.26209360361099243, -0.19076350331306458, -0.23488403856754303, 0.04447497799992561, 0.03860349953174591, -0.22149036824703217, -0.07369290292263031, 0.3863520622253418, -0.2685999274253845, 0.10821594297885895, 0.5082786083221436, 0.4393989145755768, 0.45137327909469604, -0.0027621728368103504, 0.517433762550354, -0.2549320459365845, 0.09658661484718323, 0.13370290398597717, 0.049999337643384933, 0.2449609935283661, 0.05043743550777435, 0.02628522366285324, -0.008235082030296326, -0.2804993987083435, -0.08184466511011124, 0.489674836397171, 0.6631740927696228, 0.2678460478782654, -0.22270742058753967, -0.025631293654441833, 0.007557756267488003, -0.04814339429140091, -0.0765160620212555, 0.8391581773757935, -0.11111050099134445, 0.13976311683654785, 0.17438535392284393, 0.34273120760917664, 0.34773844480514526, -0.20524097979068756, 0.062489189207553864, 0.06301003694534302, 0.37671327590942383, -0.14992374181747437, -0.6269667148590088, 0.2316363900899887, 0.048639729619026184, 0.267571359872818, -0.15359614789485931, 0.12408450245857239, 0.7165526747703552, -0.06391461938619614, 0.4785968065261841, 0.09931604564189911, -0.04974319413304329, 0.1411430537700653, -0.1296246498823166, 0.46956005692481995, 0.19446082413196564, 0.3647833466529846, 0.1691025346517563, 0.1554943323135376, 0.29248350858688354, -0.09872698038816452, -0.5738974213600159, -0.1505662053823471, 0.4674292802810669, -0.012079525738954544, -0.045410461723804474, 0.4208974838256836, 0.04188770800828934, -0.012128777801990509, 0.028093639761209488, 0.1323244422674179, -0.1338595449924469, 0.1945987045764923, -0.0022143274545669556, 0.10796510428190231, 0.21001236140727997, -0.02018129453063011, 0.41733652353286743, 0.47107091546058655, -0.02770315110683441, -0.2999330461025238, -0.07840517163276672, -0.08581775426864624, 0.1237095445394516, 0.1651201993227005, -0.005409300327301025, 0.16382433474063873, -0.010343004018068314, 0.3054113984107971, -0.06282541155815125, 0.13775959610939026, 0.0035018082708120346, -0.05208869278430939, -0.31094983220100403, -0.1872946321964264, 0.2082957774400711, -0.03139698505401611, -0.007855832576751709, -0.5724862813949585, -0.19813509285449982, 0.4705941081047058, -0.15608341991901398, -0.09748155623674393, 0.09796257317066193, -0.08301959931850433, -0.053194597363471985, -0.08032280951738358, -0.038373202085494995, -0.23927675187587738, 0.07290227711200714, -0.48644310235977173, -0.20754513144493103, 0.13428948819637299, -0.029610294848680496, -0.16733099520206451, 0.3975626826286316, 0.2318829596042633, 0.5182493925094604, -0.19910050928592682, -0.1807960420846939, -0.24874041974544525, 0.14206881821155548, -0.1421351283788681, 0.3399440348148346, 0.04793976619839668, 0.5490871667861938, 0.07892636954784393, -0.06037745624780655, 0.6871294379234314, 0.13677363097667694, 0.10939525812864304, 0.4636108875274658, -0.18782289326190948, 0.35701149702072144, -0.34434473514556885, -0.2847066819667816, 0.13400016725063324, -0.03407499939203262, 0.4974752366542816, 0.20115457475185394, -0.24784180521965027, 0.22268342971801758, -0.2510332465171814, 0.3260989189147949, -0.49096986651420593, 0.5764988660812378, 0.06350772827863693, 0.1297810673713684, -0.07986484467983246, 0.04564204066991806, -0.12331822514533997, -0.20516034960746765, -0.33429858088493347, 0.06621505320072174, -0.38604703545570374, -0.20562195777893066, -0.2810482978820801, -0.15919357538223267, 0.04701385274529457, 0.2368541657924652, -0.13969045877456665, -0.19904929399490356, -0.06035700440406799, 0.08847994357347488, -0.13465118408203125, 0.2249327301979065, -0.08058460801839828, 0.1380121111869812, 0.19085383415222168, 0.26265430450439453, -0.2852632403373718, 0.28086531162261963, 0.2794203758239746, -0.18161073327064514, -0.021358629688620567, -0.49583378434181213, 0.13552020490169525, 0.4050751030445099, 0.10906148701906204, -0.5247436761856079, -0.5293176174163818, 0.12687447667121887, 0.33361735939979553, 0.24437850713729858, 0.15769696235656738, -0.010748857632279396, -0.3092319071292877, -0.2780919671058655, -0.331450492143631, 0.003730207681655884, 0.1973460167646408, 0.03424513712525368, -0.03396054357290268 ]
https://github.com/huggingface/datasets/issues/1965
Can we parallelized the add_faiss_index process over dataset shards ?
Actually, you are right. I also had the same idea. I am trying this in the context of end-ton-end retrieval training in RAG. So far I have parallelized the embedding re-computation within the training loop by using datasets shards. Then I was thinking of can I calculate the indexes for each shard and combined them with **concatenate** before I save.
I am thinking of making the **add_faiss_index** process faster. What if we run the add_faiss_index process on separate dataset shards and then combine them before (dataset.concatenate) saving the faiss.index file ? I feel theoretically this will reduce the accuracy of retrieval since it affects the indexing process. @lhoestq
60
Can we parallelized the add_faiss_index process over dataset shards ? I am thinking of making the **add_faiss_index** process faster. What if we run the add_faiss_index process on separate dataset shards and then combine them before (dataset.concatenate) saving the faiss.index file ? I feel theoretically this will reduce the accuracy of retrieval since it affects the indexing process. @lhoestq Actually, you are right. I also had the same idea. I am trying this in the context of end-ton-end retrieval training in RAG. So far I have parallelized the embedding re-computation within the training loop by using datasets shards. Then I was thinking of can I calculate the indexes for each shard and combined them with **concatenate** before I save.
[ -0.2849660813808441, -0.16969694197177887, -0.0912608951330185, 0.16800206899642944, -0.3235114812850952, 0.37588822841644287, 0.33479997515678406, 0.0697198137640953, -0.03588654100894928, 0.15469516813755035, -0.08760625123977661, 0.06187273934483528, 0.38241755962371826, -0.020076200366020203, -0.30320295691490173, 0.14349550008773804, 0.28098195791244507, -0.05846431851387024, 0.2126162201166153, 0.03947953134775162, -0.3338530659675598, -0.13826468586921692, -0.07154768705368042, -0.280703604221344, -0.22384311258792877, 0.18625508248806, -0.35625845193862915, 0.11157435178756714, -0.0008235014975070953, -0.3895469009876251, -0.19009320437908173, 0.3138130307197571, 0.2559099495410919, 0.02997029572725296, -0.00012776211951859295, -0.09971971064805984, 0.17798137664794922, 0.018381530418992043, 0.11612382531166077, 0.6891211271286011, -0.29720211029052734, -0.02671073190867901, -0.04040450602769852, -0.24459415674209595, 0.08226407319307327, -0.25055816769599915, 0.0011064931750297546, -0.25172924995422363, -0.07024019956588745, -0.2690676152706146, -0.04667961224913597, -0.06079159677028656, 0.057592976838350296, 0.057458192110061646, 0.04068451747298241, -0.3079017996788025, -0.12135926634073257, 0.1398366242647171, 0.08395225554704666, 0.22450505197048187, 0.13430777192115784, 0.050792500376701355, -0.047737978398799896, -0.16000258922576904, 0.07260801643133163, 0.11297828704118729, 0.2452794909477234, 0.13472574949264526, -0.05123881250619888, -0.12121472507715225, 0.25529760122299194, -0.0992787554860115, -0.5349694490432739, -0.15823286771774292, 0.26636821031570435, -0.15956339240074158, -0.14388057589530945, -0.16599978506565094, 0.10479903221130371, 0.06222144514322281, 0.06627342849969864, -0.5065562129020691, -0.010439049452543259, 0.03255908936262131, 0.4056906998157501, 0.0920148715376854, 0.29555943608283997, 0.12985309958457947, 0.3458770513534546, 0.044557228684425354, 0.09975475072860718, -0.20291081070899963, -0.1997179239988327, 0.11312530189752579, -0.6591153740882874, -0.03317718207836151, -0.20639407634735107, -0.2228667438030243, -0.12412050366401672, -0.03510180115699768, -0.10607647895812988, 0.1871550977230072, 0.23890218138694763, 0.160972461104393, -0.005884217098355293, -0.08958466351032257, 0.034384291619062424, -0.1298580914735794, -0.13682244718074799, -0.42812201380729675, -0.10758768022060394, 0.04883427917957306, 0.035025160759687424, -0.1958867758512497, -0.5263499617576599, -0.0633084625005722, -0.48655271530151367, -0.07199309766292572, -0.10264208912849426, -0.1734398752450943, -0.16770780086517334, -0.12919193506240845, 0.12979291379451752, 0.020617295056581497, 0.2822864055633545, -0.15922406315803528, -0.17018379271030426, 0.0673738569021225, -0.05598686635494232, 0.004555596970021725, -0.027997002005577087, -0.2161835879087448, 0.01742624118924141, 0.5126782655715942, -0.04364405944943428, -0.28637874126434326, -0.38278666138648987, 0.05058750510215759, -0.04815851151943207, 0.17486786842346191, 0.0664135217666626, -0.21543392539024353, 0.1209254264831543, 0.07724259793758392, -0.12908047437667847, -0.1677454710006714, -0.03657521679997444, 0.24540825188159943, -0.19669365882873535, 0.20982477068901062, -0.23114001750946045, -0.20992974936962128, 0.16461272537708282, -0.03864692151546478, -0.03481768071651459, -0.14416411519050598, -0.04464966803789139, 0.3352726995944977, 0.34455958008766174, -0.006436619907617569, 0.006294973194599152, 0.1591217815876007, -0.2874041199684143, -0.13964203000068665, 0.24949344992637634, 0.23387233912944794, -0.4014923572540283, -0.11693418025970459, -0.048782236874103546, 0.01949446275830269, 0.167215496301651, 0.5547195076942444, -0.13143184781074524, 0.1645197570323944, -0.38139256834983826, 0.5477820038795471, 0.339935302734375, -0.28260478377342224, -0.018286170437932014, 0.03284207731485367, -0.19533485174179077, -0.09613397717475891, 0.2637234032154083, 0.15843774378299713, 0.4460003674030304, 0.029370373114943504, 0.2704944610595703, 0.2283855825662613, -0.06693034619092941, -0.3063271641731262, -0.34549057483673096, -0.24789005517959595, 0.22123785316944122, 0.1413298100233078, -0.07175621390342712, 0.19854658842086792, 0.051137425005435944, -0.8309346437454224, 0.363523930311203, -0.08406713604927063, 0.21591898798942566, -0.010742291808128357, 0.20923995971679688, 0.3811730742454529, 0.3770608603954315, -0.07811810076236725, 0.0771486684679985, 0.15998587012290955, -0.02807442657649517, -0.04097558557987213, 0.24880166351795197, -0.35382992029190063, 0.48316341638565063, -0.07563066482543945, 0.024190470576286316, 0.46891912817955017, -0.11990945786237717, -0.20625156164169312, 0.06219871714711189, -0.331423819065094, -0.29417040944099426, 0.5498025417327881, -0.47797632217407227, -0.09684392809867859, -0.18878044188022614, 0.28025156259536743, 0.07799012213945389, -0.14887508749961853, -0.2816527783870697, 0.04759521409869194, 0.07335776090621948, -0.24420619010925293, -0.05964725464582443, 0.23864129185676575, -0.08092677593231201, 0.10199294984340668, 0.8778350949287415, 0.10956943780183792, -0.15415728092193604, 0.07112757861614227, 0.1545337289571762, -0.3248104751110077, -0.08525294810533524, -0.20583438873291016, 0.3224862813949585, 0.2268133908510208, 0.02490433305501938, 0.36097097396850586, 0.030859559774398804, -0.09083335101604462, 0.019549770280718803, 0.02349294349551201, 0.014460897073149681, 0.08005842566490173, -0.10248462855815887, 0.0013237372040748596, -0.07055406272411346, 0.045099325478076935, -0.11206905543804169, 0.32657262682914734, -0.13850335776805878, -0.17852811515331268, -0.29239070415496826, -0.05336536467075348, -0.03400807082653046, 0.1097717210650444, -0.07186415791511536, -0.15300217270851135, 0.3807485103607178, 0.16276980936527252, 0.1704767793416977, -0.12954629957675934, 0.2641075849533081, -0.19424477219581604, 0.024381347000598907, 0.2502622604370117, 0.0645524263381958, 0.21181315183639526, 0.06966192275285721, -0.08770973980426788, -0.032604657113552094, -0.026046147570014, 0.09287243336439133, 0.06399788707494736, -0.015880241990089417, -0.0416266992688179, 0.08641241490840912, 0.38752394914627075, -0.31046581268310547, -0.11043882369995117, -0.2621289789676666, -0.16850648820400238, 0.13098466396331787, 0.03513316810131073, -0.17594631016254425, -0.014068607240915298, -0.04725206643342972, 0.5214402675628662, -0.14268837869167328, -0.310570627450943, -0.14791947603225708, -0.11272934079170227, 0.11967000365257263, -0.1296887844800949, 0.2577827572822571, 0.15934215486049652, 0.13176041841506958, 0.11900965124368668, -0.047824133187532425, -0.2820175886154175, 0.0005470439791679382, -0.17021721601486206, 0.02250390499830246, -0.200986847281456, -0.3025677800178528, -0.23042763769626617, -0.3104281425476074, -0.1213887557387352, 0.06953997910022736, 0.15595725178718567, -0.015110519714653492, -0.2252914011478424, 0.113005131483078, 0.06514635682106018, 0.13852915167808533, -0.13715946674346924, -0.3187466561794281, -0.25401827692985535, 0.31618863344192505, -0.1976727992296219, -0.008667141199111938, -0.4010065197944641, -0.13119085133075714, -0.144711434841156, -0.19444184005260468, -0.24840715527534485, -0.30969294905662537, -0.1726854145526886, 0.15253955125808716, -0.02631155028939247, -0.07675358653068542, -0.0058421790599823, -0.03326379880309105, -0.1281508505344391, 0.6561336517333984, -0.010741982609033585, 0.21730034053325653, 0.04766542464494705, 0.09334735572338104, -0.2506469488143921, 0.26371192932128906, 0.21298953890800476, -0.028158923611044884, 0.007906371727585793, 0.15562689304351807, 0.2947208881378174, 0.3695469796657562, 0.09744563698768616, 0.06610565632581711, 0.04085730016231537, 0.028863627463579178, -0.1932777762413025, 0.9015141725540161, 0.2490784227848053, -0.18509359657764435, 0.16086074709892273, 0.2594345211982727, 0.1495264321565628, 0.007931552827358246, -0.11607363820075989, 0.2399919480085373, 0.14359399676322937, -0.13714823126792908, 0.0009889453649520874, -0.0364588238298893, -0.09459030628204346, 0.10961852967739105, -0.20129495859146118, 0.01153361052274704, -0.17153482139110565, -0.0033562704920768738, 0.05448640137910843, 0.5516697764396667, 0.05504871532320976, 0.021414123475551605, -0.2025681734085083, 0.04373164102435112, 0.12830349802970886, 0.39457303285598755, 0.5861867070198059, -0.275617778301239, -0.056268129497766495, -0.25801894068717957, -0.30138513445854187, 0.4053609371185303, 0.06612233072519302, 0.35469114780426025, 0.1334126591682434, -0.10776522755622864, 0.3340641260147095, -0.11553703248500824, 0.8974550366401672, -0.1313096284866333, -0.5274401903152466, 0.13437575101852417, 0.05332731455564499, -0.14586713910102844, -0.26067399978637695, 0.3020033538341522, 0.18603163957595825, 0.3533153533935547, 0.19428706169128418, -0.21807047724723816, -0.20826758444309235, 0.3316381871700287, 0.1343444287776947, -0.26560544967651367, -0.6529959440231323, -0.09411740303039551, 0.17214354872703552, -0.04747997224330902, 0.22002312541007996, -0.3541428744792938, 0.03573833033442497, 0.026645580306649208, -0.02058906853199005, -0.37984323501586914, -0.01836720108985901, 0.010570339858531952, -0.04184198006987572, 0.08754301816225052, 0.02194194495677948, 0.5158404111862183, 0.36036771535873413, -0.04023122787475586, 0.4263271987438202, 0.09635065495967865, 0.0793369859457016, 0.013031579554080963, -0.18686994910240173, -0.19683554768562317, 0.30670061707496643, 0.09572355449199677, 0.06545814871788025, 0.31114163994789124, -0.27888762950897217, 0.0630100816488266, -0.34858036041259766, 0.05659395456314087, 0.10232631862163544, 0.43894410133361816, -0.12258296459913254, -0.19308246672153473, 0.43895649909973145, 0.05041322484612465, -0.15144796669483185, -0.054530300199985504, 0.34553468227386475, -0.18947994709014893, 0.681226372718811, 0.06648287177085876, 0.8806688189506531, -0.15946471691131592, 0.048307932913303375, -0.21237772703170776, 0.09757053852081299, -0.017821835353970528, -0.6159815192222595, 0.4225197434425354, -0.23770642280578613, -0.17719323933124542, 0.10497136414051056, -0.2092423439025879, 0.20176979899406433, 0.4122803211212158, 0.18960300087928772, 0.12428563088178635, -0.07643098384141922, -0.09920616447925568, -0.17659643292427063, 0.25096967816352844, 0.22303862869739532, -0.23942449688911438, 0.3446897864341736, -0.05905518680810928, 0.23828047513961792, -0.23233628273010254, 0.019142068922519684, 0.02644452266395092, -0.17033588886260986, 0.37963658571243286, -0.10863576829433441, -0.016727009788155556, 0.44811198115348816, 0.1966138780117035, -0.17318345606327057, -0.2193169742822647, 0.25749555230140686, -0.369575560092926, 0.30111896991729736, -0.2077331393957138, -0.031781867146492004, -0.007087573409080505, -0.004874430596828461, -0.2725214958190918, -0.10242364555597305, -0.38078397512435913, -0.03312492370605469, 0.11104676872491837, -0.3711656630039215, -0.16613951325416565, 0.2631864845752716, -0.7294943332672119, -0.43862518668174744, 0.12840616703033447, -0.05317101627588272, -0.11926022171974182, -0.13654020428657532, 0.4132654368877411, -0.11440733075141907, 0.0019170716404914856, -0.06892533600330353, 0.2600790858268738, -0.48175016045570374, 0.8244274258613586, -0.3634018898010254, 0.025421500205993652, 0.019300054758787155, 0.28812071681022644, 0.3121018707752228, -0.2579224705696106, 0.22776928544044495, -0.15170790255069733, -0.23489277064800262, -0.00003811344504356384, -0.5809664130210876, 0.15419872105121613, 0.4484095871448517, -0.09266917407512665, 0.018247852101922035, -0.028131283819675446, -0.009679093025624752, -0.4759548008441925, -0.09658259153366089, 0.026090923696756363, -0.5716096758842468, -0.12791047990322113, -0.35548052191734314, 0.10130931437015533, 0.20632554590702057, 0.4299415349960327, 0.05845540016889572, 0.1112200915813446, -0.3822532892227173, 0.18692199885845184, -0.10912720113992691, 0.05348628759384155, 0.10149335116147995, 0.21285122632980347, 0.1496151238679886, -0.09739308804273605, 0.10516314953565598, -0.04660116508603096, -0.06393486261367798, 0.1806936264038086, 0.09858161211013794, -0.026734445244073868, 0.2877899706363678, 0.23278218507766724, 0.1426943689584732, 0.17090155184268951, -0.08537030220031738, -0.3187400698661804, -0.2249474674463272, -0.2446722686290741, -0.024626627564430237, -0.05332423746585846, -0.13815942406654358, -0.0823490247130394, 0.45317748188972473, -0.08842743188142776, 0.03707292675971985, 0.45272132754325867, 0.39832884073257446, 0.3977433443069458, -0.05500092729926109, 0.42541056871414185, -0.21702781319618225, 0.004388041794300079, 0.018851179629564285, 0.10606545209884644, 0.3288205862045288, 0.00738152489066124, 0.10006513446569443, -0.01751641184091568, -0.3024098873138428, -0.22446872293949127, 0.5101443529129028, 0.6108434796333313, 0.34292295575141907, -0.4377301335334778, 0.11149965971708298, -0.01582385040819645, -0.03986583650112152, -0.15325576066970825, 0.7825088500976562, 0.02984759211540222, 0.1465708315372467, 0.12595835328102112, 0.2123567759990692, 0.2996014356613159, -0.35925471782684326, -0.004761360585689545, 0.140622079372406, 0.3161543011665344, -0.1753818839788437, -0.48671987652778625, 0.33273908495903015, 0.08386587351560593, 0.15542995929718018, -0.11788497865200043, 0.14410185813903809, 0.6216909289360046, -0.145412415266037, 0.5556601881980896, 0.09311044216156006, 0.00855981558561325, -0.05139904469251633, -0.31474769115448, 0.31280001997947693, 0.41585904359817505, 0.3478419780731201, 0.13523778319358826, 0.14624136686325073, 0.38302603363990784, 0.2558976113796234, -0.5684163570404053, -0.14769518375396729, 0.4132968783378601, -0.13336670398712158, -0.1575532853603363, 0.38349083065986633, -0.054032035171985626, 0.10455039143562317, 0.07881328463554382, 0.18582403659820557, 0.09291441738605499, 0.3751928508281708, -0.07365158200263977, 0.24327252805233002, 0.2592489421367645, 0.0974978432059288, 0.33800894021987915, 0.268429696559906, -0.13517189025878906, -0.31364548206329346, -0.18530945479869843, 0.03453998640179634, 0.12359139323234558, 0.0863996222615242, 0.04472295194864273, 0.18193574249744415, 0.15314854681491852, 0.26621073484420776, -0.06556954979896545, 0.14505314826965332, -0.008477923460304737, -0.024816051125526428, -0.2228887379169464, -0.14583951234817505, 0.18721367418766022, -0.08705031871795654, 0.024511758238077164, -0.4995049834251404, -0.11769938468933105, 0.333457887172699, -0.2195054292678833, -0.174424409866333, 0.2647448182106018, -0.3016048073768616, 0.0676540955901146, -0.03312069922685623, -0.1562541127204895, -0.06319811195135117, 0.2823482155799866, -0.36151647567749023, -0.27667486667633057, 0.2801630198955536, -0.07075800001621246, -0.30863678455352783, 0.48068976402282715, 0.33418384194374084, 0.5037376284599304, -0.26532697677612305, -0.10254819691181183, -0.22280552983283997, 0.197182297706604, -0.15940538048744202, 0.2911324203014374, -0.020268522202968597, 0.473079115152359, 0.1639256775379181, -0.1333216428756714, 0.5242287516593933, 0.036624301224946976, 0.06487666815519333, 0.5568505525588989, -0.2519760727882385, 0.18734806776046753, -0.29756098985671997, -0.3276858925819397, 0.057302460074424744, -0.15199604630470276, 0.42057040333747864, 0.1887064278125763, -0.25053778290748596, 0.18521934747695923, -0.028114929795265198, 0.3232848644256592, -0.290866494178772, 0.5298877954483032, -0.02029728703200817, 0.29535341262817383, -0.05300680547952652, 0.07547993957996368, -0.1315184235572815, -0.136260986328125, -0.31464043259620667, 0.08520324528217316, -0.29043957591056824, -0.08892710506916046, -0.4956980049610138, -0.1259976327419281, -0.026906447485089302, 0.13266494870185852, -0.09398051351308823, -0.1971268504858017, -0.023479431867599487, 0.10474403947591782, -0.052261948585510254, 0.200095072388649, 0.046023834496736526, 0.23741325736045837, 0.19006749987602234, 0.24535919725894928, -0.2602974474430084, 0.3165748119354248, 0.28972166776657104, -0.18972362577915192, -0.06015951931476593, -0.36150553822517395, 0.08744766563177109, 0.3728886544704437, 0.15714751183986664, -0.5834987759590149, -0.4987611472606659, 0.21879048645496368, 0.2269463837146759, 0.16322612762451172, 0.26204249262809753, 0.32716256380081177, -0.2740887403488159, -0.2698303163051605, -0.5132451057434082, -0.04307457059621811, 0.07804058492183685, -0.10161566734313965, -0.21672339737415314 ]
https://github.com/huggingface/datasets/issues/1965
Can we parallelized the add_faiss_index process over dataset shards ?
@lhoestq As you mentioned faiss is already using multiprocessing. I tried to do the add_index with faiss for a dataset object inside a RAY actor and the process became very slow... if fact it takes so much time. It is because a ray actor comes with a single CPU core unless we assign it more. I also tried assigning more cores but still running add_index in the main process is very fast.
I am thinking of making the **add_faiss_index** process faster. What if we run the add_faiss_index process on separate dataset shards and then combine them before (dataset.concatenate) saving the faiss.index file ? I feel theoretically this will reduce the accuracy of retrieval since it affects the indexing process. @lhoestq
72
Can we parallelized the add_faiss_index process over dataset shards ? I am thinking of making the **add_faiss_index** process faster. What if we run the add_faiss_index process on separate dataset shards and then combine them before (dataset.concatenate) saving the faiss.index file ? I feel theoretically this will reduce the accuracy of retrieval since it affects the indexing process. @lhoestq @lhoestq As you mentioned faiss is already using multiprocessing. I tried to do the add_index with faiss for a dataset object inside a RAY actor and the process became very slow... if fact it takes so much time. It is because a ray actor comes with a single CPU core unless we assign it more. I also tried assigning more cores but still running add_index in the main process is very fast.
[ -0.40549901127815247, -0.1552565097808838, -0.12579822540283203, 0.1830274760723114, -0.3051234483718872, 0.2511138319969177, 0.33917713165283203, 0.07270057499408722, 0.13479004800319672, 0.17686812579631805, -0.14357319474220276, 0.1960877627134323, 0.35047584772109985, 0.08793178200721741, -0.2222459316253662, 0.0771598145365715, 0.3349468410015106, -0.0737510472536087, 0.18786466121673584, 0.14426648616790771, -0.34921690821647644, -0.07901138812303543, -0.07370328158140182, -0.30466216802597046, -0.2064707726240158, 0.20733033120632172, -0.22254177927970886, 0.005088236182928085, 0.11361287534236908, -0.3396567702293396, -0.21135582029819489, 0.2969421148300171, 0.22046521306037903, 0.202259823679924, -0.000123616264318116, -0.09303232282400131, 0.24472984671592712, 0.13536283373832703, 0.21268638968467712, 0.7094953656196594, -0.2860058546066284, 0.08429647237062454, 0.01185434777289629, -0.2131095975637436, 0.039123788475990295, -0.22459015250205994, 0.031398970633745193, -0.3076615631580353, -0.19457878172397614, -0.21643389761447906, 0.01788640022277832, -0.04201488569378853, 0.12756633758544922, 0.03970837593078613, -0.055594585835933685, -0.23347477614879608, -0.19606062769889832, -0.14217440783977509, 0.1881546974182129, 0.40776127576828003, 0.09287764877080917, 0.1631823182106018, -0.081511951982975, -0.11101832985877991, 0.04425453022122383, 0.019148286432027817, 0.31260916590690613, 0.11187124997377396, 0.0620257705450058, 0.02742859348654747, 0.19386127591133118, -0.14183998107910156, -0.5114313960075378, -0.18154479563236237, 0.1477665901184082, -0.14311882853507996, -0.18862348794937134, -0.1851349174976349, 0.0634019523859024, 0.009575601667165756, 0.11919603496789932, -0.47428154945373535, 0.013794884085655212, -0.014569900929927826, 0.3781154751777649, 0.184835284948349, 0.25527316331863403, 0.1527385115623474, 0.41817614436149597, 0.06405049562454224, 0.13895630836486816, -0.09193351119756699, -0.22015315294265747, 0.09680068492889404, -0.7896092534065247, 0.0617334321141243, -0.14578130841255188, -0.14994752407073975, -0.055965863168239594, -0.19127273559570312, -0.38142162561416626, 0.2947394847869873, 0.11319179832935333, 0.1418471336364746, 0.025572413578629494, -0.1043267697095871, 0.06323865056037903, -0.27632394433021545, -0.06812334060668945, -0.3750476837158203, -0.058492511510849, 0.06475362926721573, 0.04592964053153992, -0.11015079915523529, -0.48534655570983887, -0.03424554690718651, -0.34454166889190674, -0.11491338908672333, -0.039699554443359375, -0.2562004625797272, 0.12141845375299454, -0.1795288622379303, 0.2044481635093689, 0.18270868062973022, 0.3225754201412201, 0.10100529342889786, -0.2328573763370514, -0.0010054446756839752, -0.02153986506164074, -0.022383805364370346, 0.004832592327147722, -0.16785727441310883, 0.18900923430919647, 0.49306339025497437, -0.024606212973594666, -0.4299052655696869, -0.36551108956336975, 0.011461424641311169, -0.057134345173835754, 0.1619335412979126, 0.021369637921452522, -0.21686454117298126, -0.030049368739128113, 0.03818392753601074, -0.019889874383807182, -0.06552737951278687, -0.1344529688358307, 0.27288365364074707, -0.23504462838172913, 0.21519502997398376, -0.20928707718849182, -0.3914923071861267, 0.017466284334659576, -0.005247778259217739, -0.0216323621571064, -0.1631600558757782, -0.06980646401643753, 0.3777596950531006, 0.1984350085258484, 0.03650696948170662, -0.08536151796579361, 0.10620181262493134, -0.2503992021083832, -0.12644270062446594, 0.2313385009765625, 0.1742168366909027, -0.4121522605419159, -0.041224200278520584, -0.3235962986946106, -0.16854815185070038, 0.18647921085357666, 0.47583121061325073, -0.02924470789730549, 0.10942469537258148, -0.33311933279037476, 0.3905991315841675, 0.17708909511566162, -0.36720576882362366, 0.0471225380897522, 0.1398417055606842, -0.12045419216156006, -0.16564473509788513, 0.33151018619537354, 0.2888587415218353, 0.34537526965141296, -0.008353196084499359, 0.1355592906475067, 0.14658966660499573, -0.061240896582603455, -0.1479460895061493, -0.21273307502269745, -0.25355979800224304, 0.1667657047510147, 0.2950843274593353, -0.02094883844256401, 0.16817903518676758, -0.03103308379650116, -0.8039101958274841, 0.3160696029663086, -0.14595091342926025, 0.299919068813324, -0.06772211939096451, 0.26664337515830994, 0.37279659509658813, 0.37046486139297485, -0.11623572558164597, 0.0769762322306633, 0.23828628659248352, 0.02090959995985031, -0.03385452926158905, 0.2227013260126114, -0.38553476333618164, 0.4876067042350769, 0.04594079405069351, 0.04906424880027771, 0.4221508502960205, -0.05523309111595154, -0.17521342635154724, 0.009542439132928848, -0.4162948429584503, -0.3488958179950714, 0.5179665088653564, -0.23984862864017487, -0.18467552959918976, -0.06958125531673431, 0.06049136072397232, 0.008524365723133087, -0.1463850885629654, -0.3137204051017761, 0.08755232393741608, 0.07638834416866302, -0.25189733505249023, -0.08707374334335327, 0.30750441551208496, -0.02118576504290104, 0.04601171612739563, 0.8042542934417725, 0.07749658077955246, -0.14136676490306854, 0.23544299602508545, 0.08446342498064041, -0.2908230125904083, -0.06030084565281868, -0.10215286165475845, 0.3470940589904785, 0.1247008815407753, 0.10349732637405396, 0.4663466215133667, 0.0484495609998703, -0.010286811739206314, 0.20893055200576782, 0.04942568019032478, 0.1752784550189972, 0.040465183556079865, -0.003979247063398361, -0.11052155494689941, -0.05945706367492676, 0.07425467669963837, -0.23323844373226166, 0.5649160146713257, -0.17173318564891815, -0.10277755558490753, -0.20153513550758362, -0.046147286891937256, -0.08021796494722366, 0.14783301949501038, 0.08415033668279648, -0.09524111449718475, 0.2414819598197937, 0.20034702122211456, 0.0308589618653059, -0.27468767762184143, 0.25011488795280457, -0.19292594492435455, 0.025579653680324554, 0.270783007144928, 0.15450163185596466, 0.03912632539868355, -0.03483588621020317, -0.1922842264175415, 0.027098536491394043, -0.19992272555828094, 0.05151950567960739, 0.12112856656312943, -0.016695845872163773, -0.10937163233757019, 0.018968435004353523, 0.18608307838439941, -0.21278584003448486, -0.10814635455608368, -0.21435877680778503, -0.11333929002285004, 0.17644058167934418, 0.09759300947189331, -0.19175563752651215, -0.060949817299842834, -0.09612667560577393, 0.39638185501098633, -0.1553371399641037, -0.4528171122074127, -0.2940584421157837, -0.14705300331115723, 0.1323351263999939, -0.06619048118591309, 0.31425416469573975, 0.08563095331192017, 0.09217368066310883, 0.1264207363128662, -0.0404539480805397, -0.34408092498779297, 0.09509874135255814, -0.1518469899892807, -0.0034037642180919647, -0.09410355985164642, -0.293622761964798, -0.348965048789978, -0.18191254138946533, -0.08247432857751846, 0.041147008538246155, 0.018942607566714287, 0.016700925305485725, -0.14761170744895935, -0.13366667926311493, -0.0711161345243454, 0.06771443784236908, -0.11715129762887955, -0.20935149490833282, -0.305546373128891, 0.34756016731262207, -0.1158817857503891, 0.14105048775672913, -0.4759964644908905, -0.1276790201663971, -0.06294885277748108, -0.3044451177120209, -0.19564735889434814, -0.2405066043138504, -0.10523354262113571, 0.1640595942735672, 0.04993473365902901, -0.15389755368232727, 0.09570658206939697, 0.002941921353340149, -0.02893303707242012, 0.4696130156517029, 0.020341433584690094, 0.06580162793397903, -0.07608748972415924, 0.18250423669815063, -0.1649397611618042, 0.17219147086143494, 0.3239164352416992, 0.005663699004799128, -0.05534127727150917, 0.11921343952417374, 0.11729826033115387, 0.33691537380218506, 0.0030351895838975906, 0.03292963653802872, 0.006407054141163826, 0.04007059335708618, -0.20114605128765106, 0.7294514775276184, 0.1223028302192688, -0.19572195410728455, 0.1946377158164978, 0.08249746263027191, 0.02501193806529045, 0.08616780489683151, -0.17827631533145905, 0.3500842750072479, 0.10125736892223358, -0.0929718017578125, 0.00261717289686203, -0.043882329016923904, -0.12640203535556793, 0.04118814319372177, -0.12937909364700317, -0.10389438271522522, -0.1315622478723526, -0.05484619736671448, 0.25286152958869934, 0.5113690495491028, -0.04363362118601799, 0.007744744420051575, -0.2366499900817871, -0.006544745992869139, 0.1355665773153305, 0.4619988799095154, 0.5420896410942078, -0.33161288499832153, 0.09054228663444519, -0.30642378330230713, -0.3880171775817871, 0.44909292459487915, 0.037872958928346634, 0.4197951853275299, 0.08413930237293243, 0.021097611635923386, 0.2919827103614807, -0.22190998494625092, 0.902658224105835, 0.02707453817129135, -0.5150843858718872, 0.0960620641708374, -0.02599899284541607, -0.3318490982055664, -0.09381136298179626, 0.15249021351337433, 0.24724377691745758, 0.3681125044822693, 0.15485495328903198, -0.21205246448516846, -0.2917935252189636, 0.13432694971561432, 0.08310811966657639, -0.27843210101127625, -0.6738589406013489, -0.14986172318458557, -0.007725458592176437, -0.05340908467769623, 0.18205061554908752, -0.2881641387939453, 0.11419375240802765, 0.09480828046798706, -0.00595981627702713, -0.33017128705978394, -0.023259088397026062, 0.04418519139289856, 0.004074893891811371, 0.09150814265012741, -0.020534975454211235, 0.5346841812133789, 0.22049012780189514, -0.07354870438575745, 0.2417612373828888, -0.016407951712608337, 0.22247222065925598, 0.14556190371513367, -0.1792442798614502, -0.13927537202835083, 0.20921394228935242, 0.009843006730079651, -0.003031356493011117, 0.349141925573349, -0.2979663610458374, 0.14236827194690704, -0.20837412774562836, -0.009265315718948841, 0.06156165897846222, 0.438518226146698, -0.0940527394413948, -0.2846190929412842, 0.320987731218338, 0.12117566168308258, -0.14986082911491394, -0.11453574895858765, 0.3715466856956482, -0.050134725868701935, 0.6364875435829163, 0.12835341691970825, 0.678391695022583, -0.2733449339866638, -0.09647563099861145, -0.17579340934753418, 0.1353345662355423, 0.07753967493772507, -0.5695593953132629, 0.4079461097717285, -0.2618125379085541, -0.1729670763015747, 0.11519871652126312, -0.10116560757160187, 0.18221110105514526, 0.26776057481765747, 0.09976467490196228, 0.24944950640201569, 0.09000903367996216, -0.28328806161880493, -0.13832516968250275, 0.31522634625434875, 0.17804653942584991, -0.3854478597640991, 0.35677385330200195, 0.00852116197347641, 0.118549644947052, -0.2574537694454193, 0.04755419120192528, 0.09952719509601593, -0.09647909551858902, 0.4011666178703308, -0.16188198328018188, -0.062256794422864914, 0.4725170135498047, 0.07849439978599548, -0.17505134642124176, 0.014989979565143585, 0.22652201354503632, -0.40408286452293396, 0.24182051420211792, -0.2935244143009186, -0.1323634535074234, 0.09445278346538544, -0.051643311977386475, -0.1664474457502365, 0.0012740471865981817, -0.4851128160953522, -0.07424920797348022, 0.05078607797622681, -0.45488956570625305, -0.16886591911315918, 0.275044709444046, -0.7210445404052734, -0.31666773557662964, 0.0968269556760788, -0.06114675849676132, 0.10045895725488663, -0.14542804658412933, 0.3827259838581085, -0.13408027589321136, -0.046631865203380585, -0.02645063027739525, 0.25200730562210083, -0.4767293334007263, 0.8772200345993042, -0.3962702751159668, -0.023491602391004562, 0.006421098485589027, 0.2088802307844162, 0.3037536144256592, -0.18574947118759155, 0.035990066826343536, 0.03186139836907387, -0.18258115649223328, -0.029721632599830627, -0.7237132787704468, -0.06158334016799927, 0.3477550148963928, -0.1356627494096756, 0.08269408345222473, -0.21268953382968903, 0.04302625730633736, -0.592383861541748, -0.09861885011196136, -0.035529181361198425, -0.6348738670349121, -0.09416288882493973, -0.3619503378868103, 0.08763135224580765, 0.12045195698738098, 0.3645613193511963, 0.10344753414392471, 0.10336673259735107, -0.347306489944458, 0.2193741500377655, -0.1451958864927292, -0.054893434047698975, 0.21072961390018463, 0.1804766207933426, 0.21331913769245148, -0.058700285851955414, 0.13685710728168488, -0.06410829722881317, -0.011960584670305252, 0.12396883964538574, 0.14163348078727722, -0.09107773005962372, 0.24574151635169983, 0.20721817016601562, 0.05950820818543434, 0.060538992285728455, -0.11349458247423172, -0.29336947202682495, -0.2580484449863434, -0.2277740240097046, 0.07088610529899597, -0.055041372776031494, -0.2842027544975281, -0.037387508898973465, 0.37967389822006226, -0.21993455290794373, -0.036765843629837036, 0.5711759328842163, 0.36384478211402893, 0.41194361448287964, -0.13046212494373322, 0.5840530395507812, -0.15031325817108154, -0.011617399752140045, 0.1101323813199997, 0.03800496086478233, 0.3578718900680542, 0.1273036003112793, 0.02577032521367073, 0.10055161267518997, -0.2617844045162201, -0.20990046858787537, 0.5314099788665771, 0.5130404233932495, 0.4117487668991089, -0.2642953097820282, 0.09690036624670029, 0.04363250359892845, -0.06351619213819504, -0.14135631918907166, 0.760537326335907, -0.06528937816619873, 0.25896769762039185, 0.22889989614486694, 0.3385687470436096, 0.32461926341056824, -0.24394278228282928, 0.07135458290576935, 0.18408851325511932, 0.39539748430252075, -0.2592015862464905, -0.5113340020179749, 0.33472368121147156, 0.03192928433418274, 0.27512696385383606, -0.15167269110679626, 0.11077148467302322, 0.9230401515960693, -0.19795146584510803, 0.5783291459083557, 0.2697030007839203, 0.07318952679634094, 0.04775059223175049, -0.11277632415294647, 0.5054674744606018, 0.21190913021564484, 0.2594751715660095, 0.04255837947130203, 0.15682360529899597, 0.4555439054965973, 0.08629120886325836, -0.4791406989097595, -0.20306800305843353, 0.36334285140037537, -0.0651320219039917, -0.1690250188112259, 0.39641204476356506, 0.0012900009751319885, 0.09322629868984222, 0.045804303139448166, 0.21787679195404053, 0.03575725853443146, 0.32464563846588135, 0.04910575598478317, 0.15163642168045044, 0.15041643381118774, 0.0357426181435585, 0.4240095019340515, 0.25617966055870056, 0.019647177308797836, -0.2027694433927536, -0.10230576992034912, -0.03314667195081711, 0.12796415388584137, 0.1681082844734192, 0.0743430107831955, 0.16057023406028748, 0.062282316386699677, 0.3273925483226776, -0.07578501105308533, 0.13496370613574982, -0.027356848120689392, -0.07910521328449249, -0.38277217745780945, -0.039477329701185226, 0.19168423116207123, -0.021196207031607628, -0.013057301752269268, -0.48747795820236206, -0.2010088413953781, 0.3620595335960388, -0.09396909177303314, -0.0635303184390068, 0.13494181632995605, -0.306233674287796, 0.0034932177513837814, 0.012620501220226288, -0.14362773299217224, -0.13099566102027893, 0.32590118050575256, -0.5958310961723328, -0.2522013187408447, 0.1412498652935028, -0.021780969575047493, -0.26568666100502014, 0.4139502942562103, 0.09342027455568314, 0.5814159512519836, -0.21570974588394165, -0.018151551485061646, -0.29827359318733215, 0.17799003422260284, -0.14170612394809723, 0.05682436376810074, -0.030972909182310104, 0.47341388463974, -0.012744620442390442, -0.1003623753786087, 0.640220046043396, 0.0816158726811409, 0.29738956689834595, 0.5808260440826416, -0.21284303069114685, 0.188826322555542, -0.20312826335430145, -0.261391282081604, 0.1296498030424118, -0.16797059774398804, 0.43932345509529114, 0.16547732055187225, -0.1756121814250946, 0.1502399444580078, -0.11338387429714203, 0.4254375994205475, -0.4664510190486908, 0.47779566049575806, 0.064980149269104, 0.2579563856124878, -0.1346856653690338, 0.16846436262130737, -0.13285167515277863, -0.11704961210489273, -0.33178964257240295, -0.09994540363550186, -0.2547703981399536, -0.13744661211967468, -0.3246655762195587, -0.14228703081607819, -0.03424553945660591, 0.3217969536781311, -0.15799227356910706, -0.04716271907091141, -0.1276913434267044, 0.19939346611499786, -0.1976650357246399, 0.18303625285625458, -0.0548233725130558, 0.16007810831069946, 0.20749437808990479, 0.1919039636850357, -0.28010547161102295, 0.20808184146881104, 0.22397148609161377, -0.22357876598834991, -0.016886800527572632, -0.4630417823791504, 0.15188366174697876, 0.3087668716907501, 0.14948336780071259, -0.4369867742061615, -0.440608412027359, 0.07448336482048035, 0.29299837350845337, 0.17049679160118103, 0.19402413070201874, 0.05825567990541458, -0.28410211205482483, -0.26117727160453796, -0.50868821144104, 0.018264517188072205, 0.10921238362789154, -0.049622636288404465, -0.08739683777093887 ]
https://github.com/huggingface/datasets/issues/1964
Datasets.py function load_dataset does not match squad dataset
Hi ! To fix 1, an you try to run this code ? ```python from datasets import load_dataset load_dataset("squad", download_mode="force_redownload") ``` Maybe the file your downloaded was corrupted, in this case redownloading this way should fix your issue 1. Regarding your 2nd point, you're right that loading the raw json this way doesn't give you a dataset with the column "context", "question" and "answers". Indeed the squad format is a very nested format so you have to preprocess the data. You can do it this way: ```python def process_squad(examples): """ Process a dataset in the squad format with columns "title" and "paragraphs" to return the dataset with columns "context", "question" and "answers". """ out = {"context": [], "question": [], "answers":[]} for paragraphs in examples["paragraphs"]: for paragraph in paragraphs: for qa in paragraph["qas"]: answers = [{"answer_start": answer["answer_start"], "text": answer["text"].strip()} for answer in qa["answers"]] out["context"].append(paragraph["context"].strip()) out["question"].append(qa["question"].strip()) out["answers"].append(answers) return out datasets = load_dataset(extension, data_files=data_files, field="data") column_names = datasets["train"].column_names if set(column_names) == {"title", "paragraphs"}: datasets = datasets.map(process_squad, batched=True, remove_columns=column_names) ``` Hope that helps :)
### 1 When I try to train lxmert,and follow the code in README that --dataset name: ```shell python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --dataset_name squad --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` the bug is that: ``` Downloading and preparing dataset squad/plain_text (download: 33.51 MiB, generated: 85.75 MiB, post-processed: Unknown size, total: 119.27 MiB) to /home2/zhenggo1/.cache/huggingface/datasets/squad/plain_text/1.0.0/4c81550d83a2ac7c7ce23783bd8ff36642800e6633c1f18417fb58c3ff50cdd7... Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 217, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 633, in _download_and_prepare self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json'] ``` And I try to find the [checksum link](https://github.com/huggingface/datasets/blob/master/datasets/squad/dataset_infos.json) ,is the problem plain_text do not have a checksum? ### 2 When I try to train lxmert,and use local dataset: ``` python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --train_file $SQUAD_DIR/train-v1.1.json --validation_file $SQUAD_DIR/dev-v1.1.json --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` The bug is that ``` ['title', 'paragraphs'] Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 273, in main answer_column_name = "answers" if "answers" in column_names else column_names[2] IndexError: list index out of range ``` I print the answer_column_name and find that local squad dataset need the package datasets to preprocessing so that the code below can work: ``` if training_args.do_train: column_names = datasets["train"].column_names else: column_names = datasets["validation"].column_names print(datasets["train"].column_names) question_column_name = "question" if "question" in column_names else column_names[0] context_column_name = "context" if "context" in column_names else column_names[1] answer_column_name = "answers" if "answers" in column_names else column_names[2] ``` ## Please tell me how to fix the bug,thks a lot!
170
Datasets.py function load_dataset does not match squad dataset ### 1 When I try to train lxmert,and follow the code in README that --dataset name: ```shell python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --dataset_name squad --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` the bug is that: ``` Downloading and preparing dataset squad/plain_text (download: 33.51 MiB, generated: 85.75 MiB, post-processed: Unknown size, total: 119.27 MiB) to /home2/zhenggo1/.cache/huggingface/datasets/squad/plain_text/1.0.0/4c81550d83a2ac7c7ce23783bd8ff36642800e6633c1f18417fb58c3ff50cdd7... Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 217, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 633, in _download_and_prepare self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json'] ``` And I try to find the [checksum link](https://github.com/huggingface/datasets/blob/master/datasets/squad/dataset_infos.json) ,is the problem plain_text do not have a checksum? ### 2 When I try to train lxmert,and use local dataset: ``` python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --train_file $SQUAD_DIR/train-v1.1.json --validation_file $SQUAD_DIR/dev-v1.1.json --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` The bug is that ``` ['title', 'paragraphs'] Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 273, in main answer_column_name = "answers" if "answers" in column_names else column_names[2] IndexError: list index out of range ``` I print the answer_column_name and find that local squad dataset need the package datasets to preprocessing so that the code below can work: ``` if training_args.do_train: column_names = datasets["train"].column_names else: column_names = datasets["validation"].column_names print(datasets["train"].column_names) question_column_name = "question" if "question" in column_names else column_names[0] context_column_name = "context" if "context" in column_names else column_names[1] answer_column_name = "answers" if "answers" in column_names else column_names[2] ``` ## Please tell me how to fix the bug,thks a lot! Hi ! To fix 1, an you try to run this code ? ```python from datasets import load_dataset load_dataset("squad", download_mode="force_redownload") ``` Maybe the file your downloaded was corrupted, in this case redownloading this way should fix your issue 1. Regarding your 2nd point, you're right that loading the raw json this way doesn't give you a dataset with the column "context", "question" and "answers". Indeed the squad format is a very nested format so you have to preprocess the data. You can do it this way: ```python def process_squad(examples): """ Process a dataset in the squad format with columns "title" and "paragraphs" to return the dataset with columns "context", "question" and "answers". """ out = {"context": [], "question": [], "answers":[]} for paragraphs in examples["paragraphs"]: for paragraph in paragraphs: for qa in paragraph["qas"]: answers = [{"answer_start": answer["answer_start"], "text": answer["text"].strip()} for answer in qa["answers"]] out["context"].append(paragraph["context"].strip()) out["question"].append(qa["question"].strip()) out["answers"].append(answers) return out datasets = load_dataset(extension, data_files=data_files, field="data") column_names = datasets["train"].column_names if set(column_names) == {"title", "paragraphs"}: datasets = datasets.map(process_squad, batched=True, remove_columns=column_names) ``` Hope that helps :)
[ -0.35372018814086914, 0.06250812113285065, 0.033365584909915924, 0.39639878273010254, 0.5554531216621399, 0.005721010267734528, 0.5457583665847778, 0.3404688537120819, -0.09831017255783081, -0.12162332236766815, -0.16506613790988922, 0.45083731412887573, 0.10841506719589233, -0.07741932570934296, 0.18592940270900726, 0.22716180980205536, -0.12422411888837814, -0.012336887419223785, -0.14610829949378967, -0.2893434762954712, -0.11097779870033264, 0.12829135358333588, -0.08231399953365326, 0.2603985667228699, -0.1788989156484604, 0.016690917313098907, 0.20063458383083344, 0.27236464619636536, -0.003796003758907318, -0.2199689745903015, 0.3428424596786499, -0.26060521602630615, 0.23610153794288635, 0.575886070728302, -0.00011485807044664398, 0.11325602233409882, -0.011543288826942444, -0.3397289514541626, -0.5327046513557434, -0.20022188127040863, -0.10218365490436554, -0.37577250599861145, 0.14864496886730194, -0.2605549693107605, -0.15953244268894196, 0.09373755007982254, 0.020316610112786293, -0.46453696489334106, 0.35445499420166016, 0.48831385374069214, 0.21398255228996277, 0.25225675106048584, -0.10010077804327011, 0.07755107432603836, 0.11425445973873138, -0.0009758919477462769, -0.06950918585062027, 0.13609929382801056, 0.3347510099411011, -0.05826850235462189, 0.0025543272495269775, 0.17244581878185272, 0.08280844986438751, 0.056823551654815674, 0.2703092396259308, 0.0064040799625217915, 0.1991153359413147, -0.31615498661994934, 0.05644190311431885, 0.31778350472450256, 0.46277663111686707, -0.4630156457424164, -0.33470550179481506, -0.26313456892967224, 0.1331043839454651, -0.256572961807251, 0.13201646506786346, 0.06727762520313263, 0.05115852877497673, -0.042427461594343185, 0.04777655377984047, 0.03766473010182381, 0.11142900586128235, 0.03682883083820343, 0.006891809403896332, 0.1999940276145935, 0.028867501765489578, 0.23839616775512695, -0.20153971016407013, -0.113548144698143, 0.11489237844944, -0.08314888179302216, 0.08183220773935318, 0.3924930691719055, -0.8285180926322937, -0.08141133189201355, -0.20429515838623047, -0.14217236638069153, 0.25628751516342163, 0.08190084993839264, 0.03869207203388214, -0.026971064507961273, 0.14866890013217926, 0.10445735603570938, 0.16877977550029755, 0.3692037761211395, 0.30520281195640564, 0.26740196347236633, -0.06636348366737366, 0.06682036072015762, -0.37171968817710876, 0.2254103422164917, -0.32258155941963196, -0.16180531680583954, 0.09600943326950073, 0.08358790725469589, 0.006230100989341736, -0.19273842871189117, -0.551717221736908, 0.17618031799793243, 0.1544089913368225, 0.002642309758812189, 0.09743712097406387, 0.3247912526130676, 0.075916588306427, 0.38022932410240173, 0.02632290869951248, 0.104855477809906, -0.29462355375289917, -0.37041622400283813, -0.24087834358215332, 0.033056024461984634, -0.08801032602787018, 0.02683616429567337, 0.018338806927204132, -0.035600338131189346, 0.32278308272361755, -0.19576172530651093, 0.21149525046348572, -0.17907965183258057, 0.11500395834445953, -0.2556707561016083, -0.128589928150177, -0.006594974547624588, 0.029809948056936264, 0.03220514953136444, 0.17429710924625397, -0.3730717897415161, -0.04825250804424286, 0.12229230999946594, -0.371268093585968, -0.033652134239673615, -0.18205948173999786, 0.18711616098880768, -0.1391085982322693, 0.020879099145531654, -0.2373688519001007, 0.16988663375377655, 0.3073553740978241, -0.18783996999263763, 0.10639571398496628, -0.3961227536201477, -0.16640019416809082, -0.21222691237926483, 0.31516408920288086, 0.38828742504119873, -0.4074571132659912, -0.21171019971370697, 0.12493947893381119, -0.09521423280239105, -0.038163550198078156, 0.1216650903224945, -0.15160569548606873, 0.1555611789226532, -0.20622369647026062, -0.007025666534900665, 0.7145838737487793, -0.8443278074264526, -0.4243382513523102, 0.10997271537780762, -0.3059238791465759, -0.019498473033308983, -0.07101330906152725, 0.06640767306089401, 0.19300898909568787, 0.014733890071511269, 0.08273039013147354, 0.5066136717796326, -0.03629296272993088, 0.0914032906293869, -0.17245808243751526, -0.271213173866272, 0.2526649236679077, 0.17085136473178864, 0.03181403875350952, -0.038064561784267426, 0.038837604224681854, 0.49898430705070496, 0.3322140574455261, 0.14261667430400848, 0.11120480298995972, -0.02995871752500534, -0.035940032452344894, -0.08216378092765808, 0.11460604518651962, -0.14810875058174133, -0.6798555254936218, 0.1638658344745636, -0.16445155441761017, 0.04398930445313454, 0.24107857048511505, -0.15083032846450806, -0.2135133445262909, -0.0917363166809082, -0.42523083090782166, -0.10238727927207947, 0.07439244538545609, 0.14959827065467834, -0.058520134538412094, -0.12264496088027954, -0.15988463163375854, 0.3514792025089264, -0.21545147895812988, 0.22845783829689026, -0.48490577936172485, -0.09653935581445694, -0.0637451782822609, -0.03621567040681839, 0.053701430559158325, 0.3318408131599426, 0.08719207346439362, -0.07095778733491898, -0.10575348883867264, 0.4979954659938812, 0.01802602782845497, 0.10239648073911667, 0.2883632183074951, -0.20164476335048676, 0.09963342547416687, -0.09904500842094421, 0.002064542844891548, 0.22590938210487366, 0.19466589391231537, -0.08126159012317657, 0.022443611174821854, 0.14189153909683228, 0.15743954479694366, 0.07465553283691406, -0.004861555993556976, -0.15361084043979645, 0.1390523463487625, 0.011864926666021347, 0.011101383715867996, 0.0971626341342926, 0.05203854665160179, 0.29400867223739624, 0.5483121871948242, 0.11113613843917847, -0.18689313530921936, 0.13109229505062103, 0.3315555155277252, -0.0650448352098465, 0.2757263779640198, -0.004397444427013397, -0.171322762966156, -0.07833901047706604, 0.10100638121366501, 0.17894592881202698, 0.5017943382263184, -0.0036269109696149826, -0.18634851276874542, -0.13492119312286377, -0.06367748975753784, -0.04682344198226929, 0.07113370299339294, -0.18242888152599335, 0.2553723454475403, 0.25777825713157654, 0.18398016691207886, 0.05479724332690239, -0.15315857529640198, -0.04974380508065224, 0.02075774408876896, 0.29052549600601196, -0.37411341071128845, 0.04615802317857742, -0.12720449268817902, 0.09795112162828445, -0.377718985080719, 0.13381068408489227, -0.3502558171749115, -0.183357834815979, -0.13573122024536133, -0.11081063747406006, 0.30930471420288086, 0.21016669273376465, -0.34853634238243103, 0.15559478104114532, 0.24026410281658173, -0.5443782210350037, 0.1576041281223297, 0.10099003463983536, -0.38300344347953796, 0.052952636033296585, 0.12054204940795898, -0.06962152570486069, -0.09691116213798523, -0.1528274565935135, 0.017326489090919495, -0.12010165303945541, -0.1680038720369339, 0.18687103688716888, -0.052907995879650116, 0.5768342614173889, -0.0123320072889328, 0.17038755118846893, -0.007594924420118332, -0.06801192462444305, 0.16675712168216705, -0.1843080222606659, -0.11676182597875595, -0.1657406985759735, -0.1121705025434494, 0.036488182842731476, -0.077686607837677, -0.622492790222168, -0.46739938855171204, -0.29881751537323, -0.1805044710636139, 0.0007810592651367188, 0.26494747400283813, 0.09364894777536392, 0.010278048925101757, 0.34073957800865173, -0.03557547554373741, 0.03612583503127098, -0.40358734130859375, -0.28184080123901367, 0.2556056082248688, 0.06284703314304352, -0.2947934567928314, -0.09946516156196594, 0.06282017379999161, 0.207201287150383, -0.09563573449850082, -0.39583975076675415, -0.2739955186843872, 0.23078906536102295, -0.01121705025434494, -0.09100906550884247, 0.04723769426345825, 0.11515719443559647, -0.16135530173778534, 0.10615254938602448, -0.20671281218528748, -0.5061614513397217, 0.14503417909145355, 0.14701510965824127, 0.6205664277076721, -0.16600990295410156, 0.29800549149513245, -0.05263829976320267, 0.6775232553482056, 0.1890769898891449, -0.22801701724529266, 0.21078896522521973, -0.21052324771881104, 0.30328649282455444, 0.0035385191440582275, -0.2769276201725006, 0.30394288897514343, 0.07190559804439545, 0.04591616988182068, 0.3248109519481659, 0.05342194437980652, -0.01667569763958454, -0.06131913885474205, 0.35972923040390015, -0.13923072814941406, -0.15712763369083405, -0.06056401878595352, -0.0752931609749794, -0.27003130316734314, 0.07413201034069061, 0.30652815103530884, -0.17720156908035278, -0.16730031371116638, -0.15177610516548157, 0.44539207220077515, -0.08596529811620712, 0.2577696740627289, -0.6791189908981323, -0.004349894821643829, -0.1259898841381073, 0.28680652379989624, -0.14499688148498535, 0.6176648139953613, -0.05449504032731056, -0.18573838472366333, -0.06501904129981995, 0.07910061627626419, 0.47988390922546387, -0.04599751532077789, -0.009340498596429825, -0.03611704707145691, 0.29465287923812866, -0.6179639101028442, -0.1878315955400467, 0.17760330438613892, 0.16853094100952148, 0.09368501603603363, 0.35285598039627075, -0.18216057121753693, -0.07711058109998703, 0.1613403856754303, 0.19918109476566315, -0.166261225938797, -0.01700819656252861, -0.38352441787719727, -0.20730149745941162, -0.3429888188838959, -0.05118153244256973, -0.2764180600643158, 0.1328062266111374, 0.13914884626865387, 0.11733467876911163, 0.2389434576034546, -0.1128840371966362, 0.3738939166069031, 0.13678830862045288, 0.383594810962677, 0.19739721715450287, 0.13533718883991241, 0.23347413539886475, 0.261739581823349, -0.15024736523628235, 0.48923036456108093, -0.45640483498573303, -0.3000640869140625, 0.03433952480554581, -0.07370410114526749, 0.14769797027111053, 0.37752434611320496, -0.143618643283844, 0.08376485109329224, -0.3207886815071106, -0.08625565469264984, 0.27541595697402954, 0.1629420518875122, 0.25100916624069214, 0.07710124552249908, -0.11339549720287323, -0.4098260998725891, 0.17985600233078003, -0.11203449964523315, -0.04261961579322815, 0.21456533670425415, -0.46363991498947144, -0.2888953983783722, 0.09641380608081818, -0.10397248715162277, 0.8939828276634216, -0.06497420370578766, 0.18897645175457, 0.33774128556251526, 0.16326290369033813, 0.28225046396255493, -0.07744472473859787, 0.16547755897045135, -0.45895543694496155, -0.07823050767183304, 0.0744745060801506, -0.1392124742269516, -0.06478685885667801, 0.3663632273674011, 0.0141671784222126, 0.5146527290344238, -0.2688015103340149, 0.31165704131126404, 0.054014675319194794, 0.5210411548614502, -0.13379940390586853, -0.010874591767787933, -0.34723687171936035, 0.19491878151893616, -0.18090510368347168, 0.280245304107666, -0.12038955092430115, 0.005468408577144146, -0.30294230580329895, -0.13794143497943878, -0.13194112479686737, 0.22742578387260437, -0.5376269817352295, 0.1669767051935196, 0.09342771768569946, -0.3486430048942566, 0.01917755976319313, 0.5643278360366821, -0.10029178857803345, -0.08207689225673676, -0.10845516622066498, 0.35308271646499634, 0.020763173699378967, 0.3046311140060425, 0.07688800245523453, 0.045780573040246964, 0.42430180311203003, -0.016855793073773384, -0.09482505172491074, 0.07203888148069382, -0.0042471918277442455, -0.30940836668014526, -0.25129976868629456, 0.040815483778715134, 0.306219220161438, -0.2756879925727844, -0.19723191857337952, -0.11883842945098877, 0.015946242958307266, -0.05961289629340172, 0.11982595920562744, 0.061122190207242966, -0.09665695577859879, 0.20687231421470642, 0.12961190938949585, -0.4074319005012512, 0.04012978821992874, 0.34143105149269104, 0.05819614976644516, 0.0030537769198417664, 0.6670229434967041, 0.07418915629386902, 0.07047681510448456, -0.19490253925323486, 0.14977401494979858, 0.3011738359928131, -0.2336237132549286, -0.039200570434331894, -0.2000790387392044, -0.24901682138442993, 0.0004847794189117849, -0.12109552323818207, 0.2407473474740982, -0.01767052710056305, 0.040279995650053024, -0.4578697681427002, -0.4342663884162903, 0.031509965658187866, -0.06306113302707672, 0.009265486150979996, 0.07820285856723785, -0.04398677125573158, 0.14506512880325317, 0.04536612331867218, -0.25610435009002686, 0.21077050268650055, -0.1966141164302826, 0.21202002465724945, 0.09935291856527328, -0.04015003889799118, 0.249724879860878, -0.022808322682976723, 0.05033450573682785, -0.027215324342250824, -0.30815979838371277, -0.1973443627357483, -0.12951259315013885, 0.11826718598604202, 0.02208559960126877, -0.015638599172234535, -0.1738799512386322, -0.29436802864074707, -0.1543198525905609, -0.24747654795646667, -0.03461609035730362, 0.08816242963075638, 0.02744963765144348, 0.014234171248972416, -0.05347221717238426, 0.026538703590631485, 0.06578782945871353, -0.07397378236055374, 0.03758933022618294, 0.04400103911757469, 0.24529866874217987, 0.10125734657049179, 0.047980815172195435, -0.009039662778377533, -0.5060157179832458, 0.10130946338176727, 0.1878547966480255, 0.3835133910179138, 0.029907340183854103, -0.16318626701831818, -0.038469187915325165, 0.2729743421077728, 0.058359622955322266, 0.41472235321998596, -0.45662394165992737, -0.0442095622420311, -0.08864663541316986, 0.14343272149562836, -0.2171788066625595, 0.09706578403711319, 0.3625800609588623, -0.18330900371074677, -0.01555749773979187, 0.2735646069049835, 0.12666486203670502, 0.1897181272506714, 0.02174101397395134, 0.10689885169267654, 0.5871457457542419, -0.08740182965993881, 0.16464099287986755, 0.29006442427635193, -0.21607990562915802, 0.2205362617969513, 0.3349784016609192, -0.08375498652458191, -0.008731022477149963, 0.399448037147522, -0.1929350197315216, 0.3431116044521332, -0.07903418689966202, -0.12809859216213226, 0.24404409527778625, -0.24880211055278778, 0.07992823421955109, 0.40243110060691833, -0.15660539269447327, 0.16993319988250732, 0.04696942865848541, 0.5395814180374146, -0.42126867175102234, -0.13744300603866577, -0.038239143788814545, -0.16593120992183685, -0.14843499660491943, -0.059856116771698, 0.06483747065067291, -0.11561209708452225, -0.10017085075378418, -0.23885421454906464, -0.14844971895217896, -0.3574170470237732, -0.050309374928474426, -0.003966785967350006, -0.3478868007659912, -0.071405328810215, -0.06869865953922272, 0.35503870248794556, -0.1964205801486969, -0.10585738718509674, 0.33324238657951355, -0.14164839684963226, 0.03708972409367561, 0.32675787806510925, 0.2570810616016388, 0.19539228081703186, 0.4452638030052185, 0.07810206711292267, -0.11831744760274887, 0.31555867195129395, 0.04472598433494568, 0.01462613046169281, 0.147806778550148, -0.1330290138721466, -0.19756817817687988, 0.39231565594673157, 0.13721919059753418, -0.05480080470442772, -0.27560293674468994, 0.34414952993392944, -0.06653439998626709, -0.2472359836101532, 0.21512028574943542, -0.24406230449676514, -0.03808306157588959, -0.5316838026046753, 0.3191313147544861, -0.3130170702934265, 0.09808243811130524, 0.4218280017375946, 0.15430977940559387, 0.37994176149368286, -0.2579369843006134, 0.0727035403251648, -0.028827495872974396, 0.38972827792167664, 0.1729895919561386, -0.2461693286895752, -0.18266907334327698, 0.1881108433008194, -0.9209600687026978, 0.4458394944667816, 0.058972250670194626, -0.03908400237560272, 0.03343772888183594, 0.34398919343948364, 0.05374997481703758, 0.053144361823797226, 0.288740336894989, -0.09628312289714813, 0.1624646633863449, -0.04155927896499634, -0.37896284461021423, -0.3341310918331146, -0.31060147285461426, 0.4049322009086609, 0.14943209290504456, -0.5924782752990723, 0.289875864982605, 0.03848903998732567, -0.05016953498125076, -0.10498662292957306, -0.21322353184223175, 0.15900079905986786, -0.1347796469926834, 0.41791191697120667, -0.14029090106487274, 0.4938713312149048, -0.027378767728805542, -0.019106077030301094, -0.21526280045509338, -0.11116939783096313, -0.29576972126960754, 0.2690999507904053, -0.14611534774303436, 0.07679352909326553, 0.12510345876216888, 0.07603252679109573, -0.29878953099250793, 0.32346147298812866, 0.14698399603366852, -0.2812111973762512, -0.4066534638404846, -0.021511489525437355, 0.037754498422145844, 0.09225734323263168, 0.060123201459646225, 0.3981383442878723, -0.1498902291059494, 0.23341818153858185, -0.19313758611679077, -0.337335467338562, 0.5052189230918884, -0.3257138431072235, -0.19264139235019684, -0.274181991815567, 0.25200143456459045, 0.13264606893062592, 0.005211483687162399, -0.640046238899231, 0.05377327650785446, 0.3680354952812195, -0.18959808349609375, -0.1688360720872879, 0.14067517220973969, -0.2344210147857666, 0.407518208026886, 0.004643294960260391, 0.037530675530433655, 0.006787242367863655, -0.13052470982074738, 0.16363070905208588, -0.25506025552749634 ]
https://github.com/huggingface/datasets/issues/1964
Datasets.py function load_dataset does not match squad dataset
Thks for quickly answering! ### 1 I try the first way,but seems not work ``` Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 503, in <module> main() File "examples/question-answering/run_qa.py", line 218, in main datasets = load_dataset(data_args.dataset_name, download_mode="force_redownload") File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 633, in _download_and_prepare self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json'] ``` ### 2 I try the second way,and run the examples/question-answering/run_qa.py,it lead to another bug orz.. ``` Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 523, in <module> main() File "examples/question-answering/run_qa.py", line 379, in main load_from_cache_file=not data_args.overwrite_cache, File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1120, in map update_data = does_function_return_dict(test_inputs, test_indices) File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1091, in does_function_return_dict function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs) File "examples/question-answering/run_qa.py", line 339, in prepare_train_features if len(answers["answer_start"]) == 0: TypeError: list indices must be integers or slices, not str ``` ## may be the function prepare_train_features in run_qa.py need to fix,I think is that the prep ```python for i, offsets in enumerate(offset_mapping): # We will label impossible answers with the index of the CLS token. input_ids = tokenized_examples["input_ids"][i] cls_index = input_ids.index(tokenizer.cls_token_id) # Grab the sequence corresponding to that example (to know what is the context and what is the question). sequence_ids = tokenized_examples.sequence_ids(i) # One example can give several spans, this is the index of the example containing this span of text. sample_index = sample_mapping[i] answers = examples[answer_column_name][sample_index] print(examples,answers) # If no answers are given, set the cls_index as answer. if len(answers["answer_start"]) == 0: tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Start/end character index of the answer in the text. start_char = answers["answer_start"][0] end_char = start_char + len(answers["text"][0]) # Start token index of the current span in the text. token_start_index = 0 while sequence_ids[token_start_index] != (1 if pad_on_right else 0): token_start_index += 1 # End token index of the current span in the text. token_end_index = len(input_ids) - 1 while sequence_ids[token_end_index] != (1 if pad_on_right else 0): token_end_index -= 1 # Detect if the answer is out of the span (in which case this feature is labeled with the CLS index). if not (offsets[token_start_index][0] <= start_char and offsets[token_end_index][1] >= end_char): tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Otherwise move the token_start_index and token_end_index to the two ends of the answer. # Note: we could go after the last offset if the answer is the last word (edge case). while token_start_index < len(offsets) and offsets[token_start_index][0] <= start_char: token_start_index += 1 tokenized_examples["start_positions"].append(token_start_index - 1) while offsets[token_end_index][1] >= end_char: token_end_index -= 1 tokenized_examples["end_positions"].append(token_end_index + 1) return tokenized_examples ```
### 1 When I try to train lxmert,and follow the code in README that --dataset name: ```shell python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --dataset_name squad --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` the bug is that: ``` Downloading and preparing dataset squad/plain_text (download: 33.51 MiB, generated: 85.75 MiB, post-processed: Unknown size, total: 119.27 MiB) to /home2/zhenggo1/.cache/huggingface/datasets/squad/plain_text/1.0.0/4c81550d83a2ac7c7ce23783bd8ff36642800e6633c1f18417fb58c3ff50cdd7... Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 217, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 633, in _download_and_prepare self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json'] ``` And I try to find the [checksum link](https://github.com/huggingface/datasets/blob/master/datasets/squad/dataset_infos.json) ,is the problem plain_text do not have a checksum? ### 2 When I try to train lxmert,and use local dataset: ``` python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --train_file $SQUAD_DIR/train-v1.1.json --validation_file $SQUAD_DIR/dev-v1.1.json --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` The bug is that ``` ['title', 'paragraphs'] Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 273, in main answer_column_name = "answers" if "answers" in column_names else column_names[2] IndexError: list index out of range ``` I print the answer_column_name and find that local squad dataset need the package datasets to preprocessing so that the code below can work: ``` if training_args.do_train: column_names = datasets["train"].column_names else: column_names = datasets["validation"].column_names print(datasets["train"].column_names) question_column_name = "question" if "question" in column_names else column_names[0] context_column_name = "context" if "context" in column_names else column_names[1] answer_column_name = "answers" if "answers" in column_names else column_names[2] ``` ## Please tell me how to fix the bug,thks a lot!
434
Datasets.py function load_dataset does not match squad dataset ### 1 When I try to train lxmert,and follow the code in README that --dataset name: ```shell python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --dataset_name squad --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` the bug is that: ``` Downloading and preparing dataset squad/plain_text (download: 33.51 MiB, generated: 85.75 MiB, post-processed: Unknown size, total: 119.27 MiB) to /home2/zhenggo1/.cache/huggingface/datasets/squad/plain_text/1.0.0/4c81550d83a2ac7c7ce23783bd8ff36642800e6633c1f18417fb58c3ff50cdd7... Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 217, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 633, in _download_and_prepare self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json'] ``` And I try to find the [checksum link](https://github.com/huggingface/datasets/blob/master/datasets/squad/dataset_infos.json) ,is the problem plain_text do not have a checksum? ### 2 When I try to train lxmert,and use local dataset: ``` python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --train_file $SQUAD_DIR/train-v1.1.json --validation_file $SQUAD_DIR/dev-v1.1.json --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` The bug is that ``` ['title', 'paragraphs'] Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 273, in main answer_column_name = "answers" if "answers" in column_names else column_names[2] IndexError: list index out of range ``` I print the answer_column_name and find that local squad dataset need the package datasets to preprocessing so that the code below can work: ``` if training_args.do_train: column_names = datasets["train"].column_names else: column_names = datasets["validation"].column_names print(datasets["train"].column_names) question_column_name = "question" if "question" in column_names else column_names[0] context_column_name = "context" if "context" in column_names else column_names[1] answer_column_name = "answers" if "answers" in column_names else column_names[2] ``` ## Please tell me how to fix the bug,thks a lot! Thks for quickly answering! ### 1 I try the first way,but seems not work ``` Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 503, in <module> main() File "examples/question-answering/run_qa.py", line 218, in main datasets = load_dataset(data_args.dataset_name, download_mode="force_redownload") File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 633, in _download_and_prepare self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json'] ``` ### 2 I try the second way,and run the examples/question-answering/run_qa.py,it lead to another bug orz.. ``` Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 523, in <module> main() File "examples/question-answering/run_qa.py", line 379, in main load_from_cache_file=not data_args.overwrite_cache, File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1120, in map update_data = does_function_return_dict(test_inputs, test_indices) File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1091, in does_function_return_dict function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs) File "examples/question-answering/run_qa.py", line 339, in prepare_train_features if len(answers["answer_start"]) == 0: TypeError: list indices must be integers or slices, not str ``` ## may be the function prepare_train_features in run_qa.py need to fix,I think is that the prep ```python for i, offsets in enumerate(offset_mapping): # We will label impossible answers with the index of the CLS token. input_ids = tokenized_examples["input_ids"][i] cls_index = input_ids.index(tokenizer.cls_token_id) # Grab the sequence corresponding to that example (to know what is the context and what is the question). sequence_ids = tokenized_examples.sequence_ids(i) # One example can give several spans, this is the index of the example containing this span of text. sample_index = sample_mapping[i] answers = examples[answer_column_name][sample_index] print(examples,answers) # If no answers are given, set the cls_index as answer. if len(answers["answer_start"]) == 0: tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Start/end character index of the answer in the text. start_char = answers["answer_start"][0] end_char = start_char + len(answers["text"][0]) # Start token index of the current span in the text. token_start_index = 0 while sequence_ids[token_start_index] != (1 if pad_on_right else 0): token_start_index += 1 # End token index of the current span in the text. token_end_index = len(input_ids) - 1 while sequence_ids[token_end_index] != (1 if pad_on_right else 0): token_end_index -= 1 # Detect if the answer is out of the span (in which case this feature is labeled with the CLS index). if not (offsets[token_start_index][0] <= start_char and offsets[token_end_index][1] >= end_char): tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Otherwise move the token_start_index and token_end_index to the two ends of the answer. # Note: we could go after the last offset if the answer is the last word (edge case). while token_start_index < len(offsets) and offsets[token_start_index][0] <= start_char: token_start_index += 1 tokenized_examples["start_positions"].append(token_start_index - 1) while offsets[token_end_index][1] >= end_char: token_end_index -= 1 tokenized_examples["end_positions"].append(token_end_index + 1) return tokenized_examples ```
[ -0.35372018814086914, 0.06250812113285065, 0.033365584909915924, 0.39639878273010254, 0.5554531216621399, 0.005721010267734528, 0.5457583665847778, 0.3404688537120819, -0.09831017255783081, -0.12162332236766815, -0.16506613790988922, 0.45083731412887573, 0.10841506719589233, -0.07741932570934296, 0.18592940270900726, 0.22716180980205536, -0.12422411888837814, -0.012336887419223785, -0.14610829949378967, -0.2893434762954712, -0.11097779870033264, 0.12829135358333588, -0.08231399953365326, 0.2603985667228699, -0.1788989156484604, 0.016690917313098907, 0.20063458383083344, 0.27236464619636536, -0.003796003758907318, -0.2199689745903015, 0.3428424596786499, -0.26060521602630615, 0.23610153794288635, 0.575886070728302, -0.00011485807044664398, 0.11325602233409882, -0.011543288826942444, -0.3397289514541626, -0.5327046513557434, -0.20022188127040863, -0.10218365490436554, -0.37577250599861145, 0.14864496886730194, -0.2605549693107605, -0.15953244268894196, 0.09373755007982254, 0.020316610112786293, -0.46453696489334106, 0.35445499420166016, 0.48831385374069214, 0.21398255228996277, 0.25225675106048584, -0.10010077804327011, 0.07755107432603836, 0.11425445973873138, -0.0009758919477462769, -0.06950918585062027, 0.13609929382801056, 0.3347510099411011, -0.05826850235462189, 0.0025543272495269775, 0.17244581878185272, 0.08280844986438751, 0.056823551654815674, 0.2703092396259308, 0.0064040799625217915, 0.1991153359413147, -0.31615498661994934, 0.05644190311431885, 0.31778350472450256, 0.46277663111686707, -0.4630156457424164, -0.33470550179481506, -0.26313456892967224, 0.1331043839454651, -0.256572961807251, 0.13201646506786346, 0.06727762520313263, 0.05115852877497673, -0.042427461594343185, 0.04777655377984047, 0.03766473010182381, 0.11142900586128235, 0.03682883083820343, 0.006891809403896332, 0.1999940276145935, 0.028867501765489578, 0.23839616775512695, -0.20153971016407013, -0.113548144698143, 0.11489237844944, -0.08314888179302216, 0.08183220773935318, 0.3924930691719055, -0.8285180926322937, -0.08141133189201355, -0.20429515838623047, -0.14217236638069153, 0.25628751516342163, 0.08190084993839264, 0.03869207203388214, -0.026971064507961273, 0.14866890013217926, 0.10445735603570938, 0.16877977550029755, 0.3692037761211395, 0.30520281195640564, 0.26740196347236633, -0.06636348366737366, 0.06682036072015762, -0.37171968817710876, 0.2254103422164917, -0.32258155941963196, -0.16180531680583954, 0.09600943326950073, 0.08358790725469589, 0.006230100989341736, -0.19273842871189117, -0.551717221736908, 0.17618031799793243, 0.1544089913368225, 0.002642309758812189, 0.09743712097406387, 0.3247912526130676, 0.075916588306427, 0.38022932410240173, 0.02632290869951248, 0.104855477809906, -0.29462355375289917, -0.37041622400283813, -0.24087834358215332, 0.033056024461984634, -0.08801032602787018, 0.02683616429567337, 0.018338806927204132, -0.035600338131189346, 0.32278308272361755, -0.19576172530651093, 0.21149525046348572, -0.17907965183258057, 0.11500395834445953, -0.2556707561016083, -0.128589928150177, -0.006594974547624588, 0.029809948056936264, 0.03220514953136444, 0.17429710924625397, -0.3730717897415161, -0.04825250804424286, 0.12229230999946594, -0.371268093585968, -0.033652134239673615, -0.18205948173999786, 0.18711616098880768, -0.1391085982322693, 0.020879099145531654, -0.2373688519001007, 0.16988663375377655, 0.3073553740978241, -0.18783996999263763, 0.10639571398496628, -0.3961227536201477, -0.16640019416809082, -0.21222691237926483, 0.31516408920288086, 0.38828742504119873, -0.4074571132659912, -0.21171019971370697, 0.12493947893381119, -0.09521423280239105, -0.038163550198078156, 0.1216650903224945, -0.15160569548606873, 0.1555611789226532, -0.20622369647026062, -0.007025666534900665, 0.7145838737487793, -0.8443278074264526, -0.4243382513523102, 0.10997271537780762, -0.3059238791465759, -0.019498473033308983, -0.07101330906152725, 0.06640767306089401, 0.19300898909568787, 0.014733890071511269, 0.08273039013147354, 0.5066136717796326, -0.03629296272993088, 0.0914032906293869, -0.17245808243751526, -0.271213173866272, 0.2526649236679077, 0.17085136473178864, 0.03181403875350952, -0.038064561784267426, 0.038837604224681854, 0.49898430705070496, 0.3322140574455261, 0.14261667430400848, 0.11120480298995972, -0.02995871752500534, -0.035940032452344894, -0.08216378092765808, 0.11460604518651962, -0.14810875058174133, -0.6798555254936218, 0.1638658344745636, -0.16445155441761017, 0.04398930445313454, 0.24107857048511505, -0.15083032846450806, -0.2135133445262909, -0.0917363166809082, -0.42523083090782166, -0.10238727927207947, 0.07439244538545609, 0.14959827065467834, -0.058520134538412094, -0.12264496088027954, -0.15988463163375854, 0.3514792025089264, -0.21545147895812988, 0.22845783829689026, -0.48490577936172485, -0.09653935581445694, -0.0637451782822609, -0.03621567040681839, 0.053701430559158325, 0.3318408131599426, 0.08719207346439362, -0.07095778733491898, -0.10575348883867264, 0.4979954659938812, 0.01802602782845497, 0.10239648073911667, 0.2883632183074951, -0.20164476335048676, 0.09963342547416687, -0.09904500842094421, 0.002064542844891548, 0.22590938210487366, 0.19466589391231537, -0.08126159012317657, 0.022443611174821854, 0.14189153909683228, 0.15743954479694366, 0.07465553283691406, -0.004861555993556976, -0.15361084043979645, 0.1390523463487625, 0.011864926666021347, 0.011101383715867996, 0.0971626341342926, 0.05203854665160179, 0.29400867223739624, 0.5483121871948242, 0.11113613843917847, -0.18689313530921936, 0.13109229505062103, 0.3315555155277252, -0.0650448352098465, 0.2757263779640198, -0.004397444427013397, -0.171322762966156, -0.07833901047706604, 0.10100638121366501, 0.17894592881202698, 0.5017943382263184, -0.0036269109696149826, -0.18634851276874542, -0.13492119312286377, -0.06367748975753784, -0.04682344198226929, 0.07113370299339294, -0.18242888152599335, 0.2553723454475403, 0.25777825713157654, 0.18398016691207886, 0.05479724332690239, -0.15315857529640198, -0.04974380508065224, 0.02075774408876896, 0.29052549600601196, -0.37411341071128845, 0.04615802317857742, -0.12720449268817902, 0.09795112162828445, -0.377718985080719, 0.13381068408489227, -0.3502558171749115, -0.183357834815979, -0.13573122024536133, -0.11081063747406006, 0.30930471420288086, 0.21016669273376465, -0.34853634238243103, 0.15559478104114532, 0.24026410281658173, -0.5443782210350037, 0.1576041281223297, 0.10099003463983536, -0.38300344347953796, 0.052952636033296585, 0.12054204940795898, -0.06962152570486069, -0.09691116213798523, -0.1528274565935135, 0.017326489090919495, -0.12010165303945541, -0.1680038720369339, 0.18687103688716888, -0.052907995879650116, 0.5768342614173889, -0.0123320072889328, 0.17038755118846893, -0.007594924420118332, -0.06801192462444305, 0.16675712168216705, -0.1843080222606659, -0.11676182597875595, -0.1657406985759735, -0.1121705025434494, 0.036488182842731476, -0.077686607837677, -0.622492790222168, -0.46739938855171204, -0.29881751537323, -0.1805044710636139, 0.0007810592651367188, 0.26494747400283813, 0.09364894777536392, 0.010278048925101757, 0.34073957800865173, -0.03557547554373741, 0.03612583503127098, -0.40358734130859375, -0.28184080123901367, 0.2556056082248688, 0.06284703314304352, -0.2947934567928314, -0.09946516156196594, 0.06282017379999161, 0.207201287150383, -0.09563573449850082, -0.39583975076675415, -0.2739955186843872, 0.23078906536102295, -0.01121705025434494, -0.09100906550884247, 0.04723769426345825, 0.11515719443559647, -0.16135530173778534, 0.10615254938602448, -0.20671281218528748, -0.5061614513397217, 0.14503417909145355, 0.14701510965824127, 0.6205664277076721, -0.16600990295410156, 0.29800549149513245, -0.05263829976320267, 0.6775232553482056, 0.1890769898891449, -0.22801701724529266, 0.21078896522521973, -0.21052324771881104, 0.30328649282455444, 0.0035385191440582275, -0.2769276201725006, 0.30394288897514343, 0.07190559804439545, 0.04591616988182068, 0.3248109519481659, 0.05342194437980652, -0.01667569763958454, -0.06131913885474205, 0.35972923040390015, -0.13923072814941406, -0.15712763369083405, -0.06056401878595352, -0.0752931609749794, -0.27003130316734314, 0.07413201034069061, 0.30652815103530884, -0.17720156908035278, -0.16730031371116638, -0.15177610516548157, 0.44539207220077515, -0.08596529811620712, 0.2577696740627289, -0.6791189908981323, -0.004349894821643829, -0.1259898841381073, 0.28680652379989624, -0.14499688148498535, 0.6176648139953613, -0.05449504032731056, -0.18573838472366333, -0.06501904129981995, 0.07910061627626419, 0.47988390922546387, -0.04599751532077789, -0.009340498596429825, -0.03611704707145691, 0.29465287923812866, -0.6179639101028442, -0.1878315955400467, 0.17760330438613892, 0.16853094100952148, 0.09368501603603363, 0.35285598039627075, -0.18216057121753693, -0.07711058109998703, 0.1613403856754303, 0.19918109476566315, -0.166261225938797, -0.01700819656252861, -0.38352441787719727, -0.20730149745941162, -0.3429888188838959, -0.05118153244256973, -0.2764180600643158, 0.1328062266111374, 0.13914884626865387, 0.11733467876911163, 0.2389434576034546, -0.1128840371966362, 0.3738939166069031, 0.13678830862045288, 0.383594810962677, 0.19739721715450287, 0.13533718883991241, 0.23347413539886475, 0.261739581823349, -0.15024736523628235, 0.48923036456108093, -0.45640483498573303, -0.3000640869140625, 0.03433952480554581, -0.07370410114526749, 0.14769797027111053, 0.37752434611320496, -0.143618643283844, 0.08376485109329224, -0.3207886815071106, -0.08625565469264984, 0.27541595697402954, 0.1629420518875122, 0.25100916624069214, 0.07710124552249908, -0.11339549720287323, -0.4098260998725891, 0.17985600233078003, -0.11203449964523315, -0.04261961579322815, 0.21456533670425415, -0.46363991498947144, -0.2888953983783722, 0.09641380608081818, -0.10397248715162277, 0.8939828276634216, -0.06497420370578766, 0.18897645175457, 0.33774128556251526, 0.16326290369033813, 0.28225046396255493, -0.07744472473859787, 0.16547755897045135, -0.45895543694496155, -0.07823050767183304, 0.0744745060801506, -0.1392124742269516, -0.06478685885667801, 0.3663632273674011, 0.0141671784222126, 0.5146527290344238, -0.2688015103340149, 0.31165704131126404, 0.054014675319194794, 0.5210411548614502, -0.13379940390586853, -0.010874591767787933, -0.34723687171936035, 0.19491878151893616, -0.18090510368347168, 0.280245304107666, -0.12038955092430115, 0.005468408577144146, -0.30294230580329895, -0.13794143497943878, -0.13194112479686737, 0.22742578387260437, -0.5376269817352295, 0.1669767051935196, 0.09342771768569946, -0.3486430048942566, 0.01917755976319313, 0.5643278360366821, -0.10029178857803345, -0.08207689225673676, -0.10845516622066498, 0.35308271646499634, 0.020763173699378967, 0.3046311140060425, 0.07688800245523453, 0.045780573040246964, 0.42430180311203003, -0.016855793073773384, -0.09482505172491074, 0.07203888148069382, -0.0042471918277442455, -0.30940836668014526, -0.25129976868629456, 0.040815483778715134, 0.306219220161438, -0.2756879925727844, -0.19723191857337952, -0.11883842945098877, 0.015946242958307266, -0.05961289629340172, 0.11982595920562744, 0.061122190207242966, -0.09665695577859879, 0.20687231421470642, 0.12961190938949585, -0.4074319005012512, 0.04012978821992874, 0.34143105149269104, 0.05819614976644516, 0.0030537769198417664, 0.6670229434967041, 0.07418915629386902, 0.07047681510448456, -0.19490253925323486, 0.14977401494979858, 0.3011738359928131, -0.2336237132549286, -0.039200570434331894, -0.2000790387392044, -0.24901682138442993, 0.0004847794189117849, -0.12109552323818207, 0.2407473474740982, -0.01767052710056305, 0.040279995650053024, -0.4578697681427002, -0.4342663884162903, 0.031509965658187866, -0.06306113302707672, 0.009265486150979996, 0.07820285856723785, -0.04398677125573158, 0.14506512880325317, 0.04536612331867218, -0.25610435009002686, 0.21077050268650055, -0.1966141164302826, 0.21202002465724945, 0.09935291856527328, -0.04015003889799118, 0.249724879860878, -0.022808322682976723, 0.05033450573682785, -0.027215324342250824, -0.30815979838371277, -0.1973443627357483, -0.12951259315013885, 0.11826718598604202, 0.02208559960126877, -0.015638599172234535, -0.1738799512386322, -0.29436802864074707, -0.1543198525905609, -0.24747654795646667, -0.03461609035730362, 0.08816242963075638, 0.02744963765144348, 0.014234171248972416, -0.05347221717238426, 0.026538703590631485, 0.06578782945871353, -0.07397378236055374, 0.03758933022618294, 0.04400103911757469, 0.24529866874217987, 0.10125734657049179, 0.047980815172195435, -0.009039662778377533, -0.5060157179832458, 0.10130946338176727, 0.1878547966480255, 0.3835133910179138, 0.029907340183854103, -0.16318626701831818, -0.038469187915325165, 0.2729743421077728, 0.058359622955322266, 0.41472235321998596, -0.45662394165992737, -0.0442095622420311, -0.08864663541316986, 0.14343272149562836, -0.2171788066625595, 0.09706578403711319, 0.3625800609588623, -0.18330900371074677, -0.01555749773979187, 0.2735646069049835, 0.12666486203670502, 0.1897181272506714, 0.02174101397395134, 0.10689885169267654, 0.5871457457542419, -0.08740182965993881, 0.16464099287986755, 0.29006442427635193, -0.21607990562915802, 0.2205362617969513, 0.3349784016609192, -0.08375498652458191, -0.008731022477149963, 0.399448037147522, -0.1929350197315216, 0.3431116044521332, -0.07903418689966202, -0.12809859216213226, 0.24404409527778625, -0.24880211055278778, 0.07992823421955109, 0.40243110060691833, -0.15660539269447327, 0.16993319988250732, 0.04696942865848541, 0.5395814180374146, -0.42126867175102234, -0.13744300603866577, -0.038239143788814545, -0.16593120992183685, -0.14843499660491943, -0.059856116771698, 0.06483747065067291, -0.11561209708452225, -0.10017085075378418, -0.23885421454906464, -0.14844971895217896, -0.3574170470237732, -0.050309374928474426, -0.003966785967350006, -0.3478868007659912, -0.071405328810215, -0.06869865953922272, 0.35503870248794556, -0.1964205801486969, -0.10585738718509674, 0.33324238657951355, -0.14164839684963226, 0.03708972409367561, 0.32675787806510925, 0.2570810616016388, 0.19539228081703186, 0.4452638030052185, 0.07810206711292267, -0.11831744760274887, 0.31555867195129395, 0.04472598433494568, 0.01462613046169281, 0.147806778550148, -0.1330290138721466, -0.19756817817687988, 0.39231565594673157, 0.13721919059753418, -0.05480080470442772, -0.27560293674468994, 0.34414952993392944, -0.06653439998626709, -0.2472359836101532, 0.21512028574943542, -0.24406230449676514, -0.03808306157588959, -0.5316838026046753, 0.3191313147544861, -0.3130170702934265, 0.09808243811130524, 0.4218280017375946, 0.15430977940559387, 0.37994176149368286, -0.2579369843006134, 0.0727035403251648, -0.028827495872974396, 0.38972827792167664, 0.1729895919561386, -0.2461693286895752, -0.18266907334327698, 0.1881108433008194, -0.9209600687026978, 0.4458394944667816, 0.058972250670194626, -0.03908400237560272, 0.03343772888183594, 0.34398919343948364, 0.05374997481703758, 0.053144361823797226, 0.288740336894989, -0.09628312289714813, 0.1624646633863449, -0.04155927896499634, -0.37896284461021423, -0.3341310918331146, -0.31060147285461426, 0.4049322009086609, 0.14943209290504456, -0.5924782752990723, 0.289875864982605, 0.03848903998732567, -0.05016953498125076, -0.10498662292957306, -0.21322353184223175, 0.15900079905986786, -0.1347796469926834, 0.41791191697120667, -0.14029090106487274, 0.4938713312149048, -0.027378767728805542, -0.019106077030301094, -0.21526280045509338, -0.11116939783096313, -0.29576972126960754, 0.2690999507904053, -0.14611534774303436, 0.07679352909326553, 0.12510345876216888, 0.07603252679109573, -0.29878953099250793, 0.32346147298812866, 0.14698399603366852, -0.2812111973762512, -0.4066534638404846, -0.021511489525437355, 0.037754498422145844, 0.09225734323263168, 0.060123201459646225, 0.3981383442878723, -0.1498902291059494, 0.23341818153858185, -0.19313758611679077, -0.337335467338562, 0.5052189230918884, -0.3257138431072235, -0.19264139235019684, -0.274181991815567, 0.25200143456459045, 0.13264606893062592, 0.005211483687162399, -0.640046238899231, 0.05377327650785446, 0.3680354952812195, -0.18959808349609375, -0.1688360720872879, 0.14067517220973969, -0.2344210147857666, 0.407518208026886, 0.004643294960260391, 0.037530675530433655, 0.006787242367863655, -0.13052470982074738, 0.16363070905208588, -0.25506025552749634 ]
https://github.com/huggingface/datasets/issues/1964
Datasets.py function load_dataset does not match squad dataset
## I have fixed it, @lhoestq ### the first section change as you said and add ["id"] ```python def process_squad(examples): """ Process a dataset in the squad format with columns "title" and "paragraphs" to return the dataset with columns "context", "question" and "answers". """ # print(examples) out = {"context": [], "question": [], "answers":[],"id":[]} for paragraphs in examples["paragraphs"]: for paragraph in paragraphs: for qa in paragraph["qas"]: answers = [{"answer_start": answer["answer_start"], "text": answer["text"].strip()} for answer in qa["answers"]] out["context"].append(paragraph["context"].strip()) out["question"].append(qa["question"].strip()) out["answers"].append(answers) out["id"].append(qa["id"]) return out column_names = datasets["train"].column_names if training_args.do_train else datasets["validation"].column_names # print(datasets["train"].column_names) if set(column_names) == {"title", "paragraphs"}: datasets = datasets.map(process_squad, batched=True, remove_columns=column_names) # Preprocessing the datasets. # Preprocessing is slighlty different for training and evaluation. if training_args.do_train: column_names = datasets["train"].column_names else: column_names = datasets["validation"].column_names # print(column_names) question_column_name = "question" if "question" in column_names else column_names[0] context_column_name = "context" if "context" in column_names else column_names[1] answer_column_name = "answers" if "answers" in column_names else column_names[2] ``` ### the second section ```python def prepare_train_features(examples): # Tokenize our examples with truncation and maybe padding, but keep the overflows using a stride. This results # in one example possible giving several features when a context is long, each of those features having a # context that overlaps a bit the context of the previous feature. tokenized_examples = tokenizer( examples[question_column_name if pad_on_right else context_column_name], examples[context_column_name if pad_on_right else question_column_name], truncation="only_second" if pad_on_right else "only_first", max_length=data_args.max_seq_length, stride=data_args.doc_stride, return_overflowing_tokens=True, return_offsets_mapping=True, padding="max_length" if data_args.pad_to_max_length else False, ) # Since one example might give us several features if it has a long context, we need a map from a feature to # its corresponding example. This key gives us just that. sample_mapping = tokenized_examples.pop("overflow_to_sample_mapping") # The offset mappings will give us a map from token to character position in the original context. This will # help us compute the start_positions and end_positions. offset_mapping = tokenized_examples.pop("offset_mapping") # Let's label those examples! tokenized_examples["start_positions"] = [] tokenized_examples["end_positions"] = [] for i, offsets in enumerate(offset_mapping): # We will label impossible answers with the index of the CLS token. input_ids = tokenized_examples["input_ids"][i] cls_index = input_ids.index(tokenizer.cls_token_id) # Grab the sequence corresponding to that example (to know what is the context and what is the question). sequence_ids = tokenized_examples.sequence_ids(i) # One example can give several spans, this is the index of the example containing this span of text. sample_index = sample_mapping[i] answers = examples[answer_column_name][sample_index] # print(examples,answers,offset_mapping,tokenized_examples) # If no answers are given, set the cls_index as answer. if len(answers) == 0:#len(answers["answer_start"]) == 0: tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Start/end character index of the answer in the text. start_char = answers[0]["answer_start"] end_char = start_char + len(answers[0]["text"]) # Start token index of the current span in the text. token_start_index = 0 while sequence_ids[token_start_index] != (1 if pad_on_right else 0): token_start_index += 1 # End token index of the current span in the text. token_end_index = len(input_ids) - 1 while sequence_ids[token_end_index] != (1 if pad_on_right else 0): token_end_index -= 1 # Detect if the answer is out of the span (in which case this feature is labeled with the CLS index). if not (offsets[token_start_index][0] <= start_char and offsets[token_end_index][1] >= end_char): tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Otherwise move the token_start_index and token_end_index to the two ends of the answer. # Note: we could go after the last offset if the answer is the last word (edge case). while token_start_index < len(offsets) and offsets[token_start_index][0] <= start_char: token_start_index += 1 tokenized_examples["start_positions"].append(token_start_index - 1) while offsets[token_end_index][1] >= end_char: token_end_index -= 1 tokenized_examples["end_positions"].append(token_end_index + 1) return tokenized_examples ```
### 1 When I try to train lxmert,and follow the code in README that --dataset name: ```shell python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --dataset_name squad --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` the bug is that: ``` Downloading and preparing dataset squad/plain_text (download: 33.51 MiB, generated: 85.75 MiB, post-processed: Unknown size, total: 119.27 MiB) to /home2/zhenggo1/.cache/huggingface/datasets/squad/plain_text/1.0.0/4c81550d83a2ac7c7ce23783bd8ff36642800e6633c1f18417fb58c3ff50cdd7... Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 217, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 633, in _download_and_prepare self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json'] ``` And I try to find the [checksum link](https://github.com/huggingface/datasets/blob/master/datasets/squad/dataset_infos.json) ,is the problem plain_text do not have a checksum? ### 2 When I try to train lxmert,and use local dataset: ``` python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --train_file $SQUAD_DIR/train-v1.1.json --validation_file $SQUAD_DIR/dev-v1.1.json --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` The bug is that ``` ['title', 'paragraphs'] Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 273, in main answer_column_name = "answers" if "answers" in column_names else column_names[2] IndexError: list index out of range ``` I print the answer_column_name and find that local squad dataset need the package datasets to preprocessing so that the code below can work: ``` if training_args.do_train: column_names = datasets["train"].column_names else: column_names = datasets["validation"].column_names print(datasets["train"].column_names) question_column_name = "question" if "question" in column_names else column_names[0] context_column_name = "context" if "context" in column_names else column_names[1] answer_column_name = "answers" if "answers" in column_names else column_names[2] ``` ## Please tell me how to fix the bug,thks a lot!
569
Datasets.py function load_dataset does not match squad dataset ### 1 When I try to train lxmert,and follow the code in README that --dataset name: ```shell python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --dataset_name squad --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` the bug is that: ``` Downloading and preparing dataset squad/plain_text (download: 33.51 MiB, generated: 85.75 MiB, post-processed: Unknown size, total: 119.27 MiB) to /home2/zhenggo1/.cache/huggingface/datasets/squad/plain_text/1.0.0/4c81550d83a2ac7c7ce23783bd8ff36642800e6633c1f18417fb58c3ff50cdd7... Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 217, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 633, in _download_and_prepare self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json'] ``` And I try to find the [checksum link](https://github.com/huggingface/datasets/blob/master/datasets/squad/dataset_infos.json) ,is the problem plain_text do not have a checksum? ### 2 When I try to train lxmert,and use local dataset: ``` python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --train_file $SQUAD_DIR/train-v1.1.json --validation_file $SQUAD_DIR/dev-v1.1.json --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` The bug is that ``` ['title', 'paragraphs'] Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 273, in main answer_column_name = "answers" if "answers" in column_names else column_names[2] IndexError: list index out of range ``` I print the answer_column_name and find that local squad dataset need the package datasets to preprocessing so that the code below can work: ``` if training_args.do_train: column_names = datasets["train"].column_names else: column_names = datasets["validation"].column_names print(datasets["train"].column_names) question_column_name = "question" if "question" in column_names else column_names[0] context_column_name = "context" if "context" in column_names else column_names[1] answer_column_name = "answers" if "answers" in column_names else column_names[2] ``` ## Please tell me how to fix the bug,thks a lot! ## I have fixed it, @lhoestq ### the first section change as you said and add ["id"] ```python def process_squad(examples): """ Process a dataset in the squad format with columns "title" and "paragraphs" to return the dataset with columns "context", "question" and "answers". """ # print(examples) out = {"context": [], "question": [], "answers":[],"id":[]} for paragraphs in examples["paragraphs"]: for paragraph in paragraphs: for qa in paragraph["qas"]: answers = [{"answer_start": answer["answer_start"], "text": answer["text"].strip()} for answer in qa["answers"]] out["context"].append(paragraph["context"].strip()) out["question"].append(qa["question"].strip()) out["answers"].append(answers) out["id"].append(qa["id"]) return out column_names = datasets["train"].column_names if training_args.do_train else datasets["validation"].column_names # print(datasets["train"].column_names) if set(column_names) == {"title", "paragraphs"}: datasets = datasets.map(process_squad, batched=True, remove_columns=column_names) # Preprocessing the datasets. # Preprocessing is slighlty different for training and evaluation. if training_args.do_train: column_names = datasets["train"].column_names else: column_names = datasets["validation"].column_names # print(column_names) question_column_name = "question" if "question" in column_names else column_names[0] context_column_name = "context" if "context" in column_names else column_names[1] answer_column_name = "answers" if "answers" in column_names else column_names[2] ``` ### the second section ```python def prepare_train_features(examples): # Tokenize our examples with truncation and maybe padding, but keep the overflows using a stride. This results # in one example possible giving several features when a context is long, each of those features having a # context that overlaps a bit the context of the previous feature. tokenized_examples = tokenizer( examples[question_column_name if pad_on_right else context_column_name], examples[context_column_name if pad_on_right else question_column_name], truncation="only_second" if pad_on_right else "only_first", max_length=data_args.max_seq_length, stride=data_args.doc_stride, return_overflowing_tokens=True, return_offsets_mapping=True, padding="max_length" if data_args.pad_to_max_length else False, ) # Since one example might give us several features if it has a long context, we need a map from a feature to # its corresponding example. This key gives us just that. sample_mapping = tokenized_examples.pop("overflow_to_sample_mapping") # The offset mappings will give us a map from token to character position in the original context. This will # help us compute the start_positions and end_positions. offset_mapping = tokenized_examples.pop("offset_mapping") # Let's label those examples! tokenized_examples["start_positions"] = [] tokenized_examples["end_positions"] = [] for i, offsets in enumerate(offset_mapping): # We will label impossible answers with the index of the CLS token. input_ids = tokenized_examples["input_ids"][i] cls_index = input_ids.index(tokenizer.cls_token_id) # Grab the sequence corresponding to that example (to know what is the context and what is the question). sequence_ids = tokenized_examples.sequence_ids(i) # One example can give several spans, this is the index of the example containing this span of text. sample_index = sample_mapping[i] answers = examples[answer_column_name][sample_index] # print(examples,answers,offset_mapping,tokenized_examples) # If no answers are given, set the cls_index as answer. if len(answers) == 0:#len(answers["answer_start"]) == 0: tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Start/end character index of the answer in the text. start_char = answers[0]["answer_start"] end_char = start_char + len(answers[0]["text"]) # Start token index of the current span in the text. token_start_index = 0 while sequence_ids[token_start_index] != (1 if pad_on_right else 0): token_start_index += 1 # End token index of the current span in the text. token_end_index = len(input_ids) - 1 while sequence_ids[token_end_index] != (1 if pad_on_right else 0): token_end_index -= 1 # Detect if the answer is out of the span (in which case this feature is labeled with the CLS index). if not (offsets[token_start_index][0] <= start_char and offsets[token_end_index][1] >= end_char): tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Otherwise move the token_start_index and token_end_index to the two ends of the answer. # Note: we could go after the last offset if the answer is the last word (edge case). while token_start_index < len(offsets) and offsets[token_start_index][0] <= start_char: token_start_index += 1 tokenized_examples["start_positions"].append(token_start_index - 1) while offsets[token_end_index][1] >= end_char: token_end_index -= 1 tokenized_examples["end_positions"].append(token_end_index + 1) return tokenized_examples ```
[ -0.35372018814086914, 0.06250812113285065, 0.033365584909915924, 0.39639878273010254, 0.5554531216621399, 0.005721010267734528, 0.5457583665847778, 0.3404688537120819, -0.09831017255783081, -0.12162332236766815, -0.16506613790988922, 0.45083731412887573, 0.10841506719589233, -0.07741932570934296, 0.18592940270900726, 0.22716180980205536, -0.12422411888837814, -0.012336887419223785, -0.14610829949378967, -0.2893434762954712, -0.11097779870033264, 0.12829135358333588, -0.08231399953365326, 0.2603985667228699, -0.1788989156484604, 0.016690917313098907, 0.20063458383083344, 0.27236464619636536, -0.003796003758907318, -0.2199689745903015, 0.3428424596786499, -0.26060521602630615, 0.23610153794288635, 0.575886070728302, -0.00011485807044664398, 0.11325602233409882, -0.011543288826942444, -0.3397289514541626, -0.5327046513557434, -0.20022188127040863, -0.10218365490436554, -0.37577250599861145, 0.14864496886730194, -0.2605549693107605, -0.15953244268894196, 0.09373755007982254, 0.020316610112786293, -0.46453696489334106, 0.35445499420166016, 0.48831385374069214, 0.21398255228996277, 0.25225675106048584, -0.10010077804327011, 0.07755107432603836, 0.11425445973873138, -0.0009758919477462769, -0.06950918585062027, 0.13609929382801056, 0.3347510099411011, -0.05826850235462189, 0.0025543272495269775, 0.17244581878185272, 0.08280844986438751, 0.056823551654815674, 0.2703092396259308, 0.0064040799625217915, 0.1991153359413147, -0.31615498661994934, 0.05644190311431885, 0.31778350472450256, 0.46277663111686707, -0.4630156457424164, -0.33470550179481506, -0.26313456892967224, 0.1331043839454651, -0.256572961807251, 0.13201646506786346, 0.06727762520313263, 0.05115852877497673, -0.042427461594343185, 0.04777655377984047, 0.03766473010182381, 0.11142900586128235, 0.03682883083820343, 0.006891809403896332, 0.1999940276145935, 0.028867501765489578, 0.23839616775512695, -0.20153971016407013, -0.113548144698143, 0.11489237844944, -0.08314888179302216, 0.08183220773935318, 0.3924930691719055, -0.8285180926322937, -0.08141133189201355, -0.20429515838623047, -0.14217236638069153, 0.25628751516342163, 0.08190084993839264, 0.03869207203388214, -0.026971064507961273, 0.14866890013217926, 0.10445735603570938, 0.16877977550029755, 0.3692037761211395, 0.30520281195640564, 0.26740196347236633, -0.06636348366737366, 0.06682036072015762, -0.37171968817710876, 0.2254103422164917, -0.32258155941963196, -0.16180531680583954, 0.09600943326950073, 0.08358790725469589, 0.006230100989341736, -0.19273842871189117, -0.551717221736908, 0.17618031799793243, 0.1544089913368225, 0.002642309758812189, 0.09743712097406387, 0.3247912526130676, 0.075916588306427, 0.38022932410240173, 0.02632290869951248, 0.104855477809906, -0.29462355375289917, -0.37041622400283813, -0.24087834358215332, 0.033056024461984634, -0.08801032602787018, 0.02683616429567337, 0.018338806927204132, -0.035600338131189346, 0.32278308272361755, -0.19576172530651093, 0.21149525046348572, -0.17907965183258057, 0.11500395834445953, -0.2556707561016083, -0.128589928150177, -0.006594974547624588, 0.029809948056936264, 0.03220514953136444, 0.17429710924625397, -0.3730717897415161, -0.04825250804424286, 0.12229230999946594, -0.371268093585968, -0.033652134239673615, -0.18205948173999786, 0.18711616098880768, -0.1391085982322693, 0.020879099145531654, -0.2373688519001007, 0.16988663375377655, 0.3073553740978241, -0.18783996999263763, 0.10639571398496628, -0.3961227536201477, -0.16640019416809082, -0.21222691237926483, 0.31516408920288086, 0.38828742504119873, -0.4074571132659912, -0.21171019971370697, 0.12493947893381119, -0.09521423280239105, -0.038163550198078156, 0.1216650903224945, -0.15160569548606873, 0.1555611789226532, -0.20622369647026062, -0.007025666534900665, 0.7145838737487793, -0.8443278074264526, -0.4243382513523102, 0.10997271537780762, -0.3059238791465759, -0.019498473033308983, -0.07101330906152725, 0.06640767306089401, 0.19300898909568787, 0.014733890071511269, 0.08273039013147354, 0.5066136717796326, -0.03629296272993088, 0.0914032906293869, -0.17245808243751526, -0.271213173866272, 0.2526649236679077, 0.17085136473178864, 0.03181403875350952, -0.038064561784267426, 0.038837604224681854, 0.49898430705070496, 0.3322140574455261, 0.14261667430400848, 0.11120480298995972, -0.02995871752500534, -0.035940032452344894, -0.08216378092765808, 0.11460604518651962, -0.14810875058174133, -0.6798555254936218, 0.1638658344745636, -0.16445155441761017, 0.04398930445313454, 0.24107857048511505, -0.15083032846450806, -0.2135133445262909, -0.0917363166809082, -0.42523083090782166, -0.10238727927207947, 0.07439244538545609, 0.14959827065467834, -0.058520134538412094, -0.12264496088027954, -0.15988463163375854, 0.3514792025089264, -0.21545147895812988, 0.22845783829689026, -0.48490577936172485, -0.09653935581445694, -0.0637451782822609, -0.03621567040681839, 0.053701430559158325, 0.3318408131599426, 0.08719207346439362, -0.07095778733491898, -0.10575348883867264, 0.4979954659938812, 0.01802602782845497, 0.10239648073911667, 0.2883632183074951, -0.20164476335048676, 0.09963342547416687, -0.09904500842094421, 0.002064542844891548, 0.22590938210487366, 0.19466589391231537, -0.08126159012317657, 0.022443611174821854, 0.14189153909683228, 0.15743954479694366, 0.07465553283691406, -0.004861555993556976, -0.15361084043979645, 0.1390523463487625, 0.011864926666021347, 0.011101383715867996, 0.0971626341342926, 0.05203854665160179, 0.29400867223739624, 0.5483121871948242, 0.11113613843917847, -0.18689313530921936, 0.13109229505062103, 0.3315555155277252, -0.0650448352098465, 0.2757263779640198, -0.004397444427013397, -0.171322762966156, -0.07833901047706604, 0.10100638121366501, 0.17894592881202698, 0.5017943382263184, -0.0036269109696149826, -0.18634851276874542, -0.13492119312286377, -0.06367748975753784, -0.04682344198226929, 0.07113370299339294, -0.18242888152599335, 0.2553723454475403, 0.25777825713157654, 0.18398016691207886, 0.05479724332690239, -0.15315857529640198, -0.04974380508065224, 0.02075774408876896, 0.29052549600601196, -0.37411341071128845, 0.04615802317857742, -0.12720449268817902, 0.09795112162828445, -0.377718985080719, 0.13381068408489227, -0.3502558171749115, -0.183357834815979, -0.13573122024536133, -0.11081063747406006, 0.30930471420288086, 0.21016669273376465, -0.34853634238243103, 0.15559478104114532, 0.24026410281658173, -0.5443782210350037, 0.1576041281223297, 0.10099003463983536, -0.38300344347953796, 0.052952636033296585, 0.12054204940795898, -0.06962152570486069, -0.09691116213798523, -0.1528274565935135, 0.017326489090919495, -0.12010165303945541, -0.1680038720369339, 0.18687103688716888, -0.052907995879650116, 0.5768342614173889, -0.0123320072889328, 0.17038755118846893, -0.007594924420118332, -0.06801192462444305, 0.16675712168216705, -0.1843080222606659, -0.11676182597875595, -0.1657406985759735, -0.1121705025434494, 0.036488182842731476, -0.077686607837677, -0.622492790222168, -0.46739938855171204, -0.29881751537323, -0.1805044710636139, 0.0007810592651367188, 0.26494747400283813, 0.09364894777536392, 0.010278048925101757, 0.34073957800865173, -0.03557547554373741, 0.03612583503127098, -0.40358734130859375, -0.28184080123901367, 0.2556056082248688, 0.06284703314304352, -0.2947934567928314, -0.09946516156196594, 0.06282017379999161, 0.207201287150383, -0.09563573449850082, -0.39583975076675415, -0.2739955186843872, 0.23078906536102295, -0.01121705025434494, -0.09100906550884247, 0.04723769426345825, 0.11515719443559647, -0.16135530173778534, 0.10615254938602448, -0.20671281218528748, -0.5061614513397217, 0.14503417909145355, 0.14701510965824127, 0.6205664277076721, -0.16600990295410156, 0.29800549149513245, -0.05263829976320267, 0.6775232553482056, 0.1890769898891449, -0.22801701724529266, 0.21078896522521973, -0.21052324771881104, 0.30328649282455444, 0.0035385191440582275, -0.2769276201725006, 0.30394288897514343, 0.07190559804439545, 0.04591616988182068, 0.3248109519481659, 0.05342194437980652, -0.01667569763958454, -0.06131913885474205, 0.35972923040390015, -0.13923072814941406, -0.15712763369083405, -0.06056401878595352, -0.0752931609749794, -0.27003130316734314, 0.07413201034069061, 0.30652815103530884, -0.17720156908035278, -0.16730031371116638, -0.15177610516548157, 0.44539207220077515, -0.08596529811620712, 0.2577696740627289, -0.6791189908981323, -0.004349894821643829, -0.1259898841381073, 0.28680652379989624, -0.14499688148498535, 0.6176648139953613, -0.05449504032731056, -0.18573838472366333, -0.06501904129981995, 0.07910061627626419, 0.47988390922546387, -0.04599751532077789, -0.009340498596429825, -0.03611704707145691, 0.29465287923812866, -0.6179639101028442, -0.1878315955400467, 0.17760330438613892, 0.16853094100952148, 0.09368501603603363, 0.35285598039627075, -0.18216057121753693, -0.07711058109998703, 0.1613403856754303, 0.19918109476566315, -0.166261225938797, -0.01700819656252861, -0.38352441787719727, -0.20730149745941162, -0.3429888188838959, -0.05118153244256973, -0.2764180600643158, 0.1328062266111374, 0.13914884626865387, 0.11733467876911163, 0.2389434576034546, -0.1128840371966362, 0.3738939166069031, 0.13678830862045288, 0.383594810962677, 0.19739721715450287, 0.13533718883991241, 0.23347413539886475, 0.261739581823349, -0.15024736523628235, 0.48923036456108093, -0.45640483498573303, -0.3000640869140625, 0.03433952480554581, -0.07370410114526749, 0.14769797027111053, 0.37752434611320496, -0.143618643283844, 0.08376485109329224, -0.3207886815071106, -0.08625565469264984, 0.27541595697402954, 0.1629420518875122, 0.25100916624069214, 0.07710124552249908, -0.11339549720287323, -0.4098260998725891, 0.17985600233078003, -0.11203449964523315, -0.04261961579322815, 0.21456533670425415, -0.46363991498947144, -0.2888953983783722, 0.09641380608081818, -0.10397248715162277, 0.8939828276634216, -0.06497420370578766, 0.18897645175457, 0.33774128556251526, 0.16326290369033813, 0.28225046396255493, -0.07744472473859787, 0.16547755897045135, -0.45895543694496155, -0.07823050767183304, 0.0744745060801506, -0.1392124742269516, -0.06478685885667801, 0.3663632273674011, 0.0141671784222126, 0.5146527290344238, -0.2688015103340149, 0.31165704131126404, 0.054014675319194794, 0.5210411548614502, -0.13379940390586853, -0.010874591767787933, -0.34723687171936035, 0.19491878151893616, -0.18090510368347168, 0.280245304107666, -0.12038955092430115, 0.005468408577144146, -0.30294230580329895, -0.13794143497943878, -0.13194112479686737, 0.22742578387260437, -0.5376269817352295, 0.1669767051935196, 0.09342771768569946, -0.3486430048942566, 0.01917755976319313, 0.5643278360366821, -0.10029178857803345, -0.08207689225673676, -0.10845516622066498, 0.35308271646499634, 0.020763173699378967, 0.3046311140060425, 0.07688800245523453, 0.045780573040246964, 0.42430180311203003, -0.016855793073773384, -0.09482505172491074, 0.07203888148069382, -0.0042471918277442455, -0.30940836668014526, -0.25129976868629456, 0.040815483778715134, 0.306219220161438, -0.2756879925727844, -0.19723191857337952, -0.11883842945098877, 0.015946242958307266, -0.05961289629340172, 0.11982595920562744, 0.061122190207242966, -0.09665695577859879, 0.20687231421470642, 0.12961190938949585, -0.4074319005012512, 0.04012978821992874, 0.34143105149269104, 0.05819614976644516, 0.0030537769198417664, 0.6670229434967041, 0.07418915629386902, 0.07047681510448456, -0.19490253925323486, 0.14977401494979858, 0.3011738359928131, -0.2336237132549286, -0.039200570434331894, -0.2000790387392044, -0.24901682138442993, 0.0004847794189117849, -0.12109552323818207, 0.2407473474740982, -0.01767052710056305, 0.040279995650053024, -0.4578697681427002, -0.4342663884162903, 0.031509965658187866, -0.06306113302707672, 0.009265486150979996, 0.07820285856723785, -0.04398677125573158, 0.14506512880325317, 0.04536612331867218, -0.25610435009002686, 0.21077050268650055, -0.1966141164302826, 0.21202002465724945, 0.09935291856527328, -0.04015003889799118, 0.249724879860878, -0.022808322682976723, 0.05033450573682785, -0.027215324342250824, -0.30815979838371277, -0.1973443627357483, -0.12951259315013885, 0.11826718598604202, 0.02208559960126877, -0.015638599172234535, -0.1738799512386322, -0.29436802864074707, -0.1543198525905609, -0.24747654795646667, -0.03461609035730362, 0.08816242963075638, 0.02744963765144348, 0.014234171248972416, -0.05347221717238426, 0.026538703590631485, 0.06578782945871353, -0.07397378236055374, 0.03758933022618294, 0.04400103911757469, 0.24529866874217987, 0.10125734657049179, 0.047980815172195435, -0.009039662778377533, -0.5060157179832458, 0.10130946338176727, 0.1878547966480255, 0.3835133910179138, 0.029907340183854103, -0.16318626701831818, -0.038469187915325165, 0.2729743421077728, 0.058359622955322266, 0.41472235321998596, -0.45662394165992737, -0.0442095622420311, -0.08864663541316986, 0.14343272149562836, -0.2171788066625595, 0.09706578403711319, 0.3625800609588623, -0.18330900371074677, -0.01555749773979187, 0.2735646069049835, 0.12666486203670502, 0.1897181272506714, 0.02174101397395134, 0.10689885169267654, 0.5871457457542419, -0.08740182965993881, 0.16464099287986755, 0.29006442427635193, -0.21607990562915802, 0.2205362617969513, 0.3349784016609192, -0.08375498652458191, -0.008731022477149963, 0.399448037147522, -0.1929350197315216, 0.3431116044521332, -0.07903418689966202, -0.12809859216213226, 0.24404409527778625, -0.24880211055278778, 0.07992823421955109, 0.40243110060691833, -0.15660539269447327, 0.16993319988250732, 0.04696942865848541, 0.5395814180374146, -0.42126867175102234, -0.13744300603866577, -0.038239143788814545, -0.16593120992183685, -0.14843499660491943, -0.059856116771698, 0.06483747065067291, -0.11561209708452225, -0.10017085075378418, -0.23885421454906464, -0.14844971895217896, -0.3574170470237732, -0.050309374928474426, -0.003966785967350006, -0.3478868007659912, -0.071405328810215, -0.06869865953922272, 0.35503870248794556, -0.1964205801486969, -0.10585738718509674, 0.33324238657951355, -0.14164839684963226, 0.03708972409367561, 0.32675787806510925, 0.2570810616016388, 0.19539228081703186, 0.4452638030052185, 0.07810206711292267, -0.11831744760274887, 0.31555867195129395, 0.04472598433494568, 0.01462613046169281, 0.147806778550148, -0.1330290138721466, -0.19756817817687988, 0.39231565594673157, 0.13721919059753418, -0.05480080470442772, -0.27560293674468994, 0.34414952993392944, -0.06653439998626709, -0.2472359836101532, 0.21512028574943542, -0.24406230449676514, -0.03808306157588959, -0.5316838026046753, 0.3191313147544861, -0.3130170702934265, 0.09808243811130524, 0.4218280017375946, 0.15430977940559387, 0.37994176149368286, -0.2579369843006134, 0.0727035403251648, -0.028827495872974396, 0.38972827792167664, 0.1729895919561386, -0.2461693286895752, -0.18266907334327698, 0.1881108433008194, -0.9209600687026978, 0.4458394944667816, 0.058972250670194626, -0.03908400237560272, 0.03343772888183594, 0.34398919343948364, 0.05374997481703758, 0.053144361823797226, 0.288740336894989, -0.09628312289714813, 0.1624646633863449, -0.04155927896499634, -0.37896284461021423, -0.3341310918331146, -0.31060147285461426, 0.4049322009086609, 0.14943209290504456, -0.5924782752990723, 0.289875864982605, 0.03848903998732567, -0.05016953498125076, -0.10498662292957306, -0.21322353184223175, 0.15900079905986786, -0.1347796469926834, 0.41791191697120667, -0.14029090106487274, 0.4938713312149048, -0.027378767728805542, -0.019106077030301094, -0.21526280045509338, -0.11116939783096313, -0.29576972126960754, 0.2690999507904053, -0.14611534774303436, 0.07679352909326553, 0.12510345876216888, 0.07603252679109573, -0.29878953099250793, 0.32346147298812866, 0.14698399603366852, -0.2812111973762512, -0.4066534638404846, -0.021511489525437355, 0.037754498422145844, 0.09225734323263168, 0.060123201459646225, 0.3981383442878723, -0.1498902291059494, 0.23341818153858185, -0.19313758611679077, -0.337335467338562, 0.5052189230918884, -0.3257138431072235, -0.19264139235019684, -0.274181991815567, 0.25200143456459045, 0.13264606893062592, 0.005211483687162399, -0.640046238899231, 0.05377327650785446, 0.3680354952812195, -0.18959808349609375, -0.1688360720872879, 0.14067517220973969, -0.2344210147857666, 0.407518208026886, 0.004643294960260391, 0.037530675530433655, 0.006787242367863655, -0.13052470982074738, 0.16363070905208588, -0.25506025552749634 ]
https://github.com/huggingface/datasets/issues/1964
Datasets.py function load_dataset does not match squad dataset
I'm glad you managed to fix run_qa.py for your case :) Regarding the checksum error, I'm not able to reproduce on my side. This errors says that the downloaded file doesn't match the expected file. Could you try running this and let me know if you get the same output as me ? ```python from datasets.utils.info_utils import get_size_checksum_dict from datasets import cached_path get_size_checksum_dict(cached_path("https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json")) # {'num_bytes': 30288272, 'checksum': '3527663986b8295af4f7fcdff1ba1ff3f72d07d61a20f487cb238a6ef92fd955'} ```
### 1 When I try to train lxmert,and follow the code in README that --dataset name: ```shell python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --dataset_name squad --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` the bug is that: ``` Downloading and preparing dataset squad/plain_text (download: 33.51 MiB, generated: 85.75 MiB, post-processed: Unknown size, total: 119.27 MiB) to /home2/zhenggo1/.cache/huggingface/datasets/squad/plain_text/1.0.0/4c81550d83a2ac7c7ce23783bd8ff36642800e6633c1f18417fb58c3ff50cdd7... Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 217, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 633, in _download_and_prepare self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json'] ``` And I try to find the [checksum link](https://github.com/huggingface/datasets/blob/master/datasets/squad/dataset_infos.json) ,is the problem plain_text do not have a checksum? ### 2 When I try to train lxmert,and use local dataset: ``` python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --train_file $SQUAD_DIR/train-v1.1.json --validation_file $SQUAD_DIR/dev-v1.1.json --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` The bug is that ``` ['title', 'paragraphs'] Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 273, in main answer_column_name = "answers" if "answers" in column_names else column_names[2] IndexError: list index out of range ``` I print the answer_column_name and find that local squad dataset need the package datasets to preprocessing so that the code below can work: ``` if training_args.do_train: column_names = datasets["train"].column_names else: column_names = datasets["validation"].column_names print(datasets["train"].column_names) question_column_name = "question" if "question" in column_names else column_names[0] context_column_name = "context" if "context" in column_names else column_names[1] answer_column_name = "answers" if "answers" in column_names else column_names[2] ``` ## Please tell me how to fix the bug,thks a lot!
69
Datasets.py function load_dataset does not match squad dataset ### 1 When I try to train lxmert,and follow the code in README that --dataset name: ```shell python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --dataset_name squad --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` the bug is that: ``` Downloading and preparing dataset squad/plain_text (download: 33.51 MiB, generated: 85.75 MiB, post-processed: Unknown size, total: 119.27 MiB) to /home2/zhenggo1/.cache/huggingface/datasets/squad/plain_text/1.0.0/4c81550d83a2ac7c7ce23783bd8ff36642800e6633c1f18417fb58c3ff50cdd7... Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 217, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 633, in _download_and_prepare self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json'] ``` And I try to find the [checksum link](https://github.com/huggingface/datasets/blob/master/datasets/squad/dataset_infos.json) ,is the problem plain_text do not have a checksum? ### 2 When I try to train lxmert,and use local dataset: ``` python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --train_file $SQUAD_DIR/train-v1.1.json --validation_file $SQUAD_DIR/dev-v1.1.json --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` The bug is that ``` ['title', 'paragraphs'] Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 273, in main answer_column_name = "answers" if "answers" in column_names else column_names[2] IndexError: list index out of range ``` I print the answer_column_name and find that local squad dataset need the package datasets to preprocessing so that the code below can work: ``` if training_args.do_train: column_names = datasets["train"].column_names else: column_names = datasets["validation"].column_names print(datasets["train"].column_names) question_column_name = "question" if "question" in column_names else column_names[0] context_column_name = "context" if "context" in column_names else column_names[1] answer_column_name = "answers" if "answers" in column_names else column_names[2] ``` ## Please tell me how to fix the bug,thks a lot! I'm glad you managed to fix run_qa.py for your case :) Regarding the checksum error, I'm not able to reproduce on my side. This errors says that the downloaded file doesn't match the expected file. Could you try running this and let me know if you get the same output as me ? ```python from datasets.utils.info_utils import get_size_checksum_dict from datasets import cached_path get_size_checksum_dict(cached_path("https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json")) # {'num_bytes': 30288272, 'checksum': '3527663986b8295af4f7fcdff1ba1ff3f72d07d61a20f487cb238a6ef92fd955'} ```
[ -0.35372018814086914, 0.06250812113285065, 0.033365584909915924, 0.39639878273010254, 0.5554531216621399, 0.005721010267734528, 0.5457583665847778, 0.3404688537120819, -0.09831017255783081, -0.12162332236766815, -0.16506613790988922, 0.45083731412887573, 0.10841506719589233, -0.07741932570934296, 0.18592940270900726, 0.22716180980205536, -0.12422411888837814, -0.012336887419223785, -0.14610829949378967, -0.2893434762954712, -0.11097779870033264, 0.12829135358333588, -0.08231399953365326, 0.2603985667228699, -0.1788989156484604, 0.016690917313098907, 0.20063458383083344, 0.27236464619636536, -0.003796003758907318, -0.2199689745903015, 0.3428424596786499, -0.26060521602630615, 0.23610153794288635, 0.575886070728302, -0.00011485807044664398, 0.11325602233409882, -0.011543288826942444, -0.3397289514541626, -0.5327046513557434, -0.20022188127040863, -0.10218365490436554, -0.37577250599861145, 0.14864496886730194, -0.2605549693107605, -0.15953244268894196, 0.09373755007982254, 0.020316610112786293, -0.46453696489334106, 0.35445499420166016, 0.48831385374069214, 0.21398255228996277, 0.25225675106048584, -0.10010077804327011, 0.07755107432603836, 0.11425445973873138, -0.0009758919477462769, -0.06950918585062027, 0.13609929382801056, 0.3347510099411011, -0.05826850235462189, 0.0025543272495269775, 0.17244581878185272, 0.08280844986438751, 0.056823551654815674, 0.2703092396259308, 0.0064040799625217915, 0.1991153359413147, -0.31615498661994934, 0.05644190311431885, 0.31778350472450256, 0.46277663111686707, -0.4630156457424164, -0.33470550179481506, -0.26313456892967224, 0.1331043839454651, -0.256572961807251, 0.13201646506786346, 0.06727762520313263, 0.05115852877497673, -0.042427461594343185, 0.04777655377984047, 0.03766473010182381, 0.11142900586128235, 0.03682883083820343, 0.006891809403896332, 0.1999940276145935, 0.028867501765489578, 0.23839616775512695, -0.20153971016407013, -0.113548144698143, 0.11489237844944, -0.08314888179302216, 0.08183220773935318, 0.3924930691719055, -0.8285180926322937, -0.08141133189201355, -0.20429515838623047, -0.14217236638069153, 0.25628751516342163, 0.08190084993839264, 0.03869207203388214, -0.026971064507961273, 0.14866890013217926, 0.10445735603570938, 0.16877977550029755, 0.3692037761211395, 0.30520281195640564, 0.26740196347236633, -0.06636348366737366, 0.06682036072015762, -0.37171968817710876, 0.2254103422164917, -0.32258155941963196, -0.16180531680583954, 0.09600943326950073, 0.08358790725469589, 0.006230100989341736, -0.19273842871189117, -0.551717221736908, 0.17618031799793243, 0.1544089913368225, 0.002642309758812189, 0.09743712097406387, 0.3247912526130676, 0.075916588306427, 0.38022932410240173, 0.02632290869951248, 0.104855477809906, -0.29462355375289917, -0.37041622400283813, -0.24087834358215332, 0.033056024461984634, -0.08801032602787018, 0.02683616429567337, 0.018338806927204132, -0.035600338131189346, 0.32278308272361755, -0.19576172530651093, 0.21149525046348572, -0.17907965183258057, 0.11500395834445953, -0.2556707561016083, -0.128589928150177, -0.006594974547624588, 0.029809948056936264, 0.03220514953136444, 0.17429710924625397, -0.3730717897415161, -0.04825250804424286, 0.12229230999946594, -0.371268093585968, -0.033652134239673615, -0.18205948173999786, 0.18711616098880768, -0.1391085982322693, 0.020879099145531654, -0.2373688519001007, 0.16988663375377655, 0.3073553740978241, -0.18783996999263763, 0.10639571398496628, -0.3961227536201477, -0.16640019416809082, -0.21222691237926483, 0.31516408920288086, 0.38828742504119873, -0.4074571132659912, -0.21171019971370697, 0.12493947893381119, -0.09521423280239105, -0.038163550198078156, 0.1216650903224945, -0.15160569548606873, 0.1555611789226532, -0.20622369647026062, -0.007025666534900665, 0.7145838737487793, -0.8443278074264526, -0.4243382513523102, 0.10997271537780762, -0.3059238791465759, -0.019498473033308983, -0.07101330906152725, 0.06640767306089401, 0.19300898909568787, 0.014733890071511269, 0.08273039013147354, 0.5066136717796326, -0.03629296272993088, 0.0914032906293869, -0.17245808243751526, -0.271213173866272, 0.2526649236679077, 0.17085136473178864, 0.03181403875350952, -0.038064561784267426, 0.038837604224681854, 0.49898430705070496, 0.3322140574455261, 0.14261667430400848, 0.11120480298995972, -0.02995871752500534, -0.035940032452344894, -0.08216378092765808, 0.11460604518651962, -0.14810875058174133, -0.6798555254936218, 0.1638658344745636, -0.16445155441761017, 0.04398930445313454, 0.24107857048511505, -0.15083032846450806, -0.2135133445262909, -0.0917363166809082, -0.42523083090782166, -0.10238727927207947, 0.07439244538545609, 0.14959827065467834, -0.058520134538412094, -0.12264496088027954, -0.15988463163375854, 0.3514792025089264, -0.21545147895812988, 0.22845783829689026, -0.48490577936172485, -0.09653935581445694, -0.0637451782822609, -0.03621567040681839, 0.053701430559158325, 0.3318408131599426, 0.08719207346439362, -0.07095778733491898, -0.10575348883867264, 0.4979954659938812, 0.01802602782845497, 0.10239648073911667, 0.2883632183074951, -0.20164476335048676, 0.09963342547416687, -0.09904500842094421, 0.002064542844891548, 0.22590938210487366, 0.19466589391231537, -0.08126159012317657, 0.022443611174821854, 0.14189153909683228, 0.15743954479694366, 0.07465553283691406, -0.004861555993556976, -0.15361084043979645, 0.1390523463487625, 0.011864926666021347, 0.011101383715867996, 0.0971626341342926, 0.05203854665160179, 0.29400867223739624, 0.5483121871948242, 0.11113613843917847, -0.18689313530921936, 0.13109229505062103, 0.3315555155277252, -0.0650448352098465, 0.2757263779640198, -0.004397444427013397, -0.171322762966156, -0.07833901047706604, 0.10100638121366501, 0.17894592881202698, 0.5017943382263184, -0.0036269109696149826, -0.18634851276874542, -0.13492119312286377, -0.06367748975753784, -0.04682344198226929, 0.07113370299339294, -0.18242888152599335, 0.2553723454475403, 0.25777825713157654, 0.18398016691207886, 0.05479724332690239, -0.15315857529640198, -0.04974380508065224, 0.02075774408876896, 0.29052549600601196, -0.37411341071128845, 0.04615802317857742, -0.12720449268817902, 0.09795112162828445, -0.377718985080719, 0.13381068408489227, -0.3502558171749115, -0.183357834815979, -0.13573122024536133, -0.11081063747406006, 0.30930471420288086, 0.21016669273376465, -0.34853634238243103, 0.15559478104114532, 0.24026410281658173, -0.5443782210350037, 0.1576041281223297, 0.10099003463983536, -0.38300344347953796, 0.052952636033296585, 0.12054204940795898, -0.06962152570486069, -0.09691116213798523, -0.1528274565935135, 0.017326489090919495, -0.12010165303945541, -0.1680038720369339, 0.18687103688716888, -0.052907995879650116, 0.5768342614173889, -0.0123320072889328, 0.17038755118846893, -0.007594924420118332, -0.06801192462444305, 0.16675712168216705, -0.1843080222606659, -0.11676182597875595, -0.1657406985759735, -0.1121705025434494, 0.036488182842731476, -0.077686607837677, -0.622492790222168, -0.46739938855171204, -0.29881751537323, -0.1805044710636139, 0.0007810592651367188, 0.26494747400283813, 0.09364894777536392, 0.010278048925101757, 0.34073957800865173, -0.03557547554373741, 0.03612583503127098, -0.40358734130859375, -0.28184080123901367, 0.2556056082248688, 0.06284703314304352, -0.2947934567928314, -0.09946516156196594, 0.06282017379999161, 0.207201287150383, -0.09563573449850082, -0.39583975076675415, -0.2739955186843872, 0.23078906536102295, -0.01121705025434494, -0.09100906550884247, 0.04723769426345825, 0.11515719443559647, -0.16135530173778534, 0.10615254938602448, -0.20671281218528748, -0.5061614513397217, 0.14503417909145355, 0.14701510965824127, 0.6205664277076721, -0.16600990295410156, 0.29800549149513245, -0.05263829976320267, 0.6775232553482056, 0.1890769898891449, -0.22801701724529266, 0.21078896522521973, -0.21052324771881104, 0.30328649282455444, 0.0035385191440582275, -0.2769276201725006, 0.30394288897514343, 0.07190559804439545, 0.04591616988182068, 0.3248109519481659, 0.05342194437980652, -0.01667569763958454, -0.06131913885474205, 0.35972923040390015, -0.13923072814941406, -0.15712763369083405, -0.06056401878595352, -0.0752931609749794, -0.27003130316734314, 0.07413201034069061, 0.30652815103530884, -0.17720156908035278, -0.16730031371116638, -0.15177610516548157, 0.44539207220077515, -0.08596529811620712, 0.2577696740627289, -0.6791189908981323, -0.004349894821643829, -0.1259898841381073, 0.28680652379989624, -0.14499688148498535, 0.6176648139953613, -0.05449504032731056, -0.18573838472366333, -0.06501904129981995, 0.07910061627626419, 0.47988390922546387, -0.04599751532077789, -0.009340498596429825, -0.03611704707145691, 0.29465287923812866, -0.6179639101028442, -0.1878315955400467, 0.17760330438613892, 0.16853094100952148, 0.09368501603603363, 0.35285598039627075, -0.18216057121753693, -0.07711058109998703, 0.1613403856754303, 0.19918109476566315, -0.166261225938797, -0.01700819656252861, -0.38352441787719727, -0.20730149745941162, -0.3429888188838959, -0.05118153244256973, -0.2764180600643158, 0.1328062266111374, 0.13914884626865387, 0.11733467876911163, 0.2389434576034546, -0.1128840371966362, 0.3738939166069031, 0.13678830862045288, 0.383594810962677, 0.19739721715450287, 0.13533718883991241, 0.23347413539886475, 0.261739581823349, -0.15024736523628235, 0.48923036456108093, -0.45640483498573303, -0.3000640869140625, 0.03433952480554581, -0.07370410114526749, 0.14769797027111053, 0.37752434611320496, -0.143618643283844, 0.08376485109329224, -0.3207886815071106, -0.08625565469264984, 0.27541595697402954, 0.1629420518875122, 0.25100916624069214, 0.07710124552249908, -0.11339549720287323, -0.4098260998725891, 0.17985600233078003, -0.11203449964523315, -0.04261961579322815, 0.21456533670425415, -0.46363991498947144, -0.2888953983783722, 0.09641380608081818, -0.10397248715162277, 0.8939828276634216, -0.06497420370578766, 0.18897645175457, 0.33774128556251526, 0.16326290369033813, 0.28225046396255493, -0.07744472473859787, 0.16547755897045135, -0.45895543694496155, -0.07823050767183304, 0.0744745060801506, -0.1392124742269516, -0.06478685885667801, 0.3663632273674011, 0.0141671784222126, 0.5146527290344238, -0.2688015103340149, 0.31165704131126404, 0.054014675319194794, 0.5210411548614502, -0.13379940390586853, -0.010874591767787933, -0.34723687171936035, 0.19491878151893616, -0.18090510368347168, 0.280245304107666, -0.12038955092430115, 0.005468408577144146, -0.30294230580329895, -0.13794143497943878, -0.13194112479686737, 0.22742578387260437, -0.5376269817352295, 0.1669767051935196, 0.09342771768569946, -0.3486430048942566, 0.01917755976319313, 0.5643278360366821, -0.10029178857803345, -0.08207689225673676, -0.10845516622066498, 0.35308271646499634, 0.020763173699378967, 0.3046311140060425, 0.07688800245523453, 0.045780573040246964, 0.42430180311203003, -0.016855793073773384, -0.09482505172491074, 0.07203888148069382, -0.0042471918277442455, -0.30940836668014526, -0.25129976868629456, 0.040815483778715134, 0.306219220161438, -0.2756879925727844, -0.19723191857337952, -0.11883842945098877, 0.015946242958307266, -0.05961289629340172, 0.11982595920562744, 0.061122190207242966, -0.09665695577859879, 0.20687231421470642, 0.12961190938949585, -0.4074319005012512, 0.04012978821992874, 0.34143105149269104, 0.05819614976644516, 0.0030537769198417664, 0.6670229434967041, 0.07418915629386902, 0.07047681510448456, -0.19490253925323486, 0.14977401494979858, 0.3011738359928131, -0.2336237132549286, -0.039200570434331894, -0.2000790387392044, -0.24901682138442993, 0.0004847794189117849, -0.12109552323818207, 0.2407473474740982, -0.01767052710056305, 0.040279995650053024, -0.4578697681427002, -0.4342663884162903, 0.031509965658187866, -0.06306113302707672, 0.009265486150979996, 0.07820285856723785, -0.04398677125573158, 0.14506512880325317, 0.04536612331867218, -0.25610435009002686, 0.21077050268650055, -0.1966141164302826, 0.21202002465724945, 0.09935291856527328, -0.04015003889799118, 0.249724879860878, -0.022808322682976723, 0.05033450573682785, -0.027215324342250824, -0.30815979838371277, -0.1973443627357483, -0.12951259315013885, 0.11826718598604202, 0.02208559960126877, -0.015638599172234535, -0.1738799512386322, -0.29436802864074707, -0.1543198525905609, -0.24747654795646667, -0.03461609035730362, 0.08816242963075638, 0.02744963765144348, 0.014234171248972416, -0.05347221717238426, 0.026538703590631485, 0.06578782945871353, -0.07397378236055374, 0.03758933022618294, 0.04400103911757469, 0.24529866874217987, 0.10125734657049179, 0.047980815172195435, -0.009039662778377533, -0.5060157179832458, 0.10130946338176727, 0.1878547966480255, 0.3835133910179138, 0.029907340183854103, -0.16318626701831818, -0.038469187915325165, 0.2729743421077728, 0.058359622955322266, 0.41472235321998596, -0.45662394165992737, -0.0442095622420311, -0.08864663541316986, 0.14343272149562836, -0.2171788066625595, 0.09706578403711319, 0.3625800609588623, -0.18330900371074677, -0.01555749773979187, 0.2735646069049835, 0.12666486203670502, 0.1897181272506714, 0.02174101397395134, 0.10689885169267654, 0.5871457457542419, -0.08740182965993881, 0.16464099287986755, 0.29006442427635193, -0.21607990562915802, 0.2205362617969513, 0.3349784016609192, -0.08375498652458191, -0.008731022477149963, 0.399448037147522, -0.1929350197315216, 0.3431116044521332, -0.07903418689966202, -0.12809859216213226, 0.24404409527778625, -0.24880211055278778, 0.07992823421955109, 0.40243110060691833, -0.15660539269447327, 0.16993319988250732, 0.04696942865848541, 0.5395814180374146, -0.42126867175102234, -0.13744300603866577, -0.038239143788814545, -0.16593120992183685, -0.14843499660491943, -0.059856116771698, 0.06483747065067291, -0.11561209708452225, -0.10017085075378418, -0.23885421454906464, -0.14844971895217896, -0.3574170470237732, -0.050309374928474426, -0.003966785967350006, -0.3478868007659912, -0.071405328810215, -0.06869865953922272, 0.35503870248794556, -0.1964205801486969, -0.10585738718509674, 0.33324238657951355, -0.14164839684963226, 0.03708972409367561, 0.32675787806510925, 0.2570810616016388, 0.19539228081703186, 0.4452638030052185, 0.07810206711292267, -0.11831744760274887, 0.31555867195129395, 0.04472598433494568, 0.01462613046169281, 0.147806778550148, -0.1330290138721466, -0.19756817817687988, 0.39231565594673157, 0.13721919059753418, -0.05480080470442772, -0.27560293674468994, 0.34414952993392944, -0.06653439998626709, -0.2472359836101532, 0.21512028574943542, -0.24406230449676514, -0.03808306157588959, -0.5316838026046753, 0.3191313147544861, -0.3130170702934265, 0.09808243811130524, 0.4218280017375946, 0.15430977940559387, 0.37994176149368286, -0.2579369843006134, 0.0727035403251648, -0.028827495872974396, 0.38972827792167664, 0.1729895919561386, -0.2461693286895752, -0.18266907334327698, 0.1881108433008194, -0.9209600687026978, 0.4458394944667816, 0.058972250670194626, -0.03908400237560272, 0.03343772888183594, 0.34398919343948364, 0.05374997481703758, 0.053144361823797226, 0.288740336894989, -0.09628312289714813, 0.1624646633863449, -0.04155927896499634, -0.37896284461021423, -0.3341310918331146, -0.31060147285461426, 0.4049322009086609, 0.14943209290504456, -0.5924782752990723, 0.289875864982605, 0.03848903998732567, -0.05016953498125076, -0.10498662292957306, -0.21322353184223175, 0.15900079905986786, -0.1347796469926834, 0.41791191697120667, -0.14029090106487274, 0.4938713312149048, -0.027378767728805542, -0.019106077030301094, -0.21526280045509338, -0.11116939783096313, -0.29576972126960754, 0.2690999507904053, -0.14611534774303436, 0.07679352909326553, 0.12510345876216888, 0.07603252679109573, -0.29878953099250793, 0.32346147298812866, 0.14698399603366852, -0.2812111973762512, -0.4066534638404846, -0.021511489525437355, 0.037754498422145844, 0.09225734323263168, 0.060123201459646225, 0.3981383442878723, -0.1498902291059494, 0.23341818153858185, -0.19313758611679077, -0.337335467338562, 0.5052189230918884, -0.3257138431072235, -0.19264139235019684, -0.274181991815567, 0.25200143456459045, 0.13264606893062592, 0.005211483687162399, -0.640046238899231, 0.05377327650785446, 0.3680354952812195, -0.18959808349609375, -0.1688360720872879, 0.14067517220973969, -0.2344210147857666, 0.407518208026886, 0.004643294960260391, 0.037530675530433655, 0.006787242367863655, -0.13052470982074738, 0.16363070905208588, -0.25506025552749634 ]
https://github.com/huggingface/datasets/issues/1964
Datasets.py function load_dataset does not match squad dataset
I run the code,and it show below: ``` >>> from datasets.utils.info_utils import get_size_checksum_dict >>> from datasets import cached_path >>> get_size_checksum_dict(cached_path("https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json")) Downloading: 30.3MB [04:13, 120kB/s] {'num_bytes': 30288272, 'checksum': '3527663986b8295af4f7fcdff1ba1ff3f72d07d61a20f487cb238a6ef92fd955'} ```
### 1 When I try to train lxmert,and follow the code in README that --dataset name: ```shell python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --dataset_name squad --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` the bug is that: ``` Downloading and preparing dataset squad/plain_text (download: 33.51 MiB, generated: 85.75 MiB, post-processed: Unknown size, total: 119.27 MiB) to /home2/zhenggo1/.cache/huggingface/datasets/squad/plain_text/1.0.0/4c81550d83a2ac7c7ce23783bd8ff36642800e6633c1f18417fb58c3ff50cdd7... Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 217, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 633, in _download_and_prepare self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json'] ``` And I try to find the [checksum link](https://github.com/huggingface/datasets/blob/master/datasets/squad/dataset_infos.json) ,is the problem plain_text do not have a checksum? ### 2 When I try to train lxmert,and use local dataset: ``` python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --train_file $SQUAD_DIR/train-v1.1.json --validation_file $SQUAD_DIR/dev-v1.1.json --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` The bug is that ``` ['title', 'paragraphs'] Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 273, in main answer_column_name = "answers" if "answers" in column_names else column_names[2] IndexError: list index out of range ``` I print the answer_column_name and find that local squad dataset need the package datasets to preprocessing so that the code below can work: ``` if training_args.do_train: column_names = datasets["train"].column_names else: column_names = datasets["validation"].column_names print(datasets["train"].column_names) question_column_name = "question" if "question" in column_names else column_names[0] context_column_name = "context" if "context" in column_names else column_names[1] answer_column_name = "answers" if "answers" in column_names else column_names[2] ``` ## Please tell me how to fix the bug,thks a lot!
29
Datasets.py function load_dataset does not match squad dataset ### 1 When I try to train lxmert,and follow the code in README that --dataset name: ```shell python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --dataset_name squad --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` the bug is that: ``` Downloading and preparing dataset squad/plain_text (download: 33.51 MiB, generated: 85.75 MiB, post-processed: Unknown size, total: 119.27 MiB) to /home2/zhenggo1/.cache/huggingface/datasets/squad/plain_text/1.0.0/4c81550d83a2ac7c7ce23783bd8ff36642800e6633c1f18417fb58c3ff50cdd7... Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 217, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 633, in _download_and_prepare self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json'] ``` And I try to find the [checksum link](https://github.com/huggingface/datasets/blob/master/datasets/squad/dataset_infos.json) ,is the problem plain_text do not have a checksum? ### 2 When I try to train lxmert,and use local dataset: ``` python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --train_file $SQUAD_DIR/train-v1.1.json --validation_file $SQUAD_DIR/dev-v1.1.json --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` The bug is that ``` ['title', 'paragraphs'] Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 273, in main answer_column_name = "answers" if "answers" in column_names else column_names[2] IndexError: list index out of range ``` I print the answer_column_name and find that local squad dataset need the package datasets to preprocessing so that the code below can work: ``` if training_args.do_train: column_names = datasets["train"].column_names else: column_names = datasets["validation"].column_names print(datasets["train"].column_names) question_column_name = "question" if "question" in column_names else column_names[0] context_column_name = "context" if "context" in column_names else column_names[1] answer_column_name = "answers" if "answers" in column_names else column_names[2] ``` ## Please tell me how to fix the bug,thks a lot! I run the code,and it show below: ``` >>> from datasets.utils.info_utils import get_size_checksum_dict >>> from datasets import cached_path >>> get_size_checksum_dict(cached_path("https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json")) Downloading: 30.3MB [04:13, 120kB/s] {'num_bytes': 30288272, 'checksum': '3527663986b8295af4f7fcdff1ba1ff3f72d07d61a20f487cb238a6ef92fd955'} ```
[ -0.35372018814086914, 0.06250812113285065, 0.033365584909915924, 0.39639878273010254, 0.5554531216621399, 0.005721010267734528, 0.5457583665847778, 0.3404688537120819, -0.09831017255783081, -0.12162332236766815, -0.16506613790988922, 0.45083731412887573, 0.10841506719589233, -0.07741932570934296, 0.18592940270900726, 0.22716180980205536, -0.12422411888837814, -0.012336887419223785, -0.14610829949378967, -0.2893434762954712, -0.11097779870033264, 0.12829135358333588, -0.08231399953365326, 0.2603985667228699, -0.1788989156484604, 0.016690917313098907, 0.20063458383083344, 0.27236464619636536, -0.003796003758907318, -0.2199689745903015, 0.3428424596786499, -0.26060521602630615, 0.23610153794288635, 0.575886070728302, -0.00011485807044664398, 0.11325602233409882, -0.011543288826942444, -0.3397289514541626, -0.5327046513557434, -0.20022188127040863, -0.10218365490436554, -0.37577250599861145, 0.14864496886730194, -0.2605549693107605, -0.15953244268894196, 0.09373755007982254, 0.020316610112786293, -0.46453696489334106, 0.35445499420166016, 0.48831385374069214, 0.21398255228996277, 0.25225675106048584, -0.10010077804327011, 0.07755107432603836, 0.11425445973873138, -0.0009758919477462769, -0.06950918585062027, 0.13609929382801056, 0.3347510099411011, -0.05826850235462189, 0.0025543272495269775, 0.17244581878185272, 0.08280844986438751, 0.056823551654815674, 0.2703092396259308, 0.0064040799625217915, 0.1991153359413147, -0.31615498661994934, 0.05644190311431885, 0.31778350472450256, 0.46277663111686707, -0.4630156457424164, -0.33470550179481506, -0.26313456892967224, 0.1331043839454651, -0.256572961807251, 0.13201646506786346, 0.06727762520313263, 0.05115852877497673, -0.042427461594343185, 0.04777655377984047, 0.03766473010182381, 0.11142900586128235, 0.03682883083820343, 0.006891809403896332, 0.1999940276145935, 0.028867501765489578, 0.23839616775512695, -0.20153971016407013, -0.113548144698143, 0.11489237844944, -0.08314888179302216, 0.08183220773935318, 0.3924930691719055, -0.8285180926322937, -0.08141133189201355, -0.20429515838623047, -0.14217236638069153, 0.25628751516342163, 0.08190084993839264, 0.03869207203388214, -0.026971064507961273, 0.14866890013217926, 0.10445735603570938, 0.16877977550029755, 0.3692037761211395, 0.30520281195640564, 0.26740196347236633, -0.06636348366737366, 0.06682036072015762, -0.37171968817710876, 0.2254103422164917, -0.32258155941963196, -0.16180531680583954, 0.09600943326950073, 0.08358790725469589, 0.006230100989341736, -0.19273842871189117, -0.551717221736908, 0.17618031799793243, 0.1544089913368225, 0.002642309758812189, 0.09743712097406387, 0.3247912526130676, 0.075916588306427, 0.38022932410240173, 0.02632290869951248, 0.104855477809906, -0.29462355375289917, -0.37041622400283813, -0.24087834358215332, 0.033056024461984634, -0.08801032602787018, 0.02683616429567337, 0.018338806927204132, -0.035600338131189346, 0.32278308272361755, -0.19576172530651093, 0.21149525046348572, -0.17907965183258057, 0.11500395834445953, -0.2556707561016083, -0.128589928150177, -0.006594974547624588, 0.029809948056936264, 0.03220514953136444, 0.17429710924625397, -0.3730717897415161, -0.04825250804424286, 0.12229230999946594, -0.371268093585968, -0.033652134239673615, -0.18205948173999786, 0.18711616098880768, -0.1391085982322693, 0.020879099145531654, -0.2373688519001007, 0.16988663375377655, 0.3073553740978241, -0.18783996999263763, 0.10639571398496628, -0.3961227536201477, -0.16640019416809082, -0.21222691237926483, 0.31516408920288086, 0.38828742504119873, -0.4074571132659912, -0.21171019971370697, 0.12493947893381119, -0.09521423280239105, -0.038163550198078156, 0.1216650903224945, -0.15160569548606873, 0.1555611789226532, -0.20622369647026062, -0.007025666534900665, 0.7145838737487793, -0.8443278074264526, -0.4243382513523102, 0.10997271537780762, -0.3059238791465759, -0.019498473033308983, -0.07101330906152725, 0.06640767306089401, 0.19300898909568787, 0.014733890071511269, 0.08273039013147354, 0.5066136717796326, -0.03629296272993088, 0.0914032906293869, -0.17245808243751526, -0.271213173866272, 0.2526649236679077, 0.17085136473178864, 0.03181403875350952, -0.038064561784267426, 0.038837604224681854, 0.49898430705070496, 0.3322140574455261, 0.14261667430400848, 0.11120480298995972, -0.02995871752500534, -0.035940032452344894, -0.08216378092765808, 0.11460604518651962, -0.14810875058174133, -0.6798555254936218, 0.1638658344745636, -0.16445155441761017, 0.04398930445313454, 0.24107857048511505, -0.15083032846450806, -0.2135133445262909, -0.0917363166809082, -0.42523083090782166, -0.10238727927207947, 0.07439244538545609, 0.14959827065467834, -0.058520134538412094, -0.12264496088027954, -0.15988463163375854, 0.3514792025089264, -0.21545147895812988, 0.22845783829689026, -0.48490577936172485, -0.09653935581445694, -0.0637451782822609, -0.03621567040681839, 0.053701430559158325, 0.3318408131599426, 0.08719207346439362, -0.07095778733491898, -0.10575348883867264, 0.4979954659938812, 0.01802602782845497, 0.10239648073911667, 0.2883632183074951, -0.20164476335048676, 0.09963342547416687, -0.09904500842094421, 0.002064542844891548, 0.22590938210487366, 0.19466589391231537, -0.08126159012317657, 0.022443611174821854, 0.14189153909683228, 0.15743954479694366, 0.07465553283691406, -0.004861555993556976, -0.15361084043979645, 0.1390523463487625, 0.011864926666021347, 0.011101383715867996, 0.0971626341342926, 0.05203854665160179, 0.29400867223739624, 0.5483121871948242, 0.11113613843917847, -0.18689313530921936, 0.13109229505062103, 0.3315555155277252, -0.0650448352098465, 0.2757263779640198, -0.004397444427013397, -0.171322762966156, -0.07833901047706604, 0.10100638121366501, 0.17894592881202698, 0.5017943382263184, -0.0036269109696149826, -0.18634851276874542, -0.13492119312286377, -0.06367748975753784, -0.04682344198226929, 0.07113370299339294, -0.18242888152599335, 0.2553723454475403, 0.25777825713157654, 0.18398016691207886, 0.05479724332690239, -0.15315857529640198, -0.04974380508065224, 0.02075774408876896, 0.29052549600601196, -0.37411341071128845, 0.04615802317857742, -0.12720449268817902, 0.09795112162828445, -0.377718985080719, 0.13381068408489227, -0.3502558171749115, -0.183357834815979, -0.13573122024536133, -0.11081063747406006, 0.30930471420288086, 0.21016669273376465, -0.34853634238243103, 0.15559478104114532, 0.24026410281658173, -0.5443782210350037, 0.1576041281223297, 0.10099003463983536, -0.38300344347953796, 0.052952636033296585, 0.12054204940795898, -0.06962152570486069, -0.09691116213798523, -0.1528274565935135, 0.017326489090919495, -0.12010165303945541, -0.1680038720369339, 0.18687103688716888, -0.052907995879650116, 0.5768342614173889, -0.0123320072889328, 0.17038755118846893, -0.007594924420118332, -0.06801192462444305, 0.16675712168216705, -0.1843080222606659, -0.11676182597875595, -0.1657406985759735, -0.1121705025434494, 0.036488182842731476, -0.077686607837677, -0.622492790222168, -0.46739938855171204, -0.29881751537323, -0.1805044710636139, 0.0007810592651367188, 0.26494747400283813, 0.09364894777536392, 0.010278048925101757, 0.34073957800865173, -0.03557547554373741, 0.03612583503127098, -0.40358734130859375, -0.28184080123901367, 0.2556056082248688, 0.06284703314304352, -0.2947934567928314, -0.09946516156196594, 0.06282017379999161, 0.207201287150383, -0.09563573449850082, -0.39583975076675415, -0.2739955186843872, 0.23078906536102295, -0.01121705025434494, -0.09100906550884247, 0.04723769426345825, 0.11515719443559647, -0.16135530173778534, 0.10615254938602448, -0.20671281218528748, -0.5061614513397217, 0.14503417909145355, 0.14701510965824127, 0.6205664277076721, -0.16600990295410156, 0.29800549149513245, -0.05263829976320267, 0.6775232553482056, 0.1890769898891449, -0.22801701724529266, 0.21078896522521973, -0.21052324771881104, 0.30328649282455444, 0.0035385191440582275, -0.2769276201725006, 0.30394288897514343, 0.07190559804439545, 0.04591616988182068, 0.3248109519481659, 0.05342194437980652, -0.01667569763958454, -0.06131913885474205, 0.35972923040390015, -0.13923072814941406, -0.15712763369083405, -0.06056401878595352, -0.0752931609749794, -0.27003130316734314, 0.07413201034069061, 0.30652815103530884, -0.17720156908035278, -0.16730031371116638, -0.15177610516548157, 0.44539207220077515, -0.08596529811620712, 0.2577696740627289, -0.6791189908981323, -0.004349894821643829, -0.1259898841381073, 0.28680652379989624, -0.14499688148498535, 0.6176648139953613, -0.05449504032731056, -0.18573838472366333, -0.06501904129981995, 0.07910061627626419, 0.47988390922546387, -0.04599751532077789, -0.009340498596429825, -0.03611704707145691, 0.29465287923812866, -0.6179639101028442, -0.1878315955400467, 0.17760330438613892, 0.16853094100952148, 0.09368501603603363, 0.35285598039627075, -0.18216057121753693, -0.07711058109998703, 0.1613403856754303, 0.19918109476566315, -0.166261225938797, -0.01700819656252861, -0.38352441787719727, -0.20730149745941162, -0.3429888188838959, -0.05118153244256973, -0.2764180600643158, 0.1328062266111374, 0.13914884626865387, 0.11733467876911163, 0.2389434576034546, -0.1128840371966362, 0.3738939166069031, 0.13678830862045288, 0.383594810962677, 0.19739721715450287, 0.13533718883991241, 0.23347413539886475, 0.261739581823349, -0.15024736523628235, 0.48923036456108093, -0.45640483498573303, -0.3000640869140625, 0.03433952480554581, -0.07370410114526749, 0.14769797027111053, 0.37752434611320496, -0.143618643283844, 0.08376485109329224, -0.3207886815071106, -0.08625565469264984, 0.27541595697402954, 0.1629420518875122, 0.25100916624069214, 0.07710124552249908, -0.11339549720287323, -0.4098260998725891, 0.17985600233078003, -0.11203449964523315, -0.04261961579322815, 0.21456533670425415, -0.46363991498947144, -0.2888953983783722, 0.09641380608081818, -0.10397248715162277, 0.8939828276634216, -0.06497420370578766, 0.18897645175457, 0.33774128556251526, 0.16326290369033813, 0.28225046396255493, -0.07744472473859787, 0.16547755897045135, -0.45895543694496155, -0.07823050767183304, 0.0744745060801506, -0.1392124742269516, -0.06478685885667801, 0.3663632273674011, 0.0141671784222126, 0.5146527290344238, -0.2688015103340149, 0.31165704131126404, 0.054014675319194794, 0.5210411548614502, -0.13379940390586853, -0.010874591767787933, -0.34723687171936035, 0.19491878151893616, -0.18090510368347168, 0.280245304107666, -0.12038955092430115, 0.005468408577144146, -0.30294230580329895, -0.13794143497943878, -0.13194112479686737, 0.22742578387260437, -0.5376269817352295, 0.1669767051935196, 0.09342771768569946, -0.3486430048942566, 0.01917755976319313, 0.5643278360366821, -0.10029178857803345, -0.08207689225673676, -0.10845516622066498, 0.35308271646499634, 0.020763173699378967, 0.3046311140060425, 0.07688800245523453, 0.045780573040246964, 0.42430180311203003, -0.016855793073773384, -0.09482505172491074, 0.07203888148069382, -0.0042471918277442455, -0.30940836668014526, -0.25129976868629456, 0.040815483778715134, 0.306219220161438, -0.2756879925727844, -0.19723191857337952, -0.11883842945098877, 0.015946242958307266, -0.05961289629340172, 0.11982595920562744, 0.061122190207242966, -0.09665695577859879, 0.20687231421470642, 0.12961190938949585, -0.4074319005012512, 0.04012978821992874, 0.34143105149269104, 0.05819614976644516, 0.0030537769198417664, 0.6670229434967041, 0.07418915629386902, 0.07047681510448456, -0.19490253925323486, 0.14977401494979858, 0.3011738359928131, -0.2336237132549286, -0.039200570434331894, -0.2000790387392044, -0.24901682138442993, 0.0004847794189117849, -0.12109552323818207, 0.2407473474740982, -0.01767052710056305, 0.040279995650053024, -0.4578697681427002, -0.4342663884162903, 0.031509965658187866, -0.06306113302707672, 0.009265486150979996, 0.07820285856723785, -0.04398677125573158, 0.14506512880325317, 0.04536612331867218, -0.25610435009002686, 0.21077050268650055, -0.1966141164302826, 0.21202002465724945, 0.09935291856527328, -0.04015003889799118, 0.249724879860878, -0.022808322682976723, 0.05033450573682785, -0.027215324342250824, -0.30815979838371277, -0.1973443627357483, -0.12951259315013885, 0.11826718598604202, 0.02208559960126877, -0.015638599172234535, -0.1738799512386322, -0.29436802864074707, -0.1543198525905609, -0.24747654795646667, -0.03461609035730362, 0.08816242963075638, 0.02744963765144348, 0.014234171248972416, -0.05347221717238426, 0.026538703590631485, 0.06578782945871353, -0.07397378236055374, 0.03758933022618294, 0.04400103911757469, 0.24529866874217987, 0.10125734657049179, 0.047980815172195435, -0.009039662778377533, -0.5060157179832458, 0.10130946338176727, 0.1878547966480255, 0.3835133910179138, 0.029907340183854103, -0.16318626701831818, -0.038469187915325165, 0.2729743421077728, 0.058359622955322266, 0.41472235321998596, -0.45662394165992737, -0.0442095622420311, -0.08864663541316986, 0.14343272149562836, -0.2171788066625595, 0.09706578403711319, 0.3625800609588623, -0.18330900371074677, -0.01555749773979187, 0.2735646069049835, 0.12666486203670502, 0.1897181272506714, 0.02174101397395134, 0.10689885169267654, 0.5871457457542419, -0.08740182965993881, 0.16464099287986755, 0.29006442427635193, -0.21607990562915802, 0.2205362617969513, 0.3349784016609192, -0.08375498652458191, -0.008731022477149963, 0.399448037147522, -0.1929350197315216, 0.3431116044521332, -0.07903418689966202, -0.12809859216213226, 0.24404409527778625, -0.24880211055278778, 0.07992823421955109, 0.40243110060691833, -0.15660539269447327, 0.16993319988250732, 0.04696942865848541, 0.5395814180374146, -0.42126867175102234, -0.13744300603866577, -0.038239143788814545, -0.16593120992183685, -0.14843499660491943, -0.059856116771698, 0.06483747065067291, -0.11561209708452225, -0.10017085075378418, -0.23885421454906464, -0.14844971895217896, -0.3574170470237732, -0.050309374928474426, -0.003966785967350006, -0.3478868007659912, -0.071405328810215, -0.06869865953922272, 0.35503870248794556, -0.1964205801486969, -0.10585738718509674, 0.33324238657951355, -0.14164839684963226, 0.03708972409367561, 0.32675787806510925, 0.2570810616016388, 0.19539228081703186, 0.4452638030052185, 0.07810206711292267, -0.11831744760274887, 0.31555867195129395, 0.04472598433494568, 0.01462613046169281, 0.147806778550148, -0.1330290138721466, -0.19756817817687988, 0.39231565594673157, 0.13721919059753418, -0.05480080470442772, -0.27560293674468994, 0.34414952993392944, -0.06653439998626709, -0.2472359836101532, 0.21512028574943542, -0.24406230449676514, -0.03808306157588959, -0.5316838026046753, 0.3191313147544861, -0.3130170702934265, 0.09808243811130524, 0.4218280017375946, 0.15430977940559387, 0.37994176149368286, -0.2579369843006134, 0.0727035403251648, -0.028827495872974396, 0.38972827792167664, 0.1729895919561386, -0.2461693286895752, -0.18266907334327698, 0.1881108433008194, -0.9209600687026978, 0.4458394944667816, 0.058972250670194626, -0.03908400237560272, 0.03343772888183594, 0.34398919343948364, 0.05374997481703758, 0.053144361823797226, 0.288740336894989, -0.09628312289714813, 0.1624646633863449, -0.04155927896499634, -0.37896284461021423, -0.3341310918331146, -0.31060147285461426, 0.4049322009086609, 0.14943209290504456, -0.5924782752990723, 0.289875864982605, 0.03848903998732567, -0.05016953498125076, -0.10498662292957306, -0.21322353184223175, 0.15900079905986786, -0.1347796469926834, 0.41791191697120667, -0.14029090106487274, 0.4938713312149048, -0.027378767728805542, -0.019106077030301094, -0.21526280045509338, -0.11116939783096313, -0.29576972126960754, 0.2690999507904053, -0.14611534774303436, 0.07679352909326553, 0.12510345876216888, 0.07603252679109573, -0.29878953099250793, 0.32346147298812866, 0.14698399603366852, -0.2812111973762512, -0.4066534638404846, -0.021511489525437355, 0.037754498422145844, 0.09225734323263168, 0.060123201459646225, 0.3981383442878723, -0.1498902291059494, 0.23341818153858185, -0.19313758611679077, -0.337335467338562, 0.5052189230918884, -0.3257138431072235, -0.19264139235019684, -0.274181991815567, 0.25200143456459045, 0.13264606893062592, 0.005211483687162399, -0.640046238899231, 0.05377327650785446, 0.3680354952812195, -0.18959808349609375, -0.1688360720872879, 0.14067517220973969, -0.2344210147857666, 0.407518208026886, 0.004643294960260391, 0.037530675530433655, 0.006787242367863655, -0.13052470982074738, 0.16363070905208588, -0.25506025552749634 ]
https://github.com/huggingface/datasets/issues/1964
Datasets.py function load_dataset does not match squad dataset
Alright ! So in this case redownloading the file with `download_mode="force_redownload"` should fix it. Can you try using `download_mode="force_redownload"` again ? Not sure why it didn't work for you the first time though :/
### 1 When I try to train lxmert,and follow the code in README that --dataset name: ```shell python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --dataset_name squad --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` the bug is that: ``` Downloading and preparing dataset squad/plain_text (download: 33.51 MiB, generated: 85.75 MiB, post-processed: Unknown size, total: 119.27 MiB) to /home2/zhenggo1/.cache/huggingface/datasets/squad/plain_text/1.0.0/4c81550d83a2ac7c7ce23783bd8ff36642800e6633c1f18417fb58c3ff50cdd7... Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 217, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 633, in _download_and_prepare self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json'] ``` And I try to find the [checksum link](https://github.com/huggingface/datasets/blob/master/datasets/squad/dataset_infos.json) ,is the problem plain_text do not have a checksum? ### 2 When I try to train lxmert,and use local dataset: ``` python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --train_file $SQUAD_DIR/train-v1.1.json --validation_file $SQUAD_DIR/dev-v1.1.json --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` The bug is that ``` ['title', 'paragraphs'] Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 273, in main answer_column_name = "answers" if "answers" in column_names else column_names[2] IndexError: list index out of range ``` I print the answer_column_name and find that local squad dataset need the package datasets to preprocessing so that the code below can work: ``` if training_args.do_train: column_names = datasets["train"].column_names else: column_names = datasets["validation"].column_names print(datasets["train"].column_names) question_column_name = "question" if "question" in column_names else column_names[0] context_column_name = "context" if "context" in column_names else column_names[1] answer_column_name = "answers" if "answers" in column_names else column_names[2] ``` ## Please tell me how to fix the bug,thks a lot!
34
Datasets.py function load_dataset does not match squad dataset ### 1 When I try to train lxmert,and follow the code in README that --dataset name: ```shell python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --dataset_name squad --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` the bug is that: ``` Downloading and preparing dataset squad/plain_text (download: 33.51 MiB, generated: 85.75 MiB, post-processed: Unknown size, total: 119.27 MiB) to /home2/zhenggo1/.cache/huggingface/datasets/squad/plain_text/1.0.0/4c81550d83a2ac7c7ce23783bd8ff36642800e6633c1f18417fb58c3ff50cdd7... Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 217, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 633, in _download_and_prepare self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json'] ``` And I try to find the [checksum link](https://github.com/huggingface/datasets/blob/master/datasets/squad/dataset_infos.json) ,is the problem plain_text do not have a checksum? ### 2 When I try to train lxmert,and use local dataset: ``` python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --train_file $SQUAD_DIR/train-v1.1.json --validation_file $SQUAD_DIR/dev-v1.1.json --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` The bug is that ``` ['title', 'paragraphs'] Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 273, in main answer_column_name = "answers" if "answers" in column_names else column_names[2] IndexError: list index out of range ``` I print the answer_column_name and find that local squad dataset need the package datasets to preprocessing so that the code below can work: ``` if training_args.do_train: column_names = datasets["train"].column_names else: column_names = datasets["validation"].column_names print(datasets["train"].column_names) question_column_name = "question" if "question" in column_names else column_names[0] context_column_name = "context" if "context" in column_names else column_names[1] answer_column_name = "answers" if "answers" in column_names else column_names[2] ``` ## Please tell me how to fix the bug,thks a lot! Alright ! So in this case redownloading the file with `download_mode="force_redownload"` should fix it. Can you try using `download_mode="force_redownload"` again ? Not sure why it didn't work for you the first time though :/
[ -0.35372018814086914, 0.06250812113285065, 0.033365584909915924, 0.39639878273010254, 0.5554531216621399, 0.005721010267734528, 0.5457583665847778, 0.3404688537120819, -0.09831017255783081, -0.12162332236766815, -0.16506613790988922, 0.45083731412887573, 0.10841506719589233, -0.07741932570934296, 0.18592940270900726, 0.22716180980205536, -0.12422411888837814, -0.012336887419223785, -0.14610829949378967, -0.2893434762954712, -0.11097779870033264, 0.12829135358333588, -0.08231399953365326, 0.2603985667228699, -0.1788989156484604, 0.016690917313098907, 0.20063458383083344, 0.27236464619636536, -0.003796003758907318, -0.2199689745903015, 0.3428424596786499, -0.26060521602630615, 0.23610153794288635, 0.575886070728302, -0.00011485807044664398, 0.11325602233409882, -0.011543288826942444, -0.3397289514541626, -0.5327046513557434, -0.20022188127040863, -0.10218365490436554, -0.37577250599861145, 0.14864496886730194, -0.2605549693107605, -0.15953244268894196, 0.09373755007982254, 0.020316610112786293, -0.46453696489334106, 0.35445499420166016, 0.48831385374069214, 0.21398255228996277, 0.25225675106048584, -0.10010077804327011, 0.07755107432603836, 0.11425445973873138, -0.0009758919477462769, -0.06950918585062027, 0.13609929382801056, 0.3347510099411011, -0.05826850235462189, 0.0025543272495269775, 0.17244581878185272, 0.08280844986438751, 0.056823551654815674, 0.2703092396259308, 0.0064040799625217915, 0.1991153359413147, -0.31615498661994934, 0.05644190311431885, 0.31778350472450256, 0.46277663111686707, -0.4630156457424164, -0.33470550179481506, -0.26313456892967224, 0.1331043839454651, -0.256572961807251, 0.13201646506786346, 0.06727762520313263, 0.05115852877497673, -0.042427461594343185, 0.04777655377984047, 0.03766473010182381, 0.11142900586128235, 0.03682883083820343, 0.006891809403896332, 0.1999940276145935, 0.028867501765489578, 0.23839616775512695, -0.20153971016407013, -0.113548144698143, 0.11489237844944, -0.08314888179302216, 0.08183220773935318, 0.3924930691719055, -0.8285180926322937, -0.08141133189201355, -0.20429515838623047, -0.14217236638069153, 0.25628751516342163, 0.08190084993839264, 0.03869207203388214, -0.026971064507961273, 0.14866890013217926, 0.10445735603570938, 0.16877977550029755, 0.3692037761211395, 0.30520281195640564, 0.26740196347236633, -0.06636348366737366, 0.06682036072015762, -0.37171968817710876, 0.2254103422164917, -0.32258155941963196, -0.16180531680583954, 0.09600943326950073, 0.08358790725469589, 0.006230100989341736, -0.19273842871189117, -0.551717221736908, 0.17618031799793243, 0.1544089913368225, 0.002642309758812189, 0.09743712097406387, 0.3247912526130676, 0.075916588306427, 0.38022932410240173, 0.02632290869951248, 0.104855477809906, -0.29462355375289917, -0.37041622400283813, -0.24087834358215332, 0.033056024461984634, -0.08801032602787018, 0.02683616429567337, 0.018338806927204132, -0.035600338131189346, 0.32278308272361755, -0.19576172530651093, 0.21149525046348572, -0.17907965183258057, 0.11500395834445953, -0.2556707561016083, -0.128589928150177, -0.006594974547624588, 0.029809948056936264, 0.03220514953136444, 0.17429710924625397, -0.3730717897415161, -0.04825250804424286, 0.12229230999946594, -0.371268093585968, -0.033652134239673615, -0.18205948173999786, 0.18711616098880768, -0.1391085982322693, 0.020879099145531654, -0.2373688519001007, 0.16988663375377655, 0.3073553740978241, -0.18783996999263763, 0.10639571398496628, -0.3961227536201477, -0.16640019416809082, -0.21222691237926483, 0.31516408920288086, 0.38828742504119873, -0.4074571132659912, -0.21171019971370697, 0.12493947893381119, -0.09521423280239105, -0.038163550198078156, 0.1216650903224945, -0.15160569548606873, 0.1555611789226532, -0.20622369647026062, -0.007025666534900665, 0.7145838737487793, -0.8443278074264526, -0.4243382513523102, 0.10997271537780762, -0.3059238791465759, -0.019498473033308983, -0.07101330906152725, 0.06640767306089401, 0.19300898909568787, 0.014733890071511269, 0.08273039013147354, 0.5066136717796326, -0.03629296272993088, 0.0914032906293869, -0.17245808243751526, -0.271213173866272, 0.2526649236679077, 0.17085136473178864, 0.03181403875350952, -0.038064561784267426, 0.038837604224681854, 0.49898430705070496, 0.3322140574455261, 0.14261667430400848, 0.11120480298995972, -0.02995871752500534, -0.035940032452344894, -0.08216378092765808, 0.11460604518651962, -0.14810875058174133, -0.6798555254936218, 0.1638658344745636, -0.16445155441761017, 0.04398930445313454, 0.24107857048511505, -0.15083032846450806, -0.2135133445262909, -0.0917363166809082, -0.42523083090782166, -0.10238727927207947, 0.07439244538545609, 0.14959827065467834, -0.058520134538412094, -0.12264496088027954, -0.15988463163375854, 0.3514792025089264, -0.21545147895812988, 0.22845783829689026, -0.48490577936172485, -0.09653935581445694, -0.0637451782822609, -0.03621567040681839, 0.053701430559158325, 0.3318408131599426, 0.08719207346439362, -0.07095778733491898, -0.10575348883867264, 0.4979954659938812, 0.01802602782845497, 0.10239648073911667, 0.2883632183074951, -0.20164476335048676, 0.09963342547416687, -0.09904500842094421, 0.002064542844891548, 0.22590938210487366, 0.19466589391231537, -0.08126159012317657, 0.022443611174821854, 0.14189153909683228, 0.15743954479694366, 0.07465553283691406, -0.004861555993556976, -0.15361084043979645, 0.1390523463487625, 0.011864926666021347, 0.011101383715867996, 0.0971626341342926, 0.05203854665160179, 0.29400867223739624, 0.5483121871948242, 0.11113613843917847, -0.18689313530921936, 0.13109229505062103, 0.3315555155277252, -0.0650448352098465, 0.2757263779640198, -0.004397444427013397, -0.171322762966156, -0.07833901047706604, 0.10100638121366501, 0.17894592881202698, 0.5017943382263184, -0.0036269109696149826, -0.18634851276874542, -0.13492119312286377, -0.06367748975753784, -0.04682344198226929, 0.07113370299339294, -0.18242888152599335, 0.2553723454475403, 0.25777825713157654, 0.18398016691207886, 0.05479724332690239, -0.15315857529640198, -0.04974380508065224, 0.02075774408876896, 0.29052549600601196, -0.37411341071128845, 0.04615802317857742, -0.12720449268817902, 0.09795112162828445, -0.377718985080719, 0.13381068408489227, -0.3502558171749115, -0.183357834815979, -0.13573122024536133, -0.11081063747406006, 0.30930471420288086, 0.21016669273376465, -0.34853634238243103, 0.15559478104114532, 0.24026410281658173, -0.5443782210350037, 0.1576041281223297, 0.10099003463983536, -0.38300344347953796, 0.052952636033296585, 0.12054204940795898, -0.06962152570486069, -0.09691116213798523, -0.1528274565935135, 0.017326489090919495, -0.12010165303945541, -0.1680038720369339, 0.18687103688716888, -0.052907995879650116, 0.5768342614173889, -0.0123320072889328, 0.17038755118846893, -0.007594924420118332, -0.06801192462444305, 0.16675712168216705, -0.1843080222606659, -0.11676182597875595, -0.1657406985759735, -0.1121705025434494, 0.036488182842731476, -0.077686607837677, -0.622492790222168, -0.46739938855171204, -0.29881751537323, -0.1805044710636139, 0.0007810592651367188, 0.26494747400283813, 0.09364894777536392, 0.010278048925101757, 0.34073957800865173, -0.03557547554373741, 0.03612583503127098, -0.40358734130859375, -0.28184080123901367, 0.2556056082248688, 0.06284703314304352, -0.2947934567928314, -0.09946516156196594, 0.06282017379999161, 0.207201287150383, -0.09563573449850082, -0.39583975076675415, -0.2739955186843872, 0.23078906536102295, -0.01121705025434494, -0.09100906550884247, 0.04723769426345825, 0.11515719443559647, -0.16135530173778534, 0.10615254938602448, -0.20671281218528748, -0.5061614513397217, 0.14503417909145355, 0.14701510965824127, 0.6205664277076721, -0.16600990295410156, 0.29800549149513245, -0.05263829976320267, 0.6775232553482056, 0.1890769898891449, -0.22801701724529266, 0.21078896522521973, -0.21052324771881104, 0.30328649282455444, 0.0035385191440582275, -0.2769276201725006, 0.30394288897514343, 0.07190559804439545, 0.04591616988182068, 0.3248109519481659, 0.05342194437980652, -0.01667569763958454, -0.06131913885474205, 0.35972923040390015, -0.13923072814941406, -0.15712763369083405, -0.06056401878595352, -0.0752931609749794, -0.27003130316734314, 0.07413201034069061, 0.30652815103530884, -0.17720156908035278, -0.16730031371116638, -0.15177610516548157, 0.44539207220077515, -0.08596529811620712, 0.2577696740627289, -0.6791189908981323, -0.004349894821643829, -0.1259898841381073, 0.28680652379989624, -0.14499688148498535, 0.6176648139953613, -0.05449504032731056, -0.18573838472366333, -0.06501904129981995, 0.07910061627626419, 0.47988390922546387, -0.04599751532077789, -0.009340498596429825, -0.03611704707145691, 0.29465287923812866, -0.6179639101028442, -0.1878315955400467, 0.17760330438613892, 0.16853094100952148, 0.09368501603603363, 0.35285598039627075, -0.18216057121753693, -0.07711058109998703, 0.1613403856754303, 0.19918109476566315, -0.166261225938797, -0.01700819656252861, -0.38352441787719727, -0.20730149745941162, -0.3429888188838959, -0.05118153244256973, -0.2764180600643158, 0.1328062266111374, 0.13914884626865387, 0.11733467876911163, 0.2389434576034546, -0.1128840371966362, 0.3738939166069031, 0.13678830862045288, 0.383594810962677, 0.19739721715450287, 0.13533718883991241, 0.23347413539886475, 0.261739581823349, -0.15024736523628235, 0.48923036456108093, -0.45640483498573303, -0.3000640869140625, 0.03433952480554581, -0.07370410114526749, 0.14769797027111053, 0.37752434611320496, -0.143618643283844, 0.08376485109329224, -0.3207886815071106, -0.08625565469264984, 0.27541595697402954, 0.1629420518875122, 0.25100916624069214, 0.07710124552249908, -0.11339549720287323, -0.4098260998725891, 0.17985600233078003, -0.11203449964523315, -0.04261961579322815, 0.21456533670425415, -0.46363991498947144, -0.2888953983783722, 0.09641380608081818, -0.10397248715162277, 0.8939828276634216, -0.06497420370578766, 0.18897645175457, 0.33774128556251526, 0.16326290369033813, 0.28225046396255493, -0.07744472473859787, 0.16547755897045135, -0.45895543694496155, -0.07823050767183304, 0.0744745060801506, -0.1392124742269516, -0.06478685885667801, 0.3663632273674011, 0.0141671784222126, 0.5146527290344238, -0.2688015103340149, 0.31165704131126404, 0.054014675319194794, 0.5210411548614502, -0.13379940390586853, -0.010874591767787933, -0.34723687171936035, 0.19491878151893616, -0.18090510368347168, 0.280245304107666, -0.12038955092430115, 0.005468408577144146, -0.30294230580329895, -0.13794143497943878, -0.13194112479686737, 0.22742578387260437, -0.5376269817352295, 0.1669767051935196, 0.09342771768569946, -0.3486430048942566, 0.01917755976319313, 0.5643278360366821, -0.10029178857803345, -0.08207689225673676, -0.10845516622066498, 0.35308271646499634, 0.020763173699378967, 0.3046311140060425, 0.07688800245523453, 0.045780573040246964, 0.42430180311203003, -0.016855793073773384, -0.09482505172491074, 0.07203888148069382, -0.0042471918277442455, -0.30940836668014526, -0.25129976868629456, 0.040815483778715134, 0.306219220161438, -0.2756879925727844, -0.19723191857337952, -0.11883842945098877, 0.015946242958307266, -0.05961289629340172, 0.11982595920562744, 0.061122190207242966, -0.09665695577859879, 0.20687231421470642, 0.12961190938949585, -0.4074319005012512, 0.04012978821992874, 0.34143105149269104, 0.05819614976644516, 0.0030537769198417664, 0.6670229434967041, 0.07418915629386902, 0.07047681510448456, -0.19490253925323486, 0.14977401494979858, 0.3011738359928131, -0.2336237132549286, -0.039200570434331894, -0.2000790387392044, -0.24901682138442993, 0.0004847794189117849, -0.12109552323818207, 0.2407473474740982, -0.01767052710056305, 0.040279995650053024, -0.4578697681427002, -0.4342663884162903, 0.031509965658187866, -0.06306113302707672, 0.009265486150979996, 0.07820285856723785, -0.04398677125573158, 0.14506512880325317, 0.04536612331867218, -0.25610435009002686, 0.21077050268650055, -0.1966141164302826, 0.21202002465724945, 0.09935291856527328, -0.04015003889799118, 0.249724879860878, -0.022808322682976723, 0.05033450573682785, -0.027215324342250824, -0.30815979838371277, -0.1973443627357483, -0.12951259315013885, 0.11826718598604202, 0.02208559960126877, -0.015638599172234535, -0.1738799512386322, -0.29436802864074707, -0.1543198525905609, -0.24747654795646667, -0.03461609035730362, 0.08816242963075638, 0.02744963765144348, 0.014234171248972416, -0.05347221717238426, 0.026538703590631485, 0.06578782945871353, -0.07397378236055374, 0.03758933022618294, 0.04400103911757469, 0.24529866874217987, 0.10125734657049179, 0.047980815172195435, -0.009039662778377533, -0.5060157179832458, 0.10130946338176727, 0.1878547966480255, 0.3835133910179138, 0.029907340183854103, -0.16318626701831818, -0.038469187915325165, 0.2729743421077728, 0.058359622955322266, 0.41472235321998596, -0.45662394165992737, -0.0442095622420311, -0.08864663541316986, 0.14343272149562836, -0.2171788066625595, 0.09706578403711319, 0.3625800609588623, -0.18330900371074677, -0.01555749773979187, 0.2735646069049835, 0.12666486203670502, 0.1897181272506714, 0.02174101397395134, 0.10689885169267654, 0.5871457457542419, -0.08740182965993881, 0.16464099287986755, 0.29006442427635193, -0.21607990562915802, 0.2205362617969513, 0.3349784016609192, -0.08375498652458191, -0.008731022477149963, 0.399448037147522, -0.1929350197315216, 0.3431116044521332, -0.07903418689966202, -0.12809859216213226, 0.24404409527778625, -0.24880211055278778, 0.07992823421955109, 0.40243110060691833, -0.15660539269447327, 0.16993319988250732, 0.04696942865848541, 0.5395814180374146, -0.42126867175102234, -0.13744300603866577, -0.038239143788814545, -0.16593120992183685, -0.14843499660491943, -0.059856116771698, 0.06483747065067291, -0.11561209708452225, -0.10017085075378418, -0.23885421454906464, -0.14844971895217896, -0.3574170470237732, -0.050309374928474426, -0.003966785967350006, -0.3478868007659912, -0.071405328810215, -0.06869865953922272, 0.35503870248794556, -0.1964205801486969, -0.10585738718509674, 0.33324238657951355, -0.14164839684963226, 0.03708972409367561, 0.32675787806510925, 0.2570810616016388, 0.19539228081703186, 0.4452638030052185, 0.07810206711292267, -0.11831744760274887, 0.31555867195129395, 0.04472598433494568, 0.01462613046169281, 0.147806778550148, -0.1330290138721466, -0.19756817817687988, 0.39231565594673157, 0.13721919059753418, -0.05480080470442772, -0.27560293674468994, 0.34414952993392944, -0.06653439998626709, -0.2472359836101532, 0.21512028574943542, -0.24406230449676514, -0.03808306157588959, -0.5316838026046753, 0.3191313147544861, -0.3130170702934265, 0.09808243811130524, 0.4218280017375946, 0.15430977940559387, 0.37994176149368286, -0.2579369843006134, 0.0727035403251648, -0.028827495872974396, 0.38972827792167664, 0.1729895919561386, -0.2461693286895752, -0.18266907334327698, 0.1881108433008194, -0.9209600687026978, 0.4458394944667816, 0.058972250670194626, -0.03908400237560272, 0.03343772888183594, 0.34398919343948364, 0.05374997481703758, 0.053144361823797226, 0.288740336894989, -0.09628312289714813, 0.1624646633863449, -0.04155927896499634, -0.37896284461021423, -0.3341310918331146, -0.31060147285461426, 0.4049322009086609, 0.14943209290504456, -0.5924782752990723, 0.289875864982605, 0.03848903998732567, -0.05016953498125076, -0.10498662292957306, -0.21322353184223175, 0.15900079905986786, -0.1347796469926834, 0.41791191697120667, -0.14029090106487274, 0.4938713312149048, -0.027378767728805542, -0.019106077030301094, -0.21526280045509338, -0.11116939783096313, -0.29576972126960754, 0.2690999507904053, -0.14611534774303436, 0.07679352909326553, 0.12510345876216888, 0.07603252679109573, -0.29878953099250793, 0.32346147298812866, 0.14698399603366852, -0.2812111973762512, -0.4066534638404846, -0.021511489525437355, 0.037754498422145844, 0.09225734323263168, 0.060123201459646225, 0.3981383442878723, -0.1498902291059494, 0.23341818153858185, -0.19313758611679077, -0.337335467338562, 0.5052189230918884, -0.3257138431072235, -0.19264139235019684, -0.274181991815567, 0.25200143456459045, 0.13264606893062592, 0.005211483687162399, -0.640046238899231, 0.05377327650785446, 0.3680354952812195, -0.18959808349609375, -0.1688360720872879, 0.14067517220973969, -0.2344210147857666, 0.407518208026886, 0.004643294960260391, 0.037530675530433655, 0.006787242367863655, -0.13052470982074738, 0.16363070905208588, -0.25506025552749634 ]
https://github.com/huggingface/datasets/issues/1963
bug in SNLI dataset
Hi ! The labels -1 correspond to the examples without gold labels in the original snli dataset. Feel free to remove these examples if you don't need them by using ```python data = data.filter(lambda x: x["label"] != -1) ```
Hi There is label of -1 in train set of SNLI dataset, please find the code below: ``` import numpy as np import datasets data = datasets.load_dataset("snli")["train"] labels = [] for d in data: labels.append(d["label"]) print(np.unique(labels)) ``` and results: `[-1 0 1 2]` version of datasets used: `datasets 1.2.1 <pip> ` thanks for your help. @lhoestq
39
bug in SNLI dataset Hi There is label of -1 in train set of SNLI dataset, please find the code below: ``` import numpy as np import datasets data = datasets.load_dataset("snli")["train"] labels = [] for d in data: labels.append(d["label"]) print(np.unique(labels)) ``` and results: `[-1 0 1 2]` version of datasets used: `datasets 1.2.1 <pip> ` thanks for your help. @lhoestq Hi ! The labels -1 correspond to the examples without gold labels in the original snli dataset. Feel free to remove these examples if you don't need them by using ```python data = data.filter(lambda x: x["label"] != -1) ```
[ 0.1758221983909607, -0.282525897026062, -0.10357335209846497, 0.3496333956718445, 0.22197768092155457, 0.04719799757003784, 0.38742128014564514, 0.11834344267845154, 0.08081889152526855, 0.29692429304122925, -0.20272867381572723, 0.6121098399162292, -0.142720565199852, 0.09589000791311264, 0.0018212907016277313, -0.0009762421250343323, 0.23305454850196838, 0.3379024863243103, 0.20979559421539307, -0.49668413400650024, -0.23596683144569397, -0.023504486307501793, -0.3817799687385559, 0.26528316736221313, -0.28697216510772705, 0.17844893038272858, -0.01556141022592783, -0.13333779573440552, 0.1334049105644226, -0.4898703098297119, 0.1604638248682022, -0.09861207008361816, 0.12261426448822021, 0.23259815573692322, -0.000105866594822146, -0.27431926131248474, 0.11297331750392914, 0.06789805740118027, -0.3696537911891937, -0.2605842351913452, -0.11014662683010101, -0.022008780390024185, -0.14689253270626068, -0.16289401054382324, -0.20963367819786072, -0.17244243621826172, 0.014251887798309326, 0.09354102611541748, 0.1124734878540039, 0.26622411608695984, 0.23742881417274475, 0.06738800555467606, -0.1264115422964096, 0.1347339004278183, 0.23913797736167908, -0.3994216322898865, 0.1405959278345108, 0.11391440033912659, 0.049628112465143204, 0.04937557131052017, 0.4056083858013153, 0.6512391567230225, -0.06204718351364136, -0.04369485750794411, 0.11371243000030518, 0.09037426859140396, 0.12729477882385254, -0.3254040777683258, -0.07871188223361969, 0.3404753506183624, 0.10919155180454254, -0.32639601826667786, -0.41880595684051514, 0.06633178144693375, 0.1710607260465622, -0.46233123540878296, -0.028323449194431305, 0.2538728713989258, 0.14069750905036926, 0.2034575492143631, 0.017865346744656563, 0.04474910348653793, -0.07421854138374329, 0.3183240294456482, 0.05006442964076996, 0.6590709686279297, -0.044593099504709244, 0.18191643059253693, 0.08405452221632004, 0.04723390191793442, -0.14533469080924988, 0.15972350537776947, 0.06855710595846176, 0.3448959290981293, -0.5432955622673035, -0.07045309245586395, -0.04777321219444275, -0.08302169293165207, -0.19243386387825012, 0.15653204917907715, 0.13542373478412628, 0.0860433280467987, -0.15990176796913147, 0.2858230471611023, -0.018493030220270157, 0.012239614501595497, 0.14362236857414246, 0.31500813364982605, 0.14040297269821167, -0.245568186044693, 0.09780904650688171, -0.05021338164806366, -0.19370123744010925, -0.26104581356048584, 0.49027931690216064, 0.059068188071250916, 0.03147059679031372, -0.060565512627363205, -0.3164849877357483, 0.2388172149658203, -0.35136860609054565, 0.0303709264844656, -0.0477265864610672, 0.0027173832058906555, -0.01628660410642624, -0.012746721506118774, -0.0026861727237701416, 0.05189421772956848, 0.09694167226552963, -0.20989884436130524, -0.2651703953742981, 0.06385569274425507, -0.06404708325862885, -0.1516258865594864, -0.04834086820483208, -0.13813388347625732, 0.17491415143013, 0.02004650980234146, -0.3853113055229187, -0.16888877749443054, 0.1255016326904297, 0.05787133798003197, 0.23584607243537903, 0.17662638425827026, -0.24856556951999664, 0.46995091438293457, -0.12973803281784058, -0.14698567986488342, 0.0430617555975914, -0.006361916661262512, -0.2545924782752991, -0.16277647018432617, -0.32555484771728516, 0.2545199692249298, 0.04575750231742859, -0.039669714868068695, 0.07416389137506485, -0.14031003415584564, 0.1460745930671692, 0.023990344256162643, 0.3011029064655304, -0.2547018527984619, -0.17414014041423798, 0.03515886887907982, 0.13508914411067963, -0.07145756483078003, -0.18609753251075745, -0.15408989787101746, -0.14980249106884003, -0.22058959305286407, 0.24820929765701294, 0.324828565120697, 0.08307185024023056, -0.09827982634305954, -0.18110527098178864, 0.1455695480108261, 0.6714293956756592, -0.4713215231895447, -0.5759915113449097, -0.037369925528764725, -0.3127921223640442, -0.34832942485809326, -0.07229123264551163, 0.5257783532142639, -0.25417187809944153, 0.18412397801876068, 0.055915698409080505, -0.028452448546886444, 0.07024890929460526, -0.040790632367134094, -0.48202937841415405, -0.24430496990680695, 0.42824095487594604, 0.2879721522331238, 0.1184493899345398, 0.04848433658480644, -0.06535247713327408, -0.12453342974185944, 0.3911314904689789, 0.00045244768261909485, 0.15570352971553802, 0.26528000831604004, 0.5162931680679321, 0.1337866485118866, 0.10868460685014725, -0.25671347975730896, -0.019542746245861053, 0.19961479306221008, -0.10251777619123459, 0.3829937279224396, 0.11400189995765686, -0.032749686390161514, -0.2263215184211731, -0.22941243648529053, -0.3714202642440796, -0.16337761282920837, 0.1727944314479828, 0.11063868552446365, 0.12495958805084229, -0.00021378695964813232, -0.06906338036060333, 0.23491744697093964, -0.1951015293598175, 0.0574190579354763, -0.2534836530685425, 0.17347945272922516, -0.07221080362796783, 0.0002443166449666023, -0.23969297111034393, 0.1996302306652069, 0.1941966712474823, 0.115044005215168, -0.13521745800971985, 0.2393588423728943, -0.2861437499523163, -0.25728166103363037, 0.12809929251670837, 0.08652099967002869, 0.07452579587697983, -0.6160659193992615, -0.23180049657821655, 0.5943582057952881, 0.12143643200397491, 0.03288190811872482, -0.17611315846443176, 0.20593947172164917, -0.1515798419713974, -0.1561625897884369, -0.3645663857460022, 0.28048601746559143, 0.13990265130996704, -0.046648576855659485, -0.08440271764993668, -0.39726024866104126, -0.02483585849404335, -0.4928986132144928, 0.3556155860424042, 0.12884782254695892, -0.3839583098888397, -0.07162968069314957, 0.3216440975666046, -0.05075583606958389, 0.16073831915855408, -0.01802591234445572, -0.1524936556816101, 0.030300237238407135, 0.25780442357063293, 0.11806333065032959, 0.14801904559135437, 0.19225822389125824, -0.08459074795246124, 0.19278103113174438, -0.15289300680160522, -0.10799171775579453, -0.031114570796489716, 0.11461447179317474, -0.019010694697499275, 0.0687713697552681, 0.20766852796077728, 0.10674929618835449, -0.17784160375595093, -0.24613264203071594, -0.13955587148666382, 0.2681659758090973, -0.23240499198436737, -0.07604729384183884, -0.1674966663122177, -0.20949071645736694, -0.5057194828987122, -0.1521824300289154, -0.050711218267679214, -0.09920726716518402, 0.18476709723472595, -0.08890748023986816, -0.010520035400986671, 0.3142929673194885, 0.19605669379234314, 0.10122936964035034, 0.14515523612499237, 0.13579419255256653, -0.18558542430400848, -0.36517101526260376, -0.23517107963562012, 0.07174588739871979, -0.3185693025588989, 0.2699112892150879, 0.3629634380340576, -0.15864576399326324, -0.09613189101219177, -0.08919467031955719, -0.24419456720352173, -0.019691206514835358, 0.06638258695602417, 0.05418011546134949, 0.02477429062128067, -0.012880079448223114, -0.20532068610191345, 0.29648637771606445, 0.2392025589942932, 0.010781800374388695, -0.08040091395378113, 0.16511476039886475, -0.08926255255937576, -0.048405129462480545, -0.2911717891693115, -0.46430131793022156, -0.5519580245018005, 0.0023524388670921326, 0.016096513718366623, -0.17084826529026031, 0.19171364605426788, 0.12174342572689056, 0.05396539345383644, -0.022381238639354706, 0.1511523574590683, 0.1787068396806717, -0.21525388956069946, -0.15646247565746307, 0.16998191177845, 0.04657958820462227, -0.26902899146080017, -0.13658039271831512, 0.039599448442459106, -0.032409992069005966, -0.1843263804912567, -0.2561138868331909, -0.1648024022579193, 0.14730186760425568, 0.10703633725643158, 0.056878477334976196, 0.031686585396528244, -0.033990174531936646, 0.11850970983505249, -0.07938065379858017, -0.2076566517353058, 0.1215783953666687, 0.13406094908714294, -0.3273541331291199, 0.4176502227783203, -0.025411657989025116, 0.2975834906101227, -0.0089339017868042, 0.05717550218105316, 0.6455112099647522, -0.15639327466487885, 0.025854676961898804, -0.15974073112010956, 0.022055506706237793, 0.14319179952144623, -0.2573868930339813, 0.10513990372419357, 0.4043579697608948, -0.037511639297008514, 0.13612370193004608, -0.03093305230140686, 0.0562434121966362, 0.002219017595052719, 0.17781011760234833, -0.28662624955177307, -0.04218842461705208, -0.2883034944534302, 0.008180946111679077, 0.012103505432605743, 0.002479277551174164, -0.12977659702301025, -0.016994204372167587, -0.18062809109687805, 0.00005077570676803589, 0.128451868891716, -0.1970238983631134, 0.10253500193357468, -0.24619004130363464, -0.1150914877653122, 0.043595075607299805, -0.14802391827106476, 0.16879825294017792, 0.3643040657043457, 0.1497538983821869, 0.16440284252166748, 0.28741422295570374, 0.28217431902885437, 0.6061437129974365, -0.5048750638961792, 0.20270472764968872, 0.24208977818489075, 0.4977800250053406, -0.33833587169647217, -0.3108195662498474, -0.41522452235221863, -0.23854540288448334, 0.47745421528816223, 0.19171130657196045, 0.04235308617353439, -0.1758730113506317, 0.27399393916130066, 0.11126154661178589, -0.3431811034679413, -0.1644868403673172, -0.23016045987606049, -0.04108944535255432, -0.11274003982543945, 0.1340048760175705, -0.0636911615729332, 0.1891910582780838, -0.09731683135032654, -0.21464882791042328, 0.05494898557662964, 0.10770239681005478, 0.24982859194278717, 0.16660474240779877, 0.17030221223831177, 0.1368238478899002, 0.0883752852678299, 0.045366011559963226, 0.12431057542562485, 0.02308959886431694, 0.37928861379623413, -0.15081436932086945, -0.3487543761730194, -0.04902523010969162, -0.43734803795814514, 0.07481124997138977, -0.021191224455833435, -0.007610163651406765, -0.0620710626244545, -0.10662728548049927, 0.3135818839073181, 0.03357468545436859, 0.1250334084033966, 0.07766298204660416, 0.2430594563484192, -0.40023621916770935, -0.38174569606781006, 0.5641040205955505, 0.16142621636390686, -0.31268954277038574, 0.1298290491104126, -0.11154060065746307, -0.23238573968410492, 0.24959461390972137, 0.17410655319690704, 0.8710389733314514, -0.04399745166301727, -0.07778295874595642, 0.1872614622116089, -0.5491981506347656, 0.4160407781600952, -0.0962844043970108, -0.15672270953655243, -0.5003467202186584, 0.017014069482684135, 0.04623951017856598, 0.0295671708881855, -0.3262174427509308, 0.3848620653152466, -0.01684245467185974, 0.3335959017276764, -0.07218252867460251, 0.13156059384346008, 0.06266600638628006, -0.026376228779554367, 0.39191529154777527, 0.11013849079608917, -0.13597944378852844, 0.1998819261789322, -0.08675457537174225, 0.36509764194488525, -0.18077892065048218, 0.005146262235939503, -0.1593274176120758, 0.05118159204721451, -0.12137869000434875, -0.019021999090909958, 0.18983709812164307, 0.21329867839813232, 0.0453387051820755, -0.17714804410934448, -0.3371673822402954, 0.360956072807312, 0.7153912782669067, 0.0166355948895216, -0.003223443403840065, 0.06950078904628754, 0.2405065894126892, 0.4848548471927643, 0.043801482766866684, 0.26955246925354004, 0.42955103516578674, -0.017523296177387238, -0.3549792170524597, 0.16683614253997803, 0.14241476356983185, 0.15233734250068665, -0.4034619927406311, 0.04671204090118408, -0.10673478245735168, 0.18478097021579742, 0.10234378278255463, -0.07123108208179474, 0.20503665506839752, -0.24084627628326416, 0.19637051224708557, 0.07112480700016022, -0.16800814867019653, 0.007784120738506317, -0.0060903653502464294, -0.2926677465438843, -0.14717355370521545, 0.35250768065452576, 0.11044915020465851, 0.1597243994474411, -0.010663609951734543, -0.12135498225688934, -0.07462982833385468, -0.26230183243751526, -0.002509932965040207, 0.20811310410499573, -0.4890865981578827, 0.12442143261432648, -0.08616433292627335, 0.019864201545715332, -0.12015405297279358, 0.2211391031742096, 0.0576070174574852, 0.23305439949035645, 0.12387403845787048, -0.2934536933898926, -0.4125734269618988, -0.19747336208820343, 0.09582121670246124, 0.3416713774204254, -0.12686669826507568, 0.15981385111808777, -0.18414710462093353, -0.17765110731124878, -0.3772062659263611, -0.05117935687303543, -0.2954210638999939, 0.22582365572452545, 0.19124187529087067, 0.28302690386772156, -0.18522197008132935, 0.004717995412647724, 0.1705361157655716, -0.028829440474510193, -0.08574346452951431, -0.2370091676712036, -0.246233731508255, 0.052824944257736206, 0.2717525362968445, -0.2514611482620239, -0.09449408948421478, 0.12432664632797241, 0.06078357994556427, 0.0364011749625206, 0.22657088935375214, 0.24770981073379517, 0.23585626482963562, 0.9074825644493103, -0.1937112957239151, 0.011209852993488312, -0.08096658438444138, -0.09743727743625641, 0.012371018528938293, 0.0009789317846298218, 0.05546317622065544, 0.06996694952249527, 0.1669415533542633, 0.096865713596344, -0.271597683429718, -0.10886424034833908, -0.3038880228996277, -0.0061018094420433044, 0.010287068784236908, -0.5755165815353394, 0.41760268807411194, 0.274688184261322, 0.2566932737827301, 0.0816468745470047, -0.39462634921073914, -0.24726776778697968, 0.21572014689445496, 0.3618091344833374, -0.22961291670799255, -0.006482263561338186, 0.2608957290649414, 0.13528315722942352, 0.05756436660885811, 0.05012286454439163, -0.06294278055429459, -0.12929166853427887, -0.08826504647731781, 0.03692231327295303, 0.11343670636415482, -0.35065990686416626, 0.08688795566558838, 0.41155967116355896, 0.06869518756866455, 0.016749292612075806, 0.1330558955669403, -0.08481097221374512, -0.12131329625844955, 0.6410635113716125, -0.02645571529865265, 0.43691200017929077, -0.05528290569782257, 0.1763097494840622, -0.2318536341190338, 0.17287863790988922, -0.06380487978458405, 0.1332532912492752, -0.49322330951690674, 0.07594874501228333, -0.01458267867565155, 0.21839022636413574, -0.0881681889295578, -0.23109754920005798, 0.15310688316822052, 0.22327911853790283, -0.1793224811553955, -0.2515391707420349, -0.37089794874191284, 0.121501125395298, -0.08565206825733185, 0.21312779188156128, 0.008108701556921005, -0.04787445813417435, -0.07327529788017273, 0.1985648274421692, -0.25974392890930176, -0.4831651747226715, -0.41740524768829346, 0.48440033197402954, 0.33215218782424927, -0.20231446623802185, -0.09130597859621048, 0.12435904890298843, -0.009457878768444061, -0.0002588927745819092, -0.13258373737335205, 0.19820977747440338, 0.18075841665267944, 0.30417659878730774, 0.0009503355249762535, -0.016491711139678955, -0.12145396322011948, -0.017578085884451866, -0.00144987553358078, 0.23950693011283875, -0.07148995995521545, 0.10179084539413452, 0.10851813852787018, -0.2647216320037842, 0.4198530912399292, 0.08976785093545914, 0.5018249750137329, -0.30408975481987, 0.20265673100948334, -0.23448917269706726, -0.2914104461669922, -0.4042406380176544, -0.21281930804252625, -0.19527268409729004, 0.2986357510089874, 0.17478018999099731, 0.4102656841278076, 0.242488831281662, -0.24217350780963898, 0.11441883444786072, 0.0731973797082901, 0.17491140961647034, 0.14927451312541962, 0.046160828322172165, -0.08921197801828384, -0.029116272926330566, -0.619449257850647, 0.10148786008358002, 0.08361193537712097, 0.004427613690495491, -0.024011194705963135, -0.07218178361654282, -0.5134980082511902, -0.12841784954071045, 0.16380174458026886, 0.23621375858783722, 0.053645022213459015, 0.417386919260025, -0.18740031123161316, -0.011312775313854218, -0.03486381471157074, -0.006041396409273148, 0.2730376124382019, -0.1915695071220398, -0.08357031643390656, -0.24818114936351776, 0.17092114686965942, -0.1321859061717987, 0.06142087280750275, -0.14781278371810913, 0.20322300493717194, 0.4639742374420166, -0.09679748862981796, 0.34148097038269043, 0.047321394085884094, 0.21526232361793518, -0.11061081290245056, -0.08454686403274536, -0.38632455468177795, 0.08178507536649704, -0.1389549970626831, 0.49321916699409485, 0.16441859304904938, -0.13856813311576843, -0.2046211063861847, 0.18930765986442566, 0.004149001091718674, -0.19064493477344513, -0.2836727797985077, 0.3273254334926605, -0.0022103451192378998, 0.138322651386261, 0.03603535518050194, 0.02446390502154827, 0.2087705135345459, 0.21927015483379364, -0.2801862955093384, -0.5413855910301208, 0.3990265130996704, -0.27573806047439575, -0.03218819573521614, -0.21429778635501862, 0.336641788482666, 0.3930228054523468, -0.20637062191963196, -0.6328865885734558, -0.011706523597240448, 0.38831180334091187, -0.10357049852609634, -0.43952369689941406, 0.06904755532741547, 0.24885880947113037, 0.27228686213493347, -0.01269708201289177, -0.1619984358549118, 0.23307308554649353, -0.06404708325862885, 0.4385647773742676, -0.22676703333854675 ]
https://github.com/huggingface/datasets/issues/1959
Bug in skip_rows argument of load_dataset function ?
Hi, try `skiprows` instead. This part is not properly documented in the docs it seems. @lhoestq I'll fix this as part of a bigger PR that fixes typos in the docs.
Hello everyone, I'm quite new to Git so sorry in advance if I'm breaking some ground rules of issues posting... :/ I tried to use the load_dataset function, from Huggingface datasets library, on a csv file using the skip_rows argument described on Huggingface page to skip the first row containing column names `test_dataset = load_dataset('csv', data_files=['test_wLabel.tsv'], delimiter='\t', column_names=["id", "sentence", "label"], skip_rows=1)` But I got the following error message `__init__() got an unexpected keyword argument 'skip_rows'` Have I used the wrong argument ? Am I missing something or is this a bug ? Thank you very much for your time, Best regards, Arthur
31
Bug in skip_rows argument of load_dataset function ? Hello everyone, I'm quite new to Git so sorry in advance if I'm breaking some ground rules of issues posting... :/ I tried to use the load_dataset function, from Huggingface datasets library, on a csv file using the skip_rows argument described on Huggingface page to skip the first row containing column names `test_dataset = load_dataset('csv', data_files=['test_wLabel.tsv'], delimiter='\t', column_names=["id", "sentence", "label"], skip_rows=1)` But I got the following error message `__init__() got an unexpected keyword argument 'skip_rows'` Have I used the wrong argument ? Am I missing something or is this a bug ? Thank you very much for your time, Best regards, Arthur Hi, try `skiprows` instead. This part is not properly documented in the docs it seems. @lhoestq I'll fix this as part of a bigger PR that fixes typos in the docs.
[ 0.1184590607881546, -0.5157732963562012, -0.0002604871988296509, 0.13413411378860474, 0.24053357541561127, 0.31625932455062866, 0.3996221125125885, 0.11639019846916199, 0.18976104259490967, 0.2767881155014038, 0.35766658186912537, 0.3101138472557068, 0.05234017223119736, 0.13910090923309326, 0.21228325366973877, 0.009779319167137146, 0.32224634289741516, -0.09710906445980072, -0.22787019610404968, -0.14252635836601257, -0.46651825308799744, 0.20598657429218292, -0.49547916650772095, -0.006219536066055298, 0.004691764712333679, 0.2700180411338806, -0.1468370258808136, 0.3250582218170166, 0.14609254896640778, -0.08202164620161057, 0.43619850277900696, 0.09278860688209534, 0.06225255876779556, 0.4919852912425995, -0.00012792384950444102, -0.0485202893614769, 0.09090384840965271, -0.11743684113025665, -0.25088363885879517, -0.24236135184764862, -0.01039736345410347, 0.15110859274864197, -0.15865962207317352, -0.3461463451385498, -0.07970833033323288, 0.22087383270263672, -0.1931837499141693, -0.3198310434818268, 0.01720970869064331, 0.2279169261455536, 0.11325187236070633, 0.09956269711256027, -0.232233926653862, 0.013391404412686825, 0.36797767877578735, 0.16881531476974487, -0.20286837220191956, 0.5136330723762512, 0.07497979700565338, -0.13129371404647827, 0.21700343489646912, 0.30021917819976807, -0.2162889689207077, 0.18193680047988892, 0.6969503164291382, 0.2346373051404953, -0.008030764758586884, 0.06708593666553497, 0.15477889776229858, 0.14270058274269104, 0.35087454319000244, -0.2583889663219452, -0.14549535512924194, -0.5243526697158813, 0.1148114949464798, -0.4422200620174408, 0.3829132318496704, -0.07575235515832901, -0.1903960257768631, 0.18923169374465942, -0.19618657231330872, -0.36629897356033325, -0.23993295431137085, 0.14520379900932312, 0.27318793535232544, -0.37867429852485657, -0.10798437893390656, 0.20839443802833557, 0.6590317487716675, 0.016708509996533394, -0.07404650002717972, -0.14503011107444763, 0.1362960785627365, 0.411984384059906, -0.519250214099884, 0.04572797566652298, 0.26329925656318665, 0.5026042461395264, 0.14997121691703796, 0.1526491940021515, -0.09320390969514847, -0.44104138016700745, 0.41022202372550964, 0.1674039512872696, 0.1500699818134308, -0.004111912101507187, 0.16510047018527985, 0.23744459450244904, 0.1703534722328186, -0.05769578740000725, 0.11907552182674408, -0.0006031729280948639, -0.061961643397808075, -0.2427823841571808, -0.03869473934173584, -0.24579688906669617, 0.34291601181030273, -0.2678747773170471, -0.23752544820308685, 0.10176694393157959, -0.141171395778656, -0.13430997729301453, -0.22987915575504303, 0.36129429936408997, 0.3145488202571869, -0.17312520742416382, 0.005755562335252762, 0.2405337542295456, -0.1080143079161644, -0.13948044180870056, -0.19838498532772064, 0.10628405213356018, -0.03512364253401756, 0.25283002853393555, 0.06196288391947746, -0.4568333923816681, 0.07690303772687912, 0.05454999953508377, 0.35020071268081665, -0.0496462918817997, -0.07918903976678848, -0.03805723786354065, -0.019058316946029663, 0.25493088364601135, -0.13630257546901703, -0.14486555755138397, 0.2976909577846527, 0.11850130558013916, -0.04354206845164299, 0.5042285323143005, -0.2794048488140106, -0.22225867211818695, 0.060796260833740234, -0.09450831264257431, -0.16958899796009064, 0.09456101059913635, -0.6603605151176453, 0.22229523956775665, 0.13860607147216797, -0.20156973600387573, 0.034422583878040314, -0.006375454366207123, -0.32628703117370605, -0.22639717161655426, 0.2093483954668045, 0.5372989773750305, -0.5187494158744812, -0.35516640543937683, 0.1033993512392044, 0.040054820477962494, 0.01909070461988449, -0.011484242975711823, -0.02962854690849781, 0.1079794317483902, -0.30771905183792114, 0.24948342144489288, -0.052168481051921844, -0.2833320200443268, -0.1313028186559677, 0.0714629516005516, -0.06213245540857315, 0.21807807683944702, 0.026195570826530457, -0.25332480669021606, -0.02043117582798004, -0.1669732928276062, 0.2533343434333801, 0.11416726559400558, -0.2502172887325287, 0.09421312808990479, -0.11509749293327332, -0.19657514989376068, 0.3166657090187073, 0.02505270019173622, -0.29642000794410706, 0.11448458582162857, -0.20640647411346436, -0.5897098183631897, 0.3778432011604309, -0.07288108766078949, -0.17495767772197723, 0.18320529162883759, 0.04381506145000458, 0.17986834049224854, 0.20967543125152588, 0.03799815475940704, -0.6307153701782227, 0.10868962854146957, 0.4949711859226227, -0.04626148194074631, -0.09232690930366516, -0.22490659356117249, -0.25212278962135315, -0.054898470640182495, 0.18847684562206268, 0.2854732275009155, -0.13277356326580048, 0.07811158150434494, -0.12399166822433472, -0.06868110597133636, -0.19483286142349243, 0.15494698286056519, -0.3675632178783417, 0.15373821556568146, -0.40716496109962463, 0.2684527337551117, 0.25987115502357483, -0.09592372924089432, 0.00659005343914032, -0.09849239140748978, 0.295240581035614, -0.3557017147541046, -0.13201969861984253, 0.4505612552165985, 0.23428462445735931, -0.00913066416978836, 0.08686518669128418, 0.061107538640499115, -0.18082913756370544, 0.019300412386655807, -0.16055695712566376, -0.16006715595722198, 0.12386634945869446, -0.09586773812770844, -0.1965259313583374, 0.3076038360595703, -0.36042430996894836, 0.32552051544189453, -0.2628006935119629, -0.03521823137998581, -0.0754590779542923, -0.034186311066150665, -0.08421782404184341, -0.19791539013385773, 0.5240821242332458, -0.006113018840551376, 0.11185222864151001, 0.00353412888944149, -0.5212612748146057, -0.20668214559555054, 0.38308417797088623, -0.062121227383613586, -0.2070295214653015, 0.31914398074150085, 0.15578749775886536, -0.02628907933831215, 0.3411847651004791, -0.12517645955085754, 0.5859800577163696, 0.044935449957847595, -0.30438944697380066, -0.0666455402970314, 0.1478588581085205, -0.042321473360061646, 0.222335547208786, 0.0385461151599884, 0.15519915521144867, -0.25571754574775696, -0.1896427869796753, 0.023087456822395325, -0.058335911482572556, 0.16188402473926544, 0.045328572392463684, 0.17932593822479248, -0.6254634261131287, 0.24870695173740387, -0.05884048715233803, -0.16824141144752502, 0.16828183829784393, 0.08795901387929916, -0.30604496598243713, -0.2525307238101959, -0.08423251658678055, 0.06497427821159363, -0.12928080558776855, 0.2338947057723999, -0.2523556351661682, 0.6201030611991882, -0.11220362782478333, -0.22392433881759644, -0.33486148715019226, -0.0328214131295681, -0.0588841512799263, -0.06675034761428833, 0.05577494204044342, 0.10146792232990265, 0.320790559053421, -0.05892256647348404, -0.1396525502204895, -0.0037375558167696, -0.07334984838962555, 0.16023001074790955, -0.3428148627281189, 0.3066677451133728, 0.2471906989812851, 0.39972949028015137, -0.154253751039505, 0.15138190984725952, 0.05489624664187431, -0.04765453562140465, 0.10070148855447769, 0.03352233022451401, 0.25330817699432373, 0.07978750020265579, -0.29209592938423157, 0.03578266128897667, -0.12993867695331573, -0.00003843940794467926, 0.22139185667037964, 0.019871417433023453, -0.0376497283577919, -0.0669298991560936, 0.11798089742660522, 0.07339645177125931, -0.07193361222743988, -0.04848729819059372, -0.30793604254722595, -0.6267731189727783, 0.24090471863746643, -0.02643134444952011, -0.19514153897762299, -0.023692946881055832, 0.35335874557495117, -0.031196456402540207, -0.13393427431583405, -0.46565401554107666, -0.2469319999217987, 0.1305469423532486, 0.15176354348659515, -0.19698849320411682, 0.038850557059049606, 0.05033581703901291, -0.24504631757736206, 0.1536445915699005, -0.4438820779323578, -0.48125138878822327, 0.0825287252664566, 0.12091623991727829, 0.10656580328941345, 0.47173982858657837, 0.287964791059494, -0.27333641052246094, 0.3163418173789978, 0.14647884666919708, 0.36382097005844116, 0.33525002002716064, -0.1675291806459427, 0.2650378942489624, 0.07346116751432419, -0.31725165247917175, 0.16380608081817627, 0.04648309201002121, -0.2111840397119522, 0.1785174459218979, 0.004129007458686829, 0.14075583219528198, -0.2208396941423416, 0.08560574054718018, -0.010481111705303192, -0.38965436816215515, 0.017736779525876045, -0.2655603289604187, -0.00004310905933380127, 0.06671509146690369, 0.26846131682395935, -0.4285847246646881, -0.057881325483322144, -0.08755025267601013, 0.15576031804084778, 0.6310106515884399, 0.05734019726514816, -0.07303003966808319, -0.08047527819871902, -0.37109169363975525, 0.3203970789909363, 0.09686635434627533, -0.0332951620221138, 0.0873858630657196, -0.05941684916615486, 0.12381134927272797, 0.1924567073583603, 0.9702678322792053, 0.18083152174949646, 0.13665243983268738, 0.11058326065540314, 0.21757930517196655, -0.3055565357208252, -0.013412415981292725, 0.07338535785675049, 0.2672162353992462, 0.38172394037246704, 0.26566949486732483, -0.4033346474170685, -0.22264541685581207, 0.2769915759563446, 0.28309303522109985, -0.047848980873823166, -0.32232922315597534, -0.3425840437412262, -0.10459835827350616, -0.36166301369667053, 0.11273936182260513, 0.2983876168727875, 0.09537501633167267, -0.3774101734161377, 0.36497846245765686, 0.2887406349182129, -0.1708686649799347, 0.001405760645866394, 0.22053799033164978, 0.2984920144081116, -0.32362794876098633, -0.06633564829826355, 0.42652806639671326, -0.2523585855960846, 0.4026011824607849, 0.6713852286338806, -0.38973626494407654, -0.45636487007141113, -0.0650470107793808, -0.5007570385932922, 0.556157648563385, 0.29151517152786255, -0.3470175862312317, 0.24943682551383972, -0.07463936507701874, 0.0408962108194828, -0.12026838213205338, -0.32687950134277344, 0.4433286488056183, 0.000811183825135231, -0.125100776553154, -0.35758763551712036, 0.2981073558330536, -0.08590739965438843, -0.18440094590187073, 0.42693856358528137, 0.7055801153182983, -0.2070477157831192, 0.07429521530866623, -0.4285740852355957, 0.9876386523246765, 0.4479188323020935, 0.1335488259792328, 0.1885947585105896, 0.2559269070625305, 0.5449036359786987, 0.4156983494758606, -0.0394434854388237, -0.11667939275503159, -0.34004154801368713, 0.03584010899066925, -0.04362253099679947, 0.08017352968454361, 0.11871680617332458, -0.16707895696163177, 0.2674465775489807, -0.08333270996809006, 0.09776674211025238, -0.07788524031639099, -0.3814990222454071, 0.32861456274986267, -0.01832875981926918, -0.2122378647327423, -0.021396297961473465, 0.12791869044303894, 0.029178062453866005, 0.0027434201911091805, 0.07652878016233444, 0.022550325840711594, -0.46136313676834106, -0.33416748046875, -0.07984934002161026, -0.15759338438510895, -0.3594914674758911, 0.2929361164569855, -0.2710047960281372, 0.2584754228591919, 0.1882321685552597, 0.07910619676113129, -0.10338419675827026, -0.2842765748500824, -0.08384290337562561, 0.08189774304628372, 0.19559434056282043, -0.39375972747802734, 0.003756243735551834, 0.1803208887577057, 0.04846736043691635, -0.23076686263084412, 0.0925993025302887, -0.15552139282226562, -0.4176955223083496, 0.013824120163917542, 0.07138407230377197, -0.34718090295791626, -0.31936997175216675, -0.40299174189567566, -0.058287277817726135, 0.3188602030277252, -0.27224570512771606, -0.03191763907670975, 0.1824081540107727, 0.07711205631494522, 0.025236833840608597, -0.010483775287866592, -0.3415656089782715, -0.05790787562727928, 0.23344001173973083, -0.18901711702346802, -0.15783578157424927, 0.22909586131572723, 0.39401498436927795, -0.12592893838882446, 0.0110727958381176, -0.01593591272830963, 0.12510572373867035, -0.48918548226356506, 0.5048876404762268, 0.40316182374954224, 0.45662063360214233, 0.11325857788324356, 0.1569550484418869, 0.0025208890438079834, -0.1316838264465332, 0.03982336446642876, -0.12728972733020782, 0.02066839300096035, 0.14955458045005798, 0.22389055788516998, 0.1502295285463333, 0.1870158314704895, 0.0887274444103241, 0.03588772565126419, -0.0848187729716301, -0.13496409356594086, 0.061003945767879486, -0.18004581332206726, -0.1442871242761612, 0.7343521118164062, 0.42335718870162964, 0.24252943694591522, -0.1966068148612976, -0.07832878828048706, 0.0659477710723877, 0.09528138488531113, -0.04151425510644913, -0.36753779649734497, 0.21471819281578064, -0.007264722138643265, -0.03441902995109558, 0.04902429133653641, -0.20439518988132477, -0.12299314141273499, -0.25779300928115845, 0.2782379686832428, 0.08526092767715454, 0.052521008998155594, 0.23773513734340668, 0.39155060052871704, 0.10322292894124985, -0.059251077473163605, 0.11234155297279358, 0.050762563943862915, 0.26241832971572876, -0.1811739057302475, 0.10879255831241608, -0.1437569409608841, 0.07025985419750214, -0.041799385100603104, -0.002777300775051117, 0.04034528508782387, 0.1710275113582611, -0.03053366392850876, -0.1313512921333313, 0.16985294222831726, 0.0017848559655249119, 0.0675758570432663, 0.37705203890800476, -0.38077718019485474, 0.09849624335765839, 0.0769970491528511, -0.01056552492082119, -0.35986119508743286, -0.1977270096540451, 0.2949615716934204, 0.1285374015569687, -0.015099331736564636, 0.2488163411617279, -0.21232084929943085, 0.0362749844789505, -0.14782509207725525, -0.159507155418396, 0.511871337890625, 0.06804455816745758, 0.008655587211251259, 0.5517327189445496, -0.11727726459503174, 0.2473682314157486, 0.07515629380941391, 0.3716811239719391, 0.20791012048721313, 0.37526804208755493, -0.0928773507475853, -0.15251357853412628, 0.02267708256840706, 0.033264800906181335, -0.33932676911354065, -0.6127123236656189, 0.11386795341968536, 0.4662078619003296, -0.41142481565475464, 0.02333574742078781, 0.012315995991230011, 0.37594717741012573, 0.07820982486009598, -0.19805046916007996, -0.10141674429178238, 0.07412638515233994, 0.020827576518058777, -0.12535536289215088, -0.2443077564239502, 0.05547761172056198, -0.04717903584241867, -0.011451592668890953, -0.20204733312129974, -0.09292355179786682, 0.6958202123641968, -0.1093798279762268, 0.21668222546577454, -0.2644776701927185, -0.062330976128578186, -0.20026922225952148, 0.11110421270132065, 0.020060177892446518, -0.01453237421810627, -0.03668580949306488, 0.047584258019924164, 0.337798535823822, -0.07034377753734589, 0.33027786016464233, -0.004520341753959656, 0.37475213408470154, -0.3745858073234558, -0.20058104395866394, 0.03503216803073883, 0.05642356723546982, 0.22059926390647888, -0.08234155178070068, 0.29053008556365967, 0.1375504583120346, 0.0074116382747888565, -0.0456092469394207, 0.40564167499542236, 0.2595396041870117, 0.12671849131584167, -0.5624566078186035, 0.23456454277038574, -0.45128506422042847, -0.2537252902984619, -0.46529534459114075, 0.12219966948032379, 0.045243874192237854, 0.13856329023838043, 0.1585768461227417, 0.12557323276996613, -0.0869322270154953, 0.0617624931037426, 0.007245175540447235, 0.10489647090435028, 0.42817002534866333, 0.2795760929584503, 0.2275761365890503, -0.4540310502052307, -0.19665668904781342, -0.4089970588684082, 0.10941419750452042, -0.05854102596640587, 0.1503298282623291, 0.43329620361328125, -0.10267098993062973, 0.21551653742790222, 0.0754048228263855, 0.2592982053756714, 0.0064721680246293545, -0.04355328530073166, 0.17270927131175995, -0.18863989412784576, -0.5312666296958923, -0.21459190547466278, 0.0049196332693099976, 0.14215759932994843, -0.15036547183990479, 0.1773812174797058, -0.07685933262109756, -0.18501600623130798, -0.22822631895542145, 0.1627281904220581, 0.12086173892021179, 0.11984464526176453, 0.2785857319831848, -0.1667264699935913, 0.2345067411661148, -0.016035106033086777, -0.06309659034013748, -0.009243946522474289, -0.04709002375602722, -0.35422447323799133, -0.052960120141506195, -0.2087932676076889, -0.0009173937141895294, -0.3818291425704956, -0.3481461703777313, 0.020847957581281662, 0.015035165473818779, 0.13034051656723022, 0.20172011852264404, -0.42720866203308105, 0.29239022731781006, -0.07479288429021835, 0.02618289180099964, -0.14066548645496368, -0.09783392399549484, -0.18420450389385223, 0.3183946907520294, -0.06235614791512489, 0.034224070608615875, 0.897725522518158, -0.2795376777648926, -0.14094631373882294, -0.3316088914871216, 0.16821353137493134, 0.13222718238830566, -0.5405359864234924, -0.6190086007118225, -0.05393879488110542, 0.23887993395328522, 0.3874320983886719, -0.2610630691051483, 0.5420951843261719, -0.3744550049304962, 0.19211368262767792, 0.08877763152122498, 0.420594185590744, 0.15648573637008667, -0.07320570200681686, 0.2644818127155304, -0.21025075018405914 ]
https://github.com/huggingface/datasets/issues/1956
[distributed env] potentially unsafe parallel execution
You can pass the same `experiment_id` for all the metrics of the same group, and use another `experiment_id` for the other groups. Maybe we can add an environment variable that sets the default value for `experiment_id` ? What do you think ?
``` metric = load_metric('glue', 'mrpc', num_process=num_process, process_id=rank) ``` presumes that there is only one set of parallel processes running - and will intermittently fail if you have multiple sets running as they will surely overwrite each other. Similar to https://github.com/huggingface/datasets/issues/1942 (but for a different reason). That's why dist environments use some unique to a group identifier so that each group is dealt with separately. e.g. the env-way of pytorch dist syncing is done with a unique per set `MASTER_ADDRESS+MASTER_PORT` So ideally this interface should ask for a shared secret to do the right thing. I'm not reporting an immediate need, but am only flagging that this will hit someone down the road. This problem can be remedied by adding a new optional `shared_secret` option, which can then be used to differentiate different groups of processes. and this secret should be part of the file lock name and the experiment. Thank you
42
[distributed env] potentially unsafe parallel execution ``` metric = load_metric('glue', 'mrpc', num_process=num_process, process_id=rank) ``` presumes that there is only one set of parallel processes running - and will intermittently fail if you have multiple sets running as they will surely overwrite each other. Similar to https://github.com/huggingface/datasets/issues/1942 (but for a different reason). That's why dist environments use some unique to a group identifier so that each group is dealt with separately. e.g. the env-way of pytorch dist syncing is done with a unique per set `MASTER_ADDRESS+MASTER_PORT` So ideally this interface should ask for a shared secret to do the right thing. I'm not reporting an immediate need, but am only flagging that this will hit someone down the road. This problem can be remedied by adding a new optional `shared_secret` option, which can then be used to differentiate different groups of processes. and this secret should be part of the file lock name and the experiment. Thank you You can pass the same `experiment_id` for all the metrics of the same group, and use another `experiment_id` for the other groups. Maybe we can add an environment variable that sets the default value for `experiment_id` ? What do you think ?
[ -0.3388579785823822, -0.4435221254825592, -0.012153440155088902, 0.025914333760738373, -0.0003199577331542969, -0.11885174363851547, 0.4191743731498718, -0.022088032215833664, 0.6945430040359497, 0.3347567915916443, -0.07045745849609375, 0.257585734128952, 0.02085784077644348, 0.09218920767307281, -0.13298575580120087, -0.029275283217430115, -0.06194160133600235, -0.10000398755073547, -0.13307473063468933, -0.13483701646327972, -0.32300475239753723, 0.1404806673526764, -0.10864894092082977, 0.03323589265346527, -0.11156661808490753, -0.0510079562664032, -0.24524681270122528, 0.26684078574180603, -0.21929551661014557, -0.39620184898376465, -0.04709722846746445, 0.6610616445541382, -0.04015064239501953, 0.37817102670669556, -0.00010520991054363549, -0.0733862891793251, 0.14036160707473755, -0.17861321568489075, 0.12552441656589508, -0.03168162703514099, -0.0004160180687904358, -0.2217448651790619, 0.17876912653446198, -0.5844718813896179, 0.16185981035232544, -0.37493565678596497, 0.16023370623588562, -0.6200057864189148, 0.5229044556617737, -0.09204733371734619, 0.18281438946723938, 0.40896090865135193, -0.35703837871551514, -0.17782224714756012, 0.07554008066654205, -0.07413032650947571, 0.06227612495422363, 0.4285992681980133, 0.43821170926094055, -0.1648911088705063, -0.3774010241031647, 0.04792311415076256, -0.009532559663057327, 0.41122645139694214, 0.5238330960273743, 0.14570960402488708, 0.12895745038986206, -0.22623643279075623, -0.35907089710235596, 0.5437500476837158, 0.06215212494134903, -0.005918886512517929, -0.21750082075595856, -0.0875980406999588, -0.04452242702245712, -0.20186269283294678, 0.03165499493479729, 0.07307768613100052, -0.27550649642944336, 0.07011689245700836, -0.09080126136541367, 0.10950028896331787, -0.23342394828796387, -0.016613855957984924, 0.11798171699047089, 0.43917116522789, 0.15651822090148926, 0.3073609471321106, 0.40722164511680603, 0.17440032958984375, -0.5871922969818115, 0.32291504740715027, -0.15731564164161682, -0.1374911218881607, -0.21635226905345917, -0.07153795659542084, -0.13450103998184204, -0.2474493384361267, 0.2707519829273224, 0.21801835298538208, -0.18476052582263947, -0.03473547101020813, 0.5012079477310181, 0.22644558548927307, 0.173348531126976, 0.22254855930805206, -0.014500409364700317, 0.2927637994289398, 0.33716195821762085, 0.04639340937137604, 0.013074364513158798, 0.1034729927778244, 0.21545283496379852, -0.08660624176263809, 0.040712129324674606, 0.029197465628385544, 0.04151291400194168, -0.010233864188194275, -0.46654024720191956, 0.1799824982881546, 0.12967795133590698, -0.08979994058609009, 0.12748724222183228, 0.23495671153068542, 0.27613070607185364, -0.19848844408988953, 0.22400902211666107, 0.08911114931106567, -0.28509601950645447, 0.2397986352443695, -0.15580610930919647, -0.01920142024755478, -0.3922463357448578, 0.04793526977300644, -0.002312224358320236, 0.23546279966831207, 0.3477461040019989, 0.0911862775683403, 0.3725244402885437, 0.07115442305803299, 0.15798398852348328, 0.1498427540063858, 0.17484953999519348, 0.11640562117099762, -0.0279613696038723, -0.15332189202308655, 0.16139954328536987, -0.09244570881128311, -0.1918705701828003, -0.2538027763366699, -0.2990010678768158, -0.10781475156545639, -0.09574463963508606, 0.21044500172138214, -0.4288650155067444, 0.1794065684080124, 0.31278398633003235, -0.04418895021080971, -0.07376182824373245, -0.13540251553058624, 0.44121119379997253, -0.139759361743927, -0.060898128896951675, -0.10549505054950714, 0.06039223074913025, 0.5278874039649963, 0.11670626699924469, -0.31385338306427, 0.17339573800563812, -0.21315081417560577, -0.06268145889043808, 0.2512883245944977, -0.07313796132802963, -0.16332405805587769, -0.17261941730976105, 0.04513248801231384, 0.1839674413204193, -0.5704565644264221, -0.45517563819885254, 0.22675248980522156, -0.46299242973327637, -0.1833771914243698, 0.5246545672416687, 0.39921560883522034, 0.49193519353866577, -0.181674525141716, 0.1842801421880722, 0.1284998655319214, -0.022571219131350517, -0.021004481241106987, -0.21995416283607483, -0.21320827305316925, 0.20553915202617645, 0.1335555613040924, -0.04079001024365425, -0.029986634850502014, 0.18429526686668396, 0.0449088029563427, 0.3806385397911072, 0.059932637959718704, 0.049430541694164276, 0.024999670684337616, 0.20688393712043762, 0.02620513364672661, 0.17316167056560516, 0.07355916500091553, -0.07733773440122604, 0.19879946112632751, -0.25519853830337524, 0.07868543267250061, 0.1668829619884491, -0.2616327404975891, 0.05974489450454712, -0.18071351945400238, -0.30176395177841187, -0.36944928765296936, 0.1339282989501953, 0.10070931911468506, -0.42535334825515747, -0.22511428594589233, -0.17631593346595764, 0.4126907289028168, -0.002602657303214073, -0.07832532376050949, -0.17748969793319702, -0.11905252188444138, -0.28666073083877563, 0.004624287132173777, -0.03513078764081001, 0.10598951578140259, 0.16288377344608307, -0.1626185178756714, -0.1835407018661499, 0.3546159565448761, 0.30392956733703613, 0.10924641788005829, 0.3355320990085602, 0.18540841341018677, 0.11292127519845963, -0.15256020426750183, 0.15414643287658691, 0.03196599707007408, 0.029603615403175354, 0.04685232788324356, -0.17569980025291443, 0.3792434334754944, -0.16607588529586792, -0.04253210872411728, -0.17394953966140747, 0.20520968735218048, -0.040757641196250916, -0.1759888082742691, -0.3004971742630005, -0.11317318677902222, 0.5896610617637634, 0.20089806616306305, 0.187855064868927, 0.009700028225779533, -0.07259628921747208, 0.038904957473278046, 0.09340524673461914, 0.17920567095279694, 0.013048041611909866, -0.12905719876289368, 0.26405560970306396, 0.033838607370853424, 0.010035440325737, 0.36828184127807617, 0.5299088954925537, 0.29429125785827637, -0.003512192517518997, 0.2998712658882141, -0.022067978978157043, -0.28268760442733765, -0.008096098899841309, 0.030351672321558, -0.1510358303785324, 0.1437179297208786, -0.042794059962034225, 0.06231563165783882, -0.13876250386238098, -0.24969787895679474, 0.10679648071527481, 0.058183781802654266, -0.30082324147224426, 0.2420988827943802, -0.09281250089406967, 0.25033482909202576, -0.029537994414567947, -0.17505401372909546, -0.1717950850725174, -0.323800653219223, 0.29145675897598267, 0.08183756470680237, -0.45217224955558777, 0.18621058762073517, 0.05922704562544823, 0.3545640707015991, -0.14974883198738098, 0.07801029831171036, -0.06747283041477203, -0.3504396677017212, -0.02874142676591873, 0.03382660821080208, 0.06935537606477737, 0.28260529041290283, 0.7376533150672913, -0.08956391364336014, -0.17168481647968292, -0.38831719756126404, -0.16753891110420227, -0.05483177304267883, -0.29273873567581177, 0.5755820274353027, 0.37705662846565247, 0.11709701269865036, -0.15655189752578735, -0.20188917219638824, 0.12851572036743164, -0.4124995470046997, -0.15445025265216827, -0.12410531938076019, 0.07331812381744385, -0.28780555725097656, -0.3132179379463196, -0.4251736104488373, -0.38649067282676697, -0.3381041884422302, 0.17827509343624115, -0.18118248879909515, 0.14489459991455078, 0.06012265011668205, -0.351541668176651, -0.01522114034742117, 0.29288098216056824, -0.12439568340778351, -0.4747360646724701, -0.6132936477661133, 0.12478792667388916, -0.3289964199066162, -0.21057654917240143, -0.06991841644048691, 0.21357238292694092, -0.15817508101463318, 0.28090715408325195, -0.2412758469581604, -0.7833878397941589, 0.166914701461792, 0.1982206404209137, -0.16280268132686615, 0.06336337327957153, 0.2734375298023224, -0.09015607833862305, -0.1465456336736679, -0.1769040822982788, 0.018281694501638412, 0.5482850074768066, -0.05251453071832657, 0.18943166732788086, -0.11485635489225388, 0.08949549496173859, 0.00835736095905304, 0.5683794617652893, 0.3369278609752655, 0.012904338538646698, 0.40580421686172485, -0.14947427809238434, 0.4014568030834198, 0.10181885957717896, -0.28847062587738037, 0.31263425946235657, 0.22907491028308868, -0.22664017975330353, 0.05098123848438263, -0.2824375629425049, 0.2149924635887146, -0.029282432049512863, -0.11091671884059906, 0.15695485472679138, -0.3881772756576538, -0.11116263270378113, 0.012271508574485779, 0.08902990818023682, -0.20540565252304077, 0.13620805740356445, 0.022075563669204712, -0.02652057632803917, 0.031830765306949615, 0.5858513712882996, -0.012492701411247253, 0.11777966469526291, -0.07972069084644318, -0.16686518490314484, -0.35782450437545776, 0.4702192544937134, -0.07139376550912857, 0.48739689588546753, -0.3471035659313202, 0.008833475410938263, 0.15241500735282898, -0.013330549001693726, 0.5068032741546631, 0.061241135001182556, 0.1467699110507965, -0.05104423686861992, 0.0666099265217781, -0.09265933930873871, -0.28018543124198914, -0.25680965185165405, -0.0583576075732708, 0.22958147525787354, 0.12829738855361938, -0.4007205069065094, -0.32332080602645874, 0.06733399629592896, -0.16871187090873718, -0.3320309519767761, -0.4579872786998749, -0.44112831354141235, -0.28533610701560974, -0.3242385685443878, 0.25264132022857666, 0.07134290039539337, -0.18165624141693115, -0.02146490477025509, 0.008204925805330276, 0.14704003930091858, 0.24710887670516968, 0.09784819930791855, 0.08335892856121063, 0.11417719721794128, -0.19499625265598297, 0.13161438703536987, 0.4105846583843231, 0.18626323342323303, 0.08911065012216568, 0.2787953019142151, -0.2423749566078186, 0.030172131955623627, 0.1517164707183838, -0.16280141472816467, 0.08515896648168564, 0.3966119587421417, 0.06362585723400116, -0.042808257043361664, 0.054502181708812714, 0.33732056617736816, -0.31788742542266846, 0.025218334048986435, 0.3418806493282318, 0.03257223218679428, -0.11144916713237762, -0.08251959085464478, 0.11748145520687103, 0.1140536516904831, -0.2343800961971283, 0.37092262506484985, 0.019811324775218964, -0.14430813491344452, 0.3042149543762207, 0.1867205947637558, 0.9030946493148804, 0.031115468591451645, 0.22809450328350067, 0.2173772156238556, 0.07321739196777344, 0.16338670253753662, -0.017621951177716255, 0.0419674888253212, -0.3961947560310364, -0.34393274784088135, -0.18050697445869446, -0.13476942479610443, 0.2987571358680725, -0.29913973808288574, -0.34447699785232544, 0.3026091456413269, -0.0014974325895309448, -0.2954225242137909, -0.45239657163619995, 0.4312307834625244, -0.3331827223300934, -0.1938411295413971, 0.24190878868103027, 0.10940174758434296, -0.07541027665138245, 0.25648951530456543, -0.06211230531334877, -0.24368248879909515, 0.010554742068052292, -0.3213077187538147, -0.38906151056289673, -0.24242225289344788, 0.021955741569399834, 0.2903730273246765, -0.003932129591703415, -0.15802648663520813, -0.10698246955871582, -0.04139569774270058, 0.06641633808612823, 0.24616080522537231, -0.13287681341171265, 0.2183261513710022, -0.25348448753356934, 0.03856503218412399, 0.07614662498235703, -0.36032992601394653, 0.3276642858982086, -0.11718794703483582, -0.5082362294197083, -0.17557966709136963, 0.14540086686611176, -0.23816731572151184, 0.03327478468418121, 0.13996851444244385, 0.35572338104248047, -0.029696829617023468, 0.19755059480667114, -0.15107931196689606, -0.27654320001602173, -0.14187286794185638, 0.12205272912979126, 0.24282699823379517, -0.27913182973861694, 0.35593271255493164, -0.14600726962089539, -0.3269093334674835, 0.1301741600036621, 0.1035870686173439, -0.04826828092336655, -0.057016052305698395, 0.21075443923473358, -0.21358874440193176, -0.07688970118761063, -0.2594354748725891, 0.07093165069818497, -0.00810981635004282, 0.005034126341342926, 0.012250225991010666, 0.13088512420654297, -0.2050805687904358, 0.07979194074869156, 0.13936492800712585, 0.33012163639068604, 0.11700750887393951, 0.06052565202116966, -0.47160908579826355, -0.27712687849998474, 0.0881795883178711, -0.48261168599128723, 0.45300406217575073, 0.08736778050661087, 0.009403686970472336, 0.020022982731461525, 0.2794269025325775, -0.3884774148464203, 0.016566669568419456, -0.36010169982910156, -0.14829659461975098, 0.3039812445640564, -0.05867043137550354, 0.01617296040058136, -0.0914919525384903, 0.040394075214862823, 0.11124184727668762, -0.5826277136802673, -0.16323578357696533, -0.31435665488243103, 0.17230428755283356, -0.1240755096077919, -0.035366252064704895, 0.04861585050821304, -0.4985809922218323, -0.042213935405015945, -0.060510896146297455, 0.17974726855754852, 0.4235542416572571, -0.13835154473781586, 0.06990228593349457, 0.09847523272037506, 0.2840329110622406, 0.14197923243045807, 0.2620127201080322, 0.15050435066223145, -0.16041003167629242, -0.2000432312488556, 0.12106792628765106, -0.24180489778518677, -0.09770499914884567, -0.1702815145254135, 0.1415652334690094, 0.4924522638320923, 0.22729429602622986, -0.15550673007965088, 0.2823542356491089, -0.1449463814496994, -0.07721241563558578, 0.4140523076057434, 0.3748762309551239, -0.26123276352882385, -0.13078397512435913, 0.053816284984350204, 0.24839705228805542, -0.2528647184371948, -0.06490779668092728, 0.19498874247074127, 0.3159150779247284, 0.1384042203426361, 0.35987091064453125, 0.3957139849662781, -0.0030834749341011047, -0.1721447855234146, 0.00372314453125, 0.3735215961933136, -0.17758715152740479, 0.23390865325927734, -0.24439677596092224, -0.15107461810112, 0.16083116829395294, 0.3821862041950226, 0.013973532244563103, 0.3264162540435791, 0.011032886803150177, -0.2467033863067627, 0.37271517515182495, 0.36072659492492676, 0.09103681147098541, 0.09668858349323273, -0.027984078973531723, 0.07269111275672913, -0.147321879863739, -0.06891170144081116, 0.08487832546234131, 0.2389337420463562, 0.621289849281311, -0.5725148916244507, -0.15531273186206818, -0.24761724472045898, 0.3540133535861969, -0.1840917468070984, -0.010613122954964638, 0.1967909336090088, -0.10304155945777893, -0.15268611907958984, -0.17998473346233368, 0.24368329346179962, -0.03526819497346878, 0.29755377769470215, 0.24691404402256012, 0.10619444400072098, -0.2136853039264679, -0.1666724681854248, 0.18434467911720276, 0.15778879821300507, -0.4586440920829773, -0.15519331395626068, 0.3142167329788208, -0.1442609280347824, 0.44450050592422485, 0.34672480821609497, 0.2973741590976715, 0.12907856702804565, -0.2095438539981842, -0.028506789356470108, 0.08482731878757477, 0.17004802823066711, -0.11638346314430237, 0.1652919054031372, -0.013125136494636536, -0.3018895387649536, 0.21050943434238434, 0.1445438414812088, -0.13363221287727356, 0.07900427281856537, 0.10948386043310165, -0.0485222227871418, -0.05896401405334473, 0.5235517024993896, 0.09811177849769592, 0.08143187314271927, 0.08044512569904327, 0.10094685107469559, -0.6264939904212952, 0.13668790459632874, 0.07188475131988525, 0.09417727589607239, 0.20183131098747253, -0.3069218397140503, 0.11718472838401794, -0.011822070926427841, 0.3767244517803192, 0.13909859955310822, 0.08681600540876389, -0.46196985244750977, 0.17214582860469818, -0.7986823916435242, 0.5472492575645447, 0.05340626463294029, -0.43155530095100403, -0.016055939719080925, 0.044231198728084564, 0.05838056653738022, 0.12643282115459442, 0.3685823380947113, 0.3651018738746643, -0.03727439045906067, 0.3127583861351013, -0.5110434889793396, 0.219771146774292, 0.10672073066234589, -0.16560237109661102, 0.21293020248413086, -0.21727204322814941, 0.18083441257476807, -0.012427023611962795, 0.06761311739683151, 0.07022333145141602, 0.070980966091156, 0.24768799543380737, 0.049905262887477875, 0.293714702129364, 0.05758160352706909, 0.5136563777923584, -0.020278245210647583, -0.019146818667650223, -0.10748106241226196, -0.02727961353957653, -0.22700972855091095, -0.39026114344596863, 0.19943983852863312, 0.017068222165107727, -0.20867641270160675, -0.18344424664974213, -0.4254193902015686, 0.17466077208518982, -0.28873318433761597, -0.030068090185523033, -0.3006603419780731, 0.2215658724308014, 0.03888052701950073, 0.13030073046684265, 0.01459162961691618, 0.32734954357147217, 0.20442542433738708, 0.14324766397476196, -0.12792667746543884, -0.08463335037231445, 0.5487350225448608, -0.2959802448749542, -0.18674065172672272, -0.2512259781360626, 0.4572092890739441, 0.10848771035671234, 0.13576121628284454, -0.4568594694137573, 0.008092723786830902, 0.023304451256990433, -0.08946618437767029, -0.34601491689682007, 0.15372702479362488, -0.21210581064224243, -0.19140762090682983, -0.04433787614107132, 0.022672545164823532, 0.09701357781887054, -0.4199601411819458, 0.20083341002464294, -0.18240444362163544 ]
https://github.com/huggingface/datasets/issues/1956
[distributed env] potentially unsafe parallel execution
Ah, you're absolutely correct, @lhoestq - it's exactly the equivalent of the shared secret. Thank you!
``` metric = load_metric('glue', 'mrpc', num_process=num_process, process_id=rank) ``` presumes that there is only one set of parallel processes running - and will intermittently fail if you have multiple sets running as they will surely overwrite each other. Similar to https://github.com/huggingface/datasets/issues/1942 (but for a different reason). That's why dist environments use some unique to a group identifier so that each group is dealt with separately. e.g. the env-way of pytorch dist syncing is done with a unique per set `MASTER_ADDRESS+MASTER_PORT` So ideally this interface should ask for a shared secret to do the right thing. I'm not reporting an immediate need, but am only flagging that this will hit someone down the road. This problem can be remedied by adding a new optional `shared_secret` option, which can then be used to differentiate different groups of processes. and this secret should be part of the file lock name and the experiment. Thank you
16
[distributed env] potentially unsafe parallel execution ``` metric = load_metric('glue', 'mrpc', num_process=num_process, process_id=rank) ``` presumes that there is only one set of parallel processes running - and will intermittently fail if you have multiple sets running as they will surely overwrite each other. Similar to https://github.com/huggingface/datasets/issues/1942 (but for a different reason). That's why dist environments use some unique to a group identifier so that each group is dealt with separately. e.g. the env-way of pytorch dist syncing is done with a unique per set `MASTER_ADDRESS+MASTER_PORT` So ideally this interface should ask for a shared secret to do the right thing. I'm not reporting an immediate need, but am only flagging that this will hit someone down the road. This problem can be remedied by adding a new optional `shared_secret` option, which can then be used to differentiate different groups of processes. and this secret should be part of the file lock name and the experiment. Thank you Ah, you're absolutely correct, @lhoestq - it's exactly the equivalent of the shared secret. Thank you!
[ -0.24386318027973175, -0.5634170174598694, -0.02524031326174736, -0.0789235532283783, -0.08833110332489014, -0.046587273478507996, 0.4310415983200073, -0.09473545849323273, 0.6884127855300903, 0.3382447361946106, -0.032446376979351044, 0.24160604178905487, 0.029499012976884842, 0.06510771811008453, -0.06623558700084686, 0.05155015364289284, -0.013719327747821808, -0.0775892436504364, -0.23235836625099182, -0.13883480429649353, -0.25816699862480164, 0.1642913967370987, -0.13473904132843018, 0.11826197803020477, -0.13105536997318268, -0.0675269290804863, -0.2938539683818817, 0.35187315940856934, -0.20695357024669647, -0.37345370650291443, -0.05111001059412956, 0.588539719581604, -0.11151569336652756, 0.34703168272972107, -0.00010254355584038422, -0.029089700430631638, 0.23907490074634552, -0.18402117490768433, 0.09377513825893402, -0.022516340017318726, -0.006396081298589706, -0.21477997303009033, 0.23909024894237518, -0.6090912222862244, 0.2548007667064667, -0.317823588848114, 0.34650668501853943, -0.5903226137161255, 0.4716377854347229, -0.191770538687706, 0.21142001450061798, 0.4353039264678955, -0.23836997151374817, -0.21038877964019775, 0.07676949352025986, -0.14817312359809875, 0.06493785977363586, 0.36591970920562744, 0.4074764847755432, -0.16500122845172882, -0.3139854967594147, -0.03954361006617546, 0.04359852522611618, 0.37710893154144287, 0.542366623878479, 0.2160796821117401, -0.007824644446372986, -0.31595343351364136, -0.3685433864593506, 0.5449939370155334, 0.06899262964725494, -0.017568156123161316, -0.15521319210529327, -0.04322380572557449, -0.1245841458439827, -0.062433600425720215, 0.04052193462848663, 0.08017698675394058, -0.27956655621528625, 0.0957411527633667, -0.06339452415704727, 0.20756113529205322, -0.14290869235992432, -0.04526561498641968, 0.09621454775333405, 0.4674387276172638, 0.14512991905212402, 0.3589618504047394, 0.3896107077598572, 0.26260703802108765, -0.5951409935951233, 0.2887127101421356, -0.07769733667373657, -0.10115016996860504, -0.1418190896511078, -0.06186574697494507, -0.0439789742231369, -0.18905240297317505, 0.20889469981193542, 0.17671239376068115, -0.22180193662643433, -0.09644215553998947, 0.452138751745224, 0.2948693633079529, 0.1431003361940384, 0.14083708822727203, -0.06962550431489944, 0.2683867812156677, 0.3005170524120331, 0.02066148817539215, 0.030678700655698776, 0.13632456958293915, 0.21088886260986328, 0.0027398383244872093, 0.044530075043439865, -0.035155996680259705, 0.02387956529855728, 0.057675156742334366, -0.4421535134315491, 0.17518620193004608, 0.07979636639356613, -0.10013582557439804, 0.016064275056123734, 0.18299219012260437, 0.3118673264980316, -0.2796676754951477, 0.17519235610961914, -0.1004708856344223, -0.2744460701942444, 0.291032612323761, -0.16422419250011444, 0.037668127566576004, -0.3985896408557892, -0.09585952013731003, -0.09179516136646271, 0.09608754515647888, 0.3988891839981079, 0.08687102049589157, 0.4171561598777771, 0.1293654590845108, 0.22417719662189484, 0.1347908228635788, 0.27591660618782043, 0.1784474402666092, -0.0017332695424556732, -0.20296230912208557, 0.2175431251525879, -0.081027090549469, -0.22095432877540588, -0.216037780046463, -0.2931857109069824, -0.07745900750160217, -0.14738798141479492, 0.24218276143074036, -0.356035053730011, 0.20104233920574188, 0.3800361156463623, -0.1475384384393692, -0.10681713372468948, -0.09832983464002609, 0.5739682912826538, -0.1218077540397644, 0.08308884501457214, -0.08407076448202133, 0.020189033821225166, 0.48589861392974854, 0.07170097529888153, -0.2658758759498596, 0.2152179479598999, -0.2768608629703522, -0.052213527262210846, 0.2739191949367523, -0.08503080904483795, -0.2639809846878052, -0.24579283595085144, 0.16073626279830933, 0.13079914450645447, -0.4818883240222931, -0.40573573112487793, 0.22609436511993408, -0.4426649808883667, -0.13565833866596222, 0.5243064761161804, 0.39776262640953064, 0.3573782742023468, -0.10867147892713547, 0.18214789032936096, 0.05344101041555405, 0.01588243618607521, -0.029905132949352264, -0.1290167272090912, -0.19473405182361603, 0.09866544604301453, 0.05324055626988411, -0.1217261552810669, -0.051457591354846954, 0.2830914855003357, 0.032983265817165375, 0.39584189653396606, 0.09936007857322693, 0.0005166404880583286, -0.021189916878938675, 0.09796808660030365, 0.11561132967472076, 0.21231792867183685, 0.15433645248413086, -0.09075339883565903, 0.24834159016609192, -0.3218514323234558, 0.13704198598861694, 0.12543107569217682, -0.23333175480365753, 0.06567888706922531, -0.10632544755935669, -0.26597389578819275, -0.34089457988739014, 0.15977869927883148, 0.10320405662059784, -0.4180200695991516, -0.27548784017562866, -0.20622621476650238, 0.4432169497013092, -0.013852015137672424, -0.10898507386445999, -0.21696792542934418, -0.12681418657302856, -0.33461564779281616, 0.07277524471282959, -0.14068275690078735, 0.036524780094623566, 0.07471384108066559, -0.1410052478313446, -0.16478756070137024, 0.35445767641067505, 0.31959372758865356, 0.10617965459823608, 0.302287757396698, 0.19273240864276886, 0.03287753090262413, -0.12416636943817139, 0.1496136486530304, 0.07563072443008423, 0.1013348251581192, 0.08011757582426071, -0.08737208694219589, 0.25631892681121826, -0.14551180601119995, -0.10933192819356918, -0.13758066296577454, 0.13144467771053314, -0.07657310366630554, -0.1365867704153061, -0.2957271933555603, -0.10351082682609558, 0.6106171011924744, 0.3171093463897705, 0.23199628293514252, 0.02401643432676792, -0.08378472179174423, -0.026204131543636322, 0.11933824419975281, 0.11293785274028778, 0.03772292286157608, -0.1472761034965515, 0.24997150897979736, -0.038914479315280914, -0.02892669104039669, 0.37694934010505676, 0.513067364692688, 0.25030747056007385, 0.07169939577579498, 0.3051801025867462, 0.0016122744418680668, -0.2875818610191345, 0.03587329387664795, 0.05614153668284416, -0.11261671036481857, 0.06842188537120819, -0.043501898646354675, 0.04935668036341667, -0.15184873342514038, -0.3390769362449646, 0.13302715122699738, -0.03044169582426548, -0.18094471096992493, 0.21083632111549377, -0.0941149964928627, 0.2258036732673645, -0.049672842025756836, -0.1246388629078865, -0.2088014930486679, -0.4025353193283081, 0.2573353052139282, 0.09177292883396149, -0.4607616066932678, 0.09516966342926025, -0.038573410362005234, 0.26648998260498047, -0.17466577887535095, 0.07355890423059464, -0.12355051934719086, -0.32146406173706055, -0.04370681196451187, 0.0795469731092453, -0.08806323260068893, 0.2526983618736267, 0.7304577827453613, -0.1311328262090683, -0.20094332098960876, -0.372440367937088, -0.1643538773059845, 0.046200867742300034, -0.3329814672470093, 0.4429241418838501, 0.4895547926425934, 0.0533522367477417, -0.11206017434597015, -0.1844491958618164, 0.08406656980514526, -0.38303476572036743, -0.26600873470306396, -0.18450169265270233, 0.10685499757528305, -0.3374788463115692, -0.3387931287288666, -0.36855798959732056, -0.4663524627685547, -0.30140194296836853, 0.24197472631931305, -0.17622517049312592, 0.15747879445552826, 0.0984286367893219, -0.40440696477890015, 0.043308764696121216, 0.2788305878639221, -0.14253917336463928, -0.4990937113761902, -0.5869210362434387, 0.07714153081178665, -0.29535993933677673, -0.1439429372549057, -0.04534216225147247, 0.15769246220588684, -0.20123210549354553, 0.16354908049106598, -0.24145589768886566, -0.7453756332397461, 0.0937657281756401, 0.2354436218738556, -0.09968632459640503, 0.04349367320537567, 0.3776492774486542, -0.09505218267440796, -0.21618762612342834, -0.2172876000404358, 0.061105553060770035, 0.4402583837509155, -0.026333268731832504, 0.12343039363622665, -0.021924428641796112, 0.08857408910989761, -0.0025027766823768616, 0.5244185924530029, 0.2314627766609192, 0.04150325804948807, 0.34376591444015503, -0.19125494360923767, 0.4083034098148346, -0.07386597245931625, -0.2043548822402954, 0.29848089814186096, 0.18654216825962067, -0.37117987871170044, 0.04713444784283638, -0.34685811400413513, 0.1800028383731842, 0.009112823754549026, -0.0582052543759346, 0.21169057488441467, -0.28574714064598083, -0.16053259372711182, 0.03551987186074257, 0.017233245074748993, -0.16561584174633026, 0.06951382011175156, 0.1110113263130188, -0.00955317635089159, 0.014305394142866135, 0.5648729801177979, -0.034772612154483795, 0.10024812072515488, -0.10710999369621277, -0.21368010342121124, -0.3458731174468994, 0.4169006943702698, -0.023503437638282776, 0.44926705956459045, -0.3281523883342743, -0.13479511439800262, 0.23456430435180664, 0.009292012080550194, 0.4790719151496887, 0.11264600604772568, 0.12306806445121765, -0.028025737032294273, 0.1007867157459259, 0.005192166194319725, -0.31535059213638306, -0.32672926783561707, -0.04210840165615082, 0.19923123717308044, 0.0815793126821518, -0.33777889609336853, -0.26193204522132874, -0.012427926063537598, -0.21600329875946045, -0.31025129556655884, -0.4012085199356079, -0.5420240163803101, -0.2751144766807556, -0.3600604236125946, 0.23925670981407166, 0.13092176616191864, -0.22036412358283997, -0.0489160418510437, 0.07707735896110535, 0.19680264592170715, 0.3031550347805023, 0.009149879217147827, 0.17453117668628693, 0.05399886891245842, -0.16380885243415833, 0.008414585143327713, 0.3750191330909729, 0.28095483779907227, -0.05843528360128403, 0.2942315936088562, -0.1721457540988922, 0.14522327482700348, 0.29478296637535095, -0.18582728505134583, 0.013918675482273102, 0.26528728008270264, 0.08812389522790909, -0.02777237445116043, 0.05514879897236824, 0.31722527742385864, -0.27779895067214966, -0.08820191770792007, 0.3498706817626953, 0.02993566170334816, -0.07990683615207672, -0.04342609643936157, 0.05509721487760544, 0.05680490657687187, -0.2567831873893738, 0.2959790825843811, 0.05659174919128418, -0.0883459746837616, 0.22758053243160248, 0.1434839367866516, 0.862320065498352, 0.06246846541762352, 0.4144764244556427, 0.18137729167938232, 0.05222304165363312, 0.26320794224739075, 0.05155376344919205, 0.06292037665843964, -0.41024380922317505, -0.38622671365737915, -0.24339649081230164, -0.1412842720746994, 0.27266809344291687, -0.30263346433639526, -0.40035519003868103, 0.3024197220802307, 0.03943532705307007, -0.2073441445827484, -0.40992164611816406, 0.3298555612564087, -0.2978419363498688, -0.08982890844345093, 0.27293282747268677, 0.11636592447757721, 0.061158325523138046, 0.39242440462112427, -0.07177862524986267, -0.12018443644046783, -0.032047998160123825, -0.35058099031448364, -0.3782680630683899, -0.20398199558258057, 0.01131301000714302, 0.3753528594970703, 0.03563699126243591, -0.0861976370215416, -0.19791142642498016, -0.06431874632835388, -0.013330437242984772, 0.23680958151817322, -0.10938464105129242, 0.2227955460548401, -0.09766378253698349, 0.023957574740052223, 0.1493282914161682, -0.3480626046657562, 0.35578474402427673, -0.08913026750087738, -0.4809231162071228, -0.05535271763801575, 0.03743729367852211, -0.2613356113433838, -0.0033928751945495605, 0.281375527381897, 0.3861352205276489, 0.01698353886604309, 0.09927952289581299, -0.13768711686134338, -0.33111292123794556, -0.08527648448944092, 0.12797962129116058, 0.1529994010925293, -0.28783518075942993, 0.207971453666687, -0.15810513496398926, -0.38796794414520264, 0.17958737909793854, 0.10254258662462234, -0.0463123545050621, -0.03172709047794342, 0.2740696668624878, -0.20995379984378815, -0.056341201066970825, -0.21965673565864563, 0.07899478822946548, -0.037082329392433167, 0.03299754112958908, 0.01562015525996685, 0.14470814168453217, -0.2545280158519745, 0.05529685318470001, 0.12857723236083984, 0.3506363034248352, 0.2885812222957611, -0.028439553454518318, -0.4474083483219147, -0.3208756744861603, 0.016021236777305603, -0.4509330689907074, 0.4844256639480591, 0.22113066911697388, -0.032223496586084366, 0.1585775762796402, 0.15677057206630707, -0.3978053629398346, 0.031929370015859604, -0.4641880691051483, -0.12486667931079865, 0.3408118486404419, -0.07525425404310226, 0.06039789319038391, -0.06418920308351517, 0.09062130004167557, 0.1348000168800354, -0.5935942530632019, -0.18637612462043762, -0.3097168505191803, 0.13947653770446777, -0.17530536651611328, -0.03864765912294388, 0.07298782467842102, -0.47417980432510376, -0.004261951893568039, 0.00989537313580513, 0.21459819376468658, 0.4166870415210724, -0.131497323513031, 0.07421861588954926, 0.19489826261997223, 0.20956093072891235, -0.0010700374841690063, 0.227753683924675, 0.12706631422042847, -0.1274961233139038, -0.17416352033615112, 0.06593427807092667, -0.3609359860420227, -0.1272585690021515, -0.19180060923099518, 0.23600322008132935, 0.46320581436157227, 0.28043049573898315, -0.14667513966560364, 0.3265671730041504, -0.10628452897071838, -0.21879887580871582, 0.42667436599731445, 0.3294386863708496, -0.26427075266838074, -0.2751123607158661, 0.09690286964178085, 0.22935301065444946, -0.2391543835401535, -0.08738147467374802, 0.20023907721042633, 0.2963556945323944, 0.1713222861289978, 0.289986789226532, 0.35270845890045166, 0.06610347330570221, -0.2116885632276535, -0.007586656138300896, 0.3411172032356262, -0.1817127913236618, 0.15773385763168335, -0.1876581609249115, -0.18358619511127472, 0.2591574788093567, 0.37269315123558044, -0.11586418747901917, 0.3025059103965759, -0.0012331567704677582, -0.30719703435897827, 0.3853195905685425, 0.4048244059085846, 0.05814843252301216, 0.1763489693403244, 0.014160476624965668, 0.10942865908145905, -0.10976973176002502, -0.08810336887836456, 0.16427147388458252, 0.17532551288604736, 0.5363359451293945, -0.5529483556747437, -0.015297600999474525, -0.23363462090492249, 0.3381831645965576, -0.16720616817474365, -0.11169587075710297, 0.2486126720905304, -0.08184618502855301, -0.1377282738685608, -0.17034649848937988, 0.233686625957489, 0.022230561822652817, 0.3978542983531952, 0.22348809242248535, 0.15075203776359558, -0.15504039824008942, -0.1522809863090515, 0.09446810930967331, 0.10136602073907852, -0.49494677782058716, -0.18250474333763123, 0.3110482096672058, -0.11966440081596375, 0.4652063846588135, 0.3376263380050659, 0.3382672667503357, 0.10545334964990616, -0.14652305841445923, 0.013880628161132336, 0.07668701559305191, 0.15302810072898865, -0.13370385766029358, 0.14226418733596802, -0.0048861876130104065, -0.24547742307186127, 0.1626686155796051, 0.1714867800474167, -0.13599509000778198, 0.08459524810314178, 0.13941408693790436, -0.018851887434720993, -0.04884495586156845, 0.48340922594070435, 0.06463336199522018, 0.03629005700349808, 0.04166131466627121, 0.30519476532936096, -0.6858350038528442, 0.10997629165649414, 0.09440870583057404, 0.10074402391910553, 0.17099344730377197, -0.26725590229034424, 0.12593938410282135, -0.04703047499060631, 0.4904877543449402, 0.21885882318019867, 0.13421469926834106, -0.3599071800708771, 0.20006029307842255, -0.6501306295394897, 0.5871245861053467, 0.07819825410842896, -0.5412565469741821, -0.04656264930963516, 0.02647189237177372, 0.08515428751707077, 0.03362353891134262, 0.32508379220962524, 0.3061600625514984, -0.12712988257408142, 0.33443015813827515, -0.3145224153995514, 0.15047021210193634, 0.044455528259277344, -0.14692357182502747, 0.15821534395217896, -0.2173137366771698, 0.13036420941352844, 0.03237467259168625, 0.08129719644784927, 0.032424405217170715, 0.06893308460712433, 0.29046058654785156, -0.008009765297174454, 0.2579013705253601, 0.08191142976284027, 0.4832310974597931, -0.07485902309417725, -0.0566992312669754, -0.025348659604787827, -0.05596919730305672, -0.17126858234405518, -0.3650260865688324, 0.22432272136211395, -0.08699285984039307, -0.19016391038894653, -0.17998288571834564, -0.3332698345184326, 0.258737176656723, -0.2860460579395294, -0.042076077312231064, -0.3193354606628418, 0.12789753079414368, 0.006823502480983734, 0.11460031569004059, 0.07439029216766357, 0.37675151228904724, 0.2553520202636719, 0.0016884580254554749, -0.09779926389455795, -0.09053924679756165, 0.46776899695396423, -0.32823947072029114, -0.1754850298166275, -0.3249818682670593, 0.37090015411376953, 0.03767196089029312, 0.1435146927833557, -0.44036638736724854, 0.003519311547279358, 0.03173072263598442, -0.07575046271085739, -0.3692750930786133, 0.1333637535572052, -0.14574556052684784, -0.1425708681344986, -0.11559255421161652, 0.11949524283409119, 0.10374719649553299, -0.43057405948638916, 0.17318399250507355, -0.19771036505699158 ]
https://github.com/huggingface/datasets/issues/1954
add a new column
Hi not sure how change the lable after creation, but this is an issue not dataset request. thanks
Hi I'd need to add a new column to the dataset, I was wondering how this can be done? thanks @lhoestq
18
add a new column Hi I'd need to add a new column to the dataset, I was wondering how this can be done? thanks @lhoestq Hi not sure how change the lable after creation, but this is an issue not dataset request. thanks
[ -0.23425191640853882, -0.054911158978939056, -0.18129079043865204, -0.0524512454867363, 0.016532858833670616, 0.03545749932527542, 0.33985990285873413, -0.036601532250642776, 0.0798497349023819, 0.1445067822933197, 0.010777703486382961, 0.19783425331115723, 0.03063620626926422, 0.37192031741142273, 0.14029084146022797, 0.10706348717212677, -0.24835950136184692, 0.45181161165237427, -0.17405301332473755, -0.07291872799396515, -0.34564319252967834, -0.07782682031393051, 0.17911876738071442, -0.27704036235809326, -0.3205133080482483, -0.22028692066669464, 0.032080039381980896, 0.09791088104248047, -0.34908220171928406, -0.40738749504089355, -0.007171370089054108, 0.319930762052536, -0.0588899627327919, 0.12599346041679382, -0.00010250038758385926, -0.16518735885620117, -0.07424624264240265, -0.16725826263427734, -0.2324923872947693, 0.1484256237745285, -0.22250524163246155, -0.12047075480222702, -0.06497862935066223, -0.21218600869178772, -0.4337715208530426, 0.06666149199008942, -0.0907050147652626, -0.4884948432445526, -0.002818465232849121, 0.36390388011932373, 0.36487454175949097, 0.13792039453983307, -0.1298268735408783, -0.351028174161911, 0.2751467227935791, 0.00801406055688858, -0.11318879574537277, 0.11602909862995148, 0.1404920220375061, -0.06844522058963776, -0.14307954907417297, 0.04524074122309685, 0.5009626746177673, 0.10056152939796448, 0.0736442282795906, 0.007634955924004316, -0.012220241129398346, -0.0688309445977211, 0.28710341453552246, 0.25321269035339355, 0.5526142716407776, -0.14738312363624573, -0.21274298429489136, 0.027734696865081787, 0.27150958776474, -0.395032674074173, -0.10236892849206924, 0.022989589720964432, 0.10353782773017883, 0.0007529854774475098, 0.3265816867351532, -0.3593199551105499, -0.3072420060634613, 0.10333740711212158, -0.15099021792411804, 0.3630673587322235, -0.09375336021184921, -0.023256227374076843, -0.14383366703987122, -0.04573564976453781, 0.04057915508747101, 0.5270217657089233, -0.04868738725781441, 0.0868929848074913, -0.1699163168668747, -0.15344953536987305, 0.1258375495672226, 0.07719798386096954, -0.0013113953173160553, 0.007196808233857155, 0.01306078676134348, -0.1483258605003357, -0.10181022435426712, -0.049140892922878265, -0.09854142367839813, -0.25861164927482605, 0.22411784529685974, 0.08142383396625519, 0.07129229605197906, -0.12503963708877563, -0.14090301096439362, -0.3387119770050049, 0.09047730267047882, -0.05911291763186455, 0.03750728443264961, -0.02556348592042923, 0.19081299006938934, -0.13255071640014648, -0.10774769634008408, -0.09479542076587677, 0.16827356815338135, -0.08055192232131958, 0.029844980686903, 0.4504489302635193, 0.1969483494758606, -0.012531135231256485, -0.04283449798822403, 0.1681358516216278, 0.00004460848867893219, -0.3650209903717041, -0.2425490915775299, 0.040648069232702255, 0.023459989577531815, 0.04460299760103226, 0.06423850357532501, 0.1984076052904129, 0.3595161736011505, 0.06593848019838333, -0.026197507977485657, 0.14531905949115753, 0.17304880917072296, -0.03965837508440018, 0.25904181599617004, 0.1630305051803589, -0.03377513587474823, 0.03899165242910385, -0.06438544392585754, -0.007022857666015625, 0.019939936697483063, 0.04741475731134415, 0.07716644555330276, -0.0852072462439537, -0.6027125120162964, 0.2963128387928009, 0.32698458433151245, -0.29822808504104614, 0.15073710680007935, 0.1876557618379593, -0.14073267579078674, -0.2708618640899658, 0.08052264153957367, 0.1842944324016571, -0.14452791213989258, -0.18880334496498108, -0.09081747382879257, -0.051337167620658875, -0.34426742792129517, -0.007960088551044464, -0.2085408866405487, -0.10718786716461182, 0.14127621054649353, -0.1655448079109192, -0.07017424702644348, 0.17136365175247192, -0.03675195574760437, 0.08762216567993164, 0.5381989479064941, -0.031059589236974716, -0.3604516386985779, -0.2498096227645874, -0.1576157808303833, -0.3682187497615814, 0.2996691167354584, 0.5366458296775818, -0.011744890362024307, 0.020674478262662888, -0.20449858903884888, 0.02474212273955345, -0.2616030275821686, -0.09835194051265717, -0.11634446680545807, -0.028687670826911926, 0.13656659424304962, 0.06147881969809532, 0.12480202317237854, 0.1944219172000885, 0.35424157977104187, 0.16887661814689636, 0.14222529530525208, -0.2761053740978241, -0.07721507549285889, 0.11451180279254913, 0.56055748462677, 0.00423014909029007, -0.060350798070430756, -0.0865187793970108, -0.38093799352645874, -0.13190144300460815, -0.24192194640636444, 0.0342390313744545, 0.24100731313228607, -0.37804996967315674, -0.38331857323646545, -0.16412748396396637, -0.011692676693201065, -0.04706170782446861, 0.2636744976043701, 0.19561660289764404, -0.05683143809437752, -0.2675727903842926, -0.09892797470092773, 0.1625026911497116, -0.09588858485221863, -0.11355973035097122, -0.26823151111602783, 0.042656704783439636, -0.09479997307062149, -0.16589733958244324, 0.2144950032234192, 0.1803324818611145, 0.24926969408988953, 0.19121231138706207, -0.06452072411775589, 0.18310409784317017, -0.07892613112926483, 0.23831559717655182, 0.2969735562801361, 0.10078271478414536, 0.044755831360816956, 0.16802363097667694, 0.0345778651535511, -0.2406419962644577, 0.031039219349622726, 0.2692004144191742, -0.284274160861969, 0.1433786004781723, 0.015319118276238441, -0.17715424299240112, 0.030352257192134857, -0.11713814735412598, 0.20753902196884155, -0.31551435589790344, 0.15549683570861816, -0.5195196866989136, 0.08139891177415848, 0.03968968242406845, -0.04321477189660072, -0.033990904688835144, -0.3423890173435211, 0.29297271370887756, 0.18482179939746857, 0.14852501451969147, 0.2735670804977417, -0.024573124945163727, -0.10604307800531387, -0.034594252705574036, -0.02835824526846409, 0.3750406801700592, 0.1763315498828888, 0.39459091424942017, 0.09668736904859543, -0.06564006209373474, -0.10753848403692245, -0.25654637813568115, -0.09513678401708603, -0.3713630437850952, 0.08351857960224152, 0.23704952001571655, 0.34341633319854736, -0.3087705671787262, -0.4307767450809479, 0.09735541045665741, 0.06297972798347473, 0.37898170948028564, -0.20947717130184174, -0.21843321621418, -0.0958884209394455, 0.012611035257577896, 0.02700420841574669, 0.04286499693989754, 0.14224936068058014, -0.20521342754364014, 0.2989898920059204, 0.2755521833896637, -0.08692162483930588, -0.016935942694544792, -0.24051906168460846, 0.3863029479980469, 0.15152591466903687, 0.2785090506076813, -0.003132779151201248, -0.35062548518180847, 0.1799202859401703, 0.28967276215553284, -0.2606053054332733, 0.1840180903673172, 0.806086003780365, -0.148334339261055, 0.22072772681713104, -0.4004448652267456, -0.39261192083358765, -0.09638950228691101, 0.26226261258125305, 0.3963688313961029, 0.11593299359083176, 0.25797122716903687, -0.04146512225270271, -0.11636292189359665, 0.08504175394773483, -0.11838874965906143, -0.17838960886001587, -0.24188384413719177, -0.2830153703689575, 0.303008109331131, 0.0470832996070385, -0.6182641983032227, 0.14254042506217957, -0.21142591536045074, 0.09269574284553528, 0.04515950754284859, 0.024338584393262863, -0.2476557344198227, -0.10877863317728043, -0.08073727041482925, -0.17660655081272125, 0.019231576472520828, -0.5788747072219849, -0.3256312608718872, 0.2002629041671753, -0.4118051528930664, -0.2977396845817566, -0.18874181807041168, -0.13719844818115234, 0.3828655183315277, -0.17593689262866974, -0.09620966017246246, -0.252666711807251, -0.19495616853237152, 0.22477799654006958, -0.1720818430185318, 0.029429808259010315, 0.5308917760848999, -0.16516347229480743, -0.238684743642807, -0.2381104826927185, -0.18471075594425201, 0.13962438702583313, 0.29876160621643066, 0.10109923779964447, -0.29283636808395386, 0.3094173073768616, -0.2106475830078125, 0.1787431538105011, -0.20579886436462402, -0.2192952185869217, 0.4171488583087921, -0.44350916147232056, 0.44001463055610657, 0.006204277276992798, -0.24366453289985657, 0.04646209627389908, 0.3540068566799164, 0.20395401120185852, 0.1661485880613327, 0.04585485905408859, 0.011786201037466526, 0.10087628662586212, -0.021409260109066963, -0.3324843645095825, -0.13767652213573456, 0.05811574310064316, -0.12523572146892548, 0.28810250759124756, 0.009422779083251953, -0.2280370593070984, -0.457238107919693, -0.11592947691679001, -0.15131020545959473, -0.06434261798858643, 0.059096772223711014, -0.363108366727829, -0.4082348644733429, -0.005882476456463337, -0.31753984093666077, 0.16572964191436768, 0.07850142568349838, 0.24076813459396362, -0.1516019105911255, 0.013290956616401672, 0.06752391904592514, -0.07930461317300797, 0.43091315031051636, -0.42508628964424133, -0.06465478986501694, 0.12956967949867249, 0.1728390008211136, -0.2631373107433319, 0.31786075234413147, -0.22508925199508667, 0.21267084777355194, 0.013209614902734756, 0.34535080194473267, -0.06168249249458313, 0.025137975811958313, 0.4632739722728729, 0.21843838691711426, -0.3159710764884949, -0.21715323626995087, -0.18420787155628204, -0.2916346490383148, -0.22767460346221924, 0.08148973435163498, -0.0870785117149353, 0.19124530255794525, 0.3089253306388855, -0.11606249213218689, -0.1407405138015747, -0.22071051597595215, 0.14880706369876862, 0.2851308286190033, 0.0713689848780632, 0.3882254958152771, 0.11600150167942047, -0.1079922765493393, 0.03006870299577713, 0.16717961430549622, 0.2251330018043518, -0.2639661431312561, 0.18202170729637146, 0.057005874812603, -0.3748994767665863, 0.45640087127685547, 0.08951257169246674, 0.1582806259393692, 0.4401008188724518, -0.12842054665088654, 0.09474418312311172, -0.1609489619731903, 0.2963094711303711, 0.3025246858596802, -0.1867973804473877, -0.020495126023888588, -0.20338213443756104, 0.39913228154182434, -0.06631067395210266, -0.20366165041923523, 0.27022820711135864, 0.2597518861293793, -0.11186806112527847, 0.11927028000354767, 0.1386222541332245, 0.8258503079414368, -0.16514036059379578, -0.14464794099330902, -0.01645280048251152, -0.4330645203590393, 0.20196929574012756, -0.12181384116411209, 0.14980123937129974, -0.3629228472709656, -0.1199738085269928, 0.05814655125141144, 0.059490565210580826, 0.2272735834121704, 0.07329533249139786, -0.040814340114593506, -0.027775153517723083, -0.21283073723316193, -0.12059792876243591, -0.06344535201787949, 0.38884076476097107, -0.1706169694662094, -0.03851231187582016, 0.030087172985076904, 0.24279481172561646, 0.09677335619926453, -0.3202816843986511, -0.0654103085398674, 0.1378674954175949, -0.0022841468453407288, 0.027822338044643402, -0.09522601962089539, -0.3391868770122528, -0.09432323276996613, -0.12215933203697205, -0.09829214215278625, -0.3562057614326477, -0.08012999594211578, 0.11262878775596619, 0.4637306332588196, 0.22258996963500977, -0.1460874378681183, 0.39294591546058655, -0.0290306955575943, -0.010685223154723644, -0.035669006407260895, 0.10025939345359802, -0.02051444537937641, -0.2906251549720764, -0.370401531457901, 0.038557685911655426, 0.12903393805027008, -0.44377416372299194, -0.0630922019481659, -0.064165860414505, 0.13692720234394073, -0.5037251710891724, -0.09707996249198914, 0.1996072232723236, 0.1768922656774521, -0.4096500277519226, 0.2604002058506012, 0.20850667357444763, -0.050600480288267136, 0.15732425451278687, 0.2987825870513916, -0.15483501553535461, -0.1539897322654724, 0.15371692180633545, 0.2887458801269531, 0.37339505553245544, 0.2711694836616516, -0.10328776389360428, -0.09034661203622818, -0.5066466331481934, 0.14251312613487244, 0.3526087701320648, -0.44960153102874756, 0.1566506177186966, 0.2619933485984802, -0.17890293896198273, 0.1585228443145752, 0.25528767704963684, -0.1255611777305603, 0.20802900195121765, -0.07645335793495178, 0.019324757158756256, -0.17728738486766815, -0.16745994985103607, -0.10120366513729095, 0.3335440456867218, -0.008605655282735825, 0.16603368520736694, -0.19891458749771118, 0.2513754367828369, -0.48639631271362305, 0.07725805789232254, -0.2586611211299896, 0.3740481734275818, 0.28224512934684753, 0.02984577603638172, 0.05269835889339447, -0.20131151378154755, 0.3311570882797241, -0.16931460797786713, 0.026073060929775238, -0.3804883360862732, -0.14177320897579193, 0.02728082239627838, -0.04071054607629776, 0.22535109519958496, -0.1291322410106659, -0.09804271161556244, -0.09991863369941711, 0.1576019823551178, 0.09554383158683777, -0.013200081884860992, 0.1009494811296463, 0.2714960277080536, 0.08444415032863617, -0.08182758837938309, 0.09097684919834137, 0.06075173616409302, -0.09268221259117126, -0.08067344129085541, -0.25555720925331116, 0.12114430218935013, -0.08137059211730957, -0.09333948791027069, 0.2188299596309662, 0.07024385035037994, 0.1460733860731125, 0.08436216413974762, -0.005998440086841583, 0.018224716186523438, 0.10197034478187561, 0.334504097700119, -0.04081181436777115, -0.11554700136184692, 0.06861818581819534, 0.1410687267780304, 0.24625533819198608, 0.411970317363739, -0.5275210738182068, 0.19971737265586853, 0.10632604360580444, -0.20754942297935486, 0.4894818663597107, 0.23712384700775146, 0.09500190615653992, 0.17382779717445374, 0.052714746445417404, 0.06705313175916672, -0.12093275040388107, -0.15252003073692322, -0.044563762843608856, 0.2598797082901001, 0.0038238130509853363, -0.10282443463802338, 0.48384323716163635, 0.17440374195575714, 0.040119439363479614, 0.24546562135219574, -0.015355929732322693, 0.34433063864707947, 0.18549969792366028, -0.09018805623054504, 0.19241899251937866, 0.052294958382844925, 0.38689669966697693, 0.11543311178684235, 0.14202271401882172, 0.0033468343317508698, 0.23964807391166687, 0.3484843373298645, 0.09829825907945633, -0.17109116911888123, -0.09354671835899353, 0.13537941873073578, -0.1843029260635376, -0.22123192250728607, -0.3129010796546936, -0.16168132424354553, -0.020254269242286682, -0.10221794247627258, -0.015274401754140854, 0.019600410014390945, 0.021856732666492462, -0.122404545545578, 0.05379841476678848, -0.17615580558776855, 0.23045384883880615, -0.022475335747003555, 0.09162112325429916, 0.008987277746200562, 0.17214424908161163, 0.16601626574993134, 0.09334434568881989, 0.3902440667152405, 0.5117961168289185, 0.026372378692030907, -0.10823269188404083, 0.14171865582466125, 0.3036314845085144, -0.04875682666897774, -0.30722805857658386, -0.09557418525218964, -0.11352881789207458, 0.26285722851753235, 0.29504188895225525, 0.06118384376168251, 0.327284574508667, -0.30164241790771484, 0.2575119733810425, 0.06949775665998459, 0.033702682703733444, -0.0859597772359848, 0.02883150428533554, 0.1409156769514084, -0.2790927588939667, -0.2350941300392151, -0.057907722890377045, -0.17120614647865295, 0.008580144494771957, -0.022550996392965317, -0.34742435812950134, 0.06045013666152954, -0.11422096192836761, 0.13495051860809326, 0.24312032759189606, 0.3177868723869324, -0.0364290215075016, -0.07544142752885818, 0.05543026328086853, -0.35731303691864014, -0.47657510638237, 0.1471116542816162, -0.11920520663261414, -0.3870978057384491, -0.20987915992736816, 0.17803597450256348, 0.18694838881492615, 0.07806307822465897, 0.542963981628418, -0.09808023273944855, -0.07929681241512299, 0.07781605422496796, -0.24519148468971252, -0.05722177401185036, 0.2500939667224884, 0.0704832673072815, -0.01302441768348217, -0.09304969012737274, 0.11711589992046356, 0.07590935379266739, 0.2199331820011139, -0.05632184445858002, -0.08383410423994064, 0.04211458936333656, -0.022646717727184296, 0.3171388506889343, 0.03664565086364746, 0.39632341265678406, -0.3592708706855774, 0.06935182213783264, -0.10800465941429138, -0.14518532156944275, -0.24001888930797577, -0.009765774011611938, 0.43313202261924744, 0.36075809597969055, -0.02650323323905468, -0.13127517700195312, 0.07545781135559082, 0.24469725787639618, -0.09463553130626678, 0.18300102651119232, -0.09275456517934799, 0.5407566428184509, 0.23318222165107727, -0.17640039324760437, -0.0008148187771439552, -0.015257075428962708, 0.01844148337841034, 0.09156268835067749, -0.09915199875831604, -0.4116053283214569, 0.3260044455528259, -0.0473129004240036, -0.14675326645374298, -0.18497209250926971, 0.2483227550983429, 0.33174923062324524, -0.02864615060389042, -0.3332257568836212, 0.22924041748046875, 0.2574436068534851, 0.09491638094186783, 0.19303341209888458, 0.4474116265773773, 0.04415864497423172, 0.11143481731414795, -0.07227426022291183, 0.24346588551998138, 0.17459574341773987, -0.17945066094398499, -0.16468669474124908, -0.21297693252563477 ]
https://github.com/huggingface/datasets/issues/1954
add a new column
Hi ! Currently you have to use `map` . You can see an example of how to do it in this comment: https://github.com/huggingface/datasets/issues/853#issuecomment-727872188 In the future we'll add support for a more native way of adding a new column ;)
Hi I'd need to add a new column to the dataset, I was wondering how this can be done? thanks @lhoestq
40
add a new column Hi I'd need to add a new column to the dataset, I was wondering how this can be done? thanks @lhoestq Hi ! Currently you have to use `map` . You can see an example of how to do it in this comment: https://github.com/huggingface/datasets/issues/853#issuecomment-727872188 In the future we'll add support for a more native way of adding a new column ;)
[ -0.2675054371356964, -0.32675135135650635, -0.2293747365474701, -0.03069724142551422, 0.0712798684835434, 0.19325870275497437, 0.22967636585235596, 0.09861169755458832, 0.22823938727378845, 0.1450352817773819, -0.15576042234897614, 0.16348518431186676, 0.0027358215302228928, 0.5119237303733826, 0.2227693796157837, -0.1781962662935257, -0.06255296617746353, 0.19881287217140198, -0.05342389643192291, 0.0027416273951530457, -0.3495628237724304, 0.04845309257507324, 0.23794318735599518, -0.17027930915355682, -0.25310027599334717, -0.21148961782455444, -0.0195247121155262, 0.08667711913585663, -0.20675955712795258, -0.35675883293151855, 0.04237435758113861, 0.20986109972000122, -0.07490016520023346, 0.18597275018692017, -0.00009734219202073291, -0.06417195498943329, -0.03590741753578186, -0.13463017344474792, -0.10335305333137512, -0.034768179059028625, -0.24146059155464172, -0.16993007063865662, -0.06924353539943695, -0.08610113710165024, -0.41858312487602234, -0.10428722202777863, -0.021746529266238213, -0.1531258076429367, 0.12564606964588165, 0.11346866935491562, 0.406377911567688, 0.2553827464580536, -0.07647611200809479, -0.36383670568466187, 0.17768743634223938, 0.14615491032600403, -0.22233125567436218, 0.06084618344902992, 0.029248997569084167, -0.09474556148052216, -0.08670059591531754, 0.20654357969760895, 0.3743554949760437, 0.14800821244716644, 0.19065383076667786, 0.24050043523311615, -0.16160625219345093, 0.0865650624036789, 0.18930625915527344, 0.32733404636383057, 0.44451776146888733, -0.10601148754358292, -0.3236679434776306, -0.25505784153938293, 0.030813928693532944, -0.3803779184818268, -0.09689203649759293, -0.022937113419175148, 0.09516921639442444, 0.17349250614643097, 0.014211658388376236, -0.17900350689888, -0.1423598974943161, 0.18363729119300842, -0.22759173810482025, 0.211357980966568, -0.26690831780433655, -0.005292162299156189, 0.17067325115203857, -0.06781798601150513, -0.28970906138420105, 0.37437188625335693, -0.07317456603050232, 0.11415240168571472, -0.12239348888397217, -0.19329726696014404, 0.19715911149978638, 0.19131764769554138, 0.2126956284046173, 0.04854965955018997, 0.09133469313383102, -0.05415496975183487, -0.11076085269451141, 0.1634424924850464, 0.08284280449151993, -0.12979596853256226, 0.2090182602405548, -0.08886997401714325, 0.2225174754858017, 0.048869114369153976, 0.08254849910736084, -0.3772427439689636, 0.2139921933412552, -0.01544070616364479, -0.09381848573684692, -0.1949004828929901, 0.23685525357723236, -0.10491642355918884, -0.12224705517292023, -0.13324114680290222, 0.25615882873535156, -0.09181973338127136, 0.06565383076667786, 0.47470393776893616, 0.09470909833908081, -0.1584169864654541, -0.04562079906463623, 0.1981341540813446, 0.08058925718069077, -0.1449051946401596, -0.33596348762512207, -0.014934472739696503, 0.04813940450549126, 0.18083487451076508, 0.03453122451901436, -0.09466151893138885, 0.47253766655921936, -0.002481275238096714, -0.030233077704906464, 0.1297016441822052, 0.07839439064264297, -0.004334965720772743, 0.19348499178886414, 0.16437928378582, 0.0044707804918289185, -0.057605206966400146, 0.0403551310300827, -0.11873483657836914, -0.1352623999118805, -0.03272656351327896, -0.010686926543712616, -0.1250888556241989, -0.36872029304504395, 0.3041074872016907, 0.10410858690738678, -0.28598687052726746, -0.09878360480070114, 0.46641361713409424, -0.05981405824422836, -0.24862924218177795, 0.058196716010570526, 0.32220518589019775, -0.34057366847991943, -0.06937674432992935, 0.04087073355913162, -0.08704443275928497, -0.2525867819786072, -0.25567543506622314, -0.03492272272706032, -0.24317005276679993, -0.1837906539440155, 0.04731108248233795, -0.0754372701048851, 0.07972435653209686, -0.07358787953853607, 0.2277761548757553, 0.25819993019104004, 0.10876643657684326, -0.2271641045808792, -0.14175236225128174, -0.2780778408050537, -0.09710042923688889, 0.14764900505542755, 0.34988099336624146, 0.14362113177776337, 0.04156084358692169, -0.0008695945143699646, 0.04293471574783325, -0.1848497837781906, 0.012602368369698524, 0.029719185084104538, -0.018510261550545692, 0.02253413200378418, 0.10270571708679199, -0.07577192783355713, 0.15584275126457214, 0.3176918625831604, 0.023015499114990234, 0.17117342352867126, -0.18102601170539856, -0.07013759016990662, 0.20037111639976501, 0.480020672082901, 0.06733732670545578, -0.12192423641681671, -0.25465768575668335, -0.5289202928543091, -0.01488901674747467, 0.038976773619651794, -0.0887865424156189, 0.11922787129878998, -0.37684881687164307, -0.3831668794155121, -0.061502136290073395, -0.10847514867782593, -0.056978996843099594, 0.2907106876373291, 0.14308863878250122, 0.06793947517871857, -0.19130009412765503, -0.15945519506931305, 0.15207859873771667, -0.03694961965084076, 0.00911963265389204, -0.26504063606262207, 0.1284198760986328, 0.01736336201429367, -0.13595543801784515, 0.09631171822547913, 0.1147400289773941, 0.1042972058057785, 0.03094547986984253, 0.1269078254699707, 0.29091453552246094, -0.10345384478569031, 0.3359624445438385, 0.28325507044792175, 0.1435004621744156, 0.11188282817602158, 0.050865303725004196, 0.04497727006673813, -0.15489643812179565, 0.01739431545138359, 0.0894271656870842, -0.4237242639064789, 0.26684820652008057, 0.14286959171295166, -0.06324123591184616, -0.04194223880767822, -0.003818279132246971, 0.22778627276420593, -0.17412720620632172, 0.04262475669384003, -0.4620879888534546, 0.018292933702468872, -0.06943118572235107, 0.0898771584033966, -0.026267515495419502, -0.4064919352531433, 0.28280121088027954, 0.33799871802330017, 0.033988047391176224, 0.04094091057777405, 0.10309835523366928, -0.2593679428100586, 0.05180317908525467, 0.16499072313308716, 0.20507939159870148, 0.2228691130876541, 0.4660228192806244, 0.25965970754623413, -0.001043057069182396, -0.12708419561386108, -0.18086457252502441, -0.07761342078447342, -0.20900572836399078, -0.03646209090948105, 0.11656998097896576, 0.2806754410266876, -0.3271844983100891, -0.5827213525772095, 0.08234192430973053, -0.08104793727397919, 0.19867688417434692, -0.18864788115024567, -0.2168993055820465, -0.0906994566321373, 0.009992338716983795, -0.0009750444442033768, -0.21577304601669312, -0.1718832105398178, -0.270853191614151, 0.2800837755203247, 0.3527167737483978, -0.2082553654909134, 0.01280222088098526, -0.018815379589796066, 0.286779522895813, 0.040882475674152374, 0.19945545494556427, -0.07497207075357437, -0.24185562133789062, 0.1457320600748062, 0.3013758957386017, -0.22702404856681824, 0.05973752215504646, 0.6364293694496155, -0.196930930018425, 0.16226039826869965, -0.401401549577713, -0.45793402194976807, 0.04564985632896423, -0.09332834184169769, 0.22803974151611328, 0.19305676221847534, 0.451518177986145, -0.11391042917966843, -0.1788264811038971, 0.24953794479370117, -0.0848386362195015, -0.3495540916919708, -0.2163497358560562, -0.10540631413459778, 0.12984848022460938, -0.05460016801953316, -0.3900427222251892, 0.030828051269054413, -0.3032822012901306, 0.5029951333999634, -0.006860097870230675, 0.04595869779586792, 0.02463003247976303, 0.06174401566386223, 0.0616711787879467, -0.3266995847225189, -0.0044152624905109406, -0.5509763956069946, -0.38175100088119507, 0.3346666693687439, -0.43718966841697693, -0.2686751186847687, -0.05914464592933655, -0.035620540380477905, 0.13678078353405, -0.15665499866008759, -0.0953570082783699, -0.3855731189250946, -0.1848878711462021, 0.29392561316490173, -0.01769915223121643, 0.12789791822433472, 0.48417940735816956, -0.14339713752269745, -0.24567019939422607, -0.2272544801235199, -0.3126327693462372, 0.15254539251327515, 0.3414384424686432, 0.11716905981302261, -0.23839157819747925, 0.2780502140522003, -0.003025110810995102, 0.2944166660308838, -0.06678247451782227, -0.10007505118846893, 0.36305496096611023, -0.45253682136535645, 0.43084728717803955, -0.03330271691083908, -0.27243199944496155, 0.10235587507486343, 0.17037241160869598, 0.16822101175785065, 0.3327377438545227, 0.24340015649795532, 0.03778296336531639, 0.1129041463136673, -0.05682314187288284, -0.15217623114585876, -0.14924763143062592, 0.03249658644199371, 0.19751499593257904, 0.11522051692008972, -0.04780896008014679, -0.24347424507141113, -0.41079849004745483, -0.023717937991023064, 0.04721825569868088, 0.12109176069498062, 0.017635397613048553, -0.1858106404542923, -0.4173744320869446, 0.024255212396383286, -0.43656957149505615, 0.27141666412353516, 0.08173851668834686, -0.16423267126083374, -0.2187957763671875, -0.16949203610420227, -0.08012954890727997, 0.009446105919778347, 0.5412454009056091, -0.1944126933813095, -0.1243833601474762, -0.15094850957393646, -0.17191269993782043, -0.21474385261535645, 0.3027726709842682, -0.13613827526569366, 0.035120557993650436, 0.08096275478601456, 0.38849392533302307, -0.16516631841659546, -0.0014951048651710153, 0.41995158791542053, 0.21463701128959656, -0.27113011479377747, -0.2036133110523224, -0.2595192492008209, -0.2660927474498749, -0.2679539620876312, 0.13942748308181763, 0.03624839335680008, 0.0924401581287384, 0.41065192222595215, -0.2905561327934265, 0.016165830194950104, -0.17761525511741638, 0.13794612884521484, 0.4061157703399658, 0.19169971346855164, 0.4186706840991974, -0.019862186163663864, 0.24233369529247284, 0.14398258924484253, 0.10789456963539124, 0.38818106055259705, -0.2044389247894287, -0.12444192171096802, -0.07862326502799988, -0.2945460081100464, 0.5106814503669739, 0.13289299607276917, 0.09916933625936508, 0.3325246572494507, 0.014733572490513325, 0.16141855716705322, -0.26953333616256714, 0.31391003727912903, 0.173173725605011, 0.14052440226078033, 0.03273311257362366, -0.1346598118543625, 0.48187223076820374, -0.010015628300607204, -0.1039174497127533, 0.2979789972305298, 0.3700318932533264, -0.20198309421539307, 0.046289488673210144, -0.05426638573408127, 0.7508454322814941, -0.16737130284309387, -0.03572727367281914, 0.03852267563343048, -0.17746412754058838, 0.22260190546512604, -0.10970510542392731, 0.11535463482141495, -0.14144304394721985, -0.3266514837741852, -0.0257297083735466, 0.12105999886989594, 0.24924194812774658, 0.0732874646782875, -0.05356859043240547, 0.05281689390540123, 0.0574185848236084, 0.15370775759220123, -0.19224196672439575, 0.07046264410018921, -0.00919877365231514, -0.29249122738838196, -0.26949283480644226, 0.3007313311100006, -0.010421857237815857, -0.09572295844554901, -0.0762968510389328, 0.1155964732170105, 0.01951088383793831, -0.20821982622146606, -0.1271175891160965, -0.3215966820716858, -0.05858071893453598, -0.19849270582199097, 0.127990260720253, -0.2477901428937912, -0.25151771306991577, 0.17079474031925201, 0.4153106212615967, 0.05733188986778259, -0.22162459790706635, 0.2055685967206955, -0.22252300381660461, 0.08567821234464645, -0.2475019097328186, 0.0399661622941494, 0.10945151001214981, -0.1779586672782898, -0.23463821411132812, -0.010133609175682068, 0.10524196922779083, -0.4131990671157837, -0.03382518142461777, 0.0321345254778862, -0.24255786836147308, -0.46906161308288574, -0.10522082448005676, 0.07982425391674042, 0.17732998728752136, -0.37298592925071716, 0.26566073298454285, 0.1998652070760727, -0.16581980884075165, -0.044021449983119965, 0.37086156010627747, -0.1272994875907898, -0.1514556109905243, 0.32874566316604614, -0.06378200650215149, 0.06966903805732727, 0.20025047659873962, 0.009188372641801834, -0.1790071278810501, -0.3545341491699219, -0.07330489158630371, 0.4246882200241089, -0.15350107848644257, 0.17293111979961395, 0.23481863737106323, -0.23098941147327423, -0.006676769349724054, 0.36262521147727966, 0.003893677145242691, 0.15817226469516754, -0.04813801497220993, -0.12467385828495026, -0.4298340082168579, 0.07494942843914032, 0.0049052126705646515, 0.33726415038108826, -0.03279801458120346, 0.24463795125484467, 0.009361131116747856, 0.16963128745555878, -0.5226579308509827, -0.06516745686531067, -0.2895473539829254, 0.2796226739883423, 0.37179023027420044, -0.028787381947040558, 0.2083658128976822, -0.18753564357757568, 0.33293119072914124, -0.03520374745130539, -0.1669902503490448, -0.38315916061401367, -0.22144514322280884, 0.0608605220913887, 0.01963735744357109, 0.1678806096315384, 0.008760375902056694, 0.1811009794473648, -0.01785461977124214, -0.18323980271816254, 0.34551170468330383, 0.10265491157770157, 0.020297110080718994, 0.20282307267189026, 0.2382938712835312, -0.06925522536039352, 0.10747170448303223, -0.13947424292564392, 0.07200896739959717, -0.04674631357192993, -0.10001970082521439, -0.07315610349178314, -0.30471688508987427, -0.04951224476099014, 0.32342129945755005, 0.17981582880020142, 0.23365160822868347, -0.006301157176494598, 0.10786831378936768, 0.1271711140871048, -0.02521510422229767, 0.32400766015052795, 0.2929459512233734, -0.09652882814407349, 0.07200983166694641, 0.2770683765411377, 0.11181945353746414, 0.4103548526763916, -0.4879569709300995, 0.17544826865196228, 0.3631243109703064, -0.13529062271118164, 0.5029087662696838, 0.2272493690252304, 0.0658411979675293, 0.20215550065040588, 0.09134943038225174, 0.0503360778093338, 0.0012860768474638462, -0.21147093176841736, 0.0581783652305603, 0.1365845799446106, -0.029676048085093498, -0.08123263716697693, 0.47530508041381836, 0.26255321502685547, 0.18246158957481384, 0.11799757182598114, -0.2786809206008911, 0.21161432564258575, -0.05839299410581589, 0.04201282560825348, 0.19833871722221375, -0.11374230682849884, 0.352748304605484, 0.16395139694213867, 0.17739686369895935, -0.04483896493911743, 0.19694596529006958, 0.41299593448638916, -0.08484121412038803, -0.11466091871261597, -0.1688688099384308, 0.2937827408313751, -0.10051485151052475, -0.25339049100875854, -0.15734951198101044, -0.14923390746116638, -0.04935251921415329, -0.09135176241397858, 0.11065717041492462, -0.19926811754703522, 0.37309277057647705, -0.17388677597045898, 0.12572327256202698, -0.31641462445259094, 0.08245375752449036, -0.06058376282453537, 0.07006005942821503, 0.04045191779732704, 0.18767279386520386, 0.1593518704175949, -0.059955596923828125, 0.3969537317752838, 0.3891628086566925, -0.0284738726913929, -0.3357333242893219, 0.28786590695381165, 0.4870368242263794, -0.2670857906341553, -0.310259610414505, -0.16280823945999146, -0.08462952077388763, 0.054522980004549026, 0.2395138442516327, 0.12234476208686829, 0.34687861800193787, -0.3152138888835907, 0.28676313161849976, -0.09157155454158783, 0.14006249606609344, -0.19720369577407837, 0.07507877796888351, 0.06843042373657227, -0.36133718490600586, -0.1958664506673813, -0.13095736503601074, -0.24482780694961548, -0.15849682688713074, -0.016429707407951355, -0.2886989712715149, 0.10807492583990097, 0.004858603700995445, 0.15962007641792297, 0.19919316470623016, 0.22237204015254974, 0.015702199190855026, -0.13886919617652893, 0.06641079485416412, -0.2817443907260895, -0.49200379848480225, 0.03523802012205124, -0.033437881618738174, -0.2707374691963196, -0.14857198297977448, 0.06859932094812393, 0.22375789284706116, 0.15696069598197937, 0.38896042108535767, -0.15791913866996765, 0.02798650786280632, -0.22794440388679504, -0.28470808267593384, -0.09917716681957245, 0.08809077739715576, 0.05990701913833618, 0.1327792853116989, 0.10242068022489548, 0.04829513281583786, 0.10030487179756165, 0.19214409589767456, -0.21070779860019684, 0.1916911005973816, -0.2847426235675812, -0.2442823350429535, 0.1931997388601303, -0.015953144058585167, 0.2518627345561981, -0.37917259335517883, 0.15832091867923737, -0.017983239144086838, -0.1998201608657837, -0.3959466814994812, 0.07353178411722183, 0.1107606589794159, 0.5224789381027222, -0.05841914564371109, -0.21861527860164642, 0.07508940249681473, 0.20997308194637299, 0.05151216685771942, -0.002998791169375181, -0.12153464555740356, 0.5358164310455322, 0.09558016806840897, -0.15479065477848053, 0.08245906978845596, 0.2031574249267578, -0.04030533879995346, 0.0380425900220871, -0.020089291036128998, -0.4734790027141571, 0.42276322841644287, -0.12494880706071854, -0.20192375779151917, 0.04584457352757454, 0.09440942108631134, 0.2825832664966583, -0.19846445322036743, -0.506472110748291, 0.18995729088783264, 0.22147803008556366, 0.05484249070286751, 0.04975548014044762, 0.3494917154312134, -0.12793004512786865, 0.03900686278939247, -0.07181154191493988, 0.42371034622192383, 0.2931395173072815, -0.1638946384191513, -0.036173492670059204, -0.24570336937904358 ]
https://github.com/huggingface/datasets/issues/1949
Enable Fast Filtering using Arrow Dataset
Hi @gchhablani :) Thanks for proposing your help ! I'll be doing a refactor of some parts related to filtering in the scope of https://github.com/huggingface/datasets/issues/1877 So I would first wait for this refactor to be done before working on the filtering. In particular because I plan to make things simpler to manipulate. Your feedback on this refactor would also be appreciated since it also aims at making the core code more accessible (basically my goal is that no one's ever "having troubles getting started" ^^) This will be available in a few days, I will be able to give you more details at that time if you don't mind waiting a bit !
Hi @lhoestq, As mentioned in Issue #1796, I would love to work on enabling fast filtering/mapping. Can you please share the expectations? It would be great if you could point me to the relevant methods/files involved. Or the docs or maybe an overview of `arrow_dataset.py`. I only ask this because I am having trouble getting started ;-; Any help would be appreciated. Thanks, Gunjan
113
Enable Fast Filtering using Arrow Dataset Hi @lhoestq, As mentioned in Issue #1796, I would love to work on enabling fast filtering/mapping. Can you please share the expectations? It would be great if you could point me to the relevant methods/files involved. Or the docs or maybe an overview of `arrow_dataset.py`. I only ask this because I am having trouble getting started ;-; Any help would be appreciated. Thanks, Gunjan Hi @gchhablani :) Thanks for proposing your help ! I'll be doing a refactor of some parts related to filtering in the scope of https://github.com/huggingface/datasets/issues/1877 So I would first wait for this refactor to be done before working on the filtering. In particular because I plan to make things simpler to manipulate. Your feedback on this refactor would also be appreciated since it also aims at making the core code more accessible (basically my goal is that no one's ever "having troubles getting started" ^^) This will be available in a few days, I will be able to give you more details at that time if you don't mind waiting a bit !
[ -0.06096545234322548, -0.24264155328273773, -0.17645563185214996, -0.054016441106796265, 0.03825214132666588, -0.23882752656936646, -0.10741260647773743, 0.20392507314682007, 0.22310461103916168, -0.18454016745090485, -0.2857307493686676, 0.4401741325855255, -0.11111048609018326, 0.381757915019989, 0.0005044639110565186, -0.2247801125049591, -0.1491401195526123, -0.10109259188175201, -0.1609332412481308, -0.021078746765851974, 0.22286421060562134, -0.03185340017080307, -0.1598428338766098, 0.011578090488910675, 0.09916779398918152, -0.09085963666439056, 0.46408993005752563, -0.060351282358169556, -0.3861958682537079, -0.4257189631462097, 0.21595296263694763, 0.46223875880241394, -0.27724790573120117, 0.34841281175613403, -0.00011592390364967287, -0.10355766117572784, 0.3350026607513428, 0.06984864175319672, -0.1678134649991989, 0.1456145942211151, -0.2793073058128357, -0.4648905098438263, 0.34608519077301025, 0.0931735709309578, -0.2401726245880127, -0.30238020420074463, -0.48872750997543335, -0.5661327838897705, 0.4217897057533264, 0.17957231402397156, 0.15177284181118011, 0.18792524933815002, 0.1759023219347, 0.0575217641890049, 0.16895920038223267, 0.3293296694755554, -0.24424917995929718, -0.09686847031116486, 0.7156177759170532, -0.1107313483953476, -0.07079779356718063, 0.4140397012233734, -0.06084068864583969, -0.1602592170238495, 0.3494179844856262, -0.2657897472381592, -0.11161261051893234, -0.5176676511764526, 0.24718523025512695, 0.3313286006450653, 0.4620248079299927, -0.13967958092689514, -0.3891337215900421, -0.28729426860809326, -0.2797900438308716, -0.13002943992614746, 0.02100345492362976, -0.04881499707698822, -0.19542579352855682, 0.19365935027599335, -0.1636238992214203, -0.2893834710121155, -0.30839014053344727, 0.0227007158100605, 0.23935967683792114, 0.26341867446899414, -0.26761025190353394, -0.03764701634645462, 0.22804602980613708, -0.347703218460083, 0.02390230819582939, -0.1890489012002945, 0.09983580559492111, 0.3675707280635834, -0.2276185303926468, -0.07719923555850983, 0.16861456632614136, 0.4670673608779907, 0.30326443910598755, 0.19065099954605103, -0.11457881331443787, 0.3745812773704529, 0.0616542287170887, 0.011990338563919067, -0.0012418907135725021, 0.04750663787126541, -0.0682886615395546, 0.24530069530010223, 0.2181311845779419, -0.08639083802700043, -0.09938719868659973, 0.06047822907567024, 0.08282426744699478, -0.27476733922958374, -0.14628615975379944, -0.32151728868484497, -0.05424366891384125, -0.47085148096084595, -0.0017116833478212357, -0.16676156222820282, -0.08136575669050217, -0.26734939217567444, 0.47375038266181946, 0.2197331190109253, -0.11953876167535782, -0.057073406875133514, -0.24838915467262268, -0.10110330581665039, -0.17689257860183716, -0.0029425472021102905, 0.002706433180719614, -0.1255301535129547, -0.1310465931892395, -0.13740508258342743, 0.14855466783046722, -0.19489863514900208, -0.09963023662567139, 0.017674732953310013, -0.03311140835285187, 0.20600080490112305, 0.2575751543045044, 0.09093540906906128, 0.38149896264076233, 0.3757705092430115, -0.4013730585575104, -0.02476203814148903, 0.17754468321800232, 0.04006878286600113, -0.21539103984832764, -0.0036567673087120056, -0.21714049577713013, -0.5327580571174622, 0.0032876841723918915, 0.09527403116226196, -0.21790553629398346, -0.13839936256408691, -0.172911137342453, 0.6192805171012878, -0.21322917938232422, -0.0004944726824760437, 0.12610256671905518, 0.03038504533469677, -0.07469792664051056, -0.2937878668308258, 0.3139740526676178, 0.25672081112861633, -0.490203857421875, -0.06085970252752304, -0.288675993680954, -0.13479889929294586, 0.2083830088376999, 0.16209137439727783, -0.41433826088905334, -0.21320101618766785, 0.1621503084897995, -0.025468431413173676, 0.5568777918815613, -0.12114416062831879, -0.39294472336769104, 0.014311728067696095, -0.06481949985027313, 0.308653861284256, 0.0995059534907341, 0.006143547594547272, 0.2001388669013977, -0.15307946503162384, 0.004877552390098572, 0.635079026222229, -0.1657494753599167, -0.14844311773777008, -0.33045026659965515, -0.09370015561580658, 0.03005947545170784, 0.04498201236128807, -0.09544600546360016, -0.05105283111333847, 0.17063581943511963, -0.5012764930725098, 0.13602390885353088, 0.07128746807575226, 0.1759144514799118, -0.012835700064897537, 0.47079187631607056, 0.2733280658721924, 0.36180609464645386, 0.21726197004318237, -0.20606625080108643, 0.23443612456321716, 0.03011361137032509, -0.12152472138404846, -0.4391418695449829, -0.057195015251636505, -0.09989828616380692, 0.19224463403224945, -0.1285838782787323, -0.02759101241827011, 0.07850603014230728, -0.2916638255119324, 0.2678445279598236, -0.12587542831897736, -0.36423906683921814, 0.2730608582496643, -0.12304829806089401, 0.07223423570394516, -0.1536017209291458, 0.0954933762550354, 0.2370292693376541, 0.1554514467716217, -0.010255910456180573, -0.09004237502813339, -0.03045865148305893, -0.1076333075761795, -0.10021588951349258, 0.006186850368976593, 0.13528278470039368, 0.24693861603736877, 0.40576425194740295, 0.5706697702407837, 0.12495602667331696, -0.4567500650882721, 0.41298821568489075, 0.08315189182758331, 0.16646990180015564, 0.07930996268987656, -0.2738563120365143, 0.7109123468399048, -0.49604496359825134, 0.16535095870494843, 0.10608924925327301, 0.041167810559272766, 0.058485567569732666, 0.10999684035778046, -0.3593267500400543, 0.1287243813276291, 0.2998858690261841, -0.3171960711479187, 0.291697233915329, -0.06382103264331818, -0.18377381563186646, 0.4710715115070343, -0.15676742792129517, 0.12373043596744537, -0.24502167105674744, 0.3046882450580597, 0.00024478137493133545, -0.15716853737831116, 0.006096340715885162, 0.36767682433128357, 0.047604285180568695, 0.31041696667671204, 0.07437129318714142, -0.1966026872396469, 0.16427582502365112, 0.020441364496946335, 0.37537527084350586, 0.0974472388625145, 0.31827473640441895, -0.07779396325349808, 0.25523650646209717, -0.005644087679684162, -0.24193501472473145, -0.32303014397621155, -0.16487686336040497, 0.13710537552833557, -0.14295223355293274, -0.0491911806166172, 0.10004684329032898, -0.3030160665512085, 0.07994703948497772, -0.471340537071228, -0.08055876195430756, -0.07916410267353058, 0.16309228539466858, -0.14818532764911652, -0.059070292860269547, 0.18472681939601898, -0.3384583592414856, 0.29403698444366455, -0.011672405526041985, -0.24300388991832733, -0.34404224157333374, -0.19075484573841095, 0.1860198676586151, 0.06584993004798889, 0.08439487218856812, 0.27087166905403137, 0.34369027614593506, 0.3919390141963959, 0.08910693228244781, -0.1109166368842125, -0.6208745837211609, 0.03765057772397995, -0.024423442780971527, 0.3294960856437683, -0.05508922040462494, 0.17031559348106384, 0.09025032818317413, 0.02198057621717453, 0.22079749405384064, -0.18309135735034943, -0.08671510964632034, -0.20489150285720825, -0.20047114789485931, 0.17662371695041656, 0.15492291748523712, 0.04790710657835007, -0.4060264229774475, -0.34767770767211914, 0.2588634788990021, 0.0216839537024498, 0.11051112413406372, 0.14684373140335083, 0.10312813520431519, 0.11009707301855087, -0.30707457661628723, 0.20678436756134033, 0.07030017673969269, -0.0732145681977272, 0.27509379386901855, -0.14576593041419983, -0.20735445618629456, -0.16159622371196747, -0.2363077998161316, -0.09825637936592102, 0.3142915964126587, -0.15934325754642487, 0.010277190245687962, -0.4495510756969452, 0.28349071741104126, 0.08643409609794617, 0.02712341956794262, 0.33458220958709717, 0.0846131294965744, 0.00979522056877613, -0.2262038290500641, -0.2326357662677765, 0.015463881194591522, -0.15630659461021423, 0.14000020921230316, 0.3474455177783966, 0.35665953159332275, -0.022805174812674522, 0.7490885853767395, 0.2729087769985199, 0.3102779686450958, -0.02166057378053665, 0.26512354612350464, -0.010461818426847458, -0.004717014729976654, -0.38977915048599243, -0.20765742659568787, -0.18320530652999878, 0.07132405787706375, 0.0647227093577385, 0.4708164930343628, -0.29960885643959045, -0.2581758499145508, -0.128906711935997, -0.23007777333259583, -0.1261657327413559, 0.16582003235816956, -0.08192537724971771, 0.2298603057861328, 0.021534737199544907, -0.24813440442085266, -0.3278766870498657, 0.021204616874456406, 0.09398914873600006, 0.11970094591379166, 0.3694303631782532, -0.11559242755174637, -0.307003378868103, -0.011032977141439915, -0.4549899697303772, 0.3740396499633789, 0.016329169273376465, -0.0884355679154396, -0.07656387984752655, -0.17638632655143738, 0.17650455236434937, 0.06223765015602112, 0.4188169240951538, -0.17164362967014313, -0.20192503929138184, 0.008413352072238922, -0.21023844182491302, -0.34764739871025085, 0.37338700890541077, -0.14675869047641754, 0.15519298613071442, -0.16362017393112183, 0.19400140643119812, -0.23166266083717346, -0.43525993824005127, 0.015353767201304436, 0.002566991373896599, 0.155101016163826, 0.13517922163009644, 0.1571703404188156, -0.2165168821811676, -0.0974024087190628, 0.2244463860988617, -0.05692397803068161, -0.11574217677116394, -0.019044168293476105, 0.10778295993804932, 0.07157275825738907, 0.21401026844978333, -0.032881960272789, 0.030570417642593384, 0.11675450205802917, 0.13748040795326233, 0.1845523864030838, 0.29869309067726135, 0.011475414037704468, -0.08316649496555328, 0.4986405074596405, 0.018175609409809113, -0.19700229167938232, -0.40659335255622864, 0.3767670691013336, 0.40933430194854736, 0.6419491171836853, 0.008380272425711155, 0.4672687351703644, 0.16277123987674713, 0.12523965537548065, 0.0951695665717125, -0.2514251470565796, 0.030357880517840385, 0.17898373305797577, -0.4732815623283386, -0.4895400106906891, 0.5944275259971619, 0.0797557532787323, -0.20699520409107208, 0.6742953658103943, 0.48880815505981445, -0.021363941952586174, 0.2731506824493408, 0.031781695783138275, 0.938129723072052, 0.13534995913505554, -0.2550569474697113, -0.05517134815454483, -0.4572875499725342, 0.22766323387622833, 0.19072644412517548, 0.06772692501544952, -0.12808051705360413, -0.02809816598892212, 0.09042897075414658, -0.16355393826961517, 0.2674815058708191, -0.0624956339597702, -0.1392672210931778, -0.13247831165790558, -0.014884807169437408, -0.36276775598526, -0.11406488716602325, 0.14138789474964142, 0.14970006048679352, -0.32250580191612244, -0.45965376496315, 0.13754060864448547, 0.029719749465584755, 0.27561596035957336, 0.1242973580956459, -0.3360025882720947, -0.13965211808681488, 0.011664662510156631, -0.16102111339569092, -0.2538187503814697, -0.45867034792900085, 0.09000899642705917, 0.3469240069389343, -0.6894710659980774, 0.4541464149951935, -0.21895253658294678, -0.027608007192611694, 0.024076780304312706, -0.2672506868839264, 0.31910380721092224, 0.3087884187698364, 0.09234168380498886, 0.10269967466592789, -0.04482748731970787, 0.43510136008262634, -0.10172274708747864, -0.10913200676441193, -0.10323595255613327, -0.24624264240264893, -0.33202940225601196, -0.12454742938280106, -0.11830867826938629, 0.44988489151000977, 0.04055461660027504, -0.1221785694360733, 0.18630297482013702, -0.23235754668712616, -0.0750323086977005, 0.1450911909341812, 0.2975461483001709, -0.13780230283737183, 0.33527323603630066, 0.2150527685880661, -0.018379583954811096, -0.08832946419715881, 0.15416456758975983, 0.011942451819777489, -0.23809814453125, 0.19570404291152954, 0.43823403120040894, -0.3694276213645935, -0.07262689620256424, -0.04237658530473709, 0.4137718379497528, -0.3821433484554291, 0.09193821251392365, 0.06232445687055588, 0.00007690489292144775, 0.3333818316459656, 0.27973052859306335, 0.04471646994352341, -0.11879058927297592, -0.20678099989891052, -0.22492656111717224, -0.2354302704334259, 0.22000499069690704, -0.24160610139369965, -0.0036621689796447754, -0.6351537704467773, -0.368156373500824, 0.12319798767566681, 0.27306076884269714, -0.3414292633533478, 0.14667828381061554, 0.17886655032634735, 0.002946550026535988, 0.10625600069761276, 0.12061681598424911, 0.2502308487892151, 0.08756895363330841, 0.055876150727272034, -0.1611802577972412, -0.44214048981666565, -0.1634100079536438, 0.04201319441199303, 0.15470576286315918, -0.22739094495773315, -0.3869333863258362, 0.12764355540275574, -0.2015361189842224, -0.4394991397857666, -0.02487265318632126, 0.01123705506324768, 0.10665286332368851, -0.0087059885263443, -0.4182302951812744, -0.14890439808368683, -0.3942812383174896, 0.10873658955097198, 0.11855783313512802, 0.18187552690505981, -0.05321116745471954, 0.25195685029029846, 0.0725565105676651, -0.09790968149900436, -0.28890568017959595, 0.06837867200374603, 0.2930141091346741, 0.0831359326839447, -0.14909252524375916, 0.37407904863357544, -0.31482988595962524, -0.020863795652985573, 0.057876020669937134, 0.47911569476127625, 0.1315644383430481, 0.04957902804017067, 0.2891441881656647, 0.25459450483322144, 0.15107615292072296, -0.2919920086860657, -0.06892263144254684, 0.2296593189239502, 0.05608894303441048, 0.16029495000839233, 0.09914293885231018, 0.1550767421722412, 0.3570220172405243, 0.1556587815284729, 0.17967432737350464, 0.17280690371990204, -0.1825157254934311, 0.0343780517578125, 0.07581616938114166, 0.24420742690563202, -0.23128308355808258, 0.5170527100563049, 0.4599160850048065, 0.15276271104812622, 0.21123142540454865, 0.007762044668197632, 0.34385231137275696, 0.15327900648117065, 0.3685181438922882, -0.05739157646894455, -0.32483139634132385, 0.10440970212221146, 0.18205252289772034, -0.3671519160270691, 0.11095146089792252, 0.07195059955120087, 0.4479806125164032, 0.21058547496795654, -0.09668649733066559, 0.17769689857959747, 0.22941946983337402, 0.18427005410194397, -0.19847579300403595, 0.2682884931564331, -0.45543932914733887, -0.05679548904299736, -0.07008443772792816, -0.1246257871389389, 0.17927175760269165, 0.5062456130981445, -0.033642612397670746, 0.492392897605896, -0.377126008272171, 0.017750639468431473, 0.13470467925071716, 0.5880488157272339, 0.005455121397972107, 0.13433825969696045, -0.07563979923725128, -0.03956384211778641, 0.004060555249452591, 0.19123178720474243, 0.2396371215581894, 0.08824960887432098, -0.22153137624263763, 0.12171871215105057, -0.1278241127729416, -0.3407156467437744, 0.07589945942163467, 0.5048364996910095, 0.30182039737701416, -0.35056397318840027, 0.006038950756192207, 0.04328586161136627, -0.14113707840442657, -0.0027779117226600647, -0.1935841590166092, -0.018447142094373703, -0.017715871334075928, -0.07761425524950027, 0.07548355311155319, -0.13060128688812256, -0.4775843918323517, -0.1475542187690735, -0.12694121897220612, -0.27141866087913513, 0.24021422863006592, -0.20496302843093872, -0.11749624460935593, -0.022643402218818665, 0.07118546962738037, -0.0046638865023851395, 0.5002950429916382, 0.2632884681224823, 0.38489148020744324, -0.08442807197570801, -0.31834304332733154, -0.22902154922485352, -0.3159652352333069, -0.1155213713645935, 0.14337456226348877, 0.23993106186389923, 0.0960698202252388, 0.30706068873405457, 0.42698025703430176, 0.16422398388385773, -0.3078042268753052, 0.21546952426433563, 0.1345231980085373, -0.22972379624843597, 0.2803106904029846, 0.21079839766025543, 0.3605068325996399, -0.1337548792362213, 0.013904079794883728, 0.06316310912370682, -0.3434782028198242, 0.0417119562625885, -0.11770659685134888, 0.1252276748418808, 0.2732965350151062, 0.04240743815898895, 0.0395921990275383, 0.17129027843475342, 0.2689291834831238, 0.1354902982711792, -0.00024958327412605286, -0.24207976460456848, -0.1890333890914917, -0.07567404955625534, 0.16318345069885254, 0.17347249388694763, 0.36527249217033386, 0.08114288002252579, -0.4510502815246582, -0.03912188112735748, -0.06694056838750839, -0.22348558902740479, -0.07102363556623459, 0.019272027537226677, -0.02033137157559395, 0.04774092882871628, 0.06423874199390411, -0.20725704729557037, 0.24403783679008484, 0.17397883534431458, 0.011301571503281593, -0.406594455242157, -0.2832549214363098, 0.6696613430976868, -0.4198073446750641, -0.21905285120010376, -0.12577715516090393, 0.06565441191196442, 0.3203107714653015, -0.1362007111310959, -0.24783441424369812, -0.12764593958854675, 0.004893387667834759, -0.2941201627254486, -0.09211074560880661, 0.33163800835609436, 0.09296390414237976, 0.07616472244262695, -0.07245472818613052, 0.14147046208381653, 0.17272359132766724, 0.2042236179113388, -0.406036913394928, 0.015545375645160675 ]
https://github.com/huggingface/datasets/issues/1949
Enable Fast Filtering using Arrow Dataset
Sure! I don't mind waiting. I'll check the refactor and try to understand what you're trying to do :)
Hi @lhoestq, As mentioned in Issue #1796, I would love to work on enabling fast filtering/mapping. Can you please share the expectations? It would be great if you could point me to the relevant methods/files involved. Or the docs or maybe an overview of `arrow_dataset.py`. I only ask this because I am having trouble getting started ;-; Any help would be appreciated. Thanks, Gunjan
19
Enable Fast Filtering using Arrow Dataset Hi @lhoestq, As mentioned in Issue #1796, I would love to work on enabling fast filtering/mapping. Can you please share the expectations? It would be great if you could point me to the relevant methods/files involved. Or the docs or maybe an overview of `arrow_dataset.py`. I only ask this because I am having trouble getting started ;-; Any help would be appreciated. Thanks, Gunjan Sure! I don't mind waiting. I'll check the refactor and try to understand what you're trying to do :)
[ -0.14752629399299622, -0.0889887660741806, -0.20982858538627625, -0.09189701080322266, 0.062438543885946274, -0.2331443727016449, -0.047011543065309525, 0.2564983069896698, 0.1409170776605606, -0.16528503596782684, -0.21170036494731903, 0.5572014451026917, -0.1610824167728424, 0.23407770693302155, -0.07217006385326385, -0.11153507232666016, -0.1630254089832306, -0.03340299427509308, -0.15298336744308472, -0.05704043433070183, 0.1605859100818634, -0.09267737716436386, -0.16935835778713226, -0.05695359408855438, 0.06413491815328598, -0.08233488351106644, 0.4899250566959381, -0.12235132604837418, -0.37835821509361267, -0.5257977843284607, 0.18048803508281708, 0.41257187724113464, -0.24240797758102417, 0.28198155760765076, -0.0001122101311921142, -0.09772861748933792, 0.3756685256958008, 0.04600173979997635, -0.16331875324249268, 0.2018049955368042, -0.3833838105201721, -0.5163576602935791, 0.302342027425766, -0.04022927209734917, -0.21402356028556824, -0.3167770504951477, -0.44759613275527954, -0.623363196849823, 0.3333072066307068, 0.2781313359737396, 0.1977689266204834, 0.07796480506658554, 0.129611998796463, 0.03435550257563591, 0.2299921214580536, 0.17027811706066132, -0.2757146656513214, -0.16113069653511047, 0.6908955574035645, -0.13480223715305328, -0.11312895268201828, 0.4136623442173004, -0.053418610244989395, -0.16006702184677124, 0.2612384557723999, -0.32710757851600647, 0.09701096266508102, -0.5140104293823242, 0.27218881249427795, 0.2440670132637024, 0.5241883397102356, -0.06864547729492188, -0.2503686249256134, -0.11549869179725647, -0.2959460914134979, -0.05412920564413071, -0.06654458492994308, -0.05930768698453903, -0.15230350196361542, 0.19537962973117828, -0.1410023719072342, -0.31060418486595154, -0.38349035382270813, 0.047087013721466064, 0.1975134015083313, 0.38646990060806274, -0.11855728924274445, -0.07906696945428848, 0.1377028375864029, -0.3078041076660156, 0.24369607865810394, -0.11394108831882477, 0.007783055305480957, 0.3805396854877472, -0.2030075043439865, -0.06273892521858215, 0.15590780973434448, 0.4094287157058716, 0.2585117816925049, 0.1290135383605957, -0.05375480651855469, 0.35999470949172974, 0.12094143033027649, 0.03245486319065094, -0.03650089353322983, 0.007735792547464371, -0.04557884484529495, 0.43220025300979614, 0.15057975053787231, -0.20714589953422546, -0.20907999575138092, 0.03769771754741669, 0.015787940472364426, -0.23574379086494446, -0.010546850040555, -0.2417125403881073, -0.08864009380340576, -0.45093172788619995, -0.02925371378660202, -0.13282358646392822, -0.14885540306568146, -0.2649074196815491, 0.3727756440639496, 0.2461594045162201, -0.09084785729646683, -0.042248062789440155, -0.2776991128921509, -0.13132816553115845, -0.20577587187290192, 0.06125539168715477, 0.015974078327417374, -0.10208781063556671, -0.153493732213974, -0.2902715504169464, 0.18028943240642548, -0.01576649770140648, -0.10327249020338058, -0.019082047045230865, -0.0743509829044342, 0.2151862382888794, 0.3460693359375, 0.09925161302089691, 0.41133156418800354, 0.35388314723968506, -0.42106589674949646, -0.018423236906528473, 0.11595572531223297, 0.06546423584222794, -0.2028469443321228, 0.11397838592529297, -0.23409342765808105, -0.5071299076080322, -0.012211615219712257, 0.15307912230491638, -0.1667325794696808, -0.16940458118915558, 0.06892220675945282, 0.5219020247459412, -0.14845412969589233, -0.05394987389445305, 0.13016551733016968, -0.04997861385345459, -0.016982700675725937, -0.3549630045890808, 0.1976923942565918, 0.16161774098873138, -0.577200174331665, 0.05716397613286972, -0.3905586302280426, -0.03766172006726265, 0.29380184412002563, 0.10096344351768494, -0.40941449999809265, -0.25486522912979126, 0.1447504460811615, -0.08539946377277374, 0.6621947884559631, -0.14788781106472015, -0.503247857093811, 0.021240640431642532, -0.11668263375759125, 0.23628084361553192, 0.13952165842056274, 0.07081741839647293, 0.23763267695903778, -0.1459854394197464, 0.010606817901134491, 0.5886861085891724, -0.15715548396110535, -0.13588076829910278, -0.385148286819458, -0.03302191197872162, 0.09292273968458176, 0.01472415030002594, -0.0122915618121624, -0.04890196770429611, 0.22047972679138184, -0.38536202907562256, 0.19800809025764465, 0.07579296827316284, 0.16815285384655, -0.04612360894680023, 0.565721333026886, 0.14067679643630981, 0.39822566509246826, 0.2781223654747009, -0.08130525797605515, 0.24658328294754028, -0.0564611479640007, -0.10054643452167511, -0.37658989429473877, -0.0060677435249090195, -0.10806897282600403, 0.17236341536045074, -0.11784151196479797, -0.05342254415154457, 0.1456340104341507, -0.2586219608783722, 0.18761150538921356, -0.11193329095840454, -0.2767268419265747, 0.18642400205135345, -0.14016740024089813, -0.02210468053817749, 0.07772846519947052, 0.04737946391105652, 0.15096119046211243, 0.1477295160293579, -0.036288414150476456, -0.20326319336891174, -0.033515311777591705, -0.09794126451015472, -0.14158883690834045, -0.04829274117946625, 0.1992948204278946, 0.20767077803611755, 0.3779628276824951, 0.5796355605125427, 0.06712686270475388, -0.4598429799079895, 0.400054931640625, 0.1309715211391449, 0.12281690537929535, 0.06004386395215988, -0.22308748960494995, 0.6486539840698242, -0.4913369119167328, 0.1301894187927246, 0.07430362701416016, 0.057130999863147736, 0.12090292572975159, 0.09163860976696014, -0.3350028693675995, 0.10611511766910553, 0.23227401077747345, -0.27540308237075806, 0.2704343795776367, -0.04665102809667587, -0.10533036291599274, 0.45822039246559143, -0.13087286055088043, 0.21244360506534576, -0.2018691897392273, 0.21820366382598877, 0.038485314697027206, -0.13730010390281677, 0.04971424862742424, 0.4776943027973175, 0.05521885305643082, 0.3242241144180298, 0.10722318291664124, -0.2351410686969757, 0.07798793911933899, 0.031796254217624664, 0.40038374066352844, 0.03323888033628464, 0.3895936608314514, -0.02260831743478775, 0.25869220495224, -0.075490802526474, -0.19841903448104858, -0.33359718322753906, -0.0943608283996582, 0.1433905065059662, -0.09764761477708817, -0.10844322293996811, 0.12436129152774811, -0.27867645025253296, 0.08964253216981888, -0.4824867248535156, 0.06090744584798813, -0.11824756115674973, 0.19914841651916504, -0.2700444757938385, -0.025898102670907974, 0.25835803151130676, -0.47649386525154114, 0.22154396772384644, 0.06987683475017548, -0.22588922083377838, -0.26924875378608704, -0.23292464017868042, 0.18070387840270996, 0.11880210041999817, 0.009691759012639523, 0.2544659376144409, 0.30767205357551575, 0.4234209656715393, 0.18557953834533691, -0.060786738991737366, -0.5851408243179321, 0.017872899770736694, 0.057448145002126694, 0.24715320765972137, -0.10050030052661896, 0.098446786403656, 0.06655038893222809, 0.03848951309919357, 0.19486169517040253, -0.177628755569458, 0.0035023540258407593, -0.21517200767993927, -0.1799064576625824, 0.16187769174575806, 0.18149136006832123, -0.007470332086086273, -0.4025436341762543, -0.3848935663700104, 0.08398178964853287, 0.09535989165306091, 0.15075919032096863, 0.08645808696746826, 0.15757465362548828, 0.049817100167274475, -0.219969242811203, 0.15545618534088135, 0.10198838263750076, 0.03153591230511665, 0.3705924153327942, -0.19503425061702728, -0.18305988609790802, -0.1638776957988739, -0.23582573235034943, -0.03013971820473671, 0.38966917991638184, -0.11736777424812317, 0.13257357478141785, -0.3845602571964264, 0.2650759220123291, 0.03922823816537857, -0.042985446751117706, 0.2871626019477844, 0.13985943794250488, -0.035801928490400314, -0.2890634536743164, -0.07785189151763916, 0.04683200642466545, -0.1745111048221588, 0.15893582999706268, 0.26714080572128296, 0.2515629529953003, -0.013523004949092865, 0.6781640648841858, 0.23854491114616394, 0.3053129315376282, -0.027806028723716736, 0.2382788509130478, -0.08040367066860199, 0.005088023841381073, -0.3636893928050995, -0.295153945684433, -0.15041667222976685, -0.05156131088733673, 0.031459785997867584, 0.3922911584377289, -0.5023056268692017, -0.25340813398361206, -0.10760942101478577, -0.17409950494766235, -0.09397993236780167, 0.21850483119487762, -0.23748904466629028, 0.2750198543071747, 0.017765484750270844, -0.19588938355445862, -0.3312813341617584, 0.053434353321790695, 0.08936753869056702, -0.023731328547000885, 0.31590259075164795, -0.15512071549892426, -0.24721060693264008, -0.02247736230492592, -0.37847447395324707, 0.31829285621643066, -0.007369000464677811, -0.013122144155204296, -0.01672275736927986, -0.1759760081768036, 0.1313333660364151, 0.06827473640441895, 0.33948639035224915, -0.25640761852264404, -0.12993480265140533, 0.09964324533939362, -0.06546136736869812, -0.26347652077674866, 0.3052334487438202, -0.17200109362602234, 0.2245873063802719, -0.17203278839588165, 0.12673363089561462, -0.0689733475446701, -0.2498931735754013, -0.01837332174181938, -0.06658349931240082, 0.11116816103458405, 0.10377968847751617, 0.22442345321178436, -0.15162652730941772, -0.07315891981124878, 0.20712518692016602, -0.05556127429008484, -0.12213422358036041, -0.020314138382673264, 0.05701611563563347, 0.05575776845216751, 0.2012997567653656, -0.06992073357105255, -0.002200125716626644, 0.12361131608486176, 0.09784701466560364, 0.15590831637382507, 0.18420279026031494, 0.0010703913867473602, -0.05710285156965256, 0.43964678049087524, -0.018720295280218124, -0.09308664500713348, -0.42158418893814087, 0.3052026629447937, 0.4174783527851105, 0.5442758798599243, 0.004980544559657574, 0.35452497005462646, 0.052305351942777634, 0.04450259357690811, 0.20790819823741913, -0.2735944390296936, 0.02003973163664341, 0.08169879019260406, -0.47999152541160583, -0.5529653429985046, 0.556624174118042, 0.0445525087416172, -0.22316528856754303, 0.6911589503288269, 0.27645015716552734, -0.0742659792304039, 0.31618428230285645, 0.10925588756799698, 0.866274356842041, 0.1756535768508911, -0.31623491644859314, -0.18965628743171692, -0.4516645669937134, 0.1645268052816391, 0.1649385541677475, 0.09664279222488403, -0.1555037796497345, -0.01974320039153099, 0.10079212486743927, -0.1575297713279724, 0.23834744095802307, 0.07579588890075684, -0.186605304479599, -0.1635293811559677, -0.06922627985477448, -0.4089561700820923, -0.10138755291700363, 0.1564003974199295, 0.19196070730686188, -0.2369520366191864, -0.33749470114707947, 0.15501219034194946, 0.037673041224479675, 0.19410069286823273, 0.10980622470378876, -0.2859635353088379, -0.18543370068073273, 0.03390353173017502, -0.13729669153690338, -0.2098487913608551, -0.42183753848075867, 0.20174236595630646, 0.1767585724592209, -0.6858210563659668, 0.4032752215862274, -0.25901615619659424, -0.1760682910680771, 0.06607364118099213, -0.2633848488330841, 0.37661781907081604, 0.4508698582649231, 0.05419228598475456, 0.15257808566093445, -0.04315788671374321, 0.3689371347427368, -0.11309882253408432, -0.13338151574134827, -0.09699300676584244, -0.3404676616191864, -0.3378998041152954, -0.20133325457572937, -0.07389621436595917, 0.5246472954750061, 0.10631465166807175, -0.1258169561624527, 0.17291992902755737, -0.3183772563934326, -0.0435609333217144, 0.20247088372707367, 0.2792017459869385, -0.10812674462795258, 0.4356885850429535, 0.2355085015296936, -0.023405611515045166, -0.07765541970729828, 0.14198091626167297, 0.11909231543540955, -0.17500564455986023, 0.1872934103012085, 0.3225567936897278, -0.34613436460494995, -0.11633625626564026, -0.0046143122017383575, 0.3299771547317505, -0.294735312461853, 0.03820444643497467, 0.010705200955271721, 0.03734162449836731, 0.376046359539032, 0.2310851812362671, 0.08446663618087769, -0.019548021256923676, -0.34279298782348633, -0.19939687848091125, -0.2802715301513672, 0.13338515162467957, -0.2288031131029129, 0.017955586314201355, -0.6987083554267883, -0.39381328225135803, 0.12507866322994232, 0.2507769763469696, -0.3786205053329468, 0.13639391958713531, 0.18505257368087769, 0.06632748991250992, -0.012742415070533752, 0.12309131771326065, 0.12471675127744675, 0.151998832821846, 0.10753953456878662, -0.13997654616832733, -0.3695695102214813, -0.19274017214775085, 0.12101924419403076, 0.14532652497291565, -0.19193020462989807, -0.34536755084991455, 0.09821683913469315, -0.2254563570022583, -0.4630487263202667, 0.0646001547574997, -0.11461520195007324, 0.09316930919885635, -0.08222199976444244, -0.3298392593860626, -0.17615313827991486, -0.49999305605888367, 0.1140105277299881, 0.11758645623922348, 0.11435049772262573, -0.08847162127494812, 0.2574738562107086, 0.15938915312290192, -0.001237739808857441, -0.2922893762588501, 0.06251341849565506, 0.22083169221878052, -0.039720505475997925, -0.03187999129295349, 0.4271567165851593, -0.26848989725112915, 0.07350996136665344, 0.011983273550868034, 0.42899954319000244, 0.099765345454216, -0.014969028532505035, 0.21365562081336975, 0.23702222108840942, 0.21676182746887207, -0.2880711257457733, -0.15288510918617249, 0.21421830356121063, -0.014133901335299015, 0.17831498384475708, 0.09579630196094513, 0.1697102189064026, 0.2545417547225952, 0.12272469699382782, 0.1712327003479004, 0.1429409384727478, -0.26575034856796265, -0.009802106767892838, 0.2091662436723709, 0.1680661141872406, -0.25415387749671936, 0.453797310590744, 0.36799246072769165, 0.1609518975019455, 0.32943564653396606, 0.08729170262813568, 0.4186420738697052, 0.29545775055885315, 0.30998578667640686, -0.09882333129644394, -0.22408972680568695, 0.13486292958259583, 0.19339215755462646, -0.37789636850357056, 0.18933716416358948, 0.16090716421604156, 0.2772233784198761, 0.29053378105163574, 0.010082457214593887, 0.15387922525405884, 0.11001686751842499, 0.14005225896835327, -0.17709745466709137, 0.26998940110206604, -0.46173229813575745, -0.0446576289832592, -0.08759775757789612, -0.1264301836490631, 0.3221150040626526, 0.43033719062805176, -0.0477113202214241, 0.45647627115249634, -0.23631586134433746, 0.1498158574104309, 0.09088185429573059, 0.5641855001449585, -0.10719245672225952, 0.08741248399019241, -0.10859742760658264, -0.04623694717884064, 0.0002306327223777771, 0.09868243336677551, 0.22506438195705414, 0.22646278142929077, -0.1615534871816635, 0.06076563522219658, -0.055296871811151505, -0.3745657801628113, -0.008810768835246563, 0.5079402923583984, 0.34473562240600586, -0.35218510031700134, 0.040046267211437225, 0.05112390220165253, -0.1720166653394699, 0.07840468734502792, -0.14195050299167633, -0.030224915593862534, 0.08697390556335449, -0.11167909950017929, 0.17733033001422882, -0.25695621967315674, -0.4046735465526581, -0.10242613404989243, -0.08185909688472748, -0.3288164734840393, 0.23116274178028107, -0.22922511398792267, -0.08916515856981277, -0.05962449312210083, 0.09370239078998566, -0.07568258047103882, 0.507557213306427, 0.16217388212680817, 0.3664550483226776, -0.05807141214609146, -0.3708946108818054, -0.20532648265361786, -0.18310382962226868, -0.24223670363426208, 0.17342843115329742, 0.2796363830566406, 0.15079863369464874, 0.28340399265289307, 0.410599946975708, 0.22468167543411255, -0.25005197525024414, 0.12041971832513809, 0.2884010672569275, -0.2290092408657074, 0.2530549168586731, 0.245889350771904, 0.3859765827655792, -0.17107431590557098, -0.049793194979429245, 0.080886110663414, -0.3277784585952759, 0.13019463419914246, -0.13787312805652618, 0.03465350717306137, 0.42800605297088623, 0.11719802021980286, 0.16865813732147217, 0.1115584522485733, 0.3198150396347046, 0.13468217849731445, 0.05248061567544937, -0.26194655895233154, -0.21631929278373718, -0.021766910329461098, 0.14653423428535461, 0.28410789370536804, 0.33301976323127747, 0.10760816186666489, -0.4194907546043396, 0.011720540001988411, -0.1147376000881195, -0.32438433170318604, -0.001916137640364468, 0.04112058877944946, -0.05163807421922684, 0.03586789220571518, 0.0699702650308609, -0.33063146471977234, 0.19535624980926514, 0.1989714801311493, -0.03782486170530319, -0.40848636627197266, -0.280621200799942, 0.5808030366897583, -0.3440423011779785, -0.29825451970100403, -0.09368354827165604, 0.042740315198898315, 0.18097005784511566, -0.02742062695324421, -0.18481628596782684, -0.16655753552913666, 0.10743790864944458, -0.34718772768974304, -0.06203433871269226, 0.27253493666648865, 0.13910558819770813, 0.13198530673980713, -0.035042714327573776, 0.09188823401927948, 0.12543626129627228, 0.2822113335132599, -0.5548902153968811, -0.004371190443634987 ]
https://github.com/huggingface/datasets/issues/1948
dataset loading logger level
These warnings are showed when there's a call to `.map` to say to the user that a dataset is reloaded from the cache instead of being recomputed. They are warnings since we want to make sure the users know that it's not recomputed.
on master I get this with `--dataset_name wmt16 --dataset_config ro-en`: ``` WARNING:datasets.arrow_dataset:Loading cached processed dataset at /home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/9dc00622c30446e99c4c63d12a484ea4fb653f2f37c867d6edcec839d7eae50f/cache-2e01bead8cf42e26.arrow WARNING:datasets.arrow_dataset:Loading cached processed dataset at /home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/9dc00622c30446e99c4c63d12a484ea4fb653f2f37c867d6edcec839d7eae50f/cache-ac3bebaf4f91f776.arrow WARNING:datasets.arrow_dataset:Loading cached processed dataset at /home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/9dc00622c30446e99c4c63d12a484ea4fb653f2f37c867d6edcec839d7eae50f/cache-810c3e61259d73a9.arrow ``` why are those WARNINGs? Should be INFO, no? warnings should only be used when a user needs to pay attention to something, this is just informative - I'd even say it should be DEBUG, but definitely not WARNING. Thank you.
43
dataset loading logger level on master I get this with `--dataset_name wmt16 --dataset_config ro-en`: ``` WARNING:datasets.arrow_dataset:Loading cached processed dataset at /home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/9dc00622c30446e99c4c63d12a484ea4fb653f2f37c867d6edcec839d7eae50f/cache-2e01bead8cf42e26.arrow WARNING:datasets.arrow_dataset:Loading cached processed dataset at /home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/9dc00622c30446e99c4c63d12a484ea4fb653f2f37c867d6edcec839d7eae50f/cache-ac3bebaf4f91f776.arrow WARNING:datasets.arrow_dataset:Loading cached processed dataset at /home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/9dc00622c30446e99c4c63d12a484ea4fb653f2f37c867d6edcec839d7eae50f/cache-810c3e61259d73a9.arrow ``` why are those WARNINGs? Should be INFO, no? warnings should only be used when a user needs to pay attention to something, this is just informative - I'd even say it should be DEBUG, but definitely not WARNING. Thank you. These warnings are showed when there's a call to `.map` to say to the user that a dataset is reloaded from the cache instead of being recomputed. They are warnings since we want to make sure the users know that it's not recomputed.
[ -0.15109027922153473, -0.3636065125465393, -0.017066843807697296, 0.34751880168914795, 0.40035128593444824, 0.4622994363307953, 0.47064363956451416, 0.14328502118587494, 0.2523235082626343, -0.004766806960105896, 0.024378854781389236, -0.016878247261047363, -0.24817050993442535, -0.19753292202949524, -0.367241233587265, 0.19442160427570343, -0.11710847169160843, -0.015378564596176147, -0.3518665134906769, -0.07572338730096817, -0.11711806803941727, 0.0906822606921196, -0.026626326143741608, 0.5081017017364502, -0.7216523885726929, -0.08369094133377075, 0.14005132019519806, 0.11884335428476334, 0.00991947390139103, -0.7821527123451233, 0.2707003653049469, -0.12800975143909454, 0.14961108565330505, 0.06408941745758057, -0.00012211500143166631, 0.20602913200855255, 0.6381806135177612, 0.051554933190345764, -0.48716476559638977, 0.029248066246509552, -0.4754451513290405, -0.4789411425590515, 0.25215211510658264, -0.10429251194000244, -0.029727976769208908, -0.3696422278881073, 0.1922227144241333, -0.40778911113739014, 0.32863378524780273, 0.10217759758234024, 0.11399237811565399, 0.11369036138057709, -0.13955479860305786, 0.03268275409936905, 0.323257178068161, 0.2458926886320114, 0.037366583943367004, 0.04795118793845177, -0.06448549032211304, 0.07008776813745499, -0.2977597117424011, 0.44092926383018494, -0.29566314816474915, 0.052874889224767685, 0.24016642570495605, -0.013479040004312992, 0.2989347279071808, -0.2302698791027069, 0.17107245326042175, 0.302679181098938, 0.5181796550750732, -0.011201947927474976, 0.1131071150302887, -0.40323466062545776, -0.22678306698799133, -0.08019471168518066, 0.1673659384250641, 0.1750004142522812, 0.0717572271823883, 0.1927926242351532, -0.3779023289680481, 0.12599672377109528, 0.159112349152565, -0.045112207531929016, 0.21880441904067993, 0.3621397018432617, -0.373017281293869, 0.293586403131485, 0.17117059230804443, -0.07916520535945892, 0.11436321586370468, -0.2527519464492798, -0.33055204153060913, 0.1376243531703949, -0.20997254550457, 0.01383519172668457, -0.11737226694822311, 0.39298364520072937, -0.1036163717508316, 0.023690328001976013, 0.10741542279720306, -0.0235767625272274, 0.17982938885688782, 0.13783665001392365, 0.40806886553764343, 0.0065902285277843475, 0.44696518778800964, 0.053667180240154266, -0.1491609513759613, -0.18659816682338715, 0.18634095788002014, -0.05389918386936188, 0.03642100840806961, -0.14015412330627441, 0.5328093767166138, 0.13285544514656067, 0.11731782555580139, -0.1514062136411667, -0.08664083480834961, 0.032466478645801544, -0.10647532343864441, -0.29180285334587097, 0.012835996225476265, 0.18172848224639893, -0.04695558175444603, -0.04553818702697754, -0.12227369099855423, -0.06428508460521698, 0.057040564715862274, -0.17380790412425995, -0.08315664529800415, -0.33412784337997437, -0.364317923784256, 0.11041717231273651, -0.024718597531318665, -0.2077741026878357, 0.3294540047645569, 0.18764610588550568, -0.13659773766994476, 0.02101602405309677, 0.1092822402715683, -0.19647741317749023, 0.11478784680366516, 0.627643883228302, -0.22829917073249817, 0.21966597437858582, 0.3440070152282715, 0.19593869149684906, -0.19973047077655792, 0.4353933334350586, -0.4109540283679962, -0.46999162435531616, 0.018468789756298065, 0.08843202143907547, -0.13899238407611847, 0.04480917006731033, -0.30835020542144775, 0.13666555285453796, 0.3585320711135864, 0.12519513070583344, 0.24247613549232483, -0.10675542056560516, -0.32466569542884827, -0.15521833300590515, -0.19790969789028168, 0.5811365246772766, -0.1848372220993042, -0.30254927277565, -0.328083872795105, -0.4322117567062378, 0.21257266402244568, 0.12183408439159393, -0.21368993818759918, 0.2800593078136444, -0.3107714056968689, -0.09725344926118851, 0.30821067094802856, -0.10507890582084656, 0.08229177445173264, 0.4469824433326721, -0.2502985894680023, 0.16800299286842346, 0.21252164244651794, 0.08360429853200912, -0.21567532420158386, -0.1224222257733345, 0.013581842184066772, -0.4536340832710266, 0.04069800674915314, -0.15461082756519318, -0.14736604690551758, -0.18950369954109192, 0.29604649543762207, 0.014489389955997467, -0.2710360884666443, -0.014095954596996307, 0.0367446132004261, -0.15546347200870514, 0.23977023363113403, 0.12712706625461578, 0.10408848524093628, 0.04312387481331825, -0.16478198766708374, 0.019825194031000137, -0.045083142817020416, 0.32803985476493835, -0.6091811656951904, 0.09617108851671219, 0.11653868854045868, -0.0305938720703125, 0.004508465528488159, -0.09093274921178818, -0.049007847905159, -0.02732759900391102, -0.37920260429382324, -0.16405166685581207, -0.022196076810359955, 0.001626238226890564, -0.059620149433612823, -0.0850864052772522, -0.07513361424207687, 0.2245912104845047, -0.5344880223274231, 0.08637135475873947, 0.005691075697541237, -0.16610276699066162, 0.011770922690629959, 0.3507809042930603, -0.223510280251503, -0.10543488711118698, 0.13554805517196655, 0.07926839590072632, -0.15476921200752258, 0.21734347939491272, 0.10866724699735641, 0.2987654209136963, -0.042835406959056854, 0.39474499225616455, 0.03077588602900505, -0.1995358169078827, 0.4566536545753479, -0.192030668258667, -0.19190460443496704, -0.11845825612545013, 0.14700950682163239, 0.14888213574886322, -0.029363837093114853, 0.24587473273277283, -0.3589744567871094, 0.001474965363740921, 0.07247307896614075, 0.17635484039783478, -0.18274594843387604, -0.5318387746810913, -0.05355994775891304, 0.13822847604751587, 0.22363294661045074, 0.3524543344974518, 0.032861895859241486, 0.0614069402217865, 0.5036967396736145, -0.022522369399666786, -0.03500230610370636, 0.17259454727172852, -0.11725998669862747, -0.12676182389259338, 0.21074336767196655, 0.09959940612316132, 0.4006425142288208, 0.14335761964321136, 0.09640355408191681, 0.21355539560317993, 0.039883024990558624, -0.02876073122024536, 0.28457292914390564, 0.0011583119630813599, 0.29194700717926025, 0.0412643626332283, -0.46888023614883423, -0.05349553003907204, -0.2464316189289093, 0.042636971920728683, -0.11076588928699493, -0.13385134935379028, -0.5484198927879333, -0.13524305820465088, -0.17941240966320038, -0.24734577536582947, -0.32477882504463196, -0.21801578998565674, -0.20573730766773224, -0.4174845516681671, 0.015990955755114555, -0.19676196575164795, -0.35590752959251404, 0.18646472692489624, -0.17965568602085114, 0.21858100593090057, 0.10874587297439575, 0.2702392637729645, -0.35940662026405334, -0.20739759504795074, -0.1868625283241272, 0.005662973970174789, -0.17537418007850647, -0.19876915216445923, 0.0720706433057785, -0.30093762278556824, 0.2761231064796448, -0.29696720838546753, -0.1735820472240448, 0.16288679838180542, -0.3161105513572693, -0.015854524448513985, 0.15415963530540466, 0.0007789731025695801, 0.03418447822332382, -0.13842418789863586, 0.09443573653697968, 0.12076714634895325, -0.0642787292599678, -0.31957924365997314, 0.16049519181251526, 0.12898138165473938, -0.15517276525497437, -0.21219825744628906, -0.33492252230644226, -0.1513199508190155, -0.17971482872962952, -0.3641601800918579, 0.18971607089042664, 0.3864738643169403, 0.002457665279507637, 0.1253538727760315, -0.27723532915115356, 0.20455138385295868, -0.3516033887863159, -0.6407553553581238, 0.04193590581417084, -0.09419841319322586, 0.044705260545015335, 0.023305345326662064, 0.11993804574012756, 0.16165810823440552, -0.07170698791742325, -0.8328557014465332, 0.08375702798366547, -0.1131228357553482, -0.24979299306869507, 0.2192758023738861, -0.031191391870379448, -0.08929677307605743, 0.29554906487464905, -0.004010818898677826, -0.015530835837125778, -0.29370149970054626, 0.03425421938300133, -0.48276546597480774, 0.2337227761745453, 0.06502792239189148, 0.49556398391723633, -0.1274767369031906, 0.6671249866485596, 0.17867641150951385, -0.02755618467926979, 0.19708892703056335, 0.04708163067698479, 0.6038406491279602, -0.14998313784599304, -0.15485849976539612, -0.11122491210699081, 0.07435866445302963, -0.1259295493364334, -0.015710823237895966, -0.08414114266633987, 0.047663070261478424, 0.1504988670349121, 0.16547353565692902, 0.07865557819604874, -0.24259565770626068, 0.0733594074845314, -0.4269166886806488, -0.0912574753165245, -0.1446540206670761, 0.0739908441901207, 0.12816265225410461, -0.012373082339763641, 0.011063190177083015, 0.4801498055458069, 0.3755212724208832, 0.07737412303686142, -0.2766476571559906, -0.15894058346748352, -0.16900348663330078, 0.11225475370883942, 0.09177444875240326, 0.06707306951284409, -0.38827815651893616, -0.3064820468425751, -0.07212357223033905, 0.35493284463882446, 0.13718345761299133, -0.15701335668563843, 0.29493188858032227, 0.13180431723594666, -0.12168446183204651, -0.13472215831279755, -0.20342151820659637, 0.08792875707149506, 0.15417899191379547, 0.12763755023479462, 0.17175593972206116, -0.08386976271867752, -0.39605334401130676, 0.11004657298326492, -0.1419893503189087, -0.139214426279068, -0.19154557585716248, -0.2848087251186371, 0.29925379157066345, -0.20380935072898865, -0.003204256296157837, -0.041296981275081635, -0.13341796398162842, -0.4892790913581848, -0.12123076617717743, 0.1779162734746933, 0.29808133840560913, -0.07195816934108734, -0.10047389566898346, -0.018829984590411186, 0.3366836607456207, -0.09399297833442688, 0.3638507127761841, 0.6472283601760864, 0.25554537773132324, 0.7740366458892822, 0.036373697221279144, -0.1040382981300354, -0.013920143246650696, -0.04849564656615257, 0.23075640201568604, 0.15237291157245636, -0.027460850775241852, 0.00007125735282897949, 0.3212534785270691, 0.34401363134384155, -0.4421433210372925, 0.13374930620193481, 0.23138031363487244, 0.16682255268096924, -0.4083362817764282, -0.28680309653282166, 0.5116583704948425, 0.2142748236656189, -0.10439183562994003, 0.5442039966583252, 0.0711132064461708, -0.16159436106681824, -0.2187599092721939, 0.37418031692504883, 0.8942171335220337, -0.14716282486915588, 0.10028006136417389, -0.016029059886932373, -0.0071233101189136505, 0.17175790667533875, 0.14405478537082672, -0.2678990364074707, 0.007318686693906784, 0.10291450470685959, -0.09251082688570023, -0.07077707350254059, 0.1881529688835144, 0.5290836691856384, -0.1787947118282318, 0.016059817746281624, -0.24337315559387207, 0.3730200529098511, 0.061784833669662476, -0.012121062725782394, -0.050251178443431854, -0.09360811114311218, -0.16601811349391937, 0.005270067602396011, 0.10450948774814606, 0.2041030377149582, -0.23948225378990173, 0.04600566625595093, 0.3798739016056061, -0.2689363360404968, -0.10608784109354019, -0.20111238956451416, -0.21681320667266846, 0.18504579365253448, -0.057274218648672104, -0.04701711982488632, 0.11913467943668365, 0.09375870227813721, -0.023439660668373108, 0.1446032077074051, 0.011947480030357838, -0.11879844963550568, 0.06157611310482025, 0.02382107637822628, -0.36431795358657837, 0.01790093258023262, 0.23255103826522827, -0.00728442519903183, -0.26463764905929565, 0.20483767986297607, -0.3840930163860321, -0.5043622851371765, 0.02289438247680664, 0.07119375467300415, -0.19223915040493011, -0.2036358118057251, 0.053313013166189194, 0.16991622745990753, -0.23091568052768707, 0.28732049465179443, 0.02937573380768299, 0.15020495653152466, 0.19655324518680573, 0.06015685200691223, 0.23141220211982727, -0.6483147144317627, -0.18054534494876862, 0.28993290662765503, 0.07875107228755951, -0.07871533930301666, 0.4794628918170929, -0.2117161899805069, -0.07894934713840485, -0.1393015831708908, 0.06223317235708237, 0.3695780634880066, -0.027595218271017075, -0.11375702172517776, 0.34956973791122437, 0.03957383334636688, 0.11294963955879211, -0.025881726294755936, 0.2895485460758209, 0.21287977695465088, -0.26259279251098633, -0.32035842537879944, -0.626681387424469, 0.26294195652008057, -0.5137579441070557, 0.19107094407081604, -0.1408810317516327, -0.2451642006635666, 0.3036813735961914, 0.10795487463474274, -0.19167305529117584, -0.09995660185813904, 0.05568995326757431, -0.007193081080913544, 0.17091026902198792, 0.1493300348520279, 0.3320845067501068, 0.27915462851524353, -0.09223021566867828, -0.3216714859008789, -0.44330158829689026, -0.04000571370124817, 0.16849517822265625, 0.21695473790168762, 0.009491123259067535, -0.07951744645833969, -0.257578045129776, -0.12808066606521606, 0.10195302963256836, -0.07783956080675125, 0.39050623774528503, 0.10491272062063217, -0.009597532451152802, 0.3817894756793976, -0.14263321459293365, -0.008678697049617767, -0.24568776786327362, -0.0357542410492897, 0.1109166294336319, 0.0550188384950161, -0.151347354054451, -0.180146723985672, -0.049104299396276474, -0.05397378280758858, 0.25119441747665405, 0.09992225468158722, 0.09720896184444427, -0.07860013097524643, 0.1991378366947174, 0.1278098225593567, 0.17320597171783447, 0.20663970708847046, 0.15527117252349854, 0.05591585859656334, 0.0019714150112122297, -0.38580524921417236, -0.22157076001167297, 0.06467623263597488, 0.035607315599918365, 0.03782137855887413, -0.12966372072696686, 0.4016623795032501, 0.005983114242553711, 0.07109691202640533, 0.13502797484397888, 0.10850122570991516, 0.5503320097923279, 0.1401061713695526, 0.17034600675106049, -0.43191057443618774, 0.21256648004055023, 0.3312867283821106, -0.2809247374534607, 0.3473610281944275, 0.535461962223053, 0.13228830695152283, 0.2809295654296875, 0.080307237803936, 0.23777607083320618, 0.5244954228401184, 0.32986605167388916, 0.06404843926429749, -0.10333669930696487, -0.5520822405815125, 0.10155817121267319, 0.6678977608680725, -0.5076918005943298, -0.15739253163337708, 0.11453206092119217, 0.016078464686870575, 0.1352500021457672, -0.13149656355381012, -0.16894502937793732, -0.14189410209655762, -0.15576979517936707, -0.066733717918396, 0.09402592480182648, -0.01922059804201126, -0.05751851201057434, -0.03623896464705467, 0.1004229336977005, -0.04345479607582092, 0.24449148774147034, -0.3040911555290222, -0.2544710636138916, -0.02727840654551983, -0.03177204728126526, 0.27844223380088806, 0.1199139952659607, -0.23054055869579315, -0.08070311695337296, 0.15792106091976166, -0.021418310701847076, 0.42655935883522034, 0.5706613063812256, 0.5717045068740845, 0.6063529253005981, 0.18304334580898285, 0.12788623571395874, 0.013111568987369537, 0.05906764417886734, -0.007318127900362015, 0.6166629791259766, -0.004563122987747192, -0.5439013838768005, 0.2784527540206909, 0.04394926130771637, 0.004139178432524204, 0.3585561215877533, -0.21199189126491547, 0.3224887251853943, 0.11057302355766296, 0.10540885478258133, 0.06427013128995895, -0.05841008946299553, 0.13740608096122742, 0.08279713988304138, -0.2589647173881531, 0.0726371482014656, 0.9143499135971069, -0.13471806049346924, -0.0051502203568816185, -0.3627816438674927, 0.029740747064352036, 0.07002570480108261, 0.7529670596122742, 0.6106796264648438, 0.06589847803115845, -0.3105234205722809, 0.02889695018529892, -0.5796039700508118, 0.08235327899456024, -0.01418992131948471, 0.3293285667896271, 0.1985843926668167, -0.21573056280612946, 0.11541595309972763, 0.34219831228256226, 0.22625327110290527, -0.306805819272995, -0.06983841955661774, -0.46820810437202454, -0.27011892199516296, -0.016981661319732666, 0.345425546169281, 0.19136513769626617, -0.06660494953393936, -0.10963602364063263, 0.3333045244216919, -0.008853523060679436, -0.05848219618201256, -0.10184589773416519, 0.25465959310531616, 0.016831427812576294, 0.4844091534614563, 0.36365175247192383, 0.19588437676429749, 0.3726081848144531, 0.1436448097229004, 0.018105460330843925, -0.34563013911247253, -0.25102248787879944, 0.09016458690166473, 0.22327351570129395, 0.18798677623271942, 0.14586003124713898, -0.15427938103675842, -0.03820155933499336, -0.2758578062057495, 0.06527204811573029, 0.07069007307291031, 0.0428655631840229, 0.1385473906993866, -0.04373639076948166, -0.1341780424118042, -0.18135157227516174, -0.03783068060874939, 0.12091577798128128, 0.49513450264930725, 0.16491153836250305, -0.014204919338226318, -0.23019415140151978, 0.3458402752876282, -0.17770296335220337, 0.0022800788283348083, -0.020244279876351357, 0.17307992279529572, 0.10030864179134369, -0.22336553037166595, -0.8071293234825134, 0.08169177919626236, 0.4822104573249817, -0.20357495546340942, -0.1766885221004486, 0.025561627000570297, -0.06078923121094704, -0.008667167276144028, 0.03449706360697746, 0.43764981627464294, -0.10602576285600662, -0.07573055475950241, -0.2217496633529663, -0.5205211043357849 ]
https://github.com/huggingface/datasets/issues/1948
dataset loading logger level
Thank you for explaining the intention, @lhoestq 1. Could it be then made more human-friendly? Currently the hex gibberish tells me nothing of what's really going on. e.g. the following is instructive, IMHO: ``` WARNING: wmt16/ro-en/train dataset was loaded from cache instead of being recomputed WARNING: wmt16/ro-en/validation dataset was loaded from cache instead of being recomputed WARNING: wmt16/ro-en/test dataset was loaded from cache instead of being recomputed ``` note that it removes the not so useful hex info and tells the user instead which split it's referring to - but probably no harm in keeping the path if it helps the debug. But the key is that now the warning is telling me what it is it's warning me about. ``` Warning:Loading cache path ``` on the other hand isn't telling what it is warning about. And I still suggest this is INFO level, otherwise you need to turn all 'using cache' statements to WARNING to be consistent. The user is most likely well aware the cache is used for models, etc. So this feels very similar. 2. Should there be a way for a user to void warranty by having a flag - `I know I'm expecting the cached version to load if it's available - please do not warn me about it=True` To explain the need: Warnings are a problem, they constantly take attention away because they could be the harbinger of a problem. Therefore I prefer not to have any warnings in the log, and if I get any I usually try to deal with those so that my log is clean. It's less of an issue for somebody doing long runs. It's a huge issue for someone who does a new run every few minutes and on the lookout for any potential problems which is what I have been doing a lot of integrating DeepSpeed and other things. And since there are already problems to deal with during the integration it's nice to have a clean log to start with. I hope my need is not unreasonable and I was able to explain it adequately. Thank you.
on master I get this with `--dataset_name wmt16 --dataset_config ro-en`: ``` WARNING:datasets.arrow_dataset:Loading cached processed dataset at /home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/9dc00622c30446e99c4c63d12a484ea4fb653f2f37c867d6edcec839d7eae50f/cache-2e01bead8cf42e26.arrow WARNING:datasets.arrow_dataset:Loading cached processed dataset at /home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/9dc00622c30446e99c4c63d12a484ea4fb653f2f37c867d6edcec839d7eae50f/cache-ac3bebaf4f91f776.arrow WARNING:datasets.arrow_dataset:Loading cached processed dataset at /home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/9dc00622c30446e99c4c63d12a484ea4fb653f2f37c867d6edcec839d7eae50f/cache-810c3e61259d73a9.arrow ``` why are those WARNINGs? Should be INFO, no? warnings should only be used when a user needs to pay attention to something, this is just informative - I'd even say it should be DEBUG, but definitely not WARNING. Thank you.
351
dataset loading logger level on master I get this with `--dataset_name wmt16 --dataset_config ro-en`: ``` WARNING:datasets.arrow_dataset:Loading cached processed dataset at /home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/9dc00622c30446e99c4c63d12a484ea4fb653f2f37c867d6edcec839d7eae50f/cache-2e01bead8cf42e26.arrow WARNING:datasets.arrow_dataset:Loading cached processed dataset at /home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/9dc00622c30446e99c4c63d12a484ea4fb653f2f37c867d6edcec839d7eae50f/cache-ac3bebaf4f91f776.arrow WARNING:datasets.arrow_dataset:Loading cached processed dataset at /home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/9dc00622c30446e99c4c63d12a484ea4fb653f2f37c867d6edcec839d7eae50f/cache-810c3e61259d73a9.arrow ``` why are those WARNINGs? Should be INFO, no? warnings should only be used when a user needs to pay attention to something, this is just informative - I'd even say it should be DEBUG, but definitely not WARNING. Thank you. Thank you for explaining the intention, @lhoestq 1. Could it be then made more human-friendly? Currently the hex gibberish tells me nothing of what's really going on. e.g. the following is instructive, IMHO: ``` WARNING: wmt16/ro-en/train dataset was loaded from cache instead of being recomputed WARNING: wmt16/ro-en/validation dataset was loaded from cache instead of being recomputed WARNING: wmt16/ro-en/test dataset was loaded from cache instead of being recomputed ``` note that it removes the not so useful hex info and tells the user instead which split it's referring to - but probably no harm in keeping the path if it helps the debug. But the key is that now the warning is telling me what it is it's warning me about. ``` Warning:Loading cache path ``` on the other hand isn't telling what it is warning about. And I still suggest this is INFO level, otherwise you need to turn all 'using cache' statements to WARNING to be consistent. The user is most likely well aware the cache is used for models, etc. So this feels very similar. 2. Should there be a way for a user to void warranty by having a flag - `I know I'm expecting the cached version to load if it's available - please do not warn me about it=True` To explain the need: Warnings are a problem, they constantly take attention away because they could be the harbinger of a problem. Therefore I prefer not to have any warnings in the log, and if I get any I usually try to deal with those so that my log is clean. It's less of an issue for somebody doing long runs. It's a huge issue for someone who does a new run every few minutes and on the lookout for any potential problems which is what I have been doing a lot of integrating DeepSpeed and other things. And since there are already problems to deal with during the integration it's nice to have a clean log to start with. I hope my need is not unreasonable and I was able to explain it adequately. Thank you.
[ -0.1465868055820465, -0.2024427354335785, 0.012919127941131592, 0.3102096915245056, 0.4003247618675232, 0.3999486267566681, 0.4905203580856323, 0.2311709076166153, 0.12435996532440186, 0.028232969343662262, 0.009334652684628963, -0.14726276695728302, -0.24832101166248322, -0.18829801678657532, -0.2508576214313507, 0.06093882769346237, -0.12649476528167725, -0.031552523374557495, -0.3859972059726715, -0.12803766131401062, 0.011019520461559296, -0.009377239271998405, 0.0819806456565857, 0.4615400433540344, -0.6953529119491577, -0.057730697095394135, 0.09077754616737366, 0.26928284764289856, 0.048417240381240845, -0.7044391632080078, 0.26879486441612244, -0.0610610656440258, 0.17925898730754852, 0.15388135612010956, -0.00012209342094138265, 0.13016168773174286, 0.6268303990364075, 0.00678650476038456, -0.624370276927948, 0.016163334250450134, -0.39791274070739746, -0.38230428099632263, 0.19095352292060852, -0.08937238901853561, -0.08788368850946426, -0.33292266726493835, 0.3174682855606079, -0.3982442319393158, 0.3191032409667969, 0.15393222868442535, 0.09727320075035095, 0.13096381723880768, -0.15694472193717957, 0.13047738373279572, 0.32192328572273254, 0.26716119050979614, -0.06690023094415665, 0.06254371255636215, -0.027156591415405273, 0.1869472712278366, -0.35448142886161804, 0.36541748046875, -0.1897871047258377, -0.03559478372335434, 0.16825616359710693, -0.025154531002044678, 0.27074456214904785, -0.08298561722040176, 0.098023422062397, 0.45702120661735535, 0.46933501958847046, -0.13812008500099182, 0.09600871801376343, -0.39516520500183105, -0.11428014189004898, -0.30581244826316833, 0.17226839065551758, 0.18179428577423096, -0.12363427877426147, 0.16428770124912262, -0.2786453068256378, 0.09623140096664429, 0.06331855058670044, -0.041200339794158936, 0.27539435029029846, 0.5356915593147278, -0.25490275025367737, 0.1994914412498474, 0.2321581393480301, -0.10864850878715515, 0.3180999457836151, -0.06474552303552628, -0.29239073395729065, 0.05574214085936546, -0.32845455408096313, 0.0961235910654068, -0.15698155760765076, 0.22790881991386414, -0.12703247368335724, 0.05502762272953987, 0.03039264865219593, 0.06457459181547165, 0.176662415266037, 0.04653676599264145, 0.30213233828544617, 0.0782376229763031, 0.3390367329120636, -0.04372619092464447, -0.20390446484088898, -0.023251177743077278, 0.19067607820034027, -0.05228877067565918, -0.13067284226417542, -0.08844415098428726, 0.44261434674263, 0.20559367537498474, 0.006123408675193787, -0.032938070595264435, -0.1966409981250763, 0.025985006242990494, -0.15248948335647583, -0.3309820890426636, 0.024868769571185112, 0.1910766363143921, -0.0790167972445488, -0.03142418712377548, -0.13343685865402222, -0.02658548578619957, -0.0438801646232605, -0.27369973063468933, -0.07954967021942139, -0.2813800573348999, -0.37220633029937744, 0.1771146059036255, -0.11280177533626556, -0.1633094847202301, 0.17491239309310913, 0.1784886121749878, -0.0563444048166275, 0.0769142135977745, -0.043876733630895615, -0.1474408507347107, 0.1251855045557022, 0.48883935809135437, -0.1188977062702179, 0.21091492474079132, 0.3153441846370697, 0.11441077291965485, -0.2508602738380432, 0.3219144642353058, -0.3088698089122772, -0.44297152757644653, -0.13885004818439484, 0.05689733102917671, -0.18728484213352203, -0.04270531237125397, -0.22634413838386536, 0.20497465133666992, 0.20809948444366455, 0.26164770126342773, 0.30431708693504333, -0.0870521292090416, -0.2893235385417938, -0.14004185795783997, -0.10680210590362549, 0.6045224070549011, -0.23004098236560822, -0.3448929786682129, -0.22339056432247162, -0.3908488154411316, 0.3220081329345703, 0.19409531354904175, -0.1252974420785904, 0.34292975068092346, -0.2669638395309448, -0.1275549829006195, 0.2065175622701645, -0.19930730760097504, 0.15382550656795502, 0.5722747445106506, -0.2666303217411041, 0.35739368200302124, 0.24871507287025452, 0.07573678344488144, -0.37954387068748474, -0.15874171257019043, 0.09316298365592957, -0.4061238765716553, 0.03464934974908829, -0.21954762935638428, -0.14228861033916473, -0.31017476320266724, 0.31624096632003784, 0.09567335247993469, -0.12433379888534546, -0.040762223303318024, -0.027005672454833984, -0.059658922255039215, 0.5715072751045227, 0.06594523042440414, 0.08812963217496872, 0.01597382128238678, -0.047475192695856094, 0.013791050761938095, -0.12476686388254166, 0.30474555492401123, -0.47335565090179443, 0.0033311471343040466, 0.29657870531082153, 0.15414243936538696, 0.0607181154191494, -0.03491291403770447, -0.11017666757106781, -0.04166415333747864, -0.465191513299942, -0.1592131108045578, -0.014823993667960167, 0.04482731223106384, -0.23151640594005585, -0.13399416208267212, -0.12283042073249817, 0.3283226788043976, -0.5877947211265564, 0.0591798797249794, -0.11736640334129333, -0.3510158061981201, 0.03716995567083359, 0.32430073618888855, -0.23667997121810913, 0.011676490306854248, 0.10599090158939362, 0.00012645777314901352, -0.1354236602783203, 0.2674870491027832, -0.04279376566410065, 0.3116444945335388, -0.0823950543999672, 0.5417577624320984, 0.038802407681941986, -0.15605409443378448, 0.3681597411632538, -0.20896846055984497, -0.26023393869400024, -0.051069945096969604, 0.1137242466211319, 0.02645018696784973, 0.029406264424324036, 0.26193109154701233, -0.2610868513584137, -0.10662458091974258, 0.0779920294880867, 0.051905591040849686, -0.1736050695180893, -0.3629189431667328, 0.1012517511844635, 0.10452303290367126, 0.22245143353939056, 0.35652410984039307, -0.06059030443429947, 0.1401381492614746, 0.3738931119441986, -0.02265634573996067, -0.0009540244936943054, 0.21399572491645813, -0.06600696593523026, -0.12239231914281845, 0.19666558504104614, 0.08962541818618774, 0.19973823428153992, 0.15022492408752441, 0.17851199209690094, 0.2778915464878082, -0.06313502788543701, -0.05725586414337158, 0.25770607590675354, 0.011919893324375153, 0.40474429726600647, 0.03575456887483597, -0.4561927020549774, 0.010988488793373108, -0.21176931262016296, -0.08415068686008453, -0.14471611380577087, -0.0529186874628067, -0.6462907195091248, 0.003194482997059822, -0.26838409900665283, -0.3433905839920044, -0.37497299909591675, -0.2526736855506897, -0.15639181435108185, -0.37855851650238037, 0.008687758818268776, -0.3024217188358307, -0.39542344212532043, 0.13602741062641144, -0.30613675713539124, 0.2309264838695526, 0.1001676619052887, 0.2513022720813751, -0.2852823734283447, -0.06618740409612656, -0.2680497169494629, -0.015258785337209702, -0.08351729810237885, -0.2519969046115875, 0.09852894395589828, -0.49053147435188293, 0.16292139887809753, -0.175201416015625, -0.202642023563385, 0.3088507056236267, -0.19750025868415833, 0.08799532055854797, 0.18976134061813354, -0.08937856554985046, -0.04328908398747444, -0.2671487629413605, 0.025047333911061287, 0.11857821047306061, 0.008313775062561035, -0.3542829155921936, 0.07784858345985413, 0.14573068916797638, -0.11931058764457703, -0.09135595709085464, -0.3239556550979614, -0.19591757655143738, -0.12725064158439636, -0.3672887086868286, 0.29594865441322327, 0.47555989027023315, 0.03111414983868599, 0.001371649093925953, -0.18174584209918976, 0.23562942445278168, -0.2804739475250244, -0.7693063616752625, -0.03252633288502693, -0.11969229578971863, 0.10966235399246216, -0.043509118258953094, 0.10027766227722168, 0.1628786325454712, 0.003155573271214962, -0.8037421107292175, 0.18551571667194366, -0.1419697403907776, -0.3532153367996216, 0.16036967933177948, -0.0036664772778749466, -0.18760335445404053, 0.21818387508392334, -0.014657189138233662, 0.005790136754512787, -0.2862212359905243, 0.05310402065515518, -0.4676642119884491, 0.422656774520874, 0.14117226004600525, 0.42664575576782227, 0.11032509803771973, 0.479778528213501, 0.17544563114643097, -0.009663794189691544, 0.2206355482339859, -0.040506236255168915, 0.6518880724906921, -0.04145725816488266, -0.08224841207265854, 0.03965519741177559, 0.021217748522758484, -0.22398896515369415, -0.09894900023937225, -0.0744999349117279, 0.2100461721420288, 0.2413642406463623, 0.0937357097864151, 0.03523755818605423, -0.4016299247741699, 0.271589070558548, -0.42449530959129333, -0.13944432139396667, -0.1997302919626236, 0.1225215271115303, 0.22780808806419373, -0.03288727253675461, 0.15644104778766632, 0.4967171549797058, 0.2978890538215637, 0.17151600122451782, -0.27407485246658325, -0.13115401566028595, -0.33729130029678345, -0.018085584044456482, 0.05506274849176407, 0.16167281568050385, -0.3739035725593567, -0.30557945370674133, -0.11055763065814972, 0.30517834424972534, 0.13604862987995148, -0.13911385834217072, 0.23444795608520508, 0.17392587661743164, -0.06964683532714844, -0.08826006948947906, -0.16409125924110413, 0.05125937983393669, 0.029551580548286438, 0.14677755534648895, 0.08593669533729553, -0.15258432924747467, -0.4390394985675812, 0.13979694247245789, -0.09612783789634705, -0.23785728216171265, -0.25047439336776733, -0.20549067854881287, 0.16775450110435486, -0.09549874812364578, -0.024550795555114746, -0.04702461510896683, -0.02828361466526985, -0.5194999575614929, -0.008228357881307602, 0.11572246998548508, 0.3064210116863251, 0.07559337466955185, -0.14337512850761414, -0.09025853127241135, 0.36142149567604065, -0.10692422091960907, 0.43273934721946716, 0.7041023969650269, 0.2550816237926483, 0.7299550771713257, 0.07121571898460388, -0.08117513358592987, -0.056503817439079285, -0.05207201838493347, 0.2179766595363617, 0.34980177879333496, 0.11939164996147156, -0.057003848254680634, 0.32416096329689026, 0.43218833208084106, -0.49707818031311035, 0.30548539757728577, 0.24320976436138153, 0.10042479634284973, -0.4775586724281311, -0.33198821544647217, 0.49863722920417786, 0.10592114925384521, -0.04018400236964226, 0.4706762731075287, 0.25086134672164917, -0.17334869503974915, -0.17911678552627563, 0.44859740138053894, 1.0204640626907349, -0.14132921397686005, 0.23796626925468445, 0.08872515708208084, -0.06719188392162323, 0.2032368928194046, 0.049839675426483154, -0.22870197892189026, -0.03398754447698593, 0.09549832344055176, -0.1102622002363205, -0.007903337478637695, 0.02177480235695839, 0.4259313941001892, -0.08149652183055878, 0.055299945175647736, -0.37994176149368286, 0.19976556301116943, 0.23816506564617157, 0.011174917221069336, -0.1948653757572174, -0.18529391288757324, -0.18548263609409332, -0.010901499539613724, 0.19295506179332733, 0.12597371637821198, -0.25496429204940796, -0.07890374958515167, 0.3553368151187897, -0.1292882263660431, -0.20597811043262482, -0.12892210483551025, -0.2180994153022766, -0.02436986193060875, -0.10565054416656494, -0.09710413962602615, 0.0242866650223732, -0.06893077492713928, 0.04433247447013855, 0.1664556860923767, 0.06679429113864899, 0.005808424204587936, 0.003596089780330658, 0.07688506692647934, -0.3164054751396179, -0.08070763945579529, 0.34266114234924316, 0.0499626025557518, -0.3006896376609802, 0.2033224105834961, -0.2766222059726715, -0.5778281688690186, 0.05191540718078613, -0.1594388633966446, -0.2073712795972824, -0.08856561034917831, 0.1399165391921997, 0.18799030780792236, -0.1414647400379181, 0.2217409461736679, 0.016712455078959465, 0.1536526083946228, 0.20425210893154144, 0.014398988336324692, 0.2500064969062805, -0.579298734664917, -0.16281189024448395, 0.07869699597358704, 0.012922277674078941, -0.1310414969921112, 0.4648006558418274, -0.09843407571315765, -0.04922015219926834, -0.11446923762559891, -0.007002905011177063, 0.5963892936706543, -0.10437784343957901, -0.19340378046035767, 0.2725803852081299, -0.0487125888466835, 0.07696006447076797, -0.10617272555828094, 0.312502384185791, 0.09994382411241531, -0.282793253660202, -0.22670777142047882, -0.540959358215332, 0.2808478772640228, -0.4361153542995453, 0.21254059672355652, -0.16901245713233948, -0.14763429760932922, 0.225999653339386, 0.08330647647380829, -0.17839741706848145, -0.21111805737018585, -0.055946625769138336, -0.1625298261642456, 0.1657116413116455, 0.23914021253585815, 0.3696464002132416, 0.25244489312171936, -0.09031372517347336, -0.3158458471298218, -0.3205566108226776, -0.02163776382803917, -0.06540840119123459, 0.22441333532333374, -0.010434981435537338, -0.11759798228740692, -0.09662214666604996, -0.0900588259100914, 0.13845673203468323, -0.18280591070652008, 0.3072933554649353, 0.20304527878761292, 0.0739671140909195, 0.4574136734008789, -0.2511947751045227, 0.19564414024353027, -0.31034475564956665, -0.05661087483167648, 0.3130633234977722, 0.21393068134784698, -0.10515277087688446, -0.12772133946418762, -0.012835894711315632, -0.017927341163158417, 0.37555477023124695, 0.12439635396003723, 0.24559834599494934, -0.050177156925201416, 0.09541182219982147, 0.24056215584278107, 0.15265002846717834, 0.17367784678936005, 0.2529512643814087, 0.18288929760456085, -0.015157689340412617, -0.46143296360969543, -0.20648911595344543, 0.05497698485851288, 0.08747952431440353, 0.028455860912799835, -0.38949641585350037, 0.3267395794391632, -0.0016324259340763092, 0.1633826345205307, 0.15703794360160828, 0.11064013838768005, 0.48252856731414795, -0.016540367156267166, 0.07947193831205368, -0.4653485417366028, 0.12036587297916412, 0.3244594931602478, -0.3549872934818268, 0.2751415967941284, 0.4656183123588562, -0.018454652279615402, 0.32588931918144226, 0.25657445192337036, 0.3138430416584015, 0.5164302587509155, 0.36356690526008606, 0.13832513988018036, -0.18780642747879028, -0.43224942684173584, 0.01783289760351181, 0.5528192520141602, -0.37376996874809265, -0.0973559245467186, 0.12784436345100403, 0.037806928157806396, 0.2741697132587433, -0.10876092314720154, -0.16256758570671082, -0.26016494631767273, -0.08219549804925919, -0.12502525746822357, 0.054807618260383606, -0.06068386137485504, -0.2160615622997284, -0.05533207952976227, 0.08894719928503036, -0.17515726387500763, 0.15438267588615417, -0.27590805292129517, -0.15038256347179413, -0.08268410712480545, -0.023945290595293045, 0.3113577961921692, 0.15723703801631927, -0.23019586503505707, -0.17212215065956116, 0.3310583233833313, -0.1155635416507721, 0.40975192189216614, 0.47527602314949036, 0.6177259683609009, 0.591073215007782, 0.19774430990219116, 0.14102281630039215, -0.09593112766742706, 0.09920121729373932, -0.0008839573711156845, 0.46647387742996216, 0.05327188968658447, -0.539219856262207, 0.3291279375553131, 0.01908349059522152, -0.0180722214281559, 0.4304613769054413, -0.1307462900876999, 0.3070869743824005, 0.09569753706455231, 0.16362029314041138, 0.052270323038101196, 0.04547300189733505, 0.07865984737873077, 0.10355226695537567, -0.21132031083106995, 0.08281338214874268, 0.9799095988273621, -0.21878130733966827, 0.008238567039370537, -0.3598147928714752, 0.03764483332633972, 0.13373909890651703, 0.7504996657371521, 0.5301434397697449, 0.019135110080242157, -0.26890552043914795, 0.10987165570259094, -0.678555965423584, 0.1615491360425949, -0.01001068577170372, 0.11956441402435303, 0.24314787983894348, -0.17405980825424194, 0.13626693189144135, 0.23472952842712402, 0.22579732537269592, -0.3438851237297058, 0.07952608913183212, -0.3624972403049469, -0.26890841126441956, 0.03135913237929344, 0.4597535729408264, 0.2654236853122711, -0.045386459678411484, -0.13111063838005066, 0.29739007353782654, 0.03067857399582863, -0.07113451510667801, -0.1218310296535492, 0.16769009828567505, 0.15737906098365784, 0.3829617500305176, 0.34451058506965637, 0.15357325971126556, 0.36864224076271057, 0.03244032710790634, -0.12367783486843109, -0.49420833587646484, -0.19480246305465698, -0.06506027281284332, 0.2983178496360779, 0.1826140284538269, -0.017790112644433975, -0.09680016338825226, 0.010135091841220856, -0.38056686520576477, 0.10600707679986954, 0.061049409210681915, 0.09095464646816254, -0.006786426994949579, 0.11688163131475449, -0.13580547273159027, -0.09989454597234726, 0.06736656278371811, 0.15545666217803955, 0.5111298561096191, 0.11317355930805206, 0.011588267982006073, -0.27307432889938354, 0.25867152214050293, -0.07006707042455673, -0.05006316304206848, -0.1905660629272461, 0.14693018794059753, 0.22623708844184875, -0.07692890614271164, -0.8204523921012878, 0.12934288382530212, 0.35785022377967834, -0.1564280092716217, -0.11711226403713226, 0.13461190462112427, -0.08603347837924957, 0.0065338388085365295, 0.08554747700691223, 0.4466450810432434, -0.07374413311481476, -0.12865698337554932, -0.18389736115932465, -0.5174060463905334 ]
https://github.com/huggingface/datasets/issues/1948
dataset loading logger level
Hey, any news about the issue? So many warnings when I'm really ok with the dataset not being recomputed :)
on master I get this with `--dataset_name wmt16 --dataset_config ro-en`: ``` WARNING:datasets.arrow_dataset:Loading cached processed dataset at /home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/9dc00622c30446e99c4c63d12a484ea4fb653f2f37c867d6edcec839d7eae50f/cache-2e01bead8cf42e26.arrow WARNING:datasets.arrow_dataset:Loading cached processed dataset at /home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/9dc00622c30446e99c4c63d12a484ea4fb653f2f37c867d6edcec839d7eae50f/cache-ac3bebaf4f91f776.arrow WARNING:datasets.arrow_dataset:Loading cached processed dataset at /home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/9dc00622c30446e99c4c63d12a484ea4fb653f2f37c867d6edcec839d7eae50f/cache-810c3e61259d73a9.arrow ``` why are those WARNINGs? Should be INFO, no? warnings should only be used when a user needs to pay attention to something, this is just informative - I'd even say it should be DEBUG, but definitely not WARNING. Thank you.
20
dataset loading logger level on master I get this with `--dataset_name wmt16 --dataset_config ro-en`: ``` WARNING:datasets.arrow_dataset:Loading cached processed dataset at /home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/9dc00622c30446e99c4c63d12a484ea4fb653f2f37c867d6edcec839d7eae50f/cache-2e01bead8cf42e26.arrow WARNING:datasets.arrow_dataset:Loading cached processed dataset at /home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/9dc00622c30446e99c4c63d12a484ea4fb653f2f37c867d6edcec839d7eae50f/cache-ac3bebaf4f91f776.arrow WARNING:datasets.arrow_dataset:Loading cached processed dataset at /home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/9dc00622c30446e99c4c63d12a484ea4fb653f2f37c867d6edcec839d7eae50f/cache-810c3e61259d73a9.arrow ``` why are those WARNINGs? Should be INFO, no? warnings should only be used when a user needs to pay attention to something, this is just informative - I'd even say it should be DEBUG, but definitely not WARNING. Thank you. Hey, any news about the issue? So many warnings when I'm really ok with the dataset not being recomputed :)
[ -0.20182083547115326, -0.21477504074573517, -0.01915028691291809, 0.4123525619506836, 0.46251559257507324, 0.41485896706581116, 0.4687035381793976, 0.12743017077445984, 0.12400500476360321, -0.009558811783790588, 0.018838316202163696, -0.08164331316947937, -0.2626187205314636, -0.11465000361204147, -0.3601997196674347, 0.25648313760757446, -0.06924877315759659, -0.03522482514381409, -0.4280807673931122, -0.07898486405611038, -0.11002272367477417, 0.08881532400846481, -0.03819965571165085, 0.4029664993286133, -0.7883701324462891, -0.08446311205625534, 0.11415562033653259, 0.03372056782245636, -0.014049677178263664, -0.7113648653030396, 0.27125316858291626, -0.01595909148454666, 0.17502865195274353, 0.1797816902399063, -0.00011945626465603709, 0.0807434469461441, 0.5874010324478149, 0.034695833921432495, -0.5454556941986084, 0.08739995211362839, -0.3945811688899994, -0.4607203006744385, 0.29502928256988525, 0.06800999492406845, -0.08184535056352615, -0.4350318908691406, 0.10539057105779648, -0.4060834050178528, 0.3432331681251526, 0.0942687913775444, 0.17412324249744415, 0.11275024712085724, -0.0637701153755188, 0.025895891711115837, 0.2801204025745392, 0.24450555443763733, -0.04432085528969765, 0.005472972057759762, 0.005439236760139465, 0.05467136204242706, -0.3033311069011688, 0.43696361780166626, -0.18269789218902588, 0.05471447855234146, 0.19190627336502075, -0.05749770998954773, 0.21367743611335754, -0.1872323602437973, 0.1827511489391327, 0.348086416721344, 0.5612226128578186, 0.011937160044908524, -0.021317603066563606, -0.43846166133880615, -0.1327170878648758, -0.2757670283317566, 0.16283485293388367, 0.27710890769958496, 0.06380291283130646, 0.2064710259437561, -0.3305915296077728, 0.05313755199313164, 0.12483364343643188, -0.14948368072509766, 0.13641774654388428, 0.295552134513855, -0.4321041703224182, 0.18119394779205322, 0.16963385045528412, -0.08379300683736801, 0.1944061815738678, -0.16435125470161438, -0.349773108959198, 0.08970924466848373, -0.3535856604576111, 0.046314552426338196, -0.15769720077514648, 0.46895521879196167, -0.07395929098129272, 0.21599799394607544, 0.01674654334783554, 0.033399228006601334, 0.1682039052248001, -0.025948040187358856, 0.4356091022491455, 0.015156123787164688, 0.30820876359939575, -0.02880960702896118, -0.10628446936607361, -0.15153774619102478, 0.1799239069223404, -0.0751505196094513, 0.03150250390172005, -0.12345602363348007, 0.46636253595352173, 0.03606214001774788, 0.18199202418327332, -0.20728403329849243, -0.22617566585540771, 0.08143753558397293, -0.024425968527793884, -0.2710518538951874, 0.0001724613830447197, 0.16854718327522278, -0.08641661703586578, 0.030793212354183197, -0.09591531753540039, -0.031621649861335754, -0.0068024806678295135, -0.20945553481578827, -0.16288770735263824, -0.35385915637016296, -0.3196650743484497, 0.15273866057395935, 0.04687831178307533, -0.21357254683971405, 0.2720471918582916, 0.213695228099823, -0.053776226937770844, 0.0015833750367164612, 0.00004137866199016571, -0.18579673767089844, 0.02915048599243164, 0.5929054021835327, -0.2160651981830597, 0.2531105875968933, 0.28363847732543945, 0.20281697809696198, -0.1459079384803772, 0.3028620183467865, -0.3097994029521942, -0.5017565488815308, -0.0863301157951355, 0.1424664556980133, -0.21305228769779205, -0.01982354000210762, -0.26320648193359375, 0.07651136070489883, 0.32473671436309814, 0.2773111164569855, 0.13103000819683075, -0.1277332603931427, -0.2539331316947937, -0.11924505978822708, -0.1299891322851181, 0.5831537842750549, -0.1704382747411728, -0.22820299863815308, -0.35277366638183594, -0.3691098093986511, 0.2504701316356659, 0.14596053957939148, -0.14161404967308044, 0.21050357818603516, -0.33150413632392883, -0.21822023391723633, 0.1891389787197113, -0.07659532129764557, 0.007530871778726578, 0.4234822690486908, -0.18852746486663818, 0.14107680320739746, 0.2532600462436676, 0.057484205812215805, -0.21005411446094513, -0.17481903731822968, -0.06862127780914307, -0.3766581416130066, 0.007314780727028847, -0.19623224437236786, -0.1279810518026352, -0.2532561123371124, 0.30504727363586426, 0.07536132633686066, -0.26192107796669006, -0.061304785311222076, -0.03470834344625473, -0.16965308785438538, 0.2877300977706909, 0.12909898161888123, 0.10046438872814178, 0.04017258062958717, -0.06324593722820282, 0.07505791634321213, -0.007059464231133461, 0.2962646484375, -0.6046156287193298, 0.057038575410842896, 0.252722829580307, 0.028346074745059013, -0.02815932035446167, -0.07783243060112, -0.040989261120557785, 0.004593517631292343, -0.47203919291496277, -0.2500114440917969, 0.007704038172960281, 0.04795840382575989, -0.12385137379169464, -0.1356073021888733, -0.17047996819019318, 0.31036531925201416, -0.567221999168396, 0.11397943645715714, 0.0017966954037547112, -0.13010063767433167, 0.031194278970360756, 0.27802616357803345, -0.05371638759970665, -0.0033405646681785583, 0.059709127992391586, 0.0926167294383049, -0.11943074315786362, 0.1714722216129303, 0.0795503780245781, 0.3461109399795532, -0.06647775322198868, 0.348243772983551, 0.04216478392481804, -0.22758883237838745, 0.34399500489234924, -0.19056257605552673, -0.18766170740127563, -0.09421417117118835, 0.12172867357730865, 0.19712242484092712, -0.09559734165668488, 0.29369282722473145, -0.2681664824485779, -0.004146836698055267, 0.11747924983501434, 0.11582872271537781, -0.15169250965118408, -0.5100902318954468, 0.03511723875999451, 0.11737798154354095, 0.2550505995750427, 0.3448004722595215, -0.04337424039840698, 0.12336331605911255, 0.4002450108528137, 0.033824291080236435, -0.03259824961423874, 0.1823849081993103, -0.10598688572645187, -0.07164427638053894, 0.16372084617614746, 0.1360669583082199, 0.36554038524627686, 0.1999431848526001, 0.06993298977613449, 0.17845682799816132, 0.04527471587061882, -0.09144451469182968, 0.34951111674308777, -0.08587022125720978, 0.30642417073249817, 0.14647454023361206, -0.3910762667655945, -0.05464137718081474, -0.32964447140693665, 0.11220197379589081, -0.0881776288151741, -0.044592052698135376, -0.5437098145484924, -0.11146845668554306, -0.31593313813209534, -0.2503339350223541, -0.4220111668109894, -0.2341744750738144, -0.2240234613418579, -0.39163869619369507, 0.005460942164063454, -0.14004769921302795, -0.3002394735813141, 0.1975163072347641, -0.19294002652168274, 0.24592971801757812, 0.07076405733823776, 0.36000120639801025, -0.3217202425003052, -0.1065908670425415, -0.2888941764831543, 0.03221031650900841, -0.07774247229099274, -0.2631671130657196, 0.2102130502462387, -0.27369487285614014, 0.24598337709903717, -0.310496985912323, -0.1889105886220932, 0.14478227496147156, -0.2983019948005676, 0.09630198031663895, 0.16814637184143066, -0.0129317045211792, 0.08769220113754272, -0.2143981009721756, 0.07863613963127136, 0.14712192118167877, -0.08586017787456512, -0.35688239336013794, 0.10549358278512955, 0.18410220742225647, -0.0835094302892685, -0.24492812156677246, -0.29049068689346313, -0.13001638650894165, -0.1924382895231247, -0.36099621653556824, 0.14383617043495178, 0.39303621649742126, -0.07039087265729904, 0.03164125606417656, -0.25434941053390503, 0.17635034024715424, -0.3930451571941376, -0.5929747819900513, 0.09327587485313416, -0.053035371005535126, -0.047928500920534134, 0.04735056683421135, 0.14028814435005188, 0.2511122226715088, -0.07661963254213333, -0.8887060880661011, 0.14073805510997772, -0.10851815342903137, -0.2693581283092499, 0.14275680482387543, 0.0030164383351802826, -0.03760416805744171, 0.2874901294708252, -0.028125181794166565, -0.05844099819660187, -0.3251953721046448, -0.02114904671907425, -0.5583200454711914, 0.40838080644607544, -0.0712127685546875, 0.49455225467681885, -0.11822821199893951, 0.6171675324440002, 0.20780907571315765, -0.061916980892419815, 0.25470423698425293, 0.023990217596292496, 0.607373058795929, -0.10720127075910568, -0.2783246636390686, -0.08485955744981766, -0.023993149399757385, -0.08532708883285522, -0.009032540023326874, -0.05846425145864487, 0.11814583837985992, 0.07961185276508331, 0.23202812671661377, 0.07575587183237076, -0.24348828196525574, -0.020336469635367393, -0.42357391119003296, -0.05186767131090164, -0.1387823522090912, 0.05902329087257385, 0.20976927876472473, -0.04550741985440254, -0.004600041545927525, 0.442310631275177, 0.3119577467441559, 0.04152307286858559, -0.22682110965251923, -0.17754727602005005, -0.15010127425193787, 0.08963610976934433, 0.000710424268618226, 0.1634247899055481, -0.2935022711753845, -0.246736079454422, -0.024463780224323273, 0.2641924321651459, 0.19330185651779175, -0.10210245847702026, 0.2468358874320984, 0.1451399177312851, -0.12824100255966187, -0.22010163962841034, -0.16886575520038605, 0.0715932548046112, 0.07202955335378647, 0.12308381497859955, 0.10963254421949387, -0.09832179546356201, -0.4640815854072571, 0.22711949050426483, -0.10080788284540176, -0.2255890667438507, -0.21530896425247192, -0.36477357149124146, 0.21516895294189453, -0.15598441660404205, 0.0056077465415000916, -0.08920687437057495, -0.04769185185432434, -0.5302080512046814, -0.035444293171167374, 0.04336697235703468, 0.13199245929718018, -0.015118047595024109, -0.17476962506771088, 0.01589217782020569, 0.33528488874435425, 0.07759377360343933, 0.31227147579193115, 0.7089366912841797, 0.38063758611679077, 0.7758239507675171, 0.0514252707362175, -0.07939986884593964, 0.061984833329916, -0.05229547992348671, 0.2830350697040558, 0.26357847452163696, 0.002553800120949745, 0.01719231903553009, 0.23382478952407837, 0.3215702474117279, -0.505379855632782, 0.15698805451393127, 0.26421868801116943, 0.10648510605096817, -0.39577624201774597, -0.2398790866136551, 0.5792208313941956, 0.19906051456928253, -0.07216614484786987, 0.5011492967605591, 0.17187198996543884, -0.16018694639205933, -0.22229932248592377, 0.40921735763549805, 0.9316587448120117, -0.050267353653907776, 0.1656302660703659, 0.03354876860976219, -0.10239872336387634, 0.21515370905399323, 0.17124709486961365, -0.21690474450588226, -0.024008460342884064, 0.13635888695716858, -0.060806408524513245, -0.09427021443843842, 0.12992164492607117, 0.39603906869888306, -0.11037132143974304, 0.10915827751159668, -0.30378150939941406, 0.3193356990814209, 0.08287070691585541, 0.09246326982975006, -0.21816591918468475, -0.10453122854232788, -0.20522142946720123, 0.04869423806667328, 0.06083647161722183, 0.18075820803642273, -0.25417283177375793, -0.018848106265068054, 0.4462161958217621, -0.18769586086273193, -0.20399147272109985, -0.16988614201545715, -0.1652953326702118, 0.07981754839420319, -0.023874696344137192, -0.134030282497406, 0.17695170640945435, -0.0074082836508750916, 0.1080760657787323, 0.13101503252983093, -0.05357047915458679, -0.0393218956887722, -0.02771446853876114, 0.03496500477194786, -0.3362421691417694, 0.024980176240205765, 0.2612009644508362, -0.04321012273430824, -0.2569172978401184, 0.08156643807888031, -0.24109028279781342, -0.4599907398223877, -0.01175890862941742, -0.013868086040019989, -0.2203844040632248, -0.22349153459072113, 0.19176115095615387, 0.25213390588760376, -0.050905823707580566, 0.2003612220287323, 0.09387877583503723, 0.13009722530841827, 0.10865215212106705, 0.14961889386177063, 0.2552744448184967, -0.5631151795387268, -0.20566022396087646, 0.35969841480255127, 0.11915434151887894, -0.08340534567832947, 0.596660852432251, -0.07552217692136765, -0.06990078091621399, -0.20344874262809753, 0.08132893592119217, 0.4912574291229248, -0.1106577143073082, -0.05119750276207924, 0.21343497931957245, 0.06482577323913574, 0.18649017810821533, 0.011882942169904709, 0.3163928985595703, 0.04991118982434273, -0.1891227513551712, -0.2757253050804138, -0.5968092083930969, 0.17630085349082947, -0.5243192911148071, 0.1977214515209198, -0.25814715027809143, -0.15779636800289154, 0.26301372051239014, 0.16344445943832397, -0.23727552592754364, -0.06507369875907898, 0.07959672808647156, -0.006403215229511261, 0.12665218114852905, 0.049378130584955215, 0.2707764506340027, 0.23683854937553406, -0.05091853439807892, -0.30256450176239014, -0.44829434156417847, -0.08271234482526779, 0.07793761789798737, 0.19805365800857544, -0.028822921216487885, -0.050564154982566833, -0.20094799995422363, -0.14815443754196167, 0.008512946777045727, -0.014898577705025673, 0.30409881472587585, 0.1017024889588356, 0.012218482792377472, 0.29816222190856934, -0.13418370485305786, -0.05205002427101135, -0.14500752091407776, -0.12676332890987396, 0.11840326339006424, 0.17001330852508545, -0.05281536653637886, -0.17769820988178253, 0.05507529526948929, -0.053175199776887894, 0.2609741985797882, 0.07858798652887344, 0.047048553824424744, -0.1665111780166626, 0.16892828047275543, 0.01775311306118965, 0.08329923450946808, 0.2856791615486145, 0.2641969323158264, 0.2026151418685913, 0.00011694154818542302, -0.39493635296821594, -0.12659913301467896, 0.10802597552537918, -0.07887707650661469, 0.030212420970201492, -0.2441769242286682, 0.4178749620914459, -0.13009074330329895, 0.10162390023469925, 0.20725595951080322, -0.0034339725971221924, 0.5227725505828857, 0.15520256757736206, 0.24557946622371674, -0.5066167116165161, 0.2247367799282074, 0.2779003381729126, -0.24849234521389008, 0.2828521430492401, 0.5526024103164673, 0.15909013152122498, 0.22919833660125732, 0.2005196064710617, 0.14542116224765778, 0.5187020301818848, 0.31877636909484863, 0.06749989092350006, -0.07107304781675339, -0.5168735384941101, 0.06751838326454163, 0.6114205121994019, -0.5252993106842041, -0.18638628721237183, 0.040024615824222565, 0.10601939260959625, 0.11361230164766312, -0.1601579636335373, -0.26147541403770447, -0.10666458308696747, -0.1605531871318817, -0.10187341272830963, -0.008820777758955956, -0.041344307363033295, -0.05631338804960251, 0.013731352984905243, 0.0979529395699501, -0.055785223841667175, 0.17769311368465424, -0.22693412005901337, -0.29771918058395386, -0.17862457036972046, 0.025445420295000076, 0.2555103302001953, 0.189630389213562, -0.22259366512298584, -0.016118699684739113, 0.22289595007896423, -0.0998980849981308, 0.39936789870262146, 0.6683419346809387, 0.5541521906852722, 0.5690363049507141, 0.13204456865787506, 0.06553289294242859, -0.004325496032834053, 0.08030810207128525, -0.02064088173210621, 0.6196237206459045, -0.06214378774166107, -0.4615190327167511, 0.2826049327850342, 0.06006329506635666, -0.0013746535405516624, 0.35302627086639404, -0.19899584352970123, 0.2381371110677719, -0.043410152196884155, 0.18397027254104614, -0.0043283067643642426, 0.02679658681154251, 0.0336165651679039, 0.1342732012271881, -0.2274184226989746, 0.1501421332359314, 1.0164278745651245, -0.13799290359020233, 0.029613234102725983, -0.32698503136634827, 0.06032974272966385, 0.03948948159813881, 0.8118126392364502, 0.5566384792327881, 0.01798449084162712, -0.24989274144172668, -0.05135570093989372, -0.6797930598258972, 0.10754960030317307, 0.058231402188539505, 0.3735079765319824, 0.1561586707830429, -0.10187161713838577, 0.06003360450267792, 0.27879461646080017, 0.18062128126621246, -0.2345181107521057, 0.018387235701084137, -0.4392368197441101, -0.3589949905872345, -0.019951503723859787, 0.32486486434936523, 0.23959018290042877, -0.11069084703922272, -0.04229985922574997, 0.3283739387989044, -0.026496704667806625, -0.03636520355939865, -0.06333053857088089, 0.2724043130874634, -0.00009912252426147461, 0.46684232354164124, 0.3117854595184326, 0.2629803419113159, 0.34110498428344727, 0.20294028520584106, 0.002942372113466263, -0.46377032995224, -0.2727871537208557, 0.026001226156949997, 0.25669005513191223, 0.23279030621051788, 0.08435527235269547, -0.08480556309223175, -0.03886314108967781, -0.3371562957763672, 0.06666804850101471, 0.08182044327259064, 0.07051535695791245, 0.0795845091342926, 0.007600577548146248, -0.018611785024404526, -0.15758991241455078, -0.0037080366164445877, 0.13488158583641052, 0.41922926902770996, 0.19561906158924103, -0.11854682117700577, -0.34211158752441406, 0.3606153130531311, -0.17715638875961304, -0.026831287890672684, -0.09983948618173599, 0.25502902269363403, 0.18010659515857697, -0.20323170721530914, -0.8239946961402893, 0.09448084980249405, 0.45217639207839966, -0.17559924721717834, -0.16752693057060242, 0.13175541162490845, 0.057352859526872635, -0.06120271608233452, 0.10371538996696472, 0.452022910118103, -0.01390240341424942, -0.11183615028858185, -0.1715681403875351, -0.4354240298271179 ]
https://github.com/huggingface/datasets/issues/1942
[experiment] missing default_experiment-1-0.arrow
Hi ! The cache at `~/.cache/huggingface/metrics` stores the users data for metrics computations (hence the arrow files). However python modules (i.e. dataset scripts, metric scripts) are stored in `~/.cache/huggingface/modules/datasets_modules`. In particular the metrics are cached in `~/.cache/huggingface/modules/datasets_modules/metrics/` Feel free to take a look at your cache and let me know if you find any issue that would help explaining why you had an issue with `rouge` with no connection. I'm doing some tests on my side to try to reproduce the issue you have
the original report was pretty bad and incomplete - my apologies! Please see the complete version here: https://github.com/huggingface/datasets/issues/1942#issuecomment-786336481 ------------ As mentioned here https://github.com/huggingface/datasets/issues/1939 metrics don't get cached, looking at my local `~/.cache/huggingface/metrics` - there are many `*.arrow.lock` files but zero metrics files. w/o the network I get: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow ``` there is just `~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock` I did run the same `run_seq2seq.py` script on the instance with network and it worked just fine, but only the lock file was left behind. this is with master. Thank you.
84
[experiment] missing default_experiment-1-0.arrow the original report was pretty bad and incomplete - my apologies! Please see the complete version here: https://github.com/huggingface/datasets/issues/1942#issuecomment-786336481 ------------ As mentioned here https://github.com/huggingface/datasets/issues/1939 metrics don't get cached, looking at my local `~/.cache/huggingface/metrics` - there are many `*.arrow.lock` files but zero metrics files. w/o the network I get: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow ``` there is just `~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock` I did run the same `run_seq2seq.py` script on the instance with network and it worked just fine, but only the lock file was left behind. this is with master. Thank you. Hi ! The cache at `~/.cache/huggingface/metrics` stores the users data for metrics computations (hence the arrow files). However python modules (i.e. dataset scripts, metric scripts) are stored in `~/.cache/huggingface/modules/datasets_modules`. In particular the metrics are cached in `~/.cache/huggingface/modules/datasets_modules/metrics/` Feel free to take a look at your cache and let me know if you find any issue that would help explaining why you had an issue with `rouge` with no connection. I'm doing some tests on my side to try to reproduce the issue you have
[ -0.03587372601032257, -0.0009467676281929016, 0.07417137920856476, 0.11846038699150085, 0.08374066650867462, -0.10975316166877747, 0.17203494906425476, 0.23171894252300262, 0.26387208700180054, 0.1391705721616745, 0.06787893921136856, 0.17331872880458832, -0.28547486662864685, -0.012177795171737671, 0.13692808151245117, 0.05513520538806915, -0.06285770982503891, -0.03015008568763733, -0.32593297958374023, -0.12527796626091003, -0.2200644612312317, 0.5307021141052246, -0.06286799907684326, 0.06450003385543823, -0.45623308420181274, 0.17522844672203064, -0.12847156822681427, 0.36207276582717896, -0.08335471153259277, -0.5840668678283691, 0.32932746410369873, 0.11464637517929077, 0.053953588008880615, 0.4142383635044098, -0.00011953298235312104, -0.10379642248153687, 0.24000835418701172, -0.1888289898633957, -0.27386367321014404, -0.2778947353363037, -0.0753616988658905, -0.25220224261283875, 0.5798797607421875, -0.09660439193248749, -0.13444802165031433, 0.09161137789487839, 0.0100132767111063, -0.4268665909767151, 0.4767816662788391, 0.1211743876338005, 0.11660273373126984, 0.40536436438560486, 0.033189404755830765, -0.333391398191452, 0.22130846977233887, -0.10460540652275085, 0.04156835377216339, 0.4594833254814148, 0.06875672191381454, 0.09367457777261734, -0.14647147059440613, 0.21141843497753143, 0.34706881642341614, -0.18441976606845856, 0.3098646402359009, 0.011211806908249855, 0.0013156309723854065, -0.10811838507652283, -0.02841191738843918, 0.30663445591926575, 0.2365592122077942, -0.13058727979660034, -0.26080578565597534, 0.1283787190914154, -0.08799255639314651, -0.40392738580703735, 0.15386426448822021, -0.0939178466796875, 0.07636560499668121, 0.08911268413066864, 0.0873679518699646, -0.19800540804862976, -0.01605917513370514, 0.14742553234100342, -0.12845692038536072, -0.13980644941329956, -0.18762417137622833, 0.041487567126750946, -0.04950501397252083, 0.02194974198937416, -0.5056310892105103, 0.42710965871810913, -0.18315264582633972, 0.1320413053035736, -0.4020826816558838, 0.13704814016819, 0.27921223640441895, 0.17435672879219055, 0.04856886714696884, 0.5940821170806885, 0.054406773298978806, 0.09763871133327484, 0.3240974545478821, 0.11521877348423004, -0.14398609101772308, 0.46371734142303467, 0.1471066176891327, -0.03187057748436928, 0.22906799614429474, 0.24003289639949799, -0.09978579729795456, -0.29063984751701355, 0.2207397073507309, -0.2854767441749573, 0.1802099347114563, 0.22593101859092712, 0.23525990545749664, -0.3656280040740967, 0.010947050526738167, 0.2513979375362396, -0.1731027066707611, -0.0880763828754425, 0.07785194367170334, 0.37743183970451355, 0.02091601863503456, -0.06627975404262543, 0.3336494565010071, 0.353848934173584, -0.23219013214111328, -0.04829968512058258, -0.45427170395851135, -0.1579863727092743, -0.1675678938627243, 0.30847281217575073, 0.12131670117378235, -0.04296070709824562, 0.5225877165794373, -0.13772451877593994, 0.3675763010978699, -0.06341585516929626, 0.29795557260513306, 0.14957258105278015, -0.057873569428920746, 0.2460675686597824, 0.004548963159322739, 0.17308606207370758, 0.3100200593471527, -0.015288062393665314, -0.10469213128089905, -0.31365957856178284, -0.2143966257572174, -0.49018678069114685, 0.08632324635982513, 0.02887088432908058, -0.326026976108551, 0.1841582953929901, 0.38498756289482117, 0.054569654166698456, -0.21494996547698975, -0.25814661383628845, 0.12042853236198425, 0.044404421001672745, -0.07320846617221832, -0.13207487761974335, 0.5114516615867615, 0.7114232182502747, -0.25737419724464417, -0.40814560651779175, 0.2153410166501999, 0.01448084320873022, -0.10832212120294571, 0.1975734531879425, -0.06309521943330765, 0.1563919335603714, -0.3403099477291107, -0.1043982207775116, 0.4113841652870178, -0.5171517729759216, -0.4667466878890991, -0.01685897447168827, -0.38541096448898315, -0.10103339701890945, 0.10080322623252869, -0.03573867306113243, 0.07459358870983124, 0.21751850843429565, 0.11963048577308655, -0.17249806225299835, 0.24144722521305084, -0.32197198271751404, -0.26019999384880066, -0.2055726796388626, 0.11930359154939651, -0.06034279614686966, 0.23625056445598602, 0.15239962935447693, -0.005217798054218292, -0.07320752739906311, 0.12558485567569733, 0.10203731060028076, 0.19817796349525452, 0.3781459927558899, 0.2921808063983917, 0.18363861739635468, 0.19785118103027344, 0.1566251814365387, -0.16781973838806152, 0.2583167850971222, -0.4689180552959442, 0.15277817845344543, -0.050325095653533936, -0.014754408970475197, -0.21926650404930115, -0.22796885669231415, -0.08508472144603729, -0.47673240303993225, 0.017770875245332718, 0.012132532894611359, 0.29318299889564514, 0.31026893854141235, -0.16235528886318207, 0.27141350507736206, 0.09245987981557846, 0.2920163571834564, -0.665668249130249, 0.03225844353437424, -0.11137203127145767, -0.3356735110282898, -0.09868431091308594, 0.16473552584648132, 0.06115555018186569, -0.008172605186700821, -0.17906153202056885, 0.38833579421043396, -0.016980139538645744, 0.17494523525238037, 0.3794836103916168, 0.08916223794221878, -0.05745603144168854, -0.40795138478279114, -0.03288167715072632, 0.17979711294174194, 0.054246507585048676, -0.0016229934990406036, -0.20078521966934204, 0.32379254698753357, -0.08257181942462921, 0.13314910233020782, -0.24502399563789368, 0.36660435795783997, -0.03995998948812485, -0.06882303953170776, -0.5726242661476135, -0.0933297872543335, 0.34850192070007324, -0.1906697154045105, 0.4904288053512573, -0.1709936112165451, -0.032025713473558426, 0.021892152726650238, 0.09914053231477737, 0.1401263028383255, 0.25018391013145447, -0.0037820935249328613, -0.21714884042739868, -0.04244291037321091, 0.02694554254412651, -0.14596065878868103, 0.43521541357040405, 0.1362627148628235, 0.14398828148841858, 0.12434443086385727, 0.20968687534332275, -0.16947431862354279, 0.0424712598323822, -0.07670408487319946, -0.12147636711597443, 0.09510813653469086, 0.18493181467056274, 0.1680721938610077, -0.23352360725402832, -0.19564133882522583, -0.39713430404663086, 0.032226670533418655, -0.3484334647655487, 0.09465369582176208, -0.20371852815151215, 0.3464002311229706, 0.3030628561973572, -0.05599633976817131, -0.34114858508110046, -0.2638901472091675, 0.13857676088809967, -0.1877674162387848, 0.030167024582624435, 0.2229873239994049, -0.25559160113334656, 0.48705118894577026, 0.1352512687444687, -0.1863757073879242, -0.3071424663066864, -0.20046120882034302, -0.139570415019989, -0.1502978801727295, -0.28701651096343994, 0.08714707940816879, 0.0249529667198658, -0.21356847882270813, 0.12923121452331543, -0.03437402844429016, -0.3483107388019562, 0.04832310974597931, 0.051832325756549835, 0.5172299146652222, 0.39365994930267334, 0.0021313652396202087, -0.2833370566368103, 0.22005200386047363, 0.5371549129486084, -0.37324249744415283, -0.3090995252132416, 0.09900394082069397, 0.0583365224301815, 0.20212778449058533, -0.2552037835121155, -0.31110885739326477, -0.046278856694698334, -0.3856249451637268, 0.6103234887123108, 0.10121935606002808, -0.10914020240306854, -0.06453417986631393, 0.01232269499450922, 0.17429165542125702, -0.21011978387832642, 0.3627804219722748, -0.3324126601219177, -0.6493902802467346, 0.337432324886322, -0.19055503606796265, -0.368426650762558, 0.028480935841798782, 0.03376153111457825, 0.38152503967285156, -0.020092183724045753, -0.5352691411972046, -0.38940033316612244, 0.044566377997398376, 0.24921834468841553, -0.10606710612773895, 0.06231917440891266, 0.5808558464050293, -0.05514238774776459, -0.020733542740345, -0.05879364162683487, -0.1301976889371872, 0.4343070983886719, -0.10790447145700455, 0.13795556128025055, -0.10125108808279037, 0.4365174472332001, 0.052816104143857956, 0.7605785131454468, 0.482316255569458, 0.2873231768608093, 0.2661583721637726, 0.03583898767828941, 0.48658236861228943, -0.21431699395179749, -0.16027644276618958, 0.19477221369743347, 0.19498315453529358, -0.06847016513347626, 0.1258607804775238, 0.11121410131454468, 0.284744530916214, -0.21912530064582825, -0.026884084567427635, -0.335453599691391, -0.3300553858280182, -0.020689575001597404, -0.28731057047843933, 0.2177419662475586, -0.06900190562009811, 0.04139046370983124, -0.20427724719047546, 0.05395933985710144, 0.36716100573539734, 0.36464834213256836, 0.275890976190567, 0.25954899191856384, -0.27756479382514954, 0.09054483473300934, -0.5864401459693909, 0.31709128618240356, -0.5184067487716675, 0.1670907884836197, -0.25914278626441956, -0.29269981384277344, 0.09936773777008057, -0.01631763204932213, 0.5642927289009094, 0.001057663932442665, -0.1702982485294342, 0.0686851441860199, -0.26072144508361816, -0.5911591649055481, -0.01950334571301937, -0.047078393399715424, -0.012029236182570457, 0.25253531336784363, 0.21937531232833862, -0.36213213205337524, -0.1756044328212738, -0.10458600521087646, -0.1455087512731552, -0.21616089344024658, -0.15017879009246826, -0.385445773601532, 0.03204458951950073, -0.1962868571281433, 0.1033230870962143, -0.29601243138313293, 0.017190005630254745, 0.0963180884718895, 0.09739111363887787, -0.2283385843038559, -0.05175747722387314, -0.007130861282348633, 0.07474690675735474, 0.30572110414505005, -0.30383583903312683, 0.1706119328737259, 0.46743783354759216, 0.02727566286921501, -0.00023000501096248627, 0.5265598297119141, 0.055101893842220306, -0.27972716093063354, 0.29871946573257446, -0.06319251656532288, 0.21239690482616425, 0.537795901298523, -0.25596389174461365, 0.11146895587444305, -0.07350844144821167, 0.3654128909111023, -0.19086536765098572, -0.1126980260014534, 0.32723885774612427, -0.17738737165927887, 0.3741316795349121, 0.1637037843465805, 0.06721948832273483, 0.15864063799381256, -0.1380213499069214, 0.15745466947555542, 0.04044759273529053, -0.14309319853782654, 0.3999297022819519, -0.10424172133207321, 0.9887374043464661, 0.22834524512290955, 0.24891352653503418, 0.1314040571451187, 0.05135609209537506, 0.4545092284679413, 0.016812805086374283, 0.02210845984518528, -0.24044443666934967, -0.20340140163898468, -0.01135052926838398, -0.11853736639022827, 0.025349348783493042, -0.23385955393314362, -0.2589440643787384, 0.41402360796928406, -0.39030617475509644, -0.05178755149245262, -0.2063387781381607, -0.1757085770368576, -0.2596437931060791, -0.11644977331161499, 0.012173574417829514, 0.08686306327581406, 0.07211101800203323, 0.6109398603439331, -0.2037317156791687, -0.15891696512699127, -0.456335186958313, -0.3336653709411621, -0.06745746731758118, 0.013048727065324783, -0.3301526606082916, 0.08816353231668472, 0.297445684671402, -0.1824512481689453, -0.18420754373073578, 0.355803519487381, 0.3632245659828186, 0.1726475954055786, -0.281091570854187, 0.06078450754284859, 0.039596058428287506, 0.04630722105503082, 0.11979138106107712, 0.019387483596801758, 0.2255721092224121, 0.009945187717676163, -0.16760468482971191, 0.16415132582187653, -0.21003615856170654, 0.05123649537563324, 0.013988152146339417, -0.05341599881649017, -0.19558240473270416, -0.11375754326581955, -0.020223207771778107, 0.10578107088804245, 0.09678138792514801, -0.15490509569644928, 0.08605700731277466, 0.33968305587768555, -0.1765405684709549, -0.015125356614589691, 0.1682722568511963, -0.20413634181022644, -0.05459674820303917, 0.5798846483230591, -0.30197882652282715, -0.1088528260588646, 0.3987399935722351, 0.033434268087148666, -0.0022547952830791473, -0.1496373862028122, 0.11928611248731613, 0.4620961844921112, -0.765127420425415, 0.06413447111845016, 0.08188723772764206, 0.04671862721443176, 0.09989038854837418, 0.16961614787578583, 0.3279048800468445, -0.17383718490600586, 0.0599953718483448, -0.24816493690013885, -0.43555212020874023, 0.35640496015548706, -0.1347399204969406, 0.1367655247449875, -0.3409818708896637, -0.08715304732322693, -0.09298780560493469, 0.21712417900562286, -0.2840719223022461, 0.14340482652187347, -0.2832877039909363, -0.11818395555019379, -0.07233633100986481, -0.12729960680007935, 0.39770635962486267, -0.06969018280506134, -0.04487847164273262, 0.06672824174165726, -0.417409211397171, -0.11436183750629425, -0.17390628159046173, 0.12881410121917725, -0.1347731351852417, 0.1333727389574051, -0.06167607009410858, 0.21458671987056732, 0.07326863706111908, -0.16945987939834595, 0.1197839230298996, 0.21725666522979736, 0.08726488053798676, 0.0729127824306488, -0.030087430030107498, 0.09658295661211014, -0.12265031039714813, 0.24553751945495605, 0.16510632634162903, -0.14881673455238342, -0.07610077410936356, 0.020768271759152412, -0.312721848487854, -0.09151675552129745, 0.1688806116580963, 0.10587954521179199, -0.1790587455034256, 0.14020687341690063, 0.13608382642269135, -0.0907970517873764, -0.3047744631767273, -0.21883542835712433, 0.4004143178462982, 0.12397224456071854, -0.17871853709220886, 0.0696372240781784, -0.0565713569521904, 0.13275058567523956, -0.08524295687675476, 0.31964409351348877, 0.09535485506057739, 0.33951693773269653, 0.1357051432132721, 0.23891311883926392, 0.14464260637760162, -0.05259279906749725, 0.07869187742471695, 0.16793948411941528, -0.06463522464036942, -0.10238116979598999, 0.34504181146621704, -0.16041900217533112, 0.005042765289545059, 0.2077205330133438, 0.512174129486084, 0.1764216125011444, 0.07089568674564362, 0.04355953633785248, -0.06113214045763016, 0.22626619040966034, -0.14232346415519714, 0.2956947088241577, -0.11363398283720016, -0.27593421936035156, -0.14247839152812958, 0.03117142617702484, -0.009071968495845795, -0.23273316025733948, -0.4316933751106262, 0.7024185061454773, -0.2806921899318695, -0.32129791378974915, -0.1667739301919937, 0.14089582860469818, -0.1320924162864685, -0.20296499133110046, -0.1144985780119896, -0.13929831981658936, -0.1908467411994934, -0.18482564389705658, 0.22906836867332458, -0.013292774558067322, 0.06347078084945679, 0.14398539066314697, 0.0835382342338562, -0.28047141432762146, -0.48558688163757324, 0.1773284375667572, 0.1425660401582718, -0.041545651853084564, 0.06289996951818466, 0.14360429346561432, -0.1707988679409027, 0.1758076697587967, 0.6104491949081421, 0.29044225811958313, 0.04359711706638336, -0.13938897848129272, 0.23933663964271545, 0.25934648513793945, -0.0496915802359581, -0.13222888112068176, 0.15649765729904175, 0.2695860266685486, -0.4744095802307129, 0.04665056988596916, 0.085416778922081, -0.1447213888168335, 0.3480510413646698, -0.31630536913871765, 0.3591747581958771, -0.15384849905967712, 0.35009893774986267, -0.23644345998764038, 0.14756938815116882, -0.13085126876831055, -0.10094349831342697, -0.7179361581802368, 0.1895139217376709, -0.12327082455158234, 0.09288762509822845, 0.07198300957679749, -0.3484199047088623, 0.04713377356529236, -0.1072719395160675, 0.21449442207813263, 0.43006443977355957, 0.16294778883457184, -0.285211443901062, -0.3108712434768677, -0.34765109419822693, 0.24630731344223022, 0.07309802621603012, 0.22304672002792358, -0.17706292867660522, 0.444094181060791, -0.10312136262655258, 0.09222736954689026, 0.24108219146728516, 0.16124838590621948, -0.09699351340532303, 0.052455831319093704, -0.4813614785671234, 0.1660904586315155, -0.17895255982875824, -0.0562412291765213, 0.08141915500164032, 0.25357452034950256, -0.1228974312543869, -0.12917441129684448, 0.02049902081489563, 0.1910952925682068, -0.24187706410884857, -0.21370331943035126, 0.1613466441631317, 0.595404863357544, 0.17226818203926086, 0.12852035462856293, 0.06850336492061615, -0.14167480170726776, -0.30886319279670715, -0.2423849105834961, 0.00621375534683466, 0.08711214363574982, -0.1713271141052246, 0.3439907431602478, -0.25817593932151794, -0.42274782061576843, -0.37955519556999207, 0.3892644941806793, 0.13249045610427856, -0.15348359942436218, -0.11887797713279724, 0.3110215663909912, -0.0710715502500534, 0.06518425047397614, 0.18139778077602386, 0.2737932801246643, -0.09742099046707153, 0.3329170346260071, -0.31576770544052124, -0.19716402888298035, 0.677165150642395, -0.3671155869960785, 0.28056275844573975, -0.2694844603538513, 0.5114607810974121, 0.33682695031166077, -0.34097155928611755, -0.32635271549224854, 0.11212239414453506, 0.08076955378055573, 0.04198122024536133, -0.10847872495651245, 0.1534227579832077, -0.3455204963684082, 0.03237192705273628, -0.12154506146907806, 0.3072333335876465, 0.1546478122472763, 0.17467273771762848, 0.06775327026844025, -0.15501174330711365 ]
https://github.com/huggingface/datasets/issues/1942
[experiment] missing default_experiment-1-0.arrow
Thank you for clarifying that the metrics files are to be found elsewhere, @lhoestq > The cache at ~/.cache/huggingface/metrics stores the users data for metrics computations (hence the arrow files). could it be renamed to reflect that? otherwise it misleadingly suggests that it's the metrics. Perhaps `~/.cache/huggingface/metrics-user-data`? And there are so many `.lock` files w/o corresponding files under `~/.cache/huggingface/metrics/`. Why are they there? for example after I wipe out the dir completely and do one training I end up with: ``` ~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock ``` what is that lock file locking when nothing is running?
the original report was pretty bad and incomplete - my apologies! Please see the complete version here: https://github.com/huggingface/datasets/issues/1942#issuecomment-786336481 ------------ As mentioned here https://github.com/huggingface/datasets/issues/1939 metrics don't get cached, looking at my local `~/.cache/huggingface/metrics` - there are many `*.arrow.lock` files but zero metrics files. w/o the network I get: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow ``` there is just `~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock` I did run the same `run_seq2seq.py` script on the instance with network and it worked just fine, but only the lock file was left behind. this is with master. Thank you.
93
[experiment] missing default_experiment-1-0.arrow the original report was pretty bad and incomplete - my apologies! Please see the complete version here: https://github.com/huggingface/datasets/issues/1942#issuecomment-786336481 ------------ As mentioned here https://github.com/huggingface/datasets/issues/1939 metrics don't get cached, looking at my local `~/.cache/huggingface/metrics` - there are many `*.arrow.lock` files but zero metrics files. w/o the network I get: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow ``` there is just `~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock` I did run the same `run_seq2seq.py` script on the instance with network and it worked just fine, but only the lock file was left behind. this is with master. Thank you. Thank you for clarifying that the metrics files are to be found elsewhere, @lhoestq > The cache at ~/.cache/huggingface/metrics stores the users data for metrics computations (hence the arrow files). could it be renamed to reflect that? otherwise it misleadingly suggests that it's the metrics. Perhaps `~/.cache/huggingface/metrics-user-data`? And there are so many `.lock` files w/o corresponding files under `~/.cache/huggingface/metrics/`. Why are they there? for example after I wipe out the dir completely and do one training I end up with: ``` ~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock ``` what is that lock file locking when nothing is running?
[ 0.2474488466978073, 0.050926610827445984, 0.05480850860476494, 0.2140231430530548, 0.11529079079627991, 0.1876894235610962, 0.2276507169008255, 0.33815857768058777, 0.24620011448860168, 0.10040512681007385, 0.16332599520683289, 0.12003038078546524, -0.3513062298297882, -0.1723558008670807, 0.09936892986297607, -0.027356602251529694, 0.10812830924987793, -0.037812963128089905, -0.23171588778495789, -0.16497421264648438, -0.25259900093078613, 0.5168858170509338, -0.08084308356046677, 0.0938803106546402, -0.5641194581985474, 0.23150378465652466, -0.16013863682746887, 0.2439413070678711, -0.04344859719276428, -0.5871255397796631, 0.3680899441242218, 0.11987128853797913, -0.06362953037023544, 0.5067219138145447, -0.00012603108189068735, -0.11858686804771423, 0.25158780813217163, -0.1634838730096817, -0.24049076437950134, -0.13072769343852997, -0.012982387095689774, -0.2789456248283386, 0.49156251549720764, -0.20365074276924133, 0.13523805141448975, -0.0842311829328537, 0.12144750356674194, -0.42598891258239746, 0.35127729177474976, 0.04313468188047409, 0.036624327301979065, 0.24773263931274414, -0.19899185001850128, -0.28821074962615967, 0.15271681547164917, -0.09240508079528809, 0.025272248312830925, 0.36646679043769836, -0.08361105620861053, -0.009481795132160187, -0.25609758496284485, 0.30512678623199463, 0.2019367814064026, -0.1374051421880722, 0.3521667718887329, 0.015046607702970505, -0.04265562444925308, -0.23013383150100708, 0.0013804659247398376, 0.22645094990730286, 0.23747089505195618, -0.186258465051651, -0.2228962928056717, -0.05336703732609749, -0.08993761241436005, -0.25909754633903503, 0.2228359580039978, -0.05219046771526337, 0.0696590393781662, 0.14248111844062805, 0.011555472388863564, -0.19760078191757202, 0.014812283217906952, -0.003773130476474762, -0.10534843802452087, -0.005746178328990936, -0.15753790736198425, -0.015248507261276245, -0.05149553343653679, 0.1989746391773224, -0.345010906457901, 0.3006661534309387, -0.048268113285303116, 0.20717273652553558, -0.2239121049642563, 0.046874284744262695, 0.19790023565292358, 0.11995279043912888, 0.046001456677913666, 0.4275057911872864, 0.02284657396376133, 0.02635085955262184, 0.41659119725227356, 0.09097731858491898, -0.1048307865858078, 0.4695405662059784, 0.3464437425136566, -0.06735127419233322, 0.08517597615718842, 0.1602264791727066, -0.15934695303440094, -0.25618717074394226, 0.12694871425628662, -0.22310520708560944, 0.2775920033454895, 0.09057414531707764, 0.014845367521047592, -0.40997663140296936, 0.09613341838121414, 0.3147750496864319, -0.24901363253593445, -0.2345292717218399, 0.08939572423696518, 0.31530052423477173, 0.25182726979255676, -0.004200011491775513, 0.1808401495218277, 0.20917625725269318, -0.2426617443561554, -0.05007738247513771, -0.3978199362754822, -0.10540665686130524, -0.22832126915454865, 0.3502310812473297, 0.05076342448592186, -0.13947266340255737, 0.700455904006958, -0.26050668954849243, 0.38939929008483887, -0.13972774147987366, 0.2826375961303711, 0.2533383369445801, 0.0007679536938667297, 0.40324923396110535, -0.0881248414516449, 0.211593896150589, 0.35166066884994507, 0.05148831009864807, -0.18926642835140228, -0.25252118706703186, -0.2373761534690857, -0.5181609988212585, 0.08601105958223343, -0.02841006964445114, -0.5039559006690979, 0.23909892141819, 0.44089117646217346, 0.14756926894187927, -0.02927357703447342, -0.1374206691980362, 0.2848835289478302, 0.0987270325422287, 0.017405781894922256, -0.12472960352897644, 0.39237990975379944, 0.7586100101470947, -0.2284238487482071, -0.47568026185035706, 0.10442505776882172, -0.011790446937084198, -0.05433932691812515, 0.1477324515581131, -0.029107846319675446, 0.23212942481040955, -0.28400105237960815, 0.14211519062519073, 0.36685794591903687, -0.3609600365161896, -0.36208048462867737, -0.010619431734085083, -0.3919941186904907, -0.1379082053899765, 0.18210387229919434, 0.016097215935587883, 0.07284175604581833, 0.14381322264671326, 0.125819131731987, -0.3850255608558655, 0.18771125376224518, -0.42153024673461914, -0.3467738926410675, -0.1896638572216034, -0.03048022836446762, -0.10466830432415009, 0.2787397801876068, 0.03704001381993294, 0.011154510080814362, 0.10091026872396469, 0.10362961888313293, 0.1744168996810913, 0.1748627871274948, 0.2626431882381439, 0.2613888084888458, 0.16206321120262146, 0.22220095992088318, 0.19308099150657654, -0.3110491633415222, 0.23779034614562988, -0.3628156781196594, -0.01763162761926651, 0.1102190762758255, -0.07321305572986603, -0.13981780409812927, -0.23520255088806152, -0.12443612515926361, -0.5270230174064636, -0.0462951734662056, -0.036066122353076935, 0.1183856874704361, 0.12279874086380005, -0.27263718843460083, 0.14731290936470032, -0.05878875404596329, 0.3274554908275604, -0.5532156825065613, 0.03203967958688736, 0.02786613442003727, -0.1970098912715912, -0.22579921782016754, 0.10934414714574814, -0.0025992020964622498, 0.02326805703341961, -0.0975063368678093, 0.38070356845855713, -0.04993658512830734, 0.18320617079734802, 0.5586857199668884, 0.3541170656681061, -0.14207345247268677, -0.3481738567352295, 0.01589534804224968, 0.001687072217464447, -0.10034435242414474, -0.0012897327542304993, -0.23879438638687134, 0.3765333294868469, 0.13484787940979004, 0.13487839698791504, -0.36140984296798706, 0.2761768698692322, -0.20935788750648499, -0.12332186102867126, -0.5444696545600891, -0.13534849882125854, 0.40689602494239807, -0.24760635197162628, 0.3068443238735199, -0.012320714071393013, 0.0024224594235420227, 0.030455484986305237, 0.14193126559257507, 0.04834384098649025, 0.042975760996341705, 0.008162867277860641, -0.23779022693634033, -0.05338501185178757, -0.027811037376523018, 0.0037663616240024567, 0.4933541417121887, 0.16628025472164154, 0.22305326163768768, 0.014451694674789906, 0.1677996963262558, -0.24446728825569153, 0.09016294032335281, 0.17396928369998932, -0.2210899144411087, 0.10150809586048126, 0.1378704309463501, 0.20834754407405853, -0.29465189576148987, -0.050339389592409134, -0.23480157554149628, 0.03187704086303711, -0.30163973569869995, 0.15123355388641357, -0.15397952497005463, 0.3830922544002533, 0.09869667887687683, -0.02106935903429985, -0.23647749423980713, -0.3332988917827606, 0.27751344442367554, -0.3183353841304779, -0.027029085904359818, 0.20059649646282196, -0.38426706194877625, 0.6387853622436523, 0.01826656423509121, 0.016717905178666115, -0.2889692187309265, -0.0855250358581543, 0.012828614562749863, -0.2142503559589386, -0.14120976626873016, 0.026861200109124184, 0.08175228536128998, -0.2668956220149994, 0.06156335771083832, -0.1273287832736969, -0.495572954416275, 0.051223184913396835, -0.016166381537914276, 0.6132103204727173, 0.28283897042274475, 0.03914952650666237, -0.344729483127594, 0.06201189011335373, 0.2875087857246399, -0.2682441771030426, -0.379885733127594, 0.045098140835762024, 0.05126909166574478, 0.23671503365039825, -0.3826581537723541, -0.3334689140319824, 0.15065062046051025, -0.3048091232776642, 0.5795784592628479, -0.0784144401550293, -0.010553441941738129, -0.12363340705633163, -0.13485603034496307, 0.22295118868350983, -0.34937360882759094, 0.2714141011238098, -0.3231593072414398, -0.7829338908195496, 0.40904420614242554, -0.08613626658916473, -0.0492391474545002, 0.03897542878985405, 0.08901987969875336, 0.3141540586948395, -0.1025538295507431, -0.7185191512107849, -0.4109574258327484, 0.05876937508583069, 0.18371248245239258, -0.04234814643859863, 0.06456649303436279, 0.462044894695282, -0.0869353711605072, -0.01139061525464058, -0.1259305477142334, -0.16659311950206757, 0.4881492853164673, -0.12382733076810837, 0.1869422197341919, -0.18468353152275085, 0.32117152214050293, 0.1527523696422577, 1.0194029808044434, 0.5859874486923218, 0.35310906171798706, 0.13627862930297852, 0.2488948404788971, 0.43302232027053833, -0.11520858854055405, -0.08475565165281296, 0.2251204401254654, 0.24764692783355713, -0.13498280942440033, 0.30659785866737366, 0.22314944863319397, 0.18701203167438507, -0.0333174429833889, 0.009336795657873154, -0.3177511692047119, -0.2941358685493469, -0.004986440762877464, -0.14030522108078003, 0.2279343605041504, -0.0769745260477066, 0.17447376251220703, -0.18482832610607147, 0.07692445814609528, 0.39333513379096985, 0.5813071727752686, 0.30597132444381714, 0.2613007426261902, -0.182173952460289, -0.13099373877048492, -0.5380682945251465, 0.19929733872413635, -0.44580093026161194, 0.09428085386753082, -0.22952310740947723, -0.3128390610218048, 0.21122358739376068, 0.138126403093338, 0.5694956183433533, 0.18334496021270752, -0.22014747560024261, 0.057612981647253036, -0.15685725212097168, -0.23159663379192352, -0.15777619183063507, -0.004672475159168243, 0.06729669123888016, 0.2795841693878174, 0.3941032886505127, -0.390600323677063, -0.3081786036491394, -0.12428165972232819, -0.10548967868089676, -0.32384875416755676, -0.279712438583374, -0.28023356199264526, 0.023575127124786377, -0.09014278650283813, 0.06846150755882263, -0.20818990468978882, -0.08287684619426727, 0.017026206478476524, 0.11131592094898224, -0.03799305111169815, -0.08760116994380951, 0.1582569181919098, 0.07453067600727081, 0.2948908805847168, -0.23377126455307007, 0.1438099890947342, 0.5626411437988281, -0.055148571729660034, 0.050354938954114914, 0.4550113081932068, -0.024470388889312744, -0.006120890378952026, 0.36034509539604187, -0.1528995782136917, 0.3670760989189148, 0.6862474679946899, -0.19701848924160004, 0.1456228792667389, 0.06505846977233887, 0.35572975873947144, -0.07406377792358398, -0.0981435477733612, 0.35862183570861816, -0.12248485535383224, 0.3750060200691223, 0.14543356001377106, 0.24736866354942322, 0.24308185279369354, -0.19109243154525757, 0.30619722604751587, 0.10862261801958084, -0.1157655417919159, 0.3354495167732239, 0.015060558915138245, 1.040842890739441, 0.24469603598117828, 0.2499573826789856, 0.07146185636520386, 0.13124875724315643, 0.39830246567726135, 0.06466512382030487, 0.046755388379096985, -0.11987806111574173, -0.19445163011550903, -0.013267268426716328, -0.1940738409757614, -0.02827206254005432, -0.2923022508621216, -0.18565060198307037, 0.40992170572280884, -0.492933988571167, -0.15507499873638153, -0.11956925690174103, -0.3021261990070343, -0.2614349126815796, -0.07505924999713898, 0.15478521585464478, -0.041260480880737305, 0.12928101420402527, 0.5553111433982849, -0.25142091512680054, -0.22326253354549408, -0.3335103392601013, -0.2589263916015625, -0.14897561073303223, -0.21118953824043274, -0.18919412791728973, -0.023680146783590317, 0.34869107604026794, -0.15951603651046753, -0.15130063891410828, 0.2677076756954193, 0.3971245288848877, 0.0755353718996048, -0.30200403928756714, 0.06383118778467178, 0.16803312301635742, 0.008561976253986359, 0.06535037606954575, 0.03404572606086731, 0.3502119183540344, 0.00033151358366012573, 0.05111854523420334, 0.02497268095612526, -0.3353211283683777, 0.04922031611204147, -0.07945728302001953, -0.08356443047523499, -0.052629560232162476, -0.07556147873401642, 0.0267644003033638, 0.2042146772146225, -0.09683588147163391, -0.187486469745636, 0.033146634697914124, 0.3781021237373352, -0.19608013331890106, -0.02993433177471161, 0.12115839123725891, -0.3434658348560333, -0.05602302774786949, 0.43422290682792664, -0.19257482886314392, -0.11954476684331894, 0.5066853761672974, -0.06454335898160934, -0.12236690521240234, -0.07415556907653809, 0.11447986215353012, 0.4430144429206848, -0.7368457317352295, 0.07671971619129181, 0.024228116497397423, 0.0279223769903183, 0.07652927935123444, -0.007154304534196854, 0.5015128254890442, -0.19891062378883362, -0.24115543067455292, -0.21570372581481934, -0.3882724642753601, 0.38283848762512207, -0.3040485680103302, 0.13248449563980103, -0.6194878816604614, 0.059451404958963394, -0.05397596210241318, 0.12967869639396667, -0.21247678995132446, 0.21091707050800323, -0.24375832080841064, -0.11706018447875977, -0.0746394544839859, 0.03466201573610306, 0.29137998819351196, -0.05651428923010826, -0.1333194226026535, 0.02865040861070156, -0.3847765326499939, -0.051719196140766144, -0.1915149688720703, 0.18993832170963287, -0.1081528589129448, 0.24422776699066162, 0.006673294119536877, 0.30417031049728394, 0.019846640527248383, -0.05837717652320862, 0.010110430419445038, 0.25714147090911865, 0.12796063721179962, 0.1851985901594162, 0.14323008060455322, 0.2480725347995758, -0.07290734350681305, 0.20494188368320465, 0.17639140784740448, -0.10004954040050507, -0.1000216081738472, -0.1039724200963974, -0.42858588695526123, -0.08489515632390976, 0.15666788816452026, 0.1853015422821045, -0.3170945644378662, 0.09997138381004333, 0.06185375899076462, 0.01734650880098343, -0.23536083102226257, 0.04037496820092201, 0.21114756166934967, 0.22453317046165466, -0.20505191385746002, 0.06447004526853561, -0.008453045040369034, 0.05217023938894272, 0.02298445999622345, 0.23037852346897125, -0.055291954427957535, 0.42403146624565125, -0.026842385530471802, 0.2237032651901245, 0.1670224517583847, -0.12793195247650146, 0.14276865124702454, 0.19890207052230835, -0.037263985723257065, -0.04335712641477585, 0.33801859617233276, -0.03487758710980415, 0.10343803465366364, 0.34327712655067444, 0.5569767951965332, 0.1540990024805069, 0.09348954260349274, -0.09546557068824768, 0.007191553711891174, 0.25077807903289795, -0.090027816593647, 0.2582259476184845, -0.2793649733066559, -0.13731442391872406, -0.22105471789836884, 0.17378509044647217, 0.051568593829870224, -0.14024892449378967, -0.3882141709327698, 0.8121160268783569, -0.16092993319034576, -0.26088547706604004, -0.07008454948663712, 0.12496437132358551, -0.16191959381103516, -0.1566222608089447, -0.11974622309207916, -0.18427103757858276, -0.1253320425748825, -0.1607533097267151, 0.2283627688884735, -0.006296426057815552, 0.14276666939258575, 0.0652465671300888, -0.03985440731048584, -0.10749655961990356, -0.43682146072387695, 0.27253541350364685, 0.22840702533721924, -0.20359554886817932, 0.02975158579647541, 0.12747620046138763, -0.25280526280403137, 0.24953651428222656, 0.5566772222518921, 0.20992912352085114, -0.005962904542684555, -0.11636383831501007, -0.003517722710967064, 0.28830981254577637, -0.0202118419110775, -0.046643197536468506, 0.24021117389202118, 0.18307262659072876, -0.615311861038208, -0.06216437369585037, 0.008609393611550331, -0.10766513645648956, 0.3888002038002014, -0.20842497050762177, 0.3229674696922302, -0.19215485453605652, 0.35304540395736694, -0.26911821961402893, 0.09267324954271317, 0.05854504555463791, -0.0918286070227623, -0.7468348741531372, 0.21373789012432098, -0.13593651354312897, 0.01622173935174942, 0.033039793372154236, -0.24746374785900116, 0.015221532434225082, -0.09553205966949463, 0.18054768443107605, 0.5530499815940857, 0.05326824635267258, -0.33353477716445923, -0.30677276849746704, -0.4826695919036865, 0.2709023654460907, 0.14466582238674164, 0.433597207069397, -0.022838830947875977, 0.3380473554134369, -0.06302706152200699, -0.016166452318429947, 0.24614262580871582, -0.08552099019289017, -0.16110371053218842, 0.004001233726739883, -0.5652289986610413, 0.17199918627738953, 0.01958559826016426, -0.0025386232882738113, 0.10010181367397308, 0.2926972806453705, 0.02075979858636856, -0.23347221314907074, -0.09144721925258636, 0.2584429085254669, -0.211258664727211, -0.05533759295940399, 0.3531953692436218, 0.42495813965797424, 0.0721089169383049, 0.0359954759478569, 0.030497074127197266, -0.19941623508930206, -0.2580087184906006, -0.14203183352947235, -0.04112256318330765, -0.14569011330604553, -0.29330962896347046, 0.3412894010543823, -0.4688855707645416, -0.43925395607948303, -0.2739023268222809, 0.25398415327072144, 0.09472058713436127, -0.14326198399066925, -0.3065042197704315, 0.3340899646282196, -0.21204432845115662, 0.01599687710404396, 0.3520704507827759, 0.38275787234306335, 0.034038200974464417, 0.27567675709724426, -0.3647692799568176, -0.11414634436368942, 0.7994838356971741, -0.5541843175888062, 0.24261049926280975, -0.19275955855846405, 0.3955247402191162, 0.5046325325965881, -0.3508094847202301, -0.42241162061691284, -0.09678087383508682, 0.13825297355651855, 0.05504137650132179, -0.2188413292169571, 0.1441938430070877, -0.4663907587528229, -0.0743134543299675, -0.02889781817793846, 0.2651973366737366, 0.16106334328651428, 0.054709166288375854, 0.03757324442267418, -0.1937297135591507 ]
https://github.com/huggingface/datasets/issues/1942
[experiment] missing default_experiment-1-0.arrow
The lock files come from an issue with filelock (see comment in the code [here](https://github.com/benediktschmitt/py-filelock/blob/master/filelock.py#L394-L398)). Basically on unix there're always .lock files left behind. I haven't dove into this issue
the original report was pretty bad and incomplete - my apologies! Please see the complete version here: https://github.com/huggingface/datasets/issues/1942#issuecomment-786336481 ------------ As mentioned here https://github.com/huggingface/datasets/issues/1939 metrics don't get cached, looking at my local `~/.cache/huggingface/metrics` - there are many `*.arrow.lock` files but zero metrics files. w/o the network I get: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow ``` there is just `~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock` I did run the same `run_seq2seq.py` script on the instance with network and it worked just fine, but only the lock file was left behind. this is with master. Thank you.
30
[experiment] missing default_experiment-1-0.arrow the original report was pretty bad and incomplete - my apologies! Please see the complete version here: https://github.com/huggingface/datasets/issues/1942#issuecomment-786336481 ------------ As mentioned here https://github.com/huggingface/datasets/issues/1939 metrics don't get cached, looking at my local `~/.cache/huggingface/metrics` - there are many `*.arrow.lock` files but zero metrics files. w/o the network I get: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow ``` there is just `~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock` I did run the same `run_seq2seq.py` script on the instance with network and it worked just fine, but only the lock file was left behind. this is with master. Thank you. The lock files come from an issue with filelock (see comment in the code [here](https://github.com/benediktschmitt/py-filelock/blob/master/filelock.py#L394-L398)). Basically on unix there're always .lock files left behind. I haven't dove into this issue
[ 0.09786525368690491, 0.001749970018863678, 0.10701219737529755, 0.14189693331718445, -0.0015060268342494965, 0.035928741097450256, 0.24486057460308075, 0.27132648229599, 0.20910920202732086, 0.1213853657245636, 0.1688690185546875, 0.1361199915409088, -0.398126482963562, -0.04132799431681633, 0.06575793772935867, 0.0775555819272995, 0.021228566765785217, -0.03959222137928009, -0.3166528642177582, -0.1807788908481598, -0.256591260433197, 0.5491788983345032, -0.11920099705457687, 0.009376466274261475, -0.5109117031097412, 0.23071570694446564, -0.23061741888523102, 0.27721187472343445, -0.02747773937880993, -0.5815619230270386, 0.38943371176719666, 0.12153638899326324, 0.04785513877868652, 0.4788638651371002, -0.00012740452075377107, -0.16634559631347656, 0.1572808474302292, -0.18699589371681213, -0.15303745865821838, -0.1362829953432083, 0.030532248318195343, -0.296793669462204, 0.5233110189437866, -0.23394080996513367, 0.0798516571521759, -0.028846055269241333, 0.10235434025526047, -0.2997951805591583, 0.43832194805145264, 0.06246742978692055, 0.046760499477386475, 0.30752435326576233, -0.03421195223927498, -0.25703194737434387, 0.07026492804288864, -0.09242741763591766, 0.0015266332775354385, 0.34446844458580017, -0.20508936047554016, 0.09210006147623062, -0.20546820759773254, 0.23644916713237762, 0.24739480018615723, -0.1546231508255005, 0.26574692130088806, 0.02019096165895462, -0.06409884244203568, -0.1387818306684494, -0.09492097049951553, 0.34081098437309265, 0.19284853339195251, -0.15215981006622314, -0.2342793345451355, 0.05924186110496521, -0.11222852766513824, -0.3646726608276367, 0.20423993468284607, -0.07013767212629318, 0.12027691304683685, 0.14263421297073364, 0.06805147975683212, -0.1823931187391281, -0.04719579219818115, 0.07076209038496017, -0.15211015939712524, 0.040755514055490494, -0.14040249586105347, 0.02065478265285492, -0.04088839516043663, 0.18274444341659546, -0.41133037209510803, 0.35444751381874084, 0.011548254638910294, 0.12679944932460785, -0.34444695711135864, 0.1168113499879837, 0.2434752881526947, 0.028261791914701462, 0.04633650928735733, 0.40561872720718384, -0.05803702026605606, 0.019938625395298004, 0.3959125876426697, 0.15045343339443207, -0.07844124734401703, 0.46602508425712585, 0.23614484071731567, 0.016870200634002686, 0.17646002769470215, 0.18493588268756866, -0.21156325936317444, -0.26384812593460083, 0.13658039271831512, -0.23621423542499542, 0.4281723201274872, 0.11228714883327484, 0.11058077216148376, -0.4319954812526703, 0.1628940850496292, 0.27999255061149597, -0.14371588826179504, -0.18739883601665497, 0.0960942879319191, 0.37510570883750916, 0.17447572946548462, 0.003334779292345047, 0.23025648295879364, 0.3915501832962036, -0.2153758406639099, 0.007653209380805492, -0.39049601554870605, -0.21056194603443146, -0.054018568247556686, 0.30261316895484924, 0.13563039898872375, -0.1125972718000412, 0.672679603099823, -0.20448698103427887, 0.4261624813079834, -0.09013298898935318, 0.32853224873542786, 0.21198034286499023, 0.06454148143529892, 0.3416908383369446, -0.026464831084012985, 0.21238629519939423, 0.28964361548423767, 0.14808793365955353, -0.23938778042793274, -0.2758551239967346, -0.1812230944633484, -0.538087785243988, 0.07987838238477707, -0.04244338348507881, -0.465970516204834, 0.17925140261650085, 0.45282235741615295, 0.14641574025154114, -0.10152149945497513, -0.3035164177417755, 0.2009052336215973, -0.009810175746679306, -0.00847790390253067, -0.15026989579200745, 0.5102129578590393, 0.6958426833152771, -0.3465333580970764, -0.38049277663230896, 0.03678244724869728, 0.007695689797401428, -0.005418933928012848, 0.26110580563545227, 0.03632305935025215, 0.16937819123268127, -0.3158247470855713, 0.13050244748592377, 0.3877372741699219, -0.33735498785972595, -0.45687028765678406, -0.06797398626804352, -0.36832523345947266, -0.11104696244001389, 0.19293253123760223, 0.013399023562669754, 0.13070809841156006, 0.1547202467918396, 0.030089382082223892, -0.2190200537443161, 0.26061102747917175, -0.37399375438690186, -0.35691142082214355, -0.23060022294521332, 0.006728991866111755, -0.09209226071834564, 0.33587056398391724, 0.01761491596698761, 0.07479548454284668, 0.02299807220697403, 0.08267690986394882, 0.07520296424627304, 0.1626361459493637, 0.2784366011619568, 0.3372359275817871, 0.10006559640169144, 0.2661372423171997, 0.1485668122768402, -0.20923081040382385, 0.23498505353927612, -0.41469210386276245, 0.07084442675113678, 0.11747559159994125, 0.006145112216472626, -0.11547617614269257, -0.20347294211387634, -0.09051156044006348, -0.4177539348602295, -0.05472216755151749, -0.04951927065849304, 0.21095353364944458, 0.2493545264005661, -0.17679597437381744, 0.03898296505212784, 0.08699691295623779, 0.2594943940639496, -0.47515493631362915, 0.010341759771108627, -0.09471730142831802, -0.33579105138778687, -0.06531646102666855, 0.1485406458377838, 0.010866772383451462, 0.03543233871459961, -0.14385101199150085, 0.3710699677467346, -0.17246699333190918, 0.27300330996513367, 0.4506232738494873, 0.24153773486614227, -0.11968439072370529, -0.3655077815055847, 0.03258693218231201, 0.14244036376476288, -0.10885738581418991, 0.03634186089038849, -0.24517470598220825, 0.3830000162124634, 0.2120269387960434, 0.07134838402271271, -0.3359494209289551, 0.3146025240421295, -0.07403562217950821, -0.09877704828977585, -0.48157280683517456, -0.12808167934417725, 0.39173775911331177, -0.2381812483072281, 0.24102233350276947, -0.10555551946163177, 0.010551363229751587, 0.0025621503591537476, 0.24971534311771393, 0.07995481789112091, 0.23325255513191223, 0.07802880555391312, -0.2227706015110016, -0.0949150025844574, 0.01848476193845272, -0.13007473945617676, 0.4450000524520874, 0.1906781941652298, 0.22785550355911255, 0.05384711176156998, 0.10525498539209366, -0.18881277740001678, 0.10541108250617981, -0.011707387864589691, -0.1605948507785797, 0.12855368852615356, 0.21713502705097198, 0.21080368757247925, -0.2892758548259735, -0.1394123136997223, -0.40380072593688965, -0.039159536361694336, -0.3721092641353607, 0.07993389666080475, -0.2586634159088135, 0.4104166328907013, 0.183658167719841, 0.17344756424427032, -0.27609238028526306, -0.327984482049942, 0.24312761425971985, -0.29011717438697815, -0.055871278047561646, 0.23728454113006592, -0.3406102657318115, 0.547947108745575, 0.1450074464082718, -0.20626215636730194, -0.29597708582878113, -0.13401247560977936, -0.09421474486589432, -0.220079705119133, -0.24251635372638702, 0.09892163425683975, 0.10372218489646912, -0.17250211536884308, 0.0372331440448761, -0.013778634369373322, -0.4823431670665741, 0.06965267658233643, 0.05114090070128441, 0.619621753692627, 0.352149099111557, 0.08152985572814941, -0.30571484565734863, 0.0834970772266388, 0.41360241174697876, -0.4095364212989807, -0.26881110668182373, 0.18244177103042603, 0.04347820207476616, 0.21139024198055267, -0.2620833218097687, -0.36174410581588745, 0.02654966525733471, -0.29761484265327454, 0.6853885054588318, 0.09610897302627563, -0.034080058336257935, -0.16203466057777405, -0.0633251741528511, 0.1737498790025711, -0.32336488366127014, 0.38059088587760925, -0.2930782437324524, -0.6595547199249268, 0.504742443561554, -0.1025175228714943, -0.2188173085451126, -0.003696206957101822, 0.05864796042442322, 0.33441662788391113, -0.08944720029830933, -0.6739210486412048, -0.42967838048934937, 0.006739959120750427, 0.2661028504371643, -0.025428295135498047, 0.11975811421871185, 0.5252692699432373, -0.08392030745744705, 0.013743093237280846, -0.06748723983764648, -0.20236484706401825, 0.5829989314079285, -0.06212424486875534, 0.13757997751235962, -0.0825309008359909, 0.37290361523628235, 0.12414221465587616, 0.9117974042892456, 0.47196298837661743, 0.35362866520881653, 0.24569977819919586, 0.09200052171945572, 0.3813197910785675, -0.14793598651885986, -0.11292523890733719, 0.3361160159111023, 0.23271775245666504, -0.15896658599376678, 0.243769571185112, 0.1992548108100891, 0.19217349588871002, -0.06088609620928764, -0.07306237518787384, -0.3863716125488281, -0.3076609969139099, -0.03253299742937088, -0.047155141830444336, 0.23210352659225464, -0.006995800882577896, 0.04247888922691345, -0.22808025777339935, 0.011263659223914146, 0.422014057636261, 0.43126797676086426, 0.23228883743286133, 0.237875834107399, -0.14411737024784088, 0.05893729627132416, -0.5730272531509399, 0.2734696865081787, -0.5298248529434204, 0.08324766904115677, -0.22065451741218567, -0.33055880665779114, 0.15100610256195068, 0.04135654494166374, 0.5898935198783875, 0.17789512872695923, -0.13995210826396942, -0.07258877903223038, -0.20021912455558777, -0.4257734715938568, -0.15236245095729828, -0.12888765335083008, -0.11714340001344681, 0.3681681454181671, 0.33416345715522766, -0.399016410112381, -0.14824245870113373, -0.13284088671207428, -0.02420976385474205, -0.28090977668762207, -0.36429375410079956, -0.2995690703392029, 0.05584152787923813, -0.21094997227191925, 0.07945242524147034, -0.2678171396255493, -0.04501426964998245, 0.05151505768299103, 0.03768708184361458, -0.16772177815437317, -0.1312996745109558, 0.02001546323299408, 0.07444159686565399, 0.35409075021743774, -0.36741092801094055, 0.15729749202728271, 0.47051355242729187, -0.09933674335479736, 0.03395797312259674, 0.3758530914783478, 0.038676097989082336, 0.007547803223133087, 0.32316192984580994, -0.16325484216213226, 0.24358105659484863, 0.5914894342422485, -0.3155205249786377, 0.04857759550213814, 0.0017071962356567383, 0.47693729400634766, -0.15455372631549835, -0.1676851212978363, 0.37433624267578125, -0.18517634272575378, 0.39947250485420227, 0.21722275018692017, 0.14657264947891235, 0.23074479401111603, -0.1425456404685974, 0.2136995494365692, 0.09214502573013306, -0.14866439998149872, 0.4187479615211487, -0.019174225628376007, 1.0156919956207275, 0.2073531448841095, 0.28270065784454346, 0.13291935622692108, 0.17721642553806305, 0.4591483175754547, 0.10795068740844727, 0.055626280605793, -0.20912493765354156, -0.2929941415786743, 0.001057969406247139, -0.1498105525970459, -0.0807727500796318, -0.23135419189929962, -0.27628105878829956, 0.4570978283882141, -0.3854299783706665, -0.16031962633132935, -0.1962326169013977, -0.22333405911922455, -0.3173438012599945, -0.1051383763551712, 0.0847928524017334, -0.03897630050778389, 0.148723304271698, 0.5471580624580383, -0.22262877225875854, -0.17681099474430084, -0.34931284189224243, -0.3877285122871399, -0.12658381462097168, -0.033756107091903687, -0.2098587453365326, 0.031123589724302292, 0.3574778437614441, -0.1190110594034195, -0.20992188155651093, 0.2792094647884369, 0.34869879484176636, 0.14780713617801666, -0.3286237120628357, -0.05365830287337303, 0.13874217867851257, 0.06931556016206741, 0.11348814517259598, -0.016283851116895676, 0.2863364517688751, -0.05926337465643883, -0.020608611404895782, 0.013943947851657867, -0.26173844933509827, 0.06250965595245361, 0.06231305003166199, -0.17639045417308807, -0.20896030962467194, -0.04637711122632027, -0.02780866250395775, 0.09018197655677795, -0.049351997673511505, -0.20617681741714478, 0.030174683779478073, 0.3500428795814514, -0.23814348876476288, 0.07578393071889877, 0.1948082447052002, -0.2536814212799072, -0.10465070605278015, 0.5353067517280579, -0.28396543860435486, -0.04048639535903931, 0.5257987976074219, 0.052144911140203476, -0.0739266499876976, -0.08796641230583191, 0.12314551323652267, 0.3842422068119049, -0.8295775651931763, 0.06232122704386711, -0.014782999642193317, 0.02064836025238037, 0.09306491911411285, 0.09819064289331436, 0.443317174911499, -0.14988678693771362, -0.13712354004383087, -0.2625288963317871, -0.2995172441005707, 0.2950276732444763, -0.34774500131607056, 0.14633871614933014, -0.4390573501586914, 0.017123248428106308, -0.14223599433898926, 0.194051593542099, -0.2237335443496704, 0.1365995556116104, -0.22806496918201447, -0.1690293401479721, -0.10428410768508911, -0.0442446693778038, 0.3885755240917206, -0.03314220905303955, -0.08408989012241364, 0.08145681768655777, -0.31139522790908813, -0.028935646638274193, -0.2361382097005844, 0.17624534666538239, -0.15209504961967468, 0.1542678028345108, -0.021332290023565292, 0.24183325469493866, -0.025644242763519287, -0.13512614369392395, 0.01999111846089363, 0.17463386058807373, 0.08195742219686508, 0.18294984102249146, 0.10141444206237793, 0.1096104085445404, -0.1310424953699112, 0.2293003797531128, 0.08278732746839523, -0.20016826689243317, -0.09072063863277435, 0.04416460543870926, -0.4078599214553833, -0.0517292320728302, 0.18815267086029053, 0.15266770124435425, -0.27269577980041504, 0.18537718057632446, 0.09128567576408386, -0.002634786069393158, -0.30781087279319763, 0.0038790679536759853, 0.470251202583313, 0.12856103479862213, -0.20488737523555756, 0.007431697100400925, -0.017100989818572998, 0.05226653069257736, -0.10663697868585587, 0.256721556186676, 0.0800270065665245, 0.40848594903945923, -0.05406207963824272, 0.284275084733963, 0.13801224529743195, -0.08002599328756332, 0.09523243457078934, 0.25582945346832275, -0.07375582307577133, -0.14624765515327454, 0.36566850543022156, -0.07033541798591614, 0.07684825360774994, 0.35008540749549866, 0.4774141311645508, 0.11019247770309448, 0.13489282131195068, -0.03434547036886215, -0.06223737448453903, 0.15862609446048737, -0.08707047253847122, 0.2827892601490021, -0.14436882734298706, -0.20006629824638367, -0.13749642670154572, 0.09462185949087143, 0.040701188147068024, -0.174367755651474, -0.41973811388015747, 0.7717673778533936, -0.21964332461357117, -0.24264192581176758, -0.18698853254318237, 0.21876172721385956, -0.13129404187202454, -0.10288569331169128, -0.13304246962070465, -0.16275912523269653, -0.18819424510002136, -0.13699796795845032, 0.24130499362945557, 0.0748140960931778, 0.013571031391620636, 0.18319495022296906, 0.07792048156261444, -0.2401617020368576, -0.40972423553466797, 0.14712965488433838, 0.23483619093894958, -0.17239561676979065, 0.04436104744672775, 0.269697368144989, -0.2988665699958801, 0.18265897035598755, 0.6049940586090088, 0.31438499689102173, 0.018865127116441727, -0.10378983616828918, 0.11643225699663162, 0.27266085147857666, 0.0104303490370512, -0.12313491851091385, 0.14423322677612305, 0.24944481253623962, -0.45716044306755066, 0.045088399201631546, 0.00026608817279338837, -0.10976394265890121, 0.42636537551879883, -0.23725037276744843, 0.3066156506538391, -0.19230829179286957, 0.40764540433883667, -0.1710711270570755, 0.10759557038545609, 0.04662454128265381, -0.13959115743637085, -0.7387017607688904, 0.20410731434822083, -0.10148902237415314, 0.015131140127778053, 0.0688963457942009, -0.24667462706565857, 0.010789398103952408, -0.1486222892999649, 0.1965501457452774, 0.5074284672737122, 0.06303536891937256, -0.2921721339225769, -0.1924869418144226, -0.4941076338291168, 0.3129240870475769, 0.12778377532958984, 0.2551855742931366, -0.039415135979652405, 0.35703369975090027, -0.09034156054258347, 0.031094228848814964, 0.28033247590065, -0.024328688159585, -0.11024554073810577, 0.03344240039587021, -0.49783387780189514, 0.17319844663143158, -0.051837675273418427, -0.09609438478946686, 0.06452887505292892, 0.27074703574180603, -0.044634316116571426, -0.29148048162460327, -0.043621595948934555, 0.2637951970100403, -0.2875218391418457, -0.1453559547662735, 0.1927298903465271, 0.4304184019565582, 0.17271210253238678, 0.10352414846420288, -0.024154294282197952, -0.1447632759809494, -0.17577315866947174, -0.10067281126976013, -0.038569126278162, -0.11397946625947952, -0.27935877442359924, 0.42396071553230286, -0.3997516632080078, -0.4653256833553314, -0.3727269172668457, 0.3133133351802826, 0.04862375557422638, -0.13385020196437836, -0.21255315840244293, 0.3537251055240631, -0.1586044430732727, 0.01630469039082527, 0.292378693819046, 0.2744099795818329, -0.012101493775844574, 0.3496612012386322, -0.2905239462852478, -0.18735027313232422, 0.7223865985870361, -0.5237226486206055, 0.3236786723136902, -0.2664918005466461, 0.41989460587501526, 0.35440775752067566, -0.3350409269332886, -0.3600742518901825, -0.02026587724685669, 0.12779825925827026, 0.08860954642295837, -0.15515708923339844, 0.0890781432390213, -0.3894801437854767, -0.061663590371608734, 0.016400359570980072, 0.23974907398223877, 0.16861265897750854, -0.007857095450162888, -0.0522724911570549, -0.15975108742713928 ]
https://github.com/huggingface/datasets/issues/1942
[experiment] missing default_experiment-1-0.arrow
are you sure you need an external lock file? if it's a single purpose locking in the same scope you can lock the caller `__file__` instead, e.g. here is how one can `flock` the script file itself to ensure atomic printing: ``` import fcntl def printflock(*msgs): """ print in multiprocess env so that the outputs from different processes don't get interleaved """ with open(__file__, "r") as fh: fcntl.flock(fh, fcntl.LOCK_EX) try: print(*msgs) finally: fcntl.flock(fh, fcntl.LOCK_UN) ```
the original report was pretty bad and incomplete - my apologies! Please see the complete version here: https://github.com/huggingface/datasets/issues/1942#issuecomment-786336481 ------------ As mentioned here https://github.com/huggingface/datasets/issues/1939 metrics don't get cached, looking at my local `~/.cache/huggingface/metrics` - there are many `*.arrow.lock` files but zero metrics files. w/o the network I get: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow ``` there is just `~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock` I did run the same `run_seq2seq.py` script on the instance with network and it worked just fine, but only the lock file was left behind. this is with master. Thank you.
75
[experiment] missing default_experiment-1-0.arrow the original report was pretty bad and incomplete - my apologies! Please see the complete version here: https://github.com/huggingface/datasets/issues/1942#issuecomment-786336481 ------------ As mentioned here https://github.com/huggingface/datasets/issues/1939 metrics don't get cached, looking at my local `~/.cache/huggingface/metrics` - there are many `*.arrow.lock` files but zero metrics files. w/o the network I get: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow ``` there is just `~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock` I did run the same `run_seq2seq.py` script on the instance with network and it worked just fine, but only the lock file was left behind. this is with master. Thank you. are you sure you need an external lock file? if it's a single purpose locking in the same scope you can lock the caller `__file__` instead, e.g. here is how one can `flock` the script file itself to ensure atomic printing: ``` import fcntl def printflock(*msgs): """ print in multiprocess env so that the outputs from different processes don't get interleaved """ with open(__file__, "r") as fh: fcntl.flock(fh, fcntl.LOCK_EX) try: print(*msgs) finally: fcntl.flock(fh, fcntl.LOCK_UN) ```
[ -0.09580840170383453, -0.09423467516899109, 0.1255568563938141, 0.09274034947156906, -0.08685482293367386, -0.029632389545440674, 0.23172250390052795, 0.2375224530696869, 0.2348071038722992, 0.17823588848114014, 0.003462507389485836, 0.14741013944149017, -0.23789198696613312, -0.01788695715367794, -0.02041371911764145, 0.17724640667438507, 0.007517091929912567, -0.08020193874835968, -0.34211936593055725, -0.14483754336833954, -0.2741205096244812, 0.5315685272216797, -0.13082382082939148, -0.0719345211982727, -0.42900145053863525, 0.212315171957016, -0.22639156877994537, 0.12111473083496094, -0.008158287033438683, -0.33956775069236755, 0.10498568415641785, 0.3507528603076935, 0.10301589965820312, 0.46258842945098877, -0.0001223227591253817, -0.24794621765613556, 0.17067572474479675, -0.17182400822639465, -0.10117548704147339, -0.06450231373310089, 0.14057216048240662, -0.31082645058631897, 0.47653651237487793, -0.29782015085220337, 0.10284847766160965, 0.08410878479480743, 0.14083744585514069, -0.3395659923553467, 0.4358519911766052, -0.03787269443273544, 0.0893842950463295, 0.2628898322582245, 0.12001658976078033, -0.17752857506275177, -0.03319041430950165, -0.17803345620632172, 0.012177349999547005, 0.2705991864204407, -0.11193716526031494, 0.08444900810718536, -0.2585883140563965, 0.25090381503105164, 0.22376924753189087, -0.20246298611164093, 0.14230957627296448, 0.06109527871012688, -0.1400080919265747, -0.254703551530838, -0.1634262204170227, 0.2697407007217407, 0.13648056983947754, -0.32049643993377686, -0.30083897709846497, 0.04926036298274994, -0.11721823364496231, -0.3431064188480377, 0.026246435940265656, -0.0340270921587944, -0.0005137361586093903, 0.061858661472797394, 0.12329348176717758, -0.19930528104305267, -0.010440420359373093, 0.00031945109367370605, -0.013987604528665543, 0.09583599865436554, -0.16065160930156708, 0.089580237865448, -0.13222965598106384, 0.28885865211486816, -0.3445693552494049, 0.3877013921737671, 0.009918425232172012, 0.10422687977552414, -0.2629310190677643, 0.15740419924259186, 0.28716540336608887, -0.10449977964162827, 0.10257846862077713, 0.3618667721748352, -0.034326035529375076, 0.011868195608258247, 0.5354158282279968, 0.1580042839050293, -0.014351930469274521, 0.3216002285480499, 0.2761745750904083, 0.019397713243961334, 0.20495012402534485, 0.4004882276058197, -0.2367348074913025, -0.2947695553302765, 0.2996625304222107, -0.2098303586244583, 0.34513989090919495, 0.11166714131832123, 0.1468072533607483, -0.47406068444252014, 0.3149004876613617, 0.3492855727672577, -0.067985899746418, -0.06760577857494354, -0.027408111840486526, 0.36866921186447144, 0.23221437633037567, 0.09724569320678711, 0.35925930738449097, 0.22190162539482117, -0.22427350282669067, -0.07528667896986008, -0.3204057216644287, -0.17064008116722107, -0.024874208495020866, 0.4072387218475342, -0.07775233685970306, -0.05942568555474281, 0.5295742750167847, -0.05865107849240303, 0.5135621428489685, -0.08857619017362595, 0.0644366443157196, 0.17588910460472107, 0.072553850710392, 0.239168182015419, 0.02540261670947075, 0.2357243150472641, 0.34547334909439087, 0.2439839392900467, -0.23184987902641296, -0.3414825201034546, 0.06395246833562851, -0.46192172169685364, 0.10582268238067627, -0.01823851838707924, -0.3980558514595032, 0.19515247642993927, 0.6058899760246277, 0.1725609004497528, -0.18058359622955322, -0.2601388096809387, 0.31141865253448486, 0.08526353538036346, -0.0760376825928688, -0.08741117268800735, 0.4565061032772064, 0.7431333661079407, -0.35835984349250793, -0.3069779872894287, 0.10752801597118378, -0.10939298570156097, 0.06350746750831604, 0.14912448823451996, 0.09730325639247894, 0.09650950878858566, -0.2766650319099426, -0.11782190948724747, 0.3571416139602661, -0.4726913273334503, -0.47257471084594727, 0.0852731242775917, -0.4719013571739197, -0.02741287462413311, 0.20668178796768188, 0.0076043494045734406, 0.22382499277591705, 0.21701692044734955, 0.1575412154197693, -0.19816379249095917, 0.21139536798000336, -0.27672722935676575, -0.39292094111442566, -0.17853981256484985, -0.13249748945236206, -0.06494246423244476, 0.20479322969913483, 0.011592157185077667, 0.08406488597393036, 0.031353700906038284, 0.22869175672531128, 0.08978383243083954, 0.18882402777671814, 0.28321993350982666, 0.37759605050086975, 0.17429105937480927, 0.24643349647521973, 0.11350680142641068, -0.27645766735076904, 0.21358546614646912, -0.45690953731536865, 0.11786413192749023, 0.08134002983570099, -0.048926204442977905, -0.021800566464662552, -0.105861596763134, -0.04186736419796944, -0.4147403836250305, 0.008528470993041992, -0.04347759485244751, 0.30304843187332153, 0.24959741532802582, -0.17962364852428436, 0.23859165608882904, -0.01303114928305149, 0.2911899983882904, -0.42033395171165466, -0.14972956478595734, -0.04776272177696228, -0.3882255256175995, 0.05759783089160919, 0.17189618945121765, 0.0015682876110076904, 0.07485856860876083, -0.1377810537815094, 0.4197941720485687, -0.057103563100099564, 0.28762924671173096, 0.2521420121192932, 0.16788949072360992, -0.19712798297405243, -0.24207159876823425, -0.01251492090523243, 0.06570927798748016, -0.035609934478998184, 0.025498315691947937, -0.11233038455247879, 0.49019551277160645, 0.09704045951366425, 0.08579055964946747, -0.3372982144355774, 0.25763192772865295, -0.1290609985589981, -0.06232169270515442, -0.5252741575241089, -0.1358705461025238, 0.3787257969379425, -0.22511956095695496, 0.23664285242557526, -0.13150571286678314, 0.03011099249124527, 0.07980260252952576, 0.17857575416564941, 0.24597039818763733, 0.17151755094528198, -0.0005892366170883179, -0.1394902765750885, -0.012599345296621323, 0.03475647792220116, -0.08484679460525513, 0.2582924962043762, 0.2357063740491867, 0.10507072508335114, 0.08812777698040009, 0.10875103622674942, -0.173283651471138, 0.10775043815374374, -0.06382511556148529, -0.10169629007577896, 0.1692502498626709, 0.18573853373527527, 0.11883752793073654, -0.2927372455596924, -0.17769911885261536, -0.3255646228790283, -0.03207608312368393, -0.23668517172336578, -0.02041696384549141, 0.034523412585258484, 0.3458489775657654, 0.009170018136501312, 0.08650017529726028, -0.29008302092552185, -0.404525488615036, 0.21749413013458252, -0.17989075183868408, -0.06888118386268616, 0.18238167464733124, -0.4417125880718231, 0.412261962890625, 0.10748837888240814, -0.24187301099300385, -0.32942333817481995, -0.15971794724464417, -0.07865815609693527, -0.2074676752090454, -0.2837304472923279, 0.1251956820487976, 0.22201189398765564, -0.04861099272966385, 0.08009716123342514, -0.1392984539270401, -0.34606853127479553, 0.0014419369399547577, -0.05105423182249069, 0.6285657286643982, 0.29116445779800415, -0.030540645122528076, -0.16637389361858368, 0.054724328219890594, 0.4496113657951355, -0.5593895316123962, -0.1918306052684784, 0.10305137187242508, -0.05182327702641487, 0.1852312535047531, -0.25518906116485596, -0.26872768998146057, 0.044805824756622314, -0.4148479700088501, 0.6636121869087219, 0.023417532444000244, -0.010174870491027832, -0.2235938459634781, -0.10768096894025803, 0.1781018078327179, -0.2553528845310211, 0.4349592328071594, -0.14979392290115356, -0.5847468376159668, 0.42442330718040466, -0.12818607687950134, -0.22304339706897736, -0.14087164402008057, 0.08222821354866028, 0.17599239945411682, -0.14490540325641632, -0.5932180285453796, -0.5006263256072998, -0.10144463181495667, 0.24489450454711914, -0.02638237178325653, 0.1439138501882553, 0.421091765165329, -0.14150720834732056, -0.0179312601685524, -0.01290290430188179, -0.12393379211425781, 0.5327203273773193, -0.19630253314971924, 0.05324757844209671, -0.07954608649015427, 0.4616313874721527, 0.08426980674266815, 0.8287329077720642, 0.5620365142822266, 0.3317267894744873, 0.18329522013664246, 0.02196984738111496, 0.4228358566761017, -0.13682547211647034, -0.19047124683856964, 0.39913636445999146, 0.30479392409324646, -0.2714654505252838, 0.21123006939888, 0.043551504611968994, 0.22307223081588745, -0.11637591570615768, 0.010674327611923218, -0.44659534096717834, -0.4564574360847473, -0.0719129741191864, 0.0920201987028122, 0.21740084886550903, -0.09415243566036224, 0.03398710489273071, -0.09756189584732056, 0.020238293334841728, 0.514684796333313, 0.37644636631011963, 0.1630999743938446, 0.12779675424098969, -0.18113335967063904, -0.005746982991695404, -0.6595853567123413, 0.35774219036102295, -0.4646309018135071, 0.15720227360725403, -0.15832562744617462, -0.34131214022636414, 0.16603423655033112, -0.05649434030056, 0.6355434060096741, 0.1735784113407135, -0.1956249624490738, -0.004677274264395237, -0.2547473609447479, -0.436953067779541, -0.10279903560876846, -0.2421702742576599, -0.15076231956481934, 0.36200642585754395, 0.09184758365154266, -0.4735632836818695, -0.1324455291032791, -0.13018031418323517, -0.1474507749080658, -0.3104037642478943, -0.3958631455898285, -0.29348304867744446, 0.04561745375394821, -0.3154395818710327, 0.07384379953145981, -0.30792269110679626, 0.021520942449569702, 0.01810932718217373, 0.09272070229053497, 0.02718695066869259, -0.10777896642684937, 0.07735152542591095, 0.10225817561149597, 0.28877687454223633, -0.21361131966114044, 0.09833785891532898, 0.437238484621048, -0.1915367692708969, -0.01929655857384205, 0.31323784589767456, 0.10187511146068573, -0.09997163712978363, 0.17593002319335938, -0.07945460826158524, 0.2799617648124695, 0.6032477617263794, -0.17293819785118103, 0.05490921065211296, -0.05863916128873825, 0.481881320476532, -0.11789656430482864, -0.28555482625961304, 0.23732192814350128, -0.1547117978334427, 0.39270368218421936, 0.21921849250793457, 0.04857602342963219, 0.3099290132522583, -0.105720154941082, 0.35559701919555664, -0.02059759944677353, -0.14115193486213684, 0.42367100715637207, 0.11919885873794556, 0.9506534337997437, 0.09765838831663132, 0.18604125082492828, 0.24220606684684753, -0.03768516331911087, 0.44921401143074036, 0.029655851423740387, 0.014283688738942146, -0.3872029185295105, -0.2756671607494354, 0.09175267815589905, -0.10323148965835571, -0.08164840191602707, -0.34441447257995605, -0.29147258400917053, 0.31552654504776, -0.3911910057067871, -0.3037444055080414, -0.3794366419315338, -0.19600851833820343, -0.4446936845779419, -0.26356491446495056, -0.04770434647798538, -0.009024236351251602, 0.14331144094467163, 0.5026950240135193, -0.30788177251815796, -0.1107049286365509, -0.2886674404144287, -0.3712596297264099, -0.2273344248533249, -0.022258292883634567, -0.20273515582084656, -0.06409763544797897, 0.24012057483196259, 0.091819629073143, -0.3199107050895691, 0.32983139157295227, 0.38152891397476196, 0.12731777131557465, -0.2358827292919159, -0.17804765701293945, 0.2861911356449127, 0.03824680671095848, 0.1124107837677002, 0.0014286627992987633, 0.2514297366142273, 0.03591463714838028, -0.030759252607822418, 0.17090901732444763, -0.1664935201406479, 0.0872223973274231, 0.10059642791748047, -0.1597258299589157, -0.14239142835140228, -0.19584067165851593, -0.06575325131416321, 0.15548628568649292, -0.06633957475423813, -0.2104569524526596, 0.048237428069114685, 0.24578987061977386, -0.3146835267543793, 0.14818990230560303, 0.037927135825157166, -0.27713483572006226, -0.07507674396038055, 0.524707019329071, -0.2640314996242523, -0.024846892803907394, 0.3970458507537842, 0.2828388810157776, -0.08601610362529755, -0.14411112666130066, 0.12933269143104553, 0.2986588180065155, -0.7690419554710388, 0.20180344581604004, 0.14776653051376343, -0.01924271136522293, 0.04348067194223404, 0.25325891375541687, 0.3413798213005066, -0.15685898065567017, -0.09551432728767395, -0.2206641286611557, -0.34614038467407227, 0.3158050775527954, -0.2180737406015396, 0.2099333554506302, -0.294249027967453, 0.10178659856319427, -0.15638408064842224, 0.2841723561286926, -0.2742087244987488, 0.009868784807622433, -0.23857907950878143, -0.1825033575296402, -0.07594456523656845, -0.0353177934885025, 0.3743843138217926, 0.12951192259788513, -0.03230355679988861, 0.22204534709453583, -0.29326409101486206, -0.0894104391336441, -0.20778332650661469, 0.16885240375995636, -0.10083194822072983, 0.22745724022388458, -0.09316813945770264, 0.16161827743053436, -0.1409091353416443, -0.1505560427904129, 0.12150263786315918, 0.3491714894771576, 0.03483055531978607, 0.15796321630477905, 0.22355353832244873, 0.0524996817111969, -0.15889161825180054, 0.17829629778862, 0.09672792255878448, -0.16470511257648468, -0.06736329942941666, 0.023815199732780457, -0.4683922827243805, -0.07549940049648285, 0.19766712188720703, 0.15543007850646973, -0.1301898956298828, 0.15470173954963684, 0.04385068267583847, 0.07331107556819916, -0.3498424291610718, 0.06819838285446167, 0.5667786598205566, 0.22933200001716614, -0.19471509754657745, -0.08456561714410782, -0.07618719339370728, 0.07484583556652069, -0.07977482676506042, 0.40893828868865967, 0.019624872133135796, 0.2220221757888794, 0.0884397029876709, 0.39188680052757263, 0.006904825568199158, -0.1549842357635498, 0.08872155845165253, 0.15674540400505066, -0.126759335398674, -0.14995509386062622, 0.27385807037353516, -0.0977545827627182, 0.1879412829875946, 0.3699200451374054, 0.501771092414856, 0.18578755855560303, 0.17369306087493896, -0.15991593897342682, -0.0085364431142807, -0.004176892340183258, -0.18322885036468506, 0.3578144311904907, -0.06316462904214859, -0.13510838150978088, -0.061901580542325974, 0.02473534643650055, 0.0999879390001297, -0.16193175315856934, -0.4995587468147278, 0.7212766408920288, -0.15969796478748322, -0.07274199277162552, -0.172946035861969, 0.42023929953575134, -0.12579765915870667, -0.12015320360660553, -0.08072316646575928, -0.1388189196586609, -0.08104343712329865, -0.10810568928718567, 0.35865774750709534, 0.14516320824623108, 0.06383207440376282, 0.2073589712381363, 0.1183849349617958, -0.2788425087928772, -0.4896354675292969, 0.2174435555934906, 0.28562504053115845, -0.24756817519664764, 0.012894118204712868, 0.23468011617660522, -0.2322445809841156, 0.14329339563846588, 0.6515597105026245, 0.2464323788881302, 0.011747919023036957, -0.012047836557030678, 0.20256087183952332, 0.26493796706199646, 0.05019205063581467, -0.122370146214962, 0.16402268409729004, 0.2685837149620056, -0.4571162760257721, 0.2159976065158844, 0.04372356832027435, -0.15767642855644226, 0.24952943623065948, -0.23333857953548431, 0.26811379194259644, -0.0029881158843636513, 0.5281679630279541, -0.0881284549832344, 0.28926774859428406, -0.09063411504030228, -0.15738892555236816, -0.6749103665351868, 0.10984169691801071, -0.15334846079349518, -0.1440504789352417, 0.039729438722133636, -0.31300240755081177, 0.026741497218608856, -0.07663986086845398, 0.02714662440121174, 0.5202217698097229, 0.11984008550643921, -0.2506420910358429, -0.2004321813583374, -0.4098309576511383, 0.3709431290626526, 0.14974720776081085, 0.16134081780910492, -0.07273346185684204, 0.4148482084274292, -0.01667354255914688, 0.07864709198474884, 0.27460578083992004, -0.07722773402929306, -0.29015466570854187, 0.2360416054725647, -0.4297748804092407, 0.2515311539173126, -0.27110904455184937, -0.07245787978172302, 0.07364320755004883, 0.304646760225296, -0.08415214717388153, -0.28139057755470276, -0.006545759737491608, 0.21925225853919983, -0.26962143182754517, -0.1493307650089264, 0.03875549137592316, 0.3670337200164795, 0.14189082384109497, 0.0027352720499038696, -0.12455932796001434, -0.18188469111919403, -0.19201862812042236, -0.07501693814992905, -0.16398173570632935, -0.12110326439142227, -0.28941333293914795, 0.40888869762420654, -0.33576154708862305, -0.5149744749069214, -0.3786817193031311, 0.31334179639816284, 0.10887658596038818, -0.19067929685115814, -0.12741629779338837, 0.3311879634857178, -0.15673133730888367, 0.052809957414865494, 0.26025649905204773, 0.4714581370353699, 0.0496160089969635, 0.46612077951431274, -0.2932118773460388, -0.19221822917461395, 0.692730724811554, -0.46490803360939026, 0.26227372884750366, -0.19520163536071777, 0.44344836473464966, 0.1342344880104065, -0.3789176940917969, -0.3714776933193207, 0.021450765430927277, 0.05776127055287361, 0.14206387102603912, -0.03960426151752472, 0.13563965260982513, -0.3098529577255249, -0.11093065142631531, -0.06675434857606888, 0.18208572268486023, 0.16428005695343018, 0.1262945532798767, -0.11238764226436615, -0.030941389501094818 ]
https://github.com/huggingface/datasets/issues/1942
[experiment] missing default_experiment-1-0.arrow
OK, this issue is not about caching but some internal conflict/race condition it seems, I have just run into it on my normal env: ``` Traceback (most recent call last): File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/metric.py", line 356, in _finalize self.data = Dataset(**reader.read_files([{"filename": f} for f in file_paths])) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/arrow_reader.py", line 322, in read_table stream = stream_from(filename) File "pyarrow/io.pxi", line 782, in pyarrow.lib.memory_map File "pyarrow/io.pxi", line 743, in pyarrow.lib.MemoryMappedFile._open File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status FileNotFoundError: [Errno 2] Failed to open local file '/home/stas/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow'. Detail: [errno 2] No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "examples/seq2seq/run_seq2seq.py", line 655, in <module> main() File "examples/seq2seq/run_seq2seq.py", line 619, in main test_results = trainer.predict( File "/mnt/nvme1/code/huggingface/transformers-master/src/transformers/trainer_seq2seq.py", line 121, in predict return super().predict(test_dataset, ignore_keys=ignore_keys, metric_key_prefix=metric_key_prefix) File "/mnt/nvme1/code/huggingface/transformers-master/src/transformers/trainer.py", line 1706, in predict output = self.prediction_loop( File "/mnt/nvme1/code/huggingface/transformers-master/src/transformers/trainer.py", line 1813, in prediction_loop metrics = self.compute_metrics(EvalPrediction(predictions=preds, label_ids=label_ids)) File "examples/seq2seq/run_seq2seq.py", line 556, in compute_metrics result = metric.compute(predictions=decoded_preds, references=decoded_labels) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/metric.py", line 388, in compute self._finalize() File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/metric.py", line 358, in _finalize raise ValueError( ValueError: Error in finalize: another metric instance is already using the local cache file. Please specify an experiment_id to avoid colision between distributed metric instances. ``` I'm just running `run_seq2seq.py` under DeepSpeed: ``` export BS=16; rm -r output_dir; PYTHONPATH=src USE_TF=0 CUDA_VISIBLE_DEVICES=0,1 deepspeed --num_gpus=2 examples/seq2seq/run_seq2seq.py --model_name_or_path t5-small --output_dir output_dir --adam_eps 1e-06 --do_eval --do_train --do_predict --evaluation_strategy=steps --label_smoothing 0.1 --learning_rate 3e-5 --logging_first_step --logging_steps 1000 --max_source_length 128 --max_target_length 128 --num_train_epochs 1 --overwrite_output_dir --per_device_eval_batch_size $BS --per_device_train_batch_size $BS --predict_with_generate --eval_steps 25000 --sortish_sampler --task translation_en_to_ro --val_max_target_length 128 --warmup_steps 500 --max_train_samples 100 --max_val_samples 100 --max_test_samples 100 --dataset_name wmt16 --dataset_config ro-en --source_prefix "translate English to Romanian: " --deepspeed examples/tests/deepspeed/ds_config.json ``` It finished the evaluation OK and crashed on the prediction part of the Trainer. But the eval / predict parts no longer run under Deepspeed, it's just plain ddp. Is this some kind of race condition? It happens intermittently - there is nothing else running at the same time. But if 2 independent instances of the same script were to run at the same time it's clear to see that this problem would happen. Perhaps it'd help to create a unique hash which is shared between all processes in the group and use that as the default experiment id?
the original report was pretty bad and incomplete - my apologies! Please see the complete version here: https://github.com/huggingface/datasets/issues/1942#issuecomment-786336481 ------------ As mentioned here https://github.com/huggingface/datasets/issues/1939 metrics don't get cached, looking at my local `~/.cache/huggingface/metrics` - there are many `*.arrow.lock` files but zero metrics files. w/o the network I get: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow ``` there is just `~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock` I did run the same `run_seq2seq.py` script on the instance with network and it worked just fine, but only the lock file was left behind. this is with master. Thank you.
409
[experiment] missing default_experiment-1-0.arrow the original report was pretty bad and incomplete - my apologies! Please see the complete version here: https://github.com/huggingface/datasets/issues/1942#issuecomment-786336481 ------------ As mentioned here https://github.com/huggingface/datasets/issues/1939 metrics don't get cached, looking at my local `~/.cache/huggingface/metrics` - there are many `*.arrow.lock` files but zero metrics files. w/o the network I get: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow ``` there is just `~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock` I did run the same `run_seq2seq.py` script on the instance with network and it worked just fine, but only the lock file was left behind. this is with master. Thank you. OK, this issue is not about caching but some internal conflict/race condition it seems, I have just run into it on my normal env: ``` Traceback (most recent call last): File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/metric.py", line 356, in _finalize self.data = Dataset(**reader.read_files([{"filename": f} for f in file_paths])) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/arrow_reader.py", line 322, in read_table stream = stream_from(filename) File "pyarrow/io.pxi", line 782, in pyarrow.lib.memory_map File "pyarrow/io.pxi", line 743, in pyarrow.lib.MemoryMappedFile._open File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status FileNotFoundError: [Errno 2] Failed to open local file '/home/stas/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow'. Detail: [errno 2] No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "examples/seq2seq/run_seq2seq.py", line 655, in <module> main() File "examples/seq2seq/run_seq2seq.py", line 619, in main test_results = trainer.predict( File "/mnt/nvme1/code/huggingface/transformers-master/src/transformers/trainer_seq2seq.py", line 121, in predict return super().predict(test_dataset, ignore_keys=ignore_keys, metric_key_prefix=metric_key_prefix) File "/mnt/nvme1/code/huggingface/transformers-master/src/transformers/trainer.py", line 1706, in predict output = self.prediction_loop( File "/mnt/nvme1/code/huggingface/transformers-master/src/transformers/trainer.py", line 1813, in prediction_loop metrics = self.compute_metrics(EvalPrediction(predictions=preds, label_ids=label_ids)) File "examples/seq2seq/run_seq2seq.py", line 556, in compute_metrics result = metric.compute(predictions=decoded_preds, references=decoded_labels) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/metric.py", line 388, in compute self._finalize() File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/metric.py", line 358, in _finalize raise ValueError( ValueError: Error in finalize: another metric instance is already using the local cache file. Please specify an experiment_id to avoid colision between distributed metric instances. ``` I'm just running `run_seq2seq.py` under DeepSpeed: ``` export BS=16; rm -r output_dir; PYTHONPATH=src USE_TF=0 CUDA_VISIBLE_DEVICES=0,1 deepspeed --num_gpus=2 examples/seq2seq/run_seq2seq.py --model_name_or_path t5-small --output_dir output_dir --adam_eps 1e-06 --do_eval --do_train --do_predict --evaluation_strategy=steps --label_smoothing 0.1 --learning_rate 3e-5 --logging_first_step --logging_steps 1000 --max_source_length 128 --max_target_length 128 --num_train_epochs 1 --overwrite_output_dir --per_device_eval_batch_size $BS --per_device_train_batch_size $BS --predict_with_generate --eval_steps 25000 --sortish_sampler --task translation_en_to_ro --val_max_target_length 128 --warmup_steps 500 --max_train_samples 100 --max_val_samples 100 --max_test_samples 100 --dataset_name wmt16 --dataset_config ro-en --source_prefix "translate English to Romanian: " --deepspeed examples/tests/deepspeed/ds_config.json ``` It finished the evaluation OK and crashed on the prediction part of the Trainer. But the eval / predict parts no longer run under Deepspeed, it's just plain ddp. Is this some kind of race condition? It happens intermittently - there is nothing else running at the same time. But if 2 independent instances of the same script were to run at the same time it's clear to see that this problem would happen. Perhaps it'd help to create a unique hash which is shared between all processes in the group and use that as the default experiment id?
[ -0.057690370827913284, -0.002504400908946991, 0.10634593665599823, 0.3295959234237671, -0.07306075096130371, 0.029178239405155182, 0.1474636346101761, 0.2418280690908432, 0.30566704273223877, 0.1599036455154419, 0.20478801429271698, 0.07196041941642761, -0.314839631319046, -0.13784237205982208, -0.010297517292201519, 0.20240560173988342, 0.027013182640075684, 0.0037927404046058655, -0.20881828665733337, -0.17982348799705505, -0.3237951397895813, 0.514402449131012, -0.09275361895561218, -0.03057943284511566, -0.3576316237449646, 0.3367964029312134, -0.1782272607088089, 0.3024884760379791, 0.02060655690729618, -0.6091864705085754, 0.4519519805908203, 0.1594460904598236, 0.12457501888275146, 0.48729652166366577, -0.00013039173791185021, -0.16218408942222595, 0.2800580859184265, -0.1859593242406845, -0.14247851073741913, -0.20112736523151398, -0.09631183743476868, -0.2803776264190674, 0.45109879970550537, -0.23437342047691345, -0.02372741512954235, -0.07733651250600815, 0.17581574618816376, -0.5915821194648743, 0.35426706075668335, 0.11364271491765976, -0.00488300621509552, 0.30830976366996765, -0.11448505520820618, -0.24255657196044922, 0.12170764803886414, -0.04254673421382904, 0.0690075010061264, 0.28452202677726746, -0.08603344857692719, -0.13884742558002472, -0.2688548266887665, 0.27336400747299194, 0.1988227665424347, -0.05408806726336479, 0.4352084994316101, 0.016921808943152428, 0.031384777277708054, -0.04977671802043915, -0.10199276357889175, 0.3329293727874756, 0.17401248216629028, -0.1938290297985077, -0.20873534679412842, 0.03631298243999481, -0.14477354288101196, -0.4275949001312256, 0.2937576472759247, -0.09382613748311996, 0.055749986320734024, 0.11030931770801544, 0.07450926303863525, -0.06911200284957886, 0.019397854804992676, 0.17332789301872253, -0.12241582572460175, 0.12378405034542084, -0.02481963485479355, 0.024881679564714432, -0.0011232756078243256, 0.24605636298656464, -0.16431057453155518, 0.13667945563793182, -0.08911570906639099, 0.20796148478984833, -0.37370380759239197, 0.1329750418663025, 0.17701129615306854, -0.022196024656295776, -0.0012675132602453232, 0.2791178822517395, -0.04042931646108627, 0.024297326803207397, 0.3617473840713501, 0.1396154761314392, -0.011977460235357285, 0.43151864409446716, 0.27999114990234375, 0.14803792536258698, 0.20102158188819885, 0.24547970294952393, -0.09301397204399109, -0.14893889427185059, 0.11774765700101852, -0.21126796305179596, 0.3843245208263397, 0.15628263354301453, -0.0006582848727703094, -0.46611499786376953, 0.06815940141677856, 0.3652070462703705, -0.22674062848091125, -0.1440902054309845, 0.20433366298675537, 0.3926241099834442, 0.19603998959064484, -0.03649836778640747, 0.16313739120960236, 0.2825302481651306, -0.25089168548583984, -0.026849325746297836, -0.4424969553947449, -0.25885531306266785, -0.1373986452817917, 0.22595228254795074, 0.19517794251441956, -0.03269093856215477, 0.5749138593673706, -0.2132205069065094, 0.38010621070861816, -0.07485618442296982, 0.20468488335609436, 0.1003381758928299, 0.04198554530739784, 0.2588789165019989, -0.07756826281547546, 0.24671392142772675, 0.4501027464866638, 0.08531343936920166, -0.2225540578365326, -0.17831048369407654, -0.11476381868124008, -0.540466845035553, 0.18805044889450073, -0.08223555237054825, -0.49327123165130615, 0.27036112546920776, 0.4431525468826294, 0.1586529165506363, 0.05801597237586975, -0.34096235036849976, 0.2449742555618286, -0.08165067434310913, -0.24380886554718018, -0.08234979212284088, 0.4338896572589874, 0.7405847311019897, -0.3019002079963684, -0.39198246598243713, 0.07098518311977386, 0.11033253371715546, -0.08480692654848099, 0.2470315396785736, -0.16768957674503326, -0.05899254232645035, -0.371116042137146, 0.029760614037513733, 0.3290179669857025, -0.490543395280838, -0.6476853489875793, -0.11120731383562088, -0.36375051736831665, -0.09502700716257095, 0.21611151099205017, 0.14017757773399353, 0.023936863988637924, -0.05636754259467125, 0.12309034168720245, -0.1741127371788025, 0.21571050584316254, -0.3362266719341278, -0.2547808885574341, -0.30308467149734497, 0.09217020869255066, 0.01165221631526947, 0.31641799211502075, -0.06923168152570724, -0.0339646115899086, -0.11598748713731766, 0.10476067662239075, 0.12463320791721344, 0.19338303804397583, 0.33141863346099854, 0.2837238907814026, -0.026937775313854218, 0.3410240411758423, 0.21127784252166748, -0.34887513518333435, 0.36415010690689087, -0.5019798278808594, 0.006201483309268951, 0.10066182911396027, 0.010766655206680298, -0.07910249382257462, -0.23619304597377777, -0.14110958576202393, -0.4627402722835541, -0.09807737171649933, -0.1100681722164154, 0.05894285812973976, 0.19021596014499664, -0.1977376788854599, 0.18680904805660248, -0.04702030494809151, 0.2514118552207947, -0.46483591198921204, 0.020166723057627678, -0.08186843246221542, -0.281069278717041, -0.07368553429841995, 0.12053288519382477, 0.0165865421295166, 0.052100639790296555, -0.24555239081382751, 0.35169917345046997, -0.08862273395061493, 0.2942870855331421, 0.2905920743942261, 0.20522549748420715, -0.048378199338912964, -0.4059659540653229, -0.011034058406949043, 0.19695211946964264, -0.10737135261297226, 0.02527233213186264, -0.34561651945114136, 0.4294167160987854, 0.06803224980831146, 0.17402887344360352, -0.37884289026260376, 0.15676529705524445, -0.11762942373752594, -0.16604241728782654, -0.42885899543762207, -0.14519116282463074, 0.5433686971664429, -0.15084263682365417, 0.30004608631134033, -0.05146120488643646, 0.051211483776569366, -0.006401382386684418, 0.21517683565616608, 0.21640144288539886, 0.12463314831256866, 0.09576613456010818, -0.28136584162712097, -0.1090492531657219, 0.08743298798799515, 0.013573598116636276, 0.5847150683403015, 0.19773618876934052, 0.2524624168872833, 0.14710912108421326, 0.0353335365653038, -0.19763672351837158, 0.17178654670715332, -0.03189805895090103, -0.03356769308447838, 0.2177739441394806, 0.2405478060245514, 0.1597718894481659, -0.2981688678264618, -0.12360607087612152, -0.2751499116420746, 0.06643807888031006, -0.36514046788215637, 0.11226757615804672, -0.25601646304130554, 0.3395058214664459, 0.1566375344991684, 0.0014970949850976467, -0.2696927785873413, -0.2396303415298462, 0.17868229746818542, -0.14106342196464539, 0.023425370454788208, 0.251882404088974, -0.410979688167572, 0.4310765862464905, 0.03323683142662048, -0.2168576866388321, -0.2495378702878952, -0.310240775346756, -0.1903645396232605, -0.2834860682487488, -0.11129701137542725, 0.05578162521123886, 0.009171601384878159, -0.05438841134309769, -0.05249672383069992, 0.021218856796622276, -0.3649502396583557, -0.01033182442188263, 0.15065878629684448, 0.6111649870872498, 0.25431525707244873, 0.013904914259910583, -0.368399977684021, 0.05787994712591171, 0.39143383502960205, -0.2630779445171356, -0.3664729595184326, 0.08170942962169647, 0.04314607381820679, 0.22502020001411438, -0.25927987694740295, -0.3096565902233124, 0.02802531234920025, -0.3285585045814514, 0.43633323907852173, -0.032788049429655075, 0.01865813508629799, -0.06976117193698883, -0.07860482484102249, 0.07858739048242569, -0.2438889741897583, 0.1752251386642456, -0.3726034164428711, -0.5516351461410522, 0.3954833745956421, -0.011283611878752708, -0.17378516495227814, -0.12639601528644562, 0.05139996111392975, 0.35834673047065735, 0.07415565848350525, -0.7520509958267212, -0.41068166494369507, 0.05071714520454407, 0.22563499212265015, -0.1302632838487625, -0.06994365900754929, 0.6061967611312866, -0.0339120589196682, 0.06160266697406769, -0.0909518301486969, -0.14842583239078522, 0.6115366816520691, -0.15081340074539185, 0.19001272320747375, -0.0960240587592125, 0.45998507738113403, 0.20750848948955536, 0.9944363832473755, 0.5102086067199707, 0.1887705773115158, 0.27388086915016174, 0.22385327517986298, 0.40913599729537964, -0.09563552588224411, -0.19833359122276306, 0.25622087717056274, 0.24523736536502838, -0.08659161627292633, 0.20475588738918304, 0.03592361882328987, 0.12201282382011414, -0.061391301453113556, -0.06375662237405777, -0.25385159254074097, -0.3101132810115814, -0.013215089216828346, -0.16160498559474945, 0.33009758591651917, 0.061418477445840836, 0.021209396421909332, -0.2757081985473633, -0.062392350286245346, 0.3666170835494995, 0.4859734773635864, 0.17571501433849335, 0.2632332146167755, -0.22516170144081116, 0.004416387528181076, -0.44344431161880493, 0.2522539496421814, -0.3854748010635376, 0.2858225405216217, -0.2330491542816162, -0.18564489483833313, 0.09819533675909042, -0.0833994597196579, 0.671856701374054, 0.1430877447128296, -0.08481000363826752, -0.07815384864807129, -0.07732747495174408, -0.3918808698654175, -0.15821364521980286, 0.049556832760572433, 0.010754691436886787, 0.23822623491287231, 0.4341588616371155, -0.3735695481300354, -0.24266251921653748, -0.08382423967123032, -0.11220971494913101, -0.259992778301239, -0.4525395929813385, -0.28153499960899353, 0.14461448788642883, -0.19288130104541779, 0.1833467185497284, -0.21134038269519806, -0.03745708987116814, 0.06124316155910492, -0.0035393089056015015, -0.21292486786842346, -0.10199124366044998, 0.018237516283988953, -0.03920229524374008, 0.33606770634651184, -0.4024117588996887, 0.2283707857131958, 0.5376231670379639, -0.10640886425971985, 0.03761342912912369, 0.36731046438217163, 0.16633516550064087, -0.18279322981834412, 0.26830145716667175, -0.03400695323944092, 0.21613509953022003, 0.6718826293945312, -0.16463054716587067, 0.13888642191886902, 0.19913043081760406, 0.20806385576725006, -0.13909827172756195, -0.08849789202213287, 0.3013364374637604, -0.11337881535291672, 0.24613235890865326, 0.15485963225364685, 0.23602238297462463, 0.29516157507896423, -0.15966835618019104, 0.417223185300827, -0.011695824563503265, -0.16241905093193054, 0.29467809200286865, 0.039343010634183884, 1.0834736824035645, 0.2922217845916748, 0.3179512917995453, 0.1359241008758545, -0.0182776041328907, 0.381375789642334, 0.09504222869873047, 0.09875496476888657, -0.2544326186180115, -0.31312111020088196, -0.06559847295284271, -0.24730144441127777, -0.03688667714595795, -0.27552568912506104, -0.11368310451507568, 0.4412732422351837, -0.25944453477859497, -0.0031389445066452026, -0.16017912328243256, -0.21668072044849396, -0.29205846786499023, -0.13916537165641785, 0.17138269543647766, -0.06104855611920357, 0.019426632672548294, 0.5495749711990356, -0.1914759874343872, -0.17420534789562225, -0.42806577682495117, -0.27436739206314087, -0.13417619466781616, -0.0437694787979126, -0.35164839029312134, 0.08984308689832687, 0.250008761882782, -0.3409361243247986, -0.10550342500209808, 0.31689006090164185, 0.45654457807540894, 0.1514364629983902, -0.3181402385234833, 0.11403404176235199, 0.2022186517715454, 0.10659728944301605, 0.09550704807043076, -0.11068053543567657, 0.18088394403457642, -0.0044130608439445496, -0.06094357743859291, 0.024947520345449448, -0.28686878085136414, 0.04453594237565994, 0.008090123534202576, -0.12844404578208923, -0.07483325898647308, 0.07101130485534668, -0.11483483016490936, 0.08654375374317169, 0.05672753229737282, -0.2192515879869461, -0.000180879607796669, 0.3327895998954773, -0.14024661481380463, -0.054849885404109955, 0.06330703943967819, -0.34428906440734863, -0.10637851059436798, 0.7176708579063416, -0.08406541496515274, -0.1729818731546402, 0.6388200521469116, -0.01084454357624054, -0.01148846186697483, -0.03300599753856659, 0.06862697750329971, 0.4259324073791504, -0.8050135970115662, -0.021188419312238693, -0.06666259467601776, -0.06683656573295593, 0.1689559817314148, 0.05284743010997772, 0.45291900634765625, -0.16567498445510864, -0.08272753655910492, -0.291969895362854, -0.4071454703807831, 0.2054394632577896, -0.44311442971229553, 0.24856162071228027, -0.3803122639656067, -0.03451472893357277, -0.3471583127975464, 0.17592954635620117, -0.1712401658296585, 0.2049069106578827, -0.1429179459810257, -0.11945895850658417, -0.10731054842472076, -0.0242529958486557, 0.281301885843277, -0.10772961378097534, -0.15907476842403412, 0.05602804198861122, -0.42864564061164856, -0.0027016624808311462, -0.25461268424987793, 0.21965228021144867, -0.08068794757127762, 0.12864738702774048, -0.09285132586956024, 0.0388120636343956, 0.05748888850212097, -0.11338009685277939, -0.08583496510982513, 0.16805604100227356, 0.08278776705265045, 0.03167448565363884, 0.06515520066022873, 0.2205144464969635, -0.10865284502506256, 0.3121113181114197, 0.06998354196548462, -0.22695516049861908, -0.09633631259202957, 0.05979594960808754, -0.37264886498451233, -0.01953238993883133, 0.09808666259050369, 0.07362812757492065, -0.21889226138591766, 0.15409111976623535, 0.11285530030727386, 0.004293560981750488, -0.31126412749290466, 0.022829601541161537, 0.3397361934185028, 0.06015881896018982, -0.1754278987646103, -0.045322805643081665, 0.023644374683499336, 0.018523622304201126, -0.07672424614429474, 0.26516464352607727, 0.10489197075366974, 0.40750041604042053, 0.035332415252923965, 0.2018357217311859, 0.2429068386554718, -0.031900666654109955, 0.1388360559940338, 0.29658859968185425, 0.09316486865282059, -0.2163158506155014, 0.385047048330307, -0.11202143132686615, 0.17037148773670197, 0.33534762263298035, 0.5294111967086792, 0.15330122411251068, 0.3033117949962616, 0.05588936433196068, -0.00290863960981369, 0.10367480665445328, 0.07923972606658936, 0.28304192423820496, -0.27513161301612854, -0.27329444885253906, -0.21052663028240204, 0.18022601306438446, 0.00996420532464981, -0.15934517979621887, -0.26888400316238403, 0.8103467226028442, -0.28670626878738403, -0.14123430848121643, -0.13636961579322815, 0.16488730907440186, -0.11852333694696426, -0.17483170330524445, -0.10902808606624603, -0.17804008722305298, -0.08616465330123901, -0.09196513891220093, 0.18509335815906525, 0.14983722567558289, -0.030898407101631165, 0.20677277445793152, -0.0318872332572937, -0.2017473578453064, -0.34040501713752747, 0.3621705174446106, 0.16245168447494507, -0.15931832790374756, 0.09083476662635803, 0.2921068072319031, -0.31770485639572144, 0.148734450340271, 0.5308631658554077, 0.25463345646858215, 0.019545314833521843, -0.21390315890312195, 0.06724517792463303, 0.40247124433517456, 0.020969154313206673, -0.10704877972602844, 0.1096004918217659, 0.2688012719154358, -0.46912437677383423, -0.009823523461818695, -0.016943631693720818, -0.051917076110839844, 0.39326316118240356, -0.14176876842975616, 0.253966361284256, -0.1621347814798355, 0.35821545124053955, -0.19941163063049316, 0.14810067415237427, 0.16128820180892944, -0.0726240947842598, -0.603597104549408, 0.22337694466114044, -0.026232868432998657, 0.08185511827468872, 0.11336831003427505, -0.14243674278259277, -0.0047134216874837875, -0.08675384521484375, 0.13824626803398132, 0.5117947459220886, -0.013997524976730347, -0.4154545068740845, -0.2745564877986908, -0.6609947681427002, 0.3881940245628357, 0.03339388966560364, 0.31135135889053345, 0.0009760838001966476, 0.280810683965683, -0.022305354475975037, -0.03697172552347183, 0.2481423318386078, 0.07889960706233978, -0.08464203029870987, 0.10826586186885834, -0.49202921986579895, 0.09828061610460281, 0.0012776926159858704, -0.1708381325006485, 0.03414221853017807, 0.21963715553283691, 0.00848076120018959, -0.14359250664710999, -0.07738195359706879, 0.20275959372520447, -0.1723472774028778, -0.03578242287039757, 0.21059739589691162, 0.4661996066570282, 0.05238731950521469, 0.09635597467422485, 0.0934227928519249, -0.1339046061038971, -0.22283202409744263, -0.0566939152777195, -0.08898663520812988, -0.08463627845048904, -0.3063417673110962, 0.4797857701778412, -0.5571390390396118, -0.5037087202072144, -0.31825751066207886, 0.2528633773326874, 0.020079076290130615, -0.260373592376709, -0.2814163267612457, 0.3865292966365814, -0.19274765253067017, 0.12881159782409668, 0.28117960691452026, 0.34349626302719116, 0.12424840778112411, 0.3990010619163513, -0.4151049256324768, -0.15107755362987518, 0.7318447232246399, -0.4763926863670349, 0.3372204303741455, -0.1236954927444458, 0.36267244815826416, 0.42121800780296326, -0.31039029359817505, -0.2815277576446533, -0.0851891040802002, 0.18176643550395966, -0.05120840668678284, -0.15113885700702667, 0.09334835410118103, -0.2861343324184418, 0.03526468202471733, -0.08654198050498962, 0.19080974161624908, 0.24110040068626404, -0.1176285520195961, 0.04485618695616722, -0.09372927248477936 ]
https://github.com/huggingface/datasets/issues/1942
[experiment] missing default_experiment-1-0.arrow
When you're using metrics in a distributed setup, there are two cases: 1. you're doing two completely different experiments (two evaluations) and the 2 metrics jobs have nothing to do with each other 2. you're doing one experiment (one evaluation) but use multiple processes to feed the data to the metric. In case 1. you just need to provide two different `experiment_id` so that the metrics don't collide. In case 2. they must have the same experiment_id (or use the default one), but in this case you also need to provide the `num_processes` and `process_id` If understand correctly you're in situation 2. If so, you make sure that you instantiate the metrics with both the right `num_processes` and `process_id` parameters ? If they're not set, then the cache files of the two metrics collide it can cause issues. For example if one metric finishes before the other, then the cache file is deleted and the other metric gets a FileNotFoundError There's more information in the [documentation](https://huggingface.co/docs/datasets/loading_metrics.html#distributed-setups) if you want Hope that helps !
the original report was pretty bad and incomplete - my apologies! Please see the complete version here: https://github.com/huggingface/datasets/issues/1942#issuecomment-786336481 ------------ As mentioned here https://github.com/huggingface/datasets/issues/1939 metrics don't get cached, looking at my local `~/.cache/huggingface/metrics` - there are many `*.arrow.lock` files but zero metrics files. w/o the network I get: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow ``` there is just `~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock` I did run the same `run_seq2seq.py` script on the instance with network and it worked just fine, but only the lock file was left behind. this is with master. Thank you.
173
[experiment] missing default_experiment-1-0.arrow the original report was pretty bad and incomplete - my apologies! Please see the complete version here: https://github.com/huggingface/datasets/issues/1942#issuecomment-786336481 ------------ As mentioned here https://github.com/huggingface/datasets/issues/1939 metrics don't get cached, looking at my local `~/.cache/huggingface/metrics` - there are many `*.arrow.lock` files but zero metrics files. w/o the network I get: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow ``` there is just `~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock` I did run the same `run_seq2seq.py` script on the instance with network and it worked just fine, but only the lock file was left behind. this is with master. Thank you. When you're using metrics in a distributed setup, there are two cases: 1. you're doing two completely different experiments (two evaluations) and the 2 metrics jobs have nothing to do with each other 2. you're doing one experiment (one evaluation) but use multiple processes to feed the data to the metric. In case 1. you just need to provide two different `experiment_id` so that the metrics don't collide. In case 2. they must have the same experiment_id (or use the default one), but in this case you also need to provide the `num_processes` and `process_id` If understand correctly you're in situation 2. If so, you make sure that you instantiate the metrics with both the right `num_processes` and `process_id` parameters ? If they're not set, then the cache files of the two metrics collide it can cause issues. For example if one metric finishes before the other, then the cache file is deleted and the other metric gets a FileNotFoundError There's more information in the [documentation](https://huggingface.co/docs/datasets/loading_metrics.html#distributed-setups) if you want Hope that helps !
[ -0.05989842861890793, 0.006815329194068909, 0.08448459208011627, 0.15806108713150024, 0.019941719248890877, -0.03207625448703766, 0.27743402123451233, 0.22076472640037537, 0.3088781237602234, 0.1602412909269333, 0.01775214821100235, 0.10314204543828964, -0.22572408616542816, -0.02061185985803604, -0.05923865735530853, -0.031060077250003815, -0.04353063553571701, -0.0667763352394104, -0.3691171705722809, -0.13251128792762756, -0.3067212402820587, 0.5019859075546265, -0.08011829107999802, 0.0445253811776638, -0.48079714179039, 0.12781377136707306, -0.17561087012290955, 0.22257426381111145, -0.07892502099275589, -0.5587318539619446, 0.3777545094490051, 0.18311861157417297, 0.042127080261707306, 0.6000635623931885, -0.00011763843212975189, -0.1433921754360199, 0.19272997975349426, -0.1245240643620491, -0.08328135311603546, -0.19301731884479523, 0.07417426258325577, -0.3329314589500427, 0.45112770795822144, -0.2442205250263214, 0.03449329733848572, -0.05119825527071953, 0.024772420525550842, -0.3721562623977661, 0.42741429805755615, -0.006434519775211811, 0.13074472546577454, 0.311767041683197, -0.06822673231363297, -0.32152682542800903, -0.09998471289873123, -0.11435183882713318, 0.07761618494987488, 0.4171808958053589, -0.1312241554260254, 0.08946245908737183, -0.27423280477523804, 0.12457658350467682, 0.2123536467552185, 0.02922777831554413, 0.23880445957183838, 0.02460698038339615, -0.014272190630435944, -0.12567132711410522, -0.06856024265289307, 0.2887810170650482, 0.16767853498458862, -0.15942680835723877, -0.2014686018228531, 0.00853186845779419, -0.22894269227981567, -0.4411573112010956, 0.17140614986419678, -0.1245805025100708, 0.07466988265514374, 0.10321506857872009, -0.07622773200273514, -0.15498222410678864, -0.023204423487186432, 0.11750396341085434, -0.14562362432479858, 0.03243709355592728, -0.16971315443515778, 0.12125898897647858, -0.027921538800001144, 0.14975020289421082, -0.3855254054069519, 0.3516911268234253, -0.019425656646490097, 0.07147452980279922, -0.3793979287147522, 0.13648003339767456, 0.2671208381652832, 0.021704059094190598, 0.10650525242090225, 0.47610270977020264, -0.0047421762719750404, -0.013204909861087799, 0.3891662061214447, 0.17371658980846405, -0.06449867784976959, 0.5233267545700073, 0.2027725875377655, 0.06928596645593643, 0.21850375831127167, 0.21794173121452332, -0.1748858541250229, -0.34130725264549255, 0.2836267650127411, -0.38609644770622253, 0.33155766129493713, 0.18427908420562744, 0.09303466975688934, -0.486887663602829, 0.05852450430393219, 0.18447032570838928, -0.036366336047649384, -0.15779146552085876, 0.08758235722780228, 0.31535178422927856, 0.1501626819372177, 0.013548310846090317, 0.24008916318416595, 0.3981119990348816, -0.21206822991371155, 0.07808208465576172, -0.38808852434158325, -0.16349710524082184, -0.14410802721977234, 0.42935439944267273, 0.05171171948313713, -0.11057005822658539, 0.6856903433799744, -0.16227160394191742, 0.4642174243927002, -0.061395466327667236, 0.1908002346754074, 0.17559491097927094, 0.018838249146938324, 0.2674923539161682, 0.07191671431064606, 0.17589285969734192, 0.26691776514053345, 0.10486207902431488, -0.21200710535049438, -0.3701927065849304, -0.1887376606464386, -0.5549448132514954, 0.12638293206691742, 0.032152704894542694, -0.4145853519439697, 0.28303033113479614, 0.34312885999679565, 0.2120162695646286, -0.079425148665905, -0.23370549082756042, 0.1338791400194168, 0.05116431415081024, -0.08587305247783661, -0.1279808133840561, 0.49152883887290955, 0.7377232313156128, -0.22204583883285522, -0.3446712791919708, 0.016837168484926224, -0.04871267452836037, -0.08647213131189346, 0.3050108253955841, -0.09263637661933899, 0.22849661111831665, -0.27726873755455017, 0.12220941483974457, 0.35158318281173706, -0.42343857884407043, -0.4113770127296448, 0.008003138937056065, -0.4272922873497009, -0.13344009220600128, 0.10837356746196747, -0.07301727682352066, 0.25813138484954834, 0.13084711134433746, 0.05481162667274475, -0.12674829363822937, 0.15680372714996338, -0.28367555141448975, -0.3865196108818054, -0.18580329418182373, -0.004548203200101852, -0.10147807002067566, 0.30069205164909363, 0.056321900337934494, 0.09863591939210892, 0.08756781369447708, 0.0597030371427536, 0.1062120646238327, 0.2606072425842285, 0.2477433681488037, 0.22620825469493866, 0.000353984534740448, 0.28990718722343445, 0.11020074039697647, -0.18673142790794373, 0.2562481164932251, -0.3439134657382965, 0.12107355147600174, 0.16839829087257385, -0.015525704249739647, -0.20007121562957764, -0.2549753487110138, -0.1508951634168625, -0.42153236269950867, 0.04729188233613968, -0.07096967101097107, 0.31661513447761536, 0.1520332247018814, -0.14380206167697906, 0.09164909273386002, 0.15834012627601624, 0.1830410212278366, -0.4161330759525299, 0.07703875005245209, -0.07259401679039001, -0.3368437588214874, -0.014753317460417747, 0.0729847401380539, 0.0808982104063034, 0.04206514731049538, -0.18173852562904358, 0.47764530777931213, -0.25744739174842834, 0.2789970338344574, 0.3836802542209625, 0.1822807788848877, -0.0755048543214798, -0.3026513159275055, 0.058899372816085815, 0.048324987292289734, -0.016624225303530693, 0.001170627772808075, -0.1728830337524414, 0.35913705825805664, 0.0592462494969368, 0.0952930748462677, -0.30971354246139526, 0.30311301350593567, -0.04610609635710716, -0.14659467339515686, -0.49512383341789246, -0.11909686028957367, 0.3968290388584137, -0.3081520199775696, 0.20474669337272644, -0.15202893316745758, 0.057107239961624146, 0.03199279308319092, 0.14167580008506775, 0.1343100666999817, 0.12654918432235718, -0.006165344268083572, -0.1617847979068756, -0.010020656511187553, -0.007223038002848625, -0.13965415954589844, 0.5526068210601807, 0.19334112107753754, 0.21274113655090332, 0.12102322280406952, 0.039482731372117996, -0.20319265127182007, 0.000954851508140564, 0.0007294118404388428, -0.14631815254688263, 0.15544700622558594, 0.22296558320522308, 0.1337159425020218, -0.23365232348442078, -0.07722736150026321, -0.3163039982318878, 0.0065661463886499405, -0.37557610869407654, 0.07499849051237106, -0.15500140190124512, 0.41083651781082153, 0.05994020774960518, 0.05435153469443321, -0.22622299194335938, -0.26067054271698, 0.20925073325634003, -0.11759668588638306, -0.0695597231388092, 0.31378161907196045, -0.1835402399301529, 0.5583071112632751, 0.017308780923485756, -0.020220281556248665, -0.22462515532970428, -0.21120110154151917, -0.085468590259552, -0.14835746586322784, -0.18977056443691254, 0.23230533301830292, 0.1300978809595108, -0.16648320853710175, 0.058579035103321075, -0.0695100873708725, -0.3264138102531433, 0.03771476447582245, 0.0303657129406929, 0.6761788725852966, 0.23479385673999786, 0.00015237927436828613, -0.25184810161590576, 0.028368186205625534, 0.48688703775405884, -0.41402003169059753, -0.2675402760505676, 0.05917227268218994, 0.019523806869983673, 0.05641855299472809, -0.29590359330177307, -0.3545246124267578, 0.07041431963443756, -0.3689337372779846, 0.5647739768028259, 0.0072407834231853485, -0.06879293918609619, -0.2838420271873474, -0.0883292555809021, 0.10345175862312317, -0.23740428686141968, 0.2703516185283661, -0.3315574526786804, -0.7032840847969055, 0.3768460750579834, -0.3030436933040619, -0.2822323143482208, -0.0451202355325222, 0.07856879383325577, 0.4289892613887787, -0.0625871866941452, -0.5393748879432678, -0.489591121673584, 0.05353548005223274, 0.18953591585159302, -0.010535798966884613, 0.14936959743499756, 0.5207622051239014, -0.1010601669549942, -0.018907591700553894, -0.07834792882204056, -0.23185940086841583, 0.6520731449127197, -0.08721693605184555, 0.14586566388607025, -0.10064146667718887, 0.41672399640083313, 0.09718574583530426, 0.8765512704849243, 0.5474230647087097, 0.29637056589126587, 0.2949182391166687, 0.12115111202001572, 0.338168203830719, -0.02625226229429245, -0.19077740609645844, 0.48846742510795593, 0.23404088616371155, -0.14467765390872955, 0.21662414073944092, 0.12316455692052841, 0.1313866227865219, -0.17349372804164886, -0.09267345070838928, -0.3810844421386719, -0.3277294337749481, -0.10553081333637238, -0.11764378845691681, 0.25859129428863525, -0.02236155793070793, -0.04345644265413284, -0.22743554413318634, 0.06315606832504272, 0.42332637310028076, 0.3457273840904236, 0.2006039172410965, 0.2726466953754425, -0.17815159261226654, 0.019641168415546417, -0.53556227684021, 0.33460134267807007, -0.4541783928871155, 0.04898935183882713, -0.22200950980186462, -0.24327322840690613, 0.10356266051530838, 0.04796627163887024, 0.5427538156509399, 0.046946365386247635, -0.18992456793785095, -0.055761486291885376, -0.23729927837848663, -0.4443701207637787, -0.12406478822231293, -0.04723559319972992, -0.06269080191850662, 0.24705740809440613, 0.3423607349395752, -0.5057769417762756, -0.14389795064926147, -0.12558197975158691, -0.10048214346170425, -0.3064892590045929, -0.39338770508766174, -0.3682079017162323, -0.07409647852182388, -0.2561749517917633, 0.12169279903173447, -0.23809978365898132, 0.035732585936784744, -0.02014358900487423, 0.04387371614575386, -0.1827234923839569, -0.007439948618412018, -0.026102662086486816, 0.19013431668281555, 0.31497904658317566, -0.3515063226222992, 0.25792911648750305, 0.5438991785049438, -0.02355215698480606, 0.05577049404382706, 0.40568989515304565, 0.049100592732429504, -0.008169569075107574, 0.26345956325531006, -0.07097098231315613, 0.28711998462677, 0.568028450012207, -0.2031903862953186, 0.019850939512252808, -0.044408783316612244, 0.41167861223220825, -0.14134199917316437, -0.15649251639842987, 0.2634868323802948, -0.13031190633773804, 0.3417813777923584, 0.20451991260051727, 0.09889250248670578, 0.26888877153396606, -0.17538274824619293, 0.21536611020565033, -0.10175678133964539, -0.13415473699569702, 0.3826420307159424, 0.01642581820487976, 0.9436207413673401, 0.20540963113307953, 0.05922893434762955, 0.1934206485748291, 0.17715123295783997, 0.3641622066497803, 0.08761949837207794, 0.03288823366165161, -0.20555582642555237, -0.22370532155036926, 0.02788509987294674, -0.12023043632507324, -0.05012117326259613, -0.22362978756427765, -0.25450456142425537, 0.4385683536529541, -0.2676759958267212, -0.23769327998161316, -0.34518754482269287, -0.1525629162788391, -0.21593232452869415, -0.20823995769023895, 0.03475700691342354, 0.07563867419958115, 0.05423464626073837, 0.5348837971687317, -0.21383708715438843, -0.18934983015060425, -0.3338543772697449, -0.30824726819992065, -0.07149942964315414, -0.08730357885360718, -0.10677684843540192, 0.0069391801953315735, 0.33443567156791687, -0.05964605510234833, -0.23838312923908234, 0.20953185856342316, 0.45983296632766724, 0.06256790459156036, -0.27897244691848755, -0.06978723406791687, 0.06561842560768127, 0.0188154149800539, 0.08107127994298935, -0.07243386656045914, 0.2408839762210846, -0.10246121138334274, -0.15152712166309357, 0.09434884786605835, -0.146015927195549, 0.08191148936748505, 0.07762961089611053, -0.1399119645357132, -0.14923149347305298, -0.08963581174612045, 0.05087674409151077, 0.14140614867210388, 0.0980151891708374, -0.20400646328926086, 0.10019972920417786, 0.26667049527168274, -0.19223536550998688, 0.13768967986106873, 0.18949492275714874, -0.21311120688915253, -0.1155996024608612, 0.5188008546829224, -0.27887746691703796, -0.04397322237491608, 0.30372774600982666, -0.022610077634453773, -0.055131345987319946, -0.06289994716644287, 0.0001369565725326538, 0.4646104574203491, -0.8037577867507935, 0.04567624628543854, 0.02201518788933754, 0.03382132947444916, 0.0662965327501297, 0.23312778770923615, 0.4397282004356384, -0.11970438808202744, -0.05981913208961487, -0.24635179340839386, -0.33757901191711426, 0.3076074719429016, -0.3285468816757202, 0.10883351415395737, -0.3543596565723419, 0.13916000723838806, -0.15071745216846466, 0.352865606546402, -0.3035137355327606, 0.08823738247156143, -0.2990912199020386, -0.09926894307136536, -0.044594503939151764, -0.06505219638347626, 0.25023677945137024, 0.02246839553117752, -0.07759436964988708, 0.09114158153533936, -0.3674951493740082, -0.10122282803058624, -0.2215258628129959, 0.14032256603240967, -0.05274648219347, 0.03716098517179489, -0.0516505241394043, 0.17350494861602783, -0.0011846739798784256, -0.16975732147693634, 0.09346756339073181, 0.21704378724098206, -0.003754228353500366, 0.05088416859507561, 0.14056655764579773, 0.047380492091178894, -0.1137002557516098, 0.21659992635250092, 0.1527906209230423, -0.26439130306243896, -0.17148934304714203, 0.08901574462652206, -0.3603462278842926, -0.09570016711950302, 0.24474352598190308, 0.07721966505050659, -0.1432611644268036, 0.20820051431655884, 0.04767538234591484, 0.016524262726306915, -0.25062769651412964, 0.00971500389277935, 0.46691685914993286, 0.12866371870040894, -0.13918761909008026, 0.09588640928268433, 0.004033399745821953, 0.11729379743337631, -0.04840650036931038, 0.3132457137107849, 0.03634960949420929, 0.3366868197917938, 0.06856165826320648, 0.27578461170196533, 0.23710492253303528, -0.10689707100391388, 0.10153518617153168, 0.2575311064720154, 0.03567105904221535, -0.16512395441532135, 0.22850961983203888, -0.13121019303798676, 0.0824567973613739, 0.37281322479248047, 0.6446866989135742, 0.12423411011695862, 0.2143920511007309, -0.10202307999134064, -0.07545358687639236, 0.20859059691429138, -0.1400797963142395, 0.3282516598701477, -0.15825334191322327, -0.12048906087875366, -0.12516902387142181, -0.06510168313980103, 0.001158110797405243, -0.2720165252685547, -0.3687114715576172, 0.6771075129508972, -0.32417625188827515, -0.3469701409339905, -0.17905011773109436, 0.33765602111816406, -0.145614892244339, -0.10695834457874298, -0.21527940034866333, -0.1884308010339737, -0.1496010422706604, -0.10879947245121002, 0.24066132307052612, 0.04457922652363777, 0.2287878394126892, 0.05629436671733856, 0.016416989266872406, -0.2694603502750397, -0.4721542000770569, 0.23575356602668762, 0.15945619344711304, -0.10116800665855408, 0.05342452973127365, 0.23438742756843567, -0.35955220460891724, 0.1360556036233902, 0.7672565579414368, 0.25827592611312866, 0.07559535652399063, -0.08454287052154541, 0.023377399891614914, 0.267013281583786, 0.047937847673892975, -0.10871811956167221, 0.13797932863235474, 0.18534314632415771, -0.4984890818595886, 0.08553168177604675, 0.1060677319765091, -0.17251935601234436, 0.3995271623134613, -0.3463374078273773, 0.33045461773872375, -0.193365216255188, 0.4167952537536621, -0.19883880019187927, 0.2309960424900055, 0.029863135889172554, -0.22292980551719666, -0.7316349744796753, 0.3039989173412323, -0.11737345159053802, -0.0747343897819519, 0.11654949933290482, -0.38063713908195496, 0.047700315713882446, -0.027140051126480103, 0.18965934216976166, 0.3733304440975189, 0.04949392378330231, -0.3342292010784149, -0.2568192481994629, -0.5867598056793213, 0.32307469844818115, 0.10149632394313812, 0.3235935866832733, -0.08981607854366302, 0.35706332325935364, -0.09747616201639175, 0.13768364489078522, 0.1949169933795929, 0.1135396808385849, -0.1029617041349411, 0.07128821313381195, -0.4963088035583496, 0.15931986272335052, -0.11074262857437134, -0.14666691422462463, 0.15993176400661469, 0.28453683853149414, -0.04832005873322487, -0.20167768001556396, 0.02703685313463211, 0.26729875802993774, -0.12202008813619614, -0.11078456044197083, 0.15358677506446838, 0.3878782093524933, 0.2212015688419342, 0.11393518000841141, 0.003638956695795059, 0.019244255498051643, -0.24250397086143494, -0.13573335111141205, -0.11997926235198975, -0.106279157102108, -0.287524551153183, 0.3848077356815338, -0.37116459012031555, -0.3915485441684723, -0.3861633241176605, 0.21487239003181458, 0.07461190968751907, -0.10546024143695831, -0.11295776814222336, 0.30174341797828674, -0.09596242010593414, -0.05756087601184845, 0.2854052484035492, 0.3148619532585144, 0.0014856606721878052, 0.44341185688972473, -0.24270612001419067, -0.15968123078346252, 0.7152583599090576, -0.45974549651145935, 0.26418861746788025, -0.2539713978767395, 0.39371272921562195, 0.3925573229789734, -0.41729289293289185, -0.3282015919685364, 0.0121975839138031, 0.06051940470933914, 0.07990884780883789, -0.16107040643692017, 0.09203726053237915, -0.3906296491622925, -0.1147465854883194, -0.03146440535783768, 0.13992950320243835, 0.22367039322853088, -0.05575300380587578, 0.09574858844280243, -0.0571785643696785 ]
https://github.com/huggingface/datasets/issues/1942
[experiment] missing default_experiment-1-0.arrow
Thank you for explaining that in a great way, @lhoestq So the bottom line is that the `transformers` examples are broken since they don't do any of that. At least `run_seq2seq.py` just does `metric = load_metric(metric_name)` What test would you recommend to reliably reproduce this bug in `examples/seq2seq/run_seq2seq.py`?
the original report was pretty bad and incomplete - my apologies! Please see the complete version here: https://github.com/huggingface/datasets/issues/1942#issuecomment-786336481 ------------ As mentioned here https://github.com/huggingface/datasets/issues/1939 metrics don't get cached, looking at my local `~/.cache/huggingface/metrics` - there are many `*.arrow.lock` files but zero metrics files. w/o the network I get: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow ``` there is just `~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock` I did run the same `run_seq2seq.py` script on the instance with network and it worked just fine, but only the lock file was left behind. this is with master. Thank you.
48
[experiment] missing default_experiment-1-0.arrow the original report was pretty bad and incomplete - my apologies! Please see the complete version here: https://github.com/huggingface/datasets/issues/1942#issuecomment-786336481 ------------ As mentioned here https://github.com/huggingface/datasets/issues/1939 metrics don't get cached, looking at my local `~/.cache/huggingface/metrics` - there are many `*.arrow.lock` files but zero metrics files. w/o the network I get: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow ``` there is just `~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock` I did run the same `run_seq2seq.py` script on the instance with network and it worked just fine, but only the lock file was left behind. this is with master. Thank you. Thank you for explaining that in a great way, @lhoestq So the bottom line is that the `transformers` examples are broken since they don't do any of that. At least `run_seq2seq.py` just does `metric = load_metric(metric_name)` What test would you recommend to reliably reproduce this bug in `examples/seq2seq/run_seq2seq.py`?
[ 0.07509317994117737, -0.15114615857601166, 0.1568087786436081, 0.1809435784816742, -0.06451196223497391, -0.012127526104450226, 0.3743318021297455, 0.20745402574539185, 0.20335905253887177, 0.06371456384658813, 0.2323807328939438, 0.10928766429424286, -0.3682081699371338, -0.24630284309387207, 0.11910411715507507, -0.159807026386261, 0.06180047616362572, 0.0787234902381897, -0.3983020484447479, -0.14598533511161804, -0.22886207699775696, 0.5977004170417786, -0.21410620212554932, 0.04350375756621361, -0.5726749897003174, 0.27855798602104187, -0.22460731863975525, 0.18137523531913757, 0.10398203879594803, -0.5100973844528198, 0.49140089750289917, 0.10753031075000763, -0.03930898755788803, 0.6184601187705994, -0.00013106068945489824, -0.11597815155982971, 0.29059407114982605, -0.2518158257007599, -0.14543165266513824, -0.22694741189479828, -0.15841174125671387, -0.24612146615982056, 0.449108749628067, -0.20539450645446777, 0.0618131160736084, 0.05420733988285065, 0.12603791058063507, -0.1677699089050293, 0.48231661319732666, 0.036727868020534515, 0.02787744626402855, 0.48978331685066223, -0.16251204907894135, -0.34335535764694214, 0.0686694011092186, 0.14564543962478638, 0.005533134564757347, 0.2566854953765869, -0.0682886391878128, 0.011801175773143768, -0.2210909128189087, 0.23914140462875366, 0.2916741669178009, -0.02315603569149971, 0.24044889211654663, 0.003299141302704811, -0.02927115559577942, -0.0683814212679863, -0.13758939504623413, 0.3957456350326538, 0.24701979756355286, -0.15065142512321472, -0.3314959406852722, -0.010518323630094528, -0.37077686190605164, -0.19389377534389496, 0.3266066610813141, -0.17778711020946503, 0.07345163822174072, 0.11119501292705536, -0.08824168145656586, -0.11937803030014038, -0.013347961008548737, 0.06756330281496048, -0.24272821843624115, 0.07755007594823837, -0.08891671150922775, 0.020289994776248932, -0.08267401158809662, 0.057507969439029694, -0.22459854185581207, 0.25356626510620117, -0.03927553817629814, 0.1483733206987381, -0.30130892992019653, -0.007587473839521408, 0.15687696635723114, -0.09263598173856735, 0.03770555555820465, 0.3995670676231384, -0.019704271107912064, 0.13379791378974915, 0.3218587636947632, 0.14553478360176086, -0.08838243782520294, 0.5639245510101318, 0.24731704592704773, 0.1956646740436554, 0.14236140251159668, 0.2767654061317444, -0.07690112292766571, -0.22305887937545776, 0.1054568886756897, -0.1692459136247635, 0.3477958142757416, 0.06489011645317078, 0.09193765372037888, -0.4264972507953644, 0.1201479509472847, 0.24310217797756195, -0.0429425910115242, -0.1472577452659607, 0.14781324565410614, 0.4604140520095825, 0.19812895357608795, 0.07615251839160919, 0.17813009023666382, 0.3603518009185791, -0.10254980623722076, -0.060458600521087646, -0.3435693085193634, -0.175209179520607, -0.21131131052970886, 0.251589298248291, 0.23300288617610931, 0.12464360892772675, 0.6372714638710022, -0.24656730890274048, 0.36109453439712524, -0.11160942167043686, 0.30677682161331177, 0.28521350026130676, 0.15778033435344696, 0.4128853380680084, -0.1351291537284851, 0.24740402400493622, 0.33347442746162415, 0.0782879889011383, -0.2614815831184387, -0.1910323202610016, -0.10880079120397568, -0.49934542179107666, 0.20958681404590607, -0.05937613174319267, -0.6320043206214905, 0.20999781787395477, 0.3444986939430237, 0.12523485720157623, -0.08801192790269852, -0.290630042552948, 0.1899120956659317, 0.011303918436169624, 0.01943207159638405, 0.03636445477604866, 0.5021129250526428, 0.8084052205085754, -0.10712806135416031, -0.5354681611061096, -0.04042849317193031, 0.0006153583526611328, -0.05039491504430771, 0.17234432697296143, -0.02163824252784252, 0.15581277012825012, -0.28204771876335144, 0.027024738490581512, 0.3047228753566742, -0.3449210226535797, -0.3754408359527588, -0.0424836203455925, -0.2123761773109436, -0.013092700392007828, 0.1726594865322113, -0.09928838908672333, 0.15960079431533813, 0.06541580706834793, 0.03900301083922386, -0.15748541057109833, 0.17844943702220917, -0.14771556854248047, -0.2838844358921051, -0.3624430000782013, 0.020967351272702217, -0.007438134402036667, 0.39626452326774597, 0.14877206087112427, -0.04207675904035568, 0.24712593853473663, -0.014090590178966522, 0.15469510853290558, 0.12083069235086441, 0.25467610359191895, 0.15316569805145264, -0.2394437938928604, 0.33018994331359863, -0.004053447395563126, -0.3316989243030548, 0.31379860639572144, -0.4128645956516266, -0.0016719810664653778, 0.17176130414009094, 0.02993171662092209, -0.3266587257385254, -0.1333889216184616, -0.05592385306954384, -0.40573403239250183, -0.06406134366989136, -0.06816774606704712, 0.11898931860923767, 0.09567920863628387, -0.13760092854499817, 0.03421419486403465, 0.293838769197464, 0.24619485437870026, -0.4998990297317505, 0.0841350108385086, 0.014414852485060692, -0.21281053125858307, -0.22560594975948334, 0.013892762362957, -0.01105816662311554, -0.15888620913028717, -0.20331019163131714, 0.36908650398254395, -0.06673489511013031, 0.37174034118652344, 0.2778244614601135, 0.32185348868370056, 0.011787107214331627, -0.476517915725708, -0.05978398025035858, 0.2749160826206207, -0.053750116378068924, -0.016848012804985046, -0.45650216937065125, 0.34297263622283936, 0.10993890464305878, 0.05747196078300476, -0.27579808235168457, 0.3847724199295044, -0.03670107200741768, -0.23474626243114471, -0.5471624135971069, -0.11552822589874268, 0.4180021584033966, -0.25952962040901184, 0.255479633808136, -0.10646411776542664, 0.11434856057167053, -0.2071106731891632, 0.13665775954723358, -0.03929382562637329, 0.2872008979320526, 0.15246255695819855, -0.35541725158691406, -0.06192855164408684, 0.03350706398487091, -0.08042216300964355, 0.36919349431991577, 0.07038810849189758, 0.2867377698421478, -0.03143733739852905, 0.08586545288562775, -0.15339788794517517, 0.16861015558242798, 0.13088060915470123, -0.11889439821243286, 0.12363655865192413, 0.21236002445220947, 0.17441953718662262, -0.2839009165763855, -0.1667080968618393, -0.2365744560956955, 0.0640982985496521, -0.3988458812236786, 0.14909595251083374, -0.011422853916883469, 0.5295215249061584, 0.043504443019628525, -0.06045191362500191, -0.22441652417182922, -0.29066163301467896, 0.15718695521354675, -0.22090598940849304, -0.05365888029336929, 0.3262695074081421, -0.22274479269981384, 0.6643279194831848, 0.05257666856050491, -0.18655717372894287, -0.405966192483902, -0.0892624482512474, -0.11268239468336105, -0.19451278448104858, -0.26272693276405334, 0.07344581931829453, -0.12263722717761993, -0.19257164001464844, 0.08054812252521515, 0.10650476813316345, -0.48349258303642273, 0.18507219851016998, 0.2666207551956177, 0.6751847267150879, 0.3146785497665405, -0.02355753630399704, -0.1379270851612091, -0.014027888886630535, 0.3056756258010864, -0.4094470143318176, -0.2437087595462799, 0.3083648681640625, -0.029944149777293205, 0.15790778398513794, -0.2975553572177887, -0.2534157633781433, 0.1630840003490448, -0.25940656661987305, 0.5369824171066284, 0.03579220548272133, -0.03900284320116043, 0.04867717996239662, -0.04824872314929962, 0.1972014158964157, -0.22784174978733063, 0.24163401126861572, -0.09709195792675018, -0.49558544158935547, 0.49389973282814026, -0.08997729420661926, -0.23254995048046112, -0.23300112783908844, -0.25960391759872437, 0.2908658981323242, -0.049991849809885025, -0.4904942512512207, -0.2846313416957855, -0.1554356962442398, 0.10770094394683838, 0.05142831429839134, 0.04687788709998131, 0.5173736810684204, -0.07400888204574585, 0.08142825216054916, -0.1966250240802765, -0.10543432831764221, 0.482923686504364, -0.04034550487995148, 0.20724624395370483, -0.1482866406440735, 0.2523772120475769, 0.14570124447345734, 0.96831214427948, 0.40216249227523804, 0.21088367700576782, 0.1378670036792755, 0.12127372622489929, 0.2691397964954376, -0.03276523947715759, -0.161285400390625, 0.129047691822052, 0.1736794263124466, -0.23896802961826324, 0.1625218391418457, 0.1619473695755005, 0.05240461230278015, -0.017053507268428802, 0.04805983230471611, -0.33722567558288574, -0.3736344277858734, 0.02589319460093975, -0.2867443263530731, 0.2674737572669983, 0.008465584367513657, 0.12985241413116455, -0.21059733629226685, 0.04961920902132988, 0.3940187990665436, 0.3825775384902954, 0.21303850412368774, 0.10412716865539551, -0.15156108140945435, 0.11649005860090256, -0.4340960383415222, 0.11251188814640045, -0.4435679018497467, 0.29588672518730164, -0.14935994148254395, -0.34726348519325256, -0.02036205679178238, -0.07412023097276688, 0.7864426970481873, 0.12946726381778717, -0.012183889746665955, -0.005625986494123936, -0.18053095042705536, -0.5279903411865234, -0.17448757588863373, -0.2424483448266983, -0.06217969208955765, 0.32862091064453125, 0.4173186719417572, -0.34657230973243713, -0.09144219011068344, -0.0846179872751236, -0.11574893444776535, -0.25759419798851013, -0.1866007298231125, -0.33079883456230164, 0.09782809764146805, -0.17914924025535583, 0.10577396303415298, -0.1725378781557083, -0.1363511085510254, 0.003687912365421653, 0.10239298641681671, -0.1907086968421936, -0.08074087649583817, 0.07903479039669037, 0.3291589021682739, 0.3670138120651245, -0.42624232172966003, 0.2056540846824646, 0.5175893902778625, -0.3233247697353363, -0.13747888803482056, 0.30226966738700867, 0.1475372016429901, -0.10709628462791443, 0.4146629869937897, -0.050233855843544006, 0.1603401154279709, 0.5822033286094666, -0.20521530508995056, -0.015706844627857208, 0.08577709645032883, 0.3517511487007141, -0.12128274887800217, -0.05983145534992218, 0.2842308580875397, -0.10135427117347717, 0.2932527959346771, 0.27801093459129333, 0.41151678562164307, 0.20147527754306793, -0.2698432207107544, 0.28488343954086304, 0.020325690507888794, -0.1558416485786438, 0.5100285410881042, 0.03914317488670349, 1.0379647016525269, 0.15480943024158478, 0.20151500403881073, 0.13039936125278473, 0.16488727927207947, 0.4351429343223572, 0.12036126852035522, 0.04379699006676674, -0.26238054037094116, -0.3548334240913391, -0.018111906945705414, -0.2812708914279938, -0.0030666664242744446, -0.14458537101745605, -0.43784862756729126, 0.3533288836479187, -0.3426383137702942, 0.017809247598052025, -0.0403171181678772, -0.2422982156276703, -0.2960456609725952, -0.12017542123794556, 0.15419666469097137, -0.04566611349582672, 0.19803783297538757, 0.6490923762321472, -0.2589024305343628, -0.15680992603302002, -0.348670095205307, -0.41286158561706543, -0.29852837324142456, 0.044599056243896484, -0.07115641236305237, -0.008400293067097664, 0.5609112977981567, -0.08843658119440079, -0.05020961910486221, 0.2643803060054779, 0.40292805433273315, 0.14585091173648834, -0.4677393138408661, 0.14154724776744843, -0.0590566024184227, 0.16393770277500153, 0.17632277309894562, 0.03024090826511383, 0.19745400547981262, 0.015992887318134308, -0.08116040378808975, 0.03174451366066933, -0.2748936414718628, 0.16124312579631805, 0.0895964652299881, -0.13408471643924713, -0.2504490613937378, -0.08253636956214905, 0.03576933965086937, 0.13382244110107422, -0.08205236494541168, -0.21473844349384308, 0.02696981653571129, 0.24677029252052307, -0.2292545735836029, 0.037117552012205124, 0.15162552893161774, -0.2628641128540039, -0.05792698636651039, 0.4928114414215088, -0.36252713203430176, -0.0921284630894661, 0.3880806863307953, -0.014597825706005096, 0.09549346566200256, -0.0928230881690979, 0.10406973212957382, 0.42692726850509644, -0.9760485291481018, 0.1369958370923996, -0.3507162630558014, -0.18698599934577942, 0.06632116436958313, 0.22578006982803345, 0.6225937008857727, -0.18982955813407898, -0.13349108397960663, -0.19522294402122498, -0.37366974353790283, 0.3917950391769409, -0.13902057707309723, 0.19005310535430908, -0.5208065509796143, -0.040097229182720184, -0.09099023789167404, 0.2423180341720581, -0.1821933388710022, 0.22314943373203278, -0.29558372497558594, -0.06025458127260208, -0.1686761975288391, -0.09566017240285873, 0.32599031925201416, -0.1957745999097824, -0.1448487788438797, -0.0011052340269088745, -0.3109070360660553, -0.04240519180893898, -0.39046695828437805, 0.1731739640235901, -0.06930690258741379, 0.02031904086470604, -0.11179779469966888, 0.43310678005218506, 0.04260742664337158, -0.22536949813365936, 0.04217604920268059, 0.0808044970035553, 0.02574053406715393, 0.29687997698783875, 0.16805174946784973, 0.07123053818941116, -0.281744122505188, 0.0882965624332428, 0.1818268746137619, -0.18841291964054108, 0.002574195619672537, 0.13772007822990417, -0.34462493658065796, -0.06451130658388138, 0.07769070565700531, 0.25679314136505127, -0.19012011587619781, 0.04431091248989105, 0.199637770652771, -0.03540535271167755, -0.11887569725513458, -0.05542319267988205, 0.33051517605781555, 0.13670825958251953, -0.159391388297081, 0.09502389281988144, -0.0886043980717659, 0.05682983249425888, -0.08027791976928711, 0.1048179641366005, 0.0006985794752836227, 0.32187849283218384, 0.08538104593753815, 0.3245586156845093, 0.16363497078418732, -0.1622794270515442, 0.3574331998825073, 0.19288361072540283, 0.19373418390750885, -0.13737869262695312, 0.38207730650901794, 0.02337256446480751, -0.026982512325048447, 0.44783034920692444, 0.45154204964637756, -0.07037918269634247, 0.27989158034324646, -0.140274778008461, 0.07535392791032791, 0.22445537149906158, -0.2527284622192383, 0.30907493829727173, -0.07722189277410507, -0.1782066524028778, -0.11375734210014343, 0.01770247519016266, 0.08196407556533813, 0.014957915991544724, -0.2574416399002075, 0.5996484160423279, -0.36095041036605835, -0.13592378795146942, -0.30584827065467834, 0.0015192516148090363, 0.010986873880028725, -0.2694581151008606, -0.010167030617594719, -0.14578139781951904, -0.21940413117408752, -0.23214377462863922, 0.22233717143535614, 0.08491858094930649, 0.09279128909111023, 0.08691685646772385, 0.028184570372104645, -0.18001152575016022, -0.29463616013526917, 0.3112854063510895, 0.2292449176311493, -0.2502250671386719, 0.11920816451311111, 0.29378747940063477, -0.3188093900680542, 0.08033732324838638, 0.6347107291221619, 0.2948593199253082, -0.08840765058994293, -0.07611505687236786, 0.126560240983963, 0.18493548035621643, -0.010921191424131393, -0.09745770692825317, 0.23898807168006897, 0.17331671714782715, -0.3825121521949768, -0.04702658951282501, 0.034970544278621674, -0.11802802979946136, 0.3365173935890198, -0.21789829432964325, 0.17583942413330078, -0.27504390478134155, 0.5571628212928772, -0.22427478432655334, 0.04476158320903778, 0.12009935081005096, -0.11573002487421036, -0.6041263937950134, 0.2573815882205963, -0.13058099150657654, -0.025320010259747505, 0.1239655390381813, -0.04696379974484444, -0.017199350520968437, 0.029321514070034027, 0.2097136527299881, 0.43235844373703003, 0.2327563464641571, -0.2703854739665985, -0.23391583561897278, -0.5324945449829102, 0.26023051142692566, 0.12554258108139038, 0.39363694190979004, 0.2322482317686081, 0.22968518733978271, -0.015097640454769135, -0.03098452091217041, 0.10890699177980423, -0.006485264748334885, -0.19063220918178558, 0.05767960473895073, -0.4498603641986847, 0.09067238867282867, -0.060877829790115356, -0.042184457182884216, 0.033684276044368744, 0.09127671271562576, -0.01975005492568016, -0.08728760480880737, -0.08687733113765717, 0.16563500463962555, -0.2633642852306366, -0.05352747440338135, 0.14471577107906342, 0.33679434657096863, 0.16156767308712006, 0.070088230073452, 0.018232043832540512, -0.16339732706546783, -0.24702435731887817, -0.1918809562921524, 0.04154456779360771, -0.2905653417110443, -0.3666415810585022, 0.42133402824401855, -0.29266834259033203, -0.382487416267395, -0.3238881826400757, 0.10427583754062653, 0.18089139461517334, -0.10405291616916656, -0.39373403787612915, 0.3160442113876343, -0.272499144077301, 0.04339463636279106, 0.28259754180908203, 0.39504843950271606, -0.1257581263780594, 0.372269868850708, -0.24134796857833862, -0.03466135263442993, 0.6833053231239319, -0.5341153740882874, 0.19984614849090576, -0.33637887239456177, 0.3415122628211975, 0.26911965012550354, -0.33904317021369934, -0.33273038268089294, -0.15270091593265533, 0.15269890427589417, -0.0082969069480896, -0.14181379973888397, 0.06647294014692307, -0.14625175297260284, -0.07866712659597397, -0.08019272983074188, 0.4183966815471649, 0.1686914563179016, -0.0924176275730133, -0.02718472294509411, -0.10105060786008835 ]
https://github.com/huggingface/datasets/issues/1942
[experiment] missing default_experiment-1-0.arrow
To give more context, we are just using the metrics for the `comput_metric` function and nothing else. Is there something else we can use that just applies the function to the full arrays of predictions and labels? Because that's all we need, all the gathering has already been done because the datasets Metric multiprocessing relies on file storage and thus does not work in a multi-node distributed setup (whereas the Trainer does). Otherwise, we'll have to switch to something else to compute the metrics :-(
the original report was pretty bad and incomplete - my apologies! Please see the complete version here: https://github.com/huggingface/datasets/issues/1942#issuecomment-786336481 ------------ As mentioned here https://github.com/huggingface/datasets/issues/1939 metrics don't get cached, looking at my local `~/.cache/huggingface/metrics` - there are many `*.arrow.lock` files but zero metrics files. w/o the network I get: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow ``` there is just `~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock` I did run the same `run_seq2seq.py` script on the instance with network and it worked just fine, but only the lock file was left behind. this is with master. Thank you.
85
[experiment] missing default_experiment-1-0.arrow the original report was pretty bad and incomplete - my apologies! Please see the complete version here: https://github.com/huggingface/datasets/issues/1942#issuecomment-786336481 ------------ As mentioned here https://github.com/huggingface/datasets/issues/1939 metrics don't get cached, looking at my local `~/.cache/huggingface/metrics` - there are many `*.arrow.lock` files but zero metrics files. w/o the network I get: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow ``` there is just `~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock` I did run the same `run_seq2seq.py` script on the instance with network and it worked just fine, but only the lock file was left behind. this is with master. Thank you. To give more context, we are just using the metrics for the `comput_metric` function and nothing else. Is there something else we can use that just applies the function to the full arrays of predictions and labels? Because that's all we need, all the gathering has already been done because the datasets Metric multiprocessing relies on file storage and thus does not work in a multi-node distributed setup (whereas the Trainer does). Otherwise, we'll have to switch to something else to compute the metrics :-(
[ 0.03606859967112541, 0.03790441155433655, 0.09435887634754181, 0.1253586709499359, 0.17602410912513733, 0.05072322487831116, 0.18199381232261658, 0.2530152499675751, 0.2025463730096817, 0.2519215941429138, 0.0820864662528038, 0.18000119924545288, -0.3751121759414673, 0.06659044325351715, 0.1416405737400055, -0.07729071378707886, 0.016733549535274506, 0.0033792033791542053, -0.3133101761341095, -0.1381397247314453, -0.20796146988868713, 0.44817936420440674, -0.12280181795358658, 0.07436420023441315, -0.5695958733558655, 0.14984755218029022, -0.17011640965938568, 0.08054685592651367, -0.12551072239875793, -0.581290602684021, 0.3919237554073334, 0.14580930769443512, 0.0017238873988389969, 0.41912445425987244, -0.00012620292545761913, -0.1343243420124054, 0.19364531338214874, -0.2333318144083023, -0.10474152863025665, -0.222505584359169, 0.1268719732761383, -0.31011587381362915, 0.5224653482437134, -0.14608238637447357, -0.049546003341674805, -0.08384845405817032, 0.05436636507511139, -0.42143628001213074, 0.47816282510757446, 0.11839479953050613, 0.040326960384845734, 0.37585628032684326, 0.034930650144815445, -0.24925540387630463, -0.017679475247859955, -0.07745441794395447, 0.010245667770504951, 0.3299076557159424, -0.051730677485466, -0.029779352247714996, -0.2794109284877777, 0.24368418753147125, 0.2794156074523926, -0.008851319551467896, 0.3128015697002411, -0.02977854758501053, -0.014522992074489594, -0.17379435896873474, -0.13124707341194153, 0.2608574628829956, 0.19493064284324646, -0.20897594094276428, -0.3556877672672272, -0.013294253498315811, -0.041142623871564865, -0.5314995646476746, 0.16829445958137512, -0.10754209756851196, -0.03361532837152481, 0.047492947429418564, -0.13163335621356964, -0.16725511848926544, -0.07197761535644531, 0.08746491372585297, -0.17601823806762695, 0.03989863768219948, -0.14210699498653412, 0.018771152943372726, 0.09591396152973175, 0.27162644267082214, -0.20973312854766846, 0.41070738434791565, 0.1014254242181778, 0.14637391269207, -0.36061617732048035, 0.08255644142627716, 0.17219620943069458, -0.02823813259601593, 0.05026288330554962, 0.3950387239456177, 0.056090131402015686, 0.10177350789308548, 0.37559014558792114, 0.060263630002737045, -0.04597875103354454, 0.4311767518520355, 0.2344251275062561, 0.13575655221939087, 0.11606614291667938, 0.22244007885456085, -0.13671354949474335, -0.2810339033603668, 0.18331541121006012, -0.14497795701026917, 0.3832838833332062, 0.2245604693889618, -0.13696670532226562, -0.3769400417804718, 0.06372896581888199, 0.2464856058359146, -0.04369727522134781, -0.2041589319705963, 0.19650164246559143, 0.27508172392845154, 0.13415904343128204, 0.1387406438589096, 0.1868603378534317, 0.3029894232749939, -0.1722475290298462, -0.1656980961561203, -0.39892399311065674, -0.07464471459388733, -0.2094954252243042, 0.39977845549583435, 0.18941523134708405, -0.041199758648872375, 0.661647617816925, -0.3590565025806427, 0.5086172223091125, -0.21404056251049042, 0.1602293998003006, 0.1458079218864441, 0.09742728620767593, 0.28981813788414, -0.021446146070957184, 0.09919708967208862, 0.3203158974647522, 0.058386534452438354, -0.1933312565088272, -0.3334265649318695, -0.23355871438980103, -0.5762787461280823, 0.11607396602630615, -0.05523937568068504, -0.5121431350708008, 0.22408336400985718, 0.16487851738929749, 0.308999240398407, -0.1530393362045288, -0.13488620519638062, 0.1365174502134323, -0.036200039088726044, -0.17783735692501068, -0.018177473917603493, 0.6248612999916077, 0.5545915365219116, -0.3065956234931946, -0.4664388597011566, 0.10928081721067429, -0.010735142976045609, -0.1018490269780159, 0.1589731127023697, -0.060335591435432434, 0.3344115912914276, -0.18207281827926636, 0.0870407223701477, 0.45444655418395996, -0.4080089032649994, -0.4083964228630066, -0.2533528208732605, -0.22930651903152466, -0.14331050217151642, 0.08849496394395828, -0.03393479809165001, 0.12664958834648132, 0.2276444137096405, 0.07505839318037033, -0.21009549498558044, 0.14281074702739716, -0.3406260907649994, -0.2292553335428238, -0.2566603124141693, -0.08600320667028427, 0.016519922763109207, 0.469523161649704, -0.0004948601126670837, -0.050211600959300995, 0.0669921413064003, 0.05529232323169708, 0.027339473366737366, 0.2316121757030487, 0.22747382521629333, 0.18491977453231812, -0.0041500478982925415, 0.18678823113441467, -0.050486430525779724, -0.2215748429298401, 0.30264008045196533, -0.29301750659942627, 0.0360223688185215, 0.17140725255012512, -0.0174640491604805, -0.11598972976207733, -0.09481479972600937, -0.07913526892662048, -0.3731915354728699, -0.03578829765319824, -0.08789439499378204, 0.23291084170341492, 0.1419440507888794, -0.229781374335289, 0.12307039648294449, -0.046222344040870667, 0.2593333423137665, -0.32417023181915283, 0.15975622832775116, -0.060949698090553284, -0.32103121280670166, -0.004019852727651596, 0.21213191747665405, -0.10067661851644516, 0.04240534454584122, -0.19413980841636658, 0.3698190450668335, -0.1435660421848297, 0.17639581859111786, 0.3263867497444153, 0.19481422007083893, -0.09464164823293686, -0.46809110045433044, -0.18683817982673645, 0.02265819162130356, -0.07801879942417145, -0.042572714388370514, -0.19150814414024353, 0.42115867137908936, 0.11666083335876465, 0.16901782155036926, -0.2548602521419525, 0.35264554619789124, -0.13584697246551514, -0.04654689133167267, -0.5137108564376831, -0.11196909099817276, 0.34000080823898315, -0.42222389578819275, 0.301104873418808, -0.1835050880908966, -0.025069061666727066, -0.05429897457361221, 0.2423657923936844, 0.10839156806468964, 0.12556719779968262, 0.10390174388885498, -0.2200976312160492, -0.07086315751075745, -0.02158503048121929, -0.19329430162906647, 0.43666356801986694, 0.19654513895511627, 0.2774858772754669, 0.0860510841012001, 0.09428319334983826, -0.12305286526679993, 0.07706444710493088, 0.12158424407243729, -0.09862871468067169, 0.07372641563415527, 0.19425471127033234, 0.14874428510665894, -0.3226959705352783, -0.007475594058632851, -0.3011009991168976, 0.019534099847078323, -0.3337208926677704, 0.0596703439950943, -0.2368713766336441, 0.3630674183368683, 0.1683841049671173, -0.00219081062823534, -0.23335495591163635, -0.2706063389778137, 0.21536272764205933, -0.1962653547525406, -0.022189196199178696, 0.3150246739387512, -0.29846498370170593, 0.6049126982688904, 0.06154577434062958, -0.022624677047133446, -0.22797632217407227, -0.14951418340206146, -0.03681262582540512, -0.17800694704055786, -0.1940801441669464, 0.09684957563877106, 0.03748459368944168, -0.14994220435619354, 0.14265725016593933, -0.1025383248925209, -0.36010318994522095, 0.09334076941013336, 0.019536571577191353, 0.6119930148124695, 0.3463466167449951, -0.04540635645389557, -0.3527432084083557, 0.09915774315595627, 0.4500063359737396, -0.40799805521965027, -0.27670297026634216, 0.11333006620407104, 0.03144453465938568, 0.12270340323448181, -0.22309058904647827, -0.28906121850013733, 0.0112664345651865, -0.28152522444725037, 0.5991317629814148, 0.04106614366173744, -0.002070430666208267, -0.22884228825569153, -0.023793376982212067, 0.17732813954353333, -0.32900601625442505, 0.24691016972064972, -0.293586790561676, -0.7149351835250854, 0.47813883423805237, -0.09089147299528122, -0.2723420560359955, -0.10587067902088165, 0.06753146648406982, 0.43476903438568115, -0.06537520885467529, -0.6561143398284912, -0.44378742575645447, 0.09039786458015442, 0.0918387770652771, -0.04257740080356598, 0.15827693045139313, 0.5028117895126343, -0.0640254020690918, 0.007704565301537514, -0.10601899772882462, -0.29261112213134766, 0.5380763411521912, -0.1749769151210785, 0.1555451899766922, -0.22708895802497864, 0.2927686870098114, 0.2596624493598938, 0.9461429119110107, 0.5229725241661072, 0.1494288444519043, 0.23710347712039948, 0.10947716981172562, 0.4445641338825226, -0.06998597830533981, -0.14951370656490326, 0.3707885146141052, 0.11294832825660706, -0.016250932589173317, 0.2179197371006012, 0.0888909325003624, 0.14270886778831482, -0.1463133692741394, 0.06346149742603302, -0.22147142887115479, -0.33026254177093506, -0.023503398522734642, -0.13923867046833038, 0.19613948464393616, 0.010511800646781921, 0.11610134690999985, -0.2785867750644684, -0.016078706830739975, 0.3919549286365509, 0.20685836672782898, 0.18290115892887115, 0.27927666902542114, -0.2079497128725052, -0.14122582972049713, -0.5621311068534851, 0.24529993534088135, -0.3804306387901306, 0.04530952125787735, -0.10286343097686768, -0.20989450812339783, 0.11841394007205963, 0.043268438428640366, 0.4675576686859131, 0.02698315493762493, -0.24991129338741302, 0.044178690761327744, -0.14633846282958984, -0.3195349872112274, -0.1433727741241455, -0.09260641038417816, -0.03627007454633713, 0.22369012236595154, 0.3636891543865204, -0.3087710440158844, -0.23445530235767365, -0.026469282805919647, -0.07689671218395233, -0.26224586367607117, -0.23041902482509613, -0.33261746168136597, 0.018139682710170746, -0.10066422075033188, 0.23805755376815796, -0.20818519592285156, 0.02906849794089794, 0.05816003680229187, 0.028124410659074783, -0.14813587069511414, -0.030829614028334618, 0.06674787402153015, 0.14221572875976562, 0.25053244829177856, -0.2525005042552948, 0.18543383479118347, 0.5488836765289307, -0.04898395389318466, 0.04827485978603363, 0.3769327998161316, -0.007541008293628693, -0.07657991349697113, 0.297293484210968, -0.11364594846963882, 0.4294686019420624, 0.5456286668777466, -0.2386382520198822, -0.02883942425251007, 0.015082220546901226, 0.3863059878349304, -0.18875782191753387, 0.04191424325108528, 0.3080280125141144, -0.07010619342327118, 0.3514491319656372, 0.20135000348091125, 0.2649253308773041, 0.3189355134963989, -0.13597290217876434, 0.3833770751953125, 0.14527574181556702, -0.16847270727157593, 0.24440772831439972, 0.14068907499313354, 0.9382531642913818, 0.07552512735128403, 0.18952396512031555, 0.1168169230222702, 0.16130085289478302, 0.5568839311599731, 0.0864994078874588, 0.09113945066928864, -0.03367087244987488, -0.3376886546611786, -0.029873479157686234, -0.1386372596025467, -0.056579358875751495, -0.24171467125415802, -0.18628212809562683, 0.48729684948921204, -0.20205852389335632, -0.1370246708393097, -0.183181032538414, -0.1983543336391449, -0.0345442071557045, -0.25342971086502075, 0.10109753161668777, -0.027763672173023224, -0.00010706856846809387, 0.4575577676296234, -0.19772908091545105, -0.11395025998353958, -0.2750442624092102, -0.313776433467865, -0.23209087550640106, -0.06863842159509659, -0.329961895942688, -0.0637362077832222, 0.38905125856399536, -0.07426327466964722, -0.06913159787654877, 0.29708394408226013, 0.46299177408218384, 0.08397999405860901, -0.34563878178596497, 0.02333066798746586, 0.0002669990062713623, 0.06646410375833511, 0.07841171324253082, 0.007358376868069172, 0.32162177562713623, -0.06627464294433594, 0.010205008089542389, 0.06473098695278168, -0.23473259806632996, 0.08673325181007385, 0.12230566143989563, -0.15850096940994263, -0.025776073336601257, -0.01642490178346634, 0.12628737092018127, 0.09883669018745422, 0.030555609613656998, -0.3260999321937561, 0.04128706082701683, 0.2831498384475708, -0.22109249234199524, 0.15189313888549805, 0.19605500996112823, -0.21916407346725464, -0.044074591249227524, 0.5630207657814026, -0.21194538474082947, -0.15109184384346008, 0.4201505184173584, -0.015550721436738968, -0.024256471544504166, -0.08764438331127167, -0.04019773751497269, 0.5411638021469116, -0.6515186429023743, 0.09484565258026123, -0.07887738943099976, -0.06764519959688187, 0.02418578416109085, 0.21469959616661072, 0.44760632514953613, -0.16356661915779114, -0.035784509032964706, -0.16672758758068085, -0.4597926437854767, 0.3591095805168152, -0.29165133833885193, 0.14361095428466797, -0.48450446128845215, 0.21597059071063995, -0.10502184182405472, 0.3118297755718231, -0.2253035306930542, 0.1461494415998459, -0.31804531812667847, -0.1291922628879547, -0.09332919120788574, 0.011047516018152237, 0.28157222270965576, -0.08909901976585388, -0.1196710541844368, 0.05860810726881027, -0.3794821798801422, -0.05099077522754669, -0.23840031027793884, 0.1548077017068863, -0.06309590488672256, 0.17628318071365356, 0.07749854028224945, 0.2939431071281433, -0.1219547688961029, -0.20281539857387543, -0.07568724453449249, 0.15943357348442078, 0.09393192827701569, 0.15155339241027832, 0.04644592106342316, 0.16613949835300446, -0.07031116634607315, 0.09642623364925385, 0.2369103729724884, -0.1221289187669754, -0.168543741106987, 0.07124515622854233, -0.227263405919075, -0.10836612433195114, 0.1468651294708252, 0.08594415336847305, -0.23127980530261993, 0.16140678524971008, 0.11704244464635849, 0.01574283093214035, -0.32601815462112427, -0.04473584145307541, 0.457122802734375, 0.15185865759849548, -0.17275665700435638, 0.10716795921325684, -0.04832861199975014, 0.041955456137657166, -0.17856042087078094, 0.22043843567371368, 0.030861660838127136, 0.3870631158351898, 0.07500101625919342, 0.241439551115036, 0.241366446018219, -0.09067849814891815, 0.1284104436635971, 0.14797934889793396, -0.1151854544878006, -0.1851314753293991, 0.3271122872829437, -0.08665919303894043, 0.12723208963871002, 0.297247052192688, 0.580282986164093, 0.15297621488571167, 0.18360859155654907, 0.02634768933057785, -0.14655816555023193, 0.20865152776241302, -0.13885405659675598, 0.28440213203430176, -0.2059946358203888, -0.09266352653503418, -0.24104009568691254, 0.05775870382785797, 0.05927414074540138, -0.16373226046562195, -0.555777907371521, 0.8412664532661438, -0.2907387912273407, -0.3601020276546478, -0.18301430344581604, 0.19282865524291992, -0.0918847844004631, -0.14441393315792084, -0.13947919011116028, -0.14713719487190247, -0.19955980777740479, -0.15213832259178162, 0.24228212237358093, -0.022782102227211, 0.24971233308315277, 0.04565146565437317, 0.02989373728632927, -0.23452602326869965, -0.5137045383453369, 0.2872683107852936, 0.26455986499786377, -0.1797739565372467, 0.12786483764648438, 0.16443954408168793, -0.36473801732063293, 0.10350984334945679, 0.7005336284637451, 0.2391313910484314, -0.05774082988500595, -0.1001671850681305, 0.045619044452905655, 0.2528730034828186, -0.041071563959121704, -0.06987866759300232, 0.1960648149251938, 0.3556525707244873, -0.5932102799415588, 0.1043865829706192, -0.0007092338055372238, -0.09658585488796234, 0.40262359380722046, -0.2877335846424103, 0.37890464067459106, -0.2412763237953186, 0.4647477865219116, -0.11825615167617798, 0.04425527900457382, 0.03363596647977829, -0.17678385972976685, -0.6990649700164795, 0.37907007336616516, -0.06003429368138313, 0.005106148310005665, 0.07439064979553223, -0.25776344537734985, 0.013113714754581451, -0.03433903306722641, 0.2901058495044708, 0.42056646943092346, 0.06091304123401642, -0.2994614541530609, -0.26469433307647705, -0.5396565198898315, 0.19276288151741028, 0.14145219326019287, 0.3431106507778168, -0.003989740274846554, 0.3530117869377136, 0.030912186950445175, 0.0716792643070221, 0.23825892806053162, -0.019661979749798775, -0.0600883811712265, -0.027956753969192505, -0.6378631591796875, 0.12464931607246399, -0.13509118556976318, 0.0022305063903331757, 0.17868217825889587, 0.3266237676143646, 0.016625862568616867, -0.22678238153457642, -0.08308819681406021, 0.3012853264808655, -0.08869067579507828, -0.13837216794490814, 0.3098233640193939, 0.42410409450531006, 0.06092217564582825, 0.18108949065208435, 0.08599548786878586, -0.015858514234423637, -0.18674705922603607, -0.10264308005571365, -0.09077154099941254, -0.08473630994558334, -0.27944812178611755, 0.4343644976615906, -0.4776817858219147, -0.31709039211273193, -0.3601943552494049, 0.07088550180196762, 0.15064696967601776, -0.10979697108268738, -0.3143198788166046, 0.356870174407959, -0.11463147401809692, 0.050809502601623535, 0.3609864413738251, 0.36765944957733154, -0.0981447845697403, 0.3505346477031708, -0.37644487619400024, -0.17784829437732697, 0.7721180319786072, -0.48453062772750854, 0.2451474517583847, -0.3426681160926819, 0.33371275663375854, 0.6285016536712646, -0.29598620533943176, -0.5779023170471191, -0.010188847780227661, 0.16678906977176666, 0.056202199310064316, -0.30474451184272766, 0.15436920523643494, -0.47894302010536194, 0.01776818558573723, -0.06751750409603119, 0.34590113162994385, 0.11383139342069626, -0.029607588425278664, -0.0420086495578289, -0.18314695358276367 ]