html_url
stringlengths
48
51
title
stringlengths
5
280
comments
stringlengths
63
51.8k
body
stringlengths
0
36.2k
comment_length
int64
16
1.52k
text
stringlengths
159
54.1k
embeddings
listlengths
768
768
https://github.com/huggingface/datasets/issues/2387
datasets 1.6 ignores cache
I understand your point @stas00, as I am not very convinced with current implementation. My concern is: which numerical value should then pass a user who wants `keep_in_memory=True` by default, independently of dataset size? Currently it is `0` for this case.
Moving from https://github.com/huggingface/transformers/issues/11801#issuecomment-845546612 Quoting @VictorSanh: > > I downgraded datasets to `1.5.0` and printed `tokenized_datasets.cache_files` (L335): > > > `{'train': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/...
41
datasets 1.6 ignores cache Moving from https://github.com/huggingface/transformers/issues/11801#issuecomment-845546612 Quoting @VictorSanh: > > I downgraded datasets to `1.5.0` and printed `tokenized_datasets.cache_files` (L335): > > > `{'train': [{'filename': '/home/victor/.cache/huggingface/datasets/ope...
[ -0.21584829688072205, 0.020310938358306885, 0.04224285110831261, 0.14041554927825928, 0.1821746528148651, 0.046231210231781006, 0.14098046720027924, 0.3139563202857971, 0.0551588274538517, -0.0644526332616806, -0.23593774437904358, -0.05794752761721611, -0.02470039576292038, -0.33157783746...
https://github.com/huggingface/datasets/issues/2387
datasets 1.6 ignores cache
That's a good question, and again the normal bytes can be used for that: ``` MAX_IN_MEMORY_DATASET_SIZE_IN_BYTES=1e12 # (~2**40) ``` Since it's unlikely that anybody will have more than 1TB RAM. It's also silly that it uses BYTES and not MBYTES - that level of refinement doesn't seem to be of a practical use in ...
Moving from https://github.com/huggingface/transformers/issues/11801#issuecomment-845546612 Quoting @VictorSanh: > > I downgraded datasets to `1.5.0` and printed `tokenized_datasets.cache_files` (L335): > > > `{'train': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/...
127
datasets 1.6 ignores cache Moving from https://github.com/huggingface/transformers/issues/11801#issuecomment-845546612 Quoting @VictorSanh: > > I downgraded datasets to `1.5.0` and printed `tokenized_datasets.cache_files` (L335): > > > `{'train': [{'filename': '/home/victor/.cache/huggingface/datasets/ope...
[ -0.21584829688072205, 0.020310938358306885, 0.04224285110831261, 0.14041554927825928, 0.1821746528148651, 0.046231210231781006, 0.14098046720027924, 0.3139563202857971, 0.0551588274538517, -0.0644526332616806, -0.23593774437904358, -0.05794752761721611, -0.02470039576292038, -0.33157783746...
https://github.com/huggingface/datasets/issues/2387
datasets 1.6 ignores cache
Great! Thanks, @stas00. I am implementing your suggestion to turn off default value when set to `0`. For the other suggestion (allowing different metric prefixes), I will discuss with @lhoestq to agree on its implementation.
Moving from https://github.com/huggingface/transformers/issues/11801#issuecomment-845546612 Quoting @VictorSanh: > > I downgraded datasets to `1.5.0` and printed `tokenized_datasets.cache_files` (L335): > > > `{'train': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/...
35
datasets 1.6 ignores cache Moving from https://github.com/huggingface/transformers/issues/11801#issuecomment-845546612 Quoting @VictorSanh: > > I downgraded datasets to `1.5.0` and printed `tokenized_datasets.cache_files` (L335): > > > `{'train': [{'filename': '/home/victor/.cache/huggingface/datasets/ope...
[ -0.21584829688072205, 0.020310938358306885, 0.04224285110831261, 0.14041554927825928, 0.1821746528148651, 0.046231210231781006, 0.14098046720027924, 0.3139563202857971, 0.0551588274538517, -0.0644526332616806, -0.23593774437904358, -0.05794752761721611, -0.02470039576292038, -0.33157783746...
https://github.com/huggingface/datasets/issues/2377
ArrowDataset.save_to_disk produces files that cannot be read using pyarrow.feather
Hi ! This is because we are actually using the arrow streaming format. We plan to switch to the arrow IPC format. More info at #1933
## Describe the bug A clear and concise description of what the bug is. ## Steps to reproduce the bug ```python from datasets import load_dataset from pyarrow import feather dataset = load_dataset('imdb', split='train') dataset.save_to_disk('dataset_dir') table = feather.read_table('dataset_dir/dataset.arro...
26
ArrowDataset.save_to_disk produces files that cannot be read using pyarrow.feather ## Describe the bug A clear and concise description of what the bug is. ## Steps to reproduce the bug ```python from datasets import load_dataset from pyarrow import feather dataset = load_dataset('imdb', split='train') data...
[ -0.2040332406759262, 0.1602182686328888, -0.024091709405183792, 0.37150096893310547, 0.1489746868610382, 0.2544103264808655, -0.006909426301717758, 0.5975210070610046, -0.5161227583885193, -0.11885400116443634, -0.3667038083076477, 0.6461246609687805, -0.07226517796516418, -0.7478834390640...
https://github.com/huggingface/datasets/issues/2377
ArrowDataset.save_to_disk produces files that cannot be read using pyarrow.feather
Not sure if this was resolved, but I am getting a similar error when trying to load a dataset.arrow file directly: `ArrowInvalid: Not an Arrow file`
## Describe the bug A clear and concise description of what the bug is. ## Steps to reproduce the bug ```python from datasets import load_dataset from pyarrow import feather dataset = load_dataset('imdb', split='train') dataset.save_to_disk('dataset_dir') table = feather.read_table('dataset_dir/dataset.arro...
26
ArrowDataset.save_to_disk produces files that cannot be read using pyarrow.feather ## Describe the bug A clear and concise description of what the bug is. ## Steps to reproduce the bug ```python from datasets import load_dataset from pyarrow import feather dataset = load_dataset('imdb', split='train') data...
[ -0.1831992119550705, 0.20106762647628784, -0.007374785840511322, 0.44540685415267944, 0.17873996496200562, 0.25841864943504333, -0.022258523851633072, 0.6304508447647095, -0.5147768259048462, -0.1729961782693863, -0.31670066714286804, 0.6856517791748047, -0.07944158464670181, -0.7523323893...
https://github.com/huggingface/datasets/issues/2377
ArrowDataset.save_to_disk produces files that cannot be read using pyarrow.feather
Since we're using the streaming format, you need to use `open_stream`: ```python import pyarrow as pa def in_memory_arrow_table_from_file(filename: str) -> pa.Table: in_memory_stream = pa.input_stream(filename) opened_stream = pa.ipc.open_stream(in_memory_stream) pa_table = opened_stream.read_all(...
## Describe the bug A clear and concise description of what the bug is. ## Steps to reproduce the bug ```python from datasets import load_dataset from pyarrow import feather dataset = load_dataset('imdb', split='train') dataset.save_to_disk('dataset_dir') table = feather.read_table('dataset_dir/dataset.arro...
49
ArrowDataset.save_to_disk produces files that cannot be read using pyarrow.feather ## Describe the bug A clear and concise description of what the bug is. ## Steps to reproduce the bug ```python from datasets import load_dataset from pyarrow import feather dataset = load_dataset('imdb', split='train') data...
[ -0.21624472737312317, 0.11896482110023499, -0.037573907524347305, 0.3734046220779419, 0.20306625962257385, 0.232123464345932, -0.04541613534092903, 0.5734183192253113, -0.5510637760162354, -0.09114545583724976, -0.33249738812446594, 0.6647444367408752, -0.06050500273704529, -0.786835193634...
https://github.com/huggingface/datasets/issues/2377
ArrowDataset.save_to_disk produces files that cannot be read using pyarrow.feather
> 由于我们使用流格式,因此您需要使用`open_stream`: > > ```python > import pyarrow as pa > > def in_memory_arrow_table_from_file(filename: str) -> pa.Table: > in_memory_stream = pa.input_stream(filename) > opened_stream = pa.ipc.open_stream(in_memory_stream) > pa_table = opened_stream.read_all() > return pa_ta...
## Describe the bug A clear and concise description of what the bug is. ## Steps to reproduce the bug ```python from datasets import load_dataset from pyarrow import feather dataset = load_dataset('imdb', split='train') dataset.save_to_disk('dataset_dir') table = feather.read_table('dataset_dir/dataset.arro...
90
ArrowDataset.save_to_disk produces files that cannot be read using pyarrow.feather ## Describe the bug A clear and concise description of what the bug is. ## Steps to reproduce the bug ```python from datasets import load_dataset from pyarrow import feather dataset = load_dataset('imdb', split='train') data...
[ -0.18661484122276306, 0.15257155895233154, -0.04614218324422836, 0.40615588426589966, 0.19235862791538239, 0.23081019520759583, -0.04866480454802513, 0.5946781635284424, -0.5452988147735596, -0.10046908259391785, -0.3435958921909332, 0.6925766468048096, -0.06452377140522003, -0.77320557832...
https://github.com/huggingface/datasets/issues/2373
Loading dataset from local path
Version below works, checked again in the docs, and data_files should be a path. ``` ds = datasets.load_dataset('my_script.py', data_files='/data/dir/corpus.txt', cache_dir='.') ```
I'm trying to load a local dataset with the code below ``` ds = datasets.load_dataset('my_script.py', data_files='corpus.txt', data_dir='/data/dir', cache_dir='.') ``` But internally a BuilderConfig is created, which tries to u...
21
Loading dataset from local path I'm trying to load a local dataset with the code below ``` ds = datasets.load_dataset('my_script.py', data_files='corpus.txt', data_dir='/data/dir', cache_dir='.') ``` But internally a BuilderC...
[ -0.36348965764045715, 0.22408539056777954, 0.05344425514340401, 0.4514973759651184, 0.14152982831001282, -0.12070658802986145, 0.49879688024520874, 0.06493666768074036, 0.1139446496963501, 0.12790338695049286, 0.16706222295761108, 0.11647893488407135, -0.000026462599635124207, 0.1618971675...
https://github.com/huggingface/datasets/issues/2350
`FaissIndex.save` throws error on GPU
Just in case, this is a workaround that I use in my code and it seems to do the job. ```python if use_gpu_index: data["train"]._indexes["text_emb"].faiss_index = faiss.index_gpu_to_cpu(data["train"]._indexes["text_emb"].faiss_index) ```
## Describe the bug After training an index with a factory string `OPQ16_128,IVF512,PQ32` on GPU, `.save_faiss_index` throws this error. ``` File "index_wikipedia.py", line 119, in <module> data["train"].save_faiss_index("text_emb", index_save_path) File "/home/vlialin/miniconda3/envs/cat/lib/python3.8...
27
`FaissIndex.save` throws error on GPU ## Describe the bug After training an index with a factory string `OPQ16_128,IVF512,PQ32` on GPU, `.save_faiss_index` throws this error. ``` File "index_wikipedia.py", line 119, in <module> data["train"].save_faiss_index("text_emb", index_save_path) File "/home/v...
[ -0.11386916041374207, 0.2311161458492279, 0.049321647733449936, 0.2159426063299179, 0.35923755168914795, 0.1624380648136139, 0.5158483982086182, 0.509063720703125, 0.2508893609046936, 0.2249036431312561, 0.06692999601364136, 0.23696021735668182, 0.05093236640095711, -0.06800352036952972, ...
https://github.com/huggingface/datasets/issues/2347
Add an API to access the language and pretty name of a dataset
Hi ! With @bhavitvyamalik we discussed about having something like ```python from datasets import load_dataset_card dataset_card = load_dataset_card("squad") print(dataset_card.metadata.pretty_name) # Stanford Question Answering Dataset (SQuAD) print(dataset_card.metadata.languages) # ["en"] ``` What do yo...
It would be super nice to have an API to get some metadata of the dataset from the name and args passed to `load_dataset`. This way we could programmatically infer the language and the name of a dataset when creating model cards automatically in the Transformers examples scripts.
95
Add an API to access the language and pretty name of a dataset It would be super nice to have an API to get some metadata of the dataset from the name and args passed to `load_dataset`. This way we could programmatically infer the language and the name of a dataset when creating model cards automatically in the Trans...
[ -0.18838630616664886, 0.11107869446277618, -0.1189650148153305, 0.33187365531921387, 0.3078960180282593, 0.12758103013038635, 0.27148887515068054, 0.270574688911438, -0.1630477011203766, 0.2370297908782959, 0.18236762285232544, 0.5307037234306335, -0.2200148105621338, 0.3426439166069031, ...
https://github.com/huggingface/datasets/issues/2347
Add an API to access the language and pretty name of a dataset
What dataset_info method are you talking about @julien-c ? In `huggingface_hub` I can only see `model_info`.
It would be super nice to have an API to get some metadata of the dataset from the name and args passed to `load_dataset`. This way we could programmatically infer the language and the name of a dataset when creating model cards automatically in the Transformers examples scripts.
16
Add an API to access the language and pretty name of a dataset It would be super nice to have an API to get some metadata of the dataset from the name and args passed to `load_dataset`. This way we could programmatically infer the language and the name of a dataset when creating model cards automatically in the Trans...
[ -0.27594253420829773, -0.14917497336864471, -0.08736248314380646, 0.41507768630981445, 0.342138409614563, 0.11897226423025131, 0.38973909616470337, 0.3709770143032074, -0.022361131384968758, 0.37463676929473877, 0.07790323346853256, 0.5090553760528564, -0.06015053391456604, 0.3841817677021...
https://github.com/huggingface/datasets/issues/2347
Add an API to access the language and pretty name of a dataset
Indeed, this info can now be fetched with `huggingface_hub.dataset_info`, so I think we can close this issue.
It would be super nice to have an API to get some metadata of the dataset from the name and args passed to `load_dataset`. This way we could programmatically infer the language and the name of a dataset when creating model cards automatically in the Transformers examples scripts.
17
Add an API to access the language and pretty name of a dataset It would be super nice to have an API to get some metadata of the dataset from the name and args passed to `load_dataset`. This way we could programmatically infer the language and the name of a dataset when creating model cards automatically in the Trans...
[ -0.32249054312705994, -0.1655098795890808, -0.08794800937175751, 0.37995266914367676, 0.333950936794281, 0.09806307405233383, 0.3920844793319702, 0.380858838558197, 0.07264544069766998, 0.3009544312953949, 0.04058223217725754, 0.4458234906196594, -0.09999758750200272, 0.4816895127296448, ...
https://github.com/huggingface/datasets/issues/2345
[Question] How to move and reuse preprocessed dataset?
<s>Hi :) Can you share with us the code you used ?</s> EDIT: from https://github.com/huggingface/transformers/issues/11665#issuecomment-838348291 I understand you're using the run_clm.py script. Can you share your logs ?
Hi, I am training a gpt-2 from scratch using run_clm.py. I want to move and reuse the preprocessed dataset (It take 2 hour to preprocess), I tried to : copy path_to_cache_dir/datasets to new_cache_dir/datasets set export HF_DATASETS_CACHE="new_cache_dir/" but the program still re-preprocess the whole dataset...
28
[Question] How to move and reuse preprocessed dataset? Hi, I am training a gpt-2 from scratch using run_clm.py. I want to move and reuse the preprocessed dataset (It take 2 hour to preprocess), I tried to : copy path_to_cache_dir/datasets to new_cache_dir/datasets set export HF_DATASETS_CACHE="new_cache_di...
[ -0.16012437641620636, -0.3261335492134094, 0.06538279354572296, 0.33965086936950684, 0.286460280418396, 0.17157283425331116, 0.1354575902223587, 0.18122465908527374, -0.0809113159775734, -0.15583758056163788, -0.13778993487358093, 0.039877284318208694, -0.16895942389965057, 0.0587201043963...
https://github.com/huggingface/datasets/issues/2345
[Question] How to move and reuse preprocessed dataset?
Also note that for the caching to work, you must reuse the exact same parameters as in the first run. Did you change any parameter ? The `preprocessing_num_workers` should also stay the same
Hi, I am training a gpt-2 from scratch using run_clm.py. I want to move and reuse the preprocessed dataset (It take 2 hour to preprocess), I tried to : copy path_to_cache_dir/datasets to new_cache_dir/datasets set export HF_DATASETS_CACHE="new_cache_dir/" but the program still re-preprocess the whole dataset...
33
[Question] How to move and reuse preprocessed dataset? Hi, I am training a gpt-2 from scratch using run_clm.py. I want to move and reuse the preprocessed dataset (It take 2 hour to preprocess), I tried to : copy path_to_cache_dir/datasets to new_cache_dir/datasets set export HF_DATASETS_CACHE="new_cache_di...
[ -0.23785878717899323, -0.1530076414346695, 0.041656073182821274, 0.3084847331047058, 0.18331724405288696, 0.21348834037780762, -0.05760854855179787, 0.2500767409801483, -0.10958105325698853, -0.2252918928861618, -0.04646354168653488, 0.15800440311431885, -0.12602251768112183, -0.0357167311...
https://github.com/huggingface/datasets/issues/2345
[Question] How to move and reuse preprocessed dataset?
> Also note that for the caching to work, you must reuse the exact same parameters as in the first run. Did you change any parameter ? The `preprocessing_num_workers` should also stay the same I only changed the `preprocessing_num_workers` maybe it is the problem~ I will try again~
Hi, I am training a gpt-2 from scratch using run_clm.py. I want to move and reuse the preprocessed dataset (It take 2 hour to preprocess), I tried to : copy path_to_cache_dir/datasets to new_cache_dir/datasets set export HF_DATASETS_CACHE="new_cache_dir/" but the program still re-preprocess the whole dataset...
48
[Question] How to move and reuse preprocessed dataset? Hi, I am training a gpt-2 from scratch using run_clm.py. I want to move and reuse the preprocessed dataset (It take 2 hour to preprocess), I tried to : copy path_to_cache_dir/datasets to new_cache_dir/datasets set export HF_DATASETS_CACHE="new_cache_di...
[ -0.23027920722961426, -0.18237099051475525, 0.04121720418334007, 0.3404654860496521, 0.19807082414627075, 0.20862597227096558, -0.037507008761167526, 0.25146156549453735, -0.10370387136936188, -0.20876769721508026, -0.031436383724212646, 0.16302546858787537, -0.13057363033294678, -0.044030...
https://github.com/huggingface/datasets/issues/2344
Is there a way to join multiple datasets in one?
Hi ! We don't have `join`/`merge` on a certain column as in pandas. Maybe you can just use the [concatenate_datasets](https://huggingface.co/docs/datasets/package_reference/main_classes.html?highlight=concatenate#datasets.concatenate_datasets) function.
**Is your feature request related to a problem? Please describe.** I need to join 2 datasets, one that is in the hub and another I've created from my files. Is there an easy way to join these 2? **Describe the solution you'd like** Id like to join them with a merge or join method, just like pandas dataframes. **Add...
21
Is there a way to join multiple datasets in one? **Is your feature request related to a problem? Please describe.** I need to join 2 datasets, one that is in the hub and another I've created from my files. Is there an easy way to join these 2? **Describe the solution you'd like** Id like to join them with a merge o...
[ -0.47733694314956665, -0.6935086846351624, -0.09794381260871887, 0.17958754301071167, 0.1399444341659546, 0.3247910439968109, -0.20195035636425018, 0.09135641157627106, 0.02328057959675789, 0.031471461057662964, -0.5830709934234619, -0.014750590547919273, 0.20583830773830414, 0.48026418685...
https://github.com/huggingface/datasets/issues/2344
Is there a way to join multiple datasets in one?
Hi! You can use `datasets_sql` for that now. As of recently, PyArrow also supports querying tables via Substrait, so I think we can start adding these methods to the API soon.
**Is your feature request related to a problem? Please describe.** I need to join 2 datasets, one that is in the hub and another I've created from my files. Is there an easy way to join these 2? **Describe the solution you'd like** Id like to join them with a merge or join method, just like pandas dataframes. **Add...
31
Is there a way to join multiple datasets in one? **Is your feature request related to a problem? Please describe.** I need to join 2 datasets, one that is in the hub and another I've created from my files. Is there an easy way to join these 2? **Describe the solution you'd like** Id like to join them with a merge o...
[ -0.5119077563285828, -0.15334022045135498, -0.12520936131477356, 0.12480781972408295, 0.15799427032470703, 0.3068709671497345, -0.16159659624099731, 0.2924729287624359, -0.3040856122970581, -0.004179753363132477, -0.52102130651474, 0.14300335943698883, 0.27716144919395447, 0.13456675410270...
https://github.com/huggingface/datasets/issues/2343
Columns are removed before or after map function applied?
Hi! Columns are removed **after** applying the function and **before** updating the examples with the function's output (as per the docs [here](https://huggingface.co/docs/datasets/package_reference/main_classes#datasets.Dataset.map.remove_columns)). I agree the docs on this should be more clear.
## Describe the bug According to the documentation when applying map function the [remove_columns ](https://huggingface.co/docs/datasets/processing.html#removing-columns) will be removed after they are passed to the function, but in the [source code](https://huggingface.co/docs/datasets/package_reference/main_classes....
32
Columns are removed before or after map function applied? ## Describe the bug According to the documentation when applying map function the [remove_columns ](https://huggingface.co/docs/datasets/processing.html#removing-columns) will be removed after they are passed to the function, but in the [source code](https://...
[ 0.3089647889137268, -0.4776081144809723, -0.025570228695869446, 0.24349844455718994, 0.12835893034934998, -0.050276950001716614, 0.22119426727294922, -0.21544991433620453, 0.3575490117073059, 0.12930987775325775, -0.05823449790477753, 0.3217889070510864, 0.11714256554841995, 0.200594291090...
https://github.com/huggingface/datasets/issues/2337
NonMatchingChecksumError for web_of_science dataset
I've raised a PR for this. Should work with `dataset = load_dataset("web_of_science", "WOS11967", ignore_verifications=True)`once it gets merged into the main branch. Thanks for reporting this!
NonMatchingChecksumError when trying to download the web_of_science dataset. >NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://data.mendeley.com/datasets/9rw3vkcfy4/6/files/c9ea673d-5542-44c0-ab7b-f1311f7d61df/WebOfScience.zip?dl=1'] Setting `ignore_verfications=True` results...
25
NonMatchingChecksumError for web_of_science dataset NonMatchingChecksumError when trying to download the web_of_science dataset. >NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://data.mendeley.com/datasets/9rw3vkcfy4/6/files/c9ea673d-5542-44c0-ab7b-f1311f7d61df/WebOfScience.zi...
[ -0.08515875041484833, -0.07917483150959015, -0.06877351552248001, 0.21224771440029144, 0.14462970197200775, 0.1670498549938202, -0.06744648516178131, 0.35615935921669006, 0.33571118116378784, 0.17037664353847504, -0.1841287910938263, -0.08829446136951447, 0.03202449902892113, -0.0491002164...
https://github.com/huggingface/datasets/issues/2330
Allow passing `desc` to `tqdm` in `Dataset.map()`
I think the user could pass the `desc` parameter to `map` so that it can be displayed in the tqdm progress bar, as suggested by @cccntu. When there's no multiprocessing, the `desc` of the progress bar could be the `desc` passed by the user. In multiprocessing, we were already using a `desc` equal to `"#" + str(rank...
It's normal to have many `map()` calls, and some of them can take a few minutes, it would be nice to have a description on the progress bar. Alternative solution: Print the description before/after the `map()` call.
145
Allow passing `desc` to `tqdm` in `Dataset.map()` It's normal to have many `map()` calls, and some of them can take a few minutes, it would be nice to have a description on the progress bar. Alternative solution: Print the description before/after the `map()` call. I think the user could pass the `desc` parame...
[ -0.3543035686016083, 0.035919710993766785, -0.0605333149433136, -0.1690317541360855, 0.3744511604309082, -0.16675731539726257, 0.2543696165084839, 0.2177436649799347, -0.3104322850704193, 0.41625362634658813, 0.2674729526042938, 0.6729348301887512, -0.018251493573188782, 0.0839983075857162...
https://github.com/huggingface/datasets/issues/2327
A syntax error in example
cc @beurkinger but I think this has been fixed internally and will soon be updated right ?
![image](https://user-images.githubusercontent.com/6883957/117315905-b47a5c00-aeba-11eb-91eb-b2a4a0212a56.png) Sorry to report with an image, I can't find the template source code of this snippet.
17
A syntax error in example ![image](https://user-images.githubusercontent.com/6883957/117315905-b47a5c00-aeba-11eb-91eb-b2a4a0212a56.png) Sorry to report with an image, I can't find the template source code of this snippet. cc @beurkinger but I think this has been fixed internally and will soon be updated right ?
[ 0.0715630054473877, -0.4951070249080658, -0.17972812056541443, -0.15409046411514282, 0.07747344672679901, -0.2150442898273468, 0.19750086963176727, 0.28251951932907104, -0.36412230134010315, 0.16879187524318695, 0.2558269500732422, 0.39970460534095764, 0.05293874070048332, 0.00390862487256...
https://github.com/huggingface/datasets/issues/2323
load_dataset("timit_asr") gives back duplicates of just one sample text
Thanks @ekeleshian for having reported. I am closing this issue once that you updated `datasets`. Feel free to reopen it if the problem persists.
## Describe the bug When you look up on key ["train"] and then ['text'], you get back a list with just one sentence duplicated 4620 times. Namely, the sentence "Would such an act of refusal be useful?". Similarly when you look up ['test'] and then ['text'], the list is one sentence repeated "The bungalow was pleasant...
24
load_dataset("timit_asr") gives back duplicates of just one sample text ## Describe the bug When you look up on key ["train"] and then ['text'], you get back a list with just one sentence duplicated 4620 times. Namely, the sentence "Would such an act of refusal be useful?". Similarly when you look up ['test'] and t...
[ 0.2821884751319885, -0.48902955651283264, 0.06362953782081604, 0.383548378944397, 0.15507689118385315, 0.009322158992290497, 0.20255103707313538, 0.19717781245708466, -0.19604328274726868, 0.02256375551223755, -0.05378580093383789, 0.2588159143924713, -0.060760803520679474, -0.001916140317...
https://github.com/huggingface/datasets/issues/2322
Calls to map are not cached.
I tried upgrading to `datasets==1.6.2` and downgrading to `1.6.0`. Both versions produce the same output. Downgrading to `1.5.0` works and produces the following output for me: ```bash Downloading: 9.20kB [00:00, 3.94MB/s] Downloading: 5.99kB [00:00, 3.29MB/s] No config sp...
## Describe the bug Somehow caching does not work for me anymore. Am I doing something wrong, or is there anything that I missed? ## Steps to reproduce the bug ```python import datasets datasets.set_caching_enabled(True) sst = datasets.load_dataset("sst") def foo(samples, i): print("executed", i[:10])...
387
Calls to map are not cached. ## Describe the bug Somehow caching does not work for me anymore. Am I doing something wrong, or is there anything that I missed? ## Steps to reproduce the bug ```python import datasets datasets.set_caching_enabled(True) sst = datasets.load_dataset("sst") def foo(samples, i):...
[ -0.16529837250709534, -0.3959714472293854, -0.00884755328297615, 0.1456606239080429, 0.20624372363090515, -0.10191776603460312, 0.30026790499687195, 0.12512890994548798, 0.3953084349632263, 0.020620591938495636, -0.0369783416390419, 0.242855042219162, 0.16997182369232178, -0.28493571281433...
https://github.com/huggingface/datasets/issues/2322
Calls to map are not cached.
Hi, set `keep_in_memory` to False when loading a dataset (`sst = load_dataset("sst", keep_in_memory=False)`) to prevent it from loading in-memory. Currently, in-memory datasets fail to find cached files due to this check (always False for them): https://github.com/huggingface/datasets/blob/241a0b4a3a868778ee91e76...
## Describe the bug Somehow caching does not work for me anymore. Am I doing something wrong, or is there anything that I missed? ## Steps to reproduce the bug ```python import datasets datasets.set_caching_enabled(True) sst = datasets.load_dataset("sst") def foo(samples, i): print("executed", i[:10])...
46
Calls to map are not cached. ## Describe the bug Somehow caching does not work for me anymore. Am I doing something wrong, or is there anything that I missed? ## Steps to reproduce the bug ```python import datasets datasets.set_caching_enabled(True) sst = datasets.load_dataset("sst") def foo(samples, i):...
[ -0.16529837250709534, -0.3959714472293854, -0.00884755328297615, 0.1456606239080429, 0.20624372363090515, -0.10191776603460312, 0.30026790499687195, 0.12512890994548798, 0.3953084349632263, 0.020620591938495636, -0.0369783416390419, 0.242855042219162, 0.16997182369232178, -0.28493571281433...
https://github.com/huggingface/datasets/issues/2322
Calls to map are not cached.
Hi @villmow, thanks for reporting. As @mariosasko has pointed out, we did not consider this case when introducing the feature of automatic in-memory for small datasets. This needs to be fixed.
## Describe the bug Somehow caching does not work for me anymore. Am I doing something wrong, or is there anything that I missed? ## Steps to reproduce the bug ```python import datasets datasets.set_caching_enabled(True) sst = datasets.load_dataset("sst") def foo(samples, i): print("executed", i[:10])...
31
Calls to map are not cached. ## Describe the bug Somehow caching does not work for me anymore. Am I doing something wrong, or is there anything that I missed? ## Steps to reproduce the bug ```python import datasets datasets.set_caching_enabled(True) sst = datasets.load_dataset("sst") def foo(samples, i):...
[ -0.16529837250709534, -0.3959714472293854, -0.00884755328297615, 0.1456606239080429, 0.20624372363090515, -0.10191776603460312, 0.30026790499687195, 0.12512890994548798, 0.3953084349632263, 0.020620591938495636, -0.0369783416390419, 0.242855042219162, 0.16997182369232178, -0.28493571281433...
https://github.com/huggingface/datasets/issues/2322
Calls to map are not cached.
Hi ! Currently a dataset that is in memory doesn't know doesn't know in which directory it has to read/write cache files. On the other hand, a dataset that loaded from the disk (via memory mapping) uses the directory from which the dataset is located to read/write cache files. Because of that, currently in-memory d...
## Describe the bug Somehow caching does not work for me anymore. Am I doing something wrong, or is there anything that I missed? ## Steps to reproduce the bug ```python import datasets datasets.set_caching_enabled(True) sst = datasets.load_dataset("sst") def foo(samples, i): print("executed", i[:10])...
82
Calls to map are not cached. ## Describe the bug Somehow caching does not work for me anymore. Am I doing something wrong, or is there anything that I missed? ## Steps to reproduce the bug ```python import datasets datasets.set_caching_enabled(True) sst = datasets.load_dataset("sst") def foo(samples, i):...
[ -0.16529837250709534, -0.3959714472293854, -0.00884755328297615, 0.1456606239080429, 0.20624372363090515, -0.10191776603460312, 0.30026790499687195, 0.12512890994548798, 0.3953084349632263, 0.020620591938495636, -0.0369783416390419, 0.242855042219162, 0.16997182369232178, -0.28493571281433...
https://github.com/huggingface/datasets/issues/2319
UnicodeDecodeError for OSCAR (Afrikaans)
Thanks for reporting, @sgraaf. I am going to have a look at it. I guess the expected codec is "UTF-8". Normally, when no explicitly codec is passed, Python uses one which is platform-dependent. For Linux machines, the default codec is `utf_8`, which is OK. However for Windows machine, the default codec is `cp125...
## Describe the bug When loading the [OSCAR dataset](https://huggingface.co/datasets/oscar) (specifically `unshuffled_deduplicated_af`), I encounter a `UnicodeDecodeError`. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("oscar", "unshuffled_deduplicated_af") ```...
57
UnicodeDecodeError for OSCAR (Afrikaans) ## Describe the bug When loading the [OSCAR dataset](https://huggingface.co/datasets/oscar) (specifically `unshuffled_deduplicated_af`), I encounter a `UnicodeDecodeError`. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset(...
[ -0.06944172829389572, -0.06897546350955963, -0.06865930557250977, 0.5462197661399841, 0.4998696446418762, 0.023580342531204224, 0.1604425460100174, 0.16006425023078918, -0.25320765376091003, 0.26161646842956543, 0.10814131051301956, 0.07456547766923904, -0.13298732042312622, -0.16212663054...
https://github.com/huggingface/datasets/issues/2319
UnicodeDecodeError for OSCAR (Afrikaans)
@sgraaf, I have just merged the fix in the master branch. You can either: - install `datasets` from source code - wait until we make the next release of `datasets` - set the `utf-8` codec as your default instead of `cp1252`. This can be done by activating the Python [UTF-8 mode](https://www.python.org/dev/peps/pe...
## Describe the bug When loading the [OSCAR dataset](https://huggingface.co/datasets/oscar) (specifically `unshuffled_deduplicated_af`), I encounter a `UnicodeDecodeError`. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("oscar", "unshuffled_deduplicated_af") ```...
66
UnicodeDecodeError for OSCAR (Afrikaans) ## Describe the bug When loading the [OSCAR dataset](https://huggingface.co/datasets/oscar) (specifically `unshuffled_deduplicated_af`), I encounter a `UnicodeDecodeError`. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset(...
[ -0.06944172829389572, -0.06897546350955963, -0.06865930557250977, 0.5462197661399841, 0.4998696446418762, 0.023580342531204224, 0.1604425460100174, 0.16006425023078918, -0.25320765376091003, 0.26161646842956543, 0.10814131051301956, 0.07456547766923904, -0.13298732042312622, -0.16212663054...
https://github.com/huggingface/datasets/issues/2318
[api request] API to obtain "dataset_module" dynamic path?
Hi @richardliaw, First, thanks for the compliments. In relation with your request, currently, the dynamic modules path is obtained this way: ```python from datasets.load import init_dynamic_modules, MODULE_NAME_FOR_DYNAMIC_MODULES dynamic_modules_path = init_dynamic_modules(MODULE_NAME_FOR_DYNAMIC_MODULES) ...
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. This is an awesome library. It seems like the dynamic module path in this library has broken some of hyperparameter tuning functionality: https://discuss.huggingface.co/t/using-hyperparamet...
63
[api request] API to obtain "dataset_module" dynamic path? **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. This is an awesome library. It seems like the dynamic module path in this library has broken some of hyperparameter tuning funct...
[ -0.10380332171916962, -0.2795984745025635, -0.13102881610393524, 0.05274248868227005, 0.325447142124176, -0.26348748803138733, -0.06139573082327843, 0.15633611381053925, -0.2127549797296524, 0.3393891751766205, -0.07494530081748962, 0.7778304219245911, -0.4725227355957031, 0.31665480136871...
https://github.com/huggingface/datasets/issues/2318
[api request] API to obtain "dataset_module" dynamic path?
Hi @richardliaw, the feature is on the master branch and will be included in the next release in a couple of weeks.
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. This is an awesome library. It seems like the dynamic module path in this library has broken some of hyperparameter tuning functionality: https://discuss.huggingface.co/t/using-hyperparamet...
22
[api request] API to obtain "dataset_module" dynamic path? **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. This is an awesome library. It seems like the dynamic module path in this library has broken some of hyperparameter tuning funct...
[ -0.12703993916511536, -0.22530508041381836, -0.13680385053157806, 0.12058553099632263, 0.2940101623535156, -0.3005485236644745, -0.08337704837322235, 0.17475005984306335, -0.2136734575033188, 0.36759382486343384, -0.0689019113779068, 0.776881754398346, -0.4621843993663788, 0.37769094109535...
https://github.com/huggingface/datasets/issues/2301
Unable to setup dev env on Windows
Hi @gchhablani, There are some 3rd-party dependencies that require to build code in C. In this case, it is the library `python-Levenshtein`. On Windows, in order to be able to build C code, you need to install at least `Microsoft C++ Build Tools` version 14. You can find more info here: https://visualstudio.micr...
Hi I tried installing the `".[dev]"` version on Windows 10 after cloning. Here is the error I'm facing: ```bat (env) C:\testing\datasets>pip install -e ".[dev]" Obtaining file:///C:/testing/datasets Requirement already satisfied: numpy>=1.17 in c:\programdata\anaconda3\envs\env\lib\site-packages (from datas...
52
Unable to setup dev env on Windows Hi I tried installing the `".[dev]"` version on Windows 10 after cloning. Here is the error I'm facing: ```bat (env) C:\testing\datasets>pip install -e ".[dev]" Obtaining file:///C:/testing/datasets Requirement already satisfied: numpy>=1.17 in c:\programdata\anaconda3\e...
[ -0.41213393211364746, -0.08557842671871185, -0.09772755205631256, -0.13878096640110016, 0.3114476203918457, 0.06837529689073563, 0.34485089778900146, 0.04658693075180054, -0.10013063251972198, 0.1562349498271942, 0.04337969422340393, 0.24242688715457916, 0.15818381309509277, 0.216297298669...
https://github.com/huggingface/datasets/issues/2300
Add VoxPopuli
I'm happy to take this on:) One question: The original unlabelled data is stored unsegmented (see e.g. https://github.com/facebookresearch/voxpopuli/blob/main/voxpopuli/get_unlabelled_data.py#L30), but segmenting the audio in the dataset would require a dependency on something like soundfile or torchaudio. An alternati...
## Adding a Dataset - **Name:** Voxpopuli - **Description:** VoxPopuli is raw data is collected from 2009-2020 European Parliament event recordings - **Paper:** https://arxiv.org/abs/2101.00390 - **Data:** https://github.com/facebookresearch/voxpopuli - **Motivation:** biggest unlabeled speech dataset **Note**:...
65
Add VoxPopuli ## Adding a Dataset - **Name:** Voxpopuli - **Description:** VoxPopuli is raw data is collected from 2009-2020 European Parliament event recordings - **Paper:** https://arxiv.org/abs/2101.00390 - **Data:** https://github.com/facebookresearch/voxpopuli - **Motivation:** biggest unlabeled speech data...
[ -0.2925266921520233, 0.2328720986843109, -0.04869351536035538, -0.07535198330879211, -0.1558787077665329, -0.18521833419799805, 0.3809302747249603, 0.21007348597049713, -0.02608441561460495, 0.25481826066970825, -0.29555580019950867, 0.09394480288028717, -0.5140134692192078, 0.228282228112...
https://github.com/huggingface/datasets/issues/2300
Add VoxPopuli
Hey @jfainberg, This sounds great! I think adding a dependency would not be a big problem, however automatically segmenting the data probably means that it would take a very long time to do: ```python dataset = load_dataset("voxpopuli", "french") ``` => so as a start I think your option 2 is the way to go!
## Adding a Dataset - **Name:** Voxpopuli - **Description:** VoxPopuli is raw data is collected from 2009-2020 European Parliament event recordings - **Paper:** https://arxiv.org/abs/2101.00390 - **Data:** https://github.com/facebookresearch/voxpopuli - **Motivation:** biggest unlabeled speech dataset **Note**:...
54
Add VoxPopuli ## Adding a Dataset - **Name:** Voxpopuli - **Description:** VoxPopuli is raw data is collected from 2009-2020 European Parliament event recordings - **Paper:** https://arxiv.org/abs/2101.00390 - **Data:** https://github.com/facebookresearch/voxpopuli - **Motivation:** biggest unlabeled speech data...
[ -0.36220476031303406, 0.20605126023292542, -0.03822985291481018, 0.0014162883162498474, -0.12140674889087677, -0.12960627675056458, 0.2858930826187134, 0.34885531663894653, 0.18100427091121674, 0.267317533493042, -0.12204393744468689, 0.1734333336353302, -0.5791193246841431, 0.248656466603...
https://github.com/huggingface/datasets/issues/2294
Slow #0 when using map to tokenize.
Hi ! Have you tried other values for `preprocessing_num_workers` ? Is it always process 0 that is slower ? There are no difference between process 0 and the others except that it processes the first shard of the dataset.
Hi, _datasets_ is really amazing! I am following [run_mlm_no_trainer.py](url) to pre-train BERT, and it uses `tokenized_datasets = raw_datasets.map( tokenize_function, batched=True, num_proc=args.preprocessing_num_workers, remove_columns=column_names, loa...
39
Slow #0 when using map to tokenize. Hi, _datasets_ is really amazing! I am following [run_mlm_no_trainer.py](url) to pre-train BERT, and it uses `tokenized_datasets = raw_datasets.map( tokenize_function, batched=True, num_proc=args.preprocessing_num_workers, remove_...
[ -0.43608662486076355, -0.3340420126914978, -0.03318118304014206, -0.055587202310562134, 0.06970155239105225, -0.1944788098335266, 0.3812372088432312, 0.20731580257415771, -0.27480000257492065, 0.05177745968103409, 0.31575727462768555, 0.3878787159919739, -0.23858918249607086, -0.0081711113...
https://github.com/huggingface/datasets/issues/2294
Slow #0 when using map to tokenize.
Hi, I have found the reason of it. Before using the map function to tokenize the data, I concatenate the wikipedia and bookcorpus first, like this: ```if args.dataset_name1 is not None: dataset1 = load_dataset(args.dataset_name1, args.dataset_config_name1, split="train") dataset1 = dataset1.remove_co...
Hi, _datasets_ is really amazing! I am following [run_mlm_no_trainer.py](url) to pre-train BERT, and it uses `tokenized_datasets = raw_datasets.map( tokenize_function, batched=True, num_proc=args.preprocessing_num_workers, remove_columns=column_names, loa...
172
Slow #0 when using map to tokenize. Hi, _datasets_ is really amazing! I am following [run_mlm_no_trainer.py](url) to pre-train BERT, and it uses `tokenized_datasets = raw_datasets.map( tokenize_function, batched=True, num_proc=args.preprocessing_num_workers, remove_...
[ -0.42167845368385315, -0.24637693166732788, -0.00015565194189548492, 0.06709451228380203, 0.030975522473454475, -0.2085663378238678, 0.43102583289146423, 0.22374969720840454, -0.25451645255088806, 0.045073047280311584, 0.23347431421279907, 0.3255724310874939, -0.14147108793258667, 0.017606...
https://github.com/huggingface/datasets/issues/2294
Slow #0 when using map to tokenize.
That makes sense ! You can indeed use `map` on both datasets separately and then concatenate. Another option is to concatenate, then shuffle, and then `map`.
Hi, _datasets_ is really amazing! I am following [run_mlm_no_trainer.py](url) to pre-train BERT, and it uses `tokenized_datasets = raw_datasets.map( tokenize_function, batched=True, num_proc=args.preprocessing_num_workers, remove_columns=column_names, loa...
26
Slow #0 when using map to tokenize. Hi, _datasets_ is really amazing! I am following [run_mlm_no_trainer.py](url) to pre-train BERT, and it uses `tokenized_datasets = raw_datasets.map( tokenize_function, batched=True, num_proc=args.preprocessing_num_workers, remove_...
[ -0.4388079345226288, -0.2752537131309509, -0.0035827066749334335, -0.019504927098751068, 0.037655316293239594, -0.16884666681289673, 0.3846195936203003, 0.2470967173576355, -0.2695712745189667, 0.07264755666255951, 0.1870829463005066, 0.34464719891548157, -0.19860230386257172, 0.0340103805...
https://github.com/huggingface/datasets/issues/2288
Load_dataset for local CSV files
Hi, this is not a standard CSV file (requires additional preprocessing) so I wouldn't label this as s bug. You could parse the examples with the regex module or the string API to extract the data, but the following approach is probably the easiest (once you load the data): ```python import ast # load the dataset ...
The method load_dataset fails to correctly load a dataset from csv. Moreover, I am working on a token-classification task ( POS tagging) , where each row in my CSV contains two columns each of them having a list of strings. row example: ```tokens | labels ['I' , 'am', 'John'] | ['PRON', 'AUX', 'PROPN' ] ``...
72
Load_dataset for local CSV files The method load_dataset fails to correctly load a dataset from csv. Moreover, I am working on a token-classification task ( POS tagging) , where each row in my CSV contains two columns each of them having a list of strings. row example: ```tokens | labels ['I' , 'am', 'John']...
[ -0.1104322075843811, -0.046099722385406494, 0.0017930977046489716, 0.0747472420334816, 0.44804686307907104, 0.06277703493833542, 0.45521366596221924, 0.21968227624893188, 0.29949048161506653, -0.13296644389629364, 0.2060752809047699, 0.4624338150024414, -0.07284647971391678, 0.079717524349...
https://github.com/huggingface/datasets/issues/2288
Load_dataset for local CSV files
Hi, Thanks for the reply. I have already used ```ast.literal_eval``` to evaluate the string into list, but I was getting another error: ``` ArrowInvalid: Could not convert X with type str: tried to convert to int ``` Why this happens ? Should labels be mapped to their ids and use int instead of str ?
The method load_dataset fails to correctly load a dataset from csv. Moreover, I am working on a token-classification task ( POS tagging) , where each row in my CSV contains two columns each of them having a list of strings. row example: ```tokens | labels ['I' , 'am', 'John'] | ['PRON', 'AUX', 'PROPN' ] ``...
55
Load_dataset for local CSV files The method load_dataset fails to correctly load a dataset from csv. Moreover, I am working on a token-classification task ( POS tagging) , where each row in my CSV contains two columns each of them having a list of strings. row example: ```tokens | labels ['I' , 'am', 'John']...
[ -0.17451216280460358, -0.10917861759662628, -0.023106815293431282, 0.09802313894033432, 0.48854607343673706, 0.021457791328430176, 0.4982638657093048, 0.22232051193714142, 0.36614230275154114, -0.057906121015548706, 0.022860044613480568, 0.5268842577934265, -0.04110339656472206, 0.17861622...
https://github.com/huggingface/datasets/issues/2285
Help understanding how to build a dataset for language modeling as with the old TextDataset
I received an answer for this question on the HuggingFace Datasets forum by @lhoestq Hi ! If you want to tokenize line by line, you can use this: ``` max_seq_length = 512 num_proc = 4 def tokenize_function(examples): # Remove empty lines examples["text"] = [line for line in examples["text"] if len(lin...
Hello, I am trying to load a custom dataset that I will then use for language modeling. The dataset consists of a text file that has a whole document in each line, meaning that each line overpasses the normal 512 tokens limit of most tokenizers. I would like to understand what is the process to build a text datas...
270
Help understanding how to build a dataset for language modeling as with the old TextDataset Hello, I am trying to load a custom dataset that I will then use for language modeling. The dataset consists of a text file that has a whole document in each line, meaning that each line overpasses the normal 512 tokens lim...
[ -0.23920311033725739, -0.00018575787544250488, 0.017592549324035645, 0.1512313187122345, 0.13693834841251373, -0.16728411614894867, 0.5160786509513855, 0.0982799082994461, -0.05547754094004631, -0.1596171110868454, 0.18944410979747772, -0.1941065639257431, -0.16465231776237488, 0.134024709...
https://github.com/huggingface/datasets/issues/2279
Compatibility with Ubuntu 18 and GLIBC 2.27?
From the trace this seems like an error in the tokenizer library instead. Do you mind opening an issue at https://github.com/huggingface/tokenizers instead?
## Describe the bug For use on Ubuntu systems, it seems that datasets requires GLIBC 2.29. However, Ubuntu 18 runs with GLIBC 2.27 and it seems [non-trivial to upgrade GLIBC to 2.29 for Ubuntu 18 users](https://www.digitalocean.com/community/questions/how-install-glibc-2-29-or-higher-in-ubuntu-18-04). I'm not sure...
22
Compatibility with Ubuntu 18 and GLIBC 2.27? ## Describe the bug For use on Ubuntu systems, it seems that datasets requires GLIBC 2.29. However, Ubuntu 18 runs with GLIBC 2.27 and it seems [non-trivial to upgrade GLIBC to 2.29 for Ubuntu 18 users](https://www.digitalocean.com/community/questions/how-install-glibc-2-...
[ -0.14281189441680908, -0.17239245772361755, 0.10753287374973297, 0.1302342414855957, 0.05963827669620514, -0.0772043913602829, 0.29086166620254517, 0.2598787248134613, 0.22593893110752106, 0.011138036847114563, 0.17404599487781525, 0.22678975760936737, -0.20159262418746948, 0.0207947436720...
https://github.com/huggingface/datasets/issues/2279
Compatibility with Ubuntu 18 and GLIBC 2.27?
Hi @tginart, thanks for reporting. I think this issue is already open at `tokenizers` library: https://github.com/huggingface/tokenizers/issues/685
## Describe the bug For use on Ubuntu systems, it seems that datasets requires GLIBC 2.29. However, Ubuntu 18 runs with GLIBC 2.27 and it seems [non-trivial to upgrade GLIBC to 2.29 for Ubuntu 18 users](https://www.digitalocean.com/community/questions/how-install-glibc-2-29-or-higher-in-ubuntu-18-04). I'm not sure...
16
Compatibility with Ubuntu 18 and GLIBC 2.27? ## Describe the bug For use on Ubuntu systems, it seems that datasets requires GLIBC 2.29. However, Ubuntu 18 runs with GLIBC 2.27 and it seems [non-trivial to upgrade GLIBC to 2.29 for Ubuntu 18 users](https://www.digitalocean.com/community/questions/how-install-glibc-2-...
[ -0.14281189441680908, -0.17239245772361755, 0.10753287374973297, 0.1302342414855957, 0.05963827669620514, -0.0772043913602829, 0.29086166620254517, 0.2598787248134613, 0.22593893110752106, 0.011138036847114563, 0.17404599487781525, 0.22678975760936737, -0.20159262418746948, 0.0207947436720...
https://github.com/huggingface/datasets/issues/2278
Loss result inGptNeoForCasual
Hi ! I think you might have to ask on the `transformers` repo on or the forum at https://discuss.huggingface.co/ Closing since it's not related to this library
Is there any way you give the " loss" and "logits" results in the gpt neo api?
27
Loss result inGptNeoForCasual Is there any way you give the " loss" and "logits" results in the gpt neo api? Hi ! I think you might have to ask on the `transformers` repo on or the forum at https://discuss.huggingface.co/ Closing since it's not related to this library
[ -0.17251892387866974, -0.5047541856765747, -0.04942303150892258, 0.47317683696746826, -0.0721401795744896, -0.34644362330436707, 0.010857734829187393, 0.0527498759329319, -0.4997347593307495, 0.14229035377502441, -0.09955911338329315, -0.03886134549975395, 0.10090520977973938, 0.2542962133...
https://github.com/huggingface/datasets/issues/2276
concatenate_datasets loads all the data into memory
Therefore, when I try to concatenate larger datasets (5x 35GB data sets) I also get an out of memory error, since over 90GB of swap space was used at the time of the crash: ``` --------------------------------------------------------------------------- MemoryError Traceback (most rece...
## Describe the bug When I try to concatenate 2 datasets (10GB each) , the entire data is loaded into memory instead of being written directly to disk. Interestingly, this happens when trying to save the new dataset to disk or concatenating it again. ![image](https://user-images.githubusercontent.com/7063207/116...
1,031
concatenate_datasets loads all the data into memory ## Describe the bug When I try to concatenate 2 datasets (10GB each) , the entire data is loaded into memory instead of being written directly to disk. Interestingly, this happens when trying to save the new dataset to disk or concatenating it again. ![image]...
[ -0.20849721133708954, -0.1142902597784996, 0.04847157374024391, 0.43464475870132446, 0.19932998716831207, 0.17065325379371643, -0.13739632070064545, 0.2591966390609741, -0.16948160529136658, 0.042984627187252045, 0.026932647451758385, 0.21090881526470184, 0.005909491330385208, -0.228386417...
https://github.com/huggingface/datasets/issues/2276
concatenate_datasets loads all the data into memory
Hi ! this looks like an important issue. Let me try to reproduce this. Cc @samsontmr this might be related to the memory issue you have in #2134
## Describe the bug When I try to concatenate 2 datasets (10GB each) , the entire data is loaded into memory instead of being written directly to disk. Interestingly, this happens when trying to save the new dataset to disk or concatenating it again. ![image](https://user-images.githubusercontent.com/7063207/116...
28
concatenate_datasets loads all the data into memory ## Describe the bug When I try to concatenate 2 datasets (10GB each) , the entire data is loaded into memory instead of being written directly to disk. Interestingly, this happens when trying to save the new dataset to disk or concatenating it again. ![image]...
[ -0.16557887196540833, 0.008643805980682373, 0.02508576214313507, 0.3855164647102356, 0.21441689133644104, 0.1329604685306549, 0.00009705871343612671, 0.23910754919052124, -0.238740935921669, 0.043520569801330566, 0.1007450670003891, 0.18490931391716003, 0.13490571081638336, -0.196389496326...
https://github.com/huggingface/datasets/issues/2276
concatenate_datasets loads all the data into memory
@lhoestq Just went to open a similar issue. It seems like deep copying (tested on master) the dataset object writes the table's record batches (`dset._data._batches`) into RAM. To find the bug, I modified the `_deepcopy` function in `table.py` as follows: ```python def _deepcopy(x, memo: dict): """deepcopy...
## Describe the bug When I try to concatenate 2 datasets (10GB each) , the entire data is loaded into memory instead of being written directly to disk. Interestingly, this happens when trying to save the new dataset to disk or concatenating it again. ![image](https://user-images.githubusercontent.com/7063207/116...
113
concatenate_datasets loads all the data into memory ## Describe the bug When I try to concatenate 2 datasets (10GB each) , the entire data is loaded into memory instead of being written directly to disk. Interestingly, this happens when trying to save the new dataset to disk or concatenating it again. ![image]...
[ -0.11895902454853058, 0.0833052396774292, 0.12607288360595703, 0.371997594833374, 0.017117395997047424, 0.11338674277067184, -0.11379118263721466, 0.34220167994499207, -0.3763221800327301, -0.03133939206600189, -0.0029891831800341606, 0.2833094000816345, 0.10329961031675339, -0.15682861208...
https://github.com/huggingface/datasets/issues/2276
concatenate_datasets loads all the data into memory
Thanks for the insights @mariosasko ! I'm working on a fix. Since this is a big issue I'll make a patch release as soon as this is fixed
## Describe the bug When I try to concatenate 2 datasets (10GB each) , the entire data is loaded into memory instead of being written directly to disk. Interestingly, this happens when trying to save the new dataset to disk or concatenating it again. ![image](https://user-images.githubusercontent.com/7063207/116...
28
concatenate_datasets loads all the data into memory ## Describe the bug When I try to concatenate 2 datasets (10GB each) , the entire data is loaded into memory instead of being written directly to disk. Interestingly, this happens when trying to save the new dataset to disk or concatenating it again. ![image]...
[ -0.1398511677980423, 0.015114650130271912, 0.057670366019010544, 0.36967331171035767, 0.18395699560642242, 0.15967586636543274, -0.03367805853486061, 0.2669214904308319, -0.21304593980312347, 0.008929677307605743, 0.07352765649557114, 0.18218213319778442, 0.10922601819038391, -0.2046646177...
https://github.com/huggingface/datasets/issues/2276
concatenate_datasets loads all the data into memory
Hi @samsontmr @TaskManager91 the fix is on the master branch, feel free to install `datasets` from source and let us know if you still have issues
## Describe the bug When I try to concatenate 2 datasets (10GB each) , the entire data is loaded into memory instead of being written directly to disk. Interestingly, this happens when trying to save the new dataset to disk or concatenating it again. ![image](https://user-images.githubusercontent.com/7063207/116...
26
concatenate_datasets loads all the data into memory ## Describe the bug When I try to concatenate 2 datasets (10GB each) , the entire data is loaded into memory instead of being written directly to disk. Interestingly, this happens when trying to save the new dataset to disk or concatenating it again. ![image]...
[ -0.17059145867824554, 0.009216845035552979, 0.02928430587053299, 0.3677370548248291, 0.17550210654735565, 0.15065094828605652, -0.03633321449160576, 0.25570133328437805, -0.21847639977931976, 0.020554646849632263, 0.07563754916191101, 0.20069871842861176, 0.11371871083974838, -0.1913735270...
https://github.com/huggingface/datasets/issues/2275
SNLI dataset has labels of -1
Hi @puzzler10, Those examples where `gold_label` field was empty, -1 label was alloted to it. In order to remove it you can filter the samples from train/val/test splits. Here's how you can drop those rows from the dataset: `dataset = load_dataset("snli")` `dataset_test_filter = dataset['test'].filter(lambda exampl...
There are a number of rows with a label of -1 in the SNLI dataset. The dataset descriptions [here](https://nlp.stanford.edu/projects/snli/) and [here](https://github.com/huggingface/datasets/tree/master/datasets/snli) don't list -1 as a label possibility, and neither does the dataset viewer. As examples, see index 107...
69
SNLI dataset has labels of -1 There are a number of rows with a label of -1 in the SNLI dataset. The dataset descriptions [here](https://nlp.stanford.edu/projects/snli/) and [here](https://github.com/huggingface/datasets/tree/master/datasets/snli) don't list -1 as a label possibility, and neither does the dataset v...
[ 0.29897603392601013, -0.3761279881000519, -0.03285670652985573, 0.22228223085403442, 0.06941983103752136, 0.08158797770738602, 0.33123964071273804, 0.1691940277814865, 0.18132805824279785, 0.24445879459381104, -0.3545388877391815, 0.48902782797813416, -0.11607944220304489, 0.26432126760482...
https://github.com/huggingface/datasets/issues/2272
Bug in Dataset.class_encode_column
This has been fixed in this commit: https://github.com/huggingface/datasets/pull/2254/commits/88676c930216cd4cc31741b99827b477d2b46cb6 It was introduced in #2246 : using map with `input_columns` doesn't return the other columns anymore
## Describe the bug All the rest of the columns except the one passed to `Dataset.class_encode_column` are discarded. ## Expected results All the original columns should be kept. This needs regression tests.
24
Bug in Dataset.class_encode_column ## Describe the bug All the rest of the columns except the one passed to `Dataset.class_encode_column` are discarded. ## Expected results All the original columns should be kept. This needs regression tests. This has been fixed in this commit: https://github.com/hugg...
[ -0.035784948617219925, -0.15752187371253967, -0.08681079745292664, 0.23763355612754822, 0.5289877653121948, 0.11752558499574661, 0.5686448812484741, 0.37044912576675415, 0.25974535942077637, 0.19476842880249023, -0.13328763842582703, 0.5430200695991516, 0.09942620247602463, 0.3341948390007...
https://github.com/huggingface/datasets/issues/2267
DatasetDict save load Failing test in 1.6 not in 1.5
I'm not able to reproduce this, do you think you can provide a code that creates a DatasetDict that has this issue when saving and reloading ?
## Describe the bug We have a test that saves a DatasetDict to disk and then loads it from disk. In 1.6 there is an incompatibility in the schema. Downgrading to `>1.6` -- fixes the problem. ## Steps to reproduce the bug ```python ### Load a dataset dict from jsonl path = '/test/foo' ds_dict.s...
27
DatasetDict save load Failing test in 1.6 not in 1.5 ## Describe the bug We have a test that saves a DatasetDict to disk and then loads it from disk. In 1.6 there is an incompatibility in the schema. Downgrading to `>1.6` -- fixes the problem. ## Steps to reproduce the bug ```python ### Load a data...
[ -0.19467994570732117, 0.11409823596477509, -0.012763982638716698, 0.284942626953125, 0.06459227204322815, -0.06141713261604309, 0.13233943283557892, 0.4565897285938263, 0.442236989736557, 0.17922884225845337, 0.2358965277671814, 0.38085129857063293, 0.0545867383480072, -0.05616796389222145...
https://github.com/huggingface/datasets/issues/2267
DatasetDict save load Failing test in 1.6 not in 1.5
Hi, I just ran into a similar error. Here is the minimal code to reproduce: ```python from datasets import load_dataset, DatasetDict ds = load_dataset('super_glue', 'multirc') ds.save_to_disk('tempds') ds = DatasetDict.load_from_disk('tempds') ``` ```bash Reusing dataset super_glue (/home/idahl/.cache/h...
## Describe the bug We have a test that saves a DatasetDict to disk and then loads it from disk. In 1.6 there is an incompatibility in the schema. Downgrading to `>1.6` -- fixes the problem. ## Steps to reproduce the bug ```python ### Load a dataset dict from jsonl path = '/test/foo' ds_dict.s...
226
DatasetDict save load Failing test in 1.6 not in 1.5 ## Describe the bug We have a test that saves a DatasetDict to disk and then loads it from disk. In 1.6 there is an incompatibility in the schema. Downgrading to `>1.6` -- fixes the problem. ## Steps to reproduce the bug ```python ### Load a data...
[ -0.19467994570732117, 0.11409823596477509, -0.012763982638716698, 0.284942626953125, 0.06459227204322815, -0.06141713261604309, 0.13233943283557892, 0.4565897285938263, 0.442236989736557, 0.17922884225845337, 0.2358965277671814, 0.38085129857063293, 0.0545867383480072, -0.05616796389222145...
https://github.com/huggingface/datasets/issues/2267
DatasetDict save load Failing test in 1.6 not in 1.5
My current workaround is to remove the idx feature: ``` from datasets import load_dataset, DatasetDict, Value ds = load_dataset('super_glue', 'multirc') ds = ds.remove_columns('idx') ds.save_to_disk('tempds') ds = DatasetDict.load_from_disk('tempds') ``` works.
## Describe the bug We have a test that saves a DatasetDict to disk and then loads it from disk. In 1.6 there is an incompatibility in the schema. Downgrading to `>1.6` -- fixes the problem. ## Steps to reproduce the bug ```python ### Load a dataset dict from jsonl path = '/test/foo' ds_dict.s...
29
DatasetDict save load Failing test in 1.6 not in 1.5 ## Describe the bug We have a test that saves a DatasetDict to disk and then loads it from disk. In 1.6 there is an incompatibility in the schema. Downgrading to `>1.6` -- fixes the problem. ## Steps to reproduce the bug ```python ### Load a data...
[ -0.19467994570732117, 0.11409823596477509, -0.012763982638716698, 0.284942626953125, 0.06459227204322815, -0.06141713261604309, 0.13233943283557892, 0.4565897285938263, 0.442236989736557, 0.17922884225845337, 0.2358965277671814, 0.38085129857063293, 0.0545867383480072, -0.05616796389222145...
https://github.com/huggingface/datasets/issues/2267
DatasetDict save load Failing test in 1.6 not in 1.5
It looks like this issue comes from the order of the fields in the 'idx' struct that is different for some reason. I'm looking into it. Note that as a workaround you can also flatten the nested features with `ds = ds.flatten()`
## Describe the bug We have a test that saves a DatasetDict to disk and then loads it from disk. In 1.6 there is an incompatibility in the schema. Downgrading to `>1.6` -- fixes the problem. ## Steps to reproduce the bug ```python ### Load a dataset dict from jsonl path = '/test/foo' ds_dict.s...
42
DatasetDict save load Failing test in 1.6 not in 1.5 ## Describe the bug We have a test that saves a DatasetDict to disk and then loads it from disk. In 1.6 there is an incompatibility in the schema. Downgrading to `>1.6` -- fixes the problem. ## Steps to reproduce the bug ```python ### Load a data...
[ -0.19467994570732117, 0.11409823596477509, -0.012763982638716698, 0.284942626953125, 0.06459227204322815, -0.06141713261604309, 0.13233943283557892, 0.4565897285938263, 0.442236989736557, 0.17922884225845337, 0.2358965277671814, 0.38085129857063293, 0.0545867383480072, -0.05616796389222145...
https://github.com/huggingface/datasets/issues/2267
DatasetDict save load Failing test in 1.6 not in 1.5
I just pushed a fix on `master`. We'll do a new release soon ! Thanks for reporting
## Describe the bug We have a test that saves a DatasetDict to disk and then loads it from disk. In 1.6 there is an incompatibility in the schema. Downgrading to `>1.6` -- fixes the problem. ## Steps to reproduce the bug ```python ### Load a dataset dict from jsonl path = '/test/foo' ds_dict.s...
17
DatasetDict save load Failing test in 1.6 not in 1.5 ## Describe the bug We have a test that saves a DatasetDict to disk and then loads it from disk. In 1.6 there is an incompatibility in the schema. Downgrading to `>1.6` -- fixes the problem. ## Steps to reproduce the bug ```python ### Load a data...
[ -0.19467994570732117, 0.11409823596477509, -0.012763982638716698, 0.284942626953125, 0.06459227204322815, -0.06141713261604309, 0.13233943283557892, 0.4565897285938263, 0.442236989736557, 0.17922884225845337, 0.2358965277671814, 0.38085129857063293, 0.0545867383480072, -0.05616796389222145...
https://github.com/huggingface/datasets/issues/2262
NewsPH NLI dataset script fails to access test data.
Thanks @bhavitvyamalik for the fix ! The fix will be available in the next release. It's already available on the `master` branch. For now you can either install `datasets` from source or use `script_version="master"` in `load_dataset` to use the fixed version of this dataset.
In Newsph-NLI Dataset (#1192), it fails to access test data. According to the script below, the download manager will download the train data when trying to download the test data. https://github.com/huggingface/datasets/blob/2a2dd6316af2cc7fdf24e4779312e8ee0c7ed98b/datasets/newsph_nli/newsph_nli.py#L71 If yo...
44
NewsPH NLI dataset script fails to access test data. In Newsph-NLI Dataset (#1192), it fails to access test data. According to the script below, the download manager will download the train data when trying to download the test data. https://github.com/huggingface/datasets/blob/2a2dd6316af2cc7fdf24e4779312e8ee...
[ -0.16071607172489166, 0.28491050004959106, -0.1269758641719818, 0.17550498247146606, 0.08590236306190491, 0.04028947651386261, 0.25620779395103455, 0.365884929895401, 0.04193367436528206, 0.3072822391986847, 0.005247820168733597, 0.043371956795454025, 0.015891246497631073, 0.21912206709384...
https://github.com/huggingface/datasets/issues/2256
Running `datase.map` with `num_proc > 1` uses a lot of memory
Thanks for reporting ! We are working on this and we'll do a patch release very soon.
## Describe the bug Running `datase.map` with `num_proc > 1` leads to a tremendous memory usage that requires swapping on disk and it becomes very slow. ## Steps to reproduce the bug ```python from datasets import load_dataset dstc8_datset = load_dataset("roskoN/dstc8-reddit-corpus", keep_in_memory=False) ...
17
Running `datase.map` with `num_proc > 1` uses a lot of memory ## Describe the bug Running `datase.map` with `num_proc > 1` leads to a tremendous memory usage that requires swapping on disk and it becomes very slow. ## Steps to reproduce the bug ```python from datasets import load_dataset dstc8_datset = load...
[ -0.07545448839664459, -0.30183178186416626, -0.04138430953025818, 0.35142219066619873, 0.20282043516635895, 0.09861717373132706, 0.09969004988670349, 0.28427568078041077, 0.2723551094532013, 0.22350499033927917, 0.18526265025138855, 0.43167784810066223, -0.14579465985298157, -0.04350974038...
https://github.com/huggingface/datasets/issues/2256
Running `datase.map` with `num_proc > 1` uses a lot of memory
We did a patch release to fix this issue. It should be fixed in the new version 1.6.1 Thanks again for reporting and for the details :)
## Describe the bug Running `datase.map` with `num_proc > 1` leads to a tremendous memory usage that requires swapping on disk and it becomes very slow. ## Steps to reproduce the bug ```python from datasets import load_dataset dstc8_datset = load_dataset("roskoN/dstc8-reddit-corpus", keep_in_memory=False) ...
27
Running `datase.map` with `num_proc > 1` uses a lot of memory ## Describe the bug Running `datase.map` with `num_proc > 1` leads to a tremendous memory usage that requires swapping on disk and it becomes very slow. ## Steps to reproduce the bug ```python from datasets import load_dataset dstc8_datset = load...
[ -0.07295113056898117, -0.29298198223114014, -0.04242713004350662, 0.37070679664611816, 0.20692743360996246, 0.08793439716100693, 0.08913220465183258, 0.2784171402454376, 0.26258790493011475, 0.22960996627807617, 0.17976847290992737, 0.43095552921295166, -0.1489769071340561, -0.027788668870...
https://github.com/huggingface/datasets/issues/2252
Slow dataloading with big datasets issue persists
Hi ! Sorry to hear that. This may come from another issue then. First can we check if this latency comes from the dataset itself ? You can try to load your dataset and benchmark the speed of querying random examples inside it ? ```python import time import numpy as np from datasets import load_from_disk da...
Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action | Mean duration (s) |Num calls | Total ...
101
Slow dataloading with big datasets issue persists Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action ...
[ -0.40405941009521484, 0.21396172046661377, -0.13430973887443542, 0.16329392790794373, 0.2269006371498108, -0.18088936805725098, 0.21954916417598724, 0.40079012513160706, 0.11868318915367126, -0.009201094508171082, -0.3094535768032074, 0.0660657212138176, 0.17966300249099731, 0.148076206445...
https://github.com/huggingface/datasets/issues/2252
Slow dataloading with big datasets issue persists
Hi @lhoestq, here is the result. I additionally measured time to `load_from_disk`: * 60GB ``` loading took: 22.618776321411133 ramdom indexing 100 times took: 0.10214924812316895 ``` * 600GB ``` loading took: 1176.1764674186707 ramdom indexing 100 times took: 2.853600025177002 ``` Hmm.. I double checke...
Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action | Mean duration (s) |Num calls | Total ...
59
Slow dataloading with big datasets issue persists Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action ...
[ -0.40405941009521484, 0.21396172046661377, -0.13430973887443542, 0.16329392790794373, 0.2269006371498108, -0.18088936805725098, 0.21954916417598724, 0.40079012513160706, 0.11868318915367126, -0.009201094508171082, -0.3094535768032074, 0.0660657212138176, 0.17966300249099731, 0.148076206445...
https://github.com/huggingface/datasets/issues/2252
Slow dataloading with big datasets issue persists
I'm surprised by the speed change. Can you give more details about your dataset ? The speed depends on the number of batches in the arrow tables and the distribution of the lengths of the batches. You can access the batches by doing `dataset.data.to_batches()` (use only for debugging) (it doesn't bring data in memory...
Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action | Mean duration (s) |Num calls | Total ...
84
Slow dataloading with big datasets issue persists Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action ...
[ -0.40405941009521484, 0.21396172046661377, -0.13430973887443542, 0.16329392790794373, 0.2269006371498108, -0.18088936805725098, 0.21954916417598724, 0.40079012513160706, 0.11868318915367126, -0.009201094508171082, -0.3094535768032074, 0.0660657212138176, 0.17966300249099731, 0.148076206445...
https://github.com/huggingface/datasets/issues/2252
Slow dataloading with big datasets issue persists
Also if you could give us more info about your env like your OS, version of pyarrow and if you're using an HDD or a SSD
Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action | Mean duration (s) |Num calls | Total ...
26
Slow dataloading with big datasets issue persists Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action ...
[ -0.40405941009521484, 0.21396172046661377, -0.13430973887443542, 0.16329392790794373, 0.2269006371498108, -0.18088936805725098, 0.21954916417598724, 0.40079012513160706, 0.11868318915367126, -0.009201094508171082, -0.3094535768032074, 0.0660657212138176, 0.17966300249099731, 0.148076206445...
https://github.com/huggingface/datasets/issues/2252
Slow dataloading with big datasets issue persists
Here are some details of my 600GB dataset. This is a dataset AFTER the `map` function and once I load this dataset, I do not use `map` anymore in the training. Regarding the distribution of the lengths, it is almost uniform (90% is 512 tokens, and 10% is randomly shorter than that -- typical setting for language modeli...
Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action | Mean duration (s) |Num calls | Total ...
118
Slow dataloading with big datasets issue persists Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action ...
[ -0.40405941009521484, 0.21396172046661377, -0.13430973887443542, 0.16329392790794373, 0.2269006371498108, -0.18088936805725098, 0.21954916417598724, 0.40079012513160706, 0.11868318915367126, -0.009201094508171082, -0.3094535768032074, 0.0660657212138176, 0.17966300249099731, 0.148076206445...
https://github.com/huggingface/datasets/issues/2252
Slow dataloading with big datasets issue persists
Regarding the environment, I am running the code on a cloud server. Here are some info: ``` Ubuntu 18.04.5 LTS # cat /etc/issue pyarrow 3.0.0 # pip list | grep pyarrow ``` The data is stored in SSD and it is mounted to the machine via Network File System. If you could point me to some of the ...
Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action | Mean duration (s) |Num calls | Total ...
76
Slow dataloading with big datasets issue persists Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action ...
[ -0.40405941009521484, 0.21396172046661377, -0.13430973887443542, 0.16329392790794373, 0.2269006371498108, -0.18088936805725098, 0.21954916417598724, 0.40079012513160706, 0.11868318915367126, -0.009201094508171082, -0.3094535768032074, 0.0660657212138176, 0.17966300249099731, 0.148076206445...
https://github.com/huggingface/datasets/issues/2252
Slow dataloading with big datasets issue persists
I am not sure how I could provide you with the reproducible code, since the problem only arises when the data is big. For the moment, I would share the part that I think is relevant. Feel free to ask me for more info. ```python class MyModel(pytorch_lightning.LightningModule) def setup(self, stage): s...
Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action | Mean duration (s) |Num calls | Total ...
71
Slow dataloading with big datasets issue persists Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action ...
[ -0.40405941009521484, 0.21396172046661377, -0.13430973887443542, 0.16329392790794373, 0.2269006371498108, -0.18088936805725098, 0.21954916417598724, 0.40079012513160706, 0.11868318915367126, -0.009201094508171082, -0.3094535768032074, 0.0660657212138176, 0.17966300249099731, 0.148076206445...
https://github.com/huggingface/datasets/issues/2252
Slow dataloading with big datasets issue persists
Hi ! Sorry for the delay I haven't had a chance to take a look at this yet. Are you still experiencing this issue ? I'm asking because the latest patch release 1.6.2 fixed a few memory issues that could have lead to slow downs
Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action | Mean duration (s) |Num calls | Total ...
45
Slow dataloading with big datasets issue persists Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action ...
[ -0.40405941009521484, 0.21396172046661377, -0.13430973887443542, 0.16329392790794373, 0.2269006371498108, -0.18088936805725098, 0.21954916417598724, 0.40079012513160706, 0.11868318915367126, -0.009201094508171082, -0.3094535768032074, 0.0660657212138176, 0.17966300249099731, 0.148076206445...
https://github.com/huggingface/datasets/issues/2252
Slow dataloading with big datasets issue persists
Hi! I just ran the same code with different datasets (one is 60 GB and another 600 GB), and the latter runs much slower. ETA differs by 10x.
Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action | Mean duration (s) |Num calls | Total ...
28
Slow dataloading with big datasets issue persists Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action ...
[ -0.40405941009521484, 0.21396172046661377, -0.13430973887443542, 0.16329392790794373, 0.2269006371498108, -0.18088936805725098, 0.21954916417598724, 0.40079012513160706, 0.11868318915367126, -0.009201094508171082, -0.3094535768032074, 0.0660657212138176, 0.17966300249099731, 0.148076206445...
https://github.com/huggingface/datasets/issues/2252
Slow dataloading with big datasets issue persists
@lhoestq and @hwijeen Despite upgrading to datasets 1.6.2, still experiencing extremely slow (2h00) loading for a 300Gb local dataset shard size 1.1Gb on local HDD (40Mb/s read speed). This corresponds almost exactly to total data divided by reading speed implying that it reads the entire dataset at each load. St...
Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action | Mean duration (s) |Num calls | Total ...
227
Slow dataloading with big datasets issue persists Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action ...
[ -0.40405941009521484, 0.21396172046661377, -0.13430973887443542, 0.16329392790794373, 0.2269006371498108, -0.18088936805725098, 0.21954916417598724, 0.40079012513160706, 0.11868318915367126, -0.009201094508171082, -0.3094535768032074, 0.0660657212138176, 0.17966300249099731, 0.148076206445...
https://github.com/huggingface/datasets/issues/2252
Slow dataloading with big datasets issue persists
Hi @lhoestq thanks for the quick turn-around, actually the plain vanilla way, without an particular knack or fashion, I tried to look into the documentation for some alternative but couldn't find any > dataset = load_from_disk(dataset_path=os.path.join(datasets_dir,dataset_dir))
Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action | Mean duration (s) |Num calls | Total ...
36
Slow dataloading with big datasets issue persists Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action ...
[ -0.40405941009521484, 0.21396172046661377, -0.13430973887443542, 0.16329392790794373, 0.2269006371498108, -0.18088936805725098, 0.21954916417598724, 0.40079012513160706, 0.11868318915367126, -0.009201094508171082, -0.3094535768032074, 0.0660657212138176, 0.17966300249099731, 0.148076206445...
https://github.com/huggingface/datasets/issues/2252
Slow dataloading with big datasets issue persists
I’m facing the same issue when loading a 900GB dataset (stored via `save_to_disk`): `load_from_disk(path_to_dir)` takes 1.5 hours and htop consistently shows high IO rates > 120 M/s.
Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action | Mean duration (s) |Num calls | Total ...
27
Slow dataloading with big datasets issue persists Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action ...
[ -0.40405941009521484, 0.21396172046661377, -0.13430973887443542, 0.16329392790794373, 0.2269006371498108, -0.18088936805725098, 0.21954916417598724, 0.40079012513160706, 0.11868318915367126, -0.009201094508171082, -0.3094535768032074, 0.0660657212138176, 0.17966300249099731, 0.148076206445...
https://github.com/huggingface/datasets/issues/2252
Slow dataloading with big datasets issue persists
@tsproisl same here, smells like ~~teen spirit~~ intended generator inadvertently ending up iterator @lhoestq perhaps solution to detect bug location in code is to track its signature via HD read usage monitoring, option is to add tracking decorator on top each function and sequentially close all hatches from top to...
Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action | Mean duration (s) |Num calls | Total ...
57
Slow dataloading with big datasets issue persists Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action ...
[ -0.40405941009521484, 0.21396172046661377, -0.13430973887443542, 0.16329392790794373, 0.2269006371498108, -0.18088936805725098, 0.21954916417598724, 0.40079012513160706, 0.11868318915367126, -0.009201094508171082, -0.3094535768032074, 0.0660657212138176, 0.17966300249099731, 0.148076206445...
https://github.com/huggingface/datasets/issues/2252
Slow dataloading with big datasets issue persists
I wasn't able to reproduce this on a toy dataset of around 300GB: ```python import datasets as ds s = ds.load_dataset("squad", split="train") s4000 = ds.concatenate_datasets([s] * 4000) print(ds.utils.size_str(s4000.data.nbytes)) # '295.48 GiB' s4000.save_to_disk("tmp/squad_4000") ``` ```python import...
Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action | Mean duration (s) |Num calls | Total ...
130
Slow dataloading with big datasets issue persists Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action ...
[ -0.40405941009521484, 0.21396172046661377, -0.13430973887443542, 0.16329392790794373, 0.2269006371498108, -0.18088936805725098, 0.21954916417598724, 0.40079012513160706, 0.11868318915367126, -0.009201094508171082, -0.3094535768032074, 0.0660657212138176, 0.17966300249099731, 0.148076206445...
https://github.com/huggingface/datasets/issues/2252
Slow dataloading with big datasets issue persists
Just tried on google colab and got ~1min for a 15GB dataset (only 200 times SQuAD), while it should be instantaneous. The time is spent reading the Apache Arrow table from the memory mapped file. This might come a virtual disk management issue. I'm trying to see if I can still speed it up on colab.
Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action | Mean duration (s) |Num calls | Total ...
56
Slow dataloading with big datasets issue persists Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action ...
[ -0.40405941009521484, 0.21396172046661377, -0.13430973887443542, 0.16329392790794373, 0.2269006371498108, -0.18088936805725098, 0.21954916417598724, 0.40079012513160706, 0.11868318915367126, -0.009201094508171082, -0.3094535768032074, 0.0660657212138176, 0.17966300249099731, 0.148076206445...
https://github.com/huggingface/datasets/issues/2252
Slow dataloading with big datasets issue persists
@lhoestq what is Google Colab's HD read speed, is it possible to introspect incl. make like SSD or HDD ?
Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action | Mean duration (s) |Num calls | Total ...
20
Slow dataloading with big datasets issue persists Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action ...
[ -0.40405941009521484, 0.21396172046661377, -0.13430973887443542, 0.16329392790794373, 0.2269006371498108, -0.18088936805725098, 0.21954916417598724, 0.40079012513160706, 0.11868318915367126, -0.009201094508171082, -0.3094535768032074, 0.0660657212138176, 0.17966300249099731, 0.148076206445...
https://github.com/huggingface/datasets/issues/2252
Slow dataloading with big datasets issue persists
@lhoestq Thank you! The issue is getting more interesting. The second script is still running, but it's definitely taking much longer than 15 seconds.
Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action | Mean duration (s) |Num calls | Total ...
24
Slow dataloading with big datasets issue persists Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action ...
[ -0.40405941009521484, 0.21396172046661377, -0.13430973887443542, 0.16329392790794373, 0.2269006371498108, -0.18088936805725098, 0.21954916417598724, 0.40079012513160706, 0.11868318915367126, -0.009201094508171082, -0.3094535768032074, 0.0660657212138176, 0.17966300249099731, 0.148076206445...
https://github.com/huggingface/datasets/issues/2252
Slow dataloading with big datasets issue persists
Okay, here’s the ouput: Blocks read 158396 Elapsed time: 529.10s Also using datasets 1.6.2. Do you have any ideas, how to pinpoint the problem?
Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action | Mean duration (s) |Num calls | Total ...
24
Slow dataloading with big datasets issue persists Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action ...
[ -0.40405941009521484, 0.21396172046661377, -0.13430973887443542, 0.16329392790794373, 0.2269006371498108, -0.18088936805725098, 0.21954916417598724, 0.40079012513160706, 0.11868318915367126, -0.009201094508171082, -0.3094535768032074, 0.0660657212138176, 0.17966300249099731, 0.148076206445...
https://github.com/huggingface/datasets/issues/2252
Slow dataloading with big datasets issue persists
@lhoestq, @tsproisl mmmh still writing on my side about 1h to go, thinking on it are your large datasets all monoblock unsharded ? mine is 335 times 1.18Gb shards.
Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action | Mean duration (s) |Num calls | Total ...
29
Slow dataloading with big datasets issue persists Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action ...
[ -0.40405941009521484, 0.21396172046661377, -0.13430973887443542, 0.16329392790794373, 0.2269006371498108, -0.18088936805725098, 0.21954916417598724, 0.40079012513160706, 0.11868318915367126, -0.009201094508171082, -0.3094535768032074, 0.0660657212138176, 0.17966300249099731, 0.148076206445...
https://github.com/huggingface/datasets/issues/2252
Slow dataloading with big datasets issue persists
The 529.10s was a bit too optimistic. I cancelled the reading process once before running it completely, therefore the harddrive cache probably did its work. Here are three consecutive runs First run (freshly written to disk): Blocks read 309702 Elapsed time: 1267.74s Second run (immediately after): Blocks read...
Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action | Mean duration (s) |Num calls | Total ...
62
Slow dataloading with big datasets issue persists Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action ...
[ -0.40405941009521484, 0.21396172046661377, -0.13430973887443542, 0.16329392790794373, 0.2269006371498108, -0.18088936805725098, 0.21954916417598724, 0.40079012513160706, 0.11868318915367126, -0.009201094508171082, -0.3094535768032074, 0.0660657212138176, 0.17966300249099731, 0.148076206445...
https://github.com/huggingface/datasets/issues/2252
Slow dataloading with big datasets issue persists
@lhoestq First test > elapsed time: 11219.05s Second test running bear with me, for Windows users slight trick to modify original "disk0" string: First find physical unit relevant key in dictionnary ``` import psutil psutil.disk_io_counters(perdisk=True) ``` > {'PhysicalDrive0': sdiskio(read_count=18453...
Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action | Mean duration (s) |Num calls | Total ...
115
Slow dataloading with big datasets issue persists Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action ...
[ -0.40405941009521484, 0.21396172046661377, -0.13430973887443542, 0.16329392790794373, 0.2269006371498108, -0.18088936805725098, 0.21954916417598724, 0.40079012513160706, 0.11868318915367126, -0.009201094508171082, -0.3094535768032074, 0.0660657212138176, 0.17966300249099731, 0.148076206445...
https://github.com/huggingface/datasets/issues/2252
Slow dataloading with big datasets issue persists
Unfortunately no. Thanks for running the benchmark though, it shows that you machine does a lot of read operations. This is not expected: in other machines it does almost no read operations which enables a very fast loading. I did some tests on google colab and have the same issue. The first time the dataset arrow f...
Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action | Mean duration (s) |Num calls | Total ...
177
Slow dataloading with big datasets issue persists Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action ...
[ -0.40405941009521484, 0.21396172046661377, -0.13430973887443542, 0.16329392790794373, 0.2269006371498108, -0.18088936805725098, 0.21954916417598724, 0.40079012513160706, 0.11868318915367126, -0.009201094508171082, -0.3094535768032074, 0.0660657212138176, 0.17966300249099731, 0.148076206445...
https://github.com/huggingface/datasets/issues/2252
Slow dataloading with big datasets issue persists
Just want to say that I am seeing the same issue. Dataset size if 268GB and it takes **3 hours** to load `load_from_disk`, using dataset version `1.9.0`. Filesystem underneath is `Lustre`
Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action | Mean duration (s) |Num calls | Total ...
31
Slow dataloading with big datasets issue persists Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action ...
[ -0.40405941009521484, 0.21396172046661377, -0.13430973887443542, 0.16329392790794373, 0.2269006371498108, -0.18088936805725098, 0.21954916417598724, 0.40079012513160706, 0.11868318915367126, -0.009201094508171082, -0.3094535768032074, 0.0660657212138176, 0.17966300249099731, 0.148076206445...
https://github.com/huggingface/datasets/issues/2252
Slow dataloading with big datasets issue persists
Hi @lhoestq, confirmed Windows issue, exact same code running on Linux OS total loading time about 3 minutes.
Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action | Mean duration (s) |Num calls | Total ...
18
Slow dataloading with big datasets issue persists Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action ...
[ -0.40405941009521484, 0.21396172046661377, -0.13430973887443542, 0.16329392790794373, 0.2269006371498108, -0.18088936805725098, 0.21954916417598724, 0.40079012513160706, 0.11868318915367126, -0.009201094508171082, -0.3094535768032074, 0.0660657212138176, 0.17966300249099731, 0.148076206445...
https://github.com/huggingface/datasets/issues/2252
Slow dataloading with big datasets issue persists
Hmm that's different from what I got. I was on Ubuntu when reporting the initial issue.
Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action | Mean duration (s) |Num calls | Total ...
16
Slow dataloading with big datasets issue persists Hi, I reported too slow data fetching when data is large(#2210) a couple of weeks ago, and @lhoestq referred me to the fix (#2122). However, the problem seems to persist. Here is the profiled results: 1) Running with 60GB ``` Action ...
[ -0.40405941009521484, 0.21396172046661377, -0.13430973887443542, 0.16329392790794373, 0.2269006371498108, -0.18088936805725098, 0.21954916417598724, 0.40079012513160706, 0.11868318915367126, -0.009201094508171082, -0.3094535768032074, 0.0660657212138176, 0.17966300249099731, 0.148076206445...
https://github.com/huggingface/datasets/issues/2250
some issue in loading local txt file as Dataset for run_mlm.py
Hi, 1. try ```python dataset = load_dataset("text", data_files={"train": ["a1.txt", "b1.txt"], "test": ["c1.txt"]}) ``` instead. Sadly, I can't reproduce the error on my machine. If the above code doesn't resolve the issue, try to update the library to the newest version (`pip instal...
![image](https://user-images.githubusercontent.com/14968123/115773877-18cef300-a3c6-11eb-8e58-a9cbfd1001ec.png) first of all, I tried to load 3 .txt files as a dataset (sure that the directory and permission is OK.), I face with the below error. > FileNotFoundError: [Errno 2] No such file or directory: 'c' by ...
110
some issue in loading local txt file as Dataset for run_mlm.py ![image](https://user-images.githubusercontent.com/14968123/115773877-18cef300-a3c6-11eb-8e58-a9cbfd1001ec.png) first of all, I tried to load 3 .txt files as a dataset (sure that the directory and permission is OK.), I face with the below error. > F...
[ -0.2187606245279312, -0.16674183309078217, 0.03139004483819008, 0.42028743028640747, 0.41028523445129395, 0.20862680673599243, 0.3599505126476288, 0.3321826756000519, 0.09591753780841827, -0.08650469779968262, 0.14329592883586884, 0.11218525469303131, -0.3130260109901428, 0.115406028926372...
https://github.com/huggingface/datasets/issues/2243
Map is slow and processes batches one after another
Hi @villmow, thanks for reporting. Could you please try with the Datasets version 1.6? We released it yesterday and it fixes some issues about the processing speed. You can see the fix implemented by @lhoestq here: #2122. Once you update Datasets, please confirm if the problem persists.
## Describe the bug I have a somewhat unclear bug to me, where I can't figure out what the problem is. The code works as expected on a small subset of my dataset (2000 samples) on my local machine, but when I execute the same code with a larger dataset (1.4 million samples) this problem occurs. Thats why I can't giv...
47
Map is slow and processes batches one after another ## Describe the bug I have a somewhat unclear bug to me, where I can't figure out what the problem is. The code works as expected on a small subset of my dataset (2000 samples) on my local machine, but when I execute the same code with a larger dataset (1.4 milli...
[ -0.3536393642425537, -0.41076377034187317, -0.09764088690280914, 0.25704893469810486, -0.007618822157382965, 0.11197612434625626, 0.18846511840820312, 0.3910500109195709, 0.4355854094028473, -0.013238787651062012, 0.256710410118103, 0.3540888726711273, 0.009039230644702911, -0.151752620935...
https://github.com/huggingface/datasets/issues/2243
Map is slow and processes batches one after another
Hi @albertvillanova, thanks for the reply. I just tried the new version and the problem still persists. Do I need to rebuild the saved dataset (which I load from disk) with the 1.6.0 version of datasets? My script loads this dataset and creates new datasets from it. I tried it without rebuilding. See this short ...
## Describe the bug I have a somewhat unclear bug to me, where I can't figure out what the problem is. The code works as expected on a small subset of my dataset (2000 samples) on my local machine, but when I execute the same code with a larger dataset (1.4 million samples) this problem occurs. Thats why I can't giv...
70
Map is slow and processes batches one after another ## Describe the bug I have a somewhat unclear bug to me, where I can't figure out what the problem is. The code works as expected on a small subset of my dataset (2000 samples) on my local machine, but when I execute the same code with a larger dataset (1.4 milli...
[ -0.3630146086215973, -0.33556944131851196, -0.08693204820156097, 0.2914976477622986, 0.004804924130439758, 0.08502497524023056, 0.20765304565429688, 0.39800554513931274, 0.43489429354667664, -0.008964091539382935, 0.21259452402591705, 0.2832149863243103, -0.025046374648809433, -0.204258501...
https://github.com/huggingface/datasets/issues/2243
Map is slow and processes batches one after another
There can be a bit of delay between the creations of the processes but this delay should be the same for both your `map` calls. We should look into this. Also if you hav some code that reproduces this issue on google colab that'd be really useful ! Regarding the speed differences: This looks like a similar issue a...
## Describe the bug I have a somewhat unclear bug to me, where I can't figure out what the problem is. The code works as expected on a small subset of my dataset (2000 samples) on my local machine, but when I execute the same code with a larger dataset (1.4 million samples) this problem occurs. Thats why I can't giv...
103
Map is slow and processes batches one after another ## Describe the bug I have a somewhat unclear bug to me, where I can't figure out what the problem is. The code works as expected on a small subset of my dataset (2000 samples) on my local machine, but when I execute the same code with a larger dataset (1.4 milli...
[ -0.31948596239089966, -0.4774059057235718, -0.07475784420967102, 0.3302202820777893, -0.0672009289264679, 0.041248731315135956, 0.2097332775592804, 0.3263498544692993, 0.4367236793041229, 0.029365524649620056, 0.24169370532035828, 0.3490331768989563, 0.019093399867415428, -0.03885126486420...
https://github.com/huggingface/datasets/issues/2243
Map is slow and processes batches one after another
Upgrade to 1.6.1 solved my problem somehow. I did not change any of my code, but now it starts all processes around the same time.
## Describe the bug I have a somewhat unclear bug to me, where I can't figure out what the problem is. The code works as expected on a small subset of my dataset (2000 samples) on my local machine, but when I execute the same code with a larger dataset (1.4 million samples) this problem occurs. Thats why I can't giv...
25
Map is slow and processes batches one after another ## Describe the bug I have a somewhat unclear bug to me, where I can't figure out what the problem is. The code works as expected on a small subset of my dataset (2000 samples) on my local machine, but when I execute the same code with a larger dataset (1.4 milli...
[ -0.3285203278064728, -0.4251142144203186, -0.09021840989589691, 0.3159680962562561, 0.017065268009901047, 0.09015657752752304, 0.20944280922412872, 0.44471967220306396, 0.4825792908668518, 0.06496218591928482, 0.25104212760925293, 0.3160925805568695, -0.0560898631811142, -0.314390867948532...
https://github.com/huggingface/datasets/issues/2243
Map is slow and processes batches one after another
Nice ! I'm glad this works now. Closing for now, but feel free to re-open if you experience this issue again.
## Describe the bug I have a somewhat unclear bug to me, where I can't figure out what the problem is. The code works as expected on a small subset of my dataset (2000 samples) on my local machine, but when I execute the same code with a larger dataset (1.4 million samples) this problem occurs. Thats why I can't giv...
21
Map is slow and processes batches one after another ## Describe the bug I have a somewhat unclear bug to me, where I can't figure out what the problem is. The code works as expected on a small subset of my dataset (2000 samples) on my local machine, but when I execute the same code with a larger dataset (1.4 milli...
[ -0.30707451701164246, -0.46950411796569824, -0.09229378402233124, 0.2605441212654114, 0.023779423907399178, 0.08166911453008652, 0.20609715580940247, 0.38727980852127075, 0.4719316363334656, 0.020735256373882294, 0.2926185727119446, 0.3568666875362396, 0.015233403071761131, -0.172343298792...
https://github.com/huggingface/datasets/issues/2239
Error loading wikihow dataset
Hi @odellus, thanks for reporting. The `wikihow` dataset has 2 versions: - `all`: Consisting of the concatenation of all paragraphs as the articles and the bold lines as the reference summaries. - `sep`: Consisting of each paragraph and its summary. Therefore, in order to load it, you have to specify which vers...
## Describe the bug When attempting to load wikihow into a dataset with ```python from datasets import load_dataset dataset = load_dataset('wikihow', data_dir='./wikihow') ``` I get the message: ``` AttributeError: 'BuilderConfig' object has no attribute 'filename' ``` at the end of a [full stack trace](htt...
71
Error loading wikihow dataset ## Describe the bug When attempting to load wikihow into a dataset with ```python from datasets import load_dataset dataset = load_dataset('wikihow', data_dir='./wikihow') ``` I get the message: ``` AttributeError: 'BuilderConfig' object has no attribute 'filename' ``` at the...
[ -0.22749952971935272, 0.37022334337234497, 0.023809470236301422, 0.398794949054718, 0.2537098526954651, 0.27477896213531494, 0.4276535212993622, 0.439177542924881, 0.2458432912826538, 0.09350797533988953, 0.21628527343273163, 0.3853777050971985, -0.012894685380160809, 0.18638677895069122, ...
https://github.com/huggingface/datasets/issues/2239
Error loading wikihow dataset
Good call out. I did try that and that's when it told me to download the dataset. Don't believe I have tried it with local files. Will try first thing in the morning and get back to you. On Mon, Apr 19, 2021, 11:17 PM Albert Villanova del Moral < ***@***.***> wrote: > Hi @odellus <https://github.com/odellus>, thanks ...
## Describe the bug When attempting to load wikihow into a dataset with ```python from datasets import load_dataset dataset = load_dataset('wikihow', data_dir='./wikihow') ``` I get the message: ``` AttributeError: 'BuilderConfig' object has no attribute 'filename' ``` at the end of a [full stack trace](htt...
168
Error loading wikihow dataset ## Describe the bug When attempting to load wikihow into a dataset with ```python from datasets import load_dataset dataset = load_dataset('wikihow', data_dir='./wikihow') ``` I get the message: ``` AttributeError: 'BuilderConfig' object has no attribute 'filename' ``` at the...
[ -0.22749952971935272, 0.37022334337234497, 0.023809470236301422, 0.398794949054718, 0.2537098526954651, 0.27477896213531494, 0.4276535212993622, 0.439177542924881, 0.2458432912826538, 0.09350797533988953, 0.21628527343273163, 0.3853777050971985, -0.012894685380160809, 0.18638677895069122, ...
https://github.com/huggingface/datasets/issues/2239
Error loading wikihow dataset
Hi @odellus, yes you are right. Due to the server where the `wikihow` dataset is hosted, the dataset can't be downloaded automatically by `huggingface` and you have to download it manually as you did. Nevertheless, you have to specify which dataset version you would like to load anyway: ```python dataset = load...
## Describe the bug When attempting to load wikihow into a dataset with ```python from datasets import load_dataset dataset = load_dataset('wikihow', data_dir='./wikihow') ``` I get the message: ``` AttributeError: 'BuilderConfig' object has no attribute 'filename' ``` at the end of a [full stack trace](htt...
90
Error loading wikihow dataset ## Describe the bug When attempting to load wikihow into a dataset with ```python from datasets import load_dataset dataset = load_dataset('wikihow', data_dir='./wikihow') ``` I get the message: ``` AttributeError: 'BuilderConfig' object has no attribute 'filename' ``` at the...
[ -0.22749952971935272, 0.37022334337234497, 0.023809470236301422, 0.398794949054718, 0.2537098526954651, 0.27477896213531494, 0.4276535212993622, 0.439177542924881, 0.2458432912826538, 0.09350797533988953, 0.21628527343273163, 0.3853777050971985, -0.012894685380160809, 0.18638677895069122, ...
https://github.com/huggingface/datasets/issues/2237
Update Dataset.dataset_size after transformed with map
@albertvillanova I would like to take this up. It would be great if you could point me as to how the dataset size is calculated in HF. Thanks!
After loading a dataset, if we transform it by using `.map` its `dataset_size` attirbute is not updated.
28
Update Dataset.dataset_size after transformed with map After loading a dataset, if we transform it by using `.map` its `dataset_size` attirbute is not updated. @albertvillanova I would like to take this up. It would be great if you could point me as to how the dataset size is calculated in HF. Thanks!
[ -0.21400554478168488, -0.3152700662612915, -0.12281586229801178, 0.15191903710365295, 0.06060885265469551, 0.01968228816986084, 0.28132688999176025, -0.1209016889333725, 0.1866588145494461, 0.11718982458114624, -0.1872750222682953, 0.0038693633396178484, 0.3808470070362091, 0.1846311539411...
https://github.com/huggingface/datasets/issues/2230
Keys yielded while generating dataset are not being checked
Hi ! Indeed there's no verification on the uniqueness nor the types of the keys. Do you already have some ideas of what you would like to implement and how ?
The keys used in the dataset generation script to ensure the same order is generated on every user's end should be checked for their types (i.e either `str` or `int`) as well as whether they are unique or not. Currently, the keys are not being checked for any of these, as evident from `xnli' dataset generation: https...
31
Keys yielded while generating dataset are not being checked The keys used in the dataset generation script to ensure the same order is generated on every user's end should be checked for their types (i.e either `str` or `int`) as well as whether they are unique or not. Currently, the keys are not being checked for a...
[ 0.027536850422620773, -0.21593120694160461, 0.029170561581850052, 0.4762757420539856, 0.06841956824064255, -0.23636242747306824, 0.41689804196357727, 0.08041307330131531, 0.43124350905418396, 0.13391166925430298, 0.16721917688846588, 0.350257009267807, -0.020680762827396393, 0.206516668200...
https://github.com/huggingface/datasets/issues/2230
Keys yielded while generating dataset are not being checked
Hey @lhoestq, thank you so much for the opportunity. Although I haven't had much experience with the HF Datasets code, after a careful look at how the `ArrowWriter` functions, I think we can implement this as follows: 1. First, we would have to update the `ArrowWriter.write()` function here: https://github.com/hu...
The keys used in the dataset generation script to ensure the same order is generated on every user's end should be checked for their types (i.e either `str` or `int`) as well as whether they are unique or not. Currently, the keys are not being checked for any of these, as evident from `xnli' dataset generation: https...
235
Keys yielded while generating dataset are not being checked The keys used in the dataset generation script to ensure the same order is generated on every user's end should be checked for their types (i.e either `str` or `int`) as well as whether they are unique or not. Currently, the keys are not being checked for a...
[ 0.027536850422620773, -0.21593120694160461, 0.029170561581850052, 0.4762757420539856, 0.06841956824064255, -0.23636242747306824, 0.41689804196357727, 0.08041307330131531, 0.43124350905418396, 0.13391166925430298, 0.16721917688846588, 0.350257009267807, -0.020680762827396393, 0.206516668200...
https://github.com/huggingface/datasets/issues/2230
Keys yielded while generating dataset are not being checked
Interesting ! We keep the dataset sorted in the order examples are generated by the builder (we expect the dataset builders to generate examples in deterministic order). Therefore I don't think we should shuffle the examples with the hashing. Let me know what you think. Other that that, I really like the idea of chec...
The keys used in the dataset generation script to ensure the same order is generated on every user's end should be checked for their types (i.e either `str` or `int`) as well as whether they are unique or not. Currently, the keys are not being checked for any of these, as evident from `xnli' dataset generation: https...
86
Keys yielded while generating dataset are not being checked The keys used in the dataset generation script to ensure the same order is generated on every user's end should be checked for their types (i.e either `str` or `int`) as well as whether they are unique or not. Currently, the keys are not being checked for a...
[ 0.027536850422620773, -0.21593120694160461, 0.029170561581850052, 0.4762757420539856, 0.06841956824064255, -0.23636242747306824, 0.41689804196357727, 0.08041307330131531, 0.43124350905418396, 0.13391166925430298, 0.16721917688846588, 0.350257009267807, -0.020680762827396393, 0.206516668200...
https://github.com/huggingface/datasets/issues/2230
Keys yielded while generating dataset are not being checked
@lhoestq I'm glad you liked the idea! I think that since the keys will be unique and deterministic in the nature themselves, so even if we shuffle the examples according to the hash, a deterministic order would still be maintained (as the keys will always have the same hash, whenever the dataset is generated). And s...
The keys used in the dataset generation script to ensure the same order is generated on every user's end should be checked for their types (i.e either `str` or `int`) as well as whether they are unique or not. Currently, the keys are not being checked for any of these, as evident from `xnli' dataset generation: https...
171
Keys yielded while generating dataset are not being checked The keys used in the dataset generation script to ensure the same order is generated on every user's end should be checked for their types (i.e either `str` or `int`) as well as whether they are unique or not. Currently, the keys are not being checked for a...
[ 0.027536850422620773, -0.21593120694160461, 0.029170561581850052, 0.4762757420539856, 0.06841956824064255, -0.23636242747306824, 0.41689804196357727, 0.08041307330131531, 0.43124350905418396, 0.13391166925430298, 0.16721917688846588, 0.350257009267807, -0.020680762827396393, 0.206516668200...
https://github.com/huggingface/datasets/issues/2230
Keys yielded while generating dataset are not being checked
When users load their own data, they expect the order to stay the same. I think that shuffling the data can make things inconvenient. > I think that this is also what was originally envisioned as mentioned in the documentation here: This part was originally developed by tensorflow datasets, and tensorflow dataset...
The keys used in the dataset generation script to ensure the same order is generated on every user's end should be checked for their types (i.e either `str` or `int`) as well as whether they are unique or not. Currently, the keys are not being checked for any of these, as evident from `xnli' dataset generation: https...
224
Keys yielded while generating dataset are not being checked The keys used in the dataset generation script to ensure the same order is generated on every user's end should be checked for their types (i.e either `str` or `int`) as well as whether they are unique or not. Currently, the keys are not being checked for a...
[ 0.027536850422620773, -0.21593120694160461, 0.029170561581850052, 0.4762757420539856, 0.06841956824064255, -0.23636242747306824, 0.41689804196357727, 0.08041307330131531, 0.43124350905418396, 0.13391166925430298, 0.16721917688846588, 0.350257009267807, -0.020680762827396393, 0.206516668200...
https://github.com/huggingface/datasets/issues/2230
Keys yielded while generating dataset are not being checked
Yes I think we want to keep the original order by default and only shuffle when the user ask for it (for instance by calling `dataset.shuffle()`). That’s how I had it in mind originally.
The keys used in the dataset generation script to ensure the same order is generated on every user's end should be checked for their types (i.e either `str` or `int`) as well as whether they are unique or not. Currently, the keys are not being checked for any of these, as evident from `xnli' dataset generation: https...
34
Keys yielded while generating dataset are not being checked The keys used in the dataset generation script to ensure the same order is generated on every user's end should be checked for their types (i.e either `str` or `int`) as well as whether they are unique or not. Currently, the keys are not being checked for a...
[ 0.027536850422620773, -0.21593120694160461, 0.029170561581850052, 0.4762757420539856, 0.06841956824064255, -0.23636242747306824, 0.41689804196357727, 0.08041307330131531, 0.43124350905418396, 0.13391166925430298, 0.16721917688846588, 0.350257009267807, -0.020680762827396393, 0.206516668200...
https://github.com/huggingface/datasets/issues/2230
Keys yielded while generating dataset are not being checked
Hey @lhoestq, I just had a more in-depth look at the original TFDS code about why the keys and hash were used in the first place. In my opinion, the only use that the `hash(key)` serves is that it allows us to shuffle the examples in a deterministic order (as each example will always yield the same key and thus, the...
The keys used in the dataset generation script to ensure the same order is generated on every user's end should be checked for their types (i.e either `str` or `int`) as well as whether they are unique or not. Currently, the keys are not being checked for any of these, as evident from `xnli' dataset generation: https...
160
Keys yielded while generating dataset are not being checked The keys used in the dataset generation script to ensure the same order is generated on every user's end should be checked for their types (i.e either `str` or `int`) as well as whether they are unique or not. Currently, the keys are not being checked for a...
[ 0.027536850422620773, -0.21593120694160461, 0.029170561581850052, 0.4762757420539856, 0.06841956824064255, -0.23636242747306824, 0.41689804196357727, 0.08041307330131531, 0.43124350905418396, 0.13391166925430298, 0.16721917688846588, 0.350257009267807, -0.020680762827396393, 0.206516668200...
https://github.com/huggingface/datasets/issues/2230
Keys yielded while generating dataset are not being checked
In `datasets` the keys are currently ignored. For shuffling we don't use the keys. Instead we shuffle an array of indices. Since both the original order of the dataset and the indices shuffling are deterministic, then `dataset.shuffle` is deterministic as well. We can use it to: 1. detect duplicates 2. verify that ...
The keys used in the dataset generation script to ensure the same order is generated on every user's end should be checked for their types (i.e either `str` or `int`) as well as whether they are unique or not. Currently, the keys are not being checked for any of these, as evident from `xnli' dataset generation: https...
62
Keys yielded while generating dataset are not being checked The keys used in the dataset generation script to ensure the same order is generated on every user's end should be checked for their types (i.e either `str` or `int`) as well as whether they are unique or not. Currently, the keys are not being checked for a...
[ 0.027536850422620773, -0.21593120694160461, 0.029170561581850052, 0.4762757420539856, 0.06841956824064255, -0.23636242747306824, 0.41689804196357727, 0.08041307330131531, 0.43124350905418396, 0.13391166925430298, 0.16721917688846588, 0.350257009267807, -0.020680762827396393, 0.206516668200...