html_url
stringlengths
51
51
comments
stringlengths
67
24.7k
title
stringlengths
6
280
body
stringlengths
51
36.2k
comment_length
int64
16
1.45k
text
stringlengths
190
38.3k
embeddings
list
https://github.com/huggingface/datasets/issues/6193
Before dynamically loading `.py` scripts with `importlib.import_module`, we also parse their contents to check imports, which is tricky to implement for binary `.pyc` files (requires parsing bytecode), so I don't think this is something we want to support (unless more users request it ofc) as this use case is a bit too...
Dataset loading script method does not work with .pyc file
### Describe the bug The huggingface dataset library specifically looks for ‘.py’ file while loading the dataset using loading script approach and it does not work with ‘.pyc’ file. While deploying in production, it becomes an issue when we are restricted to use only .pyc files. Is there any work around for this ? #...
59
Dataset loading script method does not work with .pyc file ### Describe the bug The huggingface dataset library specifically looks for ‘.py’ file while loading the dataset using loading script approach and it does not work with ‘.pyc’ file. While deploying in production, it becomes an issue when we are restricted t...
[ 0.13531814515590668, -0.09920451790094376, 0.06262601912021637, 0.16297568380832672, 0.23983454704284668, -0.05380284786224365, 0.5892165303230286, 0.12035053968429565, 0.27410340309143066, -0.08429333567619324, 0.09421023726463318, 0.2265389859676361, -0.1250716894865036, 0.55803918838500...
https://github.com/huggingface/datasets/issues/6193
> Before dynamically loading .py scripts with importlib.import_module, we also parse their contents to check imports, which is tricky to implement for binary .pyc files (requires parsing bytecode), so I don't think this is something we want to support (unless more users request it ofc) as this use case is a bit too spe...
Dataset loading script method does not work with .pyc file
### Describe the bug The huggingface dataset library specifically looks for ‘.py’ file while loading the dataset using loading script approach and it does not work with ‘.pyc’ file. While deploying in production, it becomes an issue when we are restricted to use only .pyc files. Is there any work around for this ? #...
76
Dataset loading script method does not work with .pyc file ### Describe the bug The huggingface dataset library specifically looks for ‘.py’ file while loading the dataset using loading script approach and it does not work with ‘.pyc’ file. While deploying in production, it becomes an issue when we are restricted t...
[ 0.07976479828357697, -0.07390309870243073, 0.06754831969738007, 0.1540306955575943, 0.24028274416923523, -0.057877153158187866, 0.5375259518623352, 0.13719815015792847, 0.2799835801124573, -0.08522695302963257, 0.0898377075791359, 0.2465868443250656, -0.141922265291214, 0.5773558616638184,...
https://github.com/huggingface/datasets/issues/6193
Hi @lhoestq , Could you share some example code related to the approach that you are suggesting?
Dataset loading script method does not work with .pyc file
### Describe the bug The huggingface dataset library specifically looks for ‘.py’ file while loading the dataset using loading script approach and it does not work with ‘.pyc’ file. While deploying in production, it becomes an issue when we are restricted to use only .pyc files. Is there any work around for this ? #...
17
Dataset loading script method does not work with .pyc file ### Describe the bug The huggingface dataset library specifically looks for ‘.py’ file while loading the dataset using loading script approach and it does not work with ‘.pyc’ file. While deploying in production, it becomes an issue when we are restricted t...
[ 0.10208326578140259, -0.17134933173656464, 0.05191474407911301, 0.20252318680286407, 0.17857559025287628, -0.06164531037211418, 0.5064952969551086, 0.12081895768642426, 0.2920161485671997, -0.028900787234306335, 0.08277806639671326, 0.24290403723716736, -0.10555271059274673, 0.584836602210...
https://github.com/huggingface/datasets/issues/6188
I think this error means you filter all examples within an (input) batch by deleting its columns. In that case, to avoid the error, you can set the column value to an empty list (`input_batch["col"] = []`) instead.
[Feature Request] Check the length of batch before writing so that empty batch is allowed
### Use Case I use `dataset.map(process_fn, batched=True)` to process the dataset, with data **augmentations or filtering**. However, when all examples within a batch is filtered out, i.e. **an empty batch is returned**, the following error will be thrown: ``` ValueError: Schema and number of arrays unequal `...
38
[Feature Request] Check the length of batch before writing so that empty batch is allowed ### Use Case I use `dataset.map(process_fn, batched=True)` to process the dataset, with data **augmentations or filtering**. However, when all examples within a batch is filtered out, i.e. **an empty batch is returned**, the fo...
[ -0.39054322242736816, -0.11447738856077194, -0.12671449780464172, 0.06956255435943604, 0.11723816394805908, -0.039604365825653076, 0.3428269922733307, 0.17094162106513977, 0.3144310414791107, 0.3454689681529999, 0.27377739548683167, 0.036286361515522, -0.1861603856086731, 0.379296392202377...
https://github.com/huggingface/datasets/issues/6187
Hi! You can load this dataset with: ```python data_files = { "train": "/content/PUBHEALTH/train.tsv", "validation": "/content/PUBHEALTH/dev.tsv", "test": "/content/PUBHEALTH/test.tsv", } tsv_datasets_reloaded = load_dataset("csv", data_files=data_files, sep="\t") ``` To support your `load_datas...
Couldn't find a dataset script at /content/tsv/tsv.py or any data file in the same directory
### Describe the bug ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) [<ipython-input-48-6a7b3e847019>](https://localhost:8080/#) in <cell line: 7>() 5 } 6 ----> 7 csv_datasets_reloaded = load_...
59
Couldn't find a dataset script at /content/tsv/tsv.py or any data file in the same directory ### Describe the bug ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) [<ipython-input-48-6a7b3e847019>](https://lo...
[ -0.32915186882019043, -0.3512330651283264, -0.09159648418426514, 0.17967186868190765, 0.4230286478996277, 0.04754011332988739, 0.4763997197151184, 0.493308961391449, 0.18158341944217682, 0.12043030560016632, 0.05047222971916199, 0.2881438434123993, -0.20857086777687073, 0.1487320363521576,...
https://github.com/huggingface/datasets/issues/6186
That'd be a great idea! @mariosasko or @lhoestq, would it be possible to fix the code snippet or do you have another suggested way for doing this?
Feature request: add code example of multi-GPU processing
### Feature request Would be great to add a code example of how to do multi-GPU processing with 🤗 Datasets in the documentation. cc @stevhliu Currently the docs has a small [section](https://huggingface.co/docs/datasets/v2.3.2/en/process#map) on this saying "your big GPU call goes here", however it didn't work f...
27
Feature request: add code example of multi-GPU processing ### Feature request Would be great to add a code example of how to do multi-GPU processing with 🤗 Datasets in the documentation. cc @stevhliu Currently the docs has a small [section](https://huggingface.co/docs/datasets/v2.3.2/en/process#map) on this sa...
[ -0.13726481795310974, -0.43240639567375183, -0.001979593187570572, 0.09065330773591995, -0.10275635123252869, 0.048385635018348694, 0.39975813031196594, 0.003309808671474457, 0.1566070318222046, 0.22367125749588013, 0.1868710219860077, 0.23762893676757812, 0.19287052750587463, 0.5128408074...
https://github.com/huggingface/datasets/issues/6186
Indeed `if __name__ == "__main__"` is important in this case. Not sure about the imbalanced GPU usage though, but maybe you can try using the `torch.cuda.device` context manager ? > also, should I do it like this or use nn.DataParallel? In this case you wouldn't need a multiprocessed map no ? Since nn.DataPara...
Feature request: add code example of multi-GPU processing
### Feature request Would be great to add a code example of how to do multi-GPU processing with 🤗 Datasets in the documentation. cc @stevhliu Currently the docs has a small [section](https://huggingface.co/docs/datasets/v2.3.2/en/process#map) on this saying "your big GPU call goes here", however it didn't work f...
58
Feature request: add code example of multi-GPU processing ### Feature request Would be great to add a code example of how to do multi-GPU processing with 🤗 Datasets in the documentation. cc @stevhliu Currently the docs has a small [section](https://huggingface.co/docs/datasets/v2.3.2/en/process#map) on this sa...
[ -0.13726481795310974, -0.43240639567375183, -0.001979593187570572, 0.09065330773591995, -0.10275635123252869, 0.048385635018348694, 0.39975813031196594, 0.003309808671474457, 0.1566070318222046, 0.22367125749588013, 0.1868710219860077, 0.23762893676757812, 0.19287052750587463, 0.5128408074...
https://github.com/huggingface/datasets/issues/6186
I think the issue is that we set `CUDA_VISIBLE_DEVICES` after pytorch is imported ? We should use `torch.cuda.set_device(...)` instead
Feature request: add code example of multi-GPU processing
### Feature request Would be great to add a code example of how to do multi-GPU processing with 🤗 Datasets in the documentation. cc @stevhliu Currently the docs has a small [section](https://huggingface.co/docs/datasets/v2.3.2/en/process#map) on this saying "your big GPU call goes here", however it didn't work f...
19
Feature request: add code example of multi-GPU processing ### Feature request Would be great to add a code example of how to do multi-GPU processing with 🤗 Datasets in the documentation. cc @stevhliu Currently the docs has a small [section](https://huggingface.co/docs/datasets/v2.3.2/en/process#map) on this sa...
[ -0.13726481795310974, -0.43240639567375183, -0.001979593187570572, 0.09065330773591995, -0.10275635123252869, 0.048385635018348694, 0.39975813031196594, 0.003309808671474457, 0.1566070318222046, 0.22367125749588013, 0.1868710219860077, 0.23762893676757812, 0.19287052750587463, 0.5128408074...
https://github.com/huggingface/datasets/issues/6186
@lhoestq > In this case you wouldn't need a multiprocessed map no ? Yes. But how to load a model to 2 GPU simultaneously without something like accelerate?
Feature request: add code example of multi-GPU processing
### Feature request Would be great to add a code example of how to do multi-GPU processing with 🤗 Datasets in the documentation. cc @stevhliu Currently the docs has a small [section](https://huggingface.co/docs/datasets/v2.3.2/en/process#map) on this saying "your big GPU call goes here", however it didn't work f...
28
Feature request: add code example of multi-GPU processing ### Feature request Would be great to add a code example of how to do multi-GPU processing with 🤗 Datasets in the documentation. cc @stevhliu Currently the docs has a small [section](https://huggingface.co/docs/datasets/v2.3.2/en/process#map) on this sa...
[ -0.13726481795310974, -0.43240639567375183, -0.001979593187570572, 0.09065330773591995, -0.10275635123252869, 0.048385635018348694, 0.39975813031196594, 0.003309808671474457, 0.1566070318222046, 0.22367125749588013, 0.1868710219860077, 0.23762893676757812, 0.19287052750587463, 0.5128408074...
https://github.com/huggingface/datasets/issues/6186
> @lhoestq > > > In this case you wouldn't need a multiprocessed map no ? > > Yes. But how to load a model to 2 GPU simultaneously without something like accelerate? Take a look at this fix #6550 . Basically, you move the model to each GPU inside of the function to be mapped.
Feature request: add code example of multi-GPU processing
### Feature request Would be great to add a code example of how to do multi-GPU processing with 🤗 Datasets in the documentation. cc @stevhliu Currently the docs has a small [section](https://huggingface.co/docs/datasets/v2.3.2/en/process#map) on this saying "your big GPU call goes here", however it didn't work f...
56
Feature request: add code example of multi-GPU processing ### Feature request Would be great to add a code example of how to do multi-GPU processing with 🤗 Datasets in the documentation. cc @stevhliu Currently the docs has a small [section](https://huggingface.co/docs/datasets/v2.3.2/en/process#map) on this sa...
[ -0.13726481795310974, -0.43240639567375183, -0.001979593187570572, 0.09065330773591995, -0.10275635123252869, 0.048385635018348694, 0.39975813031196594, 0.003309808671474457, 0.1566070318222046, 0.22367125749588013, 0.1868710219860077, 0.23762893676757812, 0.19287052750587463, 0.5128408074...
https://github.com/huggingface/datasets/issues/6186
In case someone also runs into this issue, I wrote a [blog post](https://forrestbao.github.io/2024/01/30/datasets_map_with_rank_multiple_GPUs.html) with a complete working example by compiling information from several PRs and issues here. Hope it can help. This issue cost me a few hours. I hope my blog post can save yo...
Feature request: add code example of multi-GPU processing
### Feature request Would be great to add a code example of how to do multi-GPU processing with 🤗 Datasets in the documentation. cc @stevhliu Currently the docs has a small [section](https://huggingface.co/docs/datasets/v2.3.2/en/process#map) on this saying "your big GPU call goes here", however it didn't work f...
53
Feature request: add code example of multi-GPU processing ### Feature request Would be great to add a code example of how to do multi-GPU processing with 🤗 Datasets in the documentation. cc @stevhliu Currently the docs has a small [section](https://huggingface.co/docs/datasets/v2.3.2/en/process#map) on this sa...
[ -0.13726481795310974, -0.43240639567375183, -0.001979593187570572, 0.09065330773591995, -0.10275635123252869, 0.048385635018348694, 0.39975813031196594, 0.003309808671474457, 0.1566070318222046, 0.22367125749588013, 0.1868710219860077, 0.23762893676757812, 0.19287052750587463, 0.5128408074...
https://github.com/huggingface/datasets/issues/6185
You can cast the `input_image` column to the `Image` type to fix the issue: ```python ds.cast_column("input_image", datasets.Image()) ```
Error in saving the PIL image into *.arrow files using datasets.arrow_writer
### Describe the bug I am using the ArrowWriter from datasets.arrow_writer to save a json-style file as arrow files. Within the dictionary, it contains a feature called "image" which is a list of PIL.Image objects. I am saving the json using the following script: ``` def save_to_arrow(path,temp): with ArrowWri...
18
Error in saving the PIL image into *.arrow files using datasets.arrow_writer ### Describe the bug I am using the ArrowWriter from datasets.arrow_writer to save a json-style file as arrow files. Within the dictionary, it contains a feature called "image" which is a list of PIL.Image objects. I am saving the json usi...
[ -0.19886647164821625, 0.19410349428653717, 0.05354221165180206, 0.4502630829811096, 0.2469896376132965, 0.06560923904180527, 0.23730714619159698, 0.09777480363845825, -0.014207031577825546, -0.1852148175239563, 0.04238203167915344, 0.4313201904296875, -0.16450275480747223, 0.04493481665849...
https://github.com/huggingface/datasets/issues/6184
This issue is a duplicate of https://github.com/huggingface/datasets/issues/3297. This is a limitation of `dill`, a package we use for caching (non-`__main__` module objects are serialized by reference). You can find more info about it here: https://github.com/uqfoundation/dill/issues/424. In your case, moving ``...
Map cache does not detect function changes in another module
```python # dataset.py import os import datasets if not os.path.exists('/tmp/test.json'): with open('/tmp/test.json', 'w') as file: file.write('[{"text": "hello"}]') def transform(example): text = example['text'] # text += ' world' return {'text': text} data = datasets.load_dataset('json', ...
65
Map cache does not detect function changes in another module ```python # dataset.py import os import datasets if not os.path.exists('/tmp/test.json'): with open('/tmp/test.json', 'w') as file: file.write('[{"text": "hello"}]') def transform(example): text = example['text'] # text += ' world' ...
[ 0.0022165104746818542, -0.06392253190279007, -0.010190296918153763, 0.14868000149726868, 0.18692547082901, -0.03552545607089996, 0.34139183163642883, 0.4110347628593445, 0.2190169394016266, 0.06012767180800438, -0.2603941857814789, 0.38653305172920227, 0.03615827485918999, -0.2821804285049...
https://github.com/huggingface/datasets/issues/6184
I understand this may be a limitation of an upstream tool, but for a user for datasets this is very annoying, as when you have dozens of different datasets with different preprocessing functions you can't really move them all into the same file. It may be worth seeing if there is a way to specialize the dependency (eg....
Map cache does not detect function changes in another module
```python # dataset.py import os import datasets if not os.path.exists('/tmp/test.json'): with open('/tmp/test.json', 'w') as file: file.write('[{"text": "hello"}]') def transform(example): text = example['text'] # text += ' world' return {'text': text} data = datasets.load_dataset('json', ...
130
Map cache does not detect function changes in another module ```python # dataset.py import os import datasets if not os.path.exists('/tmp/test.json'): with open('/tmp/test.json', 'w') as file: file.write('[{"text": "hello"}]') def transform(example): text = example['text'] # text += ' world' ...
[ -0.05461974814534187, 0.08799296617507935, -0.10253699123859406, 0.09561468660831451, 0.23779329657554626, -0.07245713472366333, 0.30146026611328125, 0.36234450340270996, 0.31089890003204346, -0.09996545314788818, -0.01867002807557583, 0.3402145504951477, 0.06084798276424408, -0.1241090446...
https://github.com/huggingface/datasets/issues/6183
This was fixed in https://github.com/huggingface/datasets/pull/6155, which will be included in the next release (or you can install `datasets` from source to use it immediately).
Load dataset with non-existent file
### Describe the bug When load a dataset from datasets and pass a wrong path to json with the data, error message does not contain something abount "wrong path" or "file do not exist" - ```SchemaInferenceError: Please pass `features` or at least one example when writing data``` ### Steps to reproduce the bug ...
24
Load dataset with non-existent file ### Describe the bug When load a dataset from datasets and pass a wrong path to json with the data, error message does not contain something abount "wrong path" or "file do not exist" - ```SchemaInferenceError: Please pass `features` or at least one example when writing data...
[ -0.06370417773723602, -0.07461162656545639, -0.047087933868169785, 0.40176621079444885, 0.15048280358314514, -0.04745347052812576, 0.26163727045059204, 0.3800365924835205, 0.13985149562358856, 0.016334250569343567, 0.2836117744445801, 0.49351298809051514, -0.12176764756441116, 0.1593936085...
https://github.com/huggingface/datasets/issues/6182
Our minimal Python version requirement is 3.8, so we dropped `importlib_metadata`. Feel free to open a PR in the `evaluate` repo to replace the problematic import with ```python if PY_VERSION < version.parse("3.8"): import importlib_metadata else: import importlib.metadata as importlib_metadata ```
Loading Meteor metric in HF evaluate module crashes due to datasets import issue
### Describe the bug When using python3.9 and ```evaluate``` module loading Meteor metric crashes at a non-existent import from ```datasets.config``` in ```datasets v2.14``` ### Steps to reproduce the bug ``` from evaluate import load meteor = load("meteor") ``` produces the following error: ``` from d...
40
Loading Meteor metric in HF evaluate module crashes due to datasets import issue ### Describe the bug When using python3.9 and ```evaluate``` module loading Meteor metric crashes at a non-existent import from ```datasets.config``` in ```datasets v2.14``` ### Steps to reproduce the bug ``` from evaluate import lo...
[ -0.5889154076576233, 0.22531291842460632, 0.0810803547501564, 0.409982293844223, 0.43138521909713745, 0.07639343291521072, 0.1547071933746338, 0.4468281865119934, 0.044271379709243774, -0.0648208037018776, -0.2499675303697586, 0.31032538414001465, -0.17195433378219604, -0.11985348165035248...
https://github.com/huggingface/datasets/issues/6182
Any idea when you guys will release the next version which deals with this problem? I'm still having the same issue with py 3.10 when I install the lib with pip. I'm assuming that it has not yet been updated since the merge was 3 days ago.
Loading Meteor metric in HF evaluate module crashes due to datasets import issue
### Describe the bug When using python3.9 and ```evaluate``` module loading Meteor metric crashes at a non-existent import from ```datasets.config``` in ```datasets v2.14``` ### Steps to reproduce the bug ``` from evaluate import load meteor = load("meteor") ``` produces the following error: ``` from d...
47
Loading Meteor metric in HF evaluate module crashes due to datasets import issue ### Describe the bug When using python3.9 and ```evaluate``` module loading Meteor metric crashes at a non-existent import from ```datasets.config``` in ```datasets v2.14``` ### Steps to reproduce the bug ``` from evaluate import lo...
[ -0.5422057509422302, 0.2027595341205597, 0.05300013720989227, 0.36066898703575134, 0.31523409485816956, 0.0645938366651535, 0.1598619520664215, 0.4550836682319641, -0.005709491670131683, -0.1167023777961731, -0.17437200248241425, 0.29493311047554016, -0.1917290985584259, -0.167490392923355...
https://github.com/huggingface/datasets/issues/6182
Yes, this requires a new `evaluate` release (cc @lvwerra for this). In the meantime, you can get the fixed version by installing `evaluate` from `main`: `pip install git+https://github.com/huggingface/evaluate.git`
Loading Meteor metric in HF evaluate module crashes due to datasets import issue
### Describe the bug When using python3.9 and ```evaluate``` module loading Meteor metric crashes at a non-existent import from ```datasets.config``` in ```datasets v2.14``` ### Steps to reproduce the bug ``` from evaluate import load meteor = load("meteor") ``` produces the following error: ``` from d...
28
Loading Meteor metric in HF evaluate module crashes due to datasets import issue ### Describe the bug When using python3.9 and ```evaluate``` module loading Meteor metric crashes at a non-existent import from ```datasets.config``` in ```datasets v2.14``` ### Steps to reproduce the bug ``` from evaluate import lo...
[ -0.5894217491149902, 0.14930866658687592, 0.05532597005367279, 0.3828543424606323, 0.44232669472694397, 0.03887443244457245, 0.14060980081558228, 0.43760135769844055, 0.08918394148349762, 0.01380995288491249, -0.32333680987358093, 0.2941998243331909, -0.09656466543674469, -0.03930320590734...
https://github.com/huggingface/datasets/issues/6179
https://github.com/huggingface/datasets/issues/5147 may be a solution, by passing in the tokenizer in a fn_kwargs and ignoring it in the fingerprint calculations
Map cache with tokenizer
Similar issue to https://github.com/huggingface/datasets/issues/5985, but across different sessions rather than two calls in the same session. Unlike that issue, explicitly calling tokenizer(my_args) before the map() doesn't help, because the tokenizer was created with a different hash to begin with... setup ```...
20
Map cache with tokenizer Similar issue to https://github.com/huggingface/datasets/issues/5985, but across different sessions rather than two calls in the same session. Unlike that issue, explicitly calling tokenizer(my_args) before the map() doesn't help, because the tokenizer was created with a different hash to ...
[ -0.1412883698940277, -0.28767916560173035, 0.0715186819434166, 0.1604076325893402, 0.26335832476615906, -0.13286039233207703, 0.43897342681884766, 0.19649070501327515, 0.12755268812179565, 0.1276402324438095, -0.16962265968322754, 0.17197611927986145, 0.03746848553419113, -0.14160445332527...
https://github.com/huggingface/datasets/issues/6179
I have a similar issue. I was using a Jupyter Notebook and every time I call the map function it performs tokenization from scratch again although the cache files of last run still exists. I ran with 20 processes and now in the cache folder there are two groups of cached results of tokenized dataset: ``` .rw-r-...
Map cache with tokenizer
Similar issue to https://github.com/huggingface/datasets/issues/5985, but across different sessions rather than two calls in the same session. Unlike that issue, explicitly calling tokenizer(my_args) before the map() doesn't help, because the tokenizer was created with a different hash to begin with... setup ```...
457
Map cache with tokenizer Similar issue to https://github.com/huggingface/datasets/issues/5985, but across different sessions rather than two calls in the same session. Unlike that issue, explicitly calling tokenizer(my_args) before the map() doesn't help, because the tokenizer was created with a different hash to ...
[ -0.15014910697937012, -0.19050332903862, 0.107024647295475, 0.35715073347091675, 0.2963959574699402, -0.21825259923934937, 0.3743158280849457, 0.1827492117881775, 0.06256527453660965, -0.07695980370044708, -0.25926995277404785, 0.3096647560596466, 0.06059178709983826, -0.29029709100723267,...
https://github.com/huggingface/datasets/issues/6179
@Luosuu [map](https://huggingface.co/docs/datasets/v2.14.4/en/package_reference/main_classes#datasets.Dataset.map) has cache_file_name parameter In my case, I do want the cache to detect when the map function changes, so I can't pass a constant cache file name.
Map cache with tokenizer
Similar issue to https://github.com/huggingface/datasets/issues/5985, but across different sessions rather than two calls in the same session. Unlike that issue, explicitly calling tokenizer(my_args) before the map() doesn't help, because the tokenizer was created with a different hash to begin with... setup ```...
29
Map cache with tokenizer Similar issue to https://github.com/huggingface/datasets/issues/5985, but across different sessions rather than two calls in the same session. Unlike that issue, explicitly calling tokenizer(my_args) before the map() doesn't help, because the tokenizer was created with a different hash to ...
[ -0.3330538868904114, -0.25712743401527405, 0.10112573206424713, 0.2790035605430603, 0.32102808356285095, -0.159580260515213, 0.24012628197669983, 0.1805238425731659, 0.12876078486442566, 0.062470272183418274, -0.22218045592308044, 0.26421919465065, -0.08900037407875061, -0.2387703955173492...
https://github.com/huggingface/datasets/issues/6179
Implementing a proper hashing function for the (fast) tokenizers is currently impossible for the reasons mentioned in the referenced issues. So the only alternative to the `cache_file_name` (or `new_fingerprint`) parameter is a custom serializer (e.g., that deserializes the tokenizer from a local save path) defined usi...
Map cache with tokenizer
Similar issue to https://github.com/huggingface/datasets/issues/5985, but across different sessions rather than two calls in the same session. Unlike that issue, explicitly calling tokenizer(my_args) before the map() doesn't help, because the tokenizer was created with a different hash to begin with... setup ```...
58
Map cache with tokenizer Similar issue to https://github.com/huggingface/datasets/issues/5985, but across different sessions rather than two calls in the same session. Unlike that issue, explicitly calling tokenizer(my_args) before the map() doesn't help, because the tokenizer was created with a different hash to ...
[ -0.27431732416152954, -0.1078001856803894, 0.09937052428722382, 0.0826125219464302, 0.269914835691452, -0.004246249794960022, 0.4050785303115845, 0.3695800006389618, 0.18029317259788513, 0.13507942855358124, -0.20782291889190674, 0.22882694005966187, -0.14012375473976135, -0.21253457665443...
https://github.com/huggingface/datasets/issues/6178
This seems to be related to your environment and not the `datasets` code (e.g., this could happen when exposing the Python 3.9 site packages to a lower Python version (interpreter))
'import datasets' throws "invalid syntax error"
### Describe the bug Hi, I have been trying to import the datasets library but I keep gtting this error. `Traceback (most recent call last): File /opt/local/jupyterhub/lib64/python3.9/site-packages/IPython/core/interactiveshell.py:3508 in run_code exec(code_obj, self.user_global_ns, self.user_ns) ...
30
'import datasets' throws "invalid syntax error" ### Describe the bug Hi, I have been trying to import the datasets library but I keep gtting this error. `Traceback (most recent call last): File /opt/local/jupyterhub/lib64/python3.9/site-packages/IPython/core/interactiveshell.py:3508 in run_code exe...
[ -0.30676084756851196, 0.12475311756134033, -0.08762544393539429, -0.0031121093779802322, 0.21037253737449646, 0.02481812983751297, 0.28338855504989624, 0.35033392906188965, 0.03719150274991989, -0.23351851105690002, -0.26056209206581116, 0.2984602451324463, -0.008803192526102066, 0.2504249...
https://github.com/huggingface/datasets/issues/6176
Hi! Can you share the error this reproducer throws in your environment? `streaming=True` streams the dataset as it's iterated over without creating a memory-map file.
how to limit the size of memory mapped file?
### Describe the bug Huggingface datasets use memory-mapped file to map large datasets in memory for fast access. However, it seems like huggingface will occupy all the memory for memory-mapped files, which makes a troublesome situation since we cluster will distribute a small portion of memory to me (once it's over ...
25
how to limit the size of memory mapped file? ### Describe the bug Huggingface datasets use memory-mapped file to map large datasets in memory for fast access. However, it seems like huggingface will occupy all the memory for memory-mapped files, which makes a troublesome situation since we cluster will distribute a...
[ -0.07280738651752472, -0.7916353940963745, 0.008368667215108871, 0.36151984333992004, 0.2634913921356201, -0.1046992689371109, -0.13469454646110535, 0.15848267078399658, 0.4648273289203644, 0.27010637521743774, -0.009281422942876816, -0.15144601464271545, -0.2643619179725647, 0.13532045483...
https://github.com/huggingface/datasets/issues/6176
The trace of the error. Streaming works but is slower. ``` Root Cause (first observed failure): [0]: time : 2023-08-24_06:06:01 host : compute-126.cm.cluster rank : 0 (local_rank: 0) exitcode : 1 (pid: 48442) error_file: /tmp/torchelastic_4fqzcuuz/none_rx2470jl/attempt_0/0/error.json ...
how to limit the size of memory mapped file?
### Describe the bug Huggingface datasets use memory-mapped file to map large datasets in memory for fast access. However, it seems like huggingface will occupy all the memory for memory-mapped files, which makes a troublesome situation since we cluster will distribute a small portion of memory to me (once it's over ...
229
how to limit the size of memory mapped file? ### Describe the bug Huggingface datasets use memory-mapped file to map large datasets in memory for fast access. However, it seems like huggingface will occupy all the memory for memory-mapped files, which makes a troublesome situation since we cluster will distribute a...
[ -0.16914336383342743, -0.8583163022994995, 0.023879289627075195, 0.3591354787349701, 0.3339625298976898, -0.09380345791578293, -0.1925305724143982, 0.2149547040462494, 0.31732621788978577, 0.25976797938346863, 0.04010605067014694, -0.12824393808841705, -0.32327800989151, -0.009292490780353...
https://github.com/huggingface/datasets/issues/6176
This issue has previously been reported here: https://github.com/huggingface/datasets/issues/5710. Reporting it in the Arrow repo makes more sense as they have control over memory mapping. PS: this is the API to reduce the size of the generated Arrow file: ```python from datasets import load_dataset builder = loa...
how to limit the size of memory mapped file?
### Describe the bug Huggingface datasets use memory-mapped file to map large datasets in memory for fast access. However, it seems like huggingface will occupy all the memory for memory-mapped files, which makes a troublesome situation since we cluster will distribute a small portion of memory to me (once it's over ...
64
how to limit the size of memory mapped file? ### Describe the bug Huggingface datasets use memory-mapped file to map large datasets in memory for fast access. However, it seems like huggingface will occupy all the memory for memory-mapped files, which makes a troublesome situation since we cluster will distribute a...
[ -0.060643520206213, -0.6810961365699768, 0.02764938399195671, 0.3898550868034363, 0.26697027683258057, -0.1753149926662445, -0.12749415636062622, 0.1609777808189392, 0.3836739659309387, 0.2431078851222992, 0.005299530923366547, -0.09389012306928635, -0.2719050943851471, 0.06746187061071396...
https://github.com/huggingface/datasets/issues/6176
Thanks for the response. The problem seems not resolved. The memory I allocated to the environment is 64G and the following error still occurs `Python 3.8.16 (default, Jun 12 2023, 18:09:05) [GCC 11.2.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information. >>> from data...
how to limit the size of memory mapped file?
### Describe the bug Huggingface datasets use memory-mapped file to map large datasets in memory for fast access. However, it seems like huggingface will occupy all the memory for memory-mapped files, which makes a troublesome situation since we cluster will distribute a small portion of memory to me (once it's over ...
248
how to limit the size of memory mapped file? ### Describe the bug Huggingface datasets use memory-mapped file to map large datasets in memory for fast access. However, it seems like huggingface will occupy all the memory for memory-mapped files, which makes a troublesome situation since we cluster will distribute a...
[ -0.06064550206065178, -0.6840006113052368, 0.02686559408903122, 0.3980749249458313, 0.2742254137992859, -0.055651359260082245, -0.12921030819416046, 0.19934308528900146, 0.3999030590057373, 0.23436371982097626, -0.05561879277229309, -0.2157185673713684, -0.23776403069496155, 0.086295783519...
https://github.com/huggingface/datasets/issues/6172
Hi! The streaming mode also retries requests - `datasets.config.STREAMING_READ_MAX_RETRIES` (20 sec by default) controls the number of retries and `datasets.config.STREAMING_READ_RETRY_INTERVAL` (5 sec) the sleep time between retries. > At step 1800 I got a 504 HTTP status code error from Huggingface hub for my pyto...
Make Dataset streaming queries retryable
### Feature request Streaming datasets, as intended, do not load the entire dataset in memory or disk. However, while querying the next data chunk from the remote, sometimes it is possible that the service is down or there might be other issues that may cause the query to fail. In such a scenario, it would be nice to ...
58
Make Dataset streaming queries retryable ### Feature request Streaming datasets, as intended, do not load the entire dataset in memory or disk. However, while querying the next data chunk from the remote, sometimes it is possible that the service is down or there might be other issues that may cause the query to fai...
[ -0.29541707038879395, -0.2703626751899719, 0.0007498636841773987, -0.021915271878242493, 0.10868605971336365, 0.013974592089653015, -0.12818649411201477, 0.09762012958526611, -0.013967953622341156, -0.19625216722488403, -0.18767207860946655, 0.0036080479621887207, -0.1256556361913681, 0.39...
https://github.com/huggingface/datasets/issues/6172
I wanted something similar. I have a huge dataset I want to process (laion-2b), but after processing several batches, it sometimes fails with this error: `HTTP 502 Bad Gateway for url`. I had the following code to handle it but this way I believe it restarts processing the data from the first batch? How can I set the a...
Make Dataset streaming queries retryable
### Feature request Streaming datasets, as intended, do not load the entire dataset in memory or disk. However, while querying the next data chunk from the remote, sometimes it is possible that the service is down or there might be other issues that may cause the query to fail. In such a scenario, it would be nice to ...
131
Make Dataset streaming queries retryable ### Feature request Streaming datasets, as intended, do not load the entire dataset in memory or disk. However, while querying the next data chunk from the remote, sometimes it is possible that the service is down or there might be other issues that may cause the query to fai...
[ -0.3285529613494873, -0.22608637809753418, 0.009165838360786438, -0.042981378734111786, 0.07556532323360443, -0.07040054351091385, -0.03591199591755867, 0.10144767165184021, -0.12809261679649353, -0.2123432606458664, -0.22453515231609344, -0.15045294165611267, -0.04445352405309677, 0.45431...
https://github.com/huggingface/datasets/issues/6172
Hey all! Wondering if there's a way of making Datasets streaming mode somewhat robust to Hub outages? Over the weekend, I got two quite cryptic errors, which I reckon were probably from Hub issues: <details> <summary> Stack Trace 1 </summary> ``` File "/home/sanchitgandhi/small-12-4-tpu-timestamped-prob-0.2/r...
Make Dataset streaming queries retryable
### Feature request Streaming datasets, as intended, do not load the entire dataset in memory or disk. However, while querying the next data chunk from the remote, sometimes it is possible that the service is down or there might be other issues that may cause the query to fail. In such a scenario, it would be nice to ...
1,228
Make Dataset streaming queries retryable ### Feature request Streaming datasets, as intended, do not load the entire dataset in memory or disk. However, while querying the next data chunk from the remote, sometimes it is possible that the service is down or there might be other issues that may cause the query to fai...
[ -0.31669193506240845, -0.3005366027355194, 0.026153191924095154, 0.12597687542438507, 0.21646489202976227, -0.011194460093975067, 0.008134115487337112, 0.09827639162540436, -0.03988838195800781, -0.09810177236795425, -0.21523436903953552, -0.0718231126666069, -0.11203938722610474, 0.334706...
https://github.com/huggingface/datasets/issues/6172
Errors are already caught and requests are already retried. What you can do is increase the number of retries before an error is raised. ```python import datasets datasets.config.STREAMING_READ_MAX_RETRIES = 20 # default datasets.config.STREAMING_READ_RETRY_INTERVAL = 5 # default ```
Make Dataset streaming queries retryable
### Feature request Streaming datasets, as intended, do not load the entire dataset in memory or disk. However, while querying the next data chunk from the remote, sometimes it is possible that the service is down or there might be other issues that may cause the query to fail. In such a scenario, it would be nice to ...
38
Make Dataset streaming queries retryable ### Feature request Streaming datasets, as intended, do not load the entire dataset in memory or disk. However, while querying the next data chunk from the remote, sometimes it is possible that the service is down or there might be other issues that may cause the query to fai...
[ -0.23975394666194916, -0.2946740984916687, -0.020980656147003174, -0.020639386028051376, 0.1214011013507843, 0.012881293892860413, -0.12980765104293823, 0.1379736214876175, 0.017742745578289032, -0.13985763490200043, -0.18616732954978943, -0.04306444898247719, -0.16090549528598785, 0.38718...
https://github.com/huggingface/datasets/issues/6169
Unfortunately, I cannot reproduce this behavior on my machine or Colab - the reproducer returns `['main_data', 'additional_data']` as expected.
Configurations in yaml not working
### Dataset configurations cannot be created in YAML/README Hello! I'm trying to follow the docs here in order to create structure in my dataset as added from here (#5331): https://github.com/huggingface/datasets/blob/8b8e6ee067eb74e7965ca2a6768f15f9398cb7c8/docs/source/repository_structure.mdx#L110-L118 I have t...
19
Configurations in yaml not working ### Dataset configurations cannot be created in YAML/README Hello! I'm trying to follow the docs here in order to create structure in my dataset as added from here (#5331): https://github.com/huggingface/datasets/blob/8b8e6ee067eb74e7965ca2a6768f15f9398cb7c8/docs/source/repositor...
[ -0.11527468264102936, -0.4213189482688904, 0.05717824399471283, 0.45447349548339844, 0.3572370409965515, 0.04673733562231064, 0.29891225695610046, -0.016127929091453552, -0.13951528072357178, -0.04843568056821823, -0.3127571940422058, 0.02011093869805336, 0.17264369130134583, 0.18347482383...
https://github.com/huggingface/datasets/issues/6169
Thank you for looking into this, Mario. Is this on [my repository](https://huggingface.co/datasets/tsor13/test), or on another one that you have reproduced? Would you mind pointing me to it if so?
Configurations in yaml not working
### Dataset configurations cannot be created in YAML/README Hello! I'm trying to follow the docs here in order to create structure in my dataset as added from here (#5331): https://github.com/huggingface/datasets/blob/8b8e6ee067eb74e7965ca2a6768f15f9398cb7c8/docs/source/repository_structure.mdx#L110-L118 I have t...
29
Configurations in yaml not working ### Dataset configurations cannot be created in YAML/README Hello! I'm trying to follow the docs here in order to create structure in my dataset as added from here (#5331): https://github.com/huggingface/datasets/blob/8b8e6ee067eb74e7965ca2a6768f15f9398cb7c8/docs/source/repositor...
[ -0.11032769083976746, -0.4404180645942688, 0.03916045278310776, 0.4693024158477783, 0.36660531163215637, 0.059038251638412476, 0.27848830819129944, -0.010496852919459343, -0.15312331914901733, -0.078360915184021, -0.29099804162979126, -0.017551109194755554, 0.18407945334911346, 0.165130510...
https://github.com/huggingface/datasets/issues/6169
Whoa, in colab I received the correct behavior using my dataset. It must have something to do with my local copy of `datasets` (which again just failed). I've tried uninstalling/reinstnalling to no avail
Configurations in yaml not working
### Dataset configurations cannot be created in YAML/README Hello! I'm trying to follow the docs here in order to create structure in my dataset as added from here (#5331): https://github.com/huggingface/datasets/blob/8b8e6ee067eb74e7965ca2a6768f15f9398cb7c8/docs/source/repository_structure.mdx#L110-L118 I have t...
33
Configurations in yaml not working ### Dataset configurations cannot be created in YAML/README Hello! I'm trying to follow the docs here in order to create structure in my dataset as added from here (#5331): https://github.com/huggingface/datasets/blob/8b8e6ee067eb74e7965ca2a6768f15f9398cb7c8/docs/source/repositor...
[ -0.1206040158867836, -0.4372705817222595, 0.07081729918718338, 0.460095077753067, 0.34331145882606506, 0.031300708651542664, 0.2949771285057068, -0.05509854853153229, -0.17239221930503845, -0.04089412838220596, -0.3166311979293823, 0.05706300958991051, 0.1723296344280243, 0.207872033119201...
https://github.com/huggingface/datasets/issues/6169
hi @tsor13 , I haven't been able to reproduce your issue on `tsor13/test` dataset locally either. reinstalling doesn't help?
Configurations in yaml not working
### Dataset configurations cannot be created in YAML/README Hello! I'm trying to follow the docs here in order to create structure in my dataset as added from here (#5331): https://github.com/huggingface/datasets/blob/8b8e6ee067eb74e7965ca2a6768f15f9398cb7c8/docs/source/repository_structure.mdx#L110-L118 I have t...
19
Configurations in yaml not working ### Dataset configurations cannot be created in YAML/README Hello! I'm trying to follow the docs here in order to create structure in my dataset as added from here (#5331): https://github.com/huggingface/datasets/blob/8b8e6ee067eb74e7965ca2a6768f15f9398cb7c8/docs/source/repositor...
[ -0.1241253986954689, -0.46657809615135193, 0.044537708163261414, 0.45027482509613037, 0.3804835081100464, 0.04604162275791168, 0.2761646509170532, -0.010582834482192993, -0.12343527376651764, -0.07216480374336243, -0.3147639036178589, -0.009312260895967484, 0.17964068055152893, 0.198763459...
https://github.com/huggingface/datasets/issues/6162
Hi ! Feel free to open a discussion at https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T/discussions to ask the file to be fixed (or directly open a PR with the fixed file) `datasets` expects all the examples to have the same fields
load_dataset('json',...) from togethercomputer/RedPajama-Data-1T errors when jsonl rows contains different data fields
### Describe the bug When loading some jsonl from redpajama-data-1T github source [togethercomputer/RedPajama-Data-1T](https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T) fails due to one row of the file containing an extra field called **symlink_target: string>**. When deleting that line the loading...
36
load_dataset('json',...) from togethercomputer/RedPajama-Data-1T errors when jsonl rows contains different data fields ### Describe the bug When loading some jsonl from redpajama-data-1T github source [togethercomputer/RedPajama-Data-1T](https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T) fails due t...
[ 0.053559184074401855, 0.02824193239212036, 0.02102046087384224, 0.5469897985458374, 0.12235726416110992, 0.10428876429796219, 0.474545419216156, 0.38627463579177856, 0.14965155720710754, -0.1371256709098816, 0.021165207028388977, 0.6087433099746704, 0.18107794225215912, -0.2477768957614898...
https://github.com/huggingface/datasets/issues/6162
@lhoestq I think the problem is caused by the fact that hugging face datasets writes a copy of data to the local cache using pyarrow. And the data scheme is inferred from the first few data blocks as can be seen [here](https://github.com/huggingface/datasets/blob/main/src/datasets/arrow_writer.py#L570). Maybe setting `...
load_dataset('json',...) from togethercomputer/RedPajama-Data-1T errors when jsonl rows contains different data fields
### Describe the bug When loading some jsonl from redpajama-data-1T github source [togethercomputer/RedPajama-Data-1T](https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T) fails due to one row of the file containing an extra field called **symlink_target: string>**. When deleting that line the loading...
55
load_dataset('json',...) from togethercomputer/RedPajama-Data-1T errors when jsonl rows contains different data fields ### Describe the bug When loading some jsonl from redpajama-data-1T github source [togethercomputer/RedPajama-Data-1T](https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T) fails due t...
[ 0.053559184074401855, 0.02824193239212036, 0.02102046087384224, 0.5469897985458374, 0.12235726416110992, 0.10428876429796219, 0.474545419216156, 0.38627463579177856, 0.14965155720710754, -0.1371256709098816, 0.021165207028388977, 0.6087433099746704, 0.18107794225215912, -0.2477768957614898...
https://github.com/huggingface/datasets/issues/6162
> @lhoestq I think the problem is caused by the fact that hugging face datasets writes a copy of data to the local cache using pyarrow. And the data scheme is inferred from the first few data blocks as can be seen [here](https://github.com/huggingface/datasets/blob/main/src/datasets/arrow_writer.py#L570). Correct. T...
load_dataset('json',...) from togethercomputer/RedPajama-Data-1T errors when jsonl rows contains different data fields
### Describe the bug When loading some jsonl from redpajama-data-1T github source [togethercomputer/RedPajama-Data-1T](https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T) fails due to one row of the file containing an extra field called **symlink_target: string>**. When deleting that line the loading...
88
load_dataset('json',...) from togethercomputer/RedPajama-Data-1T errors when jsonl rows contains different data fields ### Describe the bug When loading some jsonl from redpajama-data-1T github source [togethercomputer/RedPajama-Data-1T](https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T) fails due t...
[ 0.053559184074401855, 0.02824193239212036, 0.02102046087384224, 0.5469897985458374, 0.12235726416110992, 0.10428876429796219, 0.474545419216156, 0.38627463579177856, 0.14965155720710754, -0.1371256709098816, 0.021165207028388977, 0.6087433099746704, 0.18107794225215912, -0.2477768957614898...
https://github.com/huggingface/datasets/issues/6162
@lhoestq I just run below test with streaming=True and is not failing at the problematic example ```python ds = load_dataset('json', data_files='/path_to_local_RedPajamaData/filtered_27f05c041a1c401783f90b9415e40e4b.sampled.jsonl', streaming=True) count = 0 for i in ds['train']: count += 1 print(count) `...
load_dataset('json',...) from togethercomputer/RedPajama-Data-1T errors when jsonl rows contains different data fields
### Describe the bug When loading some jsonl from redpajama-data-1T github source [togethercomputer/RedPajama-Data-1T](https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T) fails due to one row of the file containing an extra field called **symlink_target: string>**. When deleting that line the loading...
49
load_dataset('json',...) from togethercomputer/RedPajama-Data-1T errors when jsonl rows contains different data fields ### Describe the bug When loading some jsonl from redpajama-data-1T github source [togethercomputer/RedPajama-Data-1T](https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T) fails due t...
[ 0.053559184074401855, 0.02824193239212036, 0.02102046087384224, 0.5469897985458374, 0.12235726416110992, 0.10428876429796219, 0.474545419216156, 0.38627463579177856, 0.14965155720710754, -0.1371256709098816, 0.021165207028388977, 0.6087433099746704, 0.18107794225215912, -0.2477768957614898...
https://github.com/huggingface/datasets/issues/6157
Thanks for reporting, but we can only fix this issue if you can provide a reproducer that consistently reproduces it.
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'
### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```python --------------------------------------------------------------------------- TypeErr...
20
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding' ### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```pyth...
[ -0.07070029526948929, -0.11540171504020691, 0.006694383919239044, 0.35483965277671814, 0.5811512470245361, 0.26537662744522095, 0.13077785074710846, 0.37581178545951843, -0.23715856671333313, 0.07963988929986954, 0.06881711632013321, 0.3887733519077301, -0.0750109851360321, 0.3504210412502...
https://github.com/huggingface/datasets/issues/6157
Does this error occur even if you change the cache directory (the `cache_dir` parameter in `load_dataset`)?
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'
### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```python --------------------------------------------------------------------------- TypeErr...
16
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding' ### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```pyth...
[ -0.07070029526948929, -0.11540171504020691, 0.006694383919239044, 0.35483965277671814, 0.5811512470245361, 0.26537662744522095, 0.13077785074710846, 0.37581178545951843, -0.23715856671333313, 0.07963988929986954, 0.06881711632013321, 0.3887733519077301, -0.0750109851360321, 0.3504210412502...
https://github.com/huggingface/datasets/issues/6157
@mariosasko And I changed the data file, but executing load_dataset is always the previous result. I had to change something in images.py to use the new results. Using 'cleanup_cache_files' is invalid! Help me.
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'
### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```python --------------------------------------------------------------------------- TypeErr...
33
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding' ### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```pyth...
[ -0.07070029526948929, -0.11540171504020691, 0.006694383919239044, 0.35483965277671814, 0.5811512470245361, 0.26537662744522095, 0.13077785074710846, 0.37581178545951843, -0.23715856671333313, 0.07963988929986954, 0.06881711632013321, 0.3887733519077301, -0.0750109851360321, 0.3504210412502...
https://github.com/huggingface/datasets/issues/6157
@mariosasko I added a comprehensive error message. Check that _column_requires_decoding is being passed where it shouldn't be. DatasetInfo.__init__() Whether this parameter is required
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'
### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```python --------------------------------------------------------------------------- TypeErr...
23
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding' ### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```pyth...
[ -0.07070029526948929, -0.11540171504020691, 0.006694383919239044, 0.35483965277671814, 0.5811512470245361, 0.26537662744522095, 0.13077785074710846, 0.37581178545951843, -0.23715856671333313, 0.07963988929986954, 0.06881711632013321, 0.3887733519077301, -0.0750109851360321, 0.3504210412502...
https://github.com/huggingface/datasets/issues/6157
I can see the issue now... You can fix it by returning a `DatasetInfo` object in the `_info` method as follows: ```python def _info(self): if self.config.name == "similar_pairs": features = datasets.Features( { "image1": datasets.features.Image(), ...
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'
### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```python --------------------------------------------------------------------------- TypeErr...
59
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding' ### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```pyth...
[ -0.07070029526948929, -0.11540171504020691, 0.006694383919239044, 0.35483965277671814, 0.5811512470245361, 0.26537662744522095, 0.13077785074710846, 0.37581178545951843, -0.23715856671333313, 0.07963988929986954, 0.06881711632013321, 0.3887733519077301, -0.0750109851360321, 0.3504210412502...
https://github.com/huggingface/datasets/issues/6157
@mariosasko Oh, that's the problem. Thank you very much. Returned the wrong object and it actually works? I've been training with it for a long time
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'
### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```python --------------------------------------------------------------------------- TypeErr...
26
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding' ### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```pyth...
[ -0.07070029526948929, -0.11540171504020691, 0.006694383919239044, 0.35483965277671814, 0.5811512470245361, 0.26537662744522095, 0.13077785074710846, 0.37581178545951843, -0.23715856671333313, 0.07963988929986954, 0.06881711632013321, 0.3887733519077301, -0.0750109851360321, 0.3504210412502...
https://github.com/huggingface/datasets/issues/6157
@mariosasko The original code can still see progress. emmm, I can't see how many examples is generated so far, so I don't know if we should wait
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'
### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```python --------------------------------------------------------------------------- TypeErr...
27
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding' ### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```pyth...
[ -0.07070029526948929, -0.11540171504020691, 0.006694383919239044, 0.35483965277671814, 0.5811512470245361, 0.26537662744522095, 0.13077785074710846, 0.37581178545951843, -0.23715856671333313, 0.07963988929986954, 0.06881711632013321, 0.3887733519077301, -0.0750109851360321, 0.3504210412502...
https://github.com/huggingface/datasets/issues/6157
The original issue has been addressed, so I'm closing it. Please open a new issue if you encounter more errors.
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'
### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```python --------------------------------------------------------------------------- TypeErr...
20
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding' ### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```pyth...
[ -0.07070029526948929, -0.11540171504020691, 0.006694383919239044, 0.35483965277671814, 0.5811512470245361, 0.26537662744522095, 0.13077785074710846, 0.37581178545951843, -0.23715856671333313, 0.07963988929986954, 0.06881711632013321, 0.3887733519077301, -0.0750109851360321, 0.3504210412502...
https://github.com/huggingface/datasets/issues/6156
`_effective_generator` returns a RNG that takes into account `self._epoch` and the current dataset's base shuffling RNG (which can be set by specifying `seed=` in `.shuffle() for example`). To fix your error you can pass `seed=` to `.shuffle()`. And the shuffling will depend on both this seed and `self._epoch`
Why not use self._epoch as seed to shuffle in distributed training with IterableDataset
### Describe the bug Currently, distributed training with `IterableDataset` needs to pass fixed seed to shuffle to keep each node use the same seed to avoid overlapping. https://github.com/huggingface/datasets/blob/a7f8d9019e7cb104eac4106bdc6ec0292f0dc61a/src/datasets/iterable_dataset.py#L1174-L1177 My question ...
48
Why not use self._epoch as seed to shuffle in distributed training with IterableDataset ### Describe the bug Currently, distributed training with `IterableDataset` needs to pass fixed seed to shuffle to keep each node use the same seed to avoid overlapping. https://github.com/huggingface/datasets/blob/a7f8d9019e7...
[ -0.09083998948335648, -0.44738781452178955, 0.10200133919715881, -0.05467989295721054, 0.3809796869754791, -0.15323251485824585, 0.5157515406608582, 0.006217509508132935, -0.24342955648899078, 0.49071937799453735, 0.10161998122930527, 0.34502965211868286, -0.2855296730995178, -0.1475029885...
https://github.com/huggingface/datasets/issues/6152
Makes sense, I guess this can be fixed in the load_dataset_builder method. It concerns every packaged builder I think (see values in `_PACKAGED_DATASETS_MODULES`)
FolderBase Dataset automatically resolves under current directory when data_dir is not specified
### Describe the bug FolderBase Dataset automatically resolves under current directory when data_dir is not specified. For example: ``` load_dataset("audiofolder") ``` takes long time to resolve and collect data_files from current directory. But I think it should reach out to this line for error handling https:...
23
FolderBase Dataset automatically resolves under current directory when data_dir is not specified ### Describe the bug FolderBase Dataset automatically resolves under current directory when data_dir is not specified. For example: ``` load_dataset("audiofolder") ``` takes long time to resolve and collect data_f...
[ -0.2735007405281067, 0.028854265809059143, 0.028967544436454773, 0.4166823625564575, 0.2547065317630768, -0.014593467116355896, 0.27842482924461365, 0.05671973153948784, -0.021877121180295944, 0.0357544980943203, 0.10410922020673752, 0.25342753529548645, -0.042768917977809906, 0.0401904881...
https://github.com/huggingface/datasets/issues/6152
I think the behavior is related to these lines, which short circuited the error handling. https://github.com/huggingface/datasets/blob/664a1cb72ea1e6ef7c47e671e2686ca4a35e8d63/src/datasets/load.py#L946-L952 So should data_dir be checked here or still delegating to actual `DatasetModule`? In that case, how to proper...
FolderBase Dataset automatically resolves under current directory when data_dir is not specified
### Describe the bug FolderBase Dataset automatically resolves under current directory when data_dir is not specified. For example: ``` load_dataset("audiofolder") ``` takes long time to resolve and collect data_files from current directory. But I think it should reach out to this line for error handling https:...
37
FolderBase Dataset automatically resolves under current directory when data_dir is not specified ### Describe the bug FolderBase Dataset automatically resolves under current directory when data_dir is not specified. For example: ``` load_dataset("audiofolder") ``` takes long time to resolve and collect data_f...
[ -0.13462772965431213, 0.09037208557128906, 0.027538299560546875, 0.3838578462600708, 0.1457664519548416, -0.0724802017211914, 0.22981223464012146, 0.013132331892848015, -0.10827796161174774, -0.09232193976640701, 0.16240432858467102, 0.17215892672538757, -0.016087103635072708, -0.033629987...
https://github.com/huggingface/datasets/issues/6152
This is location in PackagedDatasetModuleFactory.get_module seems the be the right place to check if at least data_dir or data_files are passed
FolderBase Dataset automatically resolves under current directory when data_dir is not specified
### Describe the bug FolderBase Dataset automatically resolves under current directory when data_dir is not specified. For example: ``` load_dataset("audiofolder") ``` takes long time to resolve and collect data_files from current directory. But I think it should reach out to this line for error handling https:...
21
FolderBase Dataset automatically resolves under current directory when data_dir is not specified ### Describe the bug FolderBase Dataset automatically resolves under current directory when data_dir is not specified. For example: ``` load_dataset("audiofolder") ``` takes long time to resolve and collect data_f...
[ -0.18663132190704346, -0.1002492606639862, -0.009631037712097168, 0.4756282567977905, 0.1902087926864624, -0.035474665462970734, 0.1495768427848816, 0.1636379212141037, 0.031352922320365906, -0.028886429965496063, 0.20590755343437195, 0.19654041528701782, -0.02793583646416664, -0.020526051...
https://github.com/huggingface/datasets/issues/6152
@mariosasko is this issue still open? i would love to kickstart my journey to open source with this issue! Regards zutarich
FolderBase Dataset automatically resolves under current directory when data_dir is not specified
### Describe the bug FolderBase Dataset automatically resolves under current directory when data_dir is not specified. For example: ``` load_dataset("audiofolder") ``` takes long time to resolve and collect data_files from current directory. But I think it should reach out to this line for error handling https:...
21
FolderBase Dataset automatically resolves under current directory when data_dir is not specified ### Describe the bug FolderBase Dataset automatically resolves under current directory when data_dir is not specified. For example: ``` load_dataset("audiofolder") ``` takes long time to resolve and collect data_f...
[ -0.29093503952026367, 0.0026991069316864014, 0.047937847673892975, 0.4412233829498291, 0.14582736790180206, -0.1480879783630371, 0.2705446183681488, 0.03420373052358627, -0.07471749931573868, -0.046285852789878845, 0.05931897461414337, 0.18162791430950165, -0.054868146777153015, 0.02757010...
https://github.com/huggingface/datasets/issues/6151
`Dataset.sort` essentially does the same thing except it uses `pyarrow.compute.sort_indices` which doesn't involve copying the data into python objects (saving memory) ```python sort_keys = [(col, "ascending") for col in column_names] indices = pc.sort_indices(self.data, sort_keys=sort_keys) return self.select(in...
Faster sorting for single key items
### Feature request A faster way to sort a dataset which contains a large number of rows. ### Motivation The current sorting implementations took significantly longer than expected when I was running on a dataset trying to sort by timestamps. **Code snippet:** ```python ds = datasets.load_dataset( "json"...
37
Faster sorting for single key items ### Feature request A faster way to sort a dataset which contains a large number of rows. ### Motivation The current sorting implementations took significantly longer than expected when I was running on a dataset trying to sort by timestamps. **Code snippet:** ```pyth...
[ 0.004457168281078339, 0.04670502245426178, -0.1584610491991043, -0.14311231672763824, 0.05662455037236214, 0.2312767207622528, 0.16376036405563354, 0.44003841280937195, 0.0392853245139122, 0.12945446372032166, 0.16581636667251587, 0.44436874985694885, -0.20505958795547485, 0.13872021436691...
https://github.com/huggingface/datasets/issues/6150
``` dataset = IterableDataset(dataset) if type(dataset) != IterableDataset else dataset # to force dataset.take(batch_size) to work in non-streaming mode ```
Allow dataset implement .take
### Feature request I want to do: ``` dataset.take(512) ``` but it only works with streaming = True ### Motivation uniform interface to data sets. Really surprising the above only works with streaming = True. ### Your contribution Should be trivial to copy paste the IterableDataset .take to use the local pa...
20
Allow dataset implement .take ### Feature request I want to do: ``` dataset.take(512) ``` but it only works with streaming = True ### Motivation uniform interface to data sets. Really surprising the above only works with streaming = True. ### Your contribution Should be trivial to copy paste the IterableD...
[ -0.7020734548568726, -0.3154955506324768, -0.04562981054186821, -0.14700867235660553, 0.17551806569099426, -0.2521788477897644, 0.1460411250591278, 0.19208432734012604, 0.0996364951133728, 0.3289710283279419, 0.19659018516540527, 0.12043306231498718, -0.2602097690105438, 0.5171805024147034...
https://github.com/huggingface/datasets/issues/6150
Feel free to work on this. In addition, `IterableDataset` supports `skip`, so we should also add this method to `Dataset`.
Allow dataset implement .take
### Feature request I want to do: ``` dataset.take(512) ``` but it only works with streaming = True ### Motivation uniform interface to data sets. Really surprising the above only works with streaming = True. ### Your contribution Should be trivial to copy paste the IterableDataset .take to use the local pa...
20
Allow dataset implement .take ### Feature request I want to do: ``` dataset.take(512) ``` but it only works with streaming = True ### Motivation uniform interface to data sets. Really surprising the above only works with streaming = True. ### Your contribution Should be trivial to copy paste the IterableD...
[ -0.7220214009284973, -0.1629389226436615, -0.0566975437104702, -0.17003409564495087, 0.23154707252979279, -0.2569749653339386, 0.1458967924118042, 0.11140163987874985, 0.13187694549560547, 0.3458045721054077, 0.15996131300926208, 0.34860000014305115, -0.20970769226551056, 0.391096174716949...
https://github.com/huggingface/datasets/issues/6149
Looks like this regression was introduced in `datasets==2.13.0` (`2.12.0` could load a subset of columns) This does not appear to be fixed by https://github.com/huggingface/datasets/pull/6045 (bug still exists on `main`)
Dataset.from_parquet cannot load subset of columns
### Describe the bug When using `Dataset.from_parquet(path_or_paths, columns=[...])` and a subset of columns, loading fails with a variant of the following ``` ValueError: Couldn't cast a: int64 -- schema metadata -- pandas: '{"index_columns": [], "column_indexes": [], "columns": [{"name":' + 273 to {'a': V...
29
Dataset.from_parquet cannot load subset of columns ### Describe the bug When using `Dataset.from_parquet(path_or_paths, columns=[...])` and a subset of columns, loading fails with a variant of the following ``` ValueError: Couldn't cast a: int64 -- schema metadata -- pandas: '{"index_columns": [], "column_i...
[ -0.1333582103252411, -0.08192666620016098, 0.08033621311187744, 0.5715978145599365, 0.4477812349796295, 0.10835712403059006, 0.31241875886917114, 0.24921822547912598, 0.08865556865930557, 0.007296420633792877, -0.021194105967879295, 0.5238876938819885, 0.01299673318862915, 0.14497233927249...
https://github.com/huggingface/datasets/issues/6147
The cause of the error seems to be that `datasets` adds "gcs://" as a schema, while `beam` checks only "gs://". datasets: https://github.com/huggingface/datasets/blob/c02a44715c036b5261686669727394b1308a3a4b/src/datasets/builder.py#L822 beam: [link](https://github.com/apache/beam/blob/25e1a64641b1c8a3c0a6c75c6e86...
ValueError when running BeamBasedBuilder with GCS path in cache_dir
### Describe the bug When running the BeamBasedBuilder with a GCS path specified in the cache_dir, the following ValueError occurs: ``` ValueError: Unable to get filesystem from specified path, please use the correct path or ensure the required dependency is installed, e.g., pip install apache-beam[gcp]. Path spec...
39
ValueError when running BeamBasedBuilder with GCS path in cache_dir ### Describe the bug When running the BeamBasedBuilder with a GCS path specified in the cache_dir, the following ValueError occurs: ``` ValueError: Unable to get filesystem from specified path, please use the correct path or ensure the required ...
[ -0.29819557070732117, 0.19141258299350739, 0.014799751341342926, 0.36861103773117065, 0.2843171954154968, 0.008844070136547089, 0.2713485360145569, 0.1694406270980835, -0.08469781279563904, 0.2694435715675354, 0.10181479156017303, 0.3879253566265106, -0.4240404963493347, -0.333686977624893...
https://github.com/huggingface/datasets/issues/6146
This issue can happen if there is a directory named "glue" relative to the Python script with the `load_dataset` call (similar issue to this one: https://github.com/huggingface/datasets/issues/5228). Is this the case?
DatasetGenerationError when load glue benchmark datasets from `load_dataset`
### Describe the bug Package version: datasets-2.14.4 When I run the codes: ``` from datasets import load_dataset dataset = load_dataset("glue", "ax") ``` I got the following errors: --------------------------------------------------------------------------- SchemaInferenceError ...
30
DatasetGenerationError when load glue benchmark datasets from `load_dataset` ### Describe the bug Package version: datasets-2.14.4 When I run the codes: ``` from datasets import load_dataset dataset = load_dataset("glue", "ax") ``` I got the following errors: ---------------------------------...
[ -0.4479908347129822, 0.22612975537776947, 0.0011700615286827087, 0.3219987452030182, 0.06884840130805969, 0.009246349334716797, 0.44559818506240845, 0.35875868797302246, 0.14821888506412506, 0.014389213174581528, 0.146055668592453, 0.375593364238739, 0.00011418573558330536, 0.0893615335226...
https://github.com/huggingface/datasets/issues/6146
> This issue can happen if there is a directory named "glue" relative to the Python script with the `load_dataset` call (similar issue to this one: #5228). Is this the case? Thats correct! Sorry for my late response.
DatasetGenerationError when load glue benchmark datasets from `load_dataset`
### Describe the bug Package version: datasets-2.14.4 When I run the codes: ``` from datasets import load_dataset dataset = load_dataset("glue", "ax") ``` I got the following errors: --------------------------------------------------------------------------- SchemaInferenceError ...
38
DatasetGenerationError when load glue benchmark datasets from `load_dataset` ### Describe the bug Package version: datasets-2.14.4 When I run the codes: ``` from datasets import load_dataset dataset = load_dataset("glue", "ax") ``` I got the following errors: ---------------------------------...
[ -0.4479908347129822, 0.22612975537776947, 0.0011700615286827087, 0.3219987452030182, 0.06884840130805969, 0.009246349334716797, 0.44559818506240845, 0.35875868797302246, 0.14821888506412506, 0.014389213174581528, 0.146055668592453, 0.375593364238739, 0.00011418573558330536, 0.0893615335226...
https://github.com/huggingface/datasets/issues/6153
> This is an issue for the [Datasets repo](https://github.com/huggingface/datasets). Thanks @sgugger , I guess I will wait for them to address the issue . Looking forward to hearing from them
custom load dataset to hub
### System Info kaggle notebook i transformed dataset: ``` dataset = load_dataset("Dahoas/first-instruct-human-assistant-prompt") ``` to formatted_dataset: ``` Dataset({ features: ['message_tree_id', 'message_tree_text'], num_rows: 33143 }) ``` but would like to know how to upload to hub ### ...
30
custom load dataset to hub ### System Info kaggle notebook i transformed dataset: ``` dataset = load_dataset("Dahoas/first-instruct-human-assistant-prompt") ``` to formatted_dataset: ``` Dataset({ features: ['message_tree_id', 'message_tree_text'], num_rows: 33143 }) ``` but would like to kn...
[ -0.09595555067062378, -0.42560431361198425, -0.02857043221592903, 0.09417508542537689, 0.12886416912078857, 0.20121827721595764, 0.4490395486354828, 0.06897752732038498, 0.24217703938484192, -0.0015879124402999878, -0.27853912115097046, 0.46894994378089905, -0.02148927003145218, 0.60273444...
https://github.com/huggingface/datasets/issues/6153
> You can use `.push_to_hub("<username>/<repo>")` to push a `Dataset` to the Hub. how about subset? like `.load_dataset("<username>/<repo>", "<subset>")`, how can I upload multi-dataset in one repo? thanks a lot !
custom load dataset to hub
### System Info kaggle notebook i transformed dataset: ``` dataset = load_dataset("Dahoas/first-instruct-human-assistant-prompt") ``` to formatted_dataset: ``` Dataset({ features: ['message_tree_id', 'message_tree_text'], num_rows: 33143 }) ``` but would like to know how to upload to hub ### ...
30
custom load dataset to hub ### System Info kaggle notebook i transformed dataset: ``` dataset = load_dataset("Dahoas/first-instruct-human-assistant-prompt") ``` to formatted_dataset: ``` Dataset({ features: ['message_tree_id', 'message_tree_text'], num_rows: 33143 }) ``` but would like to kn...
[ -0.2940673232078552, -0.4400447905063629, -0.10339982807636261, 0.11101476103067398, 0.144892618060112, 0.17570477724075317, 0.37880921363830566, 0.0910642221570015, 0.20257394015789032, 0.06475270539522171, -0.39361822605133057, 0.49827486276626587, 0.053432200103998184, 0.649844646453857...
https://github.com/huggingface/datasets/issues/6153
> > You can use `.push_to_hub("<username>/<repo>")` to push a `Dataset` to the Hub. > > how about subset? like `.load_dataset("<username>/<repo>", "<subset>")`, how can I upload multi-dataset in one repo? thanks a lot ! I solved it by upgrading `Datasets` version to 2.15.0
custom load dataset to hub
### System Info kaggle notebook i transformed dataset: ``` dataset = load_dataset("Dahoas/first-instruct-human-assistant-prompt") ``` to formatted_dataset: ``` Dataset({ features: ['message_tree_id', 'message_tree_text'], num_rows: 33143 }) ``` but would like to know how to upload to hub ### ...
42
custom load dataset to hub ### System Info kaggle notebook i transformed dataset: ``` dataset = load_dataset("Dahoas/first-instruct-human-assistant-prompt") ``` to formatted_dataset: ``` Dataset({ features: ['message_tree_id', 'message_tree_text'], num_rows: 33143 }) ``` but would like to kn...
[ -0.29901033639907837, -0.35831522941589355, -0.0736541897058487, 0.14873656630516052, 0.12786555290222168, 0.1778545081615448, 0.352297842502594, 0.15155190229415894, 0.16484904289245605, 0.0901644229888916, -0.41371792554855347, 0.4942428767681122, -0.001936374232172966, 0.523436784744262...
https://github.com/huggingface/datasets/issues/6144
another file not found: ``` Traceback (most recent call last): File "/lfs/ampere1/0/brando9/miniconda/envs/beyond_scale/lib/python3.10/site-packages/fsspec/implementations/http.py", line 417, in _info await _file_info( File "/lfs/ampere1/0/brando9/miniconda/envs/beyond_scale/lib/python3.10/site-packages/fs...
NIH exporter file not found
### Describe the bug can't use or download the nih exporter pile data. ``` 15 experiment_compute_diveristy_coeff_single_dataset_then_combined_datasets_with_domain_weights() 16 File "/lfs/ampere1/0/brando9/beyond-scale-language-data-diversity/src/diversity/div_coeff.py", line 474, in experiment_compute_diveri...
283
NIH exporter file not found ### Describe the bug can't use or download the nih exporter pile data. ``` 15 experiment_compute_diveristy_coeff_single_dataset_then_combined_datasets_with_domain_weights() 16 File "/lfs/ampere1/0/brando9/beyond-scale-language-data-diversity/src/diversity/div_coeff.py", line 474...
[ -0.2584576904773712, 0.008933529257774353, -0.06965087354183197, 0.2353883683681488, 0.16815856099128723, 0.13015833497047424, 0.3746143877506256, 0.5034440755844116, 0.03095618635416031, 0.47794991731643677, -0.20891538262367249, 0.10971230268478394, -0.12225690484046936, 0.29824024438858...
https://github.com/huggingface/datasets/issues/6144
this seems to work but it's rather annoying. Summary of how to make it work: 1. get urls to parquet files into a list 2. load list to load_dataset via `load_dataset('parquet', data_files=urls)` (note api names to hf are really confusing sometimes) 3. then it should work, print a batch of text. presudo code ``...
NIH exporter file not found
### Describe the bug can't use or download the nih exporter pile data. ``` 15 experiment_compute_diveristy_coeff_single_dataset_then_combined_datasets_with_domain_weights() 16 File "/lfs/ampere1/0/brando9/beyond-scale-language-data-diversity/src/diversity/div_coeff.py", line 474, in experiment_compute_diveri...
319
NIH exporter file not found ### Describe the bug can't use or download the nih exporter pile data. ``` 15 experiment_compute_diveristy_coeff_single_dataset_then_combined_datasets_with_domain_weights() 16 File "/lfs/ampere1/0/brando9/beyond-scale-language-data-diversity/src/diversity/div_coeff.py", line 474...
[ -0.2584576904773712, 0.008933529257774353, -0.06965087354183197, 0.2353883683681488, 0.16815856099128723, 0.13015833497047424, 0.3746143877506256, 0.5034440755844116, 0.03095618635416031, 0.47794991731643677, -0.20891538262367249, 0.10971230268478394, -0.12225690484046936, 0.29824024438858...
https://github.com/huggingface/datasets/issues/6142
It seems that some parquet files have additional columns. I ran a scan and found that two files have the additional `__id__` column: 1. `hf://datasets/bigcode/the-stack-dedup/data/numpy/data-00000-of-00001.parquet` 2. `hf://datasets/bigcode/the-stack-dedup/data/omgrofl/data-00000-of-00001.parquet` We should o...
the-stack-dedup fails to generate
### Describe the bug I'm getting an error generating the-stack-dedup with datasets 2.13.1, and with 2.14.4 nothing happens. ### Steps to reproduce the bug My code: ``` import os import datasets as ds MY_CACHE_DIR = "/home/ubuntu/the-stack-dedup-local" MY_TOKEN="my-token" the_stack_ds = ds.load_dataset("...
37
the-stack-dedup fails to generate ### Describe the bug I'm getting an error generating the-stack-dedup with datasets 2.13.1, and with 2.14.4 nothing happens. ### Steps to reproduce the bug My code: ``` import os import datasets as ds MY_CACHE_DIR = "/home/ubuntu/the-stack-dedup-local" MY_TOKEN="my-token"...
[ -0.2608025372028351, -0.025322765111923218, 0.030000541359186172, 0.38186246156692505, 0.043696630746126175, -0.03949412703514099, 0.5020748972892761, 0.38187968730926514, -0.04980931431055069, -0.06252968311309814, 0.21321964263916016, 0.5592825412750244, 0.04533160477876663, 0.0545387938...
https://github.com/huggingface/datasets/issues/6142
The files have been fixed ! I'm closing this one but feel free to re-open if you still have the issue
the-stack-dedup fails to generate
### Describe the bug I'm getting an error generating the-stack-dedup with datasets 2.13.1, and with 2.14.4 nothing happens. ### Steps to reproduce the bug My code: ``` import os import datasets as ds MY_CACHE_DIR = "/home/ubuntu/the-stack-dedup-local" MY_TOKEN="my-token" the_stack_ds = ds.load_dataset("...
21
the-stack-dedup fails to generate ### Describe the bug I'm getting an error generating the-stack-dedup with datasets 2.13.1, and with 2.14.4 nothing happens. ### Steps to reproduce the bug My code: ``` import os import datasets as ds MY_CACHE_DIR = "/home/ubuntu/the-stack-dedup-local" MY_TOKEN="my-token"...
[ -0.2608025372028351, -0.025322765111923218, 0.030000541359186172, 0.38186246156692505, 0.043696630746126175, -0.03949412703514099, 0.5020748972892761, 0.38187968730926514, -0.04980931431055069, -0.06252968311309814, 0.21321964263916016, 0.5592825412750244, 0.04533160477876663, 0.0545387938...
https://github.com/huggingface/datasets/issues/6141
Hi! I cannot reproduce this error on my machine or in Colab. Which version of `fsspec` do you have installed?
TypeError: ClientSession._request() got an unexpected keyword argument 'https'
### Describe the bug Hello, when I ran the [code snippet](https://huggingface.co/docs/datasets/v2.14.4/en/loading#json) on the document, I encountered the following problem: ``` Python 3.10.9 (main, Mar 1 2023, 18:23:06) [GCC 11.2.0] on linux Type "help", "copyright", "credits" or "license" for more informatio...
20
TypeError: ClientSession._request() got an unexpected keyword argument 'https' ### Describe the bug Hello, when I ran the [code snippet](https://huggingface.co/docs/datasets/v2.14.4/en/loading#json) on the document, I encountered the following problem: ``` Python 3.10.9 (main, Mar 1 2023, 18:23:06) [GCC 11.2....
[ 0.18585044145584106, -0.17859402298927307, -0.05237463861703873, 0.23951728641986847, 0.2108559012413025, 0.032153770327568054, 0.06183677911758423, 0.17651477456092834, -0.18309633433818817, -0.04363574832677841, 0.15922331809997559, 0.3644048869609833, 0.18158484995365143, 0.092963814735...
https://github.com/huggingface/datasets/issues/6139
Hi, thanks for the suggestion. It's not possible at the moment. The viewer is part of the Hub codebase and only works on public datasets. Also, it relies on [Datasets Server](https://github.com/huggingface/datasets-server/), which prepares the data and provides an API to access the rows, size, etc. If you're interes...
Offline dataset viewer
### Feature request The dataset viewer feature is very nice. It enables to the user to easily view the dataset. However, when working for private companies we cannot always upload the dataset to the hub. Is there a way to create dataset viewer offline? I.e. to run a code that will open some kind of html or something t...
66
Offline dataset viewer ### Feature request The dataset viewer feature is very nice. It enables to the user to easily view the dataset. However, when working for private companies we cannot always upload the dataset to the hub. Is there a way to create dataset viewer offline? I.e. to run a code that will open some ki...
[ -0.5306944847106934, -0.10730038583278656, -0.06526888906955719, 0.1415955275297165, -0.1613258570432663, 0.023090340197086334, 0.44106897711753845, 0.32372617721557617, 0.11866387724876404, 0.28429850935935974, -0.07933178544044495, 0.2532556354999542, -0.200007826089859, 0.70664119720458...
https://github.com/huggingface/datasets/issues/6139
Hi, we are building an offline dataset viewer: https://github.com/Renumics/spotlight It supports many HF datasets, but currently you have to use it via Pandas: df=ds.to_pandas() spotlight.show(df) Would love to hear from you if that works for your use case. If not, feel free to open an issue on the repo: https://...
Offline dataset viewer
### Feature request The dataset viewer feature is very nice. It enables to the user to easily view the dataset. However, when working for private companies we cannot always upload the dataset to the hub. Is there a way to create dataset viewer offline? I.e. to run a code that will open some kind of html or something t...
50
Offline dataset viewer ### Feature request The dataset viewer feature is very nice. It enables to the user to easily view the dataset. However, when working for private companies we cannot always upload the dataset to the hub. Is there a way to create dataset viewer offline? I.e. to run a code that will open some ki...
[ -0.5132324695587158, 0.03274783492088318, -0.06676776707172394, 0.07542572915554047, -0.13829393684864044, 0.07182638347148895, 0.47000652551651, 0.37849292159080505, 0.09861810505390167, 0.17905691266059875, -0.10398733615875244, 0.16178832948207855, -0.1710074543952942, 0.487866282463073...
https://github.com/huggingface/datasets/issues/6134
I noticed that this is actually covered by issue #5613, which for some reason I didn't see when I searched the issues in this repo the first time.
`datasets` cannot be installed alongside `apache-beam`
### Describe the bug If one installs `apache-beam` alongside `datasets` (which is required for the [wikipedia](https://huggingface.co/datasets/wikipedia#dataset-summary) dataset) in certain environments (such as a Google Colab notebook), they appear to install successfully, however, actually trying to do something s...
28
`datasets` cannot be installed alongside `apache-beam` ### Describe the bug If one installs `apache-beam` alongside `datasets` (which is required for the [wikipedia](https://huggingface.co/datasets/wikipedia#dataset-summary) dataset) in certain environments (such as a Google Colab notebook), they appear to install...
[ -0.3785075843334198, 0.3001392185688019, -0.01923738420009613, 0.3167867660522461, 0.0022398103028535843, 0.14671489596366882, 0.16304033994674683, 0.23114949464797974, 0.0433666929602623, -0.03307116776704788, -0.1871323436498642, 0.26805105805397034, -0.08574722707271576, -0.210212647914...
https://github.com/huggingface/datasets/issues/6133
It's roughly the same code between the two so we can expected roughly the same speed, could you share a benchmark ?
Dataset is slower after calling `to_iterable_dataset`
### Describe the bug Can anyone explain why looping over a dataset becomes slower after calling `to_iterable_dataset` to convert to `IterableDataset` ### Steps to reproduce the bug Any dataset after converting to `IterableDataset` ### Expected behavior Maybe it should be faster on big dataset? I only test on small...
22
Dataset is slower after calling `to_iterable_dataset` ### Describe the bug Can anyone explain why looping over a dataset becomes slower after calling `to_iterable_dataset` to convert to `IterableDataset` ### Steps to reproduce the bug Any dataset after converting to `IterableDataset` ### Expected behavior Maybe ...
[ -0.21740469336509705, -0.33230429887771606, -0.06820902973413467, 0.25205811858177185, 0.2974810004234314, 0.08506955206394196, 0.2828558683395386, 0.20997700095176697, -0.23656882345676422, 0.07266651093959808, -0.08127926290035248, 0.6577728986740112, 0.018090564757585526, -0.05060135945...
https://github.com/huggingface/datasets/issues/6130
What should be the behavior in this case ? Should it override the default config with the added parameter ?
default config name doesn't work when config kwargs are specified.
### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ...
20
default config name doesn't work when config kwargs are specified. ### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to...
[ -0.10071884840726852, -0.21733036637306213, 0.09942471235990524, 0.13833779096603394, 0.07441189140081406, 0.030461803078651428, 0.3864661753177643, -0.03025026246905327, 0.007245421409606934, 0.36576059460639954, 0.24759340286254883, 0.5385408997535706, 0.15046490728855133, 0.097545109689...
https://github.com/huggingface/datasets/issues/6130
I know why it should be treated as a new config if overriding parameters are passed. But in some case, I just pass in some common fields like `data_dir`. For example, I want to extend the FolderBasedBuilder as a multi-config version, the `data_dir` or `data_files` are always passed by user and should not be consider...
default config name doesn't work when config kwargs are specified.
### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ...
79
default config name doesn't work when config kwargs are specified. ### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to...
[ -0.12708967924118042, -0.21234175562858582, 0.1321590393781662, 0.14795851707458496, 0.12180255353450775, -0.05246325582265854, 0.44281354546546936, -0.0014078514650464058, -0.013150438666343689, 0.35618332028388977, 0.21070024371147156, 0.5361368656158447, 0.08675235509872437, 0.055666007...
https://github.com/huggingface/datasets/issues/6130
Thinking more about it I think the current behavior is the right one. Provided parameters should be passed to instantiate a new BuilderConfig. What's the error you're getting ?
default config name doesn't work when config kwargs are specified.
### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ...
29
default config name doesn't work when config kwargs are specified. ### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to...
[ -0.17760102450847626, -0.22203543782234192, 0.10286201536655426, 0.12729883193969727, 0.16383600234985352, -0.03337372839450836, 0.4383702874183655, 0.018997512757778168, 0.012134909629821777, 0.43914103507995605, 0.14752230048179626, 0.49687460064888, 0.14622309803962708, 0.13720016181468...
https://github.com/huggingface/datasets/issues/6130
For example, this works to use default config with name '_all_': ```python datasets.load_dataset("indonesian-nlp/librivox-indonesia", split="train") ``` while this failed to use default config ```python datasets.load_dataset("indonesian-nlp/librivox-indonesia", split="train", data_dir='.') ``` After manually sp...
default config name doesn't work when config kwargs are specified.
### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ...
40
default config name doesn't work when config kwargs are specified. ### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to...
[ -0.16069497168064117, -0.18930847942829132, 0.122981496155262, 0.16191743314266205, 0.23092788457870483, 0.00657045841217041, 0.43682047724723816, 0.05664052441716194, 0.008178375661373138, 0.43072617053985596, 0.1161964163184166, 0.478816419839859, 0.16797824203968048, 0.14446407556533813...
https://github.com/huggingface/datasets/issues/6130
It should work if you explicitly ask for the config you want to override ```python load_dataset('/dataset/with/multiple/config', 'name_of_the_default_config', some_field_in_config='some') ``` Alternatively you can have a BuilderConfig class that when instantiated returns a config with the right default values. ...
default config name doesn't work when config kwargs are specified.
### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ...
60
default config name doesn't work when config kwargs are specified. ### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to...
[ -0.2387239784002304, -0.2534017562866211, 0.09032666683197021, 0.07542908191680908, 0.2019164115190506, -0.026733510196208954, 0.41875579953193665, 0.03140834718942642, 0.04826804995536804, 0.5022535920143127, 0.07890916615724564, 0.5601708292961121, 0.15124142169952393, 0.1664610505104065...
https://github.com/huggingface/datasets/issues/6130
@lhoestq Yes. But it doesn't work for me. Here's my dataset for example. ``` lass MyDatasetConfig(datasets.BuilderConfig): def __init__(self, name: str, version: str, **kwargs): self.option1 = kwargs.pop("option1", False) self.option2 = kwargs.pop("option2", 5) super().__init__( ...
default config name doesn't work when config kwargs are specified.
### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ...
124
default config name doesn't work when config kwargs are specified. ### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to...
[ -0.15546850860118866, -0.19105125963687897, 0.12208302319049835, 0.1262056529521942, 0.1357688307762146, 0.009281337261199951, 0.397077351808548, -0.008440805599093437, 0.03489021956920624, 0.3902091383934021, 0.17155346274375916, 0.4991089105606079, 0.17679984867572784, 0.0378390923142433...
https://github.com/huggingface/datasets/issues/6130
@lhoestq The error is ``` def _info(self) -> DatasetInfo: _ = self.option1 <- .... AttributeError: 'BuilderConfig' object has no attribute 'option1' ``` which seems to find another unknown config. You can try this line `datasets.load_dataset("indonesian-nlp/librivox-indonesia", split="train",...
default config name doesn't work when config kwargs are specified.
### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ...
63
default config name doesn't work when config kwargs are specified. ### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to...
[ -0.14594551920890808, -0.2705951929092407, 0.13886938989162445, 0.1655144989490509, 0.19108057022094727, 0.022060848772525787, 0.45360273122787476, 0.06476003676652908, 0.020564965903759003, 0.464612752199173, 0.06959917396306992, 0.4245510697364807, 0.173030823469162, 0.15137013792991638,...
https://github.com/huggingface/datasets/issues/6130
I see, you just have to set this class attribute to your builder class :) ```python BUILDER_CONFIG_CLASS = MyDatasetConfig ```
default config name doesn't work when config kwargs are specified.
### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ...
20
default config name doesn't work when config kwargs are specified. ### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to...
[ -0.23081204295158386, -0.1871139407157898, 0.10418521612882614, 0.1373593807220459, 0.2660263776779175, 0.04879021644592285, 0.4744296669960022, 0.07422877848148346, 0.0004663318395614624, 0.5087602138519287, 0.1025904193520546, 0.48535749316215515, 0.17570990324020386, 0.1579459309577942,...
https://github.com/huggingface/datasets/issues/6130
So what does this attribute do? In most cases it's not used and the [documents for multi-config dataset](https://huggingface.co/docs/datasets/main/en/image_dataset#multiple-configurations) never mentioned that.
default config name doesn't work when config kwargs are specified.
### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ...
21
default config name doesn't work when config kwargs are specified. ### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to...
[ -0.1038767397403717, -0.40731850266456604, 0.08251382410526276, 0.1635793000459671, 0.21165809035301208, 0.2138454169034958, 0.40020623803138733, -0.19926854968070984, 0.02706824243068695, 0.4509633183479309, 0.10380767285823822, 0.3629632294178009, 0.17622721195220947, 0.15650160610675812...
https://github.com/huggingface/datasets/issues/6130
It tells which builder config class to instantiate if additional config parameters are passed to load_dataset
default config name doesn't work when config kwargs are specified.
### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ...
16
default config name doesn't work when config kwargs are specified. ### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to...
[ -0.19299033284187317, -0.22648239135742188, 0.09661252051591873, 0.19210265576839447, 0.17225056886672974, 0.018309645354747772, 0.44974562525749207, 0.04452268034219742, 0.04450341314077377, 0.4569787383079529, 0.15882045030593872, 0.5114296078681946, 0.17513585090637207, 0.13504114747047...
https://github.com/huggingface/datasets/issues/6130
@lhoestq maybe we can enhance the document to say something about the common attributes of `DatasetBuilder`
default config name doesn't work when config kwargs are specified.
### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ...
16
default config name doesn't work when config kwargs are specified. ### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to...
[ -0.19917616248130798, -0.18726631999015808, 0.07228013873100281, 0.11664031445980072, 0.17154335975646973, 0.05313607305288315, 0.4100954234600067, 0.044482097029685974, 0.007123127579689026, 0.4756440818309784, 0.14925631880760193, 0.5220496654510498, 0.20773720741271973, 0.12885269522666...
https://github.com/huggingface/datasets/issues/6128
> I tried this and got the following error: ``` Traceback (most recent call last): File "/cephyr/NOBACKUP/groups/snic2021-23-24/LLM4-CodeOpt/env/lib/python3.10/site-packages/torch/_dynamo/convert_frame.py", line 324, in _compile out_code = transform_code_object(code, transform) File "/cephyr/NOBACKUP...
IndexError: Invalid key: 88 is out of bounds for size 0
### Describe the bug This bug generates when I use torch.compile(model) in my code, which seems to raise an error in datasets lib. ### Steps to reproduce the bug I use the following code to fine-tune Falcon on my private dataset. ```python import transformers from transformers import ( AutoModelForCausalLM...
326
IndexError: Invalid key: 88 is out of bounds for size 0 ### Describe the bug This bug generates when I use torch.compile(model) in my code, which seems to raise an error in datasets lib. ### Steps to reproduce the bug I use the following code to fine-tune Falcon on my private dataset. ```python import transfor...
[ -0.46058011054992676, -0.27659863233566284, -0.027295688167214394, 0.4731191098690033, 0.09124531596899033, -0.04254941642284393, 0.31532663106918335, 0.47062352299690247, 0.08070381730794907, 0.04917040094733238, -0.24383330345153809, 0.42413467168807983, 0.007434118539094925, -0.19464325...
https://github.com/huggingface/datasets/issues/6128
Hi @TomasAndersonFang, I guess in this case it may be an issue with `transformers` (or `PyTorch`). I would recommend you open an issue on their repo.
IndexError: Invalid key: 88 is out of bounds for size 0
### Describe the bug This bug generates when I use torch.compile(model) in my code, which seems to raise an error in datasets lib. ### Steps to reproduce the bug I use the following code to fine-tune Falcon on my private dataset. ```python import transformers from transformers import ( AutoModelForCausalLM...
26
IndexError: Invalid key: 88 is out of bounds for size 0 ### Describe the bug This bug generates when I use torch.compile(model) in my code, which seems to raise an error in datasets lib. ### Steps to reproduce the bug I use the following code to fine-tune Falcon on my private dataset. ```python import transfor...
[ -0.46058011054992676, -0.27659863233566284, -0.027295688167214394, 0.4731191098690033, 0.09124531596899033, -0.04254941642284393, 0.31532663106918335, 0.47062352299690247, 0.08070381730794907, 0.04917040094733238, -0.24383330345153809, 0.42413467168807983, 0.007434118539094925, -0.19464325...
https://github.com/huggingface/datasets/issues/6128
@TomasAndersonFang were you able to find a solution to this issue? I would highly appreciate any help. Thanks!
IndexError: Invalid key: 88 is out of bounds for size 0
### Describe the bug This bug generates when I use torch.compile(model) in my code, which seems to raise an error in datasets lib. ### Steps to reproduce the bug I use the following code to fine-tune Falcon on my private dataset. ```python import transformers from transformers import ( AutoModelForCausalLM...
18
IndexError: Invalid key: 88 is out of bounds for size 0 ### Describe the bug This bug generates when I use torch.compile(model) in my code, which seems to raise an error in datasets lib. ### Steps to reproduce the bug I use the following code to fine-tune Falcon on my private dataset. ```python import transfor...
[ -0.46058011054992676, -0.27659863233566284, -0.027295688167214394, 0.4731191098690033, 0.09124531596899033, -0.04254941642284393, 0.31532663106918335, 0.47062352299690247, 0.08070381730794907, 0.04917040094733238, -0.24383330345153809, 0.42413467168807983, 0.007434118539094925, -0.19464325...
https://github.com/huggingface/datasets/issues/6126
Our CI did not catch this issue because with current implementation, stored token in `HfFolder` (which always exists) is used by default.
Private datasets do not load when passing token
### Describe the bug Since the release of `datasets` 2.14, private/gated datasets do not load when passing `token`: they raise `EmptyDatasetError`. This is a non-planned backward incompatible breaking change. Note that private datasets do load if instead `download_config` is passed: ```python from datasets i...
22
Private datasets do not load when passing token ### Describe the bug Since the release of `datasets` 2.14, private/gated datasets do not load when passing `token`: they raise `EmptyDatasetError`. This is a non-planned backward incompatible breaking change. Note that private datasets do load if instead `downl...
[ -0.2845437526702881, 0.2692788243293762, 0.007149573415517807, 0.2665907144546509, -0.10046811401844025, -0.15131212770938873, 0.7414763569831848, 0.44546371698379517, 0.05207190662622452, 0.13438205420970917, -0.27614763379096985, 0.3271932899951935, -0.0666486993432045, 0.087302520871162...
https://github.com/huggingface/datasets/issues/6126
I can confirm this and have the same problem (and just went almost crazy because I couldn't figure out the source of this problem because on another computer everything worked well even with `DownloadMode.FORCE_REDOWNLOAD`).
Private datasets do not load when passing token
### Describe the bug Since the release of `datasets` 2.14, private/gated datasets do not load when passing `token`: they raise `EmptyDatasetError`. This is a non-planned backward incompatible breaking change. Note that private datasets do load if instead `download_config` is passed: ```python from datasets i...
34
Private datasets do not load when passing token ### Describe the bug Since the release of `datasets` 2.14, private/gated datasets do not load when passing `token`: they raise `EmptyDatasetError`. This is a non-planned backward incompatible breaking change. Note that private datasets do load if instead `downl...
[ -0.2845437526702881, 0.2692788243293762, 0.007149573415517807, 0.2665907144546509, -0.10046811401844025, -0.15131212770938873, 0.7414763569831848, 0.44546371698379517, 0.05207190662622452, 0.13438205420970917, -0.27614763379096985, 0.3271932899951935, -0.0666486993432045, 0.087302520871162...
https://github.com/huggingface/datasets/issues/6126
We are planning to do a patch release today, after the merge of the fix: - #6127 In the meantime, the problem can be circumvented by passing `download_config` instead: ```python from datasets import DownloadConfig, load_dataset load_dataset("<DATASET-NAME>", split="train", download_config=DownloadConfig(token=...
Private datasets do not load when passing token
### Describe the bug Since the release of `datasets` 2.14, private/gated datasets do not load when passing `token`: they raise `EmptyDatasetError`. This is a non-planned backward incompatible breaking change. Note that private datasets do load if instead `download_config` is passed: ```python from datasets i...
39
Private datasets do not load when passing token ### Describe the bug Since the release of `datasets` 2.14, private/gated datasets do not load when passing `token`: they raise `EmptyDatasetError`. This is a non-planned backward incompatible breaking change. Note that private datasets do load if instead `downl...
[ -0.2845437526702881, 0.2692788243293762, 0.007149573415517807, 0.2665907144546509, -0.10046811401844025, -0.15131212770938873, 0.7414763569831848, 0.44546371698379517, 0.05207190662622452, 0.13438205420970917, -0.27614763379096985, 0.3271932899951935, -0.0666486993432045, 0.087302520871162...
https://github.com/huggingface/datasets/issues/6126
> We are planning to do a patch release today, after the merge of the fix: > > * [Fix authentication issues #6127](https://github.com/huggingface/datasets/pull/6127) > > > In the meantime, the problem can be circumvented by passing `download_config` instead: > > ```python > from datasets import Download...
Private datasets do not load when passing token
### Describe the bug Since the release of `datasets` 2.14, private/gated datasets do not load when passing `token`: they raise `EmptyDatasetError`. This is a non-planned backward incompatible breaking change. Note that private datasets do load if instead `download_config` is passed: ```python from datasets i...
78
Private datasets do not load when passing token ### Describe the bug Since the release of `datasets` 2.14, private/gated datasets do not load when passing `token`: they raise `EmptyDatasetError`. This is a non-planned backward incompatible breaking change. Note that private datasets do load if instead `downl...
[ -0.2845437526702881, 0.2692788243293762, 0.007149573415517807, 0.2665907144546509, -0.10046811401844025, -0.15131212770938873, 0.7414763569831848, 0.44546371698379517, 0.05207190662622452, 0.13438205420970917, -0.27614763379096985, 0.3271932899951935, -0.0666486993432045, 0.087302520871162...
https://github.com/huggingface/datasets/issues/6124
i once had the same error and I could fix that by pushing a fake or a dummy commit on my hugging face dataset repo
Datasets crashing runs due to KeyError
### Describe the bug Hi all, I have been running into a pretty persistent issue recently when trying to load datasets. ```python train_dataset = load_dataset( 'llama-2-7b-tokenized', split = 'train' ) ``` I receive a KeyError which crashes the runs. ``` Traceback (most recent call...
25
Datasets crashing runs due to KeyError ### Describe the bug Hi all, I have been running into a pretty persistent issue recently when trying to load datasets. ```python train_dataset = load_dataset( 'llama-2-7b-tokenized', split = 'train' ) ``` I receive a KeyError which crashes th...
[ -0.42707476019859314, 0.023738786578178406, 0.022228755056858063, 0.4859738051891327, 0.30645328760147095, 0.0008221939206123352, 0.21553976833820343, 0.35969728231430054, 0.11036781966686249, 0.11428549140691757, -0.09585358202457428, 0.2865358591079712, -0.5202809572219849, 0.11676494777...
https://github.com/huggingface/datasets/issues/6124
Hi! We need a reproducer to fix this. Can you provide a link to the dataset (if it's public)?
Datasets crashing runs due to KeyError
### Describe the bug Hi all, I have been running into a pretty persistent issue recently when trying to load datasets. ```python train_dataset = load_dataset( 'llama-2-7b-tokenized', split = 'train' ) ``` I receive a KeyError which crashes the runs. ``` Traceback (most recent call...
19
Datasets crashing runs due to KeyError ### Describe the bug Hi all, I have been running into a pretty persistent issue recently when trying to load datasets. ```python train_dataset = load_dataset( 'llama-2-7b-tokenized', split = 'train' ) ``` I receive a KeyError which crashes th...
[ -0.42707476019859314, 0.023738786578178406, 0.022228755056858063, 0.4859738051891327, 0.30645328760147095, 0.0008221939206123352, 0.21553976833820343, 0.35969728231430054, 0.11036781966686249, 0.11428549140691757, -0.09585358202457428, 0.2865358591079712, -0.5202809572219849, 0.11676494777...
https://github.com/huggingface/datasets/issues/6124
> Hi! We need a reproducer to fix this. Can you provide a link to the dataset (if it's public)? Hi Mario, Unfortunately, the dataset in question is currently private until the model is trained and released. This is not happening with one dataset but numerous hosted private datasets. I am only loading the da...
Datasets crashing runs due to KeyError
### Describe the bug Hi all, I have been running into a pretty persistent issue recently when trying to load datasets. ```python train_dataset = load_dataset( 'llama-2-7b-tokenized', split = 'train' ) ``` I receive a KeyError which crashes the runs. ``` Traceback (most recent call...
69
Datasets crashing runs due to KeyError ### Describe the bug Hi all, I have been running into a pretty persistent issue recently when trying to load datasets. ```python train_dataset = load_dataset( 'llama-2-7b-tokenized', split = 'train' ) ``` I receive a KeyError which crashes th...
[ -0.42707476019859314, 0.023738786578178406, 0.022228755056858063, 0.4859738051891327, 0.30645328760147095, 0.0008221939206123352, 0.21553976833820343, 0.35969728231430054, 0.11036781966686249, 0.11428549140691757, -0.09585358202457428, 0.2865358591079712, -0.5202809572219849, 0.11676494777...
https://github.com/huggingface/datasets/issues/6124
Hi, I have the same error in the dataset viewer with my dataset https://huggingface.co/datasets/elsaEU/ELSA10M_track1 Has anyone solved this issue? Edit: After a dummy commit the error changed in ConfigNamesError
Datasets crashing runs due to KeyError
### Describe the bug Hi all, I have been running into a pretty persistent issue recently when trying to load datasets. ```python train_dataset = load_dataset( 'llama-2-7b-tokenized', split = 'train' ) ``` I receive a KeyError which crashes the runs. ``` Traceback (most recent call...
29
Datasets crashing runs due to KeyError ### Describe the bug Hi all, I have been running into a pretty persistent issue recently when trying to load datasets. ```python train_dataset = load_dataset( 'llama-2-7b-tokenized', split = 'train' ) ``` I receive a KeyError which crashes th...
[ -0.42707476019859314, 0.023738786578178406, 0.022228755056858063, 0.4859738051891327, 0.30645328760147095, 0.0008221939206123352, 0.21553976833820343, 0.35969728231430054, 0.11036781966686249, 0.11428549140691757, -0.09585358202457428, 0.2865358591079712, -0.5202809572219849, 0.11676494777...
https://github.com/huggingface/datasets/issues/6124
@rs9000 The problem seems to be the (large) number of commits, as explained in https://huggingface.co/docs/hub/repositories-recommendations. This can be fixed by running: ```python import huggingface_hub huggingface_hub.super_squash_history(repo_id="elsaEU/ELSA10M_track1") ``` The issue stems from `push_to_hub`...
Datasets crashing runs due to KeyError
### Describe the bug Hi all, I have been running into a pretty persistent issue recently when trying to load datasets. ```python train_dataset = load_dataset( 'llama-2-7b-tokenized', split = 'train' ) ``` I receive a KeyError which crashes the runs. ``` Traceback (most recent call...
68
Datasets crashing runs due to KeyError ### Describe the bug Hi all, I have been running into a pretty persistent issue recently when trying to load datasets. ```python train_dataset = load_dataset( 'llama-2-7b-tokenized', split = 'train' ) ``` I receive a KeyError which crashes th...
[ -0.42707476019859314, 0.023738786578178406, 0.022228755056858063, 0.4859738051891327, 0.30645328760147095, 0.0008221939206123352, 0.21553976833820343, 0.35969728231430054, 0.11036781966686249, 0.11428549140691757, -0.09585358202457428, 0.2865358591079712, -0.5202809572219849, 0.11676494777...
https://github.com/huggingface/datasets/issues/6123
Hi! Thanks for the investigation, but we are not the authors of these datasets, so please report this on the Hub instead so that the actual authors can fix it.
Inaccurate Bounding Boxes in "wildreceipt" Dataset
### Describe the bug I would like to bring to your attention an issue related to the accuracy of bounding boxes within the "wildreceipt" dataset, which is made available through the Hugging Face API. Specifically, I have identified a discrepancy between the bounding boxes generated by the dataset loading commands, n...
30
Inaccurate Bounding Boxes in "wildreceipt" Dataset ### Describe the bug I would like to bring to your attention an issue related to the accuracy of bounding boxes within the "wildreceipt" dataset, which is made available through the Hugging Face API. Specifically, I have identified a discrepancy between the boundi...
[ 0.05812062323093414, -0.16705407202243805, 0.01744590699672699, 0.37785378098487854, -0.0714922547340393, -0.10320500284433365, -0.04753547161817551, 0.1165100634098053, 0.15703505277633667, 0.0594196580350399, -0.26452022790908813, -0.02778661623597145, -0.041489433497190475, 0.3027552366...
https://github.com/huggingface/datasets/issues/6120
In which format is your dataset? We could expose the `pre_buffer` flag for Parquet to use PyArrow's background thread pool to speed up loading.
Lookahead streaming support?
### Feature request From what I understand, streaming dataset currently pulls the data, and process the data as it is requested. This can introduce significant latency delays when data is loaded into the training process, needing to wait for each segment. While the delays might be dataset specific (or even mappi...
24
Lookahead streaming support? ### Feature request From what I understand, streaming dataset currently pulls the data, and process the data as it is requested. This can introduce significant latency delays when data is loaded into the training process, needing to wait for each segment. While the delays might be ...
[ -0.4858854413032532, -0.04234813153743744, 0.018325448036193848, -0.33982226252555847, 0.020538561046123505, -0.15050531923770905, 0.16886287927627563, 0.38475334644317627, 0.0726713240146637, -0.13585174083709717, -0.025371843948960304, 0.11459393799304962, -0.23636990785598755, 0.5027632...
https://github.com/huggingface/datasets/issues/6118
Hi! `IterableDataset.from_generator` expects a generator function, not the object (to be consistent with `Dataset.from_generator`). You can fix the above snippet as follows: ```python train_dataset = IterableDataset.from_generator(line_generator, fn_kwargs={"files": model_training_files}) ```
IterableDataset.from_generator() fails with pickle error when provided a generator or iterator
### Describe the bug **Description** Providing a generator in an instantiation of IterableDataset.from_generator() fails with `TypeError: cannot pickle 'generator' object` when the generator argument is supplied with a generator. **Code example** ``` def line_generator(files: List[Path]): if isinstance(f...
29
IterableDataset.from_generator() fails with pickle error when provided a generator or iterator ### Describe the bug **Description** Providing a generator in an instantiation of IterableDataset.from_generator() fails with `TypeError: cannot pickle 'generator' object` when the generator argument is supplied with a ge...
[ -0.1925230324268341, 0.05175022780895233, 0.012485519051551819, 0.2545914649963379, 0.19072987139225006, -0.06797074526548386, 0.3202352523803711, 0.22021400928497314, -0.08589526265859604, 0.06891646981239319, 0.4876116216182709, 0.459286630153656, -0.4644555449485779, -0.0849163085222244...
https://github.com/huggingface/datasets/issues/6118
to anyone reaching this issue, the argument is `gen_kwargs`: ```py train_dataset = IterableDataset.from_generator(line_generator, gen_kwargs={"files": model_training_files}) ```
IterableDataset.from_generator() fails with pickle error when provided a generator or iterator
### Describe the bug **Description** Providing a generator in an instantiation of IterableDataset.from_generator() fails with `TypeError: cannot pickle 'generator' object` when the generator argument is supplied with a generator. **Code example** ``` def line_generator(files: List[Path]): if isinstance(f...
16
IterableDataset.from_generator() fails with pickle error when provided a generator or iterator ### Describe the bug **Description** Providing a generator in an instantiation of IterableDataset.from_generator() fails with `TypeError: cannot pickle 'generator' object` when the generator argument is supplied with a ge...
[ -0.1925230324268341, 0.05175022780895233, 0.012485519051551819, 0.2545914649963379, 0.19072987139225006, -0.06797074526548386, 0.3202352523803711, 0.22021400928497314, -0.08589526265859604, 0.06891646981239319, 0.4876116216182709, 0.459286630153656, -0.4644555449485779, -0.0849163085222244...
https://github.com/huggingface/datasets/issues/6114
You can avoid this by using the `revision` parameter in `load_dataset` to always force downloading a specific commit (if not specified it defaults to HEAD, hence the redownload).
Cache not being used when loading commonvoice 8.0.0
### Describe the bug I have commonvoice 8.0.0 downloaded in `~/.cache/huggingface/datasets/mozilla-foundation___common_voice_8_0/en/8.0.0/b2f8b72f8f30b2e98c41ccf855954d9e35a5fa498c43332df198534ff9797a4a`. The folder contains all the arrow files etc, and was used as the cached version last time I touched the ec2 ins...
28
Cache not being used when loading commonvoice 8.0.0 ### Describe the bug I have commonvoice 8.0.0 downloaded in `~/.cache/huggingface/datasets/mozilla-foundation___common_voice_8_0/en/8.0.0/b2f8b72f8f30b2e98c41ccf855954d9e35a5fa498c43332df198534ff9797a4a`. The folder contains all the arrow files etc, and was used...
[ -0.009360603988170624, 0.14862433075904846, 0.019389845430850983, 0.410950243473053, 0.010040823370218277, 0.1771545559167862, 0.09138081967830658, 0.255706787109375, 0.4379901885986328, -0.15505504608154297, -0.062359511852264404, 0.03413005173206329, 0.33451128005981445, -0.4339959323406...
https://github.com/huggingface/datasets/issues/6114
Thanks @mariosasko this works well, looks like I should have read the documentation a bit more carefully. It is still a bit confusing which hash I should provide: passing `revision = c8fd66e85f086e3abb11eeee55b1737a3d1e8487` from https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0/commits/main cau...
Cache not being used when loading commonvoice 8.0.0
### Describe the bug I have commonvoice 8.0.0 downloaded in `~/.cache/huggingface/datasets/mozilla-foundation___common_voice_8_0/en/8.0.0/b2f8b72f8f30b2e98c41ccf855954d9e35a5fa498c43332df198534ff9797a4a`. The folder contains all the arrow files etc, and was used as the cached version last time I touched the ec2 ins...
59
Cache not being used when loading commonvoice 8.0.0 ### Describe the bug I have commonvoice 8.0.0 downloaded in `~/.cache/huggingface/datasets/mozilla-foundation___common_voice_8_0/en/8.0.0/b2f8b72f8f30b2e98c41ccf855954d9e35a5fa498c43332df198534ff9797a4a`. The folder contains all the arrow files etc, and was used...
[ -0.009360603988170624, 0.14862433075904846, 0.019389845430850983, 0.410950243473053, 0.010040823370218277, 0.1771545559167862, 0.09138081967830658, 0.255706787109375, 0.4379901885986328, -0.15505504608154297, -0.062359511852264404, 0.03413005173206329, 0.33451128005981445, -0.4339959323406...