html_url stringlengths 51 51 | comments stringlengths 67 24.7k | title stringlengths 6 280 | body stringlengths 51 36.2k | comment_length int64 16 1.45k | text stringlengths 190 38.3k | embeddings list |
|---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/2092 | @lhoestq I think the ```try_from_hf_gcs``` provide the same functionality. What all datasets are available on HF GCS? Are all the datasets on huggingFace datasets hub are made available on GCS, automatically? | How to disable making arrow tables in load_dataset ? | Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? | 31 | How to disable making arrow tables in load_dataset ?
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
@lhoestq I think the ```try_from_hf_gcs``` provide the same functionality. What all datasets are available on HF GCS? Are all the datasets on hug... | [
-0.06998071074485779,
-0.5376312732696533,
-0.060694172978401184,
0.2699543237686157,
0.03118870034813881,
0.18576984107494354,
0.2047215849161148,
-0.07386000454425812,
0.5251615643501282,
0.19155439734458923,
-0.20835720002651215,
0.2142612636089325,
0.1429017186164856,
0.065327920019626... |
https://github.com/huggingface/datasets/issues/2092 | Only datasets like wikipedia, wiki40b, wiki_dpr and natural questions are available already processed on the HF google storage. This is used to download directly the arrow file instead of building it from the original data files. | How to disable making arrow tables in load_dataset ? | Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? | 36 | How to disable making arrow tables in load_dataset ?
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
Only datasets like wikipedia, wiki40b, wiki_dpr and natural questions are available already processed on the HF google storage. This is used to d... | [
-0.16667644679546356,
-0.099722720682621,
-0.0602356381714344,
0.2515960931777954,
-0.04688315838575363,
0.11431428790092468,
0.27080777287483215,
0.004835417494177818,
0.4697789251804352,
0.16326774656772614,
-0.037074875086545944,
0.19230926036834717,
0.18890449404716492,
0.0169301629066... |
https://github.com/huggingface/datasets/issues/2092 | @lhoestq How can we make sure that the data we upload on HuggingFace hub is available in form of preprocessed arrow files ? | How to disable making arrow tables in load_dataset ? | Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? | 23 | How to disable making arrow tables in load_dataset ?
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
@lhoestq How can we make sure that the data we upload on HuggingFace hub is available in form of preprocessed arrow files ? | [
-0.11009694635868073,
-0.4545696973800659,
-0.12453398108482361,
0.32752248644828796,
0.138505220413208,
0.06665016710758209,
0.10800839215517044,
0.005187086760997772,
0.2907286584377289,
0.2163161039352417,
-0.07625748962163925,
0.3311559855937958,
0.07582558691501617,
0.2674563229084015... |
https://github.com/huggingface/datasets/issues/2092 | We're still working on this :) This will be available soon
Users will be able to put their processed arrow files on the Hub | How to disable making arrow tables in load_dataset ? | Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? | 24 | How to disable making arrow tables in load_dataset ?
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
We're still working on this :) This will be available soon
Users will be able to put their processed arrow files on the Hub | [
-0.31036800146102905,
-0.20938341319561005,
-0.14643235504627228,
0.26523539423942566,
0.034569788724184036,
0.0666944831609726,
0.2737096846103668,
0.11328855156898499,
0.3428300619125366,
0.22532963752746582,
0.022578425705432892,
0.525862455368042,
0.020450837910175323,
0.13482186198234... |
https://github.com/huggingface/datasets/issues/2092 | Hi! You can now use `Dataset.push_to_hub` to store preprocessed files on the Hub.
And to avoid downloading preprocessed files, you can use streaming by setting `streaming=True` in `load_dataset`. | How to disable making arrow tables in load_dataset ? | Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? | 28 | How to disable making arrow tables in load_dataset ?
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
Hi! You can now use `Dataset.push_to_hub` to store preprocessed files on the Hub.
And to avoid downloading preprocessed files, you can use str... | [
-0.4052203893661499,
-0.1968802511692047,
-0.1395871490240097,
0.1919092983007431,
0.16952583193778992,
0.03651537001132965,
0.14603039622306824,
0.188218891620636,
0.2423788607120514,
0.21509592235088348,
-0.06278691440820694,
0.5453227162361145,
0.013995453715324402,
0.20260056853294373,... |
https://github.com/huggingface/datasets/issues/2089 | Hi ! We are using the [datasets-tagging app](https://github.com/huggingface/datasets-tagging) to select the tags to add.
We are also adding the full list of tags in #2107
This covers multilinguality, language_creators, licenses, size_categories and task_categories.
In general if you want to add a tag that doesn... | Add documentaton for dataset README.md files | Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which valu... | 94 | Add documentaton for dataset README.md files
Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what shoul... | [
-0.2009662389755249,
0.25202423334121704,
-0.13049304485321045,
0.07989367842674255,
0.18093259632587433,
0.3571425974369049,
0.31196463108062744,
0.1849830448627472,
0.16446059942245483,
-0.01634671539068222,
-0.021375935524702072,
0.3338295519351959,
-0.09630252420902252,
0.1983846127986... |
https://github.com/huggingface/datasets/issues/2089 | @lhoestq hmm - ok thanks for the answer.
To be honest I am not sure if this issue can be closed now.
I just wanted to point out that this should either be documented or linked in the documentation.
If you feel like it is (will be) please just close this. | Add documentaton for dataset README.md files | Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which valu... | 51 | Add documentaton for dataset README.md files
Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what shoul... | [
-0.18345075845718384,
0.25136494636535645,
-0.1089651957154274,
0.1974366009235382,
0.11071696877479553,
0.33122318983078003,
0.37459027767181396,
0.17199581861495972,
0.03208541125059128,
0.047319196164608,
0.028343573212623596,
0.23826652765274048,
-0.06312786042690277,
0.092707380652427... |
https://github.com/huggingface/datasets/issues/2089 | We're still working on the validation+documentation in this.
Feel free to keep this issue open till we've added them | Add documentaton for dataset README.md files | Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which valu... | 19 | Add documentaton for dataset README.md files
Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what shoul... | [
-0.21523365378379822,
0.264982670545578,
-0.12585438787937164,
0.1683344542980194,
0.15319745242595673,
0.29334065318107605,
0.2924141585826874,
0.1951218545436859,
0.03196552395820618,
0.020962607115507126,
0.050094008445739746,
0.20491014420986176,
-0.07927616685628891,
0.100622370839118... |
https://github.com/huggingface/datasets/issues/2089 | Hi ! There's the tagging app at https://huggingface.co/datasets/tagging/ that you can use.
It shows the list of all the tags you can use.
It is based on all the tag sets defined in this folder:
https://github.com/huggingface/datasets/tree/master/src/datasets/utils/resources | Add documentaton for dataset README.md files | Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which valu... | 36 | Add documentaton for dataset README.md files
Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what shoul... | [
-0.286616712808609,
0.09453307092189789,
-0.15884873270988464,
0.19306425750255585,
0.2768501341342926,
0.31561392545700073,
0.26612046360969543,
0.1931912899017334,
0.1716579794883728,
0.023347027599811554,
-0.12728968262672424,
0.24129432439804077,
-0.12643861770629883,
0.359706342220306... |
https://github.com/huggingface/datasets/issues/2089 | I don't think so. Feel free to take a look at the tags of other models (example [here](https://huggingface.co/bert-base-uncased/blob/main/README.md)). But we should definitely have some docs or an app to write the tags. Feel free to open an issue in the `transformers` repo or in the `huggingface_hub` repo so we can dis... | Add documentaton for dataset README.md files | Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which valu... | 52 | Add documentaton for dataset README.md files
Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what shoul... | [
-0.1301451325416565,
-0.03524297475814819,
-0.05321868509054184,
0.24710454046726227,
0.2942430078983307,
0.2559414505958557,
0.4152010679244995,
0.1293424665927887,
0.09287899732589722,
-0.04842432588338852,
-0.1729552149772644,
0.07008889317512512,
-0.17187120020389557,
0.332266122102737... |
https://github.com/huggingface/datasets/issues/2089 | When modifying a README file, the Hub now displays a special UI with allowed values (see https://huggingface.co/docs/datasets/main/en/upload_dataset#create-a-dataset-card). | Add documentaton for dataset README.md files | Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which valu... | 17 | Add documentaton for dataset README.md files
Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what shoul... | [
-0.23015610873699188,
-0.055515289306640625,
-0.09261234104633331,
0.16921979188919067,
0.17993967235088348,
0.3060292601585388,
0.262212336063385,
0.18050922453403473,
0.2094041109085083,
0.08875872939825058,
-0.1332424134016037,
0.29123228788375854,
-0.038379184901714325,
0.3361720144748... |
https://github.com/huggingface/datasets/issues/2083 | Hi,
this bug is related to `Dataset.{remove_columns, rename_column, flatten}` not propagating the change to the schema metadata when the info features are updated, so this line is the culprit:
```python
common_voice_train = common_voice_train.remove_columns(['client_id', 'up_votes', 'down_votes', 'age', 'gender', ... | `concatenate_datasets` throws error when changing the order of datasets to concatenate | Hey,
I played around with the `concatenate_datasets(...)` function: https://huggingface.co/docs/datasets/package_reference/main_classes.html?highlight=concatenate_datasets#datasets.concatenate_datasets
and noticed that when the order in which the datasets are concatenated changes an error is thrown where it shou... | 70 | `concatenate_datasets` throws error when changing the order of datasets to concatenate
Hey,
I played around with the `concatenate_datasets(...)` function: https://huggingface.co/docs/datasets/package_reference/main_classes.html?highlight=concatenate_datasets#datasets.concatenate_datasets
and noticed that when ... | [
-0.07968540489673615,
-0.003556951880455017,
0.04932413250207901,
0.09624490886926651,
0.4001431465148926,
0.20311090350151062,
0.14764654636383057,
0.1685888022184372,
-0.4686335325241089,
0.03903452306985855,
-0.1133432388305664,
0.22358575463294983,
0.1865089237689972,
0.227995812892913... |
https://github.com/huggingface/datasets/issues/2080 | Hi !
This is actually supported ! but not yet in `from_pandas`.
You can use `from_dict` for now instead:
```python
from datasets import Dataset, Array2D, Features, Value
import pandas as pd
import numpy as np
dataset = {
'bbox': [
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1... | Multidimensional arrays in a Dataset | Hi,
I'm trying to put together a `datasets.Dataset` to be used with LayoutLM which is available in `transformers`. This model requires as input the bounding boxes of each of the token of a sequence. This is when I realized that `Dataset` does not support multi-dimensional arrays as a value for a column in a row.
... | 165 | Multidimensional arrays in a Dataset
Hi,
I'm trying to put together a `datasets.Dataset` to be used with LayoutLM which is available in `transformers`. This model requires as input the bounding boxes of each of the token of a sequence. This is when I realized that `Dataset` does not support multi-dimensional array... | [
0.014902204275131226,
-0.2567944824695587,
-0.07993536442518234,
0.19153155386447906,
0.44957035779953003,
0.054927706718444824,
0.8991124033927917,
0.10109418630599976,
0.18042466044425964,
0.06783026456832886,
-0.11097677797079086,
0.32042503356933594,
-0.2819291055202484,
0.052211426198... |
https://github.com/huggingface/datasets/issues/2080 | Thanks for the explanation.
With my original DataFrame, I did
```
dataset = dataset.to_dict("list")
```
and then the rest of the transformation from dictionary works just fine. | Multidimensional arrays in a Dataset | Hi,
I'm trying to put together a `datasets.Dataset` to be used with LayoutLM which is available in `transformers`. This model requires as input the bounding boxes of each of the token of a sequence. This is when I realized that `Dataset` does not support multi-dimensional arrays as a value for a column in a row.
... | 27 | Multidimensional arrays in a Dataset
Hi,
I'm trying to put together a `datasets.Dataset` to be used with LayoutLM which is available in `transformers`. This model requires as input the bounding boxes of each of the token of a sequence. This is when I realized that `Dataset` does not support multi-dimensional array... | [
0.014902204275131226,
-0.2567944824695587,
-0.07993536442518234,
0.19153155386447906,
0.44957035779953003,
0.054927706718444824,
0.8991124033927917,
0.10109418630599976,
0.18042466044425964,
0.06783026456832886,
-0.11097677797079086,
0.32042503356933594,
-0.2819291055202484,
0.052211426198... |
https://github.com/huggingface/datasets/issues/2078 | Hi ! Thanks for reporting.
We're indeed using `jiwer` to compute the WER.
Maybe instead of calling `jiwer.wer` once for all the preditions/references we can compute the WER iteratively to avoid memory issues ? I'm not too familial with `jiwer` but this must be possible.
Currently the code to compute the WER is d... | MemoryError when computing WER metric | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File ... | 56 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Tra... | [
0.124979168176651,
-0.2007296085357666,
0.058718085289001465,
0.32565104961395264,
0.43339431285858154,
0.07378920167684555,
-0.21804319322109222,
0.2950878441333771,
0.02883128821849823,
0.43098685145378113,
0.09653045982122421,
-0.09463454782962799,
-0.30588796734809875,
-0.5752209424972... |
https://github.com/huggingface/datasets/issues/2078 | Hi,
I've just pushed a pull request that is related to this issue https://github.com/huggingface/datasets/pull/2169. It's not iterative, but it should avoid memory errors. It's based on the editdistance python library. An iterative implementation should be as easy as storing scores and words stepwise and dividing at... | MemoryError when computing WER metric | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File ... | 48 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Tra... | [
0.124979168176651,
-0.2007296085357666,
0.058718085289001465,
0.32565104961395264,
0.43339431285858154,
0.07378920167684555,
-0.21804319322109222,
0.2950878441333771,
0.02883128821849823,
0.43098685145378113,
0.09653045982122421,
-0.09463454782962799,
-0.30588796734809875,
-0.5752209424972... |
https://github.com/huggingface/datasets/issues/2078 | I see, this was solved by other thread. Ok, let me know if you want to switch the implementation for any reason :) | MemoryError when computing WER metric | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File ... | 23 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Tra... | [
0.124979168176651,
-0.2007296085357666,
0.058718085289001465,
0.32565104961395264,
0.43339431285858154,
0.07378920167684555,
-0.21804319322109222,
0.2950878441333771,
0.02883128821849823,
0.43098685145378113,
0.09653045982122421,
-0.09463454782962799,
-0.30588796734809875,
-0.5752209424972... |
https://github.com/huggingface/datasets/issues/2078 | Thanks for diving into this anyway ^^'
As you said this actually got solved a few days ago | MemoryError when computing WER metric | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File ... | 18 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Tra... | [
0.124979168176651,
-0.2007296085357666,
0.058718085289001465,
0.32565104961395264,
0.43339431285858154,
0.07378920167684555,
-0.21804319322109222,
0.2950878441333771,
0.02883128821849823,
0.43098685145378113,
0.09653045982122421,
-0.09463454782962799,
-0.30588796734809875,
-0.5752209424972... |
https://github.com/huggingface/datasets/issues/2078 | Someone created an issue https://github.com/jitsi/jiwer/issues/40 at jiwer which shows that this is still a problem in the current version. Would be curious to figure out how this can be fixed by jiwer... :) I assume that it runs of out memory because it's trying to compute the WER over (too many) test samples? | MemoryError when computing WER metric | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File ... | 53 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Tra... | [
0.124979168176651,
-0.2007296085357666,
0.058718085289001465,
0.32565104961395264,
0.43339431285858154,
0.07378920167684555,
-0.21804319322109222,
0.2950878441333771,
0.02883128821849823,
0.43098685145378113,
0.09653045982122421,
-0.09463454782962799,
-0.30588796734809875,
-0.5752209424972... |
https://github.com/huggingface/datasets/issues/2078 | Hi !
It's computed iteratively so not sure what could go wrong
https://github.com/huggingface/datasets/blob/8afd0ba8c27800a55ea69d9fcd702dc97d9c16d8/metrics/wer/wer.py#L100-L106
@NiklasHoltmeyer what version of `datasets` are you running ?
| MemoryError when computing WER metric | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File ... | 22 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Tra... | [
0.124979168176651,
-0.2007296085357666,
0.058718085289001465,
0.32565104961395264,
0.43339431285858154,
0.07378920167684555,
-0.21804319322109222,
0.2950878441333771,
0.02883128821849823,
0.43098685145378113,
0.09653045982122421,
-0.09463454782962799,
-0.30588796734809875,
-0.5752209424972... |
https://github.com/huggingface/datasets/issues/2078 | One possible explanation might be that it is the user who is passing all the sentences in a single element to `wer.compute`?
As current implementation iterates over the elements of `predictions` and `references`, this can be problematic if `predictions` and `references` contain a single huge element each.
This c... | MemoryError when computing WER metric | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File ... | 103 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Tra... | [
0.124979168176651,
-0.2007296085357666,
0.058718085289001465,
0.32565104961395264,
0.43339431285858154,
0.07378920167684555,
-0.21804319322109222,
0.2950878441333771,
0.02883128821849823,
0.43098685145378113,
0.09653045982122421,
-0.09463454782962799,
-0.30588796734809875,
-0.5752209424972... |
https://github.com/huggingface/datasets/issues/2078 | Hi all,
in my case I was using and older version of datasets and, as @albertvillanova points out, passing the full list of sentences for the metric calculation. The problem was in the way jiwer implements WER, as it tries to compute WER for the full list at once instead of doing it element-wise. I think that with th... | MemoryError when computing WER metric | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File ... | 82 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Tra... | [
0.124979168176651,
-0.2007296085357666,
0.058718085289001465,
0.32565104961395264,
0.43339431285858154,
0.07378920167684555,
-0.21804319322109222,
0.2950878441333771,
0.02883128821849823,
0.43098685145378113,
0.09653045982122421,
-0.09463454782962799,
-0.30588796734809875,
-0.5752209424972... |
https://github.com/huggingface/datasets/issues/2078 | @lhoestq i was using Datasets==1.5.0 with 1.6.1 it worked (atleast the first run) but 1.5.0 is not compatible with my preprocessing. i cant save my dataset to a parquet file while using the latest datasets version
->
```
File "../preprocess_dataset.py", line 132, in <module>
pq.write_table(train_dataset.da... | MemoryError when computing WER metric | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File ... | 96 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Tra... | [
0.124979168176651,
-0.2007296085357666,
0.058718085289001465,
0.32565104961395264,
0.43339431285858154,
0.07378920167684555,
-0.21804319322109222,
0.2950878441333771,
0.02883128821849823,
0.43098685145378113,
0.09653045982122421,
-0.09463454782962799,
-0.30588796734809875,
-0.5752209424972... |
https://github.com/huggingface/datasets/issues/2076 | Hi @XuhuiZhou, thanks for reporting this issue.
Indeed, the old links are no longer valid (404 Not Found error), and the script must be updated with the new links to Google Drive. | Issue: Dataset download error | The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link? | 32 | Issue: Dataset download error
The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link?
Hi @Xuhui... | [
-0.2337624728679657,
0.14580845832824707,
0.0028068460524082184,
-0.03095075860619545,
-0.027438422664999962,
0.08244847506284714,
0.3759452998638153,
0.20595726370811462,
0.15375956892967224,
0.014403622597455978,
0.18484774231910706,
-0.1723964512348175,
0.2339601218700409,
0.29691731929... |
https://github.com/huggingface/datasets/issues/2076 | It would be nice to update the urls indeed !
To do this, you just need to replace the urls in `iwslt2017.py` and then update the dataset_infos.json file with
```
datasets-cli test ./datasets/iwslt2017 --all_configs --save_infos --ignore_verifications
``` | Issue: Dataset download error | The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link? | 37 | Issue: Dataset download error
The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link?
It would ... | [
-0.2658805847167969,
0.1200055181980133,
-0.08369515091180801,
-0.10603167116641998,
-0.0561513714492321,
0.013199284672737122,
0.11352714896202087,
0.3138657510280609,
0.18830378353595734,
-0.06657429784536362,
0.09627284109592438,
0.0473739393055439,
0.26303771138191223,
0.29573637247085... |
https://github.com/huggingface/datasets/issues/2076 | Is this a command to update my local files or fix the file Github repo in general? (I am not so familiar with the datasets-cli command here)
I also took a brief look at the **Sharing your dataset** section, looks like I could fix that locally and push it to the repo? I guess we are "canonical" category? | Issue: Dataset download error | The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link? | 58 | Issue: Dataset download error
The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link?
Is this a... | [
-0.328745037317276,
0.22784584760665894,
0.01716836914420128,
-0.1485101729631424,
-0.027821142226457596,
0.12953564524650574,
0.21594449877738953,
0.40293964743614197,
0.12522679567337036,
-0.053337037563323975,
0.12921839952468872,
-0.14838257431983948,
0.36618104577064514,
0.16260385513... |
https://github.com/huggingface/datasets/issues/2076 | This command will update your local file. Then you can open a Pull Request to push your fix to the github repo :)
And yes you are right, it is a "canonical" dataset, i.e. a dataset script defined in this github repo (as opposed to dataset repositories of users on the huggingface hub) | Issue: Dataset download error | The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link? | 53 | Issue: Dataset download error
The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link?
This comm... | [
-0.233566552400589,
-0.11886108666658401,
0.018963590264320374,
-0.1395546793937683,
0.01611199416220188,
-0.005983717739582062,
0.17576421797275543,
0.3258337676525116,
0.2067854404449463,
-0.049147799611091614,
0.12043049931526184,
-0.044896163046360016,
0.20969918370246887,
0.4580938518... |
https://github.com/huggingface/datasets/issues/2076 | Hi, thanks for the answer.
I gave a try to the problem today. But I encountered an upload error:
```
git push -u origin fix_link_iwslt
Enter passphrase for key '/home2/xuhuizh/.ssh/id_rsa':
ERROR: Permission to huggingface/datasets.git denied to XuhuiZhou.
fatal: Could not read from remote repository.
P... | Issue: Dataset download error | The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link? | 148 | Issue: Dataset download error
The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link?
Hi, thank... | [
-0.1731773018836975,
-0.01039007306098938,
0.05730967968702316,
-0.03935623914003372,
0.05381656065583229,
-0.012416303157806396,
0.25629982352256775,
0.3127621114253998,
0.11338673532009125,
0.020173683762550354,
0.031347937881946564,
0.01898278295993805,
0.3240015506744385,
0.24096579849... |
https://github.com/huggingface/datasets/issues/2076 | Hi ! To create a PR on this repo your must fork it and create a branch on your fork. See how to fork the repo [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md#start-by-preparing-your-environment).
And to make the command work without the `ExpectedMoreDownloadedFiles` error, you just need t... | Issue: Dataset download error | The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link? | 45 | Issue: Dataset download error
The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link?
Hi ! To c... | [
-0.25608742237091064,
-0.09676963835954666,
0.017853710800409317,
-0.06596158444881439,
0.09448842704296112,
0.049594685435295105,
0.19209600985050201,
0.2611153721809387,
0.1636171042919159,
0.04193772375583649,
0.005067098885774612,
-0.01336287334561348,
0.2525419294834137,
0.39412540197... |
https://github.com/huggingface/datasets/issues/2076 | Hi @XuhuiZhou,
As @lhoestq has well explained, you need to fork HF's repository, create a feature branch in your fork, push your changes to it and then open a Pull Request to HF's upstream repository. This is so because at HuggingFace Datasets we follow a development model called "Fork and Pull Model". You can find ... | Issue: Dataset download error | The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link? | 126 | Issue: Dataset download error
The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link?
Hi @Xuhui... | [
-0.2110828310251236,
-0.23542684316635132,
0.05395222827792168,
-0.12035326659679413,
-0.01603779010474682,
0.0573173463344574,
0.07369102537631989,
0.3318697214126587,
0.27531036734580994,
0.03606121987104416,
-0.14635877311229706,
-0.14004136621952057,
0.32786697149276733,
0.358464300632... |
https://github.com/huggingface/datasets/issues/2075 | Hi @LifaSun, thanks for reporting this issue.
Sometimes, GitHub has some connectivity problems. Could you confirm that the problem persists? | ConnectionError: Couldn't reach common_voice.py | When I run:
from datasets import load_dataset, load_metric
common_voice_train = load_dataset("common_voice", "zh-CN", split="train+validation")
common_voice_test = load_dataset("common_voice", "zh-CN", split="test")
Got:
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/ma... | 20 | ConnectionError: Couldn't reach common_voice.py
When I run:
from datasets import load_dataset, load_metric
common_voice_train = load_dataset("common_voice", "zh-CN", split="train+validation")
common_voice_test = load_dataset("common_voice", "zh-CN", split="test")
Got:
ConnectionError: Couldn't reach https:/... | [
-0.4876464009284973,
-0.0846991166472435,
-0.07917759567499161,
-0.004803512245416641,
0.39035600423812866,
0.012986861169338226,
0.27043020725250244,
0.30163270235061646,
-0.06318780779838562,
0.3089750409126282,
-0.21267545223236084,
-0.1347057968378067,
0.12261801958084106,
0.0170101150... |
https://github.com/huggingface/datasets/issues/2070 | Hi ! This error happens when you use `map` in batched mode and then your function doesn't return the same number of values per column.
Indeed since you're using `map` in batched mode, `prepare_validation_features` must take a batch as input (i.e. a dictionary of multiple rows of the dataset), and return a batch.
... | ArrowInvalid issue for squad v2 dataset | Hello, I am using the huggingface official question answering example notebook (https://colab.research.google.com/github/huggingface/notebooks/blob/master/examples/question_answering.ipynb).
In the prepare_validation_features function, I made some modifications to tokenize a new set of quesions with the original co... | 80 | ArrowInvalid issue for squad v2 dataset
Hello, I am using the huggingface official question answering example notebook (https://colab.research.google.com/github/huggingface/notebooks/blob/master/examples/question_answering.ipynb).
In the prepare_validation_features function, I made some modifications to tokenize ... | [
0.19508695602416992,
-0.5012054443359375,
0.004113953560590744,
0.2735457718372345,
0.2830953001976013,
-0.06308551877737045,
0.2918868064880371,
0.1244552731513977,
-0.3849659860134125,
0.19322830438613892,
0.06840673089027405,
0.27129727602005005,
0.11750516295433044,
-0.2701623439788818... |
https://github.com/huggingface/datasets/issues/2068 | Hey @sivakhno,
how does your `requirements.txt` look like to install the `datasets` library and which version of it are you running? Can you try to install `datasets>=1.4.0` | PyTorch not available error on SageMaker GPU docker though it is installed | I get en error when running data loading using SageMaker SDK
```
File "main.py", line 34, in <module>
run_training()
File "main.py", line 25, in run_training
dm.setup('fit')
File "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/core/datamodule.py", line 92, in wrapped_fn
return fn(*a... | 27 | PyTorch not available error on SageMaker GPU docker though it is installed
I get en error when running data loading using SageMaker SDK
```
File "main.py", line 34, in <module>
run_training()
File "main.py", line 25, in run_training
dm.setup('fit')
File "/opt/conda/lib/python3.6/site-packages/p... | [
-0.35786426067352295,
0.06243103742599487,
-0.003559581935405731,
0.09239527583122253,
0.20111912488937378,
0.034648530185222626,
0.5519385933876038,
0.32340720295906067,
0.3856210708618164,
0.09295850247144699,
0.0008824244141578674,
0.3965824842453003,
-0.03543047234416008,
0.19524636864... |
https://github.com/huggingface/datasets/issues/2068 | Hi @philschmid - thanks for suggestion. I am using `datasets==1.4.1`.
I have also tried using `torch=1.6.0` (docker `763104351884.dkr.ecr.eu-central-1.amazonaws.com/pytorch-training:1.6.0-gpu-py3 `), but the error is the same. | PyTorch not available error on SageMaker GPU docker though it is installed | I get en error when running data loading using SageMaker SDK
```
File "main.py", line 34, in <module>
run_training()
File "main.py", line 25, in run_training
dm.setup('fit')
File "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/core/datamodule.py", line 92, in wrapped_fn
return fn(*a... | 25 | PyTorch not available error on SageMaker GPU docker though it is installed
I get en error when running data loading using SageMaker SDK
```
File "main.py", line 34, in <module>
run_training()
File "main.py", line 25, in run_training
dm.setup('fit')
File "/opt/conda/lib/python3.6/site-packages/p... | [
-0.35786426067352295,
0.06243103742599487,
-0.003559581935405731,
0.09239527583122253,
0.20111912488937378,
0.034648530185222626,
0.5519385933876038,
0.32340720295906067,
0.3856210708618164,
0.09295850247144699,
0.0008824244141578674,
0.3965824842453003,
-0.03543047234416008,
0.19524636864... |
https://github.com/huggingface/datasets/issues/2068 | Could paste the code you use the start your training job and the fine-tuning script you run? | PyTorch not available error on SageMaker GPU docker though it is installed | I get en error when running data loading using SageMaker SDK
```
File "main.py", line 34, in <module>
run_training()
File "main.py", line 25, in run_training
dm.setup('fit')
File "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/core/datamodule.py", line 92, in wrapped_fn
return fn(*a... | 17 | PyTorch not available error on SageMaker GPU docker though it is installed
I get en error when running data loading using SageMaker SDK
```
File "main.py", line 34, in <module>
run_training()
File "main.py", line 25, in run_training
dm.setup('fit')
File "/opt/conda/lib/python3.6/site-packages/p... | [
-0.35786426067352295,
0.06243103742599487,
-0.003559581935405731,
0.09239527583122253,
0.20111912488937378,
0.034648530185222626,
0.5519385933876038,
0.32340720295906067,
0.3856210708618164,
0.09295850247144699,
0.0008824244141578674,
0.3965824842453003,
-0.03543047234416008,
0.19524636864... |
https://github.com/huggingface/datasets/issues/2067 | Hi ! Thanks for reporting.
This looks like a bug, could you try to provide a minimal code example that reproduces the issue ? This would be very helpful !
Otherwise I can try to run the wav2vec2 code above on my side but probably not this week.. | Multiprocessing windows error | As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log c... | 48 | Multiprocessing windows error
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws... | [
-0.05814218521118164,
-0.45367881655693054,
-0.03556230664253235,
0.2569918632507324,
0.08609446883201599,
-0.003773897886276245,
0.11553118377923965,
-0.06296030431985855,
0.04080414026975632,
0.3191870450973511,
0.2538124918937683,
0.07012895494699478,
-0.3072562515735626,
-0.04254570230... |
https://github.com/huggingface/datasets/issues/2067 | ```
from datasets import load_dataset
dataset = load_dataset('glue', 'mrpc', split='train')
updated_dataset = dataset.map(lambda example: {'sentence1': 'My sentence: ' + example['sentence1']}, num_proc=4)
``` | Multiprocessing windows error | As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log c... | 22 | Multiprocessing windows error
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws... | [
-0.21642139554023743,
-0.2695314884185791,
-0.030776336789131165,
0.18502293527126312,
0.17840233445167542,
0.1376417726278305,
0.057568926364183426,
-0.0025019999593496323,
0.008718162775039673,
0.2766420543193817,
0.14897456765174866,
0.1610603928565979,
-0.28545236587524414,
-0.10231790... |
https://github.com/huggingface/datasets/issues/2067 |
I was able to copy some of the shell
This is repeating every half second
Win 10, Anaconda with python 3.8, datasets installed from main branche
```
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 287, in _fixup_main_from_path
_check_not_importing_main()... | Multiprocessing windows error | As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log c... | 433 | Multiprocessing windows error
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws... | [
-0.18814688920974731,
-0.3144046664237976,
-0.0391354002058506,
0.1985248327255249,
0.1111997663974762,
0.004422590136528015,
0.147380530834198,
0.052242573350667953,
0.0072062090039253235,
0.15420666337013245,
0.03806160390377045,
-0.036998309195041656,
-0.23013293743133545,
0.00494800508... |
https://github.com/huggingface/datasets/issues/2067 | Thanks this is really helpful !
I'll try to reproduce on my side and come back to you | Multiprocessing windows error | As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log c... | 18 | Multiprocessing windows error
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws... | [
-0.15062811970710754,
-0.46654409170150757,
-0.08509175479412079,
0.2313077598810196,
0.08652767539024353,
0.010160371661186218,
0.0336141437292099,
-0.030732613056898117,
0.02308843284845352,
0.2842901647090912,
0.12158605456352234,
0.06673723459243774,
-0.3062888979911804,
0.016049630939... |
https://github.com/huggingface/datasets/issues/2067 | if __name__ == '__main__':
This line before calling the map function stops the error but the script still repeats endless | Multiprocessing windows error | As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log c... | 20 | Multiprocessing windows error
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws... | [
-0.11089139431715012,
-0.439287006855011,
-0.0885382741689682,
0.20902125537395477,
0.062263134866952896,
0.03885606676340103,
0.005569770932197571,
0.03431245684623718,
0.1305551528930664,
0.35071203112602234,
0.18459156155586243,
0.11303404718637466,
-0.27034926414489746,
-0.062560103833... |
https://github.com/huggingface/datasets/issues/2067 | Indeed you needed `if __name__ == '__main__'` since accoding to [this stackoverflow post](https://stackoverflow.com/a/18205006):
> On Windows the subprocesses will import (i.e. execute) the main module at start. You need to insert an if __name__ == '__main__': guard in the main module to avoid creating subprocesses ... | Multiprocessing windows error | As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log c... | 59 | Multiprocessing windows error
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws... | [
-0.13518193364143372,
-0.42261362075805664,
-0.11948464810848236,
-0.017614521086215973,
0.10806336998939514,
-0.09601254761219025,
0.13206380605697632,
0.03084711730480194,
-0.10139169543981552,
0.3602203130722046,
-0.055188484489917755,
0.09469017386436462,
-0.37365955114364624,
-0.14211... |
https://github.com/huggingface/datasets/issues/2067 | ```
Traceback (most recent call last):
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\shutil.py", line 791, in move
os.rename(src, real_dst)
FileExistsError: [WinError 183] Eine Datei kann nicht erstellt werden, wenn sie bereits vorhanden ist: 'D:\\huggingfacecache\\common_voice\\de\\6.1.0\\0041e06ab061b91d0... | Multiprocessing windows error | As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log c... | 224 | Multiprocessing windows error
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws... | [
-0.01263648271560669,
-0.38743355870246887,
-0.05402318760752678,
0.20228013396263123,
0.13534751534461975,
0.018755614757537842,
0.09084798395633698,
0.07784993946552277,
0.039303191006183624,
0.2612572908401489,
0.011653650552034378,
-0.07170067727565765,
-0.3001475930213928,
-0.07750158... |
https://github.com/huggingface/datasets/issues/2067 | Usually OSError of an arrow file on windows means that the file is currently opened as a dataset object, so you can't overwrite it until the dataset object falls out of scope.
Can you make sure that there's no dataset object that loaded the `cache-9b4f203a63742dfc.arrow` file ? | Multiprocessing windows error | As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log c... | 47 | Multiprocessing windows error
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws... | [
-0.3012990355491638,
-0.2888679802417755,
-0.08387655019760132,
0.19855482876300812,
0.024326074868440628,
-0.052532315254211426,
0.06525401771068573,
-0.014697568491101265,
0.08489978313446045,
0.28298115730285645,
0.17037929594516754,
0.26384198665618896,
-0.31195971369743347,
-0.1078655... |
https://github.com/huggingface/datasets/issues/2067 | Now I understand
The error occures because the script got restarted in another thread, so the object is already loaded.
Still don't have an idea why a new thread starts the whole script again | Multiprocessing windows error | As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log c... | 34 | Multiprocessing windows error
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws... | [
-0.1712799370288849,
-0.6625725626945496,
-0.015667472034692764,
0.3150125741958618,
-0.010367951355874538,
-0.025893546640872955,
0.1337393820285797,
-0.13210530579090118,
0.0881272554397583,
0.2671477198600769,
0.23279546201229095,
0.06817074120044708,
-0.12538118660449982,
-0.0673757195... |
https://github.com/huggingface/datasets/issues/2065 | Hi ! Thanks for reporting.
Currently there's no way to specify this.
When loading/processing a dataset, the arrow file is written using a temporary file. Then once writing is finished, it's moved to the cache directory (using `shutil.move` [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356... | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you kno... | 67 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to co... | [
-0.11390159279108047,
0.2815684676170349,
-0.07893506437540054,
0.11773641407489777,
-0.025967609137296677,
0.09056645631790161,
0.4060140550136566,
0.11466380953788757,
-0.09347958117723465,
-0.0789993405342102,
-0.1739809215068817,
0.12208816409111023,
-0.05902677774429321,
-0.2090671062... |
https://github.com/huggingface/datasets/issues/2065 | Hi @lhoestq,
I looked into this and yes you're right. The `NamedTemporaryFile` is always created with mode 0600, which prevents group from reading the file. Should we change the permissions of `tmp_file.name` [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arro... | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you kno... | 47 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to co... | [
0.0629386156797409,
0.035980939865112305,
-0.11017100512981415,
0.2581421732902527,
0.06019924208521843,
0.1329316347837448,
0.3463629484176636,
0.09343530237674713,
-0.2962668240070343,
-0.030303247272968292,
-0.2803182005882263,
-0.05260353535413742,
0.08457191288471222,
-0.3134355843067... |
https://github.com/huggingface/datasets/issues/2065 | Good idea :) we could even update the permissions after the file has been moved by shutil.move [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1899) and [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb... | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you kno... | 45 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to co... | [
-0.1486676186323166,
0.14043843746185303,
-0.07720566540956497,
0.0294160358607769,
0.12957951426506042,
0.0463581383228302,
0.3478867709636688,
0.03462383896112442,
-0.1299445629119873,
0.020075958222150803,
-0.13891679048538208,
-0.06765949726104736,
0.018578872084617615,
-0.271292388439... |
https://github.com/huggingface/datasets/issues/2065 | Would it be possible to actually set the umask based on a user provided argument? For example, a popular usecase my team has is using a shared file-system for processing datasets. This may involve writing/deleting other files, or changing filenames, which a -rw-r--r-- wouldn't fix. | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you kno... | 45 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to co... | [
-0.14714986085891724,
0.09206673502922058,
-0.05052252113819122,
-0.05057564005255699,
-0.10244080424308777,
0.06507508456707001,
0.2770627737045288,
0.03331296145915985,
-0.12057293951511383,
0.07548297941684723,
-0.08884073793888092,
-0.12017867714166641,
0.0910978838801384,
-0.421970129... |
https://github.com/huggingface/datasets/issues/2065 | Note that you can get the cache files of a dataset with the `cache_files` attributes.
Then you can `chmod` those files and all the other cache files in the same directory.
Moreover we can probably keep the same permissions after each transform. This way you just need to set the permissions once after doing `load_da... | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you kno... | 75 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to co... | [
-0.11946776509284973,
0.25942397117614746,
-0.09670411050319672,
0.03038511797785759,
0.02317885309457779,
0.10834965109825134,
0.33913034200668335,
0.2117256373167038,
-0.33623433113098145,
-0.03682345151901245,
-0.14438754320144653,
0.022060520946979523,
0.010938532650470734,
-0.25250706... |
https://github.com/huggingface/datasets/issues/2065 | This means we'll check the permissions of other `cache_files` already created for a dataset before setting permissions for new `cache_files`? | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you kno... | 20 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to co... | [
-0.14285695552825928,
0.24719205498695374,
-0.13657593727111816,
0.021837841719388962,
-0.06113343685865402,
0.1519795060157776,
0.29721832275390625,
0.17494076490402222,
-0.21720290184020996,
-0.02154584974050522,
-0.0839368999004364,
-0.05868124961853027,
0.03178375959396362,
-0.28569263... |
https://github.com/huggingface/datasets/issues/2065 | > This way you just need to set the permissions once after doing load_dataset for example, and then all the new transformed cached files will have the same permissions.
I was referring to this. Ensuring that newly generated `cache_files` have the same permissions | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you kno... | 43 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to co... | [
-0.16499444842338562,
0.25044748187065125,
-0.13118040561676025,
0.0018536122515797615,
0.016402913257479668,
0.0696859136223793,
0.3859354257583618,
0.20129236578941345,
-0.24317559599876404,
-0.02685270458459854,
-0.083243228495121,
0.031755901873111725,
0.008832518011331558,
-0.20328444... |
https://github.com/huggingface/datasets/issues/2065 | Yes exactly
I imagine users can first do `load_dataset`, then chmod on the arrow files. After that all the new cache files could have the same permissions as the first arrow files. Opinions on this ? | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you kno... | 36 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to co... | [
-0.09823165088891983,
0.26637938618659973,
-0.12864354252815247,
0.08532819151878357,
-0.13202017545700073,
0.04467375576496124,
0.33241719007492065,
0.1185307502746582,
-0.235688716173172,
-0.06214785575866699,
-0.09892112016677856,
0.037031278014183044,
0.01958230882883072,
-0.2461385428... |
https://github.com/huggingface/datasets/issues/2065 | Sounds nice but I feel this is a sub-part of the approach mentioned by @siddk. Instead of letting the user set new permissions by itself first and then making sure newly generated files have same permissions why don't we ask the user initially only what they want? What are your thoughts? | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you kno... | 51 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to co... | [
-0.021506771445274353,
0.3034680485725403,
-0.16133180260658264,
-0.06144966930150986,
-0.09429998695850372,
0.011614546179771423,
0.3593585193157196,
0.21026629209518433,
-0.28817421197891235,
0.06739774346351624,
0.021829381585121155,
-0.123779296875,
0.010428015142679214,
-0.22285735607... |
https://github.com/huggingface/datasets/issues/2065 | Yes sounds good. Should this be a parameter in `load_dataset` ? Or an env variable ? Or use the value of `os.umask` ? | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you kno... | 23 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to co... | [
-0.11572422087192535,
0.19156616926193237,
-0.12044434249401093,
0.010219053365290165,
-0.004656887613236904,
0.07383756339550018,
0.35489413142204285,
0.0830477774143219,
-0.09774108976125717,
0.0234236977994442,
-0.10515768826007843,
0.11370635032653809,
0.07436947524547577,
-0.271421253... |
https://github.com/huggingface/datasets/issues/2065 | Ideally it should be a parameter in `load_dataset` but I'm not sure how important it is for the users (considering only important things should go into `load_dataset` parameters) | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you kno... | 28 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to co... | [
-0.13602730631828308,
0.23576846718788147,
-0.1311272382736206,
0.06138227880001068,
-0.0553659163415432,
0.09406507015228271,
0.3185192346572876,
0.1379297375679016,
-0.17317333817481995,
0.021259717643260956,
-0.026156680658459663,
0.02686028555035591,
0.06032547727227211,
-0.25843185186... |
https://github.com/huggingface/datasets/issues/2065 | I think it's fairly important; for context, our team uses a shared file-system where many folks run experiments based on datasets that are cached by other users.
For example, I might start a training run, downloading a dataset. Then, a couple of days later, a collaborator using the same repository might want to use ... | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you kno... | 123 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to co... | [
-0.13351938128471375,
0.26387014985084534,
-0.08877980709075928,
-0.013650387525558472,
-0.04831986874341965,
0.1047767698764801,
0.35522204637527466,
0.11916099488735199,
-0.16586026549339294,
0.037884972989559174,
-0.1065237820148468,
-0.024867119267582893,
-0.019191958010196686,
-0.3137... |
https://github.com/huggingface/datasets/issues/2065 | Maybe let's start by defaulting to the user's umask !
Do you want to give it a try @bhavitvyamalik ? | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you kno... | 20 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to co... | [
-0.18029531836509705,
0.19892792403697968,
-0.10556546598672867,
-0.08582402765750885,
0.01097940281033516,
0.09721396863460541,
0.30967971682548523,
0.07195933163166046,
-0.1649409979581833,
0.08733582496643066,
-0.08067430555820465,
0.0011490806937217712,
0.06524594873189926,
-0.26501923... |
https://github.com/huggingface/datasets/issues/2065 | Yeah sure! Instead of using default `0o644` should I first extract umask of current user and then use `os.umask` on it? We can do it inside `Dataset` class so that all folders/files created during the call use running user's umask
| Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you kno... | 40 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to co... | [
-0.22427287697792053,
0.22611305117607117,
-0.08175298571586609,
0.009475701488554478,
0.047135815024375916,
0.014976009726524353,
0.2634161114692688,
0.0719241052865982,
-0.1914958357810974,
0.040730491280555725,
-0.13415327668190002,
0.08633598685264587,
0.0493936613202095,
-0.3142186105... |
https://github.com/huggingface/datasets/issues/2065 | You can get the umask using `os.umask` and then I guess you can just use `os.chmod` as in your previous PR, but with the right permissions depending on the umask. | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you kno... | 30 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to co... | [
-0.18572625517845154,
0.17379221320152283,
-0.10752765834331512,
-0.18510404229164124,
-0.008170237764716148,
0.0839049369096756,
0.3565376400947571,
0.07572709769010544,
-0.11083171516656876,
0.10525505244731903,
-0.22693879902362823,
0.15432405471801758,
0.10393137484788895,
-0.293449372... |
https://github.com/huggingface/datasets/issues/2065 | FWIW, we have this issue with other caches - e.g. `transformers` model files. So probably will need to backport this into `transformers` as well.
thanks @thomwolf for the pointer. | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you kno... | 29 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to co... | [
-0.12074443697929382,
0.21106219291687012,
-0.084104984998703,
0.04681854322552681,
-0.0028635235503315926,
0.14593739807605743,
0.38540488481521606,
0.13916027545928955,
-0.20116811990737915,
-0.0585675984621048,
-0.13547825813293457,
-0.017622780054807663,
0.11561962962150574,
-0.2905226... |
https://github.com/huggingface/datasets/issues/2065 | Hi @stas00,
For this should we use the same umask code in the respective model directory inside `TRANSFORMERS_CACHE`? | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you kno... | 18 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to co... | [
-0.20815686881542206,
0.11179560422897339,
-0.061236247420310974,
0.04073656350374222,
-0.006120380014181137,
0.1279415637254715,
0.3894426226615906,
0.05715934559702873,
-0.21278135478496552,
-0.04198862612247467,
-0.19218555092811584,
-0.1231594905257225,
0.10957241803407669,
-0.33432164... |
https://github.com/huggingface/datasets/issues/2065 | The cluster I am working on does not allow me to change the permission of the files with os.chmod. I was wondering if there is any workaround for this? My cache is in a GCP bucket and I can't change file permissions once I mount it. | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you kno... | 46 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to co... | [
-0.0849485695362091,
0.2053641378879547,
-0.13074544072151184,
-0.029305942356586456,
-0.06478044390678406,
0.07882270216941833,
0.3084193766117096,
0.013334156945347786,
-0.2113334983587265,
0.03593330830335617,
-0.1470056176185608,
0.022648602724075317,
0.017908956855535507,
-0.243559300... |
https://github.com/huggingface/datasets/issues/2065 | I get a permission denied error on https://github.com/huggingface/datasets/blob/b8363e0539c6f0cb5de49af32962cf2eb4c47395/src/datasets/arrow_dataset.py#L2799. I suspect I don't have permissions to change group permissions. I am mounting a GCP bucket through [gcsfuse](https://github.com/GoogleCloudPlatform/gcsfuse). | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you kno... | 26 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to co... | [
-0.14622215926647186,
0.20528140664100647,
-0.09300415217876434,
0.059997763484716415,
-0.026322927325963974,
0.10093094408512115,
0.4535706639289856,
-0.1260243058204651,
-0.21142639219760895,
0.08157090842723846,
-0.008134491741657257,
-0.0675315111875534,
-0.07078680396080017,
-0.206342... |
https://github.com/huggingface/datasets/issues/2065 | What @lhoestq is asking for is the full multi-line traceback - it's almost never enough to show the last line - a full stack is needed to get the context. Thank you!
I wonder if a workaround is to try/except and then issue a warning if this fails? | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you kno... | 48 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to co... | [
-0.1648373305797577,
0.21514618396759033,
-0.05785181745886803,
0.07299824059009552,
-0.08065333962440491,
0.06957400590181351,
0.4272477626800537,
0.16266939043998718,
-0.2787992060184479,
0.027456406503915787,
0.02319205552339554,
-0.1252375692129135,
-0.01072489470243454,
-0.24131041765... |
https://github.com/huggingface/datasets/issues/2065 | Hello, I'm working on a project with a very similar setup to the one mentioned by @siddk, namely we have a shared cache directory in the team that we wish to use to avoid redundant dataset downloads. However, we're hitting `PermissionError` when one member of the team tries to reload a dataset that was downloaded by an... | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you kno... | 385 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to co... | [
-0.12435533106327057,
0.2709953188896179,
-0.07661039382219315,
0.18368886411190033,
-0.03524090349674225,
0.06472963094711304,
0.42424482107162476,
0.06204177066683769,
-0.18086853623390198,
0.045665986835956573,
-0.1041981428861618,
-0.09664130210876465,
-0.09747689962387085,
-0.34466439... |
https://github.com/huggingface/datasets/issues/2065 | Python files are stored in the modules caches, that you can modify by setting `HF_MODULES_CACHE` as well and set appropriate permissions
They are in different locations because the `HF_MODULES_CACHE` is added to the python path to be able to import the dataset scripts :) | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you kno... | 44 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to co... | [
-0.07112543284893036,
0.198626309633255,
-0.1148490309715271,
0.05539694055914879,
-0.043478988111019135,
0.17060156166553497,
0.3945292532444,
0.15830397605895996,
-0.05045390874147415,
0.013010833412408829,
-0.17951700091362,
-0.030754566192626953,
0.02522972598671913,
-0.205561071634292... |
https://github.com/huggingface/datasets/issues/2065 | Thanks a lot for the tip @lhoestq ! I didn't know about this extra cache - thanks :) | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you kno... | 18 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to co... | [
-0.06479183584451675,
0.20447693765163422,
-0.10630634427070618,
0.06709427386522293,
-0.03161969035863876,
0.15743085741996765,
0.31393229961395264,
0.12262389808893204,
-0.21438561379909515,
-0.008581556379795074,
-0.11468895524740219,
0.003673069179058075,
0.0850943922996521,
-0.2610036... |
https://github.com/huggingface/datasets/issues/2061 | @lhoestq Adding "_" to the class labels in the dataset script will fix the issue.
The bigger issue IMO is that the data files are in conll format, but the examples are tokens, not sentences. | Cannot load udpos subsets from xtreme dataset using load_dataset() | Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and ... | 35 | Cannot load udpos subsets from xtreme dataset using load_dataset()
Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset al... | [
-0.34640297293663025,
-0.07528622448444366,
0.0026139765977859497,
0.4443908631801605,
0.3713299632072449,
0.06911919265985489,
0.24056874215602875,
0.039475541561841965,
0.5101774334907532,
0.2061247080564499,
-0.3589058816432953,
0.05270513519644737,
0.08609636127948761,
0.08086624741554... |
https://github.com/huggingface/datasets/issues/2061 | Hi ! Thanks for reporting @adzcodez
> @lhoestq Adding "_" to the class labels in the dataset script will fix the issue.
>
> The bigger issue IMO is that the data files are in conll format, but the examples are tokens, not sentences.
You're right: "_" should be added to the list of labels, and the examples m... | Cannot load udpos subsets from xtreme dataset using load_dataset() | Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and ... | 66 | Cannot load udpos subsets from xtreme dataset using load_dataset()
Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset al... | [
-0.34640297293663025,
-0.07528622448444366,
0.0026139765977859497,
0.4443908631801605,
0.3713299632072449,
0.06911919265985489,
0.24056874215602875,
0.039475541561841965,
0.5101774334907532,
0.2061247080564499,
-0.3589058816432953,
0.05270513519644737,
0.08609636127948761,
0.08086624741554... |
https://github.com/huggingface/datasets/issues/2061 | @lhoestq Can you please label this issue with the "good first issue" label? I'm not sure I'll find time to fix this.
To resolve it, the user should:
1. add `"_"` to the list of labels
2. transform the udpos subset to the conll format (I think the preprocessing logic can be borrowed from [the original repo](https:/... | Cannot load udpos subsets from xtreme dataset using load_dataset() | Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and ... | 84 | Cannot load udpos subsets from xtreme dataset using load_dataset()
Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset al... | [
-0.34640297293663025,
-0.07528622448444366,
0.0026139765977859497,
0.4443908631801605,
0.3713299632072449,
0.06911919265985489,
0.24056874215602875,
0.039475541561841965,
0.5101774334907532,
0.2061247080564499,
-0.3589058816432953,
0.05270513519644737,
0.08609636127948761,
0.08086624741554... |
https://github.com/huggingface/datasets/issues/2061 | I tried fixing this issue, but its working fine in the dev version : "1.6.2.dev0"
I think somebody already fixed it. | Cannot load udpos subsets from xtreme dataset using load_dataset() | Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and ... | 21 | Cannot load udpos subsets from xtreme dataset using load_dataset()
Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset al... | [
-0.34640297293663025,
-0.07528622448444366,
0.0026139765977859497,
0.4443908631801605,
0.3713299632072449,
0.06911919265985489,
0.24056874215602875,
0.039475541561841965,
0.5101774334907532,
0.2061247080564499,
-0.3589058816432953,
0.05270513519644737,
0.08609636127948761,
0.08086624741554... |
https://github.com/huggingface/datasets/issues/2061 | Hi,
after #2326, the lines with pos tags equal to `"_"` are filtered out when generating the dataset, so this fixes the KeyError described above. However, the udpos subset should be in the conll format i.e. it should yield sequences of tokens and not single tokens, so it would be great to see this fixed (feel free t... | Cannot load udpos subsets from xtreme dataset using load_dataset() | Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and ... | 70 | Cannot load udpos subsets from xtreme dataset using load_dataset()
Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset al... | [
-0.34640297293663025,
-0.07528622448444366,
0.0026139765977859497,
0.4443908631801605,
0.3713299632072449,
0.06911919265985489,
0.24056874215602875,
0.039475541561841965,
0.5101774334907532,
0.2061247080564499,
-0.3589058816432953,
0.05270513519644737,
0.08609636127948761,
0.08086624741554... |
https://github.com/huggingface/datasets/issues/2059 | This has been fixed in #2064 by @mariosasko (thanks again !)
The fix is available on the master branch and we'll do a new release very soon :) | Error while following docs to load the `ted_talks_iwslt` dataset | I am currently trying to load the `ted_talks_iwslt` dataset into google colab.
The [docs](https://huggingface.co/datasets/ted_talks_iwslt) mention the following way of doing so.
```python
dataset = load_dataset("ted_talks_iwslt", language_pair=("it", "pl"), year="2014")
```
Executing it results in the error ... | 28 | Error while following docs to load the `ted_talks_iwslt` dataset
I am currently trying to load the `ted_talks_iwslt` dataset into google colab.
The [docs](https://huggingface.co/datasets/ted_talks_iwslt) mention the following way of doing so.
```python
dataset = load_dataset("ted_talks_iwslt", language_pair=("... | [
-0.21400973200798035,
0.12844395637512207,
0.048511605709791183,
0.20013149082660675,
0.03129120171070099,
0.0933723971247673,
0.671215832233429,
0.19440868496894836,
0.12410249561071396,
-0.06191830337047577,
-0.0495758093893528,
0.3381049633026123,
-0.2910546660423279,
0.4190410375595093... |
https://github.com/huggingface/datasets/issues/2058 | Hi! You can either save the TF dataset to one of the formats supported by datasets (`parquet`, `csv`, `json`, ...) or pass a generator function to `Dataset.from_generator` that yields its examples. | Is it possible to convert a `tfds` to HuggingFace `dataset`? | I was having some weird bugs with `C4`dataset version of HuggingFace, so I decided to try to download `C4`from `tfds`. I would like to know if it is possible to convert a tfds dataset to HuggingFace dataset format :)
I can also open a new issue reporting the bug I'm receiving with `datasets.load_dataset('c4','en')` ... | 31 | Is it possible to convert a `tfds` to HuggingFace `dataset`?
I was having some weird bugs with `C4`dataset version of HuggingFace, so I decided to try to download `C4`from `tfds`. I would like to know if it is possible to convert a tfds dataset to HuggingFace dataset format :)
I can also open a new issue reporting... | [
-0.10825781524181366,
-0.4855848550796509,
0.011034652590751648,
0.5216737985610962,
0.305899053812027,
0.2818625569343567,
-0.16113384068012238,
0.21135073900222778,
-0.1777811348438263,
-0.03816591203212738,
-0.5086010694503784,
-0.10756836831569672,
-0.35055696964263916,
0.5548804998397... |
https://github.com/huggingface/datasets/issues/2056 | @lhoestq I also deleted the cache and redownload the file and still the same issue, I appreciate any help on this. thanks | issue with opus100/en-fr dataset | Hi
I am running run_mlm.py code of huggingface repo with opus100/fr-en pair, I am getting this error, note that this error occurs for only this pairs and not the other pairs. Any idea why this is occurring? and how I can solve this?
Thanks a lot @lhoestq for your help in advance.
`
thread '<unnamed>' panicked... | 22 | issue with opus100/en-fr dataset
Hi
I am running run_mlm.py code of huggingface repo with opus100/fr-en pair, I am getting this error, note that this error occurs for only this pairs and not the other pairs. Any idea why this is occurring? and how I can solve this?
Thanks a lot @lhoestq for your help in advanc... | [
-0.41173648834228516,
-0.1673513799905777,
-0.01564515009522438,
0.39724838733673096,
0.11825765669345856,
0.08237646520137787,
0.1922522336244583,
0.28199779987335205,
-0.1431499719619751,
0.25799307227134705,
-0.24243488907814026,
-0.024896178394556046,
0.132223442196846,
0.3834213018417... |
https://github.com/huggingface/datasets/issues/2056 | Here please find the minimal code to reproduce the issue @lhoestq note this only happens with MT5TokenizerFast
```
from datasets import load_dataset
from transformers import MT5TokenizerFast
def get_tokenized_dataset(dataset_name, dataset_config_name, tokenizer):
datasets = load_dataset(dataset_name, data... | issue with opus100/en-fr dataset | Hi
I am running run_mlm.py code of huggingface repo with opus100/fr-en pair, I am getting this error, note that this error occurs for only this pairs and not the other pairs. Any idea why this is occurring? and how I can solve this?
Thanks a lot @lhoestq for your help in advance.
`
thread '<unnamed>' panicked... | 114 | issue with opus100/en-fr dataset
Hi
I am running run_mlm.py code of huggingface repo with opus100/fr-en pair, I am getting this error, note that this error occurs for only this pairs and not the other pairs. Any idea why this is occurring? and how I can solve this?
Thanks a lot @lhoestq for your help in advanc... | [
-0.41173648834228516,
-0.1673513799905777,
-0.01564515009522438,
0.39724838733673096,
0.11825765669345856,
0.08237646520137787,
0.1922522336244583,
0.28199779987335205,
-0.1431499719619751,
0.25799307227134705,
-0.24243488907814026,
-0.024896178394556046,
0.132223442196846,
0.3834213018417... |
https://github.com/huggingface/datasets/issues/2056 | as per https://github.com/huggingface/tokenizers/issues/626 this looks like to be the tokenizer bug, I therefore, reported it there https://github.com/huggingface/tokenizers/issues/626 and I am closing this one. | issue with opus100/en-fr dataset | Hi
I am running run_mlm.py code of huggingface repo with opus100/fr-en pair, I am getting this error, note that this error occurs for only this pairs and not the other pairs. Any idea why this is occurring? and how I can solve this?
Thanks a lot @lhoestq for your help in advance.
`
thread '<unnamed>' panicked... | 23 | issue with opus100/en-fr dataset
Hi
I am running run_mlm.py code of huggingface repo with opus100/fr-en pair, I am getting this error, note that this error occurs for only this pairs and not the other pairs. Any idea why this is occurring? and how I can solve this?
Thanks a lot @lhoestq for your help in advanc... | [
-0.41173648834228516,
-0.1673513799905777,
-0.01564515009522438,
0.39724838733673096,
0.11825765669345856,
0.08237646520137787,
0.1922522336244583,
0.28199779987335205,
-0.1431499719619751,
0.25799307227134705,
-0.24243488907814026,
-0.024896178394556046,
0.132223442196846,
0.3834213018417... |
https://github.com/huggingface/datasets/issues/2055 | I tried this way, but when there is a mapping process to the dataset, it again uses a random cache name. atm, I am trying to use the following method by setting an exact cache file,
```
dataset_with_embedding =csv_dataset.map(
partial(self.embed, ctx_encoder=ctx_encoder, ctx_tokenizer=s... | is there a way to override a dataset object saved with save_to_disk? | At the moment when I use save_to_disk, it uses the arbitrary name for the arrow file. Is there a way to override such an object? | 69 | is there a way to override a dataset object saved with save_to_disk?
At the moment when I use save_to_disk, it uses the arbitrary name for the arrow file. Is there a way to override such an object?
I tried this way, but when there is a mapping process to the dataset, it again uses a random cache name. atm, I am t... | [
0.01877675950527191,
-0.15488958358764648,
-0.014641482383012772,
-0.03985309228301048,
0.24491699039936066,
0.27030324935913086,
0.14376652240753174,
0.12786026298999786,
0.1100357323884964,
0.1771552860736847,
0.3504514992237091,
0.45321065187454224,
-0.20381209254264832,
-0.036236733198... |
https://github.com/huggingface/datasets/issues/2055 | I'm not sure I understand your issue, can you elaborate ?
`cache_file_name` is indeed an argument you can set to specify the cache file that will be used for the processed dataset. By default the file is named with something like `cache-<fingerprint>.arrow` where the fingerprint is a hash. | is there a way to override a dataset object saved with save_to_disk? | At the moment when I use save_to_disk, it uses the arbitrary name for the arrow file. Is there a way to override such an object? | 48 | is there a way to override a dataset object saved with save_to_disk?
At the moment when I use save_to_disk, it uses the arbitrary name for the arrow file. Is there a way to override such an object?
I'm not sure I understand your issue, can you elaborate ?
`cache_file_name` is indeed an argument you can set to ... | [
0.005880638957023621,
-0.0709291324019432,
-0.045395489782094955,
0.009185930714011192,
0.27734971046447754,
0.2527236044406891,
0.2612767815589905,
0.24260661005973816,
-0.053569622337818146,
0.10696284472942352,
0.30203554034233093,
0.4447040557861328,
-0.16169270873069763,
-0.1279572397... |
https://github.com/huggingface/datasets/issues/2055 | Let's say I am updating a set of embedding in a dataset that is around 40GB inside a training loop every 500 steps (Ex: calculating the embeddings in updated ctx_encoder in RAG and saving it to the passage path). So when we use **dataset_object.save_to_disk('passage_path_directory')** it will save the new dataset obje... | is there a way to override a dataset object saved with save_to_disk? | At the moment when I use save_to_disk, it uses the arbitrary name for the arrow file. Is there a way to override such an object? | 134 | is there a way to override a dataset object saved with save_to_disk?
At the moment when I use save_to_disk, it uses the arbitrary name for the arrow file. Is there a way to override such an object?
Let's say I am updating a set of embedding in a dataset that is around 40GB inside a training loop every 500 steps (... | [
0.045734621584415436,
-0.0365205854177475,
-0.006559804081916809,
-0.06631392985582352,
0.2652112543582916,
0.1467556208372116,
0.05342165380716324,
0.13368827104568481,
-0.13232587277889252,
0.3330437242984772,
0.32839661836624146,
0.48019108176231384,
-0.38887009024620056,
0.093378022313... |
https://github.com/huggingface/datasets/issues/2054 | This has been fixed in #2057 by @matt-peters (thanks again !)
The fix is available on the master branch and we'll do a new release very soon :) | Could not find file for ZEST dataset | I am trying to use zest dataset from Allen AI using below code in colab,
```
!pip install -q datasets
from datasets import load_dataset
dataset = load_dataset("zest")
```
I am getting the following error,
```
Using custom data configuration default
Downloading and preparing dataset zest/default (download: ... | 28 | Could not find file for ZEST dataset
I am trying to use zest dataset from Allen AI using below code in colab,
```
!pip install -q datasets
from datasets import load_dataset
dataset = load_dataset("zest")
```
I am getting the following error,
```
Using custom data configuration default
Downloading and pre... | [
-0.5492256879806519,
-0.15621739625930786,
-0.09730516374111176,
0.3641074597835541,
0.3012053370475769,
0.09310780465602875,
0.031872428953647614,
0.22301292419433594,
0.23836341500282288,
0.4310351610183716,
-0.20342132449150085,
-0.009750917553901672,
-0.11628186702728271,
0.12189775705... |
https://github.com/huggingface/datasets/issues/2052 | Hi,
this was fixed by #1995, so you can wait for the next release or install the package directly from the master branch with the following command:
```bash
pip install git+https://github.com/huggingface/datasets
``` | Timit_asr dataset repeats examples | Summary
When loading timit_asr dataset on datasets 1.4+, every row in the dataset is the same
Steps to reproduce
As an example, on this code there is the text from the training part:
Code snippet:
```
from datasets import load_dataset, load_metric
timit = load_dataset("timit_asr")
timit['train']['text']... | 32 | Timit_asr dataset repeats examples
Summary
When loading timit_asr dataset on datasets 1.4+, every row in the dataset is the same
Steps to reproduce
As an example, on this code there is the text from the training part:
Code snippet:
```
from datasets import load_dataset, load_metric
timit = load_dataset... | [
0.06932377070188522,
-0.23608100414276123,
0.014321446418762207,
0.38754141330718994,
0.2564872205257416,
-0.05277504026889801,
0.3894461691379547,
0.1509234458208084,
-0.3530937433242798,
0.21451421082019806,
0.03625626116991043,
0.3838866353034973,
-0.19141097366809845,
0.314921081066131... |
https://github.com/huggingface/datasets/issues/2050 | Sure you can use the json loader
```python
data_files = {"train": "path/to/your/train_data.json", "test": "path/to/your/test_data.json"}
train_dataset = load_dataset("json", data_files=data_files, split="train")
test_dataset = load_dataset("json", data_files=data_files, split="test")
```
You just need to make s... | Build custom dataset to fine-tune Wav2Vec2 | Thank you for your recent tutorial on how to finetune Wav2Vec2 on a custom dataset. The example you gave here (https://huggingface.co/blog/fine-tune-xlsr-wav2vec2) was on the CommonVoice dataset. However, what if I want to load my own dataset? I have a manifest (transcript and their audio files) in a JSON file.
| 51 | Build custom dataset to fine-tune Wav2Vec2
Thank you for your recent tutorial on how to finetune Wav2Vec2 on a custom dataset. The example you gave here (https://huggingface.co/blog/fine-tune-xlsr-wav2vec2) was on the CommonVoice dataset. However, what if I want to load my own dataset? I have a manifest (transcript ... | [
-0.08610294759273529,
0.025272607803344727,
0.013138361275196075,
0.0565955713391304,
-0.015416242182254791,
-0.0016974955797195435,
0.04018605127930641,
0.16728049516677856,
0.11139741539955139,
-0.03239324688911438,
-0.21395531296730042,
0.4168873131275177,
-0.2158392369747162,
0.1142554... |
https://github.com/huggingface/datasets/issues/2046 | I think faiss automatically sets the number of threads to use to build the index.
Can you check how many CPU cores are being used when you build the index in `use_own_knowleldge_dataset` as compared to this script ? Are there other programs running (maybe for rank>0) ? | add_faisis_index gets very slow when doing it interatively | As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any ... | 47 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_d... | [
-0.49882426857948303,
-0.26827841997146606,
-0.024500548839569092,
0.12822841107845306,
0.05943967029452324,
0.20778411626815796,
0.12146280705928802,
0.4241299033164978,
0.2917422652244568,
0.29249656200408936,
-0.1188247799873352,
0.18831515312194824,
0.1372128129005432,
0.08582127094268... |
https://github.com/huggingface/datasets/issues/2046 | Hi,
I am running the add_faiss_index during the training process of the RAG from the master process (rank 0). But at the exact moment, I do not run any other process since I do it in every 5000 training steps.
I think what you say is correct. It depends on the number of CPU cores. I did an experiment to compare... | add_faisis_index gets very slow when doing it interatively | As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any ... | 108 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_d... | [
-0.49882426857948303,
-0.26827841997146606,
-0.024500548839569092,
0.12822841107845306,
0.05943967029452324,
0.20778411626815796,
0.12146280705928802,
0.4241299033164978,
0.2917422652244568,
0.29249656200408936,
-0.1188247799873352,
0.18831515312194824,
0.1372128129005432,
0.08582127094268... |
https://github.com/huggingface/datasets/issues/2046 | Can you try to set the number of threads manually ?
If you set the same number of threads for both the `use_own_knowledge_dataset.py` and RAG training, it should take the same amount of time.
You can see how to set the number of thread in the faiss wiki: https://github.com/facebookresearch/faiss/wiki/Threads-and-asyn... | add_faisis_index gets very slow when doing it interatively | As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any ... | 49 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_d... | [
-0.49882426857948303,
-0.26827841997146606,
-0.024500548839569092,
0.12822841107845306,
0.05943967029452324,
0.20778411626815796,
0.12146280705928802,
0.4241299033164978,
0.2917422652244568,
0.29249656200408936,
-0.1188247799873352,
0.18831515312194824,
0.1372128129005432,
0.08582127094268... |
https://github.com/huggingface/datasets/issues/2046 | Ok, I will report the details too soon. I am the first one on the list and currently add_index being computed for the 3rd time in the loop. Actually seems like the time is taken to complete each interaction is the same, but around 1 hour more compared to running it without the training loop. A the moment this takes 5hr... | add_faisis_index gets very slow when doing it interatively | As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any ... | 91 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_d... | [
-0.49882426857948303,
-0.26827841997146606,
-0.024500548839569092,
0.12822841107845306,
0.05943967029452324,
0.20778411626815796,
0.12146280705928802,
0.4241299033164978,
0.2917422652244568,
0.29249656200408936,
-0.1188247799873352,
0.18831515312194824,
0.1372128129005432,
0.08582127094268... |
https://github.com/huggingface/datasets/issues/2046 | @lhoestq on a different note, I read about using Faiss-GPU, but the documentation says we should use it when the dataset has the ability to fit into the GPU memory. Although this might work, in the long-term this is not that practical for me.
https://github.com/matsui528/faiss_tips | add_faisis_index gets very slow when doing it interatively | As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any ... | 45 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_d... | [
-0.49882426857948303,
-0.26827841997146606,
-0.024500548839569092,
0.12822841107845306,
0.05943967029452324,
0.20778411626815796,
0.12146280705928802,
0.4241299033164978,
0.2917422652244568,
0.29249656200408936,
-0.1188247799873352,
0.18831515312194824,
0.1372128129005432,
0.08582127094268... |
https://github.com/huggingface/datasets/issues/2046 | @lhoestq
Hi, I executed the **use_own_dataset.py** script independently and ask a few of my friends to run their programs in the HPC machine at the same time.
Once there are so many other processes are running the add_index function gets slows down naturally. So basically the speed of the add_index depends ... | add_faisis_index gets very slow when doing it interatively | As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any ... | 121 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_d... | [
-0.49882426857948303,
-0.26827841997146606,
-0.024500548839569092,
0.12822841107845306,
0.05943967029452324,
0.20778411626815796,
0.12146280705928802,
0.4241299033164978,
0.2917422652244568,
0.29249656200408936,
-0.1188247799873352,
0.18831515312194824,
0.1372128129005432,
0.08582127094268... |
https://github.com/huggingface/datasets/issues/2046 | It's a matter of tradeoffs.
HSNW is fast at query time but takes some time to build.
A flat index is flat to build but is "slow" at query time.
An IVF index is probably a good choice for you: fast building and fast queries (but still slower queries than HSNW).
Note that for an IVF index you would need to have an ... | add_faisis_index gets very slow when doing it interatively | As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any ... | 181 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_d... | [
-0.49882426857948303,
-0.26827841997146606,
-0.024500548839569092,
0.12822841107845306,
0.05943967029452324,
0.20778411626815796,
0.12146280705928802,
0.4241299033164978,
0.2917422652244568,
0.29249656200408936,
-0.1188247799873352,
0.18831515312194824,
0.1372128129005432,
0.08582127094268... |
https://github.com/huggingface/datasets/issues/2046 | @lhoestq
Thanks a lot for sharing all this prior knowledge.
Just asking what would be a good nlist of parameters for 30 million embeddings? | add_faisis_index gets very slow when doing it interatively | As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any ... | 24 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_d... | [
-0.49882426857948303,
-0.26827841997146606,
-0.024500548839569092,
0.12822841107845306,
0.05943967029452324,
0.20778411626815796,
0.12146280705928802,
0.4241299033164978,
0.2917422652244568,
0.29249656200408936,
-0.1188247799873352,
0.18831515312194824,
0.1372128129005432,
0.08582127094268... |
https://github.com/huggingface/datasets/issues/2046 | When IVF is used alone, nlist should be between `4*sqrt(n)` and `16*sqrt(n)`.
For more details take a look at [this section of the Faiss wiki](https://github.com/facebookresearch/faiss/wiki/Guidelines-to-choose-an-index#how-big-is-the-dataset) | add_faisis_index gets very slow when doing it interatively | As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any ... | 25 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_d... | [
-0.49882426857948303,
-0.26827841997146606,
-0.024500548839569092,
0.12822841107845306,
0.05943967029452324,
0.20778411626815796,
0.12146280705928802,
0.4241299033164978,
0.2917422652244568,
0.29249656200408936,
-0.1188247799873352,
0.18831515312194824,
0.1372128129005432,
0.08582127094268... |
https://github.com/huggingface/datasets/issues/2046 | @lhoestq Thanks a lot for the help you have given to solve this issue. As per my experiments, IVF index suits well for my case and it is a lot faster. The use of this can make the entire RAG end-to-end trainable lot faster. So I will close this issue. Will do the final PR soon. | add_faisis_index gets very slow when doing it interatively | As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any ... | 56 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_d... | [
-0.49882426857948303,
-0.26827841997146606,
-0.024500548839569092,
0.12822841107845306,
0.05943967029452324,
0.20778411626815796,
0.12146280705928802,
0.4241299033164978,
0.2917422652244568,
0.29249656200408936,
-0.1188247799873352,
0.18831515312194824,
0.1372128129005432,
0.08582127094268... |
https://github.com/huggingface/datasets/issues/2040 | Hi ! To help me understand the situation, can you print the values of `load_from_disk(PATH_DATA_CLS_A)['train']._indices_data_files` and `load_from_disk(PATH_DATA_CLS_B)['train']._indices_data_files` ?
They should both have a path to an arrow file
Also note that from #2025 concatenating datasets will no longer hav... | ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk | Hi there,
I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects):
```python
concatenate_datasets([load_from_disk(PATH_DATA_CLS_A)['train'], load_from_disk(PATH_DATA_CLS_B)['train']])
```
Yie... | 41 | ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk
Hi there,
I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects):
```python
concatenate_datasets([... | [
-0.011298201978206635,
-0.025897875428199768,
-0.04495932161808014,
0.5074424147605896,
0.1715032160282135,
0.18271678686141968,
0.057955801486968994,
0.12864750623703003,
-0.06289076805114746,
0.13362297415733337,
0.07037336379289627,
0.295501172542572,
-0.08438029885292053,
-0.1025010794... |
https://github.com/huggingface/datasets/issues/2040 | Sure, thanks for the fast reply!
For dataset A: `[{'filename': 'drive/MyDrive/data_target_task/dataset_a/train/cache-4797266bf4db1eb7.arrow'}]`
For dataset B: `[]`
No clue why for B it returns nothing. `PATH_DATA_CLS_B` is exactly the same in `save_to_disk` and `load_from_disk`... Also I can verify that the fold... | ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk | Hi there,
I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects):
```python
concatenate_datasets([load_from_disk(PATH_DATA_CLS_A)['train'], load_from_disk(PATH_DATA_CLS_B)['train']])
```
Yie... | 43 | ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk
Hi there,
I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects):
```python
concatenate_datasets([... | [
-0.007757864892482758,
-0.007315725088119507,
-0.01882675290107727,
0.5390487313270569,
0.22807559370994568,
0.18429242074489594,
0.05310799181461334,
0.1309664398431778,
-0.05644046887755394,
0.1484985053539276,
0.06288636475801468,
0.2342551350593567,
-0.03250474855303764,
-0.16660599410... |
https://github.com/huggingface/datasets/issues/2040 | In the next release you'll be able to concatenate any kinds of dataset (either from memory or from disk).
For now I'd suggest you to flatten the indices of the A and B datasets. This will remove the indices mapping and you will be able to concatenate them. You can flatten the indices with
```python
dataset = datas... | ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk | Hi there,
I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects):
```python
concatenate_datasets([load_from_disk(PATH_DATA_CLS_A)['train'], load_from_disk(PATH_DATA_CLS_B)['train']])
```
Yie... | 59 | ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk
Hi there,
I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects):
```python
concatenate_datasets([... | [
-0.0903855487704277,
-0.08030962944030762,
-0.02171476185321808,
0.4296606779098511,
0.21229036152362823,
0.26673123240470886,
0.0407162569463253,
0.17951613664627075,
-0.0718931332230568,
0.17469540238380432,
-0.0009917765855789185,
0.19955860078334808,
-0.08817721158266068,
-0.0326922386... |
https://github.com/huggingface/datasets/issues/2040 | Indeed this works. Not the most elegant solution, but it does the trick. Thanks a lot! | ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk | Hi there,
I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects):
```python
concatenate_datasets([load_from_disk(PATH_DATA_CLS_A)['train'], load_from_disk(PATH_DATA_CLS_B)['train']])
```
Yie... | 16 | ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk
Hi there,
I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects):
```python
concatenate_datasets([... | [
-0.04838210716843605,
-0.07965591549873352,
-0.021617289632558823,
0.4603259265422821,
0.1872413158416748,
0.26541775465011597,
0.0407089963555336,
0.11934363842010498,
-0.047968097031116486,
0.14856736361980438,
0.0525876060128212,
0.17896027863025665,
-0.06306637078523636,
-0.07126638293... |
https://github.com/huggingface/datasets/issues/2038 | Hi ! Thanks for reporting.
To update the dataset_infos.json you can run:
```
datasets-cli test ./datasets/doc2dial --all_configs --save_infos --ignore_verifications
``` | outdated dataset_infos.json might fail verifications | The [doc2dial/dataset_infos.json](https://github.com/huggingface/datasets/blob/master/datasets/doc2dial/dataset_infos.json) is outdated. It would fail data_loader when verifying download checksum etc..
Could you please update this file or point me how to update this file?
Thank you. | 20 | outdated dataset_infos.json might fail verifications
The [doc2dial/dataset_infos.json](https://github.com/huggingface/datasets/blob/master/datasets/doc2dial/dataset_infos.json) is outdated. It would fail data_loader when verifying download checksum etc..
Could you please update this file or point me how to update ... | [
-0.12009239941835403,
0.1984143853187561,
-0.1118750348687172,
0.185001939535141,
0.11309680342674255,
0.21630403399467468,
0.1035633385181427,
0.4946835935115814,
0.20697259902954102,
-0.0703192949295044,
0.07293274253606796,
0.047220371663570404,
0.19815467298030853,
0.24174323678016663,... |
https://github.com/huggingface/datasets/issues/2035 | Dear @lhoestq for wikipedia dataset I also get the same error, I greatly appreciate if you could have a look into this dataset as well. Below please find the command to reproduce the error:
```
dataset = load_dataset("wikipedia", "20200501.bg")
print(dataset)
```
Your library is my only chance to be able train... | wiki40b/wikipedia for almost all languages cannot be downloaded | Hi
I am trying to download the data as below:
```
from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs")
print(dataset)
```
I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error.
I rea... | 62 | wiki40b/wikipedia for almost all languages cannot be downloaded
Hi
I am trying to download the data as below:
```
from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs")
print(dataset)
```
I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For alm... | [
-0.25449812412261963,
-0.0779205784201622,
-0.153758242726326,
0.430866539478302,
0.39970260858535767,
0.35046160221099854,
0.13685046136379242,
0.5331583619117737,
0.1893271803855896,
0.023584403097629547,
-0.17730340361595154,
-0.09421733766794205,
0.094403937458992,
0.011183857917785645... |
https://github.com/huggingface/datasets/issues/2035 | Hi @dorost1234,
Try installing this library first, `pip install 'apache-beam[gcp]' --use-feature=2020-resolver` followed by loading dataset like this using beam runner.
`dataset = load_dataset("wiki40b", "cs", beam_runner='DirectRunner')`
I also read in error stack trace that:
> Trying to generate a dataset ... | wiki40b/wikipedia for almost all languages cannot be downloaded | Hi
I am trying to download the data as below:
```
from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs")
print(dataset)
```
I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error.
I rea... | 83 | wiki40b/wikipedia for almost all languages cannot be downloaded
Hi
I am trying to download the data as below:
```
from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs")
print(dataset)
```
I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For alm... | [
-0.25449812412261963,
-0.0779205784201622,
-0.153758242726326,
0.430866539478302,
0.39970260858535767,
0.35046160221099854,
0.13685046136379242,
0.5331583619117737,
0.1893271803855896,
0.023584403097629547,
-0.17730340361595154,
-0.09421733766794205,
0.094403937458992,
0.011183857917785645... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.