html_url stringlengths 48 51 | title stringlengths 5 280 | comments stringlengths 63 51.8k | body stringlengths 0 36.2k β | comment_length int64 16 1.52k | text stringlengths 159 54.1k | embeddings listlengths 768 768 |
|---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/2230 | Keys yielded while generating dataset are not being checked | Thanks a lot @lhoestq. I think I understand what we need to do now. The keys can indeed be used for detecting duplicates in generated examples as well as ensuring the order.
> Maybe we cam simply keep track of the hashes of of each batch being written ? The size of the batch when the data are save in arrow is 10 000... | The keys used in the dataset generation script to ensure the same order is generated on every user's end should be checked for their types (i.e either `str` or `int`) as well as whether they are unique or not.
Currently, the keys are not being checked for any of these, as evident from `xnli' dataset generation:
https... | 119 | Keys yielded while generating dataset are not being checked
The keys used in the dataset generation script to ensure the same order is generated on every user's end should be checked for their types (i.e either `str` or `int`) as well as whether they are unique or not.
Currently, the keys are not being checked for a... | [
0.027536850422620773,
-0.21593120694160461,
0.029170561581850052,
0.4762757420539856,
0.06841956824064255,
-0.23636242747306824,
0.41689804196357727,
0.08041307330131531,
0.43124350905418396,
0.13391166925430298,
0.16721917688846588,
0.350257009267807,
-0.020680762827396393,
0.206516668200... |
https://github.com/huggingface/datasets/issues/2229 | `xnli` dataset creating a tuple key while yielding instead of `str` or `int` | Hi ! Sure sounds good. Also if you find other datasets that use tuples instead of str/int, you can also fix them !
thanks :) | When using `ds = datasets.load_dataset('xnli', 'ar')`, the dataset generation script uses the following section of code in the egging, which yields a tuple key instead of the specified `str` or `int` key:
https://github.com/huggingface/datasets/blob/56346791aed417306d054d89bd693d6b7eab17f7/datasets/xnli/xnli.py#L196
... | 25 | `xnli` dataset creating a tuple key while yielding instead of `str` or `int`
When using `ds = datasets.load_dataset('xnli', 'ar')`, the dataset generation script uses the following section of code in the egging, which yields a tuple key instead of the specified `str` or `int` key:
https://github.com/huggingface/dat... | [
-0.05393849313259125,
0.05097480118274689,
0.04516834393143654,
0.12626633048057556,
0.2513769268989563,
0.017300784587860107,
0.44494616985321045,
0.2987631857395172,
0.6008676290512085,
0.2404712736606598,
0.10923505574464798,
0.4075709283351898,
0.019506890326738358,
0.21599061787128448... |
https://github.com/huggingface/datasets/issues/2229 | `xnli` dataset creating a tuple key while yielding instead of `str` or `int` | @lhoestq I have sent a PR for fixing the issue. Would be great if you could have a look! Thanks! | When using `ds = datasets.load_dataset('xnli', 'ar')`, the dataset generation script uses the following section of code in the egging, which yields a tuple key instead of the specified `str` or `int` key:
https://github.com/huggingface/datasets/blob/56346791aed417306d054d89bd693d6b7eab17f7/datasets/xnli/xnli.py#L196
... | 20 | `xnli` dataset creating a tuple key while yielding instead of `str` or `int`
When using `ds = datasets.load_dataset('xnli', 'ar')`, the dataset generation script uses the following section of code in the egging, which yields a tuple key instead of the specified `str` or `int` key:
https://github.com/huggingface/dat... | [
-0.07023052871227264,
0.09619051218032837,
0.07785540819168091,
0.12735694646835327,
0.19009727239608765,
0.012610279023647308,
0.44976550340652466,
0.29945608973503113,
0.6488568782806396,
0.17797209322452545,
0.08786289393901825,
0.44141942262649536,
0.06090162694454193,
0.20753447711467... |
https://github.com/huggingface/datasets/issues/2226 | Batched map fails when removing all columns | I found the problem. I called `set_format` on some columns before. This makes it crash. Here is a complete example to reproduce:
```python
from datasets import load_dataset
sst = load_dataset("sst")
sst.set_format("torch", columns=["label"], output_all_columns=True)
ds = sst["train"]
# crashes
ds.map(
l... | Hi @lhoestq ,
I'm hijacking this issue, because I'm currently trying to do the approach you recommend:
> Currently the optimal setup for single-column computations is probably to do something like
>
> ```python
> result = dataset.map(f, input_columns="my_col", remove_columns=dataset.column_names)
> ```
He... | 49 | Batched map fails when removing all columns
Hi @lhoestq ,
I'm hijacking this issue, because I'm currently trying to do the approach you recommend:
> Currently the optimal setup for single-column computations is probably to do something like
>
> ```python
> result = dataset.map(f, input_columns="my_col", rem... | [
-0.18979878723621368,
0.11866973340511322,
0.016956862062215805,
0.03455599397420883,
0.2957548499107361,
0.19975599646568298,
0.7953289747238159,
0.3469541370868683,
0.26812177896499634,
0.5083369612693787,
0.12785471975803375,
0.398631751537323,
-0.22215960919857025,
-0.14976075291633606... |
https://github.com/huggingface/datasets/issues/2226 | Batched map fails when removing all columns | Thanks for reporting and for providing this code to reproduce the issue, this is really helpful ! | Hi @lhoestq ,
I'm hijacking this issue, because I'm currently trying to do the approach you recommend:
> Currently the optimal setup for single-column computations is probably to do something like
>
> ```python
> result = dataset.map(f, input_columns="my_col", remove_columns=dataset.column_names)
> ```
He... | 17 | Batched map fails when removing all columns
Hi @lhoestq ,
I'm hijacking this issue, because I'm currently trying to do the approach you recommend:
> Currently the optimal setup for single-column computations is probably to do something like
>
> ```python
> result = dataset.map(f, input_columns="my_col", rem... | [
-0.18979878723621368,
0.11866973340511322,
0.016956862062215805,
0.03455599397420883,
0.2957548499107361,
0.19975599646568298,
0.7953289747238159,
0.3469541370868683,
0.26812177896499634,
0.5083369612693787,
0.12785471975803375,
0.398631751537323,
-0.22215960919857025,
-0.14976075291633606... |
https://github.com/huggingface/datasets/issues/2226 | Batched map fails when removing all columns | I merged a fix, it should work on `master` now :)
We'll do a new release soon ! | Hi @lhoestq ,
I'm hijacking this issue, because I'm currently trying to do the approach you recommend:
> Currently the optimal setup for single-column computations is probably to do something like
>
> ```python
> result = dataset.map(f, input_columns="my_col", remove_columns=dataset.column_names)
> ```
He... | 18 | Batched map fails when removing all columns
Hi @lhoestq ,
I'm hijacking this issue, because I'm currently trying to do the approach you recommend:
> Currently the optimal setup for single-column computations is probably to do something like
>
> ```python
> result = dataset.map(f, input_columns="my_col", rem... | [
-0.18979878723621368,
0.11866973340511322,
0.016956862062215805,
0.03455599397420883,
0.2957548499107361,
0.19975599646568298,
0.7953289747238159,
0.3469541370868683,
0.26812177896499634,
0.5083369612693787,
0.12785471975803375,
0.398631751537323,
-0.22215960919857025,
-0.14976075291633606... |
https://github.com/huggingface/datasets/issues/2218 | Duplicates in the LAMA dataset | Hi,
currently the datasets API doesn't have a dedicated function to remove duplicate rows, but since the LAMA dataset is not too big (it fits in RAM), we can leverage pandas to help us remove duplicates:
```python
>>> from datasets import load_dataset, Dataset
>>> dataset = load_dataset('lama', split='train')
>>... | I observed duplicates in the LAMA probing dataset, see a minimal code below.
```
>>> import datasets
>>> dataset = datasets.load_dataset('lama')
No config specified, defaulting to: lama/trex
Reusing dataset lama (/home/anam/.cache/huggingface/datasets/lama/trex/1.1.0/97deffae13eca0a18e77dfb3960bb31741e973586f5c... | 94 | Duplicates in the LAMA dataset
I observed duplicates in the LAMA probing dataset, see a minimal code below.
```
>>> import datasets
>>> dataset = datasets.load_dataset('lama')
No config specified, defaulting to: lama/trex
Reusing dataset lama (/home/anam/.cache/huggingface/datasets/lama/trex/1.1.0/97deffae13e... | [
0.26157328486442566,
-0.3211714029312134,
-0.030378006398677826,
0.6542940139770508,
0.31745362281799316,
-0.13887424767017365,
0.31275230646133423,
0.3269728124141693,
-0.5472854971885681,
0.3365437984466553,
-0.345426082611084,
0.3600650727748871,
0.08196303248405457,
-0.2813018560409546... |
https://github.com/huggingface/datasets/issues/2218 | Duplicates in the LAMA dataset | Oh, seems like my question wasn't specified well. I'm _not_ asking how to remove duplicates, but whether duplicates should be removed if I want to do the evaluation on the LAMA dataset as it was proposed in the original paper/repository? In other words, will I get the same result if evaluate on the de-duplicated datase... | I observed duplicates in the LAMA probing dataset, see a minimal code below.
```
>>> import datasets
>>> dataset = datasets.load_dataset('lama')
No config specified, defaulting to: lama/trex
Reusing dataset lama (/home/anam/.cache/huggingface/datasets/lama/trex/1.1.0/97deffae13eca0a18e77dfb3960bb31741e973586f5c... | 77 | Duplicates in the LAMA dataset
I observed duplicates in the LAMA probing dataset, see a minimal code below.
```
>>> import datasets
>>> dataset = datasets.load_dataset('lama')
No config specified, defaulting to: lama/trex
Reusing dataset lama (/home/anam/.cache/huggingface/datasets/lama/trex/1.1.0/97deffae13e... | [
0.26157328486442566,
-0.3211714029312134,
-0.030378006398677826,
0.6542940139770508,
0.31745362281799316,
-0.13887424767017365,
0.31275230646133423,
0.3269728124141693,
-0.5472854971885681,
0.3365437984466553,
-0.345426082611084,
0.3600650727748871,
0.08196303248405457,
-0.2813018560409546... |
https://github.com/huggingface/datasets/issues/2218 | Duplicates in the LAMA dataset | So it looks like the person who added LAMA to the library chose to have one item per piece of evidence rather than one per relation - and in this case, there are duplicate pieces of evidence for the target relation
If I understand correctly, to reproduce reported results, you would have to aggregate predictions for ... | I observed duplicates in the LAMA probing dataset, see a minimal code below.
```
>>> import datasets
>>> dataset = datasets.load_dataset('lama')
No config specified, defaulting to: lama/trex
Reusing dataset lama (/home/anam/.cache/huggingface/datasets/lama/trex/1.1.0/97deffae13eca0a18e77dfb3960bb31741e973586f5c... | 77 | Duplicates in the LAMA dataset
I observed duplicates in the LAMA probing dataset, see a minimal code below.
```
>>> import datasets
>>> dataset = datasets.load_dataset('lama')
No config specified, defaulting to: lama/trex
Reusing dataset lama (/home/anam/.cache/huggingface/datasets/lama/trex/1.1.0/97deffae13e... | [
0.26157328486442566,
-0.3211714029312134,
-0.030378006398677826,
0.6542940139770508,
0.31745362281799316,
-0.13887424767017365,
0.31275230646133423,
0.3269728124141693,
-0.5472854971885681,
0.3365437984466553,
-0.345426082611084,
0.3600650727748871,
0.08196303248405457,
-0.2813018560409546... |
https://github.com/huggingface/datasets/issues/2214 | load_metric error: module 'datasets.utils.file_utils' has no attribute 'add_start_docstrings' | Hi @nsaphra, thanks for reporting.
This issue was fixed in `datasets` version 1.3.0. Could you please update `datasets` and tell me if the problem persists?
```shell
pip install -U datasets
``` | I'm having the same problem as [Notebooks issue 10](https://github.com/huggingface/notebooks/issues/10) on datasets 1.2.1, and it seems to be an issue with the datasets package.
```python
>>> from datasets import load_metric
>>> metric = load_metric("glue", "sst2")
Traceback (most recent call last):
File "<std... | 31 | load_metric error: module 'datasets.utils.file_utils' has no attribute 'add_start_docstrings'
I'm having the same problem as [Notebooks issue 10](https://github.com/huggingface/notebooks/issues/10) on datasets 1.2.1, and it seems to be an issue with the datasets package.
```python
>>> from datasets import load_me... | [
-0.27232426404953003,
-0.21355824172496796,
0.019322574138641357,
0.18529212474822998,
0.4195103049278259,
0.06305492669343948,
0.27295348048210144,
0.18010608851909637,
0.07569603621959686,
-0.05244581401348114,
-0.19403764605522156,
0.154596209526062,
-0.07444863766431808,
0.297414958477... |
https://github.com/huggingface/datasets/issues/2214 | load_metric error: module 'datasets.utils.file_utils' has no attribute 'add_start_docstrings' | There might be a bug in the conda version of `datasets` 1.2.1 where the datasets/metric scripts are downloaded from `master` instead of the `1.2.1` repo.
You can try setting the env var `HF_SCRIPTS_VERSION="1.2.1"` as a workaround. Let me know if that helps. | I'm having the same problem as [Notebooks issue 10](https://github.com/huggingface/notebooks/issues/10) on datasets 1.2.1, and it seems to be an issue with the datasets package.
```python
>>> from datasets import load_metric
>>> metric = load_metric("glue", "sst2")
Traceback (most recent call last):
File "<std... | 42 | load_metric error: module 'datasets.utils.file_utils' has no attribute 'add_start_docstrings'
I'm having the same problem as [Notebooks issue 10](https://github.com/huggingface/notebooks/issues/10) on datasets 1.2.1, and it seems to be an issue with the datasets package.
```python
>>> from datasets import load_me... | [
-0.27232426404953003,
-0.21355824172496796,
0.019322574138641357,
0.18529212474822998,
0.4195103049278259,
0.06305492669343948,
0.27295348048210144,
0.18010608851909637,
0.07569603621959686,
-0.05244581401348114,
-0.19403764605522156,
0.154596209526062,
-0.07444863766431808,
0.297414958477... |
https://github.com/huggingface/datasets/issues/2214 | load_metric error: module 'datasets.utils.file_utils' has no attribute 'add_start_docstrings' | I just faced the same issue. I was using 1.2.1 from conda and received the same AttributeError complaining about 'add_start_docstrings'. Uninstalling the conda installed datasets and then installing the latest datasets (version 1.5.0) using pip install solved the issue for me. I don't like mixing up conda and pip insta... | I'm having the same problem as [Notebooks issue 10](https://github.com/huggingface/notebooks/issues/10) on datasets 1.2.1, and it seems to be an issue with the datasets package.
```python
>>> from datasets import load_metric
>>> metric = load_metric("glue", "sst2")
Traceback (most recent call last):
File "<std... | 69 | load_metric error: module 'datasets.utils.file_utils' has no attribute 'add_start_docstrings'
I'm having the same problem as [Notebooks issue 10](https://github.com/huggingface/notebooks/issues/10) on datasets 1.2.1, and it seems to be an issue with the datasets package.
```python
>>> from datasets import load_me... | [
-0.27232426404953003,
-0.21355824172496796,
0.019322574138641357,
0.18529212474822998,
0.4195103049278259,
0.06305492669343948,
0.27295348048210144,
0.18010608851909637,
0.07569603621959686,
-0.05244581401348114,
-0.19403764605522156,
0.154596209526062,
-0.07444863766431808,
0.297414958477... |
https://github.com/huggingface/datasets/issues/2214 | load_metric error: module 'datasets.utils.file_utils' has no attribute 'add_start_docstrings' | Yep, seems to have fixed things! The conda package could really do with an update. Thanks! | I'm having the same problem as [Notebooks issue 10](https://github.com/huggingface/notebooks/issues/10) on datasets 1.2.1, and it seems to be an issue with the datasets package.
```python
>>> from datasets import load_metric
>>> metric = load_metric("glue", "sst2")
Traceback (most recent call last):
File "<std... | 16 | load_metric error: module 'datasets.utils.file_utils' has no attribute 'add_start_docstrings'
I'm having the same problem as [Notebooks issue 10](https://github.com/huggingface/notebooks/issues/10) on datasets 1.2.1, and it seems to be an issue with the datasets package.
```python
>>> from datasets import load_me... | [
-0.27232426404953003,
-0.21355824172496796,
0.019322574138641357,
0.18529212474822998,
0.4195103049278259,
0.06305492669343948,
0.27295348048210144,
0.18010608851909637,
0.07569603621959686,
-0.05244581401348114,
-0.19403764605522156,
0.154596209526062,
-0.07444863766431808,
0.297414958477... |
https://github.com/huggingface/datasets/issues/2212 | Can't reach "https://storage.googleapis.com/illuin/fquad/train.json.zip" when trying to load fquad dataset | Hi ! Apparently the data are not available from this url anymore. We'll replace it with the new url when it's available | I'm trying to load the [fquad dataset](https://huggingface.co/datasets/fquad) by running:
```Python
fquad = load_dataset("fquad")
```
which produces the following error:
```
Using custom data configuration default
Downloading and preparing dataset fquad/default (download: 3.14 MiB, generated: 6.62 MiB, ... | 22 | Can't reach "https://storage.googleapis.com/illuin/fquad/train.json.zip" when trying to load fquad dataset
I'm trying to load the [fquad dataset](https://huggingface.co/datasets/fquad) by running:
```Python
fquad = load_dataset("fquad")
```
which produces the following error:
```
Using custom data config... | [
-0.3520764112472534,
0.18505176901817322,
-0.10664549469947815,
0.24557921290397644,
0.39981645345687866,
0.03360738605260849,
0.3876356780529022,
0.20610381662845612,
0.30574971437454224,
0.14539270102977753,
-0.2683600187301636,
-0.19080856442451477,
0.28275156021118164,
0.01755159161984... |
https://github.com/huggingface/datasets/issues/2212 | Can't reach "https://storage.googleapis.com/illuin/fquad/train.json.zip" when trying to load fquad dataset | I saw this on their website when we request to download the dataset:

Can we still request them link for the dataset and make a PR? @lhoestq @yjernite | I'm trying to load the [fquad dataset](https://huggingface.co/datasets/fquad) by running:
```Python
fquad = load_dataset("fquad")
```
which produces the following error:
```
Using custom data configuration default
Downloading and preparing dataset fquad/default (download: 3.14 MiB, generated: 6.62 MiB, ... | 29 | Can't reach "https://storage.googleapis.com/illuin/fquad/train.json.zip" when trying to load fquad dataset
I'm trying to load the [fquad dataset](https://huggingface.co/datasets/fquad) by running:
```Python
fquad = load_dataset("fquad")
```
which produces the following error:
```
Using custom data config... | [
-0.3520764112472534,
0.18505176901817322,
-0.10664549469947815,
0.24557921290397644,
0.39981645345687866,
0.03360738605260849,
0.3876356780529022,
0.20610381662845612,
0.30574971437454224,
0.14539270102977753,
-0.2683600187301636,
-0.19080856442451477,
0.28275156021118164,
0.01755159161984... |
https://github.com/huggingface/datasets/issues/2212 | Can't reach "https://storage.googleapis.com/illuin/fquad/train.json.zip" when trying to load fquad dataset | I've contacted Martin (first author of the fquad paper) regarding a possible new url. Hopefully we can get one soon ! | I'm trying to load the [fquad dataset](https://huggingface.co/datasets/fquad) by running:
```Python
fquad = load_dataset("fquad")
```
which produces the following error:
```
Using custom data configuration default
Downloading and preparing dataset fquad/default (download: 3.14 MiB, generated: 6.62 MiB, ... | 21 | Can't reach "https://storage.googleapis.com/illuin/fquad/train.json.zip" when trying to load fquad dataset
I'm trying to load the [fquad dataset](https://huggingface.co/datasets/fquad) by running:
```Python
fquad = load_dataset("fquad")
```
which produces the following error:
```
Using custom data config... | [
-0.3520764112472534,
0.18505176901817322,
-0.10664549469947815,
0.24557921290397644,
0.39981645345687866,
0.03360738605260849,
0.3876356780529022,
0.20610381662845612,
0.30574971437454224,
0.14539270102977753,
-0.2683600187301636,
-0.19080856442451477,
0.28275156021118164,
0.01755159161984... |
https://github.com/huggingface/datasets/issues/2212 | Can't reach "https://storage.googleapis.com/illuin/fquad/train.json.zip" when trying to load fquad dataset | They now made a website to force people who want to use the dataset for commercial purposes to seek a commercial license from them ... | I'm trying to load the [fquad dataset](https://huggingface.co/datasets/fquad) by running:
```Python
fquad = load_dataset("fquad")
```
which produces the following error:
```
Using custom data configuration default
Downloading and preparing dataset fquad/default (download: 3.14 MiB, generated: 6.62 MiB, ... | 25 | Can't reach "https://storage.googleapis.com/illuin/fquad/train.json.zip" when trying to load fquad dataset
I'm trying to load the [fquad dataset](https://huggingface.co/datasets/fquad) by running:
```Python
fquad = load_dataset("fquad")
```
which produces the following error:
```
Using custom data config... | [
-0.3520764112472534,
0.18505176901817322,
-0.10664549469947815,
0.24557921290397644,
0.39981645345687866,
0.03360738605260849,
0.3876356780529022,
0.20610381662845612,
0.30574971437454224,
0.14539270102977753,
-0.2683600187301636,
-0.19080856442451477,
0.28275156021118164,
0.01755159161984... |
https://github.com/huggingface/datasets/issues/2212 | Can't reach "https://storage.googleapis.com/illuin/fquad/train.json.zip" when trying to load fquad dataset | The script has been adopted to support manual download from the website, so I'm closing this issue. | I'm trying to load the [fquad dataset](https://huggingface.co/datasets/fquad) by running:
```Python
fquad = load_dataset("fquad")
```
which produces the following error:
```
Using custom data configuration default
Downloading and preparing dataset fquad/default (download: 3.14 MiB, generated: 6.62 MiB, ... | 17 | Can't reach "https://storage.googleapis.com/illuin/fquad/train.json.zip" when trying to load fquad dataset
I'm trying to load the [fquad dataset](https://huggingface.co/datasets/fquad) by running:
```Python
fquad = load_dataset("fquad")
```
which produces the following error:
```
Using custom data config... | [
-0.3520764112472534,
0.18505176901817322,
-0.10664549469947815,
0.24557921290397644,
0.39981645345687866,
0.03360738605260849,
0.3876356780529022,
0.20610381662845612,
0.30574971437454224,
0.14539270102977753,
-0.2683600187301636,
-0.19080856442451477,
0.28275156021118164,
0.01755159161984... |
https://github.com/huggingface/datasets/issues/2211 | Getting checksum error when trying to load lc_quad dataset | Hi,
I've already opened a PR with the fix. If you are in a hurry, just build the project from source and run:
```bash
datasets-cli test datasets/lc_quad --save_infos --all_configs --ignore_verifications
```
| I'm having issues loading the [lc_quad](https://huggingface.co/datasets/fquad) dataset by running:
```Python
lc_quad = load_dataset("lc_quad")
```
which is giving me the following error:
```
Using custom data configuration default
Downloading and preparing dataset lc_quad/default (download: 3.69 MiB, ge... | 31 | Getting checksum error when trying to load lc_quad dataset
I'm having issues loading the [lc_quad](https://huggingface.co/datasets/fquad) dataset by running:
```Python
lc_quad = load_dataset("lc_quad")
```
which is giving me the following error:
```
Using custom data configuration default
Downloading ... | [
-0.15864749252796173,
0.04307924211025238,
-0.03402415290474892,
0.3563593626022339,
0.26776695251464844,
0.01472889631986618,
0.0714033916592598,
0.24690215289592743,
0.3710915744304657,
-0.042273297905921936,
-0.10491635650396347,
0.06774535775184631,
-0.037776172161102295,
0.07531483471... |
https://github.com/huggingface/datasets/issues/2210 | dataloading slow when using HUGE dataset | Hi ! Yes this is an issue with `datasets<=1.5.0`
This issue has been fixed by #2122 , we'll do a new release soon :)
For now you can test it on the `master` branch. | Hi,
When I use datasets with 600GB data, the dataloading speed increases significantly.
I am experimenting with two datasets, and one is about 60GB and the other 600GB.
Simply speaking, my code uses `datasets.set_format("torch")` function and let pytorch-lightning handle ddp training.
When looking at the pytorch... | 34 | dataloading slow when using HUGE dataset
Hi,
When I use datasets with 600GB data, the dataloading speed increases significantly.
I am experimenting with two datasets, and one is about 60GB and the other 600GB.
Simply speaking, my code uses `datasets.set_format("torch")` function and let pytorch-lightning handle... | [
-0.525672197341919,
-0.21354715526103973,
-0.06311195343732834,
0.28325048089027405,
0.1389210969209671,
-0.027784332633018494,
0.15010304749011993,
0.23279769718647003,
-0.15769286453723907,
-0.09218953549861908,
-0.11914964020252228,
0.14390546083450317,
-0.14865955710411072,
-0.18230816... |
https://github.com/huggingface/datasets/issues/2210 | dataloading slow when using HUGE dataset | Hi, thank you for your answer. I did not realize that my issue stems from the same problem. | Hi,
When I use datasets with 600GB data, the dataloading speed increases significantly.
I am experimenting with two datasets, and one is about 60GB and the other 600GB.
Simply speaking, my code uses `datasets.set_format("torch")` function and let pytorch-lightning handle ddp training.
When looking at the pytorch... | 18 | dataloading slow when using HUGE dataset
Hi,
When I use datasets with 600GB data, the dataloading speed increases significantly.
I am experimenting with two datasets, and one is about 60GB and the other 600GB.
Simply speaking, my code uses `datasets.set_format("torch")` function and let pytorch-lightning handle... | [
-0.525672197341919,
-0.21354715526103973,
-0.06311195343732834,
0.28325048089027405,
0.1389210969209671,
-0.027784332633018494,
0.15010304749011993,
0.23279769718647003,
-0.15769286453723907,
-0.09218953549861908,
-0.11914964020252228,
0.14390546083450317,
-0.14865955710411072,
-0.18230816... |
https://github.com/huggingface/datasets/issues/2207 | making labels consistent across the datasets | Hi ! The ClassLabel feature type encodes the labels as integers.
The integer corresponds to the index of the label name in the `names` list of the ClassLabel.
Here that means that the labels are 'entailment' (0), 'neutral' (1), 'contradiction' (2).
You can get the label names back by using `a.features['label'].int... | Hi
For accessing the labels one can type
```
>>> a.features['label']
ClassLabel(num_classes=3, names=['entailment', 'neutral', 'contradiction'], names_file=None, id=None)
```
The labels however are not consistent with the actual labels sometimes, for instance in case of XNLI, the actual labels are 0,1,2, but if ... | 51 | making labels consistent across the datasets
Hi
For accessing the labels one can type
```
>>> a.features['label']
ClassLabel(num_classes=3, names=['entailment', 'neutral', 'contradiction'], names_file=None, id=None)
```
The labels however are not consistent with the actual labels sometimes, for instance in cas... | [
0.016260463744401932,
-0.12873660027980804,
-0.06999024748802185,
0.4029694199562073,
0.38271331787109375,
-0.13002780079841614,
0.426028311252594,
0.023417027667164803,
0.08527474105358124,
0.27108514308929443,
-0.23050187528133392,
0.5326734781265259,
-0.015341478399932384,
0.40478712320... |
https://github.com/huggingface/datasets/issues/2206 | Got pyarrow error when loading a dataset while adding special tokens into the tokenizer | Hi,
the output of the tokenizers is treated specially in the lib to optimize the dataset size (see the code [here](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L138-L141)). It looks like that one of the values in a dictionary returned by the tokenizer is out of the assumed range.
... | I added five more special tokens into the GPT2 tokenizer. But after that, when I try to pre-process the data using my previous code, I got an error shown below:
Traceback (most recent call last):
File "/home/xuyan/anaconda3/envs/convqa/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1687, in _map_sin... | 53 | Got pyarrow error when loading a dataset while adding special tokens into the tokenizer
I added five more special tokens into the GPT2 tokenizer. But after that, when I try to pre-process the data using my previous code, I got an error shown below:
Traceback (most recent call last):
File "/home/xuyan/anaconda3/... | [
-0.23382806777954102,
0.29218754172325134,
-0.05882902815937996,
0.0690961554646492,
0.2734430730342865,
-0.08607131987810135,
0.183644101023674,
0.30556368827819824,
-0.5368507504463196,
-0.19321997463703156,
-0.04617111384868622,
0.4354694187641144,
-0.0010598590597510338,
-0.23817452788... |
https://github.com/huggingface/datasets/issues/2206 | Got pyarrow error when loading a dataset while adding special tokens into the tokenizer | Hi @yana-xuyan, thanks for reporting.
As clearly @mariosasko explained, `datasets` performs some optimizations in order to reduce the size of the dataset cache files. And one of them is storing the field `special_tokens_mask` as `int8`, which means that this field can only contain integers between `-128` to `127`. A... | I added five more special tokens into the GPT2 tokenizer. But after that, when I try to pre-process the data using my previous code, I got an error shown below:
Traceback (most recent call last):
File "/home/xuyan/anaconda3/envs/convqa/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1687, in _map_sin... | 98 | Got pyarrow error when loading a dataset while adding special tokens into the tokenizer
I added five more special tokens into the GPT2 tokenizer. But after that, when I try to pre-process the data using my previous code, I got an error shown below:
Traceback (most recent call last):
File "/home/xuyan/anaconda3/... | [
-0.23382806777954102,
0.29218754172325134,
-0.05882902815937996,
0.0690961554646492,
0.2734430730342865,
-0.08607131987810135,
0.183644101023674,
0.30556368827819824,
-0.5368507504463196,
-0.19321997463703156,
-0.04617111384868622,
0.4354694187641144,
-0.0010598590597510338,
-0.23817452788... |
https://github.com/huggingface/datasets/issues/2206 | Got pyarrow error when loading a dataset while adding special tokens into the tokenizer | I'm facing same issue @mariosasko @albertvillanova
```
ArrowInvalid: Integer value 50260 not in range: -128 to 127
```
To reproduce:
```python
SPECIAL_TOKENS = ['<bos>','<eos>','<speaker1>','<speaker2>','<pad>']
ATTR_TO_SPECIAL_TOKEN = {
'bos_token': '<bos>',
'eos_token': '<eos>',
'pad_toke... | I added five more special tokens into the GPT2 tokenizer. But after that, when I try to pre-process the data using my previous code, I got an error shown below:
Traceback (most recent call last):
File "/home/xuyan/anaconda3/envs/convqa/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1687, in _map_sin... | 70 | Got pyarrow error when loading a dataset while adding special tokens into the tokenizer
I added five more special tokens into the GPT2 tokenizer. But after that, when I try to pre-process the data using my previous code, I got an error shown below:
Traceback (most recent call last):
File "/home/xuyan/anaconda3/... | [
-0.23382806777954102,
0.29218754172325134,
-0.05882902815937996,
0.0690961554646492,
0.2734430730342865,
-0.08607131987810135,
0.183644101023674,
0.30556368827819824,
-0.5368507504463196,
-0.19321997463703156,
-0.04617111384868622,
0.4354694187641144,
-0.0010598590597510338,
-0.23817452788... |
https://github.com/huggingface/datasets/issues/2206 | Got pyarrow error when loading a dataset while adding special tokens into the tokenizer | @mariosasko
I am hitting this bug in the Bert tokenizer too. I see that @albertvillanova labeled this as a bug back in April. Has there been a fix released yet?
What I did for now is to just disable the optimization in the HF library. @yana-xuyan and @thomas-happify, is that what you did and did that work for you... | I added five more special tokens into the GPT2 tokenizer. But after that, when I try to pre-process the data using my previous code, I got an error shown below:
Traceback (most recent call last):
File "/home/xuyan/anaconda3/envs/convqa/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1687, in _map_sin... | 59 | Got pyarrow error when loading a dataset while adding special tokens into the tokenizer
I added five more special tokens into the GPT2 tokenizer. But after that, when I try to pre-process the data using my previous code, I got an error shown below:
Traceback (most recent call last):
File "/home/xuyan/anaconda3/... | [
-0.23382806777954102,
0.29218754172325134,
-0.05882902815937996,
0.0690961554646492,
0.2734430730342865,
-0.08607131987810135,
0.183644101023674,
0.30556368827819824,
-0.5368507504463196,
-0.19321997463703156,
-0.04617111384868622,
0.4354694187641144,
-0.0010598590597510338,
-0.23817452788... |
https://github.com/huggingface/datasets/issues/2206 | Got pyarrow error when loading a dataset while adding special tokens into the tokenizer | Hi @gregg-ADP,
This is still a bug.
As @albertvillanova has suggested, maybe it's indeed worth adding a variable to `config.py` to have a way to disable this behavior.
In the meantime, this forced optimization can be disabled by specifying `features` (of the returned examples) in the `map` call:
```python
f... | I added five more special tokens into the GPT2 tokenizer. But after that, when I try to pre-process the data using my previous code, I got an error shown below:
Traceback (most recent call last):
File "/home/xuyan/anaconda3/envs/convqa/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1687, in _map_sin... | 76 | Got pyarrow error when loading a dataset while adding special tokens into the tokenizer
I added five more special tokens into the GPT2 tokenizer. But after that, when I try to pre-process the data using my previous code, I got an error shown below:
Traceback (most recent call last):
File "/home/xuyan/anaconda3/... | [
-0.23382806777954102,
0.29218754172325134,
-0.05882902815937996,
0.0690961554646492,
0.2734430730342865,
-0.08607131987810135,
0.183644101023674,
0.30556368827819824,
-0.5368507504463196,
-0.19321997463703156,
-0.04617111384868622,
0.4354694187641144,
-0.0010598590597510338,
-0.23817452788... |
https://github.com/huggingface/datasets/issues/2206 | Got pyarrow error when loading a dataset while adding special tokens into the tokenizer | Thanks for the quick reply @mariosasko. What I did was to changed the optimizer to use int32 instead of int8.
What you're suggesting specifies the type for each feature explicitly without changing the HF code. This is definitely a better option. However, we are hitting a new error later:
```
File "/Users/ccccc/... | I added five more special tokens into the GPT2 tokenizer. But after that, when I try to pre-process the data using my previous code, I got an error shown below:
Traceback (most recent call last):
File "/home/xuyan/anaconda3/envs/convqa/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1687, in _map_sin... | 111 | Got pyarrow error when loading a dataset while adding special tokens into the tokenizer
I added five more special tokens into the GPT2 tokenizer. But after that, when I try to pre-process the data using my previous code, I got an error shown below:
Traceback (most recent call last):
File "/home/xuyan/anaconda3/... | [
-0.23382806777954102,
0.29218754172325134,
-0.05882902815937996,
0.0690961554646492,
0.2734430730342865,
-0.08607131987810135,
0.183644101023674,
0.30556368827819824,
-0.5368507504463196,
-0.19321997463703156,
-0.04617111384868622,
0.4354694187641144,
-0.0010598590597510338,
-0.23817452788... |
https://github.com/huggingface/datasets/issues/2206 | Got pyarrow error when loading a dataset while adding special tokens into the tokenizer | Hi @gwc4github,
the fix was merged a few minutes ago, and it doesn't require any changes on the user side (e.g. no need for specifying `features`). If you find time, feel free to install `datasets` from master with:
```
pip install git+https://github.com/huggingface/datasets.git
```
and let us know if it works f... | I added five more special tokens into the GPT2 tokenizer. But after that, when I try to pre-process the data using my previous code, I got an error shown below:
Traceback (most recent call last):
File "/home/xuyan/anaconda3/envs/convqa/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1687, in _map_sin... | 54 | Got pyarrow error when loading a dataset while adding special tokens into the tokenizer
I added five more special tokens into the GPT2 tokenizer. But after that, when I try to pre-process the data using my previous code, I got an error shown below:
Traceback (most recent call last):
File "/home/xuyan/anaconda3/... | [
-0.23382806777954102,
0.29218754172325134,
-0.05882902815937996,
0.0690961554646492,
0.2734430730342865,
-0.08607131987810135,
0.183644101023674,
0.30556368827819824,
-0.5368507504463196,
-0.19321997463703156,
-0.04617111384868622,
0.4354694187641144,
-0.0010598590597510338,
-0.23817452788... |
https://github.com/huggingface/datasets/issues/2200 | _prepare_split will overwrite DatasetBuilder.info.features | Hi ! This might be related to #2153
You're right the ArrowWriter should be initialized with `features=self.info.features` ! Good catch
I'm opening a PR to fix this and also to figure out how it was not caught in the tests
EDIT: opened #2201 | Hi, here is my issue:
I initialized a Csv datasetbuilder with specific features:
```
def get_dataset_features(data_args):
features = {}
if data_args.text_features:
features.update({text_feature: hf_features.Value("string") for text_feature in data_args.text_features.strip().split(",")})
if da... | 43 | _prepare_split will overwrite DatasetBuilder.info.features
Hi, here is my issue:
I initialized a Csv datasetbuilder with specific features:
```
def get_dataset_features(data_args):
features = {}
if data_args.text_features:
features.update({text_feature: hf_features.Value("string") for text_featu... | [
-0.24060216546058655,
-0.038291364908218384,
-0.10776728391647339,
0.17833736538887024,
0.2982977628707886,
0.21979227662086487,
0.45460864901542664,
0.2158689796924591,
-0.3327541649341583,
0.1149650365114212,
0.12917597591876984,
0.17151249945163727,
0.08633501082658768,
0.48735350370407... |
https://github.com/huggingface/datasets/issues/2200 | _prepare_split will overwrite DatasetBuilder.info.features | > Hi ! This might be related to #2153
>
> You're right the ArrowWriter should be initialized with `features=self.info.features` ! Good catch
> I'm opening a PR to fix this and also to figure out how it was not caught in the tests
>
> EDIT: opened #2201
Glad to hear that! Thank you for your fix, I'm new to hug... | Hi, here is my issue:
I initialized a Csv datasetbuilder with specific features:
```
def get_dataset_features(data_args):
features = {}
if data_args.text_features:
features.update({text_feature: hf_features.Value("string") for text_feature in data_args.text_features.strip().split(",")})
if da... | 67 | _prepare_split will overwrite DatasetBuilder.info.features
Hi, here is my issue:
I initialized a Csv datasetbuilder with specific features:
```
def get_dataset_features(data_args):
features = {}
if data_args.text_features:
features.update({text_feature: hf_features.Value("string") for text_featu... | [
-0.24060216546058655,
-0.038291364908218384,
-0.10776728391647339,
0.17833736538887024,
0.2982977628707886,
0.21979227662086487,
0.45460864901542664,
0.2158689796924591,
-0.3327541649341583,
0.1149650365114212,
0.12917597591876984,
0.17151249945163727,
0.08633501082658768,
0.48735350370407... |
https://github.com/huggingface/datasets/issues/2196 | `load_dataset` caches two arrow files? | Hi ! Files that starts with `cache-*` are cached computation files, i.e. they are the cached results of map/filter/cast/etc. operations. For example if you used `map` on your dataset to transform it, then the resulting dataset is going to be stored and cached in a `cache-*` file. These files are used to avoid having to... | Hi,
I am using datasets to load large json file of 587G.
I checked the cached folder and found that there are two arrow files created:
* `cache-ed205e500a7dc44c.arrow` - 355G
* `json-train.arrow` - 582G
Why is the first file created?
If I delete it, would I still be able to `load_from_disk`? | 64 | `load_dataset` caches two arrow files?
Hi,
I am using datasets to load large json file of 587G.
I checked the cached folder and found that there are two arrow files created:
* `cache-ed205e500a7dc44c.arrow` - 355G
* `json-train.arrow` - 582G
Why is the first file created?
If I delete it, would I still be a... | [
-0.020623739808797836,
-0.1851755678653717,
-0.13287153840065002,
0.6645820736885071,
-0.08110929280519485,
0.3052114248275757,
0.17529577016830444,
0.25648143887519836,
0.28745037317276,
-0.1578645557165146,
-0.009086295031011105,
0.1946638524532318,
0.08018272370100021,
-0.51300048828125... |
https://github.com/huggingface/datasets/issues/2196 | `load_dataset` caches two arrow files? | Thanks @lhoestq! Hmm.. that's strange because I specifically turned off auto caching, and saved mapped result, using `save_to_disk`, to another location. At this location, the following file is created:`355G cache-ed205e500a7dc44c.arrow`
To my observation, both `load_dataset` and `map` creates `cache-*` files, and I... | Hi,
I am using datasets to load large json file of 587G.
I checked the cached folder and found that there are two arrow files created:
* `cache-ed205e500a7dc44c.arrow` - 355G
* `json-train.arrow` - 582G
Why is the first file created?
If I delete it, would I still be able to `load_from_disk`? | 61 | `load_dataset` caches two arrow files?
Hi,
I am using datasets to load large json file of 587G.
I checked the cached folder and found that there are two arrow files created:
* `cache-ed205e500a7dc44c.arrow` - 355G
* `json-train.arrow` - 582G
Why is the first file created?
If I delete it, would I still be a... | [
0.01727592572569847,
-0.14640085399150848,
-0.114908367395401,
0.6492552161216736,
-0.06654702872037888,
0.3106842637062073,
0.24094071984291077,
0.25788331031799316,
0.3021346926689148,
-0.2563413977622986,
-0.03561747074127197,
0.278781920671463,
0.11617586761713028,
-0.49715134501457214... |
https://github.com/huggingface/datasets/issues/2196 | `load_dataset` caches two arrow files? | This is a wrong report -- `cache-*` files are created only my `map`, not by `load_dataset`. | Hi,
I am using datasets to load large json file of 587G.
I checked the cached folder and found that there are two arrow files created:
* `cache-ed205e500a7dc44c.arrow` - 355G
* `json-train.arrow` - 582G
Why is the first file created?
If I delete it, would I still be able to `load_from_disk`? | 16 | `load_dataset` caches two arrow files?
Hi,
I am using datasets to load large json file of 587G.
I checked the cached folder and found that there are two arrow files created:
* `cache-ed205e500a7dc44c.arrow` - 355G
* `json-train.arrow` - 582G
Why is the first file created?
If I delete it, would I still be a... | [
-0.0013231374323368073,
-0.20793092250823975,
-0.12528645992279053,
0.7411245703697205,
-0.14882899820804596,
0.2700349688529968,
0.28123369812965393,
0.23481938242912292,
0.3605191111564636,
-0.23589085042476654,
-0.011621879413723946,
0.20675554871559143,
0.13411907851696014,
-0.47970199... |
https://github.com/huggingface/datasets/issues/2195 | KeyError: '_indices_files' in `arrow_dataset.py` | Thanks @samsontmr this should be fixed on master now
Feel free to reopen if you're still having issues | After pulling the latest master, I'm getting a crash when `load_from_disk` tries to load my local dataset.
Trace:
```
Traceback (most recent call last):
File "load_data.py", line 11, in <module>
dataset = load_from_disk(SRC)
File "/opt/conda/envs/py38/lib/python3.8/site-packages/datasets/load.py", line ... | 18 | KeyError: '_indices_files' in `arrow_dataset.py`
After pulling the latest master, I'm getting a crash when `load_from_disk` tries to load my local dataset.
Trace:
```
Traceback (most recent call last):
File "load_data.py", line 11, in <module>
dataset = load_from_disk(SRC)
File "/opt/conda/envs/py38/l... | [
-0.3437002897262573,
0.0625094473361969,
-0.061988651752471924,
0.6979855895042419,
-0.0762995034456253,
0.15042373538017273,
0.19406847655773163,
0.493173748254776,
0.5131549835205078,
0.1480899453163147,
0.01922178640961647,
0.18392212688922882,
-0.3918607831001282,
0.06803041696548462,
... |
https://github.com/huggingface/datasets/issues/2193 | Filtering/mapping on one column is very slow | Hi ! Yes we are working on making `filter` significantly faster. You can look at related PRs here: #2060 #2178
I think you can expect to have the fast version of `filter` available next week.
We'll make it only select one column, and we'll also make the overall filtering operation way faster by avoiding many arr... | I'm currently using the `wikipedia` datasetβ I'm tokenizing the articles with the `tokenizers` library using `map()` and also adding a new `num_tokens` column to the dataset as part of that map operation.
I want to be able to _filter_ the dataset based on this `num_tokens` column, but even when I specify `input_colu... | 68 | Filtering/mapping on one column is very slow
I'm currently using the `wikipedia` datasetβ I'm tokenizing the articles with the `tokenizers` library using `map()` and also adding a new `num_tokens` column to the dataset as part of that map operation.
I want to be able to _filter_ the dataset based on this `num_toke... | [
-0.1237306296825409,
0.2983857989311218,
-0.020849283784627914,
-0.2533699870109558,
0.10165759176015854,
-0.1387869268655777,
0.3027840256690979,
0.6129091382026672,
0.24762621521949768,
-0.03285512328147888,
-0.09859931468963623,
0.4860824644565582,
0.03813527897000313,
-0.18357928097248... |
https://github.com/huggingface/datasets/issues/2193 | Filtering/mapping on one column is very slow | @lhoestq Thanks for the responseβ it's great to hear that we'll be getting a much faster `filter` method soon. However, my use case does also involve using `map` over a single column in order to pre-compute roughly uniformly sized batches, and right now that is also very slow. Is there any plan to make `map` faster for... | I'm currently using the `wikipedia` datasetβ I'm tokenizing the articles with the `tokenizers` library using `map()` and also adding a new `num_tokens` column to the dataset as part of that map operation.
I want to be able to _filter_ the dataset based on this `num_tokens` column, but even when I specify `input_colu... | 96 | Filtering/mapping on one column is very slow
I'm currently using the `wikipedia` datasetβ I'm tokenizing the articles with the `tokenizers` library using `map()` and also adding a new `num_tokens` column to the dataset as part of that map operation.
I want to be able to _filter_ the dataset based on this `num_toke... | [
-0.18856212496757507,
0.30073288083076477,
-0.006221102550625801,
-0.291556179523468,
0.11390580236911774,
-0.12519079446792603,
0.37745413184165955,
0.6256684064865112,
0.28753191232681274,
0.017281271517276764,
-0.03644700348377228,
0.5041143298149109,
0.029043693095445633,
-0.1641893237... |
https://github.com/huggingface/datasets/issues/2193 | Filtering/mapping on one column is very slow | Currently the optimal setup for single-column computations is probably to do something like
```python
result = dataset.map(f, input_columns="my_col", remove_columns=dataset.column_names)
```
This has two advantages:
- input_columns="my_col" allows to only read the column "my_col"
- remove_columns=dataset.column_n... | I'm currently using the `wikipedia` datasetβ I'm tokenizing the articles with the `tokenizers` library using `map()` and also adding a new `num_tokens` column to the dataset as part of that map operation.
I want to be able to _filter_ the dataset based on this `num_tokens` column, but even when I specify `input_colu... | 82 | Filtering/mapping on one column is very slow
I'm currently using the `wikipedia` datasetβ I'm tokenizing the articles with the `tokenizers` library using `map()` and also adding a new `num_tokens` column to the dataset as part of that map operation.
I want to be able to _filter_ the dataset based on this `num_toke... | [
-0.1294834315776825,
0.339111328125,
0.010745596140623093,
-0.21831859648227692,
0.0991220697760582,
-0.09364133328199387,
0.40800774097442627,
0.5750510096549988,
0.2324593961238861,
0.08215206116437912,
-0.06951168179512024,
0.4634188711643219,
0.028099603950977325,
-0.17973066866397858,... |
https://github.com/huggingface/datasets/issues/2193 | Filtering/mapping on one column is very slow | Hi @lhoestq ,
I'm hijacking this issue, because I'm currently trying to do the approach you recommend:
> Currently the optimal setup for single-column computations is probably to do something like
>
> ```python
> result = dataset.map(f, input_columns="my_col", remove_columns=dataset.column_names)
> ```
He... | I'm currently using the `wikipedia` datasetβ I'm tokenizing the articles with the `tokenizers` library using `map()` and also adding a new `num_tokens` column to the dataset as part of that map operation.
I want to be able to _filter_ the dataset based on this `num_tokens` column, but even when I specify `input_colu... | 285 | Filtering/mapping on one column is very slow
I'm currently using the `wikipedia` datasetβ I'm tokenizing the articles with the `tokenizers` library using `map()` and also adding a new `num_tokens` column to the dataset as part of that map operation.
I want to be able to _filter_ the dataset based on this `num_toke... | [
-0.12978823482990265,
0.34384649991989136,
0.005627695471048355,
-0.23468329012393951,
0.10948678851127625,
-0.1253664791584015,
0.39552003145217896,
0.5808491706848145,
0.2243223339319229,
0.06910671293735504,
-0.06487782299518585,
0.4875029921531677,
0.02443109080195427,
-0.1736368238925... |
https://github.com/huggingface/datasets/issues/2193 | Filtering/mapping on one column is very slow | Hi ! Can you open a separate issue for that ?
Also if you could provide a google colab or a sample code to reproduce this issue that would be helpful.
On my side I was not able to reproduce this error. | I'm currently using the `wikipedia` datasetβ I'm tokenizing the articles with the `tokenizers` library using `map()` and also adding a new `num_tokens` column to the dataset as part of that map operation.
I want to be able to _filter_ the dataset based on this `num_tokens` column, but even when I specify `input_colu... | 42 | Filtering/mapping on one column is very slow
I'm currently using the `wikipedia` datasetβ I'm tokenizing the articles with the `tokenizers` library using `map()` and also adding a new `num_tokens` column to the dataset as part of that map operation.
I want to be able to _filter_ the dataset based on this `num_toke... | [
-0.0739276111125946,
0.2622614800930023,
0.010453417897224426,
-0.14601333439350128,
0.1726153939962387,
-0.09211455285549164,
0.342267781496048,
0.5855399966239929,
0.24096354842185974,
0.013878725469112396,
-0.02881886251270771,
0.485811322927475,
0.0747990682721138,
-0.24202555418014526... |
https://github.com/huggingface/datasets/issues/2193 | Filtering/mapping on one column is very slow | @lhoestq Sorry I'm just responding now. I'm currently using your recommendation for the map on a single column, and I've gotten it to be fast enough to sort of work for my use case by just setting `num_proc=10`, although it's still quite slow. It's clear that it is still loading the entirety of each row into memory and... | I'm currently using the `wikipedia` datasetβ I'm tokenizing the articles with the `tokenizers` library using `map()` and also adding a new `num_tokens` column to the dataset as part of that map operation.
I want to be able to _filter_ the dataset based on this `num_tokens` column, but even when I specify `input_colu... | 195 | Filtering/mapping on one column is very slow
I'm currently using the `wikipedia` datasetβ I'm tokenizing the articles with the `tokenizers` library using `map()` and also adding a new `num_tokens` column to the dataset as part of that map operation.
I want to be able to _filter_ the dataset based on this `num_toke... | [
-0.11003395915031433,
0.2694854736328125,
-0.0035480093210935593,
-0.2267882078886032,
0.1348387598991394,
-0.15745586156845093,
0.32289522886276245,
0.577976405620575,
0.25163787603378296,
0.017154574394226074,
-0.008435238152742386,
0.5262531042098999,
-0.0003772163763642311,
-0.21994698... |
https://github.com/huggingface/datasets/issues/2193 | Filtering/mapping on one column is very slow | Hi @norabelrose ! I'm glad you managed to make this work on your side.
Regarding memory usage, you can try to drop the columns that you don't want to use for your `map` for now.
In the future we'll try to find a way to not load unnecessary columns in memory in `map`. Currently the way it works is that it gets the b... | I'm currently using the `wikipedia` datasetβ I'm tokenizing the articles with the `tokenizers` library using `map()` and also adding a new `num_tokens` column to the dataset as part of that map operation.
I want to be able to _filter_ the dataset based on this `num_tokens` column, but even when I specify `input_colu... | 126 | Filtering/mapping on one column is very slow
I'm currently using the `wikipedia` datasetβ I'm tokenizing the articles with the `tokenizers` library using `map()` and also adding a new `num_tokens` column to the dataset as part of that map operation.
I want to be able to _filter_ the dataset based on this `num_toke... | [
-0.10902240872383118,
0.2856530249118805,
-0.017312292009592056,
-0.13604827225208282,
0.17431524395942688,
-0.084663026034832,
0.27682363986968994,
0.5508022904396057,
0.29533955454826355,
-0.028073281049728394,
-0.043003641068935394,
0.4847540557384491,
-0.0104959262534976,
-0.2168291956... |
https://github.com/huggingface/datasets/issues/2193 | Filtering/mapping on one column is very slow | @lhoestq After looking through the source code, it looks like the following solution has at least some chance of working:
- refactor `Dataset.map()` so that the `input_columns` parameter is implemented by using the `self.formatted_as()` context manager with `columns=input_columns`
- change `Dataset._getitem()` so tha... | I'm currently using the `wikipedia` datasetβ I'm tokenizing the articles with the `tokenizers` library using `map()` and also adding a new `num_tokens` column to the dataset as part of that map operation.
I want to be able to _filter_ the dataset based on this `num_tokens` column, but even when I specify `input_colu... | 62 | Filtering/mapping on one column is very slow
I'm currently using the `wikipedia` datasetβ I'm tokenizing the articles with the `tokenizers` library using `map()` and also adding a new `num_tokens` column to the dataset as part of that map operation.
I want to be able to _filter_ the dataset based on this `num_toke... | [
-0.12732206284999847,
0.34810400009155273,
-0.006475726142525673,
-0.15352939069271088,
0.1438034474849701,
-0.14673574268817902,
0.3634435534477234,
0.6069023609161377,
0.16607461869716644,
-0.0057869479060173035,
-0.1035192459821701,
0.5548494458198547,
0.0025604115799069405,
-0.19553518... |
https://github.com/huggingface/datasets/issues/2193 | Filtering/mapping on one column is very slow | Looks like a great direction :)
Note that `query_table` doesn't bring data into memory. Only `format_table` does.
Also the dataset may already have a format with `columns=` already defined so we would need to define the formatted `input_dataset` like:
```python
# before the `map` main for loop
input_columns = inpu... | I'm currently using the `wikipedia` datasetβ I'm tokenizing the articles with the `tokenizers` library using `map()` and also adding a new `num_tokens` column to the dataset as part of that map operation.
I want to be able to _filter_ the dataset based on this `num_tokens` column, but even when I specify `input_colu... | 148 | Filtering/mapping on one column is very slow
I'm currently using the `wikipedia` datasetβ I'm tokenizing the articles with the `tokenizers` library using `map()` and also adding a new `num_tokens` column to the dataset as part of that map operation.
I want to be able to _filter_ the dataset based on this `num_toke... | [
-0.12052275240421295,
0.2916715145111084,
-0.006857838481664658,
-0.1955765038728714,
0.11129971593618393,
-0.10715067386627197,
0.2545415759086609,
0.5994861125946045,
0.20434807240962982,
-0.028511226177215576,
-0.03400079160928726,
0.47935378551483154,
0.02173737995326519,
-0.2131699472... |
https://github.com/huggingface/datasets/issues/2193 | Filtering/mapping on one column is very slow | Good to know about `query_table` not bringing anything into memory. I was under the impression that it did because a while back I looked at my `map` operation in pdb and it looked like it was spending forever in line 93 of formatting.py, `return pa.concat_tables(....)`, although that was before the `fast_slice` interpo... | I'm currently using the `wikipedia` datasetβ I'm tokenizing the articles with the `tokenizers` library using `map()` and also adding a new `num_tokens` column to the dataset as part of that map operation.
I want to be able to _filter_ the dataset based on this `num_tokens` column, but even when I specify `input_colu... | 181 | Filtering/mapping on one column is very slow
I'm currently using the `wikipedia` datasetβ I'm tokenizing the articles with the `tokenizers` library using `map()` and also adding a new `num_tokens` column to the dataset as part of that map operation.
I want to be able to _filter_ the dataset based on this `num_toke... | [
-0.10460568964481354,
0.3224443793296814,
-0.01583399809896946,
-0.18998326361179352,
0.09967689961194992,
-0.09264656901359558,
0.22558394074440002,
0.5739008784294128,
0.1345910280942917,
-0.005185894668102264,
-0.09151377528905869,
0.45793217420578003,
0.07698608934879303,
-0.2375070750... |
https://github.com/huggingface/datasets/issues/2193 | Filtering/mapping on one column is very slow | `query_table` simply slices/concatenates parts of the table. The actual data inside the table is not brought in memory.
Also I'm more in favor of declaring `input_dataset = self.with_format(...)` since `formatted_as` may update the dataset fingerprint of `self`, which is not expected when someone runs `map`.
> It's... | I'm currently using the `wikipedia` datasetβ I'm tokenizing the articles with the `tokenizers` library using `map()` and also adding a new `num_tokens` column to the dataset as part of that map operation.
I want to be able to _filter_ the dataset based on this `num_tokens` column, but even when I specify `input_colu... | 145 | Filtering/mapping on one column is very slow
I'm currently using the `wikipedia` datasetβ I'm tokenizing the articles with the `tokenizers` library using `map()` and also adding a new `num_tokens` column to the dataset as part of that map operation.
I want to be able to _filter_ the dataset based on this `num_toke... | [
-0.09050965309143066,
0.27838101983070374,
-0.007305508479475975,
-0.17817337810993195,
0.14086773991584778,
-0.09612902253866196,
0.31843286752700806,
0.570652961730957,
0.1868225485086441,
-0.02807651460170746,
-0.058642178773880005,
0.4846482574939728,
0.09406649321317673,
-0.2658149898... |
https://github.com/huggingface/datasets/issues/2193 | Filtering/mapping on one column is very slow | That sounds good to me! I just submitted a PR (#2246) implementing your approach. I also changed how `_query_table` handles Iterable keys since it still seemed like `pa.concat_tables` was taking a long time to create the table for each batch. Now my whole `map()` operation takes 1 min 46 seconds where it used to take s... | I'm currently using the `wikipedia` datasetβ I'm tokenizing the articles with the `tokenizers` library using `map()` and also adding a new `num_tokens` column to the dataset as part of that map operation.
I want to be able to _filter_ the dataset based on this `num_tokens` column, but even when I specify `input_colu... | 62 | Filtering/mapping on one column is very slow
I'm currently using the `wikipedia` datasetβ I'm tokenizing the articles with the `tokenizers` library using `map()` and also adding a new `num_tokens` column to the dataset as part of that map operation.
I want to be able to _filter_ the dataset based on this `num_toke... | [
-0.17371809482574463,
0.3303041160106659,
-0.015150229446589947,
-0.23526029288768768,
0.09672672301530838,
-0.13735653460025787,
0.24519692361354828,
0.6020460724830627,
0.12157446146011353,
-0.05612553656101227,
-0.07012160867452621,
0.5131319165229797,
0.07048029452562332,
-0.2048012912... |
https://github.com/huggingface/datasets/issues/2190 | News_commentary Dataset Translation Pairs are of Incorrect Language Specified Pairs | Hi @anassalamah,
Could you please try with this:
```python
train_ds = load_dataset("news_commentary", lang1="ar", lang2="en", split='train[:98%]')
val_ds = load_dataset("news_commentary", lang1="ar", lang2="en", split='train[98%:]')
``` | I used load_dataset to load the news_commentary dataset for "ar-en" translation pairs but found translations from Arabic to Hindi.
```
train_ds = load_dataset("news_commentary", "ar-en", split='train[:98%]')
val_ds = load_dataset("news_commentary", "ar-en", split='train[98%:]')
# filtering out examples that a... | 22 | News_commentary Dataset Translation Pairs are of Incorrect Language Specified Pairs
I used load_dataset to load the news_commentary dataset for "ar-en" translation pairs but found translations from Arabic to Hindi.
```
train_ds = load_dataset("news_commentary", "ar-en", split='train[:98%]')
val_ds = load_datas... | [
-0.16038620471954346,
0.004446566104888916,
-0.21704235672950745,
0.24928420782089233,
-0.05379097908735275,
0.08853862434625626,
0.32000577449798584,
0.22939984500408173,
-0.025390831753611565,
-0.2357994168996811,
-0.246135413646698,
0.19127443432807922,
0.18397989869117737,
0.2749136388... |
https://github.com/huggingface/datasets/issues/2190 | News_commentary Dataset Translation Pairs are of Incorrect Language Specified Pairs | Hello @albertvillanova,
Thanks for the suggestion. I didn't know you could do that. however, it didn't resolve the issue

| I used load_dataset to load the news_commentary dataset for "ar-en" translation pairs but found translations from Arabic to Hindi.
```
train_ds = load_dataset("news_commentary", "ar-en", split='train[:98%]')
val_ds = load_dataset("news_commentary", "ar-en", split='train[98%:]')
# filtering out examples that a... | 20 | News_commentary Dataset Translation Pairs are of Incorrect Language Specified Pairs
I used load_dataset to load the news_commentary dataset for "ar-en" translation pairs but found translations from Arabic to Hindi.
```
train_ds = load_dataset("news_commentary", "ar-en", split='train[:98%]')
val_ds = load_datas... | [
-0.20709186792373657,
0.1082225888967514,
-0.17505034804344177,
0.32578760385513306,
-0.11737151443958282,
0.10630907863378525,
0.2994767427444458,
0.2640416920185089,
-0.04221062362194061,
-0.26377934217453003,
-0.28765636682510376,
0.2302989661693573,
0.228669211268425,
0.187327265739440... |
https://github.com/huggingface/datasets/issues/2189 | save_to_disk doesn't work when we use concatenate_datasets function before creating the final dataset_object. | Hi ! We refactored save_to_disk in #2025 so this doesn't happen.
Feel free to try it on master for now
We'll do a new release soon | As you can see, it saves the entire dataset.
@lhoestq
You can check by going through the following example,
```
from datasets import load_from_disk,concatenate_datasets
loaded_data=load_from_disk('/home/gsir059/HNSW-ori/my_knowledge_dataset')
n=20
kb_list=[loaded_data.shard(n, i, contiguous=True) for i... | 26 | save_to_disk doesn't work when we use concatenate_datasets function before creating the final dataset_object.
As you can see, it saves the entire dataset.
@lhoestq
You can check by going through the following example,
```
from datasets import load_from_disk,concatenate_datasets
loaded_data=load_from_di... | [
-0.25447648763656616,
0.036902934312820435,
-0.07479122281074524,
0.023532312363386154,
0.20227763056755066,
0.2077019214630127,
0.31474462151527405,
0.37458536028862,
-0.07030709832906723,
0.2908633351325989,
-0.10103654861450195,
0.1949494332075119,
0.0023285141214728355,
0.2046324610710... |
https://github.com/huggingface/datasets/issues/2188 | Duplicate data in Timit dataset | Hi ! Thanks for reporting
If I recall correctly this has been recently fixed #1995
Can you try to upgrade your local version of `datasets` ?
```
pip install --upgrade datasets
``` | I ran a simple code to list all texts in Timit dataset and the texts were all the same.
Is this dataset corrupted?
**Code:**
timit = load_dataset("timit_asr")
print(*timit['train']['text'], sep='\n')
**Result:**
Would such an act of refusal be useful?
Would such an act of refusal be useful?
Would such an act of... | 32 | Duplicate data in Timit dataset
I ran a simple code to list all texts in Timit dataset and the texts were all the same.
Is this dataset corrupted?
**Code:**
timit = load_dataset("timit_asr")
print(*timit['train']['text'], sep='\n')
**Result:**
Would such an act of refusal be useful?
Would such an act of refusa... | [
-0.008559837937355042,
-0.3116269111633301,
-0.0845908522605896,
0.6408435106277466,
0.2972833514213562,
0.17986077070236206,
0.21272192895412445,
0.34836605191230774,
-0.3550940752029419,
0.06406441330909729,
-0.18485790491104126,
0.36077362298965454,
-0.03706923872232437,
0.1377495676279... |
https://github.com/huggingface/datasets/issues/2187 | Question (potential issue?) related to datasets caching | An educated guess: does this refer to the fact that depending on the custom column names in the dataset files (csv in this case), there is a dataset loader being created? and this dataset loader - using the "custom data configuration" is used among all jobs running using this particular csv files? (thinking out loud he... | I thought I had disabled datasets caching in my code, as follows:
```
from datasets import set_caching_enabled
...
def main():
# disable caching in datasets
set_caching_enabled(False)
```
However, in my log files I see messages like the following:
```
04/07/2021 18:34:42 - WARNING - datasets.build... | 95 | Question (potential issue?) related to datasets caching
I thought I had disabled datasets caching in my code, as follows:
```
from datasets import set_caching_enabled
...
def main():
# disable caching in datasets
set_caching_enabled(False)
```
However, in my log files I see messages like the followi... | [
-0.074739471077919,
0.032924309372901917,
-0.11125215888023376,
0.18403831124305725,
0.20810313522815704,
0.19958657026290894,
0.34123706817626953,
0.03536441549658775,
0.3006591498851776,
-0.14211590588092804,
0.17081204056739807,
0.09101533144712448,
-0.23205529153347015,
0.0387957021594... |
https://github.com/huggingface/datasets/issues/2187 | Question (potential issue?) related to datasets caching | Hi ! Currently disabling the caching means that all the dataset transform like `map`, `filter` etc. ignore the cache: it doesn't write nor read processed cache files.
However `load_dataset` reuses datasets that have already been prepared: it does reload prepared dataset files.
Indeed from the documentation:
> data... | I thought I had disabled datasets caching in my code, as follows:
```
from datasets import set_caching_enabled
...
def main():
# disable caching in datasets
set_caching_enabled(False)
```
However, in my log files I see messages like the following:
```
04/07/2021 18:34:42 - WARNING - datasets.build... | 202 | Question (potential issue?) related to datasets caching
I thought I had disabled datasets caching in my code, as follows:
```
from datasets import set_caching_enabled
...
def main():
# disable caching in datasets
set_caching_enabled(False)
```
However, in my log files I see messages like the followi... | [
-0.09970798343420029,
0.06134212017059326,
-0.09445253014564514,
0.13757404685020447,
0.28683602809906006,
0.1569390594959259,
0.29463255405426025,
0.057629141956567764,
0.21895624697208405,
-0.2274290770292282,
0.05633825808763504,
0.18915848433971405,
-0.1538449376821518,
-0.134917378425... |
https://github.com/huggingface/datasets/issues/2187 | Question (potential issue?) related to datasets caching | Thank you for the clarification.
This is a bit confusing. On one hand, it says that cache files are always recreated and written to a temporary directory that is removed; on the other hand the last bullet point makes me think that since the default according to the docs for `download_mode (Optional datasets.Generat... | I thought I had disabled datasets caching in my code, as follows:
```
from datasets import set_caching_enabled
...
def main():
# disable caching in datasets
set_caching_enabled(False)
```
However, in my log files I see messages like the following:
```
04/07/2021 18:34:42 - WARNING - datasets.build... | 112 | Question (potential issue?) related to datasets caching
I thought I had disabled datasets caching in my code, as follows:
```
from datasets import set_caching_enabled
...
def main():
# disable caching in datasets
set_caching_enabled(False)
```
However, in my log files I see messages like the followi... | [
0.023499656468629837,
-0.006731219589710236,
-0.10065872967243195,
0.22953376173973083,
0.21939027309417725,
0.16460686922073364,
0.14268338680267334,
-0.12215995788574219,
0.26811519265174866,
-0.221397265791893,
0.14639051258563995,
0.04763791710138321,
-0.08117957413196564,
-0.098919898... |
https://github.com/huggingface/datasets/issues/2187 | Question (potential issue?) related to datasets caching | It would be nice if the documentation elaborated on all the possible values for `download_mode` and/or a link to `datasets.GenerateMode`.
This info here:
```
"""`Enum` for how to treat pre-existing downloads and data.
The default mode is `REUSE_DATASET_IF_EXISTS`, which will reuse both
raw downloads a... | I thought I had disabled datasets caching in my code, as follows:
```
from datasets import set_caching_enabled
...
def main():
# disable caching in datasets
set_caching_enabled(False)
```
However, in my log files I see messages like the following:
```
04/07/2021 18:34:42 - WARNING - datasets.build... | 84 | Question (potential issue?) related to datasets caching
I thought I had disabled datasets caching in my code, as follows:
```
from datasets import set_caching_enabled
...
def main():
# disable caching in datasets
set_caching_enabled(False)
```
However, in my log files I see messages like the followi... | [
-0.13257543742656708,
0.0042612552642822266,
-0.10032559931278229,
0.14501947164535522,
0.26111477613449097,
0.0885639563202858,
0.14977996051311493,
-0.005440022796392441,
0.05236497148871422,
-0.22100000083446503,
-0.010533921420574188,
-0.009321505203843117,
-0.07880253344774246,
0.0148... |
https://github.com/huggingface/datasets/issues/2187 | Question (potential issue?) related to datasets caching | I have another question. Assuming that I understood correctly and there is reuse of datasets files when caching is disabled (!), I'm guessing there is a directory that is created based on some information on the dataset file. I'm interested in the situation where I'm loading a (custom) dataset from local disk. What inf... | I thought I had disabled datasets caching in my code, as follows:
```
from datasets import set_caching_enabled
...
def main():
# disable caching in datasets
set_caching_enabled(False)
```
However, in my log files I see messages like the following:
```
04/07/2021 18:34:42 - WARNING - datasets.build... | 139 | Question (potential issue?) related to datasets caching
I thought I had disabled datasets caching in my code, as follows:
```
from datasets import set_caching_enabled
...
def main():
# disable caching in datasets
set_caching_enabled(False)
```
However, in my log files I see messages like the followi... | [
0.03961401805281639,
0.17447951436042786,
-0.12205339968204498,
0.368890643119812,
0.12289901822805405,
0.09724772721529007,
0.3478941023349762,
-0.04351850971579552,
0.17479506134986877,
-0.11833678185939789,
0.08155412971973419,
-0.07398992776870728,
-0.09671016037464142,
-0.199741691350... |
https://github.com/huggingface/datasets/issues/2187 | Question (potential issue?) related to datasets caching | Thanks for the feedback, we'll work in improving this aspect of the documentation.
> Where are these files stored? I guess not in the temporary directory that is removed...
We're using the Arrow file format to load datasets. Therefore each time you load a dataset, it is prepared as an arrow file on your disk. By ... | I thought I had disabled datasets caching in my code, as follows:
```
from datasets import set_caching_enabled
...
def main():
# disable caching in datasets
set_caching_enabled(False)
```
However, in my log files I see messages like the following:
```
04/07/2021 18:34:42 - WARNING - datasets.build... | 231 | Question (potential issue?) related to datasets caching
I thought I had disabled datasets caching in my code, as follows:
```
from datasets import set_caching_enabled
...
def main():
# disable caching in datasets
set_caching_enabled(False)
```
However, in my log files I see messages like the followi... | [
0.04265282675623894,
0.11284618079662323,
-0.07477454096078873,
0.3651132583618164,
0.18751351535320282,
0.16579139232635498,
0.36184874176979065,
-0.07639780640602112,
0.19209399819374084,
-0.1457173079252243,
0.12443500757217407,
0.09013599157333374,
-0.26943618059158325,
-0.120382480323... |
https://github.com/huggingface/datasets/issues/2187 | Question (potential issue?) related to datasets caching | Thank you for all your clarifications, really helpful!
If you have the bandwidth, please do revisit the api wrt cache disabling. Anywhere in the computer stack (hardware included) where you disable the cache, one assumes there is no caching that happens. | I thought I had disabled datasets caching in my code, as follows:
```
from datasets import set_caching_enabled
...
def main():
# disable caching in datasets
set_caching_enabled(False)
```
However, in my log files I see messages like the following:
```
04/07/2021 18:34:42 - WARNING - datasets.build... | 41 | Question (potential issue?) related to datasets caching
I thought I had disabled datasets caching in my code, as follows:
```
from datasets import set_caching_enabled
...
def main():
# disable caching in datasets
set_caching_enabled(False)
```
However, in my log files I see messages like the followi... | [
-0.08065491169691086,
-0.019092634320259094,
-0.07845878601074219,
0.18294359743595123,
0.20736488699913025,
0.23291286826133728,
0.17175602912902832,
0.012628205120563507,
0.20395855605602264,
-0.1684737354516983,
0.10436809062957764,
0.0651792660355568,
-0.14791637659072876,
-0.048604704... |
https://github.com/huggingface/datasets/issues/2187 | Question (potential issue?) related to datasets caching | I have another question about caching, this time in the case where FORCE_REDOWNLOAD is used to load the dataset, the datasets cache is one directory as defined by HF_HOME and there are multiple concurrent jobs running in a cluster using the same local dataset (i.e., same local files in the cluster). Does anything in th... | I thought I had disabled datasets caching in my code, as follows:
```
from datasets import set_caching_enabled
...
def main():
# disable caching in datasets
set_caching_enabled(False)
```
However, in my log files I see messages like the following:
```
04/07/2021 18:34:42 - WARNING - datasets.build... | 115 | Question (potential issue?) related to datasets caching
I thought I had disabled datasets caching in my code, as follows:
```
from datasets import set_caching_enabled
...
def main():
# disable caching in datasets
set_caching_enabled(False)
```
However, in my log files I see messages like the followi... | [
-0.1976587027311325,
0.0997743308544159,
-0.1261470913887024,
0.23994241654872894,
0.028944052755832672,
0.043431356549263,
0.45647957921028137,
0.0984460860490799,
0.42207035422325134,
-0.21270205080509186,
-0.02498314529657364,
-0.04001081734895706,
-0.036591775715351105,
0.0134089235216... |
https://github.com/huggingface/datasets/issues/2187 | Question (potential issue?) related to datasets caching | I got another error that convinces me there is a race condition (one of the test files had zero samples at prediction time). I think it comes down to the fact that the `config_id` above (used in the naming for the cache) has no information on who's touching the data. If I have 2 concurrent jobs, both loading the same d... | I thought I had disabled datasets caching in my code, as follows:
```
from datasets import set_caching_enabled
...
def main():
# disable caching in datasets
set_caching_enabled(False)
```
However, in my log files I see messages like the following:
```
04/07/2021 18:34:42 - WARNING - datasets.build... | 74 | Question (potential issue?) related to datasets caching
I thought I had disabled datasets caching in my code, as follows:
```
from datasets import set_caching_enabled
...
def main():
# disable caching in datasets
set_caching_enabled(False)
```
However, in my log files I see messages like the followi... | [
-0.2517681121826172,
0.19136768579483032,
-0.12854303419589996,
0.2252948135137558,
-0.027028009295463562,
0.07782407850027084,
0.3286910951137543,
0.10052615404129028,
0.32229533791542053,
-0.16506622731685638,
0.12396372109651566,
-0.127957284450531,
-0.19243575632572174,
-0.014435985125... |
https://github.com/huggingface/datasets/issues/2187 | Question (potential issue?) related to datasets caching | We're using a locking mechanism to prevent two processes from writing at the same time. The locking is based on the `filelock` module.
Also directories that are being written use a suffix ".incomplete" so that reading is not possible on a dataset being written.
Do you think you could provide a simple code to reprod... | I thought I had disabled datasets caching in my code, as follows:
```
from datasets import set_caching_enabled
...
def main():
# disable caching in datasets
set_caching_enabled(False)
```
However, in my log files I see messages like the following:
```
04/07/2021 18:34:42 - WARNING - datasets.build... | 61 | Question (potential issue?) related to datasets caching
I thought I had disabled datasets caching in my code, as follows:
```
from datasets import set_caching_enabled
...
def main():
# disable caching in datasets
set_caching_enabled(False)
```
However, in my log files I see messages like the followi... | [
-0.19675293564796448,
0.11761045455932617,
-0.08972488343715668,
0.35525548458099365,
0.1577596813440323,
0.15526747703552246,
0.1879121959209442,
0.16086405515670776,
0.3102246820926666,
-0.1881493777036667,
0.19101926684379578,
0.01797320507466793,
-0.27344897389411926,
0.026845073327422... |
https://github.com/huggingface/datasets/issues/2187 | Question (potential issue?) related to datasets caching | I can provide details about the code I'm running (it's really-really close to some official samples from the huggingface transformers examples, I can point to the exact sample file, I kept a record of that). I can also describe in which conditions this race occurs (I'm convinced it has to do with forcing the redownload... | I thought I had disabled datasets caching in my code, as follows:
```
from datasets import set_caching_enabled
...
def main():
# disable caching in datasets
set_caching_enabled(False)
```
However, in my log files I see messages like the following:
```
04/07/2021 18:34:42 - WARNING - datasets.build... | 291 | Question (potential issue?) related to datasets caching
I thought I had disabled datasets caching in my code, as follows:
```
from datasets import set_caching_enabled
...
def main():
# disable caching in datasets
set_caching_enabled(False)
```
However, in my log files I see messages like the followi... | [
-0.2184482216835022,
-0.09565658867359161,
-0.01374091301113367,
0.3255730867385864,
0.14435270428657532,
0.04012278467416763,
0.2102063149213791,
-0.0006144829094409943,
0.28918221592903137,
-0.23899398744106293,
-0.017255490645766258,
-0.122287817299366,
-0.21927717328071594,
0.066736184... |
https://github.com/huggingface/datasets/issues/2187 | Question (potential issue?) related to datasets caching | Hi! I have the same challenge with caching, where the **.cache** folder is required even though it isn't possible for me.
I'd like to run transformers in Snowflake, using Snowpark for Python, this would mean I could provide configurable transformers in real-time for business users without having data leave an enviro... | I thought I had disabled datasets caching in my code, as follows:
```
from datasets import set_caching_enabled
...
def main():
# disable caching in datasets
set_caching_enabled(False)
```
However, in my log files I see messages like the following:
```
04/07/2021 18:34:42 - WARNING - datasets.build... | 83 | Question (potential issue?) related to datasets caching
I thought I had disabled datasets caching in my code, as follows:
```
from datasets import set_caching_enabled
...
def main():
# disable caching in datasets
set_caching_enabled(False)
```
However, in my log files I see messages like the followi... | [
-0.09467713534832001,
0.06660035252571106,
-0.023435503244400024,
0.37313735485076904,
0.3858664035797119,
0.11478788405656815,
0.20470580458641052,
-0.023724611848592758,
0.1317998766899109,
-0.15086765587329865,
0.12440095841884613,
0.0604427233338356,
-0.21300449967384338,
0.03396267443... |
https://github.com/huggingface/datasets/issues/2187 | Question (potential issue?) related to datasets caching | You can try to change the location of the cache folder using the `HF_CACHE_HOME` environment variable, and set a location where you have read/write access. | I thought I had disabled datasets caching in my code, as follows:
```
from datasets import set_caching_enabled
...
def main():
# disable caching in datasets
set_caching_enabled(False)
```
However, in my log files I see messages like the following:
```
04/07/2021 18:34:42 - WARNING - datasets.build... | 25 | Question (potential issue?) related to datasets caching
I thought I had disabled datasets caching in my code, as follows:
```
from datasets import set_caching_enabled
...
def main():
# disable caching in datasets
set_caching_enabled(False)
```
However, in my log files I see messages like the followi... | [
-0.05553406849503517,
0.05233955383300781,
-0.09127366542816162,
0.2140350043773651,
0.3289119601249695,
0.19444552063941956,
0.19704419374465942,
0.06822456419467926,
0.18030990660190582,
-0.1208227127790451,
0.04178735613822937,
0.036759424954652786,
-0.1732836216688156,
-0.0334036648273... |
https://github.com/huggingface/datasets/issues/2187 | Question (potential issue?) related to datasets caching | Thanks @lhoestq
I wanted to do that, however, snowflake does not allow it to write at all. I'm asking around to see if they can help me out with that issue π
| I thought I had disabled datasets caching in my code, as follows:
```
from datasets import set_caching_enabled
...
def main():
# disable caching in datasets
set_caching_enabled(False)
```
However, in my log files I see messages like the following:
```
04/07/2021 18:34:42 - WARNING - datasets.build... | 32 | Question (potential issue?) related to datasets caching
I thought I had disabled datasets caching in my code, as follows:
```
from datasets import set_caching_enabled
...
def main():
# disable caching in datasets
set_caching_enabled(False)
```
However, in my log files I see messages like the followi... | [
-0.08300359547138214,
-0.11795234680175781,
-0.0875985324382782,
0.4333561062812805,
0.31444215774536133,
0.09293175488710403,
0.21593531966209412,
0.045001134276390076,
0.09018552303314209,
-0.21972991526126862,
0.21874508261680603,
0.08733394742012024,
-0.16049593687057495,
0.21282465755... |
https://github.com/huggingface/datasets/issues/2185 | .map() and distributed training | Hi, one workaround would be to save the mapped(tokenized in your case) file using `save_to_disk`, and having each process load this file using `load_from_disk`. This is what I am doing, and in this case, I turn off the ability to automatically load from the cache.
Also, multiprocessing the map function seems to be s... | Hi,
I have a question regarding distributed training and the `.map` call on a dataset.
I have a local dataset "my_custom_dataset" that I am loading with `datasets = load_from_disk(dataset_path=my_path)`.
`dataset` is then tokenized:
```python
datasets = load_from_disk(dataset_path=my_path)
[...]
def tokeni... | 62 | .map() and distributed training
Hi,
I have a question regarding distributed training and the `.map` call on a dataset.
I have a local dataset "my_custom_dataset" that I am loading with `datasets = load_from_disk(dataset_path=my_path)`.
`dataset` is then tokenized:
```python
datasets = load_from_disk(dataset_pa... | [
-0.25376173853874207,
-0.2207169234752655,
0.11777672171592712,
0.07457448542118073,
0.2116168737411499,
-0.10975942015647888,
0.517072856426239,
0.010205429047346115,
0.28015705943107605,
0.023762956261634827,
0.1822476089000702,
0.34344959259033203,
-0.22906433045864105,
-0.5855441093444... |
https://github.com/huggingface/datasets/issues/2185 | .map() and distributed training | Thanks @hwijeen for the workaround, feels a bit prototypical but it works! (it seems files are written twice then though)
(I haven't observed slowness using multiprocessed map function but I could be wrong) | Hi,
I have a question regarding distributed training and the `.map` call on a dataset.
I have a local dataset "my_custom_dataset" that I am loading with `datasets = load_from_disk(dataset_path=my_path)`.
`dataset` is then tokenized:
```python
datasets = load_from_disk(dataset_path=my_path)
[...]
def tokeni... | 33 | .map() and distributed training
Hi,
I have a question regarding distributed training and the `.map` call on a dataset.
I have a local dataset "my_custom_dataset" that I am loading with `datasets = load_from_disk(dataset_path=my_path)`.
`dataset` is then tokenized:
```python
datasets = load_from_disk(dataset_pa... | [
-0.25376173853874207,
-0.2207169234752655,
0.11777672171592712,
0.07457448542118073,
0.2116168737411499,
-0.10975942015647888,
0.517072856426239,
0.010205429047346115,
0.28015705943107605,
0.023762956261634827,
0.1822476089000702,
0.34344959259033203,
-0.22906433045864105,
-0.5855441093444... |
https://github.com/huggingface/datasets/issues/2185 | .map() and distributed training | To my understanding, files are written twice anyhow(one after load_dataset, another aftet map). It's just that you now have it at the location where you can see, whereas it was secretlely saved at caching folder(.cache/huggingface/datasets by default)! Correct me if I'm wrong! | Hi,
I have a question regarding distributed training and the `.map` call on a dataset.
I have a local dataset "my_custom_dataset" that I am loading with `datasets = load_from_disk(dataset_path=my_path)`.
`dataset` is then tokenized:
```python
datasets = load_from_disk(dataset_path=my_path)
[...]
def tokeni... | 42 | .map() and distributed training
Hi,
I have a question regarding distributed training and the `.map` call on a dataset.
I have a local dataset "my_custom_dataset" that I am loading with `datasets = load_from_disk(dataset_path=my_path)`.
`dataset` is then tokenized:
```python
datasets = load_from_disk(dataset_pa... | [
-0.25376173853874207,
-0.2207169234752655,
0.11777672171592712,
0.07457448542118073,
0.2116168737411499,
-0.10975942015647888,
0.517072856426239,
0.010205429047346115,
0.28015705943107605,
0.023762956261634827,
0.1822476089000702,
0.34344959259033203,
-0.22906433045864105,
-0.5855441093444... |
https://github.com/huggingface/datasets/issues/2185 | .map() and distributed training | So to answer my initial question, I was just doing something stupid as I was not re-giving the `preprocessing_num_workers` arguments when launching the distributed training (and it was then set to `None`). I initially thought the hash was computed only with the `tokenize_function` but it's all arguments. Thanks @lhoest... | Hi,
I have a question regarding distributed training and the `.map` call on a dataset.
I have a local dataset "my_custom_dataset" that I am loading with `datasets = load_from_disk(dataset_path=my_path)`.
`dataset` is then tokenized:
```python
datasets = load_from_disk(dataset_path=my_path)
[...]
def tokeni... | 51 | .map() and distributed training
Hi,
I have a question regarding distributed training and the `.map` call on a dataset.
I have a local dataset "my_custom_dataset" that I am loading with `datasets = load_from_disk(dataset_path=my_path)`.
`dataset` is then tokenized:
```python
datasets = load_from_disk(dataset_pa... | [
-0.25376173853874207,
-0.2207169234752655,
0.11777672171592712,
0.07457448542118073,
0.2116168737411499,
-0.10975942015647888,
0.517072856426239,
0.010205429047346115,
0.28015705943107605,
0.023762956261634827,
0.1822476089000702,
0.34344959259033203,
-0.22906433045864105,
-0.5855441093444... |
https://github.com/huggingface/datasets/issues/2185 | .map() and distributed training | This cache process isn't really consistent. I just changed `per_device_train_batch_size` of training script and now it rebuilding the dataset cache!!!! Why? | Hi,
I have a question regarding distributed training and the `.map` call on a dataset.
I have a local dataset "my_custom_dataset" that I am loading with `datasets = load_from_disk(dataset_path=my_path)`.
`dataset` is then tokenized:
```python
datasets = load_from_disk(dataset_path=my_path)
[...]
def tokeni... | 21 | .map() and distributed training
Hi,
I have a question regarding distributed training and the `.map` call on a dataset.
I have a local dataset "my_custom_dataset" that I am loading with `datasets = load_from_disk(dataset_path=my_path)`.
`dataset` is then tokenized:
```python
datasets = load_from_disk(dataset_pa... | [
-0.25376173853874207,
-0.2207169234752655,
0.11777672171592712,
0.07457448542118073,
0.2116168737411499,
-0.10975942015647888,
0.517072856426239,
0.010205429047346115,
0.28015705943107605,
0.023762956261634827,
0.1822476089000702,
0.34344959259033203,
-0.22906433045864105,
-0.5855441093444... |
https://github.com/huggingface/datasets/issues/2185 | .map() and distributed training | Hi ! A `map` function is recomputed if the code changes or if any of the variables it uses changes. Can you check that your function doesn't use `per_device_train_batch_size` or any variable that contains `per_device_train_batch_size` ? | Hi,
I have a question regarding distributed training and the `.map` call on a dataset.
I have a local dataset "my_custom_dataset" that I am loading with `datasets = load_from_disk(dataset_path=my_path)`.
`dataset` is then tokenized:
```python
datasets = load_from_disk(dataset_path=my_path)
[...]
def tokeni... | 36 | .map() and distributed training
Hi,
I have a question regarding distributed training and the `.map` call on a dataset.
I have a local dataset "my_custom_dataset" that I am loading with `datasets = load_from_disk(dataset_path=my_path)`.
`dataset` is then tokenized:
```python
datasets = load_from_disk(dataset_pa... | [
-0.25376173853874207,
-0.2207169234752655,
0.11777672171592712,
0.07457448542118073,
0.2116168737411499,
-0.10975942015647888,
0.517072856426239,
0.010205429047346115,
0.28015705943107605,
0.023762956261634827,
0.1822476089000702,
0.34344959259033203,
-0.22906433045864105,
-0.5855441093444... |
https://github.com/huggingface/datasets/issues/2185 | .map() and distributed training | My code is actually a transformer's example for training t5, I modified a bit:
https://github.com/puraminy/transformers/blob/4b40877132eedb566043f83de8f1d29a84d71430/examples/flax/language-modeling/run_t5_mlm_flax.py#L614
No, it doesn't use `per_device_train_batch_size`. I remember it worked for several times and... | Hi,
I have a question regarding distributed training and the `.map` call on a dataset.
I have a local dataset "my_custom_dataset" that I am loading with `datasets = load_from_disk(dataset_path=my_path)`.
`dataset` is then tokenized:
```python
datasets = load_from_disk(dataset_path=my_path)
[...]
def tokeni... | 94 | .map() and distributed training
Hi,
I have a question regarding distributed training and the `.map` call on a dataset.
I have a local dataset "my_custom_dataset" that I am loading with `datasets = load_from_disk(dataset_path=my_path)`.
`dataset` is then tokenized:
```python
datasets = load_from_disk(dataset_pa... | [
-0.25376173853874207,
-0.2207169234752655,
0.11777672171592712,
0.07457448542118073,
0.2116168737411499,
-0.10975942015647888,
0.517072856426239,
0.010205429047346115,
0.28015705943107605,
0.023762956261634827,
0.1822476089000702,
0.34344959259033203,
-0.22906433045864105,
-0.5855441093444... |
https://github.com/huggingface/datasets/issues/2181 | Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries) | Hi ! Can you try to increase the block size ? For example
```python
block_size_10MB = 10<<20
load_dataset("json", ..., block_size=block_size_10MB)
```
The block size corresponds to how much bytes to process at a time from the input stream.
This will determine multi-threading granularity as well as the size of ind... | Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project.
When loading a huge json file of 500GB, pyarrow complains as follows:
```
Traceback (most recent call last):
File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-pack... | 64 | Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries)
Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project.
When loading a huge json file of 500GB, pyarrow complains as ... | [
0.016556892544031143,
0.012686818838119507,
-0.007510561496019363,
0.34093791246414185,
0.1604531705379486,
-0.26471415162086487,
0.1936325877904892,
0.5859467387199402,
-0.16216063499450684,
-0.08150680363178253,
0.1654731184244156,
0.14416258037090302,
-0.015083088539540768,
0.0145621839... |
https://github.com/huggingface/datasets/issues/2181 | Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries) | Hi @lhoestq! Thank you for your prompt reply.
I have experimented with (10<<20, 10<<28, 10<<30, 10<<33, 10<<34), since my machine has 192G of memory, but it's either the above-mentioned error or processed killed because of OOM.
Could you give me a bit of background on why block size needs to be exactly calibrated?
... | Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project.
When loading a huge json file of 500GB, pyarrow complains as follows:
```
Traceback (most recent call last):
File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-pack... | 66 | Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries)
Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project.
When loading a huge json file of 500GB, pyarrow complains as ... | [
0.016556892544031143,
0.012686818838119507,
-0.007510561496019363,
0.34093791246414185,
0.1604531705379486,
-0.26471415162086487,
0.1936325877904892,
0.5859467387199402,
-0.16216063499450684,
-0.08150680363178253,
0.1654731184244156,
0.14416258037090302,
-0.015083088539540768,
0.0145621839... |
https://github.com/huggingface/datasets/issues/2181 | Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries) | We're using the JSON loader of pyarrow. It parses the file chunk by chunk to load the dataset.
This issue happens when there's no delimiter in one chunk of data. For json line, the delimiter is the end of line.
So with a big value for chunk_size this should have worked unless you have one extremely long line in your ... | Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project.
When loading a huge json file of 500GB, pyarrow complains as follows:
```
Traceback (most recent call last):
File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-pack... | 95 | Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries)
Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project.
When loading a huge json file of 500GB, pyarrow complains as ... | [
0.016556892544031143,
0.012686818838119507,
-0.007510561496019363,
0.34093791246414185,
0.1604531705379486,
-0.26471415162086487,
0.1936325877904892,
0.5859467387199402,
-0.16216063499450684,
-0.08150680363178253,
0.1654731184244156,
0.14416258037090302,
-0.015083088539540768,
0.0145621839... |
https://github.com/huggingface/datasets/issues/2181 | Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries) | I'm using `pyarrow==3.0.0` with `datasets==1.5.0`.
Your point totally makes sense. I will check if my jsonl file contains an extremely long file and let you know.
Here are some different error messages that I got when tweaking `block_size`. I also suspect that this is related to the pyarrow... but I guess it wou... | Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project.
When loading a huge json file of 500GB, pyarrow complains as follows:
```
Traceback (most recent call last):
File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-pack... | 137 | Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries)
Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project.
When loading a huge json file of 500GB, pyarrow complains as ... | [
0.016556892544031143,
0.012686818838119507,
-0.007510561496019363,
0.34093791246414185,
0.1604531705379486,
-0.26471415162086487,
0.1936325877904892,
0.5859467387199402,
-0.16216063499450684,
-0.08150680363178253,
0.1654731184244156,
0.14416258037090302,
-0.015083088539540768,
0.0145621839... |
https://github.com/huggingface/datasets/issues/2181 | Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries) | I am getting the same error. When I tweak the block_size, I also find:
`OverflowError: value too large to convert to int32_t`
and
`pyarrow.lib.ArrowInvalid: Exceeded maximum rows`
| Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project.
When loading a huge json file of 500GB, pyarrow complains as follows:
```
Traceback (most recent call last):
File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-pack... | 27 | Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries)
Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project.
When loading a huge json file of 500GB, pyarrow complains as ... | [
0.016556892544031143,
0.012686818838119507,
-0.007510561496019363,
0.34093791246414185,
0.1604531705379486,
-0.26471415162086487,
0.1936325877904892,
0.5859467387199402,
-0.16216063499450684,
-0.08150680363178253,
0.1654731184244156,
0.14416258037090302,
-0.015083088539540768,
0.0145621839... |
https://github.com/huggingface/datasets/issues/2181 | Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries) | I made more tests. I used a smaller dataset and I was getting the same error, which means that it was not necessarily linked to the dataset size. To make both my smaller and larger datasets work, I got rid of lists with the json file. I had the following data format:
```python
[
{'key': "a", 'value': ['one', 'two'... | Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project.
When loading a huge json file of 500GB, pyarrow complains as follows:
```
Traceback (most recent call last):
File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-pack... | 120 | Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries)
Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project.
When loading a huge json file of 500GB, pyarrow complains as ... | [
0.016556892544031143,
0.012686818838119507,
-0.007510561496019363,
0.34093791246414185,
0.1604531705379486,
-0.26471415162086487,
0.1936325877904892,
0.5859467387199402,
-0.16216063499450684,
-0.08150680363178253,
0.1654731184244156,
0.14416258037090302,
-0.015083088539540768,
0.0145621839... |
https://github.com/huggingface/datasets/issues/2181 | Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries) | Thanks @hwijeen for reporting and thanks @jpilaul for pointing this out.
Indeed, those are different JSON-like formats:
- the first one is the **standard JSON** format: all the file content is JSON-valid, thus all content is either a JSON object (between curly brackets `{...}`) or a JSON array (between square brack... | Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project.
When loading a huge json file of 500GB, pyarrow complains as follows:
```
Traceback (most recent call last):
File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-pack... | 104 | Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries)
Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project.
When loading a huge json file of 500GB, pyarrow complains as ... | [
0.016556892544031143,
0.012686818838119507,
-0.007510561496019363,
0.34093791246414185,
0.1604531705379486,
-0.26471415162086487,
0.1936325877904892,
0.5859467387199402,
-0.16216063499450684,
-0.08150680363178253,
0.1654731184244156,
0.14416258037090302,
-0.015083088539540768,
0.0145621839... |
https://github.com/huggingface/datasets/issues/2181 | Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries) | Thanks @albertvillanova for your explanation, it is helpful to know (maybe add to docs?)!
However, the problem I described above happened when I was dealing with jsonl files πΏ
Although I did not thoroughly inspect, I suspect the cause was the one extremely long document in my case. | Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project.
When loading a huge json file of 500GB, pyarrow complains as follows:
```
Traceback (most recent call last):
File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-pack... | 48 | Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries)
Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project.
When loading a huge json file of 500GB, pyarrow complains as ... | [
0.016556892544031143,
0.012686818838119507,
-0.007510561496019363,
0.34093791246414185,
0.1604531705379486,
-0.26471415162086487,
0.1936325877904892,
0.5859467387199402,
-0.16216063499450684,
-0.08150680363178253,
0.1654731184244156,
0.14416258037090302,
-0.015083088539540768,
0.0145621839... |
https://github.com/huggingface/datasets/issues/2176 | Converting a Value to a ClassLabel | Hi @nelson-liu!
Here is what I do to convert a string to class label:
```python
from datasets import load_dataset, features
dset = load_dataset(...)
col_name = "the string column name"
class_names = dset.unique(col_name)
class_feature = features.ClassLabel(names=sorted(class_names))
dset = dset.map(lam... | Hi!
In the docs for `cast`, it's noted that `For non-trivial conversion, e.g. string <-> ClassLabel you should use map() to update the Dataset.`
Would it be possible to have an example that demonstrates such a string <-> ClassLabel conversion using `map`? Thanks! | 50 | Converting a Value to a ClassLabel
Hi!
In the docs for `cast`, it's noted that `For non-trivial conversion, e.g. string <-> ClassLabel you should use map() to update the Dataset.`
Would it be possible to have an example that demonstrates such a string <-> ClassLabel conversion using `map`? Thanks!
Hi @nelson... | [
-0.02556551992893219,
-0.19360481202602386,
0.05003330484032631,
0.05938300862908363,
0.6273637413978577,
0.21152490377426147,
0.2829760015010834,
0.0898774266242981,
0.0759948194026947,
-0.05686728656291962,
0.10290462523698807,
0.6814892888069153,
-0.0339193269610405,
0.11583291739225388... |
https://github.com/huggingface/datasets/issues/2176 | Converting a Value to a ClassLabel | Hi! You can use `Dataset.class_encode_column` for this. And in the next release of `datasets` (this feature is only available on `master`), you'll also be able to use `cast` to do the conversion.
An example of conversion via `cast`:
```python
from datasets import Dataset, Features, ClassLabel
d = Dataset.from_d... | Hi!
In the docs for `cast`, it's noted that `For non-trivial conversion, e.g. string <-> ClassLabel you should use map() to update the Dataset.`
Would it be possible to have an example that demonstrates such a string <-> ClassLabel conversion using `map`? Thanks! | 57 | Converting a Value to a ClassLabel
Hi!
In the docs for `cast`, it's noted that `For non-trivial conversion, e.g. string <-> ClassLabel you should use map() to update the Dataset.`
Would it be possible to have an example that demonstrates such a string <-> ClassLabel conversion using `map`? Thanks!
Hi! You ca... | [
-0.102482371032238,
-0.01344560831785202,
0.05103122070431709,
0.030188851058483124,
0.5588472485542297,
0.22223234176635742,
0.3362889885902405,
0.14872346818447113,
0.04115286096930504,
0.03893569856882095,
0.09335141628980637,
0.7553331255912781,
-0.068466417491436,
0.2130059450864792,
... |
https://github.com/huggingface/datasets/issues/2175 | dataset.search_batch() function outputs all -1 indices sometime. | Actually, I found the answer [here](https://github.com/facebookresearch/faiss/wiki/FAQ#what-does-it-mean-when-a-search-returns--1-ids).
So we have to do some modifications to the code for instances where the index doesn't retrieve any IDs. | I am working with RAG and playing around with different faiss indexes. At the moment I use **index = faiss.index_factory(768, "IVF65536_HNSW32,Flat")**.
During the retrieval phase exactly in [this line of retrieval_rag.py](https://github.com/huggingface/transformers/blob/master/src/transformers/models/rag/retrieval_... | 25 | dataset.search_batch() function outputs all -1 indices sometime.
I am working with RAG and playing around with different faiss indexes. At the moment I use **index = faiss.index_factory(768, "IVF65536_HNSW32,Flat")**.
During the retrieval phase exactly in [this line of retrieval_rag.py](https://github.com/huggingf... | [
0.011297248303890228,
-0.37210598587989807,
-0.10199865698814392,
0.01926855370402336,
0.2021878957748413,
-0.09668794274330139,
0.2803094685077667,
0.2968437969684601,
0.13914187252521515,
0.4209126830101013,
-0.23242904245853424,
-0.24345360696315765,
0.10583270341157913,
-0.033898022025... |
https://github.com/huggingface/datasets/issues/2175 | dataset.search_batch() function outputs all -1 indices sometime. | @lhoestq @patrickvonplaten
I also found another short bug in the retrieval part. Especially, when retrieving documents. If Faiss returns the -1 as the index, the retriever will always use the last element in the dataset.
please check [def get_doc_dicts function](https://github.com/huggingface/transformers/blo... | I am working with RAG and playing around with different faiss indexes. At the moment I use **index = faiss.index_factory(768, "IVF65536_HNSW32,Flat")**.
During the retrieval phase exactly in [this line of retrieval_rag.py](https://github.com/huggingface/transformers/blob/master/src/transformers/models/rag/retrieval_... | 52 | dataset.search_batch() function outputs all -1 indices sometime.
I am working with RAG and playing around with different faiss indexes. At the moment I use **index = faiss.index_factory(768, "IVF65536_HNSW32,Flat")**.
During the retrieval phase exactly in [this line of retrieval_rag.py](https://github.com/huggingf... | [
0.015852149575948715,
-0.2806914150714874,
-0.06329280138015747,
0.08496486395597458,
0.08535438776016235,
-0.10384581238031387,
0.2369084358215332,
0.3023107051849365,
0.1052338182926178,
0.34376060962677,
-0.2517731785774231,
-0.21534393727779388,
0.16499033570289612,
-0.2617835104465484... |
https://github.com/huggingface/datasets/issues/2175 | dataset.search_batch() function outputs all -1 indices sometime. | Hi !
No it happens sometimes to return -1, especially if your dataset is small.
If your dataset is big enough it shouldn't happen in my experience.
Ideally we should ignore all the -1 that are returned. It should be possible to change that in RAG's code | I am working with RAG and playing around with different faiss indexes. At the moment I use **index = faiss.index_factory(768, "IVF65536_HNSW32,Flat")**.
During the retrieval phase exactly in [this line of retrieval_rag.py](https://github.com/huggingface/transformers/blob/master/src/transformers/models/rag/retrieval_... | 47 | dataset.search_batch() function outputs all -1 indices sometime.
I am working with RAG and playing around with different faiss indexes. At the moment I use **index = faiss.index_factory(768, "IVF65536_HNSW32,Flat")**.
During the retrieval phase exactly in [this line of retrieval_rag.py](https://github.com/huggingf... | [
-0.01972270756959915,
-0.43228307366371155,
-0.0812414139509201,
0.047830671072006226,
0.21979737281799316,
-0.09081797301769257,
0.3115731179714203,
0.2803557515144348,
0.13101229071617126,
0.4431155323982239,
-0.25051581859588623,
-0.15310919284820557,
0.09101798385381699,
-0.07913549989... |
https://github.com/huggingface/datasets/issues/2175 | dataset.search_batch() function outputs all -1 indices sometime. | I also checked with some indexes it returns more -1s. Specially with IVF
when nprobr is very low. It doesn't happen when using HNSW though. But at
the moment if it happens, dataset will always return the last element.
Maybe we should change it to repeat the most last valid retrieved doc id.
What do you think?
On Wed, ... | I am working with RAG and playing around with different faiss indexes. At the moment I use **index = faiss.index_factory(768, "IVF65536_HNSW32,Flat")**.
During the retrieval phase exactly in [this line of retrieval_rag.py](https://github.com/huggingface/transformers/blob/master/src/transformers/models/rag/retrieval_... | 150 | dataset.search_batch() function outputs all -1 indices sometime.
I am working with RAG and playing around with different faiss indexes. At the moment I use **index = faiss.index_factory(768, "IVF65536_HNSW32,Flat")**.
During the retrieval phase exactly in [this line of retrieval_rag.py](https://github.com/huggingf... | [
-0.035219706594944,
-0.3799373209476471,
-0.04781666025519371,
0.0425722636282444,
0.15346083045005798,
-0.08229702711105347,
0.2974614202976227,
0.35949450731277466,
0.15454937517642975,
0.4000557065010071,
-0.27196386456489563,
-0.135530486702919,
0.1801844835281372,
-0.11624766141176224... |
https://github.com/huggingface/datasets/issues/2175 | dataset.search_batch() function outputs all -1 indices sometime. | That would be an easy way to workaround this issue. Feel free to open a PR on `transformers` and ping me ! :) | I am working with RAG and playing around with different faiss indexes. At the moment I use **index = faiss.index_factory(768, "IVF65536_HNSW32,Flat")**.
During the retrieval phase exactly in [this line of retrieval_rag.py](https://github.com/huggingface/transformers/blob/master/src/transformers/models/rag/retrieval_... | 23 | dataset.search_batch() function outputs all -1 indices sometime.
I am working with RAG and playing around with different faiss indexes. At the moment I use **index = faiss.index_factory(768, "IVF65536_HNSW32,Flat")**.
During the retrieval phase exactly in [this line of retrieval_rag.py](https://github.com/huggingf... | [
-0.02550804801285267,
-0.43428903818130493,
-0.06778901815414429,
0.07370905578136444,
0.255720853805542,
-0.08688485622406006,
0.3684980571269989,
0.28312602639198303,
0.0772833377122879,
0.45287108421325684,
-0.22231824696063995,
-0.19843144714832306,
0.04483785852789879,
-0.063660070300... |
https://github.com/huggingface/datasets/issues/2175 | dataset.search_batch() function outputs all -1 indices sometime. | Sure. Will push everything together with RAG end to end. :) thanks a lot.
On Wed, Apr 7, 2021, 21:16 Quentin Lhoest ***@***.***> wrote:
> That would be an easy way to workaround this issue. Feel free to open a PR
> on transformers and ping me ! :)
>
> β
> You are receiving this because you authored the thread.
> Rep... | I am working with RAG and playing around with different faiss indexes. At the moment I use **index = faiss.index_factory(768, "IVF65536_HNSW32,Flat")**.
During the retrieval phase exactly in [this line of retrieval_rag.py](https://github.com/huggingface/transformers/blob/master/src/transformers/models/rag/retrieval_... | 82 | dataset.search_batch() function outputs all -1 indices sometime.
I am working with RAG and playing around with different faiss indexes. At the moment I use **index = faiss.index_factory(768, "IVF65536_HNSW32,Flat")**.
During the retrieval phase exactly in [this line of retrieval_rag.py](https://github.com/huggingf... | [
-0.028312990441918373,
-0.4459776282310486,
-0.062118303030729294,
0.10841386020183563,
0.2921059727668762,
-0.0717785432934761,
0.354971706867218,
0.3072512745857239,
0.09947532415390015,
0.4373634457588196,
-0.28836920857429504,
-0.17787130177021027,
0.047587454319000244,
-0.040546901524... |
https://github.com/huggingface/datasets/issues/2170 | Wikipedia historic dumps are deleted but hf/datasets hardcodes dump date | It seems that this can be fixed from user's end by including a `date` argument, like this:
`dataset = datasets.load_dataset('wikipedia', '20200501.en', date='20210420')`
You can get available dates from [here](https://dumps.wikimedia.org/enwiki/).
This is not a proper fix however as all the files will still ha... | Wikimedia does not keep all historical dumps. For example, as of today https://dumps.wikimedia.org/kowiki/ only provides
```
20201220/ 02-Feb-2021 01:36 -
20210101/ 21-Feb-2021 01:26 -
20210120/ ... | 48 | Wikipedia historic dumps are deleted but hf/datasets hardcodes dump date
Wikimedia does not keep all historical dumps. For example, as of today https://dumps.wikimedia.org/kowiki/ only provides
```
20201220/ 02-Feb-2021 01:36 -
20210101/ ... | [
-0.048047035932540894,
0.33998146653175354,
-0.022192146629095078,
0.03158038854598999,
-0.31937915086746216,
0.15651261806488037,
0.30782821774482727,
0.5392641425132751,
0.1764220893383026,
0.10108529031276703,
-0.07535628974437714,
0.0723978728055954,
0.2024516463279724,
-0.244992926716... |
https://github.com/huggingface/datasets/issues/2166 | Regarding Test Sets for the GEM datasets | Hi @vyraun ! The test references for CommonGen are not publicly available: you can reach out to the original dataset authors if you would like to ask for them, but we will not be releasing them as part of GEM (March 31st was the release date for the test set inputs, references are incidentally released for some of the ... | @yjernite Hi, are the test sets for the GEM datasets scheduled to be [added soon](https://gem-benchmark.com/shared_task)?
e.g.
```
from datasets import load_dataset
DATASET_NAME="common_gen"
data = load_dataset("gem", DATASET_NAME)
```
The test set doesn't have the target or references.
```
data['test... | 71 | Regarding Test Sets for the GEM datasets
@yjernite Hi, are the test sets for the GEM datasets scheduled to be [added soon](https://gem-benchmark.com/shared_task)?
e.g.
```
from datasets import load_dataset
DATASET_NAME="common_gen"
data = load_dataset("gem", DATASET_NAME)
```
The test set doesn't have t... | [
-0.3199135959148407,
-0.09612463414669037,
-0.19731605052947998,
0.18443527817726135,
-0.09195997565984726,
0.11846659332513809,
0.28373172879219055,
0.3940262198448181,
-0.10528646409511566,
-0.016125261783599854,
0.1892586201429367,
0.2699713110923767,
-0.33448153734207153,
0.12940254807... |
https://github.com/huggingface/datasets/issues/2165 | How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset | Hi,
a HF dataset can be converted to a Torch Dataset with a simple wrapper as follows:
```python
from torch.utils.data import Dataset
class HFDataset(Dataset):
def __init__(self, dset):
self.dset = dset
def __getitem__(self, idx):
return self.dset[idx]
def __len__(self):
... | Hi,
I'm trying to pretraine deep-speed model using HF arxiv dataset like:
```
train_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds.set_format(
type="torch",
columns=["input_ids", "attention_mask", "global_attention_mask", "labels"],
)
engine, _, _, _ = deepspeed.initialize(
... | 124 | How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset
Hi,
I'm trying to pretraine deep-speed model using HF arxiv dataset like:
```
train_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds.set_format(
type="torch",
columns=["input_ids", "attention_mask", "global_a... | [
-0.2578473687171936,
-0.2652204632759094,
0.09229055047035217,
0.3382234573364258,
0.19224409759044647,
0.22271451354026794,
-0.03027305379509926,
0.3457014560699463,
-0.1513579934835434,
-0.18866340816020966,
-0.34864741563796997,
0.324899286031723,
-0.19426940381526947,
-0.14205330610275... |
https://github.com/huggingface/datasets/issues/2165 | How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset | Interesting ! Thanks for sharing this @mariosasko . I like the idea
This looks like something we should add IMO | Hi,
I'm trying to pretraine deep-speed model using HF arxiv dataset like:
```
train_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds.set_format(
type="torch",
columns=["input_ids", "attention_mask", "global_attention_mask", "labels"],
)
engine, _, _, _ = deepspeed.initialize(
... | 20 | How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset
Hi,
I'm trying to pretraine deep-speed model using HF arxiv dataset like:
```
train_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds.set_format(
type="torch",
columns=["input_ids", "attention_mask", "global_a... | [
-0.27043142914772034,
-0.35523155331611633,
0.057833876460790634,
0.32740235328674316,
0.13080257177352905,
0.22874748706817627,
-0.07467082142829895,
0.3752875328063965,
-0.1519821137189865,
-0.2421412318944931,
-0.3885171115398407,
0.3905746340751648,
-0.24195609986782074,
0.015907226130... |
https://github.com/huggingface/datasets/issues/2165 | How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset | @mariosasko
Thx for your code!
It perfectly works with a small modification for HF NLP dataset:
```
original_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds = HFDataset(train_ds['train']) # needs splitting
``` | Hi,
I'm trying to pretraine deep-speed model using HF arxiv dataset like:
```
train_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds.set_format(
type="torch",
columns=["input_ids", "attention_mask", "global_attention_mask", "labels"],
)
engine, _, _, _ = deepspeed.initialize(
... | 28 | How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset
Hi,
I'm trying to pretraine deep-speed model using HF arxiv dataset like:
```
train_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds.set_format(
type="torch",
columns=["input_ids", "attention_mask", "global_a... | [
-0.22635556757450104,
-0.3335738778114319,
0.0703146755695343,
0.3271580934524536,
0.1331762969493866,
0.19714394211769104,
-0.06429538130760193,
0.3733653724193573,
-0.13911867141723633,
-0.26625722646713257,
-0.39848288893699646,
0.38498401641845703,
-0.17945002019405365,
-0.009580949321... |
https://github.com/huggingface/datasets/issues/2165 | How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset | @lhoestq Sadly, from Python 3.7 onwards `torch.utils.data.Dataset` doesn't support the virtual subclass mechanism due to `typing.Generic` type no longer having `abc.ABCMeta` as its metaclass.
With that in mind, another option is to remove a direct type check (`isinstance(dataset, torch.utils.data.Dataset)`) in `deep... | Hi,
I'm trying to pretraine deep-speed model using HF arxiv dataset like:
```
train_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds.set_format(
type="torch",
columns=["input_ids", "attention_mask", "global_attention_mask", "labels"],
)
engine, _, _, _ = deepspeed.initialize(
... | 108 | How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset
Hi,
I'm trying to pretraine deep-speed model using HF arxiv dataset like:
```
train_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds.set_format(
type="torch",
columns=["input_ids", "attention_mask", "global_a... | [
-0.1920575201511383,
-0.27040258049964905,
0.09888172149658203,
0.3232179880142212,
0.23827874660491943,
0.18831780552864075,
-0.045659687370061874,
0.3633686602115631,
-0.15260280668735504,
-0.22917602956295013,
-0.2917282283306122,
0.39241930842399597,
-0.250336229801178,
-0.153775200247... |
https://github.com/huggingface/datasets/issues/2165 | How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset | That makes sense ! Feel free to open an issue on their repo and discuss this idea | Hi,
I'm trying to pretraine deep-speed model using HF arxiv dataset like:
```
train_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds.set_format(
type="torch",
columns=["input_ids", "attention_mask", "global_attention_mask", "labels"],
)
engine, _, _, _ = deepspeed.initialize(
... | 17 | How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset
Hi,
I'm trying to pretraine deep-speed model using HF arxiv dataset like:
```
train_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds.set_format(
type="torch",
columns=["input_ids", "attention_mask", "global_a... | [
-0.26200199127197266,
-0.3059774339199066,
0.048273418098688126,
0.33868950605392456,
0.11748912185430527,
0.22666704654693604,
-0.09718725085258484,
0.3648379445075989,
-0.1662658154964447,
-0.21851859986782074,
-0.3497868776321411,
0.39448297023773193,
-0.252158522605896,
-0.001438997685... |
https://github.com/huggingface/datasets/issues/2165 | How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset | @y-rokutan Hi, now if you install `deepspeed` from master (this feature will be available in the next official release), the code should work without subclassing. Let us know if you still have any issues. | Hi,
I'm trying to pretraine deep-speed model using HF arxiv dataset like:
```
train_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds.set_format(
type="torch",
columns=["input_ids", "attention_mask", "global_attention_mask", "labels"],
)
engine, _, _, _ = deepspeed.initialize(
... | 34 | How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset
Hi,
I'm trying to pretraine deep-speed model using HF arxiv dataset like:
```
train_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds.set_format(
type="torch",
columns=["input_ids", "attention_mask", "global_a... | [
-0.263549268245697,
-0.3762311339378357,
0.08587254583835602,
0.3691844940185547,
0.18167565762996674,
0.3435535132884979,
-0.051824335008859634,
0.4010281264781952,
-0.165042906999588,
-0.25844961404800415,
-0.3508142828941345,
0.3204565644264221,
-0.2445642203092575,
0.014273440465331078... |
https://github.com/huggingface/datasets/issues/2165 | How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset | Worth mentioning that any function that expects a `torch..Dataset` (like `torch..DataLoader`) will fail a mypy-esque typecheck if a `datasets.Dataset` is passed, even though it implements the interface correctly (I think). The virtual subclass idea was a good one- I wonder if there's another workaround given the Generi... | Hi,
I'm trying to pretraine deep-speed model using HF arxiv dataset like:
```
train_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds.set_format(
type="torch",
columns=["input_ids", "attention_mask", "global_attention_mask", "labels"],
)
engine, _, _, _ = deepspeed.initialize(
... | 96 | How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset
Hi,
I'm trying to pretraine deep-speed model using HF arxiv dataset like:
```
train_ds = nlp.load_dataset('scientific_papers', 'arxiv')
train_ds.set_format(
type="torch",
columns=["input_ids", "attention_mask", "global_a... | [
-0.20782165229320526,
-0.23314863443374634,
0.13846825063228607,
0.2725796103477478,
0.2668265402317047,
0.15376204252243042,
-0.003107864409685135,
0.32406845688819885,
-0.07489681243896484,
-0.22039954364299774,
-0.35762107372283936,
0.39065977931022644,
-0.26360395550727844,
0.105207957... |
https://github.com/huggingface/datasets/issues/2162 | visualization for cc100 is broken | This looks like an issue with the cc100 dataset itself but not sure
Did you try loading cc100 on your machine ? | Hi
visualization through dataset viewer for cc100 is broken
https://huggingface.co/datasets/viewer/
thanks a lot
| 22 | visualization for cc100 is broken
Hi
visualization through dataset viewer for cc100 is broken
https://huggingface.co/datasets/viewer/
thanks a lot
This looks like an issue with the cc100 dataset itself but not sure
Did you try loading cc100 on your machine ? | [
-0.5656793713569641,
-0.20044384896755219,
-0.0850355327129364,
0.12931975722312927,
0.20950736105442047,
-0.0013308003544807434,
0.16415362060070038,
0.13681326806545258,
-0.06592383980751038,
0.4231899380683899,
-0.05236528068780899,
0.23769991099834442,
0.12892717123031616,
0.4269975125... |
https://github.com/huggingface/datasets/issues/2162 | visualization for cc100 is broken | Hi
loading works fine, but the viewer only is broken
thanks
On Wed, Apr 7, 2021 at 12:17 PM Quentin Lhoest ***@***.***>
wrote:
> This looks like an issue with the cc100 dataset itself but not sure
> Did you try loading cc100 on your machine ?
>
> β
> You are receiving this because you authored the thread.
> Reply to ... | Hi
visualization through dataset viewer for cc100 is broken
https://huggingface.co/datasets/viewer/
thanks a lot
| 80 | visualization for cc100 is broken
Hi
visualization through dataset viewer for cc100 is broken
https://huggingface.co/datasets/viewer/
thanks a lot
Hi
loading works fine, but the viewer only is broken
thanks
On Wed, Apr 7, 2021 at 12:17 PM Quentin Lhoest ***@***.***>
wrote:
> This looks like an issue with ... | [
-0.48923343420028687,
-0.257188081741333,
-0.015440335497260094,
0.16780653595924377,
0.2279231697320938,
0.03674129396677017,
0.14369530975818634,
0.08045899868011475,
-0.03847810626029968,
0.31800705194473267,
-0.14256513118743896,
0.24562838673591614,
0.14194147288799286,
0.453869849443... |
https://github.com/huggingface/datasets/issues/2162 | visualization for cc100 is broken | Hi! This visualization tool is deprecated now. The viewer at https://huggingface.co/datasets/cc100 works fine, so I'm closing this issue. | Hi
visualization through dataset viewer for cc100 is broken
https://huggingface.co/datasets/viewer/
thanks a lot
| 18 | visualization for cc100 is broken
Hi
visualization through dataset viewer for cc100 is broken
https://huggingface.co/datasets/viewer/
thanks a lot
Hi! This visualization tool is deprecated now. The viewer at https://huggingface.co/datasets/cc100 works fine, so I'm closing this issue. | [
-0.5799177885055542,
-0.22593533992767334,
-0.09621959924697876,
0.06830741465091705,
0.1526748538017273,
0.02734467387199402,
0.19279438257217407,
0.1392853707075119,
-0.14177274703979492,
0.37907087802886963,
-0.13473939895629883,
0.36978259682655334,
0.0783781111240387,
0.38023525476455... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.