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/7879
python core dump when downloading dataset
The issue on pyarrow side is here: https://github.com/apache/arrow/issues/45214 and the original issue in `datasets` here: https://github.com/huggingface/datasets/issues/7357 It would be cool to have a fix on the pyarrow side
### Describe the bug When downloading a dataset in streamed mode and exiting the program before the download completes, the python program core dumps when exiting: ``` terminate called without an active exception Aborted (core dumped) ``` Tested with python 3.12.3, python 3.9.21 ### Steps to reproduce the bug Cr...
28
python core dump when downloading dataset ### Describe the bug When downloading a dataset in streamed mode and exiting the program before the download completes, the python program core dumps when exiting: ``` terminate called without an active exception Aborted (core dumped) ``` Tested with python 3.12.3, python 3....
https://github.com/huggingface/datasets/issues/7879
python core dump when downloading dataset
Thank you very much @lhoestq, I'm reading the issue thread in pyarrow and realizing you've been raising awareness around this for a long time now. When I have some time I'll look at @pitrou's PR to see if I can get a better understanding of what's going on on pyarrow.
### Describe the bug When downloading a dataset in streamed mode and exiting the program before the download completes, the python program core dumps when exiting: ``` terminate called without an active exception Aborted (core dumped) ``` Tested with python 3.12.3, python 3.9.21 ### Steps to reproduce the bug Cr...
50
python core dump when downloading dataset ### Describe the bug When downloading a dataset in streamed mode and exiting the program before the download completes, the python program core dumps when exiting: ``` terminate called without an active exception Aborted (core dumped) ``` Tested with python 3.12.3, python 3....
https://github.com/huggingface/datasets/issues/4597
Streaming issue for financial_phrasebank
cc @huggingface/datasets: it seems like https://www.researchgate.net/ is flaky for datasets hosting (I put the "hosted-on-google-drive" tag since it's the same kind of issue I think)
### Link https://huggingface.co/datasets/financial_phrasebank/viewer/sentences_allagree/train ### Description As reported by a community member using [AutoTrain Evaluate](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/5#62bc217436d0e5d316a768f0), there seems to be a problem streaming this dat...
25
Streaming issue for financial_phrasebank ### Link https://huggingface.co/datasets/financial_phrasebank/viewer/sentences_allagree/train ### Description As reported by a community member using [AutoTrain Evaluate](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/5#62bc217436d0e5d316a768f0), there...
https://github.com/huggingface/datasets/issues/4597
Streaming issue for financial_phrasebank
License is Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0). We can host their data on the Hub.
### Link https://huggingface.co/datasets/financial_phrasebank/viewer/sentences_allagree/train ### Description As reported by a community member using [AutoTrain Evaluate](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/5#62bc217436d0e5d316a768f0), there seems to be a problem streaming this dat...
18
Streaming issue for financial_phrasebank ### Link https://huggingface.co/datasets/financial_phrasebank/viewer/sentences_allagree/train ### Description As reported by a community member using [AutoTrain Evaluate](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/5#62bc217436d0e5d316a768f0), there...
https://github.com/huggingface/datasets/issues/7573
No Samsum dataset
According to the following https://huggingface.co/posts/seawolf2357/424129432408590, as of now the dataset seems to be inaccessible. @IgorKasianenko, would https://huggingface.co/datasets/knkarthick/samsum suffice for your purpose?
### Describe the bug https://huggingface.co/datasets/Samsung/samsum dataset not found error 404 Originated from https://github.com/meta-llama/llama-cookbook/issues/948 ### Steps to reproduce the bug go to website https://huggingface.co/datasets/Samsung/samsum see the error also downloading it with python throws `...
21
No Samsum dataset ### Describe the bug https://huggingface.co/datasets/Samsung/samsum dataset not found error 404 Originated from https://github.com/meta-llama/llama-cookbook/issues/948 ### Steps to reproduce the bug go to website https://huggingface.co/datasets/Samsung/samsum see the error also downloading it wit...
https://github.com/huggingface/datasets/issues/7573
No Samsum dataset
Thanks @SP1029 for the update! That will work for now, using it as replacement. Is there a officially recommended way to maintain the CC licensed dataset under the organization account? Feel free to close this issue
### Describe the bug https://huggingface.co/datasets/Samsung/samsum dataset not found error 404 Originated from https://github.com/meta-llama/llama-cookbook/issues/948 ### Steps to reproduce the bug go to website https://huggingface.co/datasets/Samsung/samsum see the error also downloading it with python throws `...
36
No Samsum dataset ### Describe the bug https://huggingface.co/datasets/Samsung/samsum dataset not found error 404 Originated from https://github.com/meta-llama/llama-cookbook/issues/948 ### Steps to reproduce the bug go to website https://huggingface.co/datasets/Samsung/samsum see the error also downloading it wit...
https://github.com/huggingface/datasets/issues/7573
No Samsum dataset
> Is there an officially recommended way to maintain a CC-licensed dataset under an organizational account? @IgorKasianenko, apologies, this is not my area of expertise. > Please feel free to close this issue. I have limited access and may not be able to do that. Since you opened it, you would be able to close it.
### Describe the bug https://huggingface.co/datasets/Samsung/samsum dataset not found error 404 Originated from https://github.com/meta-llama/llama-cookbook/issues/948 ### Steps to reproduce the bug go to website https://huggingface.co/datasets/Samsung/samsum see the error also downloading it with python throws `...
56
No Samsum dataset ### Describe the bug https://huggingface.co/datasets/Samsung/samsum dataset not found error 404 Originated from https://github.com/meta-llama/llama-cookbook/issues/948 ### Steps to reproduce the bug go to website https://huggingface.co/datasets/Samsung/samsum see the error also downloading it wit...
https://github.com/huggingface/datasets/issues/5046
Audiofolder creates empty Dataset if files same level as metadata
Hi! Unfortunately, I can't reproduce this behavior. Instead, I get `ValueError: audio at 2063_fe9936e7-62b2-4e62-a276-acbd344480ce_1.wav doesn't have metadata in /audio-data/metadata.csv`, which can be fixed by removing the `./` from the file name. (Link to a Colab that tries to reproduce this behavior: https://cola...
## Describe the bug When audio files are at the same level as the metadata (`metadata.csv` or `metadata.jsonl` ), the `load_dataset` returns a `DatasetDict` with no rows but the correct columns. https://github.com/huggingface/datasets/blob/1ea4d091b7a4b83a85b2eeb8df65115d39af3766/docs/source/audio_dataset.mdx?plain...
42
Audiofolder creates empty Dataset if files same level as metadata ## Describe the bug When audio files are at the same level as the metadata (`metadata.csv` or `metadata.jsonl` ), the `load_dataset` returns a `DatasetDict` with no rows but the correct columns. https://github.com/huggingface/datasets/blob/1ea4d091b7...
https://github.com/huggingface/datasets/issues/5046
Audiofolder creates empty Dataset if files same level as metadata
I think we can make the file name matching part more robust by replacing `file_name` with `os.path.normpath(file_name)`, to ignore "./" among other things, in these two places: * https://github.com/huggingface/datasets/blob/85cd129bde605cd9acacdff0d065fc02e39e09b1/src/datasets/packaged_modules/folder_based_builder/fol...
## Describe the bug When audio files are at the same level as the metadata (`metadata.csv` or `metadata.jsonl` ), the `load_dataset` returns a `DatasetDict` with no rows but the correct columns. https://github.com/huggingface/datasets/blob/1ea4d091b7a4b83a85b2eeb8df65115d39af3766/docs/source/audio_dataset.mdx?plain...
31
Audiofolder creates empty Dataset if files same level as metadata ## Describe the bug When audio files are at the same level as the metadata (`metadata.csv` or `metadata.jsonl` ), the `load_dataset` returns a `DatasetDict` with no rows but the correct columns. https://github.com/huggingface/datasets/blob/1ea4d091b7...
https://github.com/huggingface/datasets/issues/5046
Audiofolder creates empty Dataset if files same level as metadata
I realized what I was doing wrong. The documentation puts the files in a subfolder. Once I have done that, it worked. But l agree that this should be handled better if possible.
## Describe the bug When audio files are at the same level as the metadata (`metadata.csv` or `metadata.jsonl` ), the `load_dataset` returns a `DatasetDict` with no rows but the correct columns. https://github.com/huggingface/datasets/blob/1ea4d091b7a4b83a85b2eeb8df65115d39af3766/docs/source/audio_dataset.mdx?plain...
33
Audiofolder creates empty Dataset if files same level as metadata ## Describe the bug When audio files are at the same level as the metadata (`metadata.csv` or `metadata.jsonl` ), the `load_dataset` returns a `DatasetDict` with no rows but the correct columns. https://github.com/huggingface/datasets/blob/1ea4d091b7...
https://github.com/huggingface/datasets/issues/3282
ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
Hi ! Thanks for reporting :) I think this is because the dataset is behind an access page. We can fix the dataset viewer If you also have this error when you use the `datasets` library in python, you should probably pass `use_auth_token=True` to the `load_dataset()` function to use your account to access the datase...
## Dataset viewer issue for '*oscar-corpus/OSCAR-2109*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/oscar-corpus/OSCAR-2109)* *The dataset library cannot download any language from the oscar-corpus/OSCAR-2109 dataset. By entering the URL in your browser I can access the file.* ...
55
ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py ## Dataset viewer issue for '*oscar-corpus/OSCAR-2109*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/oscar-corpus/OSCAR-2109)* *The dataset library cannot download any...
https://github.com/huggingface/datasets/issues/3282
ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
Ah ok, I didn't realise about the login page. I'll try `use_auth_token=True` and see if that solves it. Regards!
## Dataset viewer issue for '*oscar-corpus/OSCAR-2109*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/oscar-corpus/OSCAR-2109)* *The dataset library cannot download any language from the oscar-corpus/OSCAR-2109 dataset. By entering the URL in your browser I can access the file.* ...
19
ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py ## Dataset viewer issue for '*oscar-corpus/OSCAR-2109*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/oscar-corpus/OSCAR-2109)* *The dataset library cannot download any...
https://github.com/huggingface/datasets/issues/3282
ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
Hi, Using `use_auth_token=True` and downloading the credentials with `huggingface-cli login` (stored in .huggingface/token) solved the issue. Should I leave the issue open until you fix the Dataset viewer issue?
## Dataset viewer issue for '*oscar-corpus/OSCAR-2109*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/oscar-corpus/OSCAR-2109)* *The dataset library cannot download any language from the oscar-corpus/OSCAR-2109 dataset. By entering the URL in your browser I can access the file.* ...
29
ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py ## Dataset viewer issue for '*oscar-corpus/OSCAR-2109*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/oscar-corpus/OSCAR-2109)* *The dataset library cannot download any...
https://github.com/huggingface/datasets/issues/3282
ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
Cool ! Yes let's keep this issue open until the viewer is fixed - I'll close it when this is fixed. Thanks
## Dataset viewer issue for '*oscar-corpus/OSCAR-2109*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/oscar-corpus/OSCAR-2109)* *The dataset library cannot download any language from the oscar-corpus/OSCAR-2109 dataset. By entering the URL in your browser I can access the file.* ...
22
ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py ## Dataset viewer issue for '*oscar-corpus/OSCAR-2109*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/oscar-corpus/OSCAR-2109)* *The dataset library cannot download any...
https://github.com/huggingface/datasets/issues/3282
ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
The error I get when trying to load OSCAR 21.09 is this ``` ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py ``` The URL I get in the browser is this ``` https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/blob/main/OSCAR-2109.py ``` Mayb...
## Dataset viewer issue for '*oscar-corpus/OSCAR-2109*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/oscar-corpus/OSCAR-2109)* *The dataset library cannot download any language from the oscar-corpus/OSCAR-2109 dataset. By entering the URL in your browser I can access the file.* ...
38
ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py ## Dataset viewer issue for '*oscar-corpus/OSCAR-2109*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/oscar-corpus/OSCAR-2109)* *The dataset library cannot download any...
https://github.com/huggingface/datasets/issues/3282
ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
> The error I get when trying to load OSCAR 21.09 is this > > ``` > ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py > ``` > > The URL I get in the browser is this > > ``` > https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/blob/main/OS...
## Dataset viewer issue for '*oscar-corpus/OSCAR-2109*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/oscar-corpus/OSCAR-2109)* *The dataset library cannot download any language from the oscar-corpus/OSCAR-2109 dataset. By entering the URL in your browser I can access the file.* ...
75
ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py ## Dataset viewer issue for '*oscar-corpus/OSCAR-2109*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/oscar-corpus/OSCAR-2109)* *The dataset library cannot download any...
https://github.com/huggingface/datasets/issues/4538
Dataset Viewer issue for Pile of Law
Thanks so much for adding the docs. I was able to successfully hide the viewer using the ``` viewer: false ``` flag in the README.md of the dataset. I'm closing the issue because this is resolved. Thanks again!
### Link https://huggingface.co/datasets/pile-of-law/pile-of-law ### Description Hi, I would like to turn off the dataset viewer for our dataset without enabling access requests. To comply with upstream dataset creator requests/licenses, we would like to make sure that the data is not indexed by search engines...
38
Dataset Viewer issue for Pile of Law ### Link https://huggingface.co/datasets/pile-of-law/pile-of-law ### Description Hi, I would like to turn off the dataset viewer for our dataset without enabling access requests. To comply with upstream dataset creator requests/licenses, we would like to make sure that the ...
https://github.com/huggingface/datasets/issues/4538
Dataset Viewer issue for Pile of Law
Just for the record: - the doc <img width="1430" alt="Capture d’écran 2022-06-27 à 09 29 27" src="https://user-images.githubusercontent.com/1676121/175884089-bca6c0d5-6387-473e-98ca-86a910ede4bd.png"> - the dataset main page <img width="1134" alt="Capture d’écran 2022-06-27 à 09 29 05" src="https://us...
### Link https://huggingface.co/datasets/pile-of-law/pile-of-law ### Description Hi, I would like to turn off the dataset viewer for our dataset without enabling access requests. To comply with upstream dataset creator requests/licenses, we would like to make sure that the data is not indexed by search engines...
47
Dataset Viewer issue for Pile of Law ### Link https://huggingface.co/datasets/pile-of-law/pile-of-law ### Description Hi, I would like to turn off the dataset viewer for our dataset without enabling access requests. To comply with upstream dataset creator requests/licenses, we would like to make sure that the ...
https://github.com/huggingface/datasets/issues/3965
TypeError: Couldn't cast array of type for JSONLines dataset
Hi @lewtun, thanks for reporting. It seems that our library fails at inferring the dtype of the columns: - `milestone` - `performed_via_github_app` (and assigns them `null` dtype).
## Describe the bug One of the [course participants](https://discuss.huggingface.co/t/chapter-5-questions/11744/20?u=lewtun) is having trouble loading a JSONLines dataset that's composed of the GitHub issues from `spacy` (see stack trace below). This reminds me a bit of #2799 where one can load the dataset in `pan...
27
TypeError: Couldn't cast array of type for JSONLines dataset ## Describe the bug One of the [course participants](https://discuss.huggingface.co/t/chapter-5-questions/11744/20?u=lewtun) is having trouble loading a JSONLines dataset that's composed of the GitHub issues from `spacy` (see stack trace below). This rem...
https://github.com/huggingface/datasets/issues/7580
Requesting a specific split (eg: test) still downloads all (train, test, val) data when streaming=False.
Hi ! There was a PR open to improve this: https://github.com/huggingface/datasets/pull/6832 but it hasn't been continued so far. It would be a cool improvement though !
### Describe the bug When using load_dataset() from the datasets library (in load.py), specifying a particular split (e.g., split="train") still results in downloading data for all splits when streaming=False. This happens during the builder_instance.download_and_prepare() call. This behavior leads to unnecessary band...
26
Requesting a specific split (eg: test) still downloads all (train, test, val) data when streaming=False. ### Describe the bug When using load_dataset() from the datasets library (in load.py), specifying a particular split (e.g., split="train") still results in downloading data for all splits when streaming=False. This...
https://github.com/huggingface/datasets/issues/4569
Dataset Viewer issue for sst2
Hi @lewtun, thanks for reporting. I have checked locally and refreshed the preview and it seems working smooth now: ```python In [8]: ds Out[8]: DatasetDict({ train: Dataset({ features: ['idx', 'sentence', 'label'], num_rows: 67349 }) validation: Dataset({ features: ['i...
### Link https://huggingface.co/datasets/sst2 ### Description Not sure what is causing this, however it seems that `load_dataset("sst2")` also hangs (even though it downloads the files without problem): ``` Status code: 400 Exception: Exception Message: Give up after 5 attempts with Connectio...
57
Dataset Viewer issue for sst2 ### Link https://huggingface.co/datasets/sst2 ### Description Not sure what is causing this, however it seems that `load_dataset("sst2")` also hangs (even though it downloads the files without problem): ``` Status code: 400 Exception: Exception Message: Give up a...
https://github.com/huggingface/datasets/issues/4569
Dataset Viewer issue for sst2
Thanks @albertvillanova - it is indeed working now (not sure what caused the error in the first place). Closing this :)
### Link https://huggingface.co/datasets/sst2 ### Description Not sure what is causing this, however it seems that `load_dataset("sst2")` also hangs (even though it downloads the files without problem): ``` Status code: 400 Exception: Exception Message: Give up after 5 attempts with Connectio...
21
Dataset Viewer issue for sst2 ### Link https://huggingface.co/datasets/sst2 ### Description Not sure what is causing this, however it seems that `load_dataset("sst2")` also hangs (even though it downloads the files without problem): ``` Status code: 400 Exception: Exception Message: Give up a...
https://github.com/huggingface/datasets/issues/4864
Allow pathlib PoxisPath in Dataset.read_json
@cccntu I want to make a quick fix for this, but I am struggling to find where the json dataset builder is. Do you know?
**Is your feature request related to a problem? Please describe.** ``` from pathlib import Path from datasets import Dataset ds = Dataset.read_json(Path('data.json')) ``` causes an error ``` AttributeError: 'PosixPath' object has no attribute 'decode' ``` **Describe the solution you'd like** It should be...
25
Allow pathlib PoxisPath in Dataset.read_json **Is your feature request related to a problem? Please describe.** ``` from pathlib import Path from datasets import Dataset ds = Dataset.read_json(Path('data.json')) ``` causes an error ``` AttributeError: 'PosixPath' object has no attribute 'decode' ``` **Descr...
https://github.com/huggingface/datasets/issues/4864
Allow pathlib PoxisPath in Dataset.read_json
@vvvm23 I think you mean think: ```python ds = datasets.load_dataset('json', data_files=[Path('test.jsonl')]) ``` And the place you want to modify is here: ``` utils/file_utils.py:64, in is_remote_url(url_or_filename) 63 def is_remote_url(url_or_filename: str) -> bool: ---> 64 parsed = urlparse(url_or_...
**Is your feature request related to a problem? Please describe.** ``` from pathlib import Path from datasets import Dataset ds = Dataset.read_json(Path('data.json')) ``` causes an error ``` AttributeError: 'PosixPath' object has no attribute 'decode' ``` **Describe the solution you'd like** It should be...
90
Allow pathlib PoxisPath in Dataset.read_json **Is your feature request related to a problem? Please describe.** ``` from pathlib import Path from datasets import Dataset ds = Dataset.read_json(Path('data.json')) ``` causes an error ``` AttributeError: 'PosixPath' object has no attribute 'decode' ``` **Descr...
https://github.com/huggingface/datasets/issues/4864
Allow pathlib PoxisPath in Dataset.read_json
> @vvvm23 I think you mean think: You are correct, thanks! > Probably just need to check first if url_or_filename is [PathLike](https://docs.python.org/3/library/os.html#os.PathLike) and return False early. Is PathLike sufficient, or should I check the file exists here? Or is that handled later?
**Is your feature request related to a problem? Please describe.** ``` from pathlib import Path from datasets import Dataset ds = Dataset.read_json(Path('data.json')) ``` causes an error ``` AttributeError: 'PosixPath' object has no attribute 'decode' ``` **Describe the solution you'd like** It should be...
42
Allow pathlib PoxisPath in Dataset.read_json **Is your feature request related to a problem? Please describe.** ``` from pathlib import Path from datasets import Dataset ds = Dataset.read_json(Path('data.json')) ``` causes an error ``` AttributeError: 'PosixPath' object has no attribute 'decode' ``` **Descr...
https://github.com/huggingface/datasets/issues/4864
Allow pathlib PoxisPath in Dataset.read_json
I think here we just want to avoid passing Path to urlparse. A simpler solution is to add a str() call and convert the input to string before passing to the next step. No need to check anything.
**Is your feature request related to a problem? Please describe.** ``` from pathlib import Path from datasets import Dataset ds = Dataset.read_json(Path('data.json')) ``` causes an error ``` AttributeError: 'PosixPath' object has no attribute 'decode' ``` **Describe the solution you'd like** It should be...
38
Allow pathlib PoxisPath in Dataset.read_json **Is your feature request related to a problem? Please describe.** ``` from pathlib import Path from datasets import Dataset ds = Dataset.read_json(Path('data.json')) ``` causes an error ``` AttributeError: 'PosixPath' object has no attribute 'decode' ``` **Descr...
https://github.com/huggingface/datasets/issues/4864
Allow pathlib PoxisPath in Dataset.read_json
Above PR should do your first suggestion. Hope that works for you, as I am going on holiday and won't be able to change much :wink:
**Is your feature request related to a problem? Please describe.** ``` from pathlib import Path from datasets import Dataset ds = Dataset.read_json(Path('data.json')) ``` causes an error ``` AttributeError: 'PosixPath' object has no attribute 'decode' ``` **Describe the solution you'd like** It should be...
26
Allow pathlib PoxisPath in Dataset.read_json **Is your feature request related to a problem? Please describe.** ``` from pathlib import Path from datasets import Dataset ds = Dataset.read_json(Path('data.json')) ``` causes an error ``` AttributeError: 'PosixPath' object has no attribute 'decode' ``` **Descr...
https://github.com/huggingface/datasets/issues/4864
Allow pathlib PoxisPath in Dataset.read_json
I just came across this problem with `DatasetDict.from_parquet()`. The error still seems to originate from the same place: ``` File "/usr/local/lib/python3.12/dist-packages/datasets/utils/file_utils.py", line 88, in is_relative_path return urlparse(url_or_filename).scheme == "" and not os.path.isabs(url_or_filena...
**Is your feature request related to a problem? Please describe.** ``` from pathlib import Path from datasets import Dataset ds = Dataset.read_json(Path('data.json')) ``` causes an error ``` AttributeError: 'PosixPath' object has no attribute 'decode' ``` **Describe the solution you'd like** It should be...
50
Allow pathlib PoxisPath in Dataset.read_json **Is your feature request related to a problem? Please describe.** ``` from pathlib import Path from datasets import Dataset ds = Dataset.read_json(Path('data.json')) ``` causes an error ``` AttributeError: 'PosixPath' object has no attribute 'decode' ``` **Descr...
https://github.com/huggingface/datasets/issues/5649
The index column created with .to_sql() is dependent on the batch_size when writing
Thanks for reporting, @lsb. We are investigating it. On the other hand, please note that in the next `datasets` release, the index will not be created by default (see #5583). If you would like to have it, you will need to explicitly pass `index=True`.
### Describe the bug It seems like the "index" column is designed to be unique? The values are only unique per batch. The SQL index is not a unique index. This can be a problem, for instance, when building a faiss index on a dataset and then trying to match up ids with a sql export. ### Steps to reproduce the ...
44
The index column created with .to_sql() is dependent on the batch_size when writing ### Describe the bug It seems like the "index" column is designed to be unique? The values are only unique per batch. The SQL index is not a unique index. This can be a problem, for instance, when building a faiss index on a datas...
https://github.com/huggingface/datasets/issues/5649
The index column created with .to_sql() is dependent on the batch_size when writing
I think this is low enough priority for me to close this as Won't Fix. If I need any primary keys I can generate them beforehand. Feel free to reopen.
### Describe the bug It seems like the "index" column is designed to be unique? The values are only unique per batch. The SQL index is not a unique index. This can be a problem, for instance, when building a faiss index on a dataset and then trying to match up ids with a sql export. ### Steps to reproduce the ...
30
The index column created with .to_sql() is dependent on the batch_size when writing ### Describe the bug It seems like the "index" column is designed to be unique? The values are only unique per batch. The SQL index is not a unique index. This can be a problem, for instance, when building a faiss index on a datas...
https://github.com/huggingface/datasets/issues/7135
Bug: Type Mismatch in Dataset Mapping
By the way, following code is working. This show the inconsistentcy. ```python from datasets import Dataset # Original data data = { 'text': ['Hello', 'world', 'this', 'is', 'a', 'test'], 'label': [0, 1, 0, 1, 1, 0] } # Creating a Dataset object dataset = Dataset.from_dict(data) # Mapping functi...
# Issue: Type Mismatch in Dataset Mapping ## Description There is an issue with the `map` function in the `datasets` library where the mapped output does not reflect the expected type change. After applying a mapping function to convert an integer label to a string, the resulting type remains an integer instead of ...
83
Bug: Type Mismatch in Dataset Mapping # Issue: Type Mismatch in Dataset Mapping ## Description There is an issue with the `map` function in the `datasets` library where the mapped output does not reflect the expected type change. After applying a mapping function to convert an integer label to a string, the resulti...
https://github.com/huggingface/datasets/issues/7135
Bug: Type Mismatch in Dataset Mapping
Hello, thanks for submitting an issue. FWIU, the issue is that `datasets` tries to limit casting [ref](https://github.com/huggingface/datasets/blob/ca58154bba185c1916ca5eea4e33b27258642044/src/datasets/arrow_writer.py#L526) and as such will try to convert your strings back to int to preserve the `Features`. A qu...
# Issue: Type Mismatch in Dataset Mapping ## Description There is an issue with the `map` function in the `datasets` library where the mapped output does not reflect the expected type change. After applying a mapping function to convert an integer label to a string, the resulting type remains an integer instead of ...
67
Bug: Type Mismatch in Dataset Mapping # Issue: Type Mismatch in Dataset Mapping ## Description There is an issue with the `map` function in the `datasets` library where the mapped output does not reflect the expected type change. After applying a mapping function to convert an integer label to a string, the resulti...
https://github.com/huggingface/datasets/issues/7135
Bug: Type Mismatch in Dataset Mapping
LGTM! Thanks for the review. Just to clarify, is this intended behavior, or is it something that might be addressed in a future update? I'll leave this issue open until it's fixed if this is not the intended behavior.
# Issue: Type Mismatch in Dataset Mapping ## Description There is an issue with the `map` function in the `datasets` library where the mapped output does not reflect the expected type change. After applying a mapping function to convert an integer label to a string, the resulting type remains an integer instead of ...
39
Bug: Type Mismatch in Dataset Mapping # Issue: Type Mismatch in Dataset Mapping ## Description There is an issue with the `map` function in the `datasets` library where the mapped output does not reflect the expected type change. After applying a mapping function to convert an integer label to a string, the resulti...
https://github.com/huggingface/datasets/issues/3236
Loading of datasets changed in #3110 returns no examples
Hi @eladsegal, thanks for reporting. I am sorry, but I can't reproduce the bug: ``` In [1]: from datasets import load_dataset In [2]: ds = load_dataset("qasper") Downloading: 5.11kB [00:00, ?B/s] Downloading and preparing dataset qasper/qasper (download: 9.88 MiB, generated: 35.11 MiB, post-processed: Unknown...
## Describe the bug Loading of datasets changed in https://github.com/huggingface/datasets/pull/3110 returns no examples: ```python DatasetDict({ train: Dataset({ features: ['id', 'title', 'abstract', 'full_text', 'qas'], num_rows: 0 }) validation: Dataset({ features: ['id',...
173
Loading of datasets changed in #3110 returns no examples ## Describe the bug Loading of datasets changed in https://github.com/huggingface/datasets/pull/3110 returns no examples: ```python DatasetDict({ train: Dataset({ features: ['id', 'title', 'abstract', 'full_text', 'qas'], num_rows: 0 ...
https://github.com/huggingface/datasets/issues/3236
Loading of datasets changed in #3110 returns no examples
I can't reproduce either in my environment (macos, python 3.7). In your case it generates zero examples. This can only happen if the extraction of the TAR archive doesn't output the right filenames. Indeed if the `qasper` script can't find the right file to load, it's currently ignored and it returns zero examples. ...
## Describe the bug Loading of datasets changed in https://github.com/huggingface/datasets/pull/3110 returns no examples: ```python DatasetDict({ train: Dataset({ features: ['id', 'title', 'abstract', 'full_text', 'qas'], num_rows: 0 }) validation: Dataset({ features: ['id',...
107
Loading of datasets changed in #3110 returns no examples ## Describe the bug Loading of datasets changed in https://github.com/huggingface/datasets/pull/3110 returns no examples: ```python DatasetDict({ train: Dataset({ features: ['id', 'title', 'abstract', 'full_text', 'qas'], num_rows: 0 ...
https://github.com/huggingface/datasets/issues/3236
Loading of datasets changed in #3110 returns no examples
I just tried again on python 3.8 and I was able to reproduce the issue. Let me work on a fix
## Describe the bug Loading of datasets changed in https://github.com/huggingface/datasets/pull/3110 returns no examples: ```python DatasetDict({ train: Dataset({ features: ['id', 'title', 'abstract', 'full_text', 'qas'], num_rows: 0 }) validation: Dataset({ features: ['id',...
21
Loading of datasets changed in #3110 returns no examples ## Describe the bug Loading of datasets changed in https://github.com/huggingface/datasets/pull/3110 returns no examples: ```python DatasetDict({ train: Dataset({ features: ['id', 'title', 'abstract', 'full_text', 'qas'], num_rows: 0 ...
https://github.com/huggingface/datasets/issues/3236
Loading of datasets changed in #3110 returns no examples
Ok I found the issue. It's not related to python 3.8 in itself though. This issue happens because your local installation of `datasets` is outdated compared to the changes to datasets in #3110 To fix this you just have to pull the latest changes from `master` :) Let me know if that helps ! -------------- He...
## Describe the bug Loading of datasets changed in https://github.com/huggingface/datasets/pull/3110 returns no examples: ```python DatasetDict({ train: Dataset({ features: ['id', 'title', 'abstract', 'full_text', 'qas'], num_rows: 0 }) validation: Dataset({ features: ['id',...
183
Loading of datasets changed in #3110 returns no examples ## Describe the bug Loading of datasets changed in https://github.com/huggingface/datasets/pull/3110 returns no examples: ```python DatasetDict({ train: Dataset({ features: ['id', 'title', 'abstract', 'full_text', 'qas'], num_rows: 0 ...
https://github.com/huggingface/datasets/issues/3236
Loading of datasets changed in #3110 returns no examples
Thanks! But what about code that is already using older version of datasets? The reason I encountered this issue was that suddenly one of my repos with version 1.12.1 started getting 0 examples. I handled it by adding `revision` to `load_dataset`, but I guess it would still be an issue for other users who doesn't k...
## Describe the bug Loading of datasets changed in https://github.com/huggingface/datasets/pull/3110 returns no examples: ```python DatasetDict({ train: Dataset({ features: ['id', 'title', 'abstract', 'full_text', 'qas'], num_rows: 0 }) validation: Dataset({ features: ['id',...
57
Loading of datasets changed in #3110 returns no examples ## Describe the bug Loading of datasets changed in https://github.com/huggingface/datasets/pull/3110 returns no examples: ```python DatasetDict({ train: Dataset({ features: ['id', 'title', 'abstract', 'full_text', 'qas'], num_rows: 0 ...
https://github.com/huggingface/datasets/issues/3236
Loading of datasets changed in #3110 returns no examples
Hi, in 1.12.1 it uses the dataset scripts from that time, not the one on master. It only uses the datasets from master if you installed `datasets` from source, or if the dataset isn't available in your local version (in this case it shows a warning and it loads from master).
## Describe the bug Loading of datasets changed in https://github.com/huggingface/datasets/pull/3110 returns no examples: ```python DatasetDict({ train: Dataset({ features: ['id', 'title', 'abstract', 'full_text', 'qas'], num_rows: 0 }) validation: Dataset({ features: ['id',...
51
Loading of datasets changed in #3110 returns no examples ## Describe the bug Loading of datasets changed in https://github.com/huggingface/datasets/pull/3110 returns no examples: ```python DatasetDict({ train: Dataset({ features: ['id', 'title', 'abstract', 'full_text', 'qas'], num_rows: 0 ...
https://github.com/huggingface/datasets/issues/3236
Loading of datasets changed in #3110 returns no examples
OK, I understand the issue a bit better now. I see I wasn't on 1.12.1, but on 1.12.1.dev0 and since it is a dev version it uses master. So users that use an old dev version must specify revision or else they'll encounter this problem. BTW, when I opened the issue I installed the latest master version with ``` pi...
## Describe the bug Loading of datasets changed in https://github.com/huggingface/datasets/pull/3110 returns no examples: ```python DatasetDict({ train: Dataset({ features: ['id', 'title', 'abstract', 'full_text', 'qas'], num_rows: 0 }) validation: Dataset({ features: ['id',...
113
Loading of datasets changed in #3110 returns no examples ## Describe the bug Loading of datasets changed in https://github.com/huggingface/datasets/pull/3110 returns no examples: ```python DatasetDict({ train: Dataset({ features: ['id', 'title', 'abstract', 'full_text', 'qas'], num_rows: 0 ...
https://github.com/huggingface/datasets/issues/6422
Allow to choose the `writer_batch_size` when using `save_to_disk`
We have a config variable that controls the batch size in `save_to_disk`: ```python import datasets datasets.config.DEFAULT_MAX_BATCH_SIZE = <smaller_batch_size> ... ds.save_to_disk(...) ```
### Feature request Add an argument in `save_to_disk` regarding batch size, which would be passed to `shard` and other methods. ### Motivation The `Dataset.save_to_disk` method currently calls `shard` without passing a `writer_batch_size` argument, thus implicitly using the default value (1000). This can result in R...
21
Allow to choose the `writer_batch_size` when using `save_to_disk` ### Feature request Add an argument in `save_to_disk` regarding batch size, which would be passed to `shard` and other methods. ### Motivation The `Dataset.save_to_disk` method currently calls `shard` without passing a `writer_batch_size` argument, th...
https://github.com/huggingface/datasets/issues/6422
Allow to choose the `writer_batch_size` when using `save_to_disk`
Thank you for your answer! From what I am reading in `https://github.com/huggingface/datasets/blob/2.14.5/src/datasets/arrow_dataset.py`, every function involved (`select`, `shard`, ...) has a default hardcoded batch size of 1000, as such: ```python def select( self, indices: Iterable, k...
### Feature request Add an argument in `save_to_disk` regarding batch size, which would be passed to `shard` and other methods. ### Motivation The `Dataset.save_to_disk` method currently calls `shard` without passing a `writer_batch_size` argument, thus implicitly using the default value (1000). This can result in R...
134
Allow to choose the `writer_batch_size` when using `save_to_disk` ### Feature request Add an argument in `save_to_disk` regarding batch size, which would be passed to `shard` and other methods. ### Motivation The `Dataset.save_to_disk` method currently calls `shard` without passing a `writer_batch_size` argument, th...
https://github.com/huggingface/datasets/issues/6770
[Bug Report] `datasets==2.18.0` is not compatible with `fsspec==2023.12.2`
You should be able to fix this by updating `huggingface_hub` with `pip install -U huggingface_hub`. We use this package under the hood to resolve the Hub's files.
### Describe the bug `Datasets==2.18.0` is not compatible with `fsspec==2023.12.2`. I have to downgrade fsspec to `fsspec==2023.10.0` to make `Datasets==2.18.0` work properly. ### Steps to reproduce the bug To reproduce the bug: 1. Make sure that `Datasets==2.18.0` and `fsspec==2023.12.2`. 2. Run the following ...
27
[Bug Report] `datasets==2.18.0` is not compatible with `fsspec==2023.12.2` ### Describe the bug `Datasets==2.18.0` is not compatible with `fsspec==2023.12.2`. I have to downgrade fsspec to `fsspec==2023.10.0` to make `Datasets==2.18.0` work properly. ### Steps to reproduce the bug To reproduce the bug: 1. Make s...
https://github.com/huggingface/datasets/issues/5284
Features of IterableDataset set to None by remove column
Thanks @lhoestq and @alvarobartt! This would be extremely helpful to have working for the Whisper fine-tuning event - we're **only** training using streaming mode, so it'll be quite important to have this feature working to make training as easy as possible! _c.f._ https://twitter.com/sanchitgandhi99/status/15921...
### Describe the bug The `remove_column` method of the IterableDataset sets the dataset features to None. ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset # load LS in streaming mode dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True) ...
43
Features of IterableDataset set to None by remove column ### Describe the bug The `remove_column` method of the IterableDataset sets the dataset features to None. ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset # load LS in streaming mode dataset = load_dataset("librispee...
https://github.com/huggingface/datasets/issues/5284
Features of IterableDataset set to None by remove column
> Thanks @lhoestq and @alvarobartt! > > > > This would be extremely helpful to have working for the Whisper fine-tuning event - we're **only** training using streaming mode, so it'll be quite important to have this feature working to make training as easy as possible! > > > > _c.f._ https://twitter.com/sanchitgan...
### Describe the bug The `remove_column` method of the IterableDataset sets the dataset features to None. ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset # load LS in streaming mode dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True) ...
100
Features of IterableDataset set to None by remove column ### Describe the bug The `remove_column` method of the IterableDataset sets the dataset features to None. ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset # load LS in streaming mode dataset = load_dataset("librispee...
https://github.com/huggingface/datasets/issues/5284
Features of IterableDataset set to None by remove column
@sanchit-gandhi PR is ready and open for review at #5287, but there's still one issue I may need @lhoestq's input :hugs:
### Describe the bug The `remove_column` method of the IterableDataset sets the dataset features to None. ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset # load LS in streaming mode dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True) ...
21
Features of IterableDataset set to None by remove column ### Describe the bug The `remove_column` method of the IterableDataset sets the dataset features to None. ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset # load LS in streaming mode dataset = load_dataset("librispee...
https://github.com/huggingface/datasets/issues/5284
Features of IterableDataset set to None by remove column
Let us know @sanchit-gandhi if you need a new release of `datasets` soon with this fix included :)
### Describe the bug The `remove_column` method of the IterableDataset sets the dataset features to None. ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset # load LS in streaming mode dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True) ...
18
Features of IterableDataset set to None by remove column ### Describe the bug The `remove_column` method of the IterableDataset sets the dataset features to None. ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset # load LS in streaming mode dataset = load_dataset("librispee...
https://github.com/huggingface/datasets/issues/5284
Features of IterableDataset set to None by remove column
Thanks for the fix guys! We can direct people to install `datasets` from main if that's easier!
### Describe the bug The `remove_column` method of the IterableDataset sets the dataset features to None. ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset # load LS in streaming mode dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True) ...
17
Features of IterableDataset set to None by remove column ### Describe the bug The `remove_column` method of the IterableDataset sets the dataset features to None. ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset # load LS in streaming mode dataset = load_dataset("librispee...
https://github.com/huggingface/datasets/issues/5284
Features of IterableDataset set to None by remove column
Hi @asennoussi so this was already fixed and released as part of https://github.com/huggingface/datasets/releases/tag/2.8.0, so you should be able to install it as `pip install datasets==2.8.0` or just to use `pip install datasets --upgrade` to get the latest version, as of now, the https://github.com/huggingface/datas...
### Describe the bug The `remove_column` method of the IterableDataset sets the dataset features to None. ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset # load LS in streaming mode dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True) ...
47
Features of IterableDataset set to None by remove column ### Describe the bug The `remove_column` method of the IterableDataset sets the dataset features to None. ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset # load LS in streaming mode dataset = load_dataset("librispee...
https://github.com/huggingface/datasets/issues/5284
Features of IterableDataset set to None by remove column
Still facing the same issue though: ``` from datasets import IterableDatasetDict, load_dataset raw_datasets = vectorized_datasets = IterableDatasetDict() raw_datasets["train"] = load_dataset("asennoussi/private", split="train", use_auth_token=True, streaming=True) raw_datasets["test"] = load_dataset("asenno...
### Describe the bug The `remove_column` method of the IterableDataset sets the dataset features to None. ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset # load LS in streaming mode dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True) ...
120
Features of IterableDataset set to None by remove column ### Describe the bug The `remove_column` method of the IterableDataset sets the dataset features to None. ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset # load LS in streaming mode dataset = load_dataset("librispee...
https://github.com/huggingface/datasets/issues/5284
Features of IterableDataset set to None by remove column
Hmm weird, could you try to print ```python print("Processed features: ", vectorized_datasets['train'].features) ``` again after iterating over the `vectorized_datasets`? In the code above, should be last line :)
### Describe the bug The `remove_column` method of the IterableDataset sets the dataset features to None. ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset # load LS in streaming mode dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True) ...
28
Features of IterableDataset set to None by remove column ### Describe the bug The `remove_column` method of the IterableDataset sets the dataset features to None. ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset # load LS in streaming mode dataset = load_dataset("librispee...
https://github.com/huggingface/datasets/issues/5284
Features of IterableDataset set to None by remove column
Didn't seem to fix it: ``` Original features: dict_keys(['path', 'audio', 'sentence']) Processed features: None Processed features: None ```
### Describe the bug The `remove_column` method of the IterableDataset sets the dataset features to None. ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset # load LS in streaming mode dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True) ...
18
Features of IterableDataset set to None by remove column ### Describe the bug The `remove_column` method of the IterableDataset sets the dataset features to None. ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset # load LS in streaming mode dataset = load_dataset("librispee...
https://github.com/huggingface/datasets/issues/5284
Features of IterableDataset set to None by remove column
Actually the culprit looks to be this one: `vectorized_datasets = raw_datasets.map(prepare_dataset).with_format("torch")` When I remove this line: `vectorized_datasets = vectorized_datasets.remove_columns(['input_length', 'labels_length']+list(next(iter(raw_datasets.values())).features))` I still get ``` Proce...
### Describe the bug The `remove_column` method of the IterableDataset sets the dataset features to None. ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset # load LS in streaming mode dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True) ...
28
Features of IterableDataset set to None by remove column ### Describe the bug The `remove_column` method of the IterableDataset sets the dataset features to None. ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset # load LS in streaming mode dataset = load_dataset("librispee...
https://github.com/huggingface/datasets/issues/5284
Features of IterableDataset set to None by remove column
> The culprit is definitely `.map` Just validated it. Any idea please? Yes, indeed `.map` losses the features, because AFAIK pre-fetching the data to infer the features is expensive and not ideal, that's part of this issue https://github.com/huggingface/datasets/issues/3888 Anyway, now you can pass the `features`...
### Describe the bug The `remove_column` method of the IterableDataset sets the dataset features to None. ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset # load LS in streaming mode dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True) ...
101
Features of IterableDataset set to None by remove column ### Describe the bug The `remove_column` method of the IterableDataset sets the dataset features to None. ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset # load LS in streaming mode dataset = load_dataset("librispee...
https://github.com/huggingface/datasets/issues/5284
Features of IterableDataset set to None by remove column
@asennoussi alternatively you can just call `._resolve_features()` from your `IterableDataset` and it will pre-fetch the data to resolve the features, but note that feature-inference is not as accurate as if you manually specify which features and feature-types the `IterableDataset` has, as mentioned in the comment abo...
### Describe the bug The `remove_column` method of the IterableDataset sets the dataset features to None. ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset # load LS in streaming mode dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True) ...
56
Features of IterableDataset set to None by remove column ### Describe the bug The `remove_column` method of the IterableDataset sets the dataset features to None. ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset # load LS in streaming mode dataset = load_dataset("librispee...
https://github.com/huggingface/datasets/issues/5284
Features of IterableDataset set to None by remove column
> > The culprit is definitely `.map` Just validated it. Any idea please? > > Yes, indeed `.map` losses the features, because AFAIK pre-fetching the data to infer the features is expensive and not ideal, that's part of this issue [#3888](https://github.com/huggingface/datasets/issues/3888) > > Anyway, now you can pass...
### Describe the bug The `remove_column` method of the IterableDataset sets the dataset features to None. ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset # load LS in streaming mode dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True) ...
279
Features of IterableDataset set to None by remove column ### Describe the bug The `remove_column` method of the IterableDataset sets the dataset features to None. ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset # load LS in streaming mode dataset = load_dataset("librispee...
https://github.com/huggingface/datasets/issues/5870
Behaviour difference between datasets.map and IterableDatasets.map
PS - some work is definitely needed for 'special cases' docs, not explanations, just usages of 'functions' under mixture of special cases, like a combination of custom databuilder + iterable dataset for large size + dynamic .map() application.
### Describe the bug All the examples in all the docs mentioned throughout huggingface datasets correspond to datasets object, and not IterableDatasets object. At one point of time, they might have been in sync, but the code for datasets version >=2.9.0 is very different as compared to the docs. I basically need to ...
38
Behaviour difference between datasets.map and IterableDatasets.map ### Describe the bug All the examples in all the docs mentioned throughout huggingface datasets correspond to datasets object, and not IterableDatasets object. At one point of time, they might have been in sync, but the code for datasets version >=2.9....
https://github.com/huggingface/datasets/issues/3758
head_qa file missing
We usually find issues with files hosted at Google Drive... In this case we download the Google Drive Virus scan warning instead of the data file.
## Describe the bug A file for the `head_qa` dataset is missing (https://drive.google.com/u/0/uc?export=download&id=1a_95N5zQQoUCq8IBNVZgziHbeM-QxG2t/HEAD_EN/train_HEAD_EN.json) ## Steps to reproduce the bug ```python >>> from datasets import load_dataset >>> load_dataset("head_qa", name="en") ``` ## Expec...
26
head_qa file missing ## Describe the bug A file for the `head_qa` dataset is missing (https://drive.google.com/u/0/uc?export=download&id=1a_95N5zQQoUCq8IBNVZgziHbeM-QxG2t/HEAD_EN/train_HEAD_EN.json) ## Steps to reproduce the bug ```python >>> from datasets import load_dataset >>> load_dataset("head_qa", name="...
https://github.com/huggingface/datasets/issues/4491
Dataset Viewer issue for Pavithree/test
This issue can be resolved according to this post https://stackoverflow.com/questions/70566660/parquet-with-null-columns-on-pyarrow. It looks like first data entry in the json file must not have any null values as pyarrow uses this first file to infer schema for entire dataset.
### Link https://huggingface.co/datasets/Pavithree/test ### Description I have extracted the subset of original eli5 dataset found at hugging face. However, while loading the dataset It throws ArrowNotImplementedError: Unsupported cast from string to null using function cast_null error. Is there anything missi...
38
Dataset Viewer issue for Pavithree/test ### Link https://huggingface.co/datasets/Pavithree/test ### Description I have extracted the subset of original eli5 dataset found at hugging face. However, while loading the dataset It throws ArrowNotImplementedError: Unsupported cast from string to null using function ...
https://github.com/huggingface/datasets/issues/3337
Typing of Dataset.__getitem__ could be improved.
Hi ! Thanks for the suggestion, I didn't know about this decorator. If you are interesting in contributing, feel free to open a pull request to add the overload methods for each typing combination :) To assign you to this issue, you can comment `#self-assign` in this thread. `Dataset.__getitem__` is defined right...
## Describe the bug The newly added typing for Dataset.__getitem__ is Union[Dict, List]. This makes tools like mypy a bit awkward to use as we need to check the type manually. We could use type overloading to make this easier. [Documentation](https://docs.python.org/3/library/typing.html#typing.overload) ## Steps...
54
Typing of Dataset.__getitem__ could be improved. ## Describe the bug The newly added typing for Dataset.__getitem__ is Union[Dict, List]. This makes tools like mypy a bit awkward to use as we need to check the type manually. We could use type overloading to make this easier. [Documentation](https://docs.python.org/3...
https://github.com/huggingface/datasets/issues/8110
`set_format` resets features
couldn't replicate with: ``` bash Platform: macos python: 3.10.9 datasets: 4.8.4 huggingface_hub: 0.36.2 pyarrow: 23.0.1 pandas: 2.3.3 fsspec: 2026.2.0 ``` ``` python import datasets from datasets import Array2D, Dataset import numpy as np # Create a dataset with Array2D feature data = {"lld": [np.zeros((5, 26), ...
### Describe the bug Calling `dataset.set_format('...')` resets the informative features such as `Array2D` etc. back into `List(List(Value))` and so on. ### Steps to reproduce the bug ```py >>> dataset.features {'lld': Array2D(shape=(None, 26), dtype='float32')} >>> dataset.set_format('torch') >>> dataset.features ...
68
`set_format` resets features ### Describe the bug Calling `dataset.set_format('...')` resets the informative features such as `Array2D` etc. back into `List(List(Value))` and so on. ### Steps to reproduce the bug ```py >>> dataset.features {'lld': Array2D(shape=(None, 26), dtype='float32')} >>> dataset.set_format('...
https://github.com/huggingface/datasets/issues/8110
`set_format` resets features
Hi! Triaging older issues — I couldn't reproduce this on current `main`. ```python >>> from datasets import Dataset, Features, Array2D >>> import numpy as np >>> features = Features({"lld": Array2D(shape=(5, 26), dtype="float32")}) >>> ds = Dataset.from_dict( ... {"lld": [np.zeros((5, 26), dtype=np.float32).tolist...
### Describe the bug Calling `dataset.set_format('...')` resets the informative features such as `Array2D` etc. back into `List(List(Value))` and so on. ### Steps to reproduce the bug ```py >>> dataset.features {'lld': Array2D(shape=(None, 26), dtype='float32')} >>> dataset.set_format('torch') >>> dataset.features ...
170
`set_format` resets features ### Describe the bug Calling `dataset.set_format('...')` resets the informative features such as `Array2D` etc. back into `List(List(Value))` and so on. ### Steps to reproduce the bug ```py >>> dataset.features {'lld': Array2D(shape=(None, 26), dtype='float32')} >>> dataset.set_format('...
https://github.com/huggingface/datasets/issues/8110
`set_format` resets features
If two people couldn't reproduce with `4.8.4` and `4.8.6` then I guess it doesn't exist anymore, closing
### Describe the bug Calling `dataset.set_format('...')` resets the informative features such as `Array2D` etc. back into `List(List(Value))` and so on. ### Steps to reproduce the bug ```py >>> dataset.features {'lld': Array2D(shape=(None, 26), dtype='float32')} >>> dataset.set_format('torch') >>> dataset.features ...
17
`set_format` resets features ### Describe the bug Calling `dataset.set_format('...')` resets the informative features such as `Array2D` etc. back into `List(List(Value))` and so on. ### Steps to reproduce the bug ```py >>> dataset.features {'lld': Array2D(shape=(None, 26), dtype='float32')} >>> dataset.set_format('...
https://github.com/huggingface/datasets/issues/3553
set_format("np") no longer works for Image data
This error also propagates to jax and is even trickier to fix, since `.with_format(type='jax')` will use numpy conversion internally (and fail). For a three line failure: ```python dataset = datasets.load_dataset("mnist") dataset.set_format("jax") X_train = dataset["train"]["image"] ```
## Describe the bug `dataset.set_format("np")` no longer works for image data, previously you could load the MNIST like this: ```python dataset = load_dataset("mnist") dataset.set_format("np") X_train = dataset["train"]["image"][..., None] # <== No longer a numpy array ``` but now it doesn't work, `set_format(...
35
set_format("np") no longer works for Image data ## Describe the bug `dataset.set_format("np")` no longer works for image data, previously you could load the MNIST like this: ```python dataset = load_dataset("mnist") dataset.set_format("np") X_train = dataset["train"]["image"][..., None] # <== No longer a numpy a...
https://github.com/huggingface/datasets/issues/3553
set_format("np") no longer works for Image data
Hi! We've recently introduced a new Image feature that yields PIL Images (and caches transforms on them) instead of arrays. However, this feature requires a custom transform to yield np arrays directly: ```python ddict = datasets.load_dataset("mnist") def pil_image_to_array(batch): return {"image": [np.ar...
## Describe the bug `dataset.set_format("np")` no longer works for image data, previously you could load the MNIST like this: ```python dataset = load_dataset("mnist") dataset.set_format("np") X_train = dataset["train"]["image"][..., None] # <== No longer a numpy array ``` but now it doesn't work, `set_format(...
127
set_format("np") no longer works for Image data ## Describe the bug `dataset.set_format("np")` no longer works for image data, previously you could load the MNIST like this: ```python dataset = load_dataset("mnist") dataset.set_format("np") X_train = dataset["train"]["image"][..., None] # <== No longer a numpy a...
https://github.com/huggingface/datasets/issues/3553
set_format("np") no longer works for Image data
Yes I agree it should return arrays and not a PIL image (and possible an array instead of a dict for audio data). I'm currently finishing some code refactoring of the image and audio and opening a PR today. Maybe we can look into that after the refactoring
## Describe the bug `dataset.set_format("np")` no longer works for image data, previously you could load the MNIST like this: ```python dataset = load_dataset("mnist") dataset.set_format("np") X_train = dataset["train"]["image"][..., None] # <== No longer a numpy array ``` but now it doesn't work, `set_format(...
48
set_format("np") no longer works for Image data ## Describe the bug `dataset.set_format("np")` no longer works for image data, previously you could load the MNIST like this: ```python dataset = load_dataset("mnist") dataset.set_format("np") X_train = dataset["train"]["image"][..., None] # <== No longer a numpy a...
https://github.com/huggingface/datasets/issues/6542
Datasets : wikipedia 20220301.en error
Hi ! We now recommend using the `wikimedia/wikipedia` dataset, can you try loading this one instead ? ```python wiki_dataset = load_dataset("wikimedia/wikipedia", "20231101.en") ```
### Describe the bug When I used load_dataset to download this data set, the following error occurred. The main problem was that the target data did not exist. ### Steps to reproduce the bug 1.I tried downloading directly. ```python wiki_dataset = load_dataset("wikipedia", "20220301.en") ``` An exception occurre...
23
Datasets : wikipedia 20220301.en error ### Describe the bug When I used load_dataset to download this data set, the following error occurred. The main problem was that the target data did not exist. ### Steps to reproduce the bug 1.I tried downloading directly. ```python wiki_dataset = load_dataset("wikipedia", "...
https://github.com/huggingface/datasets/issues/6542
Datasets : wikipedia 20220301.en error
This bug has been fixed in `2.16.1` thanks to https://github.com/huggingface/datasets/pull/6544, feel free to update `datasets` and re-run your code :) ``` pip install -U datasets ```
### Describe the bug When I used load_dataset to download this data set, the following error occurred. The main problem was that the target data did not exist. ### Steps to reproduce the bug 1.I tried downloading directly. ```python wiki_dataset = load_dataset("wikipedia", "20220301.en") ``` An exception occurre...
26
Datasets : wikipedia 20220301.en error ### Describe the bug When I used load_dataset to download this data set, the following error occurred. The main problem was that the target data did not exist. ### Steps to reproduce the bug 1.I tried downloading directly. ```python wiki_dataset = load_dataset("wikipedia", "...
https://github.com/huggingface/datasets/issues/5827
load json dataset interrupt when dtype cast problem occured
Indeed the JSON dataset builder raises an error when it encounters an unexpected type. There's an old PR open to add away to ignore such elements though, if it can help: https://github.com/huggingface/datasets/pull/2838
### Describe the bug i have a json like this: [ {"id": 1, "name": 1}, {"id": 2, "name": "Nan"}, {"id": 3, "name": 3}, .... ] ,which have several problematic rows data like row 2, then i load it with datasets.load_dataset('json', data_files=['xx.json'], split='train'), it will report like this: ...
32
load json dataset interrupt when dtype cast problem occured ### Describe the bug i have a json like this: [ {"id": 1, "name": 1}, {"id": 2, "name": "Nan"}, {"id": 3, "name": 3}, .... ] ,which have several problematic rows data like row 2, then i load it with datasets.load_dataset('json', data_f...
https://github.com/huggingface/datasets/issues/5827
load json dataset interrupt when dtype cast problem occured
Hi ! with #8027 you will be able to do ```python from datasets import load_dataset ds = load_dataset("json", data_files="xxx.json", split="train") print(ds.features) # {'id': Value('string'), 'name': Json()} print(list(ds["name"])) # [1, 'Nan', 3] ```
### Describe the bug i have a json like this: [ {"id": 1, "name": 1}, {"id": 2, "name": "Nan"}, {"id": 3, "name": 3}, .... ] ,which have several problematic rows data like row 2, then i load it with datasets.load_dataset('json', data_files=['xx.json'], split='train'), it will report like this: ...
32
load json dataset interrupt when dtype cast problem occured ### Describe the bug i have a json like this: [ {"id": 1, "name": 1}, {"id": 2, "name": "Nan"}, {"id": 3, "name": 3}, .... ] ,which have several problematic rows data like row 2, then i load it with datasets.load_dataset('json', data_f...
https://github.com/huggingface/datasets/issues/4298
Normalise license names
we'll add the same server-side metadata validation system as for hf.co/models soon-ish (you can check on hf.co/models that licenses are "clean")
**Is your feature request related to a problem? Please describe.** When browsing datasets, the Licenses tag cloud (bottom left of e.g. https://huggingface.co/datasets) has multiple variants of the same license. This means the options exclude datasets arbitrarily, giving users artificially low recall. The cause of the ...
21
Normalise license names **Is your feature request related to a problem? Please describe.** When browsing datasets, the Licenses tag cloud (bottom left of e.g. https://huggingface.co/datasets) has multiple variants of the same license. This means the options exclude datasets arbitrarily, giving users artificially low r...
https://github.com/huggingface/datasets/issues/7364
API endpoints for gated dataset access requests
Looks like a [similar feature request](https://github.com/huggingface/huggingface_hub/issues/1198) was made to the HF Hub team. Is handling this at the Hub level more appropriate? (As an aside, I've gotten the [HTTP-based solution](https://github.com/huggingface/huggingface_hub/issues/1198#issuecomment-1905774983) p...
### Feature request I would like a programatic way of requesting access to gated datasets. The current solution to gain access forces me to visit a website and physically click an "agreement" button (as per the [documentation](https://huggingface.co/docs/hub/en/datasets-gated#access-gated-datasets-as-a-user)). An i...
39
API endpoints for gated dataset access requests ### Feature request I would like a programatic way of requesting access to gated datasets. The current solution to gain access forces me to visit a website and physically click an "agreement" button (as per the [documentation](https://huggingface.co/docs/hub/en/datasets-...
https://github.com/huggingface/datasets/issues/8253
Feature request: Add a streaming_shard operator for early sample-level sharding when file-level sharding is insufficient
I feel like IterableDatasetShard is not well suited for this and shouldn't be used / should be improved. Instead there is `ds.shard()` or even `split_dataset_by_node()` which works when `num_physical_files < global_world_size`. WDYT ?
## Feature request: Add a streaming_shard operator for early sample-level sharding when file-level sharding is insufficient ### Proposed API It would be useful to provide a first-class streaming sharding operator in `datasets`, for example: ```python dataset = datasets.load_dataset(..., streaming=True, split="train"...
33
Feature request: Add a streaming_shard operator for early sample-level sharding when file-level sharding is insufficient ## Feature request: Add a streaming_shard operator for early sample-level sharding when file-level sharding is insufficient ### Proposed API It would be useful to provide a first-class streaming sh...
https://github.com/huggingface/datasets/issues/8253
Feature request: Add a streaming_shard operator for early sample-level sharding when file-level sharding is insufficient
I checked current `main`, and the requested behavior seems to sit between the two existing streaming split mechanisms: - `src/datasets/iterable_dataset.py:3928-3973` implements `IterableDataset.shard(...)` by calling `self._ex_iterable.shard_data_sources(...)`, so it primarily operates at the data-source/shard level. ...
## Feature request: Add a streaming_shard operator for early sample-level sharding when file-level sharding is insufficient ### Proposed API It would be useful to provide a first-class streaming sharding operator in `datasets`, for example: ```python dataset = datasets.load_dataset(..., streaming=True, split="train"...
122
Feature request: Add a streaming_shard operator for early sample-level sharding when file-level sharding is insufficient ## Feature request: Add a streaming_shard operator for early sample-level sharding when file-level sharding is insufficient ### Proposed API It would be useful to provide a first-class streaming sh...
https://github.com/huggingface/datasets/issues/8253
Feature request: Add a streaming_shard operator for early sample-level sharding when file-level sharding is insufficient
@lhoestq @beanscg Thanks for the response. I checked the implementation and found that `split_dataset_by_node()` already falls back to `StepExamplesIterable` when `num_shards` is not divisible by `world_size`. However, I think there are still two gaps for this use case: 1. The sample-level split is only used as a fal...
## Feature request: Add a streaming_shard operator for early sample-level sharding when file-level sharding is insufficient ### Proposed API It would be useful to provide a first-class streaming sharding operator in `datasets`, for example: ```python dataset = datasets.load_dataset(..., streaming=True, split="train"...
207
Feature request: Add a streaming_shard operator for early sample-level sharding when file-level sharding is insufficient ## Feature request: Add a streaming_shard operator for early sample-level sharding when file-level sharding is insufficient ### Proposed API It would be useful to provide a first-class streaming sh...
https://github.com/huggingface/datasets/issues/7745
Audio mono argument no longer supported, despite class documentation
I want to solve this problem can you please assign it to me and also can you please guide whether the mono parameter is required to be re-added or the documentation needs an update?
### Describe the bug Either update the documentation, or re-introduce the flag (and corresponding logic to convert the audio to mono) ### Steps to reproduce the bug Audio(sampling_rate=16000, mono=True) raises the error TypeError: Audio.__init__() got an unexpected keyword argument 'mono' However, in the class doc...
34
Audio mono argument no longer supported, despite class documentation ### Describe the bug Either update the documentation, or re-introduce the flag (and corresponding logic to convert the audio to mono) ### Steps to reproduce the bug Audio(sampling_rate=16000, mono=True) raises the error TypeError: Audio.__init__()...
https://github.com/huggingface/datasets/issues/7745
Audio mono argument no longer supported, despite class documentation
Hi! Triaging older issues — I think the docstring half of this is already resolved. On current `main` (`datasets==4.8.6.dev0`), the `Audio` feature's `__init__` accepts `sampling_rate`, `num_channels`, `decode`, `stream_index`, `id` — and the docstring documents `num_channels` (not `mono`) with the explanation that `1...
### Describe the bug Either update the documentation, or re-introduce the flag (and corresponding logic to convert the audio to mono) ### Steps to reproduce the bug Audio(sampling_rate=16000, mono=True) raises the error TypeError: Audio.__init__() got an unexpected keyword argument 'mono' However, in the class doc...
162
Audio mono argument no longer supported, despite class documentation ### Describe the bug Either update the documentation, or re-introduce the flag (and corresponding logic to convert the audio to mono) ### Steps to reproduce the bug Audio(sampling_rate=16000, mono=True) raises the error TypeError: Audio.__init__()...
https://github.com/huggingface/datasets/issues/7418
pyarrow.lib.arrowinvalid: cannot mix list and non-list, non-null values with map function
Can you try passing text: None for the image object ? Pyarrow expects all the objects to have the exact same type, in particular the dicttionaries in "content" should all have the keys "type" and "text"
### Describe the bug Encounter pyarrow.lib.arrowinvalid error with map function in some example when loading the dataset ### Steps to reproduce the bug ``` from datasets import load_dataset from PIL import Image, PngImagePlugin dataset = load_dataset("leonardPKU/GEOQA_R1V_Train_8K") system_prompt="You are a helpful...
36
pyarrow.lib.arrowinvalid: cannot mix list and non-list, non-null values with map function ### Describe the bug Encounter pyarrow.lib.arrowinvalid error with map function in some example when loading the dataset ### Steps to reproduce the bug ``` from datasets import load_dataset from PIL import Image, PngImagePlugin...
https://github.com/huggingface/datasets/issues/7418
pyarrow.lib.arrowinvalid: cannot mix list and non-list, non-null values with map function
The following modification on system prompt works, but it is different from the usual way to use it. ``` def make_conversation(example): prompt = [] prompt.append({"role": "system", "content": [{"type": "text", "text": system_prompt}]}) prompt.append( { "role": "user", ...
### Describe the bug Encounter pyarrow.lib.arrowinvalid error with map function in some example when loading the dataset ### Steps to reproduce the bug ``` from datasets import load_dataset from PIL import Image, PngImagePlugin dataset = load_dataset("leonardPKU/GEOQA_R1V_Train_8K") system_prompt="You are a helpful...
50
pyarrow.lib.arrowinvalid: cannot mix list and non-list, non-null values with map function ### Describe the bug Encounter pyarrow.lib.arrowinvalid error with map function in some example when loading the dataset ### Steps to reproduce the bug ``` from datasets import load_dataset from PIL import Image, PngImagePlugin...
https://github.com/huggingface/datasets/issues/7418
pyarrow.lib.arrowinvalid: cannot mix list and non-list, non-null values with map function
Good to know ! But yes Arrow / Parquet have this typing limitation (which is great to ensure data integrity, but constraining at the same time). It's is really blocking you, feel free to ping the arrow team / community if they plan to have a Union type or a JSON type
### Describe the bug Encounter pyarrow.lib.arrowinvalid error with map function in some example when loading the dataset ### Steps to reproduce the bug ``` from datasets import load_dataset from PIL import Image, PngImagePlugin dataset = load_dataset("leonardPKU/GEOQA_R1V_Train_8K") system_prompt="You are a helpful...
52
pyarrow.lib.arrowinvalid: cannot mix list and non-list, non-null values with map function ### Describe the bug Encounter pyarrow.lib.arrowinvalid error with map function in some example when loading the dataset ### Steps to reproduce the bug ``` from datasets import load_dataset from PIL import Image, PngImagePlugin...
https://github.com/huggingface/datasets/issues/7418
pyarrow.lib.arrowinvalid: cannot mix list and non-list, non-null values with map function
It would be very helpful if the error message could provide more context (such as the row index or the offending data) when this issue occurs. When loading large datasets, it's currently like finding a needle in a haystack because we don't know which specific entry caused the type mismatch.
### Describe the bug Encounter pyarrow.lib.arrowinvalid error with map function in some example when loading the dataset ### Steps to reproduce the bug ``` from datasets import load_dataset from PIL import Image, PngImagePlugin dataset = load_dataset("leonardPKU/GEOQA_R1V_Train_8K") system_prompt="You are a helpful...
50
pyarrow.lib.arrowinvalid: cannot mix list and non-list, non-null values with map function ### Describe the bug Encounter pyarrow.lib.arrowinvalid error with map function in some example when loading the dataset ### Steps to reproduce the bug ``` from datasets import load_dataset from PIL import Image, PngImagePlugin...
https://github.com/huggingface/datasets/issues/7418
pyarrow.lib.arrowinvalid: cannot mix list and non-list, non-null values with map function
Hi ! with #8027 you will be able to run your code, you'll simply need to pass `features=` with the new `Json()` type, or instead simply pass `on_mixed_types="use_json"`: ```diff - dataset = dataset.map(make_conversation) + dataset = dataset.map(make_conversation, on_mixed_types="use_json") ``` This will encode your f...
### Describe the bug Encounter pyarrow.lib.arrowinvalid error with map function in some example when loading the dataset ### Steps to reproduce the bug ``` from datasets import load_dataset from PIL import Image, PngImagePlugin dataset = load_dataset("leonardPKU/GEOQA_R1V_Train_8K") system_prompt="You are a helpful...
170
pyarrow.lib.arrowinvalid: cannot mix list and non-list, non-null values with map function ### Describe the bug Encounter pyarrow.lib.arrowinvalid error with map function in some example when loading the dataset ### Steps to reproduce the bug ``` from datasets import load_dataset from PIL import Image, PngImagePlugin...
https://github.com/huggingface/datasets/issues/4775
Streaming not supported in Theivaprakasham/wildreceipt
Thanks for reporting @NitishkKarra. The root source of the issue is that streaming mode is not supported out-of-the-box for that dataset, because it contains a TAR file. We have opened a discussion in the corresponding Hub dataset page, pointing out this issue: https://huggingface.co/datasets/Theivaprakasham/wild...
### Link _No response_ ### Description _No response_ ### Owner _No response_
55
Streaming not supported in Theivaprakasham/wildreceipt ### Link _No response_ ### Description _No response_ ### Owner _No response_ Thanks for reporting @NitishkKarra. The root source of the issue is that streaming mode is not supported out-of-the-box for that dataset, because it contains a TAR file. We have...
https://github.com/huggingface/datasets/issues/7431
Issues with large Datasets
This was the final error message that it was giving pyarrow.lib.ArrowInvalid: JSON parse error: Column() changed from object to string in row 0
### Describe the bug If the coco annotation file is too large the dataset will not be able to load it, not entirely sure were the issue is but I am guessing it is due to the code trying to load it all as one line into a dataframe. This was for object detections. My current work around is the following code but would ...
23
Issues with large Datasets ### Describe the bug If the coco annotation file is too large the dataset will not be able to load it, not entirely sure were the issue is but I am guessing it is due to the code trying to load it all as one line into a dataframe. This was for object detections. My current work around is th...
https://github.com/huggingface/datasets/issues/7431
Issues with large Datasets
Here is the list of errors: Traceback (most recent call last): File ".venv/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 160, in _generate_tables df = pandas_read_json(f) ^^^^^^^^^^^^^^^^^^^ File ".venv/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", ...
### Describe the bug If the coco annotation file is too large the dataset will not be able to load it, not entirely sure were the issue is but I am guessing it is due to the code trying to load it all as one line into a dataframe. This was for object detections. My current work around is the following code but would ...
306
Issues with large Datasets ### Describe the bug If the coco annotation file is too large the dataset will not be able to load it, not entirely sure were the issue is but I am guessing it is due to the code trying to load it all as one line into a dataframe. This was for object detections. My current work around is th...
https://github.com/huggingface/datasets/issues/7431
Issues with large Datasets
`datasets` is based on Arrow which expects all the lists inside the data to be of fixed type. Arrow can't load lists that contain a mix of integers and strings for example. In your case it looks like one of the lists contains numbers and JSON objects. I'd suggest you to reformat the data to end up with list of fixed t...
### Describe the bug If the coco annotation file is too large the dataset will not be able to load it, not entirely sure were the issue is but I am guessing it is due to the code trying to load it all as one line into a dataframe. This was for object detections. My current work around is the following code but would ...
73
Issues with large Datasets ### Describe the bug If the coco annotation file is too large the dataset will not be able to load it, not entirely sure were the issue is but I am guessing it is due to the code trying to load it all as one line into a dataframe. This was for object detections. My current work around is th...
https://github.com/huggingface/datasets/issues/4960
BioASQ AttributeError: 'BuilderConfig' object has no attribute 'schema'
Following worked: ``` data_dir = "/Users/dlituiev/repos/datasets/bioasq/" bioasq_task_b = load_dataset("aps/bioasq_task_b", data_dir=data_dir, name="bioasq_9b_source") ``` Would maintainers be open to one of the following: - automating this with a latest default config (e.g. `bioasq_9b_source`); how can this...
## Describe the bug I am trying to load a dataset from drive and running into an error. ## Steps to reproduce the bug ```python data_dir = "/Users/dlituiev/repos/datasets/bioasq/BioASQ-training9b" bioasq_task_b = load_dataset("aps/bioasq_task_b", data_dir=data_dir) ``` ## Actual results `AttributeError: ...
73
BioASQ AttributeError: 'BuilderConfig' object has no attribute 'schema' ## Describe the bug I am trying to load a dataset from drive and running into an error. ## Steps to reproduce the bug ```python data_dir = "/Users/dlituiev/repos/datasets/bioasq/BioASQ-training9b" bioasq_task_b = load_dataset("aps/bioasq_t...
https://github.com/huggingface/datasets/issues/4960
BioASQ AttributeError: 'BuilderConfig' object has no attribute 'schema'
Hi ! In general the list of available configurations is prompted. I think this is an issue with this specific dataset. Feel free to open a new discussions at https://huggingface.co/datasets/aps/bioasq_task_b/discussions cc @apsdehal In particular it sounds like the `BUILDER_CONFIG_CLASS= BigBioConfig ` class a...
## Describe the bug I am trying to load a dataset from drive and running into an error. ## Steps to reproduce the bug ```python data_dir = "/Users/dlituiev/repos/datasets/bioasq/BioASQ-training9b" bioasq_task_b = load_dataset("aps/bioasq_task_b", data_dir=data_dir) ``` ## Actual results `AttributeError: ...
58
BioASQ AttributeError: 'BuilderConfig' object has no attribute 'schema' ## Describe the bug I am trying to load a dataset from drive and running into an error. ## Steps to reproduce the bug ```python data_dir = "/Users/dlituiev/repos/datasets/bioasq/BioASQ-training9b" bioasq_task_b = load_dataset("aps/bioasq_t...
https://github.com/huggingface/datasets/issues/5732
Enwik8 should support the standard split
The Enwik8 pipeline is not present in this codebase, and is hosted elsewhere. I have opened a PR [there](https://huggingface.co/datasets/enwik8/discussions/4) instead.
### Feature request The HuggingFace Datasets library currently supports two BuilderConfigs for Enwik8. One config yields individual lines as examples, while the other config yields the entire dataset as a single example. Both support only a monolithic split: it is all grouped as "train". The HuggingFace Datasets l...
20
Enwik8 should support the standard split ### Feature request The HuggingFace Datasets library currently supports two BuilderConfigs for Enwik8. One config yields individual lines as examples, while the other config yields the entire dataset as a single example. Both support only a monolithic split: it is all grouped a...
https://github.com/huggingface/datasets/issues/3937
Missing languages in lvwerra/github-code dataset
That seems to be an oversight - I originally planned to include them in the dataset and for some reason they were in the list of languages but not in the query. Since there is an issue with the deduplication step I'll rerun the pipeline anyway and will double check the query. Thanks for reporting this @Eytan-S!
Hi, I'm working with the github-code dataset. First of all, thank you for creating this amazing dataset! I've noticed that two languages are missing from the dataset: TypeScript and Scala. Looks like they're also omitted from the query you used to get the original code. Are there any plans to add them in the fut...
57
Missing languages in lvwerra/github-code dataset Hi, I'm working with the github-code dataset. First of all, thank you for creating this amazing dataset! I've noticed that two languages are missing from the dataset: TypeScript and Scala. Looks like they're also omitted from the query you used to get the original ...
https://github.com/huggingface/datasets/issues/3937
Missing languages in lvwerra/github-code dataset
Can confirm that the two languages are indeed missing from the dataset. Here are the file counts per language: ```Python {'Assembly': 82847, 'Batchfile': 236755, 'C': 14127969, 'C#': 6793439, 'C++': 7368473, 'CMake': 175076, 'CSS': 1733625, 'Dockerfile': 331966, 'FORTRAN': 141963, 'GO': 2259363, '...
Hi, I'm working with the github-code dataset. First of all, thank you for creating this amazing dataset! I've noticed that two languages are missing from the dataset: TypeScript and Scala. Looks like they're also omitted from the query you used to get the original code. Are there any plans to add them in the fut...
82
Missing languages in lvwerra/github-code dataset Hi, I'm working with the github-code dataset. First of all, thank you for creating this amazing dataset! I've noticed that two languages are missing from the dataset: TypeScript and Scala. Looks like they're also omitted from the query you used to get the original ...
https://github.com/huggingface/datasets/issues/3937
Missing languages in lvwerra/github-code dataset
@Eytan-S check out v1.1 of the `github-code` dataset where issue should be fixed: | | Language |File Count| Size (GB)| |---:|:-------------|---------:|-------:| | 0 | Java | 19548190 | 107.7 | | 1 | C | 14143113 | 183.83 | | 2 | JavaScript | 11839883 | 87.82 | | 3 | HTML ...
Hi, I'm working with the github-code dataset. First of all, thank you for creating this amazing dataset! I've noticed that two languages are missing from the dataset: TypeScript and Scala. Looks like they're also omitted from the query you used to get the original code. Are there any plans to add them in the fut...
292
Missing languages in lvwerra/github-code dataset Hi, I'm working with the github-code dataset. First of all, thank you for creating this amazing dataset! I've noticed that two languages are missing from the dataset: TypeScript and Scala. Looks like they're also omitted from the query you used to get the original ...
https://github.com/huggingface/datasets/issues/6259
Duplicated Rows When Loading Parquet Files from Root Directory with Subdirectories
Thanks for reporting this issue! We should be able to avoid this by making our `glob` patterns more precise. In the meantime, you can load the dataset by directly assigning splits to the data files: ```python from datasets import load_dataset ds = load_dataset("parquet", data_files={"train": "testing123/train/outpu...
### Describe the bug When parquet files are saved in "train" and "val" subdirectories under a root directory, and datasets are then loaded using `load_dataset("parquet", data_dir="root_directory")`, the resulting dataset has duplicated rows for both the training and validation sets. ### Steps to reproduce the bug...
48
Duplicated Rows When Loading Parquet Files from Root Directory with Subdirectories ### Describe the bug When parquet files are saved in "train" and "val" subdirectories under a root directory, and datasets are then loaded using `load_dataset("parquet", data_dir="root_directory")`, the resulting dataset has duplicate...
https://github.com/huggingface/datasets/issues/5231
Using `set_format(type='torch', columns=columns)` makes Array2D/3D columns stop formatting correctly
In case others find this, the problem was not with set_format, but my usages of `to_pandas()` and `from_pandas()` which I was using during dataset splitting; somewhere in the chain of converting to and from pandas the `Array2D/Array3D` types get converted to series of `Sequence()` types
I have a Dataset with two Features defined as follows: ``` 'image': Array3D(dtype="int64", shape=(3, 224, 224)), 'bbox': Array2D(dtype="int64", shape=(512, 4)), ``` On said dataset, if I `dataset.set_format(type='torch')` and then use the dataset in a dataloader, these columns are correctly cast to Tensors of ...
45
Using `set_format(type='torch', columns=columns)` makes Array2D/3D columns stop formatting correctly I have a Dataset with two Features defined as follows: ``` 'image': Array3D(dtype="int64", shape=(3, 224, 224)), 'bbox': Array2D(dtype="int64", shape=(512, 4)), ``` On said dataset, if I `dataset.set_format(typ...
https://github.com/huggingface/datasets/issues/3465
Unable to load 'cnn_dailymail' dataset
Hi @talha1503, thanks for reporting. It seems there is an issue with one of the data files hosted at Google Drive: ``` Google Drive - Quota exceeded Sorry, you can't view or download this file at this time. Too many users have viewed or downloaded this file recently. Please try accessing the file again later...
## Describe the bug I wanted to load cnn_dailymail dataset from huggingface datasets on Google Colab, but I am getting an error while loading it. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('cnn_dailymail', '3.0.0', ignore_verifications = True) ``` ## Expe...
141
Unable to load 'cnn_dailymail' dataset ## Describe the bug I wanted to load cnn_dailymail dataset from huggingface datasets on Google Colab, but I am getting an error while loading it. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('cnn_dailymail', '3.0.0', ignor...
https://github.com/huggingface/datasets/issues/7512
.map() fails if function uses pyvista
I found a similar (?) issue in https://github.com/huggingface/datasets/issues/6435, where someone had issues with forks and CUDA. According to https://huggingface.co/docs/datasets/main/en/process#multiprocessing we should do ``` from multiprocess import set_start_method set_start_method("spawn") ``` to avoid the for...
### Describe the bug Using PyVista inside a .map() produces a crash with `objc[78796]: +[NSResponder initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to ...
102
.map() fails if function uses pyvista ### Describe the bug Using PyVista inside a .map() produces a crash with `objc[78796]: +[NSResponder initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoin...
https://github.com/huggingface/datasets/issues/5221
Cannot push
Did you run `huggingface-cli lfs-enable-largefiles` before committing or before adding ? Maybe you can try before adding Anyway I'd encourage you to split your data into several TAR archives if possible, this way the dataset can loaded faster using multiprocessing (by giving each process a subset of shards to proces...
### Describe the bug I am facing the issue when I try to push the tar.gz file around 11G to HUB. ``` (venv) ╭─laptop@laptop ~/PersonalProjects/data/ulaanbal_v0 ‹main●› ╰─$ du -sh * 4.0K README.md 13G data 516K test.jsonl 18M train.jsonl 4.0K ulaanbal_v0.py 11G ulaanbal_v0.tar.gz 452K validation.jsonl...
50
Cannot push ### Describe the bug I am facing the issue when I try to push the tar.gz file around 11G to HUB. ``` (venv) ╭─laptop@laptop ~/PersonalProjects/data/ulaanbal_v0 ‹main●› ╰─$ du -sh * 4.0K README.md 13G data 516K test.jsonl 18M train.jsonl 4.0K ulaanbal_v0.py 11G ulaanbal_v0.tar.gz 452K val...
https://github.com/huggingface/datasets/issues/5221
Cannot push
@lhoestq Thanks for the help! > Maybe you can try before adding It did not help But I totally got your point about split into multiple TAR archives. It really helped!
### Describe the bug I am facing the issue when I try to push the tar.gz file around 11G to HUB. ``` (venv) ╭─laptop@laptop ~/PersonalProjects/data/ulaanbal_v0 ‹main●› ╰─$ du -sh * 4.0K README.md 13G data 516K test.jsonl 18M train.jsonl 4.0K ulaanbal_v0.py 11G ulaanbal_v0.tar.gz 452K validation.jsonl...
31
Cannot push ### Describe the bug I am facing the issue when I try to push the tar.gz file around 11G to HUB. ``` (venv) ╭─laptop@laptop ~/PersonalProjects/data/ulaanbal_v0 ‹main●› ╰─$ du -sh * 4.0K README.md 13G data 516K test.jsonl 18M train.jsonl 4.0K ulaanbal_v0.py 11G ulaanbal_v0.tar.gz 452K val...
https://github.com/huggingface/datasets/issues/6750
`load_dataset` requires a network connection for local download?
> Are you using `HF_DATASETS_OFFLINE=1` ? This doesn't work for me. `datasets=2.18.0` `test.py`: ``` import datasets datasets.utils.logging.set_verbosity_info() ds = datasets.load_dataset('C-MTEB/AFQMC', revision='b44c3b011063adb25877c13823db83bb193913c4') print(ds) ``` run `python test.py` ``` G...
### Describe the bug Hi all - I see that in the past a network dependency has been mistakenly introduced into `load_dataset` even for local loads. Is it possible this has happened again? ### Steps to reproduce the bug ``` >>> import datasets >>> datasets.load_dataset("hh-rlhf") Repo card metadata block was not ...
246
`load_dataset` requires a network connection for local download? ### Describe the bug Hi all - I see that in the past a network dependency has been mistakenly introduced into `load_dataset` even for local loads. Is it possible this has happened again? ### Steps to reproduce the bug ``` >>> import datasets >>> da...
https://github.com/huggingface/datasets/issues/6750
`load_dataset` requires a network connection for local download?
I was having similar inexplicable issues. Doing this I *think* helped, but, `datasets` still *clearly* does not want to respect the cache: ```python pip install --upgrade datasets # now it is 2.18.0 HF_DATASETS_OFFLINE="1" python blah.py ``` Or similarly, I must spacify that env var to resuse the cache, IE...
### Describe the bug Hi all - I see that in the past a network dependency has been mistakenly introduced into `load_dataset` even for local loads. Is it possible this has happened again? ### Steps to reproduce the bug ``` >>> import datasets >>> datasets.load_dataset("hh-rlhf") Repo card metadata block was not ...
79
`load_dataset` requires a network connection for local download? ### Describe the bug Hi all - I see that in the past a network dependency has been mistakenly introduced into `load_dataset` even for local loads. Is it possible this has happened again? ### Steps to reproduce the bug ``` >>> import datasets >>> da...