id
int64
600M
4.6B
node_id
stringlengths
18
24
number
int64
2
8.24k
title
stringlengths
1
290
state
stringclasses
2 values
state_reason
stringclasses
5 values
created_at
timestamp[s]date
2020-04-14 18:18:51
2026-06-05 18:08:17
updated_at
timestamp[s]date
2020-04-29 09:23:05
2026-06-05 21:18:34
closed_at
stringlengths
0
20
html_url
stringlengths
48
51
user
stringlengths
3
26
labels
listlengths
0
4
assignees
listlengths
0
4
milestone
stringclasses
7 values
comments
listlengths
0
70
author_association
stringclasses
4 values
body
stringlengths
0
228k
1,707,551,511
I_kwDODunzps5lxysX
5,849
CSV datasets should only read the CSV data files in the repo
closed
completed
2023-05-12T12:29:53
2023-06-22T14:16:27
2023-06-22T14:16:27Z
https://github.com/huggingface/datasets/issues/5849
albertvillanova
[ "bug" ]
[ "albertvillanova" ]
[]
MEMBER
When a no-script dataset has many CSV files and a JPG file, the library infers to use the Csv builder, but tries to read as CSV all files in the repo, also the JPG file. I think the Csv builder should filter out non-CSV files when reading. An analogue solution should be implemented for other packaged builders. ...
1,706,616,634
I_kwDODunzps5luOc6
5,847
Streaming IterableDataset not working with translation pipeline
open
2023-05-11T21:52:38
2023-05-16T15:59:55
https://github.com/huggingface/datasets/issues/5847
jlquinn
[]
[]
[ "I wasn't sure to file this against transformers or datasets.", "[`KeyDataset`](https://github.com/huggingface/transformers/blob/7f8b909189547944617741d8d3c6c84504701693/src/transformers/pipelines/pt_utils.py#L296) doesn't support iterable datasets, so you either need to implement a version that does (and also in...
NONE
### Describe the bug I'm trying to use a streaming dataset for translation inference to avoid downloading the training data. I'm using a pipeline and a dataset, and following the guidance in the tutorial. Instead I get an exception that IterableDataset has no len(). ### Steps to reproduce the bug CODE: ``` ...
1,707,907,048
I_kwDODunzps5lzJfo
5,851
Error message not clear in interleaving datasets
closed
completed
2023-05-11T20:52:13
2023-05-23T10:32:59
2023-05-23T10:32:59Z
https://github.com/huggingface/datasets/issues/5851
surya-narayanan
[]
[ "lhoestq" ]
[]
NONE
### System Info standard env ### Who can help? _No response_ ### Information - [ ] The official example scripts - [X] My own modified scripts ### Tasks - [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...) - [X] My own task or dataset (give details below) ### Reproduction I'm tr...
1,706,289,290
I_kwDODunzps5ls-iK
5,846
load_dataset('bigcode/the-stack-dedup', streaming=True) very slow!
closed
completed
2023-05-11T17:58:57
2024-04-08T12:53:17
2024-04-05T12:28:58Z
https://github.com/huggingface/datasets/issues/5846
tbenthompson
[]
[ "mariosasko" ]
[ "This is due to the slow resolution of the data files: https://github.com/huggingface/datasets/issues/5537.\r\n\r\nWe plan to switch to `huggingface_hub`'s `HfFileSystem` soon to make the resolution faster (will be up to 20x faster once we merge https://github.com/huggingface/huggingface_hub/pull/1443)\r\n\r\n", ...
NONE
### Describe the bug Running ``` import datasets ds = datasets.load_dataset('bigcode/the-stack-dedup', streaming=True) ``` takes about 2.5 minutes! I would expect this to be near instantaneous. With other datasets, the runtime is one or two seconds. ### Environment info - `datasets` version: 2.1...
1,705,907,812
I_kwDODunzps5lrhZk
5,844
TypeError: Couldn't cast array of type struct<answer: struct<unanswerable: bool, answerType: string, free_form_answer: string, evidence: list<item: string>, evidenceAnnotate: list<item: string>, highlighted_evidence: list<item: string>>> to ...
open
2023-05-11T14:15:01
2023-05-11T14:15:01
https://github.com/huggingface/datasets/issues/5844
chen-coding
[]
[]
[]
NONE
### Describe the bug TypeError: Couldn't cast array of type struct<answer: struct<unanswerable: bool, answerType: string, free_form_answer: string, evidence: list<item: string>, evidenceAnnotate: list<item: string>, highlighted_evidence: list<item: string>>> to {'answer': {'unanswerable': Value(dtype='bool', id=None),...
1,705,286,639
I_kwDODunzps5lpJvv
5,841
Abusurdly slow on iteration
closed
completed
2023-05-11T08:04:09
2023-05-15T15:38:13
2023-05-15T15:38:13Z
https://github.com/huggingface/datasets/issues/5841
fecet
[]
[]
[ "Hi ! You can try to use the [Image](https://huggingface.co/docs/datasets/v2.12.0/en/package_reference/main_classes#datasets.Image) type which [decodes images on-the-fly](https://huggingface.co/docs/datasets/v2.12.0/en/about_dataset_features#image-feature) into pytorch tensors :)\r\n\r\n```python\r\nds = Dataset.fr...
NONE
### Describe the bug I am attempting to iterate through an image dataset, but I am encountering a significant slowdown in the iteration speed. In order to investigate this issue, I conducted the following experiment: ```python a=torch.randn(100,224) a=torch.stack([a] * 10000) a.shape # %% ds=Dataset.from_d...
1,705,212,085
I_kwDODunzps5lo3i1
5,840
load model error.
closed
completed
2023-05-11T07:12:38
2023-05-12T13:44:07
2023-05-12T13:44:06Z
https://github.com/huggingface/datasets/issues/5840
LanShanPi
[]
[]
[ "Please report this in the `transformers` repo, as it's not related to `datasets`" ]
NONE
### Describe the bug I had trained one model use deepspeed, when I load the final load I get the follow error: OSError: Can't load tokenizer for '/XXX/DeepSpeedExamples/applications/DeepSpeed-Chat/output/step3-models/1.3b/actor'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't ...
1,705,510,602
I_kwDODunzps5lqAbK
5,842
Remove columns in interable dataset
closed
completed
2023-05-11T03:48:46
2023-06-21T16:36:42
2023-06-21T16:36:41Z
https://github.com/huggingface/datasets/issues/5842
surya-narayanan
[]
[]
[ "Transferring this issue as it's related to the 🤗 Datasets library ", "Hi @surya-narayanan! Could you provide some code snippet?", "This method has been recently added to the `IterableDataset`, so you need to update the `datasets`' installation (`pip install -U datasets`) to use it." ]
NONE
### Feature request Right now, remove_columns() produces a NotImplementedError for iterable style datasets ### Motivation It would be great to have the same functionality irrespective of whether one is using an iterable or a map-style dataset ### Your contribution hope and courage.
1,705,514,551
I_kwDODunzps5lqBY3
5,843
Can't add iterable datasets to a Dataset Dict.
closed
completed
2023-05-11T02:09:29
2023-05-25T04:51:59
2023-05-25T04:51:59Z
https://github.com/huggingface/datasets/issues/5843
surya-narayanan
[]
[]
[ "Transferring as this is relating to the 🤗 Datasets library", "You need to use `IterableDatasetDict` instead of `DatasetDict` for iterable datasets." ]
NONE
### System Info standard env ### Who can help? _No response_ ### Information - [ ] The official example scripts - [X] My own modified scripts ### Tasks - [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...) - [ ] My own task or dataset (give details below) ### Reproduction Get th...
1,704,554,718
I_kwDODunzps5lmXDe
5,839
Make models/functions optimized with `torch.compile` hashable
closed
completed
2023-05-10T20:02:08
2023-11-28T16:29:33
2023-11-28T16:29:33Z
https://github.com/huggingface/datasets/issues/5839
mariosasko
[ "enhancement" ]
[ "mariosasko" ]
[]
COLLABORATOR
As reported in https://github.com/huggingface/datasets/issues/5819, hashing functions/transforms that reference a model, or a function, optimized with `torch.compile` currently fails due to them not being picklable (the concrete error can be found in the linked issue). The solutions to consider: 1. hashing/pickling...
1,703,210,848
I_kwDODunzps5lhO9g
5,838
Streaming support for `load_from_disk`
closed
completed
2023-05-10T06:25:22
2024-10-28T14:19:44
2023-05-12T09:37:45Z
https://github.com/huggingface/datasets/issues/5838
Nilabhra
[ "enhancement" ]
[]
[ "As the name says, `load_from_disk` load the data from your disk. If the data is hosted on S3, it is first downloaded locally and then loaded from your disk.\r\n\r\nThere is a discussion on streaming data from S3 here though: #5281 ", "@lhoestq \r\nThanks for your comment. I have checked out the discussion before...
NONE
### Feature request Support for streaming datasets stored in object stores in `load_from_disk`. ### Motivation The `load_from_disk` function supports fetching datasets stored in object stores such as `s3`. In many cases, the datasets that are stored in object stores are very large and being able to stream the data ...
1,703,019,816
I_kwDODunzps5lggUo
5,837
Use DeepSpeed load myself " .csv " dataset.
open
2023-05-10T02:39:28
2023-05-15T03:51:36
https://github.com/huggingface/datasets/issues/5837
LanShanPi
[]
[]
[ "Hi ! Doing `load_dataset(\"path/to/data.csv\")` is not supported yet, but you can do\r\n\r\n```python\r\nds = load_dataset(\"csv\", data_files=[\"path/to/data.csv\"])\r\n```", "@lhoestq thank you.", "The other question: \r\nTraceback (most recent call last):\r\n File \"<stdin>\", line 1, in <module>\r\n Fil...
NONE
### Describe the bug When I use DeepSpeed train a model with my own " XXX.csv" dataset I got the follow question: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/fm001/.conda/envs/hzl/lib/python3.8/site-packages/datasets/load.py", line 1767, in load_dataset builder_instan...
1,702,448,892
I_kwDODunzps5leU78
5,834
Is uint8 supported?
closed
completed
2023-05-09T17:31:13
2023-05-13T05:04:21
2023-05-13T05:04:21Z
https://github.com/huggingface/datasets/issues/5834
ryokan0123
[]
[]
[ "Hi ! The numpy formatting detaults to int64 and float32 - but you can use uint8 using\r\n```python\r\nds = ds.with_format(\"numpy\", dtype=np.uint8)\r\n```", "Related to https://github.com/huggingface/datasets/issues/5517.", "Thank you!\r\nBy setting `ds.with_format(\"numpy\", dtype=np.uint8)`, the dataset ret...
NONE
### Describe the bug I expect the dataset to store the data in the `uint8` data type, but it's returning `int64` instead. While I've found that `datasets` doesn't yet support float16 (https://github.com/huggingface/datasets/issues/4981), I'm wondering if this is the case for other data types as well. Is there a way ...
1,702,280,682
I_kwDODunzps5ldr3q
5,833
Unable to push dataset - `create_pr` problem
closed
completed
2023-05-09T15:32:55
2023-10-24T18:22:29
2023-10-24T18:22:29Z
https://github.com/huggingface/datasets/issues/5833
agombert
[]
[ "albertvillanova" ]
[ "Thanks for reporting, @agombert.\r\n\r\nIn this case, I think the root issue is authentication: before pushing to Hub, you should authenticate. See our docs: https://huggingface.co/docs/datasets/upload_dataset#upload-with-python\r\n> 2. To upload a dataset on the Hub in Python, you need to log in to your Hugging F...
NONE
### Describe the bug I can't upload to the hub the dataset I manually created locally (Image dataset). I have a problem when using the method `.push_to_hub` which asks for a `create_pr` attribute which is not compatible. ### Steps to reproduce the bug here what I have: ```python dataset.push_to_hub("agomberto/Fr...
1,702,135,336
I_kwDODunzps5ldIYo
5,832
404 Client Error: Not Found for url: https://huggingface.co/api/models/bert-large-cased
closed
completed
2023-05-09T14:14:59
2023-05-09T14:25:59
2023-05-09T14:25:59Z
https://github.com/huggingface/datasets/issues/5832
varungupta31
[]
[]
[ "moved to https://github.com/huggingface/transformers/issues/23233" ]
NONE
### Describe the bug Running [Bert-Large-Cased](https://huggingface.co/bert-large-cased) model causes `HTTPError`, with the following traceback- ``` HTTPError Traceback (most recent call last) <ipython-input-6-5c580443a1ad> in <module> ----> 1 tokenizer = BertTokenizer.from_pretra...
1,701,813,835
I_kwDODunzps5lb55L
5,831
[Bug]504 Server Error when loading dataset which was already cached
open
reopened
2023-05-09T10:31:07
2023-05-10T01:48:20
https://github.com/huggingface/datasets/issues/5831
SingL3
[]
[]
[ "I am experiencing the same problem with the following environment:\r\n\r\n* `datasets` version: 2.11.0\r\n* Platform: `Linux 5.19.0-41-generic x86_64 GNU/Linux`\r\n* Python version: `3.8.5`\r\n* Huggingface_hub version: 0.13.3\r\n* PyArrow version: `11.0.0`\r\n* Pandas version: `1.5.3`\r\n\r\nTrying to get some di...
NONE
### Describe the bug I have already cached the dataset using: ``` dataset = load_dataset("databricks/databricks-dolly-15k", cache_dir="/mnt/data/llm/datasets/databricks-dolly-15k") ``` After that, I tried to load it again using the same machine, I got this error: ``` Traceback (most rece...
1,699,958,189
I_kwDODunzps5lU02t
5,829
(mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
closed
completed
2023-05-08T10:07:14
2023-06-30T11:39:14
2023-05-09T00:46:42Z
https://github.com/huggingface/datasets/issues/5829
elcolie
[]
[]
[ "Can you paste the error stack trace?", "That is weird. I can't reproduce it again after reboot.\r\n```python\r\nIn [2]: import platform\r\n\r\nIn [3]: platform.platform()\r\nOut[3]: 'macOS-13.2-arm64-arm-64bit'\r\n\r\nIn [4]: from datasets import load_dataset\r\n ...:\r\n ...: jazzy = load_dataset(\"nomic-ai...
NONE
### Describe the bug M2 MBP can't run ```python from datasets import load_dataset jazzy = load_dataset("nomic-ai/gpt4all-j-prompt-generations", revision='v1.2-jazzy') ``` ### Steps to reproduce the bug 1. Use M2 MBP 2. Python 3.10.10 from pyenv 3. Run ``` from datasets import load_dataset jazzy = load_...
1,699,235,739
I_kwDODunzps5lSEeb
5,828
Stream data concatenation issue
closed
completed
2023-05-07T21:02:54
2023-06-29T20:07:56
2023-05-10T05:05:47Z
https://github.com/huggingface/datasets/issues/5828
krishnapriya-18
[]
[]
[ "Hi! \r\n\r\nYou can call `map` as follows to avoid the error:\r\n```python\r\naugmented_dataset_cln = dataset_cln['train'].map(augment_dataset, features=dataset_cln['train'].features)\r\n```", "Thanks it is solved", "Hi! \r\nI have run into the same problem with you. Could you please let me know how you solve ...
NONE
### Describe the bug I am not able to concatenate the augmentation of the stream data. I am using the latest version of dataset. ValueError: The features can't be aligned because the key audio of features {'audio_id': Value(dtype='string', id=None), 'audio': {'array': Sequence(feature=Value(dtype='float32', id=...
1,698,891,246
I_kwDODunzps5lQwXu
5,827
load json dataset interrupt when dtype cast problem occured
closed
completed
2023-05-07T04:52:09
2026-03-09T15:58:00
2026-03-09T15:58:00Z
https://github.com/huggingface/datasets/issues/5827
1014661165
[]
[]
[ "Indeed the JSON dataset builder raises an error when it encounters an unexpected type.\r\n\r\nThere's an old PR open to add away to ignore such elements though, if it can help: https://github.com/huggingface/datasets/pull/2838", "Hi ! with #8027 you will be able to do \n```python\nfrom datasets import load_datas...
NONE
### 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: ...
1,697,327,483
I_kwDODunzps5lKyl7
5,825
FileNotFound even though exists
closed
completed
2023-05-05T09:49:55
2023-08-16T10:02:01
2023-08-16T10:02:01Z
https://github.com/huggingface/datasets/issues/5825
Muennighoff
[]
[]
[ "Hi! \r\n\r\nThis would only work if `bigscience/xP3` was a no-code dataset, but it isn't (it has a Python builder script).\r\n\r\nBut this should work: \r\n```python\r\nload_dataset(\"json\", data_files=\"https://huggingface.co/datasets/bigscience/xP3/resolve/main/ur/xp3_facebook_flores_spa_Latn-urd_Arab_devtest_a...
CONTRIBUTOR
### Describe the bug I'm trying to download https://huggingface.co/datasets/bigscience/xP3/resolve/main/ur/xp3_facebook_flores_spa_Latn-urd_Arab_devtest_ab-spa_Latn-urd_Arab.jsonl which works fine in my webbrowser, but somehow not with datasets. Am I doing sth wrong? ``` Downloading builder script: 100% 2.82k/2.8...
1,697,024,789
I_kwDODunzps5lJosV
5,823
[2.12.0] DatasetDict.save_to_disk not saving to S3
closed
completed
2023-05-05T05:22:59
2024-05-30T16:11:31
2023-05-05T15:01:17Z
https://github.com/huggingface/datasets/issues/5823
thejamesmarq
[]
[]
[ "Hi ! Can you try adding the `s3://` prefix ?\r\n```python\r\nf\"s3://{s3_bucket}/{s3_dir}/{dataset_name}\"\r\n```", "Ugh, yeah that was it. Thank you!", "Hi @thejamesmarq, by any chance, did you use multiprocessing `num_proc > 1` when saving your dataset on the s3 bucket ? I'm struggling making it work in a mu...
NONE
### Describe the bug When trying to save a `DatasetDict` to a private S3 bucket using `save_to_disk`, the artifacts are instead saved locally, and not in the S3 bucket. I have tried using the deprecated `fs` as well as the `storage_options` arguments and I get the same results. ### Steps to reproduce the bug 1. C...
1,696,627,308
I_kwDODunzps5lIHps
5,822
Audio Dataset with_format torch problem
closed
completed
2023-05-04T20:07:51
2023-05-11T20:45:53
2023-05-11T20:45:53Z
https://github.com/huggingface/datasets/issues/5822
paulbauriegel
[]
[]
[ "Hi ! Can you try with a more recent version of `datasets` ?", "Ok, yes it worked with the most recent version. Thanks" ]
NONE
### Describe the bug Common Voice v10 Delta (German) Dataset from here https://commonvoice.mozilla.org/de/datasets ``` audio_dataset = \ (Dataset .from_dict({"audio": ('/tmp/cv-corpus-10.0-delta-2022-07-04/de/clips/' + df.path).to_list()}) .cast_column("audio", Audio(sampling_rate=16_000)) .with...
1,695,892,811
I_kwDODunzps5lFUVL
5,820
Incomplete docstring for `BuilderConfig`
closed
completed
2023-05-04T12:14:34
2023-05-05T12:31:56
2023-05-05T12:31:56Z
https://github.com/huggingface/datasets/issues/5820
Laurent2916
[ "good first issue" ]
[]
[ "Thanks for reporting! You are more than welcome to improve `BuilderConfig`'s docstring.\r\n\r\nThis class serves an identical purpose as `tensorflow_datasets`'s `BuilderConfig`, and its docstring is [here](https://github.com/tensorflow/datasets/blob/a95e38b5bb018312c3d3720619c2a8ef83ebf57f/tensorflow_datasets/core...
CONTRIBUTOR
Hi guys ! I stumbled upon this docstring while working on a project. Some of the attributes have missing descriptions. https://github.com/huggingface/datasets/blob/bc5fef5b6d91f009e4101684adcb374df2c170f6/src/datasets/builder.py#L104-L117
1,695,536,738
I_kwDODunzps5lD9Zi
5,819
Cannot pickle error in Dataset.from_generator()
closed
completed
2023-05-04T08:39:09
2023-05-05T19:20:59
2023-05-05T19:20:58Z
https://github.com/huggingface/datasets/issues/5819
xinghaow99
[]
[]
[ "Hi! It should work if you put `model = torch.compile(model)` inside the `generate_data` function. If a referenced object is outside, it needs to be pickable, and that's not the case for the compiled models (or functions). ", "> Hi! It should work if you put `model = torch.compile(model)` inside the `generate_da...
NONE
### Describe the bug I'm trying to use Dataset.from_generator() to generate a large dataset. ### Steps to reproduce the bug Code to reproduce: ``` from transformers import T5Tokenizer, T5ForConditionalGeneration, GenerationConfig import torch from tqdm import tqdm from datasets import load_dataset tokenizer...
1,695,052,555
I_kwDODunzps5lCHML
5,818
Ability to update a dataset
open
2023-05-04T01:08:13
2023-05-04T20:43:39
https://github.com/huggingface/datasets/issues/5818
davidgilbertson
[ "enhancement" ]
[]
[ "This [reply](https://discuss.huggingface.co/t/how-do-i-add-things-rows-to-an-already-saved-dataset/27423) from @mariosasko on the forums may be useful :)", "In this case, I think we can avoid the `PermissionError` by unpacking the underlying `ConcatenationTable` and saving only the newly added data blocks (in ne...
NONE
### Feature request The ability to load a dataset, add or change something, and save it back to disk. Maybe it's possible, but I can't work out how to do it, e.g. this fails: ```py import datasets dataset = datasets.load_from_disk("data/test1") dataset = dataset.add_item({"text": "A new item"}) dataset.sav...
1,694,891,866
I_kwDODunzps5lBf9a
5,817
Setting `num_proc` errors when `.map` returns additional items.
closed
completed
2023-05-03T21:46:53
2023-05-04T21:14:21
2023-05-04T20:22:25Z
https://github.com/huggingface/datasets/issues/5817
davidgilbertson
[]
[]
[ "Hi ! Unfortunately I couldn't reproduce on my side locally and with datasets 2.11 and python 3.10.11 on colab.\r\nWhat version of `multiprocess` are you using ?", "I've got `multiprocess` version `0.70.14`.\r\n\r\nI've done some more testing and the error only occurs in PyCharm's Python Console. It seems to be [...
NONE
### Describe the bug I'm using a map function that returns more rows than are passed in. If I try to use `num_proc` I get: ``` File "/home/davidg/.virtualenvs/learning/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 563, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kw...
1,693,701,743
I_kwDODunzps5k89Zv
5,815
Easy way to create a Kaggle dataset from a Huggingface dataset?
open
2023-05-02T21:43:33
2023-07-26T16:13:31
https://github.com/huggingface/datasets/issues/5815
hrbigelow
[]
[]
[ "Hi @hrbigelow , I'm no expert for such a question so I'll ping @lhoestq from the `datasets` library (also this issue could be moved there if someone with permission can do it :) )", "Hi ! Many datasets are made of several files, and how they are parsed often requires a python script. Because of that, datasets li...
NONE
I'm not sure whether this is more appropriately addressed with HuggingFace or Kaggle. I would like to somehow directly create a Kaggle dataset from a HuggingFace Dataset. While Kaggle does provide the option to create a dataset from a URI, that URI must point to a single file. For example: ![image](https://user...
1,691,798,169
I_kwDODunzps5k1sqZ
5,812
Cannot shuffle interleaved IterableDataset with "all_exhausted" stopping strategy
closed
completed
2023-05-02T05:26:17
2023-05-04T14:24:51
2023-05-04T14:24:51Z
https://github.com/huggingface/datasets/issues/5812
offchan42
[ "bug", "streaming" ]
[ "mariosasko" ]
[]
NONE
### Describe the bug Shuffling interleaved `IterableDataset` with "all_exhausted" strategy yields non-exhaustive sampling. ### Steps to reproduce the bug ```py from datasets import IterableDataset, interleave_datasets def gen(bias, length): for i in range(length): yield dict(a=bias+i) seed = 42 ...
1,689,919,046
I_kwDODunzps5kuh5G
5,811
load_dataset: TypeError: 'NoneType' object is not callable, on local dataset filename changes
open
2023-04-30T13:27:17
2025-02-27T07:32:30
https://github.com/huggingface/datasets/issues/5811
durapensa
[]
[]
[ "This error means a `DatasetBuilder` subclass that generates the dataset could not be found inside the script, so make sure `dushowxa-characters/dushowxa-characters.py `is a valid dataset script (assuming `path_or_dataset` is `dushowxa-characters`)\r\n\r\nAlso, we should improve the error to make it more obvious wh...
NONE
### Describe the bug I've adapted Databrick's [train_dolly.py](/databrickslabs/dolly/blob/master/train_dolly.py) to train using a local dataset, which has been working. Upon changing the filenames of the `.json` & `.py` files in my local dataset directory, `dataset = load_dataset(path_or_dataset)["train"]` throws th...
1,689,797,293
I_kwDODunzps5kuEKt
5,809
wiki_dpr details for Open Domain Question Answering tasks
closed
completed
2023-04-30T06:12:04
2023-07-21T14:11:00
2023-07-21T14:11:00Z
https://github.com/huggingface/datasets/issues/5809
yulgok22
[]
[]
[ "Hi ! I don't remember exactly how it was done, but maybe you have to embed `f\"{title}<sep>{text}\"` ?\r\n\r\nUsing a HF tokenizer it corresponds to doing\r\n```python\r\ntokenized = tokenizer(titles, texts)\r\n```" ]
NONE
Hey guys! Thanks for creating the wiki_dpr dataset! I am currently trying to combine wiki_dpr and my own datasets. but I don't know how to make the embedding value the same way as wiki_dpr. As an experiment, I embeds the text of id="7" of wiki_dpr, but this result was very different from wiki_dpr.
1,688,598,095
I_kwDODunzps5kpfZP
5,806
Return the name of the currently loaded file in the load_dataset function.
open
2023-04-28T13:50:15
2026-05-22T07:20:57
https://github.com/huggingface/datasets/issues/5806
s-JoL
[ "enhancement", "good first issue" ]
[ "sabbirtkdr" ]
[ "Implementing this makes sense (e.g., `tensorflow_datasets`' imagefolder returns image filenames). Also, in Datasets 3.0, we plan only to store the bytes of an image/audio, not its path, so this feature would be useful when the path info is still needed.", "Hey @mariosasko, Can I work on this issue, this one seem...
NONE
### Feature request Add an optional parameter return_file_name in the load_dataset function. When it is set to True, the function will include the name of the file corresponding to the current line as a feature in the returned output. ### Motivation When training large language models, machine problems may interrupt...
1,688,558,577
I_kwDODunzps5kpVvx
5,805
Improve `Create a dataset` tutorial
open
2023-04-28T13:26:22
2026-06-04T00:08:08
https://github.com/huggingface/datasets/issues/5805
polinaeterna
[ "documentation" ]
[]
[ "I can work on this. The link to the tutorial seems to be broken though @polinaeterna. ", "@isunitha98selvan would be great, thank you! which link are you talking about? I think it should work: https://huggingface.co/docs/datasets/create_dataset", "Hey I don't mind working on this issue. From my understanding, ...
CONTRIBUTOR
Our [tutorial on how to create a dataset](https://huggingface.co/docs/datasets/create_dataset) is a bit misleading. 1. In **Folder-based builders** section it says that we have two folder-based builders as standard builders, but we also have similar builders (that can be created from directory with data of required f...
1,686,334,572
I_kwDODunzps5kg2xs
5,799
Files downloaded to cache do not respect umask
closed
completed
2023-04-27T08:06:05
2023-04-27T09:30:17
2023-04-27T09:30:17Z
https://github.com/huggingface/datasets/issues/5799
albertvillanova
[ "bug" ]
[ "albertvillanova" ]
[]
MEMBER
As reported by @stas00, files downloaded to the cache do not respect umask: ```bash $ ls -l /path/to/cache/datasets/downloads/ -rw------- 1 uername username 150M Apr 25 16:41 5e646c1d600f065adaeb134e536f6f2f296a6d804bd1f0e1fdcd20ee28c185c6 ``` Related to: - #2065
1,685,904,526
I_kwDODunzps5kfNyO
5,798
Support parallelized downloading and processing in load_dataset with Spark
open
2023-04-27T00:16:11
2023-05-25T14:11:41
https://github.com/huggingface/datasets/issues/5798
es94129
[ "enhancement" ]
[]
[ "Hi ! We're using process pools for parallelism right now. I was wondering if there's a package that implements the same API as a process pool but runs with Spark under the hood ? That or something similar would be cool because users could use whatever distributed framework they want this way.\r\n\r\nFeel free to p...
CONTRIBUTOR
### Feature request When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes. ```python load_dataset(..., use_spark=True) ``` ### Motivation Further speed up ...
1,685,501,199
I_kwDODunzps5kdrUP
5,797
load_dataset is case sentitive?
open
2023-04-26T18:19:04
2023-04-27T11:56:58
https://github.com/huggingface/datasets/issues/5797
haonan-li
[]
[]
[ "Hi @haonan-li , thank you for the report! It seems to be a bug on the [`huggingface_hub`](https://github.com/huggingface/huggingface_hub) site, there is even no such dataset as `mbzuai/bactrian-x` on the Hub. I opened and [issue](https://github.com/huggingface/huggingface_hub/issues/1453) there.", "I think `loa...
NONE
### Describe the bug load_dataset() function is case sensitive? ### Steps to reproduce the bug The following two code, get totally different behavior. 1. load_dataset('mbzuai/bactrian-x','en') 2. load_dataset('MBZUAI/Bactrian-X','en') ### Expected behavior Compare 1 and 2. 1 will download all 52 subsets, sh...
1,685,196,061
I_kwDODunzps5kcg0d
5,794
CI ZeroDivisionError
closed
completed
2023-04-26T14:55:23
2024-05-17T09:12:11
2024-05-17T09:12:11Z
https://github.com/huggingface/datasets/issues/5794
albertvillanova
[ "bug" ]
[]
[ "Hello!\r\nThis issue seems to have been fixed in https://github.com/huggingface/transformers/pull/24049 \r\nI was looking for my first issue to work on when I noticed this; not sure if there is a specific protocol for suggesting to close an issue.", "Thanks for informing, @zeppdev. I am closing this issue.\r\n\r...
MEMBER
Sometimes when running our CI on Windows, we get a ZeroDivisionError: ``` FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_frugalscore - ZeroDivisionError: float division by zero ``` See for example: - https://github.com/huggingface/datasets/actions/runs/4809358266/jobs/8560513110 - https:/...
1,684,777,320
I_kwDODunzps5ka6lo
5,793
IterableDataset.with_format("torch") not working
closed
completed
2023-04-26T10:50:23
2023-06-13T15:57:06
2023-06-13T15:57:06Z
https://github.com/huggingface/datasets/issues/5793
jiangwangyi
[ "bug", "enhancement", "streaming" ]
[ "lhoestq" ]
[ "Hi ! Thanks for reporting, I'm working on it ;)" ]
NONE
### Describe the bug After calling the with_format("torch") method on an IterableDataset instance, the data format is unchanged. ### Steps to reproduce the bug ```python from datasets import IterableDataset def gen(): for i in range(4): yield {"a": [i] * 4} dataset = IterableDataset.from_generator(g...
1,683,473,943
I_kwDODunzps5kV8YX
5,791
TIFF/TIF support
closed
completed
2023-04-25T16:14:18
2024-01-15T16:40:33
2024-01-15T16:40:16Z
https://github.com/huggingface/datasets/issues/5791
sebasmos
[ "enhancement" ]
[]
[ "The issue with multichannel TIFF images has already been reported in Pillow (https://github.com/python-pillow/Pillow/issues/1888). We can't do much about it on our side.\r\n\r\nStill, to avoid the error, you can bypass the default Pillow decoding and define a custom one as follows:\r\n```python\r\nimport tifffile ...
NONE
### Feature request I currently have a dataset (with tiff and json files) where I have to do this: `wget path_to_data/images.zip && unzip images.zip` `wget path_to_data/annotations.zip && unzip annotations.zip` Would it make sense a contribution that supports these type of files? ### Motivation instead o...
1,682,611,179
I_kwDODunzps5kSpvr
5,789
Support streaming datasets that use jsonlines
open
2023-04-25T07:40:02
2023-04-25T07:40:03
https://github.com/huggingface/datasets/issues/5789
albertvillanova
[ "enhancement" ]
[ "albertvillanova" ]
[]
MEMBER
Extend support for streaming datasets that use `jsonlines.open`. Currently, if `jsonlines` is installed, `datasets` raises a `FileNotFoundError`: ``` FileNotFoundError: [Errno 2] No such file or directory: 'https://...' ``` See: - https://huggingface.co/datasets/masakhane/afriqa/discussions/1
1,680,957,070
I_kwDODunzps5kMV6O
5,786
Multiprocessing in a `filter` or `map` function with a Pytorch model
closed
completed
2023-04-24T10:38:07
2023-05-30T09:56:30
2023-04-24T10:43:58Z
https://github.com/huggingface/datasets/issues/5786
HugoLaurencon
[]
[]
[ "Hi ! PyTorch may hang when calling `load_state_dict()` in a subprocess. To fix that, set the multiprocessing start method to \"spawn\". Since `datasets` uses `multiprocess`, you should do:\r\n\r\n```python\r\n# Required to avoid issues with pytorch (otherwise hangs during load_state_dict in multiprocessing)\r\nimp...
NONE
### Describe the bug I am trying to use a Pytorch model loaded on CPUs with multiple processes with a `.map` or a `.filter` method. Usually, when dealing with models that are non-pickable, creating a class such that the `map` function is the method `__call__`, and adding `reduce` helps to solve the problem. Howe...
1,680,956,964
I_kwDODunzps5kMV4k
5,785
Unsupported data files raise TypeError: 'NoneType' object is not iterable
closed
completed
2023-04-24T10:38:03
2023-04-27T12:57:30
2023-04-27T12:57:30Z
https://github.com/huggingface/datasets/issues/5785
albertvillanova
[ "bug" ]
[ "albertvillanova" ]
[]
MEMBER
Currently, we raise a TypeError for unsupported data files: ``` TypeError: 'NoneType' object is not iterable ``` See: - https://github.com/huggingface/datasets-server/issues/1073 We should give a more informative error message.
1,679,664,393
I_kwDODunzps5kHaUJ
5,783
Offset overflow while doing regex on a text column
open
2023-04-22T19:12:03
2023-09-22T06:44:07
https://github.com/huggingface/datasets/issues/5783
nishanthcgit
[]
[]
[ "Hi! This looks like an Arrow bug, but it can be avoided by reducing the `writer_batch_size`.\r\n\r\n(`ds = ds.map(get_text_caption, writer_batch_size=100)` in Colab runs without issues)\r\n", "@mariosasko I ran into this problem with load_dataset. What should I do", "@AisingioroHao0 You can also pass the `wri...
NONE
### Describe the bug `ArrowInvalid: offset overflow while concatenating arrays` Same error as [here](https://github.com/huggingface/datasets/issues/615) ### Steps to reproduce the bug Steps to reproduce: (dataset is a few GB big so try in colab maybe) ``` import datasets import re ds = datasets.lo...
1,679,622,367
I_kwDODunzps5kHQDf
5,782
Support for various audio-loading backends instead of always relying on SoundFile
closed
completed
2023-04-22T17:09:25
2023-05-10T20:23:04
2023-05-10T20:23:04Z
https://github.com/huggingface/datasets/issues/5782
BoringDonut
[ "enhancement" ]
[]
[ "Hi! \r\n\r\nYou can use `set_transform`/`with_transform` to define a custom decoding for audio formats not supported by `soundfile`:\r\n```python\r\naudio_dataset_amr = Dataset.from_dict({\"audio\": [\"audio_samples/audio.amr\"]})\r\n\r\ndef decode_audio(batch):\r\n batch[\"audio\"] = [read_ffmpeg(audio_path) f...
NONE
### Feature request Introduce an option to select from a variety of audio-loading backends rather than solely relying on the SoundFile library. For instance, if the ffmpeg library is installed, it can serve as a fallback loading option. ### Motivation - The SoundFile library, used in [features/audio.py](https://gith...
1,679,580,460
I_kwDODunzps5kHF0s
5,781
Error using `load_datasets`
closed
completed
2023-04-22T15:10:44
2023-05-02T23:41:25
2023-05-02T23:41:25Z
https://github.com/huggingface/datasets/issues/5781
gjyoungjr
[]
[]
[ "It looks like an issue with your installation of scipy, can you try reinstalling it ?", "Sorry for the late reply, but that worked @lhoestq . Thanks for the assist." ]
NONE
### Describe the bug I tried to load a dataset using the `datasets` library in a conda jupyter notebook and got the below error. ``` ImportError: dlopen(/Users/gilbertyoung/miniforge3/envs/review_sense/lib/python3.8/site-packages/scipy/sparse/linalg/_isolve/_iterative.cpython-38-darwin.so, 0x0002): Library not ...
1,679,367,149
I_kwDODunzps5kGRvt
5,780
TypeError: 'NoneType' object does not support item assignment
closed
completed
2023-04-22T06:22:43
2023-04-23T08:49:18
2023-04-23T08:49:18Z
https://github.com/huggingface/datasets/issues/5780
zyb8543d
[]
[]
[]
NONE
command: ``` def load_datasets(formats, data_dir=datadir, data_files=datafile): dataset = load_dataset(formats, data_dir=datadir, data_files=datafile, split=split, streaming=True, **kwargs) return dataset raw_datasets = DatasetDict() raw_datasets["train"] = load_datasets(“csv”, args.datadir, "train.csv", s...
1,678,125,951
I_kwDODunzps5kBit_
5,778
Schrödinger's dataset_dict
closed
completed
2023-04-21T08:38:12
2023-07-24T15:15:14
2023-07-24T15:15:14Z
https://github.com/huggingface/datasets/issues/5778
liujuncn
[]
[]
[ "Hi ! Passing `data_files=\"path/test.json\"` is equivalent to `data_files={\"train\": [\"path/test.json\"]}`, that's why you end up with a train split. If you don't pass `data_files=`, then split names are inferred from the data files names" ]
NONE
### Describe the bug If you use load_dataset('json', data_files="path/test.json"), it will return DatasetDict({train:...}). And if you use load_dataset("path"), it will return DatasetDict({test:...}). Why can't the output behavior be unified? ### Steps to reproduce the bug as description above. ### Expected b...
1,677,655,969
I_kwDODunzps5j_v-h
5,777
datasets.load_dataset("code_search_net", "python") : NotADirectoryError: [Errno 20] Not a directory
closed
completed
2023-04-21T02:08:07
2023-06-05T05:49:52
2023-05-11T11:51:56Z
https://github.com/huggingface/datasets/issues/5777
ghost
[]
[ "albertvillanova" ]
[ "Note:\r\nI listed the datasets and grepped around to find what appears to be an alternative source for this:\r\n\r\nraw_datasets = load_dataset(\"espejelomar/code_search_net_python_10000_examples\", \"python\")", "Thanks for reporting, @jason-brian-anderson.\r\n\r\nYes, this is a known issue: the [CodeSearchNet]...
NONE
### Describe the bug While checking out the [tokenizer tutorial](https://huggingface.co/course/chapter6/2?fw=pt), i noticed getting an error while initially downloading the python dataset used in the examples. The [collab with the error is here](https://colab.research.google.com/github/huggingface/notebooks/blob/ma...
1,677,116,100
I_kwDODunzps5j9sLE
5,776
Use Pandas' `read_json` in the JSON builder
open
2023-04-20T17:15:49
2023-04-20T17:15:49
https://github.com/huggingface/datasets/issues/5776
mariosasko
[ "enhancement" ]
[ "mariosasko" ]
[]
COLLABORATOR
Instead of PyArrow's `read_json`, we should use `pd.read_json` in the JSON builder for consistency with the CSV and SQL builders (e.g., to address https://github.com/huggingface/datasets/issues/5725). In Pandas2.0, to get the same performance, we can set the `engine` to "pyarrow". The issue is that Colab still doesn...
1,677,089,901
I_kwDODunzps5j9lxt
5,775
ArrowDataset.save_to_disk lost some logic of remote
closed
completed
2023-04-20T16:58:01
2023-04-26T12:11:36
2023-04-26T12:11:17Z
https://github.com/huggingface/datasets/issues/5775
Zoupers
[]
[ "lhoestq" ]
[ "We just fixed this on `main` and will do a new release soon :)" ]
NONE
### Describe the bug https://github.com/huggingface/datasets/blob/e7ce0ac60c7efc10886471932854903a7c19f172/src/datasets/arrow_dataset.py#L1371 Here is the bug point, when I want to save from a `DatasetDict` class and the items of the instance is like `[('train', Dataset({features: ..., num_rows: ...}))]` , there ...
1,675,984,633
I_kwDODunzps5j5X75
5,773
train_dataset does not implement __len__
open
2023-04-20T04:37:05
2023-07-19T20:33:13
https://github.com/huggingface/datasets/issues/5773
zyb8543d
[]
[]
[ "Thanks for reporting, @v-yunbin.\r\n\r\nCould you please give more details, the steps to reproduce the bug, the complete error back trace and the environment information (`datasets-cli env`)?", "this is a detail error info from transformers:\r\n```\r\nTraceback (most recent call last):\r\n File \"finetune.py\",...
NONE
when train using data precessored by the datasets, I get follow warning and it leads to that I can not set epoch numbers: `ValueError: The train_dataset does not implement __len__, max_steps has to be specified. The number of steps needs to be known in advance for the learning rate scheduler.`
1,674,828,380
I_kwDODunzps5j09pc
5,771
Support cloud storage for loading datasets
closed
completed
2023-04-19T12:43:53
2023-05-07T17:47:41
2023-05-07T17:47:41Z
https://github.com/huggingface/datasets/issues/5771
eli-osherovich
[ "duplicate", "enhancement" ]
[]
[ "A duplicate of https://github.com/huggingface/datasets/issues/5281" ]
CONTRIBUTOR
### Feature request It seems that the the current implementation supports cloud storage only for `load_from_disk`. It would be nice if a similar functionality existed in `load_dataset`. ### Motivation Motivation is pretty clear -- let users work with datasets located in the cloud. ### Your contribution ...
1,673,441,182
I_kwDODunzps5jvq-e
5,769
Tiktoken tokenizers are not pickable
closed
completed
2023-04-18T16:07:40
2023-05-04T18:55:57
2023-05-04T18:55:57Z
https://github.com/huggingface/datasets/issues/5769
markovalexander
[]
[]
[ "Thanks for reporting, @markovalexander.\r\n\r\nUnfortunately, I'm not able to reproduce the issue: the `tiktoken` tokenizer can be used within `Dataset.map`, both in my local machine and in a Colab notebook: https://colab.research.google.com/drive/1DhJroZgk0sNFJ2Mrz-jYgrmh9jblXaCG?usp=sharing\r\n\r\nAre you sure y...
NONE
### Describe the bug Since tiktoken tokenizer is not pickable, it is not possible to use it inside `dataset.map()` with multiprocessing enabled. However, you [made](https://github.com/huggingface/datasets/issues/5536) tiktoken's tokenizers pickable in `datasets==2.10.0` for caching. For some reason, this logic does no...
1,672,494,561
I_kwDODunzps5jsD3h
5,768
load_dataset("squad") doesn't work in 2.7.1 and 2.10.1
closed
completed
2023-04-18T07:10:56
2023-04-20T10:27:23
2023-04-20T10:27:22Z
https://github.com/huggingface/datasets/issues/5768
yaseen157
[]
[ "albertvillanova" ]
[ "Thanks for reporting, @yaseen157.\r\n\r\nCould you please give the complete error stack trace?", "I am not able to reproduce your issue: the dataset loads perfectly on my local machine and on a Colab notebook: https://colab.research.google.com/drive/1Fbdoa1JdNz8DOdX6gmIsOK1nCT8Abj4O?usp=sharing\r\n```python\r\nI...
NONE
### Describe the bug There is an issue that seems to be unique to the "squad" dataset, in which it cannot be loaded using standard methods. This issue is most quickly reproduced from the command line, using the HF examples to verify a dataset is loaded properly. This is not a problem with "squad_v2" dataset for e...
1,672,433,979
I_kwDODunzps5jr1E7
5,767
How to use Distill-BERT with different datasets?
closed
completed
2023-04-18T06:25:12
2023-04-20T16:52:05
2023-04-20T16:52:05Z
https://github.com/huggingface/datasets/issues/5767
sauravtii
[]
[]
[ "Closing this one in favor of the same issue opened in the `transformers` repo." ]
NONE
### Describe the bug - `transformers` version: 4.11.3 - Platform: Linux-5.4.0-58-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyTorch version (GPU?): 1.12.0+cu102 (True) - Tensorflow version (GPU?): 2.10.0 (True) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxL...
1,671,485,882
I_kwDODunzps5joNm6
5,766
Support custom feature types
open
2023-04-17T15:46:41
2024-03-10T11:11:22
https://github.com/huggingface/datasets/issues/5766
jmontalt
[ "enhancement" ]
[]
[ "Hi ! Interesting :) What kind of new types would you like to use ?\r\n\r\nNote that you can already implement your own decoding by using `set_transform` that can decode data on-the-fly when rows are accessed", "An interesting proposal indeed. \r\n\r\nPandas and Polars have the \"extension API\", so doing somethi...
NONE
### Feature request I think it would be nice to allow registering custom feature types with the 🤗 Datasets library. For example, allow to do something along the following lines: ``` from datasets.features import register_feature_type # this would be a new function @register_feature_type class CustomFeature...
1,671,388,824
I_kwDODunzps5jn16Y
5,765
ValueError: You should supply an encoding or a list of encodings to this method that includes input_ids, but you provided ['text']
open
2023-04-17T15:00:50
2023-04-25T13:50:45
https://github.com/huggingface/datasets/issues/5765
sauravtii
[]
[]
[ "You need to remove the `text` and `text_en` columns before passing the dataset to the `DataLoader` to avoid this error:\r\n```python\r\ntokenized_datasets = tokenized_datasets.remove_columns([\"text\", \"text_en\"])\r\n```\r\n", "Thanks @mariosasko. Now I am getting this error:\r\n\r\n```\r\nTraceback (most rece...
NONE
### Describe the bug Following is my code that I am trying to run, but facing an error (have attached the whole error below): My code: ``` from collections import OrderedDict import warnings import flwr as fl import torch import numpy as np import random from torch.utils.data import DataLoader from...
1,670,740,198
I_kwDODunzps5jlXjm
5,764
ConnectionError: Couldn't reach https://www.dropbox.com/s/zts98j4vkqtsns6/aclImdb_v2.tar?dl=1
closed
completed
2023-04-17T09:08:18
2023-04-18T07:18:20
2023-04-18T07:18:20Z
https://github.com/huggingface/datasets/issues/5764
sauravtii
[]
[ "albertvillanova" ]
[ "Thanks for reporting, @sauravtii.\r\n\r\nUnfortunately, I'm not able to reproduce the issue:\r\n```python\r\nIn [1]: from datasets import load_dataset\r\n\r\nIn [2]: ds = load_dataset(\"josianem/imdb\")\r\n\r\nIn [2]: ds\r\nOut[2]: \r\nDatasetDict({\r\n train: Dataset({\r\n features: ['text', 'label'],\r...
NONE
### Describe the bug I want to use this (https://huggingface.co/datasets/josianem/imdb) dataset therefore I am trying to load it using the following code: ``` dataset = load_dataset("josianem/imdb") ``` The dataset is not getting loaded and gives the error message as the following: ``` Traceback (most rece...
1,670,326,470
I_kwDODunzps5jjyjG
5,762
Not able to load the pile
closed
completed
2023-04-17T03:09:10
2023-04-17T09:37:27
2023-04-17T09:37:27Z
https://github.com/huggingface/datasets/issues/5762
surya-narayanan
[]
[ "albertvillanova" ]
[ "Thanks for reporting, @surya-narayanan.\r\n\r\nI see you already started a discussion about this on the Community tab of the corresponding dataset: https://huggingface.co/datasets/EleutherAI/the_pile/discussions/10\r\nLet's continue the discussion there!" ]
NONE
### Describe the bug Got this error when I am trying to load the pile dataset ``` TypeError: Couldn't cast array of type struct<file: string, id: string> to {'id': Value(dtype='string', id=None)} ``` ### Steps to reproduce the bug Please visit the following sample notebook https://colab.research.goo...
1,670,034,582
I_kwDODunzps5jirSW
5,761
One or several metadata.jsonl were found, but not in the same directory or in a parent directory
open
2023-04-16T16:21:55
2023-04-19T11:53:24
https://github.com/huggingface/datasets/issues/5761
blghtr
[]
[ "albertvillanova" ]
[ "Also, when generated from a zip archive, the dataset contains only a few images. In my case, 20 versus 2000+ contained in the archive. The generation from folders works as expected.", "Thanks for reporting, @blghtr.\r\n\r\nYou should include the `metadata.jsonl` in your ZIP archives, at the root level directory....
NONE
### Describe the bug An attempt to generate a dataset from a zip archive using imagefolder and metadata.jsonl does not lead to the expected result. Tried all possible locations of the json file: the file in the archive is ignored (generated dataset contains only images), the file next to the archive like [here](http...
1,670,028,072
I_kwDODunzps5jipso
5,760
Multi-image loading in Imagefolder dataset
open
2023-04-16T16:01:05
2024-12-01T11:16:09
https://github.com/huggingface/datasets/issues/5760
vvvm23
[ "enhancement" ]
[ "mariosasko" ]
[ "Supporting this could be useful (I remember a use-case for this on the Hub). Do you agree @polinaeterna? \r\n\r\nImplementing this should be possible if we iterate over metadata files and build image/audio file paths instead of iterating over image/audio files and looking for the corresponding entries in metadata ...
NONE
### Feature request Extend the `imagefolder` dataloading script to support loading multiple images per dataset entry. This only really makes sense if a metadata file is present. Currently you can use the following format (example `metadata.jsonl`: ``` {'file_name': 'path_to_image.png', 'metadata': ...} ... `...
1,669,977,848
I_kwDODunzps5jidb4
5,759
Can I load in list of list of dict format?
open
2023-04-16T13:50:14
2023-04-19T12:04:36
https://github.com/huggingface/datasets/issues/5759
LZY-the-boys
[ "enhancement" ]
[ "albertvillanova" ]
[ "Thanks for reporting, @LZY-the-boys.\r\n\r\nCould you please give more details about what is your intended dataset structure? What are the names of the columns and the value of each row?\r\n\r\nCurrently, the JSON-Lines format is supported:\r\n- Each line correspond to one row of the dataset\r\n- Each line is comp...
NONE
### Feature request my jsonl dataset has following format: ``` [{'input':xxx, 'output':xxx},{'input:xxx,'output':xxx},...] [{'input':xxx, 'output':xxx},{'input:xxx,'output':xxx},...] ``` I try to use `datasets.load_dataset('json', data_files=path)` or `datasets.Dataset.from_json`, it raises ``` File "site-p...
1,669,910,503
I_kwDODunzps5jiM_n
5,757
Tilde (~) is not supported
closed
completed
2023-04-16T11:48:10
2023-04-20T15:30:51
2023-04-20T15:30:51Z
https://github.com/huggingface/datasets/issues/5757
eli-osherovich
[]
[]
[]
CONTRIBUTOR
### Describe the bug It seems that `~` is not recognized correctly in local paths. Whenever I try to use it I get an exception ### Steps to reproduce the bug ```python load_dataset("imagefolder", data_dir="~/data/my_dataset") ``` Will generate the following error: ``` EmptyDatasetError: The directory at ...
1,669,678,080
I_kwDODunzps5jhUQA
5,756
Calling shuffle on a IterableDataset with streaming=True, gives "ValueError: cannot reshape array"
closed
completed
2023-04-16T04:59:47
2023-04-18T03:40:56
2023-04-18T03:40:56Z
https://github.com/huggingface/datasets/issues/5756
rohfle
[]
[]
[ "Hi! I've merged a PR on the Hub with a fix: https://huggingface.co/datasets/fashion_mnist/discussions/3", "Thanks, this appears to have fixed the issue.\r\n\r\nI've created a PR for the same change in the mnist dataset: https://huggingface.co/datasets/mnist/discussions/3/files" ]
NONE
### Describe the bug When calling shuffle on a IterableDataset with streaming=True, I get the following error: ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/administrator/Documents/Projects/huggingface/jax-diffusers-sprint-consistency-models/virtualenv/lib/python3.1...
1,669,048,438
I_kwDODunzps5je6h2
5,755
ImportError: cannot import name 'DeprecatedEnum' from 'datasets.utils.deprecation_utils'
closed
completed
2023-04-14T23:28:54
2023-04-14T23:36:19
2023-04-14T23:36:19Z
https://github.com/huggingface/datasets/issues/5755
fivejjs
[]
[]
[ "update the version. fix" ]
NONE
### Describe the bug The module moved to new place? ### Steps to reproduce the bug in the import step, ```python from datasets.utils.deprecation_utils import DeprecatedEnum ``` error: ``` ImportError: cannot import name 'DeprecatedEnum' from 'datasets.utils.deprecation_utils' ``` ### Expected behavior...
1,668,659,536
I_kwDODunzps5jdblQ
5,753
[IterableDatasets] Add column followed by interleave datasets gives bogus outputs
closed
completed
2023-04-14T17:32:31
2025-07-04T05:22:53
2023-04-14T17:36:37Z
https://github.com/huggingface/datasets/issues/5753
sanchit-gandhi
[]
[]
[ "Problem with the code snippet! Using global vars and functions was not a good idea with iterable datasets!\r\n\r\nIf we update to:\r\n```python\r\nfrom datasets import load_dataset\r\n\r\noriginal_dataset = load_dataset(\"librispeech_asr\", \"clean\", split=\"validation\", streaming=True)\r\n\r\n# now add a new co...
CONTRIBUTOR
### Describe the bug If we add a new column to our iterable dataset using the hack described in #5752, when we then interleave datasets the new column is pinned to one value. ### Steps to reproduce the bug What we're going to do here is: 1. Load an iterable dataset in streaming mode (`original_dataset`) 2. A...
1,668,574,209
I_kwDODunzps5jdGwB
5,752
Streaming dataset looses `.feature` method after `.add_column`
open
2023-04-14T16:39:50
2024-01-18T10:15:20
https://github.com/huggingface/datasets/issues/5752
sanchit-gandhi
[ "bug" ]
[]
[ "I believe the issue resides in this line:\r\nhttps://github.com/huggingface/datasets/blob/7c3a9b057c476c40d157bd7a5d57f49066239df0/src/datasets/iterable_dataset.py#L1415\r\n\r\nIf we pass the **new** features of the dataset to the `.map` method we can return the features after adding a column, e.g.:\r\n```python\r...
CONTRIBUTOR
### Describe the bug After appending a new column to a streaming dataset using `.add_column`, we can no longer access the list of dataset features using the `.feature` method. ### Steps to reproduce the bug ```python from datasets import load_dataset original_dataset = load_dataset("librispeech_asr", "clean", sp...
1,668,289,067
I_kwDODunzps5jcBIr
5,750
Fail to create datasets from a generator when using Google Big Query
closed
completed
2023-04-14T13:50:59
2023-04-17T12:20:43
2023-04-17T12:20:43Z
https://github.com/huggingface/datasets/issues/5750
ivanprado
[]
[]
[ "`from_generator` expects a generator function, not a generator object, so this should work:\r\n```python\r\nfrom datasets import Dataset\r\nfrom google.cloud import bigquery\r\n\r\nclient = bigquery.Client()\r\n\r\ndef gen()\r\n # Perform a query.\r\n QUERY = (\r\n 'SELECT name FROM `bigquery-public-d...
NONE
### Describe the bug Creating a dataset from a generator using `Dataset.from_generator()` fails if the generator is the [Google Big Query Python client](https://cloud.google.com/python/docs/reference/bigquery/latest). The problem is that the Big Query client is not pickable. And the function `create_config_id` tries t...
1,668,016,321
I_kwDODunzps5ja-jB
5,749
AttributeError: 'Version' object has no attribute 'match'
closed
completed
2023-04-14T10:48:06
2023-06-30T11:31:17
2023-04-18T12:57:08Z
https://github.com/huggingface/datasets/issues/5749
gulnaz-zh
[]
[ "albertvillanova" ]
[ "I got the same error, and the official website for visual genome is down. Did you solve this problem? ", "I am in the same situation now :( ", "Thanks for reporting, @gulnaz-zh.\r\n\r\nI am investigating it.", "The host server is down: https://visualgenome.org/\r\n\r\nWe are contacting the dataset authors.",...
NONE
### Describe the bug When I run from datasets import load_dataset data = load_dataset("visual_genome", 'region_descriptions_v1.2.0') AttributeError: 'Version' object has no attribute 'match' ### Steps to reproduce the bug from datasets import load_dataset data = load_dataset("visual_genome", 'region_descripti...
1,667,076,620
I_kwDODunzps5jXZIM
5,744
[BUG] With Pandas 2.0.0, `load_dataset` raises `TypeError: read_csv() got an unexpected keyword argument 'mangle_dupe_cols'`
closed
completed
2023-04-13T20:21:28
2024-04-09T16:13:59
2023-07-06T17:01:59Z
https://github.com/huggingface/datasets/issues/5744
keyboardAnt
[]
[ "albertvillanova" ]
[ "Thanks for reporting, @keyboardAnt.\r\n\r\nWe haven't noticed any crash in our CI tests. Could you please indicate specifically the `load_dataset` command that crashes in your side, so that we can reproduce it?", "This has been fixed in `datasets` 2.11", "I am still getting this bug with the latest pandas and ...
NONE
The `load_dataset` function with Pandas `1.5.3` has no issue (just a FutureWarning) but crashes with Pandas `2.0.0`. For your convenience, I opened a draft Pull Request to fix it quickly: https://github.com/huggingface/datasets/pull/5745 --- * The FutureWarning mentioned above: ``` FutureWarning: the 'mangle_...
1,666,843,832
I_kwDODunzps5jWgS4
5,743
dataclass.py in virtual environment is overriding the stdlib module "dataclasses"
closed
completed
2023-04-13T17:28:33
2023-04-17T12:23:18
2023-04-17T12:23:18Z
https://github.com/huggingface/datasets/issues/5743
syedabdullahhassan
[]
[]
[ "We no longer depend on `dataclasses` (for almost a year), so I don't think our package is the problematic one. \r\n\r\nI think it makes more sense to raise this issue in the `dataclasses` repo: https://github.com/ericvsmith/dataclasses." ]
NONE
### Describe the bug "e:\Krish_naik\FSDSRegression\venv\Lib\dataclasses.py" is overriding the stdlib module "dataclasses" ### Steps to reproduce the bug module issue ### Expected behavior overriding the stdlib module "dataclasses" ### Environment info VS code
1,663,762,901
I_kwDODunzps5jKwHV
5,739
weird result during dataset split when data path starts with `/data`
open
2023-04-12T04:51:35
2023-04-21T14:20:59
https://github.com/huggingface/datasets/issues/5739
airlsyn
[]
[]
[ "Same problem.", "hi! \r\nI think you can run python from `/data/train/raw/` directory and load dataset as `load_dataset(\"code_contests\")` to mitigate this issue as a workaround. \r\n@ericxsun Do you want to open a PR to fix the regex? As you already found the solution :) ", "> hi! I think you can run python ...
NONE
### Describe the bug The regex defined here https://github.com/huggingface/datasets/blob/f2607935c4e45c70c44fcb698db0363ca7ba83d4/src/datasets/utils/py_utils.py#L158 will cause a weird result during dataset split when data path starts with `/data` ### Steps to reproduce the bug 1. clone dataset into local path ...
1,663,477,690
I_kwDODunzps5jJqe6
5,738
load_dataset("text","dataset.txt") loads the wrong dataset!
closed
completed
2023-04-12T01:07:46
2023-04-19T12:08:27
2023-04-19T12:08:27Z
https://github.com/huggingface/datasets/issues/5738
Tylersuard
[]
[]
[ "You need to provide a text file as `data_files`, not as a configuration:\r\n\r\n```python\r\nmy_dataset = load_dataset(\"text\", data_files=\"TextFile.txt\")\r\n```\r\n\r\nOtherwise, since `data_files` is `None`, it picks up Colab's sample datasets from the `content` dir." ]
NONE
### Describe the bug I am trying to load my own custom text dataset using the load_dataset function. My dataset is a bunch of ordered text, think along the lines of shakespeare plays. However, after I load the dataset and I inspect it, the dataset is a table with a bunch of latitude and longitude values! What in th...
1,662,919,811
I_kwDODunzps5jHiSD
5,737
ClassLabel Error
closed
completed
2023-04-11T17:14:13
2023-04-13T16:49:57
2023-04-13T16:49:57Z
https://github.com/huggingface/datasets/issues/5737
mrcaelumn
[]
[]
[ "Hi, you can use the `cast_column` function to change the feature type from a `Value(int64)` to `ClassLabel`:\r\n\r\n```py\r\ndataset = dataset.cast_column(\"label\", ClassLabel(names=[\"label_1\", \"label_2\", \"label_3\"]))\r\nprint(dataset.features)\r\n{'text': Value(dtype='string', id=None),\r\n 'label': ClassL...
NONE
### Describe the bug I still getting the error "call() takes 1 positional argument but 2 were given" even after ensuring that the value being passed to the label object is a single value and that the ClassLabel object has been created with the correct number of label classes ### Steps to reproduce the bug from...
1,662,286,061
I_kwDODunzps5jFHjt
5,736
FORCE_REDOWNLOAD raises "Directory not empty" exception on second run
open
2023-04-11T11:29:15
2023-11-30T07:16:58
https://github.com/huggingface/datasets/issues/5736
rcasero
[]
[]
[ "Hi ! I couldn't reproduce your issue :/\r\n\r\nIt seems that `shutil.rmtree` failed. It is supposed to work even if the directory is not empty, but you still end up with `OSError: [Errno 39] Directory not empty:`. Can you make sure another process is not using this directory at the same time ?", "I have the same...
NONE
### Describe the bug Running `load_dataset(..., download_mode=datasets.DownloadMode.FORCE_REDOWNLOAD)` twice raises a `Directory not empty` exception on the second run. ### Steps to reproduce the bug I cannot test this on datasets v2.11.0 due to #5711, but this happens in v2.10.1. 1. Set up a script `my_dataset.p...
1,662,058,028
I_kwDODunzps5jEP4s
5,734
Remove temporary pin of fsspec
closed
completed
2023-04-11T09:04:17
2023-04-11T11:04:52
2023-04-11T11:04:52Z
https://github.com/huggingface/datasets/issues/5734
albertvillanova
[ "bug" ]
[ "albertvillanova" ]
[]
MEMBER
Once root cause is found and fixed, remove the temporary pin introduced by: - #5731
1,662,020,571
I_kwDODunzps5jEGvb
5,732
Enwik8 should support the standard split
closed
completed
2023-04-11T08:38:53
2023-04-11T09:28:17
2023-04-11T09:28:16Z
https://github.com/huggingface/datasets/issues/5732
lucaslingle
[ "enhancement" ]
[ "lucaslingle" ]
[ "#self-assign", "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. " ]
NONE
### 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...
1,662,007,926
I_kwDODunzps5jEDp2
5,730
CI is broken: ValueError: Name (mock) already in the registry and clobber is False
closed
completed
2023-04-11T08:29:46
2023-04-11T08:47:56
2023-04-11T08:47:56Z
https://github.com/huggingface/datasets/issues/5730
albertvillanova
[ "bug" ]
[ "albertvillanova" ]
[]
MEMBER
CI is broken for `test_py310`. See: https://github.com/huggingface/datasets/actions/runs/4665326892/jobs/8258580948 ``` =========================== short test summary info ============================ ERROR tests/test_builder.py::test_builder_with_filesystem_download_and_prepare - ValueError: Name (mock) already ...
1,661,925,932
I_kwDODunzps5jDvos
5,728
The order of data split names is nondeterministic
closed
completed
2023-04-11T07:31:25
2023-04-26T15:05:13
2023-04-26T15:05:13Z
https://github.com/huggingface/datasets/issues/5728
albertvillanova
[ "bug" ]
[ "albertvillanova" ]
[]
MEMBER
After this CI error: https://github.com/huggingface/datasets/actions/runs/4639528358/jobs/8210492953?pr=5718 ``` FAILED tests/test_data_files.py::test_get_data_files_patterns[data_file_per_split4] - AssertionError: assert ['random', 'train'] == ['train', 'random'] At index 0 diff: 'random' != 'train' Full diff:...
1,661,536,363
I_kwDODunzps5jCQhr
5,727
load_dataset fails with FileNotFound error on Windows
closed
completed
2023-04-10T23:21:12
2023-07-21T14:08:20
2023-07-21T14:08:19Z
https://github.com/huggingface/datasets/issues/5727
joelkowalewski
[]
[]
[ "Hi! Can you please paste the entire error stack trace, not only the last few lines?", "`----> 1 dataset = datasets.load_dataset(\"glue\", \"ax\")\r\n\r\nFile ~\\anaconda3\\envs\\huggingface\\Lib\\site-packages\\datasets\\load.py:1767, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, ...
NONE
### Describe the bug Although I can import and run the datasets library in a Colab environment, I cannot successfully load any data on my own machine (Windows 10) despite following the install steps: (1) create conda environment (2) activate environment (3) install with: ``conda` install -c huggingface -c conda-...
1,660,944,807
I_kwDODunzps5jAAGn
5,726
Fallback JSON Dataset loading does not load all values when features specified manually
closed
completed
2023-04-10T15:22:14
2023-04-21T06:35:28
2023-04-21T06:35:28Z
https://github.com/huggingface/datasets/issues/5726
myluki2000
[]
[ "albertvillanova" ]
[ "Thanks for reporting, @myluki2000.\r\n\r\nI am working on a fix." ]
NONE
### Describe the bug The fallback JSON dataset loader located here: https://github.com/huggingface/datasets/blob/1c4ec00511868bd881e84a6f7e0333648d833b8e/src/datasets/packaged_modules/json/json.py#L130-L153 does not load the values of features correctly when features are specified manually and not all features...
1,660,455,202
I_kwDODunzps5i-Iki
5,725
How to limit the number of examples in dataset, for testing?
closed
completed
2023-04-10T08:41:43
2023-04-21T06:16:24
2023-04-21T06:16:24Z
https://github.com/huggingface/datasets/issues/5725
ndvbd
[]
[]
[ "Hi! You can use the `nrows` parameter for this:\r\n```python\r\ndata = load_dataset(\"json\", data_files=data_path, nrows=10)\r\n```", "@mariosasko I get:\r\n\r\n`TypeError: __init__() got an unexpected keyword argument 'nrows'`", "I misread the format in which the dataset is stored - the `nrows` parameter wo...
NONE
### Describe the bug I am using this command: `data = load_dataset("json", data_files=data_path)` However, I want to add a parameter, to limit the number of loaded examples to be 10, for development purposes, but can't find this simple parameter. ### Steps to reproduce the bug In the description. ### Expected beh...
1,659,938,135
I_kwDODunzps5i8KVX
5,724
Error after shuffling streaming IterableDatasets with downloaded dataset
closed
completed
2023-04-09T16:58:44
2023-04-20T20:37:30
2023-04-20T20:37:30Z
https://github.com/huggingface/datasets/issues/5724
szxiangjn
[]
[]
[ "Moving `\"en\"` to the end of the path instead of passing it as a config name should fix the error:\r\n```python\r\nimport datasets\r\ndataset = datasets.load_dataset('/path/to/your/data/dir/en', streaming=True, split='train')\r\ndataset = dataset.shuffle(buffer_size=10_000, seed=42)\r\nnext(iter(dataset))\r\n```\...
NONE
### Describe the bug I downloaded the C4 dataset, and used streaming IterableDatasets to read it. Everything went normal until I used `dataset = dataset.shuffle(seed=42, buffer_size=10_000)` to shuffle the dataset. Shuffled dataset will throw the following error when it is used by `next(iter(dataset))`: ``` File "/d...
1,659,837,510
I_kwDODunzps5i7xxG
5,722
Distributed Training Error on Customized Dataset
closed
completed
2023-04-09T11:04:59
2023-07-24T14:50:46
2023-07-24T14:50:46Z
https://github.com/huggingface/datasets/issues/5722
wlhgtc
[]
[]
[ "Hmm the error doesn't seem related to data loading.\r\n\r\nRegarding `split_dataset_by_node`: it's generally used to split an iterable dataset (e.g. when streaming) in pytorch DDP. It's not needed if you use a regular dataset since the pytorch DataLoader already assigns a subset of the dataset indices to each node...
NONE
Hi guys, recently I tried to use `datasets` to train a dual encoder. I finish my own datasets according to the nice [tutorial](https://huggingface.co/docs/datasets/v2.11.0/en/dataset_script) Here are my code: ```python class RetrivalDataset(datasets.GeneratorBasedBuilder): """CrossEncoder dataset.""" B...
1,659,680,682
I_kwDODunzps5i7Leq
5,721
Calling datasets.load_dataset("text" ...) results in a wrong split.
open
2023-04-08T23:55:12
2023-04-08T23:55:12
https://github.com/huggingface/datasets/issues/5721
cyrilzakka
[]
[]
[]
NONE
### Describe the bug When creating a text dataset, the training split should have the bulk of the examples by default. Currently, testing does. ### Steps to reproduce the bug I have a folder with 18K text files in it. Each text file essentially consists in a document or article scraped from online. Calling the follo...
1,659,610,705
I_kwDODunzps5i66ZR
5,720
Streaming IterableDatasets do not work with torch DataLoaders
open
2023-04-08T18:45:48
2025-03-19T14:06:47
https://github.com/huggingface/datasets/issues/5720
jlehrer1
[]
[]
[ "Edit: This behavior is true even without `.take/.set`", "I'm experiencing the same problem that @jlehrer1. I was able to reproduce it with a very small example:\r\n\r\n```py\r\nfrom datasets import Dataset, load_dataset, load_dataset_builder\r\nfrom torch.utils.data import DataLoader\r\n\r\n\r\ndef my_gen():\r\n...
NONE
### Describe the bug When using streaming datasets set up with train/val split using `.skip()` and `.take()`, the following error occurs when iterating over a torch dataloader: ``` File "/Users/julian/miniconda3/envs/sims/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 363, in __iter__ self....
1,659,203,222
I_kwDODunzps5i5W6W
5,719
Array2D feature creates a list of list instead of a numpy array
closed
completed
2023-04-07T21:04:08
2023-04-20T15:34:41
2023-04-20T15:34:41Z
https://github.com/huggingface/datasets/issues/5719
offchan42
[]
[]
[ "Hi! \r\n\r\nYou need to set the format to `np` before indexing the dataset to get NumPy arrays:\r\n```python\r\nfeatures = Features(dict(seq=Array2D((2,2), 'float32'))) \r\nds = Dataset.from_dict(dict(seq=[np.random.rand(2,2)]), features=features)\r\nds.set_format(\"np\")\r\na = ds[0]['seq']\r\n```\r\n\r\n> I th...
NONE
### Describe the bug I'm not sure if this is expected behavior or not. When I create a 2D array using `Array2D`, the data has list type instead of numpy array. I think it should not be the expected behavior especially when I feed a numpy array as input to the data creation function. Why is it converting my array int...
1,658,729,866
I_kwDODunzps5i3jWK
5,717
Errror when saving to disk a dataset of images
open
2023-04-07T11:59:17
2025-07-13T08:27:47
https://github.com/huggingface/datasets/issues/5717
jplu
[]
[ "mariosasko" ]
[ "Looks like as long as the number of shards makes a batch lower than 1000 images it works. In my training set I have 40K images. If I use `num_shards=40` (batch of 1000 images) I get the error, but if I update it to `num_shards=50` (batch of 800 images) it works.\r\n\r\nI will be happy to share my dataset privately...
CONTRIBUTOR
### Describe the bug Hello! I have an issue when I try to save on disk my dataset of images. The error I get is: ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/jplu/miniconda3/envs/image-xp/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 1442, in save_...
1,658,613,092
I_kwDODunzps5i3G1k
5,716
Handle empty audio
closed
completed
2023-04-07T09:51:40
2023-09-27T17:47:08
2023-09-27T17:47:08Z
https://github.com/huggingface/datasets/issues/5716
zyb8543d
[]
[]
[ "Hi! Can you share one of the problematic audio files with us?\r\n\r\nI tried to reproduce the error with the following code: \r\n```python\r\nimport soundfile as sf\r\nimport numpy as np\r\nfrom datasets import Audio\r\n\r\nsf.write(\"empty.wav\", np.array([]), 16000)\r\nAudio(sampling_rate=24000).decode_example(...
NONE
Some audio paths exist, but they are empty, and an error will be reported when reading the audio path.How to use the filter function to avoid the empty audio path? when a audio is empty, when do resample , it will break: `array, sampling_rate = sf.read(f) array = librosa.resample(array, orig_sr=sampling_rate, target_...
1,657,479,788
I_kwDODunzps5iyyJs
5,715
Return Numpy Array (fixed length) Mode, in __get_item__, Instead of List
closed
completed
2023-04-06T13:57:48
2023-04-20T17:16:26
2023-04-20T17:16:26Z
https://github.com/huggingface/datasets/issues/5715
jungbaepark
[ "enhancement" ]
[]
[ "Hi! \r\n\r\nYou can use [`.set_format(\"np\")`](https://huggingface.co/docs/datasets/process#format) to get NumPy arrays (or Pytorch tensors with `.set_format(\"torch\")`) in `__getitem__`.\r\n\r\nAlso, have you been able to reproduce the linked PyTorch issue with a HF dataset?\r\n " ]
NONE
### Feature request There are old known issues, but they can be easily forgettable problems in multiprocessing with pytorch-dataloader: Too high usage of RAM or shared-memory in pytorch when we set num workers > 1 and returning type of dataset or dataloader is "List" or "Dict". https://github.com/pytorch/pytorch...
1,657,141,251
I_kwDODunzps5ixfgD
5,713
ArrowNotImplementedError when loading dataset from the hub
closed
completed
2023-04-06T10:27:22
2023-04-06T13:06:22
2023-04-06T13:06:21Z
https://github.com/huggingface/datasets/issues/5713
jplu
[]
[]
[ "Hi Julien ! This sounds related to https://github.com/huggingface/datasets/issues/5695 - TL;DR: you need to have shards smaller than 2GB to avoid this issue\r\n\r\nThe number of rows per shard is computed using an estimated size of the full dataset, which can sometimes lead to shards bigger than `max_shard_size`. ...
CONTRIBUTOR
### Describe the bug Hello, I have created a dataset by using the image loader. Once the dataset is created I try to download it and I get the error: ``` Traceback (most recent call last): File "/home/jplu/miniconda3/envs/image-xp/lib/python3.10/site-packages/datasets/builder.py", line 1860, in _prepare_split_...
1,655,972,106
I_kwDODunzps5itCEK
5,712
load_dataset in v2.11.0 raises "ValueError: seek of closed file" in np.load()
closed
completed
2023-04-05T16:47:10
2023-04-06T08:32:37
2023-04-05T17:17:44Z
https://github.com/huggingface/datasets/issues/5712
rcasero
[]
[]
[ "Closing since this is a duplicate of #5711", "> Closing since this is a duplicate of #5711\r\n\r\nSorry @mariosasko , my internet went down went submitting the issue, and somehow it ended up creating a duplicate" ]
NONE
### Describe the bug Hi, I have some `dataset_load()` code of a custom offline dataset that works with datasets v2.10.1. ```python ds = datasets.load_dataset(path=dataset_dir, name=configuration, data_dir=dataset_dir, ...
1,655,971,647
I_kwDODunzps5itB8_
5,711
load_dataset in v2.11.0 raises "ValueError: seek of closed file" in np.load()
closed
completed
2023-04-05T16:46:49
2023-04-07T09:16:59
2023-04-07T09:16:59Z
https://github.com/huggingface/datasets/issues/5711
rcasero
[]
[ "albertvillanova" ]
[ "It seems like https://github.com/huggingface/datasets/pull/5626 has introduced this error. \r\n\r\ncc @albertvillanova \r\n\r\nI think replacing:\r\nhttps://github.com/huggingface/datasets/blob/0803a006db1c395ac715662cc6079651f77c11ea/src/datasets/download/streaming_download_manager.py#L777-L778\r\nwith:\r\n```pyt...
NONE
### Describe the bug Hi, I have some `dataset_load()` code of a custom offline dataset that works with datasets v2.10.1. ```python ds = datasets.load_dataset(path=dataset_dir, name=configuration, data_dir=dataset_dir, ...
1,655,703,534
I_kwDODunzps5isAfu
5,710
OSError: Memory mapping file failed: Cannot allocate memory
closed
completed
2023-04-05T14:11:26
2023-04-20T17:16:40
2023-04-20T17:16:40Z
https://github.com/huggingface/datasets/issues/5710
Saibo-creator
[]
[]
[ "Hi! This error means that PyArrow's internal [`mmap`](https://man7.org/linux/man-pages/man2/mmap.2.html) call failed to allocate memory, which can be tricky to debug. Since this error is more related to PyArrow than us, I think it's best to report this issue in their [repo](https://github.com/apache/arrow) (they a...
NONE
### Describe the bug Hello, I have a series of datasets each of 5 GB, 600 datasets in total. So together this makes 3TB. When I trying to load all the 600 datasets into memory, I get the above error message. Is this normal because I'm hitting the max size of memory mapping of the OS? Thank you ```te...
1,655,423,503
I_kwDODunzps5iq8IP
5,709
Manually dataset info made not taken into account
closed
completed
2023-04-05T11:15:17
2023-04-06T08:52:20
2023-04-06T08:52:19Z
https://github.com/huggingface/datasets/issues/5709
jplu
[]
[]
[ "hi @jplu ! Did I understand you correctly that you create the dataset, push it to the Hub with `.push_to_hub` and you see a `dataset_infos.json` file there, then you edit this file, load the dataset with `load_dataset` and you don't see any changes in `.info` attribute of a dataset object? \r\n\r\nThis is actually...
CONTRIBUTOR
### Describe the bug Hello, I'm manually building an image dataset with the `from_dict` approach. I also build the features with the `cast_features` methods. Once the dataset is created I push it on the hub, and a default `dataset_infos.json` file seems to have been automatically added to the repo in same time. Hen...
1,655,023,642
I_kwDODunzps5ipaga
5,708
Dataset sizes are in MiB instead of MB in dataset cards
closed
completed
2023-04-05T06:36:03
2023-12-21T10:20:28
2023-12-21T10:20:27Z
https://github.com/huggingface/datasets/issues/5708
albertvillanova
[ "bug", "dataset-viewer" ]
[ "albertvillanova" ]
[ "Example of bulk edit: https://huggingface.co/datasets/aeslc/discussions/5", "looks great! \r\n\r\nDo you encode the fact that you've already converted a dataset? (to not convert it twice) or do you base yourself on the info contained in `dataset_info`", "I am only looping trough the dataset cards, assuming tha...
MEMBER
As @severo reported in an internal discussion (https://github.com/huggingface/moon-landing/issues/5929): Now we show the dataset size: - from the dataset card (in the side column) - from the datasets-server (in the viewer) But, even if the size is the same, we see a mismatch because the viewer shows MB, while t...
1,653,545,835
I_kwDODunzps5ijxtr
5,706
Support categorical data types for Parquet
closed
completed
2023-04-04T09:45:35
2024-06-07T12:20:43
2024-06-07T12:20:43Z
https://github.com/huggingface/datasets/issues/5706
kklemon
[ "enhancement" ]
[ "mhattingpete" ]
[ "Hi ! We could definitely a type that holds the categories and uses a DictionaryType storage. There's a ClassLabel type that is similar with a 'names' parameter (similar to a id2label in deep learning frameworks) that uses an integer array as storage.\r\n\r\nIt can be added in `features.py`. Here are some pointers:...
NONE
### Feature request Huggingface datasets does not seem to support categorical / dictionary data types for Parquet as of now. There seems to be a `TODO` in the code for this feature but no implementation yet. Below you can find sample code to reproduce the error that is currently thrown when attempting to read a Parq...
1,653,500,383
I_kwDODunzps5ijmnf
5,705
Getting next item from IterableDataset took forever.
closed
completed
2023-04-04T09:16:17
2023-04-05T23:35:41
2023-04-05T23:35:41Z
https://github.com/huggingface/datasets/issues/5705
HongtaoYang
[]
[]
[ "Hi! It can take some time to iterate over Parquet files as big as yours, convert the samples to Python, and find the first one that matches a filter predicate before yielding it...", "Thanks @mariosasko, I figured it was the filter operation. I'm closing this issue because it is not a bug, it is the expected beh...
NONE
### Describe the bug I have a large dataset, about 500GB. The format of the dataset is parquet. I then load the dataset and try to get the first item ```python def get_one_item(): dataset = load_dataset("path/to/datafiles", split="train", cache_dir=".", streaming=True) dataset = dataset.filter(lambda...
1,653,104,720
I_kwDODunzps5iiGBQ
5,702
Is it possible or how to define a `datasets.Sequence` that could potentially be either a dict, a str, or None?
closed
completed
2023-04-04T03:20:43
2023-04-05T14:15:18
2023-04-05T14:15:17Z
https://github.com/huggingface/datasets/issues/5702
gitforziio
[ "enhancement" ]
[]
[ "Hi ! `datasets` uses Apache Arrow as backend to store the data, and it requires each column to have a fixed type. Therefore a column can't have a mix of dicts/lists/strings.\r\n\r\nThough it's possible to have one (nullable) field for each type:\r\n```python\r\nfeatures = Features({\r\n \"text_alone\": Value(\"...
NONE
### Feature request Hello! Apologies if my question sounds naive: I was wondering if it’s possible, or how one would go about defining a 'datasets.Sequence' element in datasets.Features that could potentially be either a dict, a str, or None? Specifically, I’d like to define a feature for a list that contains 18...
1,652,437,419
I_kwDODunzps5ifjGr
5,699
Issue when wanting to split in memory a cached dataset
open
2023-04-03T17:00:07
2024-05-15T13:12:18
https://github.com/huggingface/datasets/issues/5699
FrancoisNoyez
[]
[]
[ "Hi ! Good catch, this is wrong indeed and thanks for opening a PR :)", "Facing the same issue. Kindly fix this bug." ]
NONE
### Describe the bug **In the 'train_test_split' method of the Dataset class** (defined datasets/arrow_dataset.py), **if 'self.cache_files' is not empty**, then, **regarding the input parameters 'train_indices_cache_file_name' and 'test_indices_cache_file_name', if they are None**, we modify them to make them not No...
1,652,183,611
I_kwDODunzps5ielI7
5,698
Add Qdrant as another search index
open
2023-04-03T14:25:19
2023-04-11T10:28:40
https://github.com/huggingface/datasets/issues/5698
kacperlukawski
[ "enhancement" ]
[]
[ "@mariosasko I'd appreciate your feedback on this. " ]
CONTRIBUTOR
### Feature request I'd suggest adding Qdrant (https://qdrant.tech) as another search index available, so users can directly build an index from a dataset. Currently, FAISS and ElasticSearch are only supported: https://huggingface.co/docs/datasets/faiss_es ### Motivation ElasticSearch is a keyword-based search syst...