html_url
stringlengths
51
51
title
stringlengths
9
280
comments
stringlengths
63
24.7k
body
stringlengths
51
58.6k
comments length
int64
16
1.45k
text
stringlengths
186
59.1k
https://github.com/huggingface/datasets/issues/7421
DVC integration broken
Unfortunately `url` is a reserved argument in `fsspec.url_to_fs`, so ideally file system implementations like DVC should use another argument name to avoid this kind of errors
### Describe the bug The DVC integration seems to be broken. Followed this guide: https://dvc.org/doc/user-guide/integrations/huggingface ### Steps to reproduce the bug #### Script to reproduce ~~~python from datasets import load_dataset dataset = load_dataset( "csv", data_files="dvc://workshop/satellite-d...
26
DVC integration broken ### Describe the bug The DVC integration seems to be broken. Followed this guide: https://dvc.org/doc/user-guide/integrations/huggingface ### Steps to reproduce the bug #### Script to reproduce ~~~python from datasets import load_dataset dataset = load_dataset( "csv", data_files="dvc...
https://github.com/huggingface/datasets/issues/7086
load_dataset ignores cached datasets and tries to hit HF Hub, resulting in API rate limit errors
I'm having the same issue - running into rate limits when doing hyperparameter tuning even though the dataset is supposed to be cached. I feel like this behaviour should at the very least be documented, but honestly you should just not be running into rate limits in the first place when the dataset is cached. It even h...
### Describe the bug I have been running lm-eval-harness a lot which has results in an API rate limit. This seems strange, since all of the data should be cached locally. I have in fact verified this. ### Steps to reproduce the bug 1. Be Me 2. Run `load_dataset("TAUR-Lab/MuSR")` 3. Hit rate limit error 4. Dataset...
108
load_dataset ignores cached datasets and tries to hit HF Hub, resulting in API rate limit errors ### Describe the bug I have been running lm-eval-harness a lot which has results in an API rate limit. This seems strange, since all of the data should be cached locally. I have in fact verified this. ### Steps to reprodu...
https://github.com/huggingface/datasets/issues/7086
load_dataset ignores cached datasets and tries to hit HF Hub, resulting in API rate limit errors
I was running into the same issue and solved it by upgrading `huggingface_hub` from `0.33.5` to `0.34.0`. ```bash > python -m pip install huggingface_hub==0.34.0 ```
### Describe the bug I have been running lm-eval-harness a lot which has results in an API rate limit. This seems strange, since all of the data should be cached locally. I have in fact verified this. ### Steps to reproduce the bug 1. Be Me 2. Run `load_dataset("TAUR-Lab/MuSR")` 3. Hit rate limit error 4. Dataset...
25
load_dataset ignores cached datasets and tries to hit HF Hub, resulting in API rate limit errors ### Describe the bug I have been running lm-eval-harness a lot which has results in an API rate limit. This seems strange, since all of the data should be cached locally. I have in fact verified this. ### Steps to reprodu...
https://github.com/huggingface/datasets/issues/7548
Python 3.13t (free threads) Compat
Update: `datasets` use `aiohttp` for data streaming and from what I understand data streaming is useful for large datasets that do not fit in memory and/or multi-modal datasets like image/audio where you only what the actual binary bits to fed in as needed. However, there are also many cases where aiohttp will never ...
### Describe the bug Cannot install `datasets` under `python 3.13t` due to dependency on `aiohttp` and aiohttp cannot be built for free-threading python. The `free threading` support issue in `aiothttp` is active since August 2024! Ouch. https://github.com/aio-libs/aiohttp/issues/8796#issue-2475941784 `pip install...
137
Python 3.13t (free threads) Compat ### Describe the bug Cannot install `datasets` under `python 3.13t` due to dependency on `aiohttp` and aiohttp cannot be built for free-threading python. The `free threading` support issue in `aiothttp` is active since August 2024! Ouch. https://github.com/aio-libs/aiohttp/issues/...
https://github.com/huggingface/datasets/issues/7548
Python 3.13t (free threads) Compat
We are mostly relying on `huggingface_hub` which uses `requests` to stream files from Hugging Face, so maybe we can move aiohttp to optional dependencies now. Would it solve your issue ? Btw what do you think of `datasets` in the free-threading setting ?
### Describe the bug Cannot install `datasets` under `python 3.13t` due to dependency on `aiohttp` and aiohttp cannot be built for free-threading python. The `free threading` support issue in `aiothttp` is active since August 2024! Ouch. https://github.com/aio-libs/aiohttp/issues/8796#issue-2475941784 `pip install...
43
Python 3.13t (free threads) Compat ### Describe the bug Cannot install `datasets` under `python 3.13t` due to dependency on `aiohttp` and aiohttp cannot be built for free-threading python. The `free threading` support issue in `aiothttp` is active since August 2024! Ouch. https://github.com/aio-libs/aiohttp/issues/...
https://github.com/huggingface/datasets/issues/7548
Python 3.13t (free threads) Compat
> We are mostly relying on `huggingface_hub` which uses `requests` to stream files from Hugging Face, so maybe we can move aiohttp to optional dependencies now. Would it solve your issue ? Btw what do you think of `datasets` in the free-threading setting ? I am testing transformers + dataset (simple text dataset usage...
### Describe the bug Cannot install `datasets` under `python 3.13t` due to dependency on `aiohttp` and aiohttp cannot be built for free-threading python. The `free threading` support issue in `aiothttp` is active since August 2024! Ouch. https://github.com/aio-libs/aiohttp/issues/8796#issue-2475941784 `pip install...
168
Python 3.13t (free threads) Compat ### Describe the bug Cannot install `datasets` under `python 3.13t` due to dependency on `aiohttp` and aiohttp cannot be built for free-threading python. The `free threading` support issue in `aiothttp` is active since August 2024! Ouch. https://github.com/aio-libs/aiohttp/issues/...
https://github.com/huggingface/datasets/issues/7548
Python 3.13t (free threads) Compat
Ok I see ! Anyway feel free to edit the setup.py to move aiohttp to optional (tests) dependencies and open a PR, we can run the CI to see if it's ok as a change
### Describe the bug Cannot install `datasets` under `python 3.13t` due to dependency on `aiohttp` and aiohttp cannot be built for free-threading python. The `free threading` support issue in `aiothttp` is active since August 2024! Ouch. https://github.com/aio-libs/aiohttp/issues/8796#issue-2475941784 `pip install...
35
Python 3.13t (free threads) Compat ### Describe the bug Cannot install `datasets` under `python 3.13t` due to dependency on `aiohttp` and aiohttp cannot be built for free-threading python. The `free threading` support issue in `aiothttp` is active since August 2024! Ouch. https://github.com/aio-libs/aiohttp/issues/...
https://github.com/huggingface/datasets/issues/7548
Python 3.13t (free threads) Compat
wouldn't it be the good reason to switch to `httpx`? 😄 (would require slightly more work, short term agree with https://github.com/huggingface/datasets/issues/7548#issuecomment-2854405923)
### Describe the bug Cannot install `datasets` under `python 3.13t` due to dependency on `aiohttp` and aiohttp cannot be built for free-threading python. The `free threading` support issue in `aiothttp` is active since August 2024! Ouch. https://github.com/aio-libs/aiohttp/issues/8796#issue-2475941784 `pip install...
21
Python 3.13t (free threads) Compat ### Describe the bug Cannot install `datasets` under `python 3.13t` due to dependency on `aiohttp` and aiohttp cannot be built for free-threading python. The `free threading` support issue in `aiothttp` is active since August 2024! Ouch. https://github.com/aio-libs/aiohttp/issues/...
https://github.com/huggingface/datasets/issues/7548
Python 3.13t (free threads) Compat
I made `aiohttp` optional in `datasets` 3.6.0 :) `datasets` doesn't use it directly anyway, it's only used when someone wants to download files from HTTP URLs outside of HF
### Describe the bug Cannot install `datasets` under `python 3.13t` due to dependency on `aiohttp` and aiohttp cannot be built for free-threading python. The `free threading` support issue in `aiothttp` is active since August 2024! Ouch. https://github.com/aio-libs/aiohttp/issues/8796#issue-2475941784 `pip install...
29
Python 3.13t (free threads) Compat ### Describe the bug Cannot install `datasets` under `python 3.13t` due to dependency on `aiohttp` and aiohttp cannot be built for free-threading python. The `free threading` support issue in `aiothttp` is active since August 2024! Ouch. https://github.com/aio-libs/aiohttp/issues/...
https://github.com/huggingface/datasets/issues/7554
datasets downloads and generates all splits, even though a single split is requested (for dataset with loading script)
Hi ! there has been some effort on allowing to download only a subset of splits in https://github.com/huggingface/datasets/pull/6832 but no one has been continuing this work so far. This would be a welcomed contribution though Also note that loading script are often unoptimized, and we recommend using datasets in stan...
### Describe the bug `datasets` downloads and generates all splits, even though a single split is requested. [This](https://huggingface.co/datasets/jordiae/exebench) is the dataset in question. It uses a loading script. I am not 100% sure that this is a bug, because maybe with loading scripts `datasets` must actual...
73
datasets downloads and generates all splits, even though a single split is requested (for dataset with loading script) ### Describe the bug `datasets` downloads and generates all splits, even though a single split is requested. [This](https://huggingface.co/datasets/jordiae/exebench) is the dataset in question. It u...
https://github.com/huggingface/datasets/issues/8048
Support 3D Datasets
Closing, as this got implemented in: [feat: add 3D mesh support and MeshFolder builder #8055](https://github.com/huggingface/datasets/pull/8055) [fix: embed_external_files=True for mesh support #8224](https://github.com/huggingface/datasets/pull/8224)
### Feature request In `datasets` library we have options to load `image` and `audio` datasets which can be viewed in the Dataset Viewer. LIKE: ```bash from datasets import load_dataset, Image from datasets import load_dataset, Audio ``` > https://huggingface.co/docs/datasets/en/image_load & https://huggingface.co/do...
21
Support 3D Datasets ### Feature request In `datasets` library we have options to load `image` and `audio` datasets which can be viewed in the Dataset Viewer. LIKE: ```bash from datasets import load_dataset, Image from datasets import load_dataset, Audio ``` > https://huggingface.co/docs/datasets/en/image_load & https...
https://github.com/huggingface/datasets/issues/8145
`.map()` on a streaming IterableDataset silently skips examples after load_state_dict
I think this line here is causing issues: https://github.com/huggingface/datasets/blob/2724a653e7582077be647d3fdfe8cd1fac27b85f/src/datasets/iterable_dataset.py#L2225 It ignored force_convert_to_python, so it consumed a full Arrow chunk. I think it can be fixed if you add `self.force_convert_to_python` to the conditio...
### Describe the bug After `ds.map(fn)` on a streaming IterableDataset, saving state_dict() and loading it into a fresh dataset does not resume at the correct position. It jumps forward by up to one Arrow read-chunk (~1000 rows). ### Steps to reproduce the bug ```python from datasets import Dataset ds1 = Dataset.fr...
58
`.map()` on a streaming IterableDataset silently skips examples after load_state_dict ### Describe the bug After `ds.map(fn)` on a streaming IterableDataset, saving state_dict() and loading it into a fresh dataset does not resume at the correct position. It jumps forward by up to one Arrow read-chunk (~1000 rows). ##...
https://github.com/huggingface/datasets/issues/5692
pyarrow.lib.ArrowInvalid: Unable to merge: Field <field> has incompatible types
Hi! The link pointing to the code that generated the dataset is broken. Can you please fix it to make debugging easier?
### Describe the bug When loading the dataset [wikianc-en](https://huggingface.co/datasets/cyanic-selkie/wikianc-en) which I created using [this](https://github.com/cyanic-selkie/wikianc) code, I get the following error: ``` Traceback (most recent call last): File "/home/sven/code/rector/answer-detection/trai...
22
pyarrow.lib.ArrowInvalid: Unable to merge: Field <field> has incompatible types ### Describe the bug When loading the dataset [wikianc-en](https://huggingface.co/datasets/cyanic-selkie/wikianc-en) which I created using [this](https://github.com/cyanic-selkie/wikianc) code, I get the following error: ``` Tracebac...
https://github.com/huggingface/datasets/issues/5692
pyarrow.lib.ArrowInvalid: Unable to merge: Field <field> has incompatible types
> Hi! The link pointing to the code that generated the dataset is broken. Can you please fix it to make debugging easier? Sorry about that, it's fixed now.
### Describe the bug When loading the dataset [wikianc-en](https://huggingface.co/datasets/cyanic-selkie/wikianc-en) which I created using [this](https://github.com/cyanic-selkie/wikianc) code, I get the following error: ``` Traceback (most recent call last): File "/home/sven/code/rector/answer-detection/trai...
29
pyarrow.lib.ArrowInvalid: Unable to merge: Field <field> has incompatible types ### Describe the bug When loading the dataset [wikianc-en](https://huggingface.co/datasets/cyanic-selkie/wikianc-en) which I created using [this](https://github.com/cyanic-selkie/wikianc) code, I get the following error: ``` Tracebac...
https://github.com/huggingface/datasets/issues/5692
pyarrow.lib.ArrowInvalid: Unable to merge: Field <field> has incompatible types
@cyanic-selkie could you explain how you fixed it? I met the same error in loading other datasets, is it due to the version of the library enviroment?
### Describe the bug When loading the dataset [wikianc-en](https://huggingface.co/datasets/cyanic-selkie/wikianc-en) which I created using [this](https://github.com/cyanic-selkie/wikianc) code, I get the following error: ``` Traceback (most recent call last): File "/home/sven/code/rector/answer-detection/trai...
27
pyarrow.lib.ArrowInvalid: Unable to merge: Field <field> has incompatible types ### Describe the bug When loading the dataset [wikianc-en](https://huggingface.co/datasets/cyanic-selkie/wikianc-en) which I created using [this](https://github.com/cyanic-selkie/wikianc) code, I get the following error: ``` Tracebac...
https://github.com/huggingface/datasets/issues/5692
pyarrow.lib.ArrowInvalid: Unable to merge: Field <field> has incompatible types
@MingsYang I never fixed it. If you're referring to my comment above, I only meant I fixed the link to my code. Anyway, I managed to work around the issue by using `streaming` when loading the dataset.
### Describe the bug When loading the dataset [wikianc-en](https://huggingface.co/datasets/cyanic-selkie/wikianc-en) which I created using [this](https://github.com/cyanic-selkie/wikianc) code, I get the following error: ``` Traceback (most recent call last): File "/home/sven/code/rector/answer-detection/trai...
37
pyarrow.lib.ArrowInvalid: Unable to merge: Field <field> has incompatible types ### Describe the bug When loading the dataset [wikianc-en](https://huggingface.co/datasets/cyanic-selkie/wikianc-en) which I created using [this](https://github.com/cyanic-selkie/wikianc) code, I get the following error: ``` Tracebac...
https://github.com/huggingface/datasets/issues/5692
pyarrow.lib.ArrowInvalid: Unable to merge: Field <field> has incompatible types
@cyanic-selkie Emm, I get it. I just tried to use a new version python enviroment, and it show no errors anymore.
### Describe the bug When loading the dataset [wikianc-en](https://huggingface.co/datasets/cyanic-selkie/wikianc-en) which I created using [this](https://github.com/cyanic-selkie/wikianc) code, I get the following error: ``` Traceback (most recent call last): File "/home/sven/code/rector/answer-detection/trai...
21
pyarrow.lib.ArrowInvalid: Unable to merge: Field <field> has incompatible types ### Describe the bug When loading the dataset [wikianc-en](https://huggingface.co/datasets/cyanic-selkie/wikianc-en) which I created using [this](https://github.com/cyanic-selkie/wikianc) code, I get the following error: ``` Tracebac...
https://github.com/huggingface/datasets/issues/5374
Using too many threads results in: Got disconnected from remote data host. Retrying in 5sec
The data files are hosted on HF at https://huggingface.co/datasets/allenai/c4/tree/main You have 200 runs streaming the same files in parallel. So this is probably a Hub limitation. Maybe rate limiting ? cc @julien-c Maybe you can also try to reduce the number of HTTP requests by increasing the block size of eac...
### Describe the bug `streaming_download_manager` seems to disconnect if too many runs access the same underlying dataset 🧐 The code works fine for me if I have ~100 runs in parallel, but disconnects once scaling to 200. Possibly related: - https://github.com/huggingface/datasets/pull/3100 - https://github.com/...
81
Using too many threads results in: Got disconnected from remote data host. Retrying in 5sec ### Describe the bug `streaming_download_manager` seems to disconnect if too many runs access the same underlying dataset 🧐 The code works fine for me if I have ~100 runs in parallel, but disconnects once scaling to 200. P...
https://github.com/huggingface/datasets/issues/5374
Using too many threads results in: Got disconnected from remote data host. Retrying in 5sec
you don't get an HTTP error code or something in your stack trace? Kinda hard to debug with this info
### Describe the bug `streaming_download_manager` seems to disconnect if too many runs access the same underlying dataset 🧐 The code works fine for me if I have ~100 runs in parallel, but disconnects once scaling to 200. Possibly related: - https://github.com/huggingface/datasets/pull/3100 - https://github.com/...
20
Using too many threads results in: Got disconnected from remote data host. Retrying in 5sec ### Describe the bug `streaming_download_manager` seems to disconnect if too many runs access the same underlying dataset 🧐 The code works fine for me if I have ~100 runs in parallel, but disconnects once scaling to 200. P...
https://github.com/huggingface/datasets/issues/5374
Using too many threads results in: Got disconnected from remote data host. Retrying in 5sec
You could try to re-run using this `datasets` branch: [raise-err-when-disconnect](https://github.com/huggingface/datasets/compare/raise-err-when-disconnect?expand=1) It should raise the fsspec error
### Describe the bug `streaming_download_manager` seems to disconnect if too many runs access the same underlying dataset 🧐 The code works fine for me if I have ~100 runs in parallel, but disconnects once scaling to 200. Possibly related: - https://github.com/huggingface/datasets/pull/3100 - https://github.com/...
16
Using too many threads results in: Got disconnected from remote data host. Retrying in 5sec ### Describe the bug `streaming_download_manager` seems to disconnect if too many runs access the same underlying dataset 🧐 The code works fine for me if I have ~100 runs in parallel, but disconnects once scaling to 200. P...
https://github.com/huggingface/datasets/issues/5374
Using too many threads results in: Got disconnected from remote data host. Retrying in 5sec
The weird thing is that I already have it saved locally & it seems to indeed be using the cached one 🧐 ; I'm also using offline mode, so I don't think it has something to do with the Hub. ``` WARNING:datasets.load:Using the latest cached version of the module from /users/muennighoff/.cache/huggingface/modules/datase...
### Describe the bug `streaming_download_manager` seems to disconnect if too many runs access the same underlying dataset 🧐 The code works fine for me if I have ~100 runs in parallel, but disconnects once scaling to 200. Possibly related: - https://github.com/huggingface/datasets/pull/3100 - https://github.com/...
68
Using too many threads results in: Got disconnected from remote data host. Retrying in 5sec ### Describe the bug `streaming_download_manager` seems to disconnect if too many runs access the same underlying dataset 🧐 The code works fine for me if I have ~100 runs in parallel, but disconnects once scaling to 200. P...
https://github.com/huggingface/datasets/issues/5374
Using too many threads results in: Got disconnected from remote data host. Retrying in 5sec
No, you passed `streaming=True` so it streams the data from the Hub. This message just shows that you use the cached version of the `c4` **module**, aka the python script that is run to generate the examples from the raw data files. Maybe the offline mode should also disable `fsspec`/`aiohttp` HTTP calls in `datase...
### Describe the bug `streaming_download_manager` seems to disconnect if too many runs access the same underlying dataset 🧐 The code works fine for me if I have ~100 runs in parallel, but disconnects once scaling to 200. Possibly related: - https://github.com/huggingface/datasets/pull/3100 - https://github.com/...
60
Using too many threads results in: Got disconnected from remote data host. Retrying in 5sec ### Describe the bug `streaming_download_manager` seems to disconnect if too many runs access the same underlying dataset 🧐 The code works fine for me if I have ~100 runs in parallel, but disconnects once scaling to 200. P...
https://github.com/huggingface/datasets/issues/5374
Using too many threads results in: Got disconnected from remote data host. Retrying in 5sec
> This message just shows that you use the cached version of the c4 module Ah my bad you're right about the module, but it's also using the downloaded & cached c4 dataset. There's no internet during the runs so it wouldn't work otherwise
### Describe the bug `streaming_download_manager` seems to disconnect if too many runs access the same underlying dataset 🧐 The code works fine for me if I have ~100 runs in parallel, but disconnects once scaling to 200. Possibly related: - https://github.com/huggingface/datasets/pull/3100 - https://github.com/...
44
Using too many threads results in: Got disconnected from remote data host. Retrying in 5sec ### Describe the bug `streaming_download_manager` seems to disconnect if too many runs access the same underlying dataset 🧐 The code works fine for me if I have ~100 runs in parallel, but disconnects once scaling to 200. P...
https://github.com/huggingface/datasets/issues/4889
torchaudio 11.0 yields different results than torchaudio 12.1 when loading MP3
Maybe we can just pass this along to torchaudio @lhoestq @albertvillanova ? It be great if you could investigate if the errors lies in datasets or in torchaudio.
## Describe the bug When loading Common Voice with torchaudio 0.11.0 the results are different to 0.12.1 which leads to problems in transformers see: https://github.com/huggingface/transformers/pull/18749 ## Steps to reproduce the bug If you run the following code once with `torchaudio==0.11.0+cu102` and `torc...
28
torchaudio 11.0 yields different results than torchaudio 12.1 when loading MP3 ## Describe the bug When loading Common Voice with torchaudio 0.11.0 the results are different to 0.12.1 which leads to problems in transformers see: https://github.com/huggingface/transformers/pull/18749 ## Steps to reproduce the bug ...
https://github.com/huggingface/datasets/issues/4889
torchaudio 11.0 yields different results than torchaudio 12.1 when loading MP3
torchaudio did a change in [0.12](https://github.com/pytorch/audio/releases/tag/v0.12.0) on MP3 decoding (which affects common voice): > MP3 decoding is now handled by FFmpeg in sox_io backend. (https://github.com/pytorch/audio/pull/2419, https://github.com/pytorch/audio/pull/2428) > - FFmpeg is now used as fallback ...
## Describe the bug When loading Common Voice with torchaudio 0.11.0 the results are different to 0.12.1 which leads to problems in transformers see: https://github.com/huggingface/transformers/pull/18749 ## Steps to reproduce the bug If you run the following code once with `torchaudio==0.11.0+cu102` and `torc...
95
torchaudio 11.0 yields different results than torchaudio 12.1 when loading MP3 ## Describe the bug When loading Common Voice with torchaudio 0.11.0 the results are different to 0.12.1 which leads to problems in transformers see: https://github.com/huggingface/transformers/pull/18749 ## Steps to reproduce the bug ...
https://github.com/huggingface/datasets/issues/4889
torchaudio 11.0 yields different results than torchaudio 12.1 when loading MP3
Do we have a solution for this now? Should we just upgrade to `torchaudio 0.12.0` then?
## Describe the bug When loading Common Voice with torchaudio 0.11.0 the results are different to 0.12.1 which leads to problems in transformers see: https://github.com/huggingface/transformers/pull/18749 ## Steps to reproduce the bug If you run the following code once with `torchaudio==0.11.0+cu102` and `torc...
16
torchaudio 11.0 yields different results than torchaudio 12.1 when loading MP3 ## Describe the bug When loading Common Voice with torchaudio 0.11.0 the results are different to 0.12.1 which leads to problems in transformers see: https://github.com/huggingface/transformers/pull/18749 ## Steps to reproduce the bug ...
https://github.com/huggingface/datasets/issues/4889
torchaudio 11.0 yields different results than torchaudio 12.1 when loading MP3
`datasets` supports `torchaudio` 0.12 if you have an environment that supports reading MP3 with `torchaudio`, i.e. if you have `ffmpeg>=4`
## Describe the bug When loading Common Voice with torchaudio 0.11.0 the results are different to 0.12.1 which leads to problems in transformers see: https://github.com/huggingface/transformers/pull/18749 ## Steps to reproduce the bug If you run the following code once with `torchaudio==0.11.0+cu102` and `torc...
20
torchaudio 11.0 yields different results than torchaudio 12.1 when loading MP3 ## Describe the bug When loading Common Voice with torchaudio 0.11.0 the results are different to 0.12.1 which leads to problems in transformers see: https://github.com/huggingface/transformers/pull/18749 ## Steps to reproduce the bug ...
https://github.com/huggingface/datasets/issues/3596
Loss of cast `Image` feature on certain dataset method
Hi! Thanks for reporting! The issue with `cast_column` should be fixed by #3575 and after we merge that PR I'll start working on the `push_to_hub` support for the `Image`/`Audio` feature.
## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a data...
30
Loss of cast `Image` feature on certain dataset method ## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an...
https://github.com/huggingface/datasets/issues/3596
Loss of cast `Image` feature on certain dataset method
> Hi! Thanks for reporting! The issue with `cast_column` should be fixed by #3575 and after we merge that PR I'll start working on the `push_to_hub` support for the `Image`/`Audio` feature. Thanks, I'll keep an eye out for #3575 getting merged. I managed to use `push_to_hub` sucesfully with images when they were loa...
## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a data...
92
Loss of cast `Image` feature on certain dataset method ## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an...
https://github.com/huggingface/datasets/issues/3596
Loss of cast `Image` feature on certain dataset method
Hi ! We merged the PR and did a release of `datasets` that includes the changes. Can you try updating `datasets` and try again ?
## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a data...
25
Loss of cast `Image` feature on certain dataset method ## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an...
https://github.com/huggingface/datasets/issues/3596
Loss of cast `Image` feature on certain dataset method
> Hi ! We merged the PR and did a release of `datasets` that includes the changes. Can you try updating `datasets` and try again ? Thanks for checking. There is no longer an error when calling `select` but it appears the cast value isn't preserved. Before `select` ```python dataset.features {'url': Image(id=Non...
## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a data...
64
Loss of cast `Image` feature on certain dataset method ## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an...
https://github.com/huggingface/datasets/issues/3596
Loss of cast `Image` feature on certain dataset method
Hmmm, if I re-run your google colab I'm getting the right type at the end: ``` sample.features # {'url': Image(id=None)} ```
## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a data...
21
Loss of cast `Image` feature on certain dataset method ## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an...
https://github.com/huggingface/datasets/issues/3596
Loss of cast `Image` feature on certain dataset method
Appolgies - I've just run again and also got this output. I have also sucesfully used the `push_to_hub` method. I think this is fixed now so will close this issue.
## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a data...
30
Loss of cast `Image` feature on certain dataset method ## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an...
https://github.com/huggingface/datasets/issues/4217
Big_Patent dataset broken
Thanks for reporting. The issue seems not to be directly related to the dataset viewer or the `datasets` library, but instead to it being hosted on Google Drive. See related issues: https://github.com/huggingface/datasets/issues?q=is%3Aissue+is%3Aopen+drive.google.com To quote [@lhoestq](https://github.com/huggin...
## Dataset viewer issue for '*big_patent*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/big_patent/viewer/all/train)* *Unable to view because it says FileNotFound, also cannot download it through the python API* Am I the one who added this dataset ? No
62
Big_Patent dataset broken ## Dataset viewer issue for '*big_patent*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/big_patent/viewer/all/train)* *Unable to view because it says FileNotFound, also cannot download it through the python API* Am I the one who added this dataset ? No ...
https://github.com/huggingface/datasets/issues/4217
Big_Patent dataset broken
We should find out if the dataset license allows redistribution and contact the data owners to propose them to host their data on our Hub.
## Dataset viewer issue for '*big_patent*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/big_patent/viewer/all/train)* *Unable to view because it says FileNotFound, also cannot download it through the python API* Am I the one who added this dataset ? No
25
Big_Patent dataset broken ## Dataset viewer issue for '*big_patent*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/big_patent/viewer/all/train)* *Unable to view because it says FileNotFound, also cannot download it through the python API* Am I the one who added this dataset ? No ...
https://github.com/huggingface/datasets/issues/7688
No module named "distributed"
The error ModuleNotFoundError: No module named 'datasets.distributed' means your installed datasets library is too old or incompatible with the version of Library you are using(in my case it was BEIR). The datasets.distributed module was removed in recent versions of the datasets library. Downgrade datasets to version...
### Describe the bug hello, when I run the command "from datasets.distributed import split_dataset_by_node", I always met the bug "No module named 'datasets.distributed" in different version like 4.0.0, 2.21.0 and so on. How can I solve this? ### Steps to reproduce the bug 1. pip install datasets 2. from datasets.di...
52
No module named "distributed" ### Describe the bug hello, when I run the command "from datasets.distributed import split_dataset_by_node", I always met the bug "No module named 'datasets.distributed" in different version like 4.0.0, 2.21.0 and so on. How can I solve this? ### Steps to reproduce the bug 1. pip instal...
https://github.com/huggingface/datasets/issues/7688
No module named "distributed"
this code does run in `datasets` 4.0: ```python from datasets.distributed import split_dataset_by_node ``` make sure you have a python version that is recent enough (>=3.9) to be able to install `datasets` 4.0
### Describe the bug hello, when I run the command "from datasets.distributed import split_dataset_by_node", I always met the bug "No module named 'datasets.distributed" in different version like 4.0.0, 2.21.0 and so on. How can I solve this? ### Steps to reproduce the bug 1. pip install datasets 2. from datasets.di...
32
No module named "distributed" ### Describe the bug hello, when I run the command "from datasets.distributed import split_dataset_by_node", I always met the bug "No module named 'datasets.distributed" in different version like 4.0.0, 2.21.0 and so on. How can I solve this? ### Steps to reproduce the bug 1. pip instal...
https://github.com/huggingface/datasets/issues/7688
No module named "distributed"
I do think the problem is caused by the python version, because I do have python version 3.12.5
### Describe the bug hello, when I run the command "from datasets.distributed import split_dataset_by_node", I always met the bug "No module named 'datasets.distributed" in different version like 4.0.0, 2.21.0 and so on. How can I solve this? ### Steps to reproduce the bug 1. pip install datasets 2. from datasets.di...
18
No module named "distributed" ### Describe the bug hello, when I run the command "from datasets.distributed import split_dataset_by_node", I always met the bug "No module named 'datasets.distributed" in different version like 4.0.0, 2.21.0 and so on. How can I solve this? ### Steps to reproduce the bug 1. pip instal...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
Thanks for opening this discussion, @alexis-michaud. As the language validation procedure is shared with other Hugging Face projects, I'm tagging them as well. CC: @huggingface/moon-landing
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
25
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
on the Hub side, there is not fine grained validation we just check that `language:` contains an array of lowercase strings between 2 and 3 characters long =) and for `language_bcp47:` we just check it's an array of strings. The only page where we have a hardcoded list of languages is https://huggingface.co/langu...
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
116
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
PS @alexis-michaud is there a DB of language codes you would recommend? That would contain all `ISO 639-1, 639-2 or 639-3 codes` and be kept up to date, and ideally that would be accessible as a Node.js npm package? cc @albertvillanova too
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
42
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
> PS @alexis-michaud is there a DB of language codes you would recommend? That would contain all `ISO 639-1, 639-2 or 639-3 codes` and be kept up to date, and ideally that would be accessible as a Node.js npm package? > > cc @albertvillanova too Many thanks for your answer! The Glottolog database is kept up t...
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
141
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
I just tried pyglottolog to generate a file with all the current IDs (first column). `glottolog languoids` inside the `glottolog` repository. [glottolog-languoids-v4.6-10-g5c66eec874.csv](https://github.com/huggingface/datasets/files/9417456/glottolog-languoids-v4.6-10-g5c66eec874.csv)
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
22
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
Greetings @alexis-michaud and others, I think perhaps a standards-based approach here would help everyone out both at the technical and social layers of technical innovations. Let me say a few things: 1. there are multiple kinds of assets in AI that should have associated language codes. * AI Training Data se...
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
687
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
Hi everybody! About the point: > also cc'ing @lbourdois who's been active and helpful on those subjects in the past! Discussions on the need to improve the Hub's tagging system (applying to both datasets and models) can be found in the following discussion: https://github.com/huggingface/hub-docs/issues/193 Onc...
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
590
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
> I invite you to read them. But as a quick summary, the exchanges were oriented towards the ISO standard (the first HF system was based on it and it is generally the standard indicated in AI/DL papers) by favouring ISO 639-1 if it exists, and fallback to ISO 639-2 or ISO 639-3 if it doesn't. In addition, it is possibl...
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
311
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
> * Are there any databases that take into account all the existing sign languages in the world? > It would be nice to have them included on the Hub. Sign Languages present an interesting case. As I understand the situation. The identification of sign languages has been identified as a component of their endangerme...
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
136
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
> * Is there an international classification of languages? > A bit like the [International Classification of Diseases](https://en.wikipedia.org/wiki/International_Classification_of_Diseases) in medicine, which is established by the WHO and used as a reference throughout the world. The idea would be to have a precise...
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
168
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
>* When you look up a language on Wikipedia, it usually shows, in addition to the ISO standard, the codes in the Glottolog (which you have already mentioned), [ELP](https://www.endangeredlanguages.com/?hl=en) and [Linguasphere](http://www.linguasphere.info/jr/index.php?l1=home&l2=welcome) databases. Would you have any ...
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
135
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
> * Do you think it's possible to easily handle tags that have been deprecated potentially for decades? >For example (I'm taking the case of Hebrew but this has happened for other languages) I [tag](https://huggingface.co/models?language=iw&sort=downloads)ged Google models with the "iw" tag because I based it on what ...
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
150
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
> * On the Hub, there is the following dataset where French people speak in English: https://huggingface.co/datasets/Datatang/French_Speaking_English_Speech_Data_by_Mobile_Phone Is there a database to take this case into account? I have not found any code in the Glottolog database. If based on an IETF BCP-47 standard,...
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
493
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
Hi @lbourdois ! Many thanks for the detailed information. > Discussions on the need to improve the Hub's tagging system (applying to both datasets and models) can be found in the following discussion: [huggingface/hub-docs#193](https://github.com/huggingface/hub-docs/issues/193) Fascinating topic! To me, the follo...
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
1,285
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
> The idea of letting people use their favourite nomenclature and automatically adding the ISO 639-3 three-letter code as a tag is appealing. Thus all the HF datasets would have three-letter language tags (handy for basic search), alongside the authors' preferred tags and language names (including Glottolog tags as wel...
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
421
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
To get a visual idea of these first exchanges, I coded a Streamlit app that I put online on Spaces: https://huggingface.co/spaces/lbourdois/Language-tags-demo. The code is in Python so I don't know if it can be used by HF who seems to need something in Node.js but it serves as a proof of concept. The advantage is als...
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
920
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
Very impressive! Using the prompt 'Japhug' (a language name), the app finds the intended language: ![image](https://user-images.githubusercontent.com/6072524/188441805-3af3a580-951e-4150-b5f9-64e1bde0992b.png) A first question: based on the Glottocode, would it be possible to grab the closest ISO639-3 code? In case...
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
127
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
> on line 1 of the database, we can see that the Glottocode database gives an ISO 639-3 code (column ISO639P3code) but not the ISO 639 database (column 639-3). Do you have an explanation for this phenomenon? That is because the language name 'Aewa' is not found in the Ethnologue (ISO 639-3) export that you are using...
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
236
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
I will add these two points to my TODO list. - Since Glottolog can be trust, I will add a condition to the code that if there is no ISO 639-3 code in the "official" database (https://iso639-3.sil.org/sites/iso639-3/files/downloads/iso-639-3.tab), look for it in the "ISO639P3code" column of Glottolog. - For the point ...
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
106
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
> * Integrate ISO 3166-1 alpha 2 territories (https://www.iso.org/obp/ui#iso:pub:PUB500001:en)? They offer a finer granularity than ISO 3166-1 alpha 1 which is limited to the country level, but they are very administrative (for French, ISO 3166-1 alpha 2 gives us the "départements" for example). I'm concerned with t...
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
115
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
Good job for the application! > On the Hub, there is the following dataset where French people speak in English: https://huggingface.co/datasets/Datatang/French_Speaking_English_Speech_Data_by_Mobile_Phone Is there a database to take this case into account? I have not found any code in the Glottolog databa...
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
699
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
> To get a visual idea of these first exchanges, I coded a Streamlit app that I put online on Spaces: https://huggingface.co/spaces/lbourdois/Language-tags-demo. > The code is in Python so I don't know if it can be used by HF who seems to need something in Node.js but it serves as a proof of concept. The advantage is ...
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
201
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
> In practice, what I do is if we enter `fr-CA` is that the letters before the `-` refer to a language in the `Name` column for a `639-1` == `fr` (`639-3` for `fra` or `fre`) in the base of my image above. Then I look at the letters after the `-` which refers to a territory. It comes out `French (Canada)`. I used https...
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
120
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
> A first question: based on the Glottocode, would it be possible to grab the closest ISO639-3 code? In case there is no match for the exact language variety, one needs to explore the higher-level groupings, level by level. For this language (Japhug), the information provided in the extracted CSV file (`glottolog-langu...
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
198
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
@lbourdois > * Since Glottolog can be trust, I will add a condition to the code that if there is no ISO 639-3 code in the "official" database (https://iso639-3.sil.org/sites/iso639-3/files/downloads/iso-639-3.tab), look for it in the "ISO639P3code" column of Glottolog. I'm confused here... if there is no ISO639-3 ...
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
71
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
> For the point of adding the closest ISO 639-3 code for a Glottolog code, what convention should be adopted for the output? Just the ISO 639-3 code, or the ISO 639-3 code - Glottolog code, or the ISO 639-3 code - language name? To use the example of Japhug , should it be just jya, or jya-japh1234 or jya-Japhug? (a...
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
331
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
The problem seems to have already been raised here: https://drops.dagstuhl.de/opus/volltexte/2019/10368/pdf/OASIcs-LDK-2019-4.pdf An example can be seen here : > 3.1.2 The use of privateuse sub-tag In light of unambiguous language codes being available for the two Khoisan varieties, we propose to combine the IS...
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
92
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
> > * Since Glottolog can be trust, I will add a condition to the code that if there is no ISO 639-3 code in the "official" database (https://iso639-3.sil.org/sites/iso639-3/files/downloads/iso-639-3.tab), look for it in the "ISO639P3code" column of Glottolog. > > I'm confused here... if there is no ISO639-3 code in...
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
242
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
> By the way, while searching for this, I came across this application: https://huggingface.co/spaces/cdleong/langcode-search Really relevant Space, so tagging its author @cdleong, just in case!
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
25
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/4881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
@cdleong A one-stop shop for language codes: terrific! How do you feel about the use of Glottocodes? When searching the language names 'Japhug' and 'Yongning Na' (real examples, related to a HF Datasets deposit & various research projects), the relevant Glottocodes are retrieved, and that is great (and not that easy, ...
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
249
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list) **The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. ...
https://github.com/huggingface/datasets/issues/6563
`ImportError`: cannot import name 'insecure_hashlib' from 'huggingface_hub.utils' (.../huggingface_hub/utils/__init__.py)
<del>Installing `datasets` from `main` did the trick so I guess it will be fixed in the next release. NVM https://github.com/huggingface/datasets/blob/d26abadce0b884db32382b92422d8a6aa997d40a/src/datasets/utils/info_utils.py#L5
### Describe the bug Yep its not [there](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/__init__.py) anymore. ```text + python /home/trainer/sft_train.py --model_name cognitivecomputations/dolphin-2.2.1-mistral-7b --dataset_name wasertech/OneOS --load_in_4bit --use_peft --batch_...
20
`ImportError`: cannot import name 'insecure_hashlib' from 'huggingface_hub.utils' (.../huggingface_hub/utils/__init__.py) ### Describe the bug Yep its not [there](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/__init__.py) anymore. ```text + python /home/trainer/sft_train.py --m...
https://github.com/huggingface/datasets/issues/6563
`ImportError`: cannot import name 'insecure_hashlib' from 'huggingface_hub.utils' (.../huggingface_hub/utils/__init__.py)
Ha yes I had pinned `tokenizers` to an old version so it downgraded `huggingface_hub`. Note to myself keep HuggingFace modules relatively close together chronologically release wise.
### Describe the bug Yep its not [there](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/__init__.py) anymore. ```text + python /home/trainer/sft_train.py --model_name cognitivecomputations/dolphin-2.2.1-mistral-7b --dataset_name wasertech/OneOS --load_in_4bit --use_peft --batch_...
26
`ImportError`: cannot import name 'insecure_hashlib' from 'huggingface_hub.utils' (.../huggingface_hub/utils/__init__.py) ### Describe the bug Yep its not [there](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/__init__.py) anymore. ```text + python /home/trainer/sft_train.py --m...
https://github.com/huggingface/datasets/issues/4637
The "all" split breaks streaming
@albertvillanova Nice! Let me know if it's something I can fix my self; would love to contribtue!
## Describe the bug Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"` ## Steps to reproduce the bug The following works: ```python ds = load_dataset('super_glue', 'wsc.fixed', split='all') ``` The following throws `ValueError: Bad ...
17
The "all" split breaks streaming ## Describe the bug Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"` ## Steps to reproduce the bug The following works: ```python ds = load_dataset('super_glue', 'wsc.fixed', split='all') ``` The f...
https://github.com/huggingface/datasets/issues/4637
The "all" split breaks streaming
@cakiki I was working on this but if you would like to contribute, go ahead. I will close my PR. ;) For the moment I just pushed the test (to see if it impacts other tests).
## Describe the bug Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"` ## Steps to reproduce the bug The following works: ```python ds = load_dataset('super_glue', 'wsc.fixed', split='all') ``` The following throws `ValueError: Bad ...
36
The "all" split breaks streaming ## Describe the bug Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"` ## Steps to reproduce the bug The following works: ```python ds = load_dataset('super_glue', 'wsc.fixed', split='all') ``` The f...
https://github.com/huggingface/datasets/issues/4637
The "all" split breaks streaming
It impacted the test `test_generator_based_download_and_prepare` and I have fixed this. So that you can copy the test I implemented in my PR and then implement a fix for this issue that passes the test `tests/test_builder.py::test_builder_as_streaming_dataset`.
## Describe the bug Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"` ## Steps to reproduce the bug The following works: ```python ds = load_dataset('super_glue', 'wsc.fixed', split='all') ``` The following throws `ValueError: Bad ...
35
The "all" split breaks streaming ## Describe the bug Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"` ## Steps to reproduce the bug The following works: ```python ds = load_dataset('super_glue', 'wsc.fixed', split='all') ``` The f...
https://github.com/huggingface/datasets/issues/4637
The "all" split breaks streaming
Hi @cakiki are you still interested in working on this? Are you planning to open a PR?
## Describe the bug Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"` ## Steps to reproduce the bug The following works: ```python ds = load_dataset('super_glue', 'wsc.fixed', split='all') ``` The following throws `ValueError: Bad ...
17
The "all" split breaks streaming ## Describe the bug Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"` ## Steps to reproduce the bug The following works: ```python ds = load_dataset('super_glue', 'wsc.fixed', split='all') ``` The f...
https://github.com/huggingface/datasets/issues/4637
The "all" split breaks streaming
Hi @albertvillanova ! Sorry it took so long; I wanted to spend this weekend working on it.
## Describe the bug Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"` ## Steps to reproduce the bug The following works: ```python ds = load_dataset('super_glue', 'wsc.fixed', split='all') ``` The following throws `ValueError: Bad ...
17
The "all" split breaks streaming ## Describe the bug Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"` ## Steps to reproduce the bug The following works: ```python ds = load_dataset('super_glue', 'wsc.fixed', split='all') ``` The f...
https://github.com/huggingface/datasets/issues/6736
Mosaic Streaming (MDS) Support
Hi ! that would be great :) Though note that `datasets` doesn't implement format-specific resuming when streaming, so in general I think it's better if users can use the mosaic-streaming library to read their MDS datasets. I wonder if they support `hf://` paths though... Anyway for those interested, the code for WebDa...
### Feature request I'm a huge fan of the current HF Datasets `webdataset` integration (especially the built-in streaming support). However, I'd love to upload some robotics and multimodal datasets I've processed for use with [Mosaic Streaming](https://docs.mosaicml.com/projects/streaming/en/stable/), specifically the...
107
Mosaic Streaming (MDS) Support ### Feature request I'm a huge fan of the current HF Datasets `webdataset` integration (especially the built-in streaming support). However, I'd love to upload some robotics and multimodal datasets I've processed for use with [Mosaic Streaming](https://docs.mosaicml.com/projects/streamin...
https://github.com/huggingface/datasets/issues/7594
Add option to ignore keys/columns when loading a dataset from jsonl(or any other data format)
Good point, I'd be in favor of having the `columns` argument in `JsonConfig` (and the others) to align with `ParquetConfig` to let users choose which columns to load and ignore the rest
### Feature request Hi, I would like the option to ignore keys/columns when loading a dataset from files (e.g. jsonl). ### Motivation I am working on a dataset which is built on jsonl. It seems the dataset is unclean and a column has different types in each row. I can't clean this or remove the column (It is not my ...
32
Add option to ignore keys/columns when loading a dataset from jsonl(or any other data format) ### Feature request Hi, I would like the option to ignore keys/columns when loading a dataset from files (e.g. jsonl). ### Motivation I am working on a dataset which is built on jsonl. It seems the dataset is unclean and a ...
https://github.com/huggingface/datasets/issues/7594
Add option to ignore keys/columns when loading a dataset from jsonl(or any other data format)
Yes, you can pass `columns=...` to load_dataset to select which columns to load, and it is passed to `ParquetConfig` :)
### Feature request Hi, I would like the option to ignore keys/columns when loading a dataset from files (e.g. jsonl). ### Motivation I am working on a dataset which is built on jsonl. It seems the dataset is unclean and a column has different types in each row. I can't clean this or remove the column (It is not my ...
20
Add option to ignore keys/columns when loading a dataset from jsonl(or any other data format) ### Feature request Hi, I would like the option to ignore keys/columns when loading a dataset from files (e.g. jsonl). ### Motivation I am working on a dataset which is built on jsonl. It seems the dataset is unclean and a ...
https://github.com/huggingface/datasets/issues/7594
Add option to ignore keys/columns when loading a dataset from jsonl(or any other data format)
Hi @lhoestq I'd like to take this up! As you suggested, I’ll extend the support for the columns parameter (currently used in ParquetConfig) to JsonConfig as well. This will allow users to selectively load specific keys/columns from .jsonl (or .json) files and ignore the rest — solving the type inconsistency issues i...
### Feature request Hi, I would like the option to ignore keys/columns when loading a dataset from files (e.g. jsonl). ### Motivation I am working on a dataset which is built on jsonl. It seems the dataset is unclean and a column has different types in each row. I can't clean this or remove the column (It is not my ...
54
Add option to ignore keys/columns when loading a dataset from jsonl(or any other data format) ### Feature request Hi, I would like the option to ignore keys/columns when loading a dataset from files (e.g. jsonl). ### Motivation I am working on a dataset which is built on jsonl. It seems the dataset is unclean and a ...
https://github.com/huggingface/datasets/issues/7594
Add option to ignore keys/columns when loading a dataset from jsonl(or any other data format)
Hi @avishaiElmakies and @lhoestq Just wanted to let you know that this is now implemented in #7594 As suggested, support for the `columns=...` argument (previously available for Parquet) has now been extended to **JSON and JSONL** loading via `load_dataset(...)`. You can now load only specific keys/columns and skip t...
### Feature request Hi, I would like the option to ignore keys/columns when loading a dataset from files (e.g. jsonl). ### Motivation I am working on a dataset which is built on jsonl. It seems the dataset is unclean and a column has different types in each row. I can't clean this or remove the column (It is not my ...
141
Add option to ignore keys/columns when loading a dataset from jsonl(or any other data format) ### Feature request Hi, I would like the option to ignore keys/columns when loading a dataset from files (e.g. jsonl). ### Motivation I am working on a dataset which is built on jsonl. It seems the dataset is unclean and a ...
https://github.com/huggingface/datasets/issues/7594
Add option to ignore keys/columns when loading a dataset from jsonl(or any other data format)
@ArjunJagdale this looks great! Thanks! I believe that every format that is supported by `datasets` should probably have this feature since it is very useful and will streamline the api (people will know that they can just use `columns` to select the columns they want, and it will not be dependent on the data format)
### Feature request Hi, I would like the option to ignore keys/columns when loading a dataset from files (e.g. jsonl). ### Motivation I am working on a dataset which is built on jsonl. It seems the dataset is unclean and a column has different types in each row. I can't clean this or remove the column (It is not my ...
55
Add option to ignore keys/columns when loading a dataset from jsonl(or any other data format) ### Feature request Hi, I would like the option to ignore keys/columns when loading a dataset from files (e.g. jsonl). ### Motivation I am working on a dataset which is built on jsonl. It seems the dataset is unclean and a ...
https://github.com/huggingface/datasets/issues/7594
Add option to ignore keys/columns when loading a dataset from jsonl(or any other data format)
Thanks @avishaiElmakies — totally agree, making `columns=...` support consistent across all formats would be really helpful for users.
### Feature request Hi, I would like the option to ignore keys/columns when loading a dataset from files (e.g. jsonl). ### Motivation I am working on a dataset which is built on jsonl. It seems the dataset is unclean and a column has different types in each row. I can't clean this or remove the column (It is not my ...
18
Add option to ignore keys/columns when loading a dataset from jsonl(or any other data format) ### Feature request Hi, I would like the option to ignore keys/columns when loading a dataset from files (e.g. jsonl). ### Motivation I am working on a dataset which is built on jsonl. It seems the dataset is unclean and a ...
https://github.com/huggingface/datasets/issues/7819
Cannot download opus dataset
Hi ! it seems "en-zh" doesn't exist for this dataset You can see the list of subsets here: https://huggingface.co/datasets/Helsinki-NLP/opus_books
When I tried to download opus_books using: from datasets import load_dataset dataset = load_dataset("Helsinki-NLP/opus_books") I got the following errors: FileNotFoundError: Couldn't find any data file at /workspace/Helsinki-NLP/opus_books. Couldn't find 'Helsinki-NLP/opus_books' on the Hugging Face Hub either: Local...
19
Cannot download opus dataset When I tried to download opus_books using: from datasets import load_dataset dataset = load_dataset("Helsinki-NLP/opus_books") I got the following errors: FileNotFoundError: Couldn't find any data file at /workspace/Helsinki-NLP/opus_books. Couldn't find 'Helsinki-NLP/opus_books' on the H...
https://github.com/huggingface/datasets/issues/4856
file missing when load_dataset with openwebtext on windows
I have tried to extract ```0015896-b1054262f7da52a0518521e29c8e352c.txt``` from ```17ecf461bfccd469a1fbc264ccb03731f8606eea7b3e2e8b86e13d18040bf5b3/urlsf_subset00-16_data.xz``` with 7-zip and put the file into cache_path ```F://huggingface/datasets/downloads/extracted/0901d27f43b7e9ac0577da0d0061c8c632ba0b70ecd1b4bfb2...
## Describe the bug 0015896-b1054262f7da52a0518521e29c8e352c.txt is missing when I run run_mlm.py with openwebtext. I check the cache_path and can not find 0015896-b1054262f7da52a0518521e29c8e352c.txt. but I can find this file in the 17ecf461bfccd469a1fbc264ccb03731f8606eea7b3e2e8b86e13d18040bf5b3/urlsf_subset00-16_da...
55
file missing when load_dataset with openwebtext on windows ## Describe the bug 0015896-b1054262f7da52a0518521e29c8e352c.txt is missing when I run run_mlm.py with openwebtext. I check the cache_path and can not find 0015896-b1054262f7da52a0518521e29c8e352c.txt. but I can find this file in the 17ecf461bfccd469a1fbc264cc...
https://github.com/huggingface/datasets/issues/4524
Downloading via Apache Pipeline, client cancelled (org.apache.beam.vendor.grpc.v1p43p2.io.grpc.StatusRuntimeException)
Hi @dan-the-meme-man, thanks for reporting. We are investigating a similar issue but with Beam+Dataflow (instead of Beam+Flink): - #4525 In order to go deeper into the root cause, we need as much information as possible: logs from the main process + logs from the workers are very informative. In the case of ...
## Describe the bug When downloading some `wikipedia` languages (in particular, I'm having a hard time with Spanish, Cebuano, and Russian) via FlinkRunner, I encounter the exception in the title. I have been playing with package versions a lot, because unfortunately, the different dependencies required by these packag...
67
Downloading via Apache Pipeline, client cancelled (org.apache.beam.vendor.grpc.v1p43p2.io.grpc.StatusRuntimeException) ## Describe the bug When downloading some `wikipedia` languages (in particular, I'm having a hard time with Spanish, Cebuano, and Russian) via FlinkRunner, I encounter the exception in the title. I ha...
https://github.com/huggingface/datasets/issues/4524
Downloading via Apache Pipeline, client cancelled (org.apache.beam.vendor.grpc.v1p43p2.io.grpc.StatusRuntimeException)
As I continued working on this today, I came to suspect that it is in fact an out of memory issue - I have a few more notebooks that I've left running, and if they produce the same error, I will try to get the logs. In the meantime, if there's any chance that there is a repo out there with those three languages already...
## Describe the bug When downloading some `wikipedia` languages (in particular, I'm having a hard time with Spanish, Cebuano, and Russian) via FlinkRunner, I encounter the exception in the title. I have been playing with package versions a lot, because unfortunately, the different dependencies required by these packag...
88
Downloading via Apache Pipeline, client cancelled (org.apache.beam.vendor.grpc.v1p43p2.io.grpc.StatusRuntimeException) ## Describe the bug When downloading some `wikipedia` languages (in particular, I'm having a hard time with Spanish, Cebuano, and Russian) via FlinkRunner, I encounter the exception in the title. I ha...
https://github.com/huggingface/datasets/issues/4912
datasets map() handles all data at a stroke and takes long time
Hi ! Interesting question ;) > Which is better? Process in map() or in data-collator As you said, both can be used in practice: map() if you want to preprocess before training, or a data-collator (or the equivalent `dataset.set_transform`) if you want to preprocess on-the-fly during training. Both options are gre...
**1. Background** Huggingface datasets package advises using `map()` to process data in batches. In the example code on pretraining masked language model, they use `map()` to tokenize all data at a stroke before the train loop. The corresponding code: ``` with accelerator.main_process_first(): tokenized_...
176
datasets map() handles all data at a stroke and takes long time **1. Background** Huggingface datasets package advises using `map()` to process data in batches. In the example code on pretraining masked language model, they use `map()` to tokenize all data at a stroke before the train loop. The corresponding co...
https://github.com/huggingface/datasets/issues/4912
datasets map() handles all data at a stroke and takes long time
Thanks for your clear explanation @lhoestq ! > * if your preprocessing takes too much CPU for example, using a data-collator may slow down your training and your GPUs may not work at full speed > * on the other hand, map() may take a lot of time and disk space to run if your dataset is too big. I really agree wi...
**1. Background** Huggingface datasets package advises using `map()` to process data in batches. In the example code on pretraining masked language model, they use `map()` to tokenize all data at a stroke before the train loop. The corresponding code: ``` with accelerator.main_process_first(): tokenized_...
93
datasets map() handles all data at a stroke and takes long time **1. Background** Huggingface datasets package advises using `map()` to process data in batches. In the example code on pretraining masked language model, they use `map()` to tokenize all data at a stroke before the train loop. The corresponding co...
https://github.com/huggingface/datasets/issues/4912
datasets map() handles all data at a stroke and takes long time
@lhoestq How to preprocess on-the-fly during training?my data is about 1w hours, when I use map to preprocess, and It's not finished yet, but all disk space(2T) is full.
**1. Background** Huggingface datasets package advises using `map()` to process data in batches. In the example code on pretraining masked language model, they use `map()` to tokenize all data at a stroke before the train loop. The corresponding code: ``` with accelerator.main_process_first(): tokenized_...
29
datasets map() handles all data at a stroke and takes long time **1. Background** Huggingface datasets package advises using `map()` to process data in batches. In the example code on pretraining masked language model, they use `map()` to tokenize all data at a stroke before the train loop. The corresponding co...
https://github.com/huggingface/datasets/issues/5332
Passing numpy array to ClassLabel names causes ValueError
Should `datasets` allow `ClassLabel` input parameter to be an `np.array` even though internally we need to cast it to a Python list? @lhoestq @mariosasko
### Describe the bug If a numpy array is passed to the names argument of ClassLabel, creating a dataset with those features causes an error. ### Steps to reproduce the bug https://colab.research.google.com/drive/1cV_es1PWZiEuus17n-2C-w0KEoEZ68IX TLDR: If I define my classes as: ``` my_classes = np.array(['on...
24
Passing numpy array to ClassLabel names causes ValueError ### Describe the bug If a numpy array is passed to the names argument of ClassLabel, creating a dataset with those features causes an error. ### Steps to reproduce the bug https://colab.research.google.com/drive/1cV_es1PWZiEuus17n-2C-w0KEoEZ68IX TLDR: I...
https://github.com/huggingface/datasets/issues/5332
Passing numpy array to ClassLabel names causes ValueError
Hi! No, I don't think so. The `names` parameter is [annotated](https://github.com/huggingface/datasets/blob/582236640b9109988e5f7a16a8353696ffa09a16/src/datasets/features/features.py#L892) as `List[str]` (**NumPy arrays are not lists**), and considering that type checking is not a common practice in Python, I think we ...
### Describe the bug If a numpy array is passed to the names argument of ClassLabel, creating a dataset with those features causes an error. ### Steps to reproduce the bug https://colab.research.google.com/drive/1cV_es1PWZiEuus17n-2C-w0KEoEZ68IX TLDR: If I define my classes as: ``` my_classes = np.array(['on...
38
Passing numpy array to ClassLabel names causes ValueError ### Describe the bug If a numpy array is passed to the names argument of ClassLabel, creating a dataset with those features causes an error. ### Steps to reproduce the bug https://colab.research.google.com/drive/1cV_es1PWZiEuus17n-2C-w0KEoEZ68IX TLDR: I...
https://github.com/huggingface/datasets/issues/5332
Passing numpy array to ClassLabel names causes ValueError
I appreciate it is the wrong type, and that type checking is not common, but I think there's a few circumstances that make it a good idea from a usability perspective. It's quite a difficult error to debug because it comes from a utility function (so it's not immediately obvious which parameter caused it). What make...
### Describe the bug If a numpy array is passed to the names argument of ClassLabel, creating a dataset with those features causes an error. ### Steps to reproduce the bug https://colab.research.google.com/drive/1cV_es1PWZiEuus17n-2C-w0KEoEZ68IX TLDR: If I define my classes as: ``` my_classes = np.array(['on...
234
Passing numpy array to ClassLabel names causes ValueError ### Describe the bug If a numpy array is passed to the names argument of ClassLabel, creating a dataset with those features causes an error. ### Steps to reproduce the bug https://colab.research.google.com/drive/1cV_es1PWZiEuus17n-2C-w0KEoEZ68IX TLDR: I...
https://github.com/huggingface/datasets/issues/5332
Passing numpy array to ClassLabel names causes ValueError
I agree that it's not easy to debug this issue, so perhaps we could add some basic type checking (e.g. `not isinstance(names, list)` -> error) to make debugging easier. Feel free to submit a PR. > Additionally, passing in a set instead of the list (again, relatively easy because people may run set(classes) to genera...
### Describe the bug If a numpy array is passed to the names argument of ClassLabel, creating a dataset with those features causes an error. ### Steps to reproduce the bug https://colab.research.google.com/drive/1cV_es1PWZiEuus17n-2C-w0KEoEZ68IX TLDR: If I define my classes as: ``` my_classes = np.array(['on...
100
Passing numpy array to ClassLabel names causes ValueError ### Describe the bug If a numpy array is passed to the names argument of ClassLabel, creating a dataset with those features causes an error. ### Steps to reproduce the bug https://colab.research.google.com/drive/1cV_es1PWZiEuus17n-2C-w0KEoEZ68IX TLDR: I...
https://github.com/huggingface/datasets/issues/5332
Passing numpy array to ClassLabel names causes ValueError
What about checking for `Sequence` instead? I think users can pass a list or a tuple as well.
### Describe the bug If a numpy array is passed to the names argument of ClassLabel, creating a dataset with those features causes an error. ### Steps to reproduce the bug https://colab.research.google.com/drive/1cV_es1PWZiEuus17n-2C-w0KEoEZ68IX TLDR: If I define my classes as: ``` my_classes = np.array(['on...
18
Passing numpy array to ClassLabel names causes ValueError ### Describe the bug If a numpy array is passed to the names argument of ClassLabel, creating a dataset with those features causes an error. ### Steps to reproduce the bug https://colab.research.google.com/drive/1cV_es1PWZiEuus17n-2C-w0KEoEZ68IX TLDR: I...
https://github.com/huggingface/datasets/issues/6272
Duplicate `data_files` when named `<split>/<split>.parquet`
I think it's best to drop duplicates with a `set` (as a temporary fix) and improve the patterns when/if https://github.com/fsspec/filesystem_spec/pull/1382 gets merged. @lhoestq Do you have some other ideas?
e.g. with `u23429/stock_1_minute_ticker` ```ipython In [1]: from datasets import * In [2]: b = load_dataset_builder("u23429/stock_1_minute_ticker") Downloading readme: 100%|██████████████████████████| 627/627 [00:00<00:00, 246kB/s] In [3]: b.config.data_files Out[3]: {NamedSplit('train'): ['hf://datasets/...
29
Duplicate `data_files` when named `<split>/<split>.parquet` e.g. with `u23429/stock_1_minute_ticker` ```ipython In [1]: from datasets import * In [2]: b = load_dataset_builder("u23429/stock_1_minute_ticker") Downloading readme: 100%|██████████████████████████| 627/627 [00:00<00:00, 246kB/s] In [3]: b.config....
https://github.com/huggingface/datasets/issues/6272
Duplicate `data_files` when named `<split>/<split>.parquet`
Alternatively we could just use this no ? ```python if config.FSSPEC_VERSION < version.parse("2023.9.0"): KEYWORDS_IN_PATH_NAME_BASE_PATTERNS = [ "{keyword}[{sep}/]**", "**[{sep}]{keyword}[{sep}/]**", "**/{keyword}[{sep}/]**", ] else: KEYWORDS_IN_PATH_NAME_BASE_PATTERNS = ...
e.g. with `u23429/stock_1_minute_ticker` ```ipython In [1]: from datasets import * In [2]: b = load_dataset_builder("u23429/stock_1_minute_ticker") Downloading readme: 100%|██████████████████████████| 627/627 [00:00<00:00, 246kB/s] In [3]: b.config.data_files Out[3]: {NamedSplit('train'): ['hf://datasets/...
66
Duplicate `data_files` when named `<split>/<split>.parquet` e.g. with `u23429/stock_1_minute_ticker` ```ipython In [1]: from datasets import * In [2]: b = load_dataset_builder("u23429/stock_1_minute_ticker") Downloading readme: 100%|██████████████████████████| 627/627 [00:00<00:00, 246kB/s] In [3]: b.config....
https://github.com/huggingface/datasets/issues/6272
Duplicate `data_files` when named `<split>/<split>.parquet`
Arf `"**/*/{keyword}[{sep}/]**"` does return `data/keyword.txt` in latest `fsspec` but not in `glob.glob` EDIT: actually forgot to set `recursive=True`
e.g. with `u23429/stock_1_minute_ticker` ```ipython In [1]: from datasets import * In [2]: b = load_dataset_builder("u23429/stock_1_minute_ticker") Downloading readme: 100%|██████████████████████████| 627/627 [00:00<00:00, 246kB/s] In [3]: b.config.data_files Out[3]: {NamedSplit('train'): ['hf://datasets/...
18
Duplicate `data_files` when named `<split>/<split>.parquet` e.g. with `u23429/stock_1_minute_ticker` ```ipython In [1]: from datasets import * In [2]: b = load_dataset_builder("u23429/stock_1_minute_ticker") Downloading readme: 100%|██████████████████████████| 627/627 [00:00<00:00, 246kB/s] In [3]: b.config....
https://github.com/huggingface/datasets/issues/6272
Duplicate `data_files` when named `<split>/<split>.parquet`
> I think it's best to drop duplicates with a set (as a temporary fix) I started https://github.com/huggingface/datasets/pull/6278 to use DataFilesSet objects instead of DataFilesList
e.g. with `u23429/stock_1_minute_ticker` ```ipython In [1]: from datasets import * In [2]: b = load_dataset_builder("u23429/stock_1_minute_ticker") Downloading readme: 100%|██████████████████████████| 627/627 [00:00<00:00, 246kB/s] In [3]: b.config.data_files Out[3]: {NamedSplit('train'): ['hf://datasets/...
25
Duplicate `data_files` when named `<split>/<split>.parquet` e.g. with `u23429/stock_1_minute_ticker` ```ipython In [1]: from datasets import * In [2]: b = load_dataset_builder("u23429/stock_1_minute_ticker") Downloading readme: 100%|██████████████████████████| 627/627 [00:00<00:00, 246kB/s] In [3]: b.config....
https://github.com/huggingface/datasets/issues/7856
Missing transcript column when loading a local dataset with "audiofolder"
First bad commit 5c8869f8c36dbc8c8d423030b7b7c4fd64f8c729 EDIT: This is not a bug or a regression. It was a breaking change introduced in the commit I mentioned and was also documented in there. The docs state how to handle this now, see https://huggingface.co/docs/datasets/main/en/audio_load#audiofolder-with-metadata...
### Describe the bug My local dataset is not properly loaded when using `load_dataset("audiofolder", data_dir="my_dataset")` with a `jsonl` metadata file. Only the `audio` column is read while the `transcript` column is not. The last tested `datasets` version where the behavior was still correct is 2.18.0. ### Steps...
117
Missing transcript column when loading a local dataset with "audiofolder" ### Describe the bug My local dataset is not properly loaded when using `load_dataset("audiofolder", data_dir="my_dataset")` with a `jsonl` metadata file. Only the `audio` column is read while the `transcript` column is not. The last tested `da...
https://github.com/huggingface/datasets/issues/7856
Missing transcript column when loading a local dataset with "audiofolder"
Thank you for your quick answer ! I'm sorry I missed that in the documentation. Everything works fine again after following your recommendations. I'm closing the issue.
### Describe the bug My local dataset is not properly loaded when using `load_dataset("audiofolder", data_dir="my_dataset")` with a `jsonl` metadata file. Only the `audio` column is read while the `transcript` column is not. The last tested `datasets` version where the behavior was still correct is 2.18.0. ### Steps...
27
Missing transcript column when loading a local dataset with "audiofolder" ### Describe the bug My local dataset is not properly loaded when using `load_dataset("audiofolder", data_dir="my_dataset")` with a `jsonl` metadata file. Only the `audio` column is read while the `transcript` column is not. The last tested `da...