id
stringlengths
18
24
number
int64
2
8.48k
title
stringlengths
1
290
body
stringlengths
0
228k
state
stringclasses
2 values
createdAt
timestamp[s]date
2020-04-14 18:18:51
2026-08-13 03:02:44
updatedAt
timestamp[s]date
2020-04-29 09:23:05
2026-08-15 04:47:12
closedAt
timestamp[s]date
2020-04-29 09:23:05
2026-07-28 10:29:56
url
stringlengths
48
51
author
dict
labels
dict
comments
listlengths
0
30
I_kwDODunzps5U9GFL
5,170
[Caching] Deterministic hashing of torch tensors
Currently this fails ```python import torch from datasets.fingerprint import Hasher t = torch.tensor([1.]) def func(x): return t + x hash1 = Hasher.hash(func) t = torch.tensor([1.]) hash2 = Hasher.hash(func) assert hash1 == hash2 ``` Also as noticed in https://discuss.huggingface.co/t/dataset-ca...
CLOSED
2022-10-27T09:15:15
2022-11-02T17:18:43
2022-11-02T17:18:43
https://github.com/huggingface/datasets/issues/5170
{ "login": "lhoestq" }
{ "nodes": [ { "name": "enhancement" } ] }
[]
I_kwDODunzps5U2qql
5,165
Memory explosion when trying to access 4d tensors in datasets cast to torch or np
### Describe the bug When trying to access an item by index, in a datasets.Dataset cast to torch/np using `set_format` or `with_format`, we get a memory explosion if the item contains 4d (or above) tensors. ### Steps to reproduce the bug MWE: ```python from datasets import load_dataset import numpy as np de...
OPEN
2022-10-26T08:14:47
2022-10-26T08:14:47
null
https://github.com/huggingface/datasets/issues/5165
{ "login": "clefourrier" }
{ "nodes": [] }
[]
I_kwDODunzps5UyQi4
5,162
Pip-compile: Could not find a version that matches dill<0.3.6,>=0.3.6
### Describe the bug When using `pip-compile` (part of `pip-tools`) to generate a pinned requirements file that includes `datasets`, a version conflict of `dill` appears. It is caused by a transitive dependency conflict between `datasets` and `multiprocess`. ### Steps to reproduce the bug ```bash $ echo "dataset...
CLOSED
2022-10-25T13:23:50
2022-11-14T08:25:37
2022-10-28T05:38:15
https://github.com/huggingface/datasets/issues/5162
{ "login": "Rijgersberg" }
{ "nodes": [] }
[ "Thanks for reporting, @Rijgersberg.\r\n\r\nWe were waiting for the release of `dill` 0.3.6, that happened 2 days ago (24 Oct 2022): https://github.com/uqfoundation/dill/releases/tag/dill-0.3.6\r\n- See comment: https://github.com/huggingface/datasets/pull/4397#discussion_r880629543\r\n\r\nAlso `multiprocess` 0.70....
I_kwDODunzps5Ux6uk
5,161
Dataset can’t cache model’s outputs
### Describe the bug Hi, I try to cache some outputs of teacher model( Knowledge Distillation ) by using map function of Dataset library, while every time I run my code, I still recompute all the sequences. I tested Bert Model like this, I got different hash every single run, so any idea to deal with this? ### Ste...
CLOSED
2022-10-25T12:19:00
2022-11-03T16:12:52
2022-11-03T16:12:51
https://github.com/huggingface/datasets/issues/5161
{ "login": "jongjyh" }
{ "nodes": [] }
[ "Addressed in https://github.com/huggingface/datasets/pull/5191 (torch.Tensor objects now produce deterministic hashes)" ]
I_kwDODunzps5UxPUS
5,160
Automatically add filename for image/audio folder
### Feature request When creating a custom audio of image dataset, it would be great to automatically have access to the filename. It should be both: a) Automatically displayed in the viewer b) Automatically added as a column to the dataset when doing `load_dataset` In `diffusers` our test rely quite heavily on i...
OPEN
2022-10-25T09:56:49
2022-10-26T16:51:46
null
https://github.com/huggingface/datasets/issues/5160
{ "login": "patrickvonplaten" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Also cc @anton-l ", "BTW the exact same holds true for the audio folder", "I'm fine with adding a new column with the file name personally. Not sure how breaking this is though", "@patrickvonplaten do you mean just filename or full relative path inside the repo?\r\nI think it shouldn't be breaking, at least ...
I_kwDODunzps5UwucX
5,158
Fix language and license tag names in all Hub datasets
While working on this: - #5137 we realized there are still many datasets with deprecated "languages" and "licenses" tag names (instead of "language" and "license"). This is a blocking issue: no subsequent PR can be opened to modify their metadata: a ValueError will be thrown. We should fix the "language" and ...
CLOSED
2022-10-25T08:19:29
2022-10-25T11:27:26
2022-10-25T10:42:19
https://github.com/huggingface/datasets/issues/5158
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "dataset contribution" } ] }
[ "There are currently 402 datasets with deprecated \"languages\" or \"licenses\".", "hey @albertvillanova ,i would love to work on this issue if you like.", "Hi @ayushthe1, thanks for your offer.\r\n\r\nBut as you can see, I self-assigned this issue.\r\n\r\nI have already fixed 200 out of the 402 datasets. My sc...
I_kwDODunzps5UvXmZ
5,157
Consistent caching between python and jupyter
### Feature request I hope this is not my mistake, currently if I use `load_dataset` from a python session on a custom dataset to do the preprocessing, it will be saved in the cache and in other python sessions it will be loaded from the cache, however calling the same from a jupyter notebook does not work, meaning th...
CLOSED
2022-10-25T01:34:33
2022-11-02T15:43:22
2022-11-02T15:43:22
https://github.com/huggingface/datasets/issues/5157
{ "login": "gpucce" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi ! Maybe it's possible to have a consistent hash for a function defined in `__main__` and a function define in a notebook.\r\n\r\nHowever for functions imported from another location, pickle uses the location to identify the code, so in that case we can't do much I believe.\r\n\r\nWould it be ok for you if we on...
I_kwDODunzps5UvOs1
5,156
Unable to download dataset using Azure Data Lake Gen 2
### Describe the bug When using the DatasetBuilder method with the credentials for the cloud storage Azure Data Lake (adl) Gen2, the following error is showed: ``` Traceback (most recent call last): File "download_hf_dataset.py", line 143, in <module> main() File "download_hf_dataset.py", line 102, in mai...
CLOSED
2022-10-25T00:43:18
2024-02-15T09:48:36
2022-11-17T23:37:08
https://github.com/huggingface/datasets/issues/5156
{ "login": "clarissesimoes" }
{ "nodes": [] }
[ "Hi ! From the `adlfs` docs, there are two filesystems you can use:\r\n> To use the Gen1 filesystem:\r\n> - known_implementations[‘adl’] = {‘class’: ‘adlfs.AzureDatalakeFileSystem’}\r\n> \r\n> To use the Gen2 filesystem:\r\n> - known_implementations[‘abfs’] = {‘class’: ‘adlfs.AzureBlobFileSystem’}\r\n\r\nIf I'm no...
I_kwDODunzps5UsDKx
5,153
default Image/AudioFolder infers labels when there is no metadata files even if there is only one dir
### Describe the bug By default FolderBasedBuilder infers labels if there is not metadata files, even if it's meaningless (for example, they are in a single directory or in the root folder, see this repo as an example: https://huggingface.co/datasets/patrickvonplaten/audios As this is a corner case for quick expl...
CLOSED
2022-10-24T13:28:18
2022-11-15T16:31:10
2022-11-15T16:31:09
https://github.com/huggingface/datasets/issues/5153
{ "login": "polinaeterna" }
{ "nodes": [ { "name": "bug" } ] }
[ "Makes sense! For the last structure, we could count the path segments (delimited by \"/\" for URLs and `os.sep` for local paths) to ensure all inferred labels are on the same level. Otherwise, I think it's safe to assume they are meaningless and ignore them.\r\n" ]
I_kwDODunzps5Ur9LX
5,152
refactor FolderBasedBuilder and Image/AudioFolder tests
Tests for FolderBasedBuilder, ImageFolder and AudioFolder are mostly duplicating each other. They need to be refactored and Audio/ImageFolder should have only tests specific to the loader.
OPEN
2022-10-24T13:11:52
2022-10-24T13:11:52
null
https://github.com/huggingface/datasets/issues/5152
{ "login": "polinaeterna" }
{ "nodes": [ { "name": "refactoring" } ] }
[]
I_kwDODunzps5Ur417
5,151
Add support to create different configs with `push_to_hub` (+ inferring configs from directories with package managers?)
Now one can push only different splits within one default config of a dataset. Would be nice to allow something like: ``` ds.push_to_hub(repo_name, config=config_name) ``` I'm not sure, but this will probably require changes in `data_files.py` patterns. If so, it would also allow to create different configs fo...
OPEN
2022-10-24T12:59:18
2022-11-04T14:55:20
null
https://github.com/huggingface/datasets/issues/5151
{ "login": "polinaeterna" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "also asked in https://discuss.huggingface.co/t/create-multiple-dataset-configs-with-push-to-hub-method/25480" ]
I_kwDODunzps5Ure7H
5,150
Problems after upgrading to 2.6.1
### Describe the bug Loading a dataset_dict from disk with `load_from_disk` is now creating a `KeyError "length"` that was not occurring in v2.5.2. Context: - Each individual dataset in the dict is created with `Dataset.from_pandas` - The dataset_dict is create from a dict of `Dataset`s, e.g., `DatasetDict({"tr...
OPEN
2022-10-24T11:32:36
2024-05-12T07:40:03
null
https://github.com/huggingface/datasets/issues/5150
{ "login": "pietrolesci" }
{ "nodes": [] }
[ "Hi! I can't reproduce the error following these steps. Can you please provide a reproducible example?", "I faced the same issue:\r\n\r\n### Repro\r\n```\r\n!pip install datasets==2.6.1\r\nimport datasets as Dataset\r\ndataset = Dataset.from_pandas(dataframe)\r\ndataset.save_to_disk(local)\r\n\r\n!pip install dat...
I_kwDODunzps5UptNW
5,148
Cannot find the rvl_cdip dataset
Hi, I am trying to use load_dataset to load the official "rvl_cdip" dataset but getting an error. dataset = load_dataset("rvl_cdip") Couldn't find 'rvl_cdip' on the Hugging Face Hub either: FileNotFoundError: Couldn't find the file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/rvl_cdi...
CLOSED
2022-10-24T04:57:42
2022-10-24T12:23:47
2022-10-24T06:25:28
https://github.com/huggingface/datasets/issues/5148
{ "login": "santule" }
{ "nodes": [] }
[ "Hi, @santule.\r\n\r\nWe have transferred all dataset scripts from GitHub to the Hugging Face Hub: https://huggingface.co/datasets\r\n- Concretely, you have \"rvl_cdip\" here: https://huggingface.co/datasets/rvl_cdip\r\n\r\nTo be able to load them, you should update your `datasets` library:\r\n```\r\npip install -U...
I_kwDODunzps5UnDDj
5,147
Allow ignoring kwargs inside fn_kwargs during dataset.map's fingerprinting
### Feature request `dataset.map` accepts a `fn_kwargs` that is passed to `fn`. Currently, the whole `fn_kwargs` is used by `fingerprint_transform` to calculate the new fingerprint. I'd like to be able to inform `fingerprint_transform` which `fn_kwargs` shoud/shouldn't be taken into account during hashing. Of co...
OPEN
2022-10-22T21:46:38
2022-11-01T22:19:07
null
https://github.com/huggingface/datasets/issues/5147
{ "login": "falcaopetri" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi ! In the `transformers` issue the object to not hash is a `Pool` - I think you can instantiate it inside your function instead of passing it as a parameter. It's good practice that your function and all its fn_kwargs are picklable, in case you want to parallelize `map` using `num_proc>1`\r\n\r\nFor the other ca...
I_kwDODunzps5UhQvM
5,145
Dataset order is not deterministic with ZIP archives and `iter_files`
### Describe the bug For the `beans` dataset (did not try on other), the order of samples is not the same on different machines. Tested on my local laptop, github actions machine, and ec2 instance. The three yield a different order. ### Steps to reproduce the bug In a clean docker container or conda environmen...
CLOSED
2022-10-21T09:00:03
2022-10-27T09:51:49
2022-10-27T09:51:10
https://github.com/huggingface/datasets/issues/5145
{ "login": "fxmarty" }
{ "nodes": [] }
[ "Thanks for reporting ! The issue doesn't come from shuffling, but from `beans` row order not being deterministic:\r\n\r\nhttps://huggingface.co/datasets/beans/blob/main/beans.py uses `dl_manager.iter_files` on ZIP archives and the file order doesn't seen to be deterministic and changes across machines", "Thank y...
I_kwDODunzps5UhJPL
5,144
Inconsistent documentation on map remove_columns
### Describe the bug The page [process](https://huggingface.co/docs/datasets/process) says this about the parameter `remove_columns` of the function `map`: When you remove a column, it is only removed after the example has been provided to the mapped function. So it seems that the `remove_columns` parameter remo...
CLOSED
2022-10-21T08:37:53
2022-11-15T14:15:10
2022-11-15T14:15:10
https://github.com/huggingface/datasets/issues/5144
{ "login": "zhaowei-wang-nlp" }
{ "nodes": [ { "name": "documentation" }, { "name": "duplicate" }, { "name": "good first issue" }, { "name": "hacktoberfest" } ] }
[ "Thanks for reporting, @zhaowei-wang-nlp.\r\n\r\nYou are right, the documentation is confusing on the behavior of `remove_columns`. We should better explain it. ", "This is a duplicate of https://github.com/huggingface/datasets/issues/2343.", "I'm closing this issue because as @mariosasko pointed out, it is a d...
I_kwDODunzps5UczhC
5,143
DownloadManager Git LFS support
### Feature request Maybe I'm mistaken but the `DownloadManager` does not support extracting git lfs files out of the box right? Using `dl_manager.download()` or `dl_manager.download_and_extract()` still returns lfs files afaict. Is there a good way to write a dataset loading script for a repo with lfs files? ##...
CLOSED
2022-10-20T15:29:29
2022-10-20T17:17:10
2022-10-20T17:17:10
https://github.com/huggingface/datasets/issues/5143
{ "login": "Muennighoff" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hey ! Actually it works, just pass the right URL ;)\r\nThe URL must be the one with “/resolve/”\r\n\r\ne.g. https://huggingface.co/datasets/imagenet-1k/resolve/main/data/test_images.tar.gz\r\n\r\nYou can even pass a relative path to the dl_manager instead, like `dl_manager.download(\"data/test_images.tar.gz\")`", ...
I_kwDODunzps5UUbwj
5,137
Align task tags in dataset metadata
## Describe Once we have agreed on a common naming for task tags for all open source projects, we should align on them. ## Steps - [x] Align task tags in canonical datasets - [x] task_categories: 4 datasets - [x] task_ids (by @lhoestq) - [x] Open PRs in community datasets - [x] task_categories: 451 datas...
CLOSED
2022-10-19T09:41:42
2022-11-10T05:25:58
2022-10-25T06:17:00
https://github.com/huggingface/datasets/issues/5137
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "dataset contribution" } ] }
[ "I removed all the invalid task_ids in datasts without namespace, based on the <s>(internal)</s> types.ts", "(Types.ts is not internal it's public)", "I have opened PRs to fix the task_ids in all datasets within a namespace as well.\r\n\r\nWorking on task_categories...", "For future reference: this fix had so...
I_kwDODunzps5UTjzP
5,135
Update docs once dataset scripts transferred to the Hub
## Describe the bug As discussed in: - https://github.com/huggingface/hub-docs/pull/423#pullrequestreview-1146083701 we should update our docs once dataset scripts have been transferred to the Hub (and removed from GitHub): - #4974 Concretely: - [x] Datasets on GitHub (legacy): https://huggingface.co/docs/dat...
CLOSED
2022-10-19T06:58:19
2022-10-20T08:10:01
2022-10-20T08:10:01
https://github.com/huggingface/datasets/issues/5135
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "documentation" } ] }
[]
I_kwDODunzps5UQi-H
5,134
Raise ImportError instead of OSError if required extraction library is not installed
According to the official Python docs, `OSError` should be thrown in the following situations: > This exception is raised when a system function returns a system-related error, including I/O failures such as “file not found” or “disk full” (not for illegal argument types or other incidental errors). Hence, it makes...
CLOSED
2022-10-18T17:53:46
2022-10-25T15:56:59
2022-10-25T15:56:59
https://github.com/huggingface/datasets/issues/5134
{ "login": "mariosasko" }
{ "nodes": [ { "name": "enhancement" }, { "name": "good first issue" }, { "name": "hacktoberfest" } ] }
[ "hey ,i would like to work on this issue . Please assign it to me.", "hey @mariosasko , i made a pr for this issue. Could you please review it.\r\nAlso i found multiple `OSError` in `extract.py` file which i thought could be replaced too but wasn't sure about them.\r\nPlease do tell if that also needs to be done....
I_kwDODunzps5UQi6m
5,133
Tensor operation not functioning in dataset mapping
## Describe the bug I'm doing a torch.mean() operation in data preprocessing, and it's not working. ## Steps to reproduce the bug ``` from transformers import pipeline import torch import numpy as np from datasets import load_dataset device = 'cuda:0' raw_dataset = load_dataset("glue", "sst2") feature_extra...
CLOSED
2022-10-18T17:53:35
2022-10-19T04:15:45
2022-10-19T04:15:44
https://github.com/huggingface/datasets/issues/5133
{ "login": "xinghaow99" }
{ "nodes": [ { "name": "bug" } ] }
[ "Hi! The Torch ops in your snippet are not equivalent to the NumPy ones, hence the difference. You can get the same behavior by replacing the line `feature = torch.mean(feature, dim=1)` with `feature = feature.squeeze().mean(1)` .", "> Hi! The Torch ops in your snippet are not equivalent to the NumPy ones, hence ...
I_kwDODunzps5UQe-K
5,132
Depracate `num_proc` parameter in `DownloadManager.extract`
The `num_proc` parameter is only present in `DownloadManager.extract` but not in `StreamingDownloadManager.extract`, making it impossible to support streaming in the dataset scripts that use it (`openwebtext` and `the_pile_stack_exchange`). We can avoid this situation by deprecating this parameter and passing `Download...
CLOSED
2022-10-18T17:41:05
2022-10-25T15:56:46
2022-10-25T15:56:46
https://github.com/huggingface/datasets/issues/5132
{ "login": "mariosasko" }
{ "nodes": [ { "name": "enhancement" }, { "name": "good first issue" }, { "name": "hacktoberfest" } ] }
[ "I can take this! #self-assign", "#self-assign", "@lazarust i'm already working on this issue :smile: ", "#self-assign", "hey @mariosasko , i made a pr for this issue. Could you please review it." ]
I_kwDODunzps5UQNSP
5,131
WikiText 103 tokenizer hangs
See issue here: https://github.com/huggingface/transformers/issues/19702
CLOSED
2022-10-18T16:44:00
2023-08-08T08:42:40
2023-07-21T14:41:51
https://github.com/huggingface/datasets/issues/5131
{ "login": "TrentBrick" }
{ "nodes": [ { "name": "bug" } ] }
[ "any updates on this? It happens to me on [OpenWikiText-20%](https://huggingface.co/datasets/Bingsu/openwebtext_20p) dataset, but not on [OpenWebText-10k](https://huggingface.co/datasets/stas/openwebtext-10k). This is really strange because I don't change anything else in my running script.\r\n\r\ntransformers vers...
I_kwDODunzps5UOSbw
5,129
unexpected `cast` or `class_encode_column` result after `rename_column`
## Describe the bug When invoke `cast` or `class_encode_column` to a colunm renamed by `rename_column` , it will convert all the variables in this column into one variable. I also run this script in version 2.5.2, this bug does not appear. So I switched to the older version. ## Steps to reproduce the bug ```python...
CLOSED
2022-10-18T11:15:24
2022-10-19T03:02:26
2022-10-19T03:02:26
https://github.com/huggingface/datasets/issues/5129
{ "login": "quaeast" }
{ "nodes": [ { "name": "bug" } ] }
[ "Hi! Unfortunately, I can't reproduce this issue locally (in Python 3.7/3.10) or in Colab. I would assume this is due to a bug we fixed in the latest release, but your version is up-to-date, so I'm not sure if there is something we can do to help...", "Hi, 方子东. I tried running the code with exact the same configu...
I_kwDODunzps5UF4nU
5,123
datasets freezes with streaming mode in multiple-gpu
## Describe the bug Hi. I am using this dataloader, which is for processing large datasets in streaming mode mentioned in one of examples of huggingface. I am using it to read c4: https://github.com/huggingface/transformers/blob/b48ac1a094e572d6076b46a9e4ed3e0ebe978afc/examples/research_projects/codeparrot/scripts/cod...
OPEN
2022-10-17T03:28:16
2025-12-15T18:48:31
null
https://github.com/huggingface/datasets/issues/5123
{ "login": "jackfeinmann5" }
{ "nodes": [ { "name": "bug" } ] }
[ "@lhoestq I tested the script without accelerator, and I confirm this is due to datasets part as this gets similar results without accelerator.", "Hi ! You said it works on 1 GPU but doesn't wortk without accelerator - what's the difference between running on 1 GPU and running without accelerator in your case ?"...
I_kwDODunzps5UEz6t
5,118
Installing `datasets` on M1 computers
## Describe the bug I wanted to install `datasets` dependencies on my M1 (in order to start contributing to the project). However, I got an error regarding `tensorflow`. On M1, `tensorflow-macos` needs to be installed instead. Can we add a conditional requirement, so that `tensorflow-macos` would be installed on M1...
CLOSED
2022-10-16T16:50:08
2022-10-19T09:10:08
2022-10-19T09:10:08
https://github.com/huggingface/datasets/issues/5118
{ "login": "david1542" }
{ "nodes": [ { "name": "bug" } ] }
[ "Thanks for reporting, @david1542." ]
I_kwDODunzps5UBFoS
5,117
Progress bars have color red and never completed to 100%
## Describe the bug Progress bars after transformative operations turn in red and never be completed to 100% ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset('rotten_tomatoes', split='test').filter(lambda o: True) ``` ## Expected results Progress bar should be 100% an...
CLOSED
2022-10-14T16:12:30
2024-06-19T19:03:42
2022-10-23T12:58:41
https://github.com/huggingface/datasets/issues/5117
{ "login": "echatzikyriakidis" }
{ "nodes": [ { "name": "bug" } ] }
[ "Hi @echatzikyriakidis, thanks for submitting the issue.\r\nWhich shell are you using exactly? I tried to run the command you sent, but I don't see colors at all 🧐\r\n\r\nI tried from bash and zsh as well.", "Hi @david1542 ,\r\n\r\nI use Google Colab.\r\n", "Got it. I [created a PR](https://github.com/huggingf...
I_kwDODunzps5T_z8C
5,114
load_from_disk with remote filesystem fails due to a wrong temporary local folder path
## Describe the bug The function load_from_disk fails when using a remote filesystem because of a wrong temporary path generation in the load_from_disk method of arrow_dataset.py: ```python if is_remote_filesystem(fs): src_dataset_path = extract_path_from_uri(dataset_path) dataset_path = Dataset._build...
OPEN
2022-10-14T11:54:53
2022-11-19T07:13:10
null
https://github.com/huggingface/datasets/issues/5114
{ "login": "bruno-hays" }
{ "nodes": [ { "name": "bug" } ] }
[ "Hi Hubert! Could you please probably create a publicly available `gs://` dataset link? I think this would be easier for others to directly start to debug.", "What seems to work is to change the line to:\r\n```\r\nfs.download(src_dataset_path, dataset_path.parent.as_posix(), recursive=True)\r\n```" ]
I_kwDODunzps5T_dJx
5,112
Bug with filtered indices
## Describe the bug As reported by @PartiallyTyped (and by @Muennighoff): - https://github.com/huggingface/datasets/issues/5111#issuecomment-1278652524 There is an issue with the indices of a filtered dataset. ## Steps to reproduce the bug ```python ds = Dataset.from_dict({"num": [0, 1, 2, 3]}) ds = ds.filte...
CLOSED
2022-10-14T10:35:47
2022-10-14T13:55:03
2022-10-14T12:11:45
https://github.com/huggingface/datasets/issues/5112
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "bug" } ] }
[ "The issue is here:\r\nhttps://github.com/huggingface/datasets/blob/3ad9644b9a2e4558dd1d0f1e43c67658674e6228/src/datasets/arrow_dataset.py#L2964", "@PartiallyTyped, @Muennighoff: the issue is fixed.\r\n\r\nWe are planning to make a patch release today.", "Thanks a lot for the swift response! For a brief moment ...
I_kwDODunzps5T7o9C
5,111
map and filter not working properly in multiprocessing with the new release 2.6.0
## Describe the bug When mapping is used on a dataset with more than one process, there is a weird behavior when trying to use `filter` , it's like only the samples from one worker are retrieved, one needs to specify the same `num_proc` in filter for it to work properly. This doesn't happen with `datasets` version 2.5...
CLOSED
2022-10-13T17:00:55
2022-10-17T08:26:59
2022-10-14T14:59:59
https://github.com/huggingface/datasets/issues/5111
{ "login": "loubnabnl" }
{ "nodes": [ { "name": "bug" } ] }
[ "Same bug exists with `num_proc=1` on colab. `3.7.14 (default, Sep 8 2022, 00:06:44) [GCC 7.5.0]` ", "Thanks for reporting, @loubnabnl and for the additional information, @PartiallyTyped.\r\n\r\nHowever, I'm not able to reproduce this issue, neither locally nor on Colab:\r\n```\r\nDataset({\r\n features: ['re...
I_kwDODunzps5T47_S
5,109
Map caching not working for some class methods
## Describe the bug The cache loading is not working as expected for some class methods with a model stored in an attribute. The new fingerprint for `_map_single` is not the same at each run. The hasher generate a different hash for the class method. This comes from `dumps` function in `datasets.utils.py_utils` whic...
CLOSED
2022-10-13T09:12:58
2022-10-17T10:38:45
2022-10-17T10:38:45
https://github.com/huggingface/datasets/issues/5109
{ "login": "Mouhanedg56" }
{ "nodes": [ { "name": "bug" } ] }
[ "The hash used for caching is computed by pickling recursively the function passed to `map`. Maybe some objects don't have the same hash across sessions. In particular you can check the hash of your model using\r\n```python\r\nfrom datasets.fingerprint import Hasher\r\nobj = AutoModel.from_config(config=config, ad...
I_kwDODunzps5Tzw2V
5,105
Specifying an exisiting folder in download_and_prepare deletes everything in it
## Describe the bug The builder correctly creates the `output_dir` folder if it doesn't exist, but if the folder exists everything within it is deleted. Specifying `"."` as the `output_dir` deletes everything in your current dir but also leads to **another bug** whose traceback is the following: ``` ...
CLOSED
2022-10-12T11:53:33
2026-04-27T18:44:32
2026-04-27T18:44:32
https://github.com/huggingface/datasets/issues/5105
{ "login": "cakiki" }
{ "nodes": [ { "name": "bug" } ] }
[ "cc @lhoestq ", "Thanks for reporting, @cakiki.\r\n\r\nI would say the deletion of the dir is an expected behavior though...", "`dask.to_parquet` has an \"overwrite\" parameter and default is `False`, we could also have something similar", "Thank you both for your feedback!\r\n\r\n@albertvillanova I think I m...
I_kwDODunzps5Turs6
5,102
Error in create a dataset from a Python generator
## Describe the bug In HOW-TO-GUIDES > Load > [Python generator](https://huggingface.co/docs/datasets/v2.5.2/en/loading#python-generator), the code example defines the `my_gen` function, but when creating the dataset, an undefined `my_dict` is passed in. ```Python >>> from datasets import Dataset >>> def my_gen...
CLOSED
2022-10-11T14:28:58
2022-10-12T11:31:56
2022-10-12T11:31:56
https://github.com/huggingface/datasets/issues/5102
{ "login": "yangxuhui" }
{ "nodes": [ { "name": "bug" }, { "name": "good first issue" }, { "name": "hacktoberfest" } ] }
[ "Hi, thanks for reporting! The last line should be `dataset = Dataset.from_generator(my_gen)`.", "Can I work on this one?" ]
I_kwDODunzps5TtlZa
5,100
datasets[s3] sagemaker can't run a model - datasets issue with Value and ClassLabel and cast() method
CLOSED
2022-10-11T11:16:31
2022-10-11T13:48:26
2022-10-11T13:48:26
https://github.com/huggingface/datasets/issues/5100
{ "login": "jagochi" }
{ "nodes": [] }
[]
I_kwDODunzps5TtP0P
5,099
datasets doesn't support # in data paths
## Describe the bug dataset files with `#` symbol their paths aren't read correctly. ## Steps to reproduce the bug The data in folder `c#`of this [dataset](https://huggingface.co/datasets/loubnabnl/bigcode_csharp) can't be loaded. While the folder `c_sharp` with the same data is loaded properly ```python ds = lo...
CLOSED
2022-10-11T10:05:32
2022-10-13T13:14:20
2022-10-13T13:14:20
https://github.com/huggingface/datasets/issues/5099
{ "login": "loubnabnl" }
{ "nodes": [ { "name": "bug" }, { "name": "good first issue" }, { "name": "hacktoberfest" } ] }
[ "`datasets` doesn't seem to urlencode the directory names here\r\n\r\nhttps://github.com/huggingface/datasets/blob/7feeb5648a63b6135a8259dedc3b1e19185ee4c7/src/datasets/utils/file_utils.py#L109-L111\r\n\r\nfor example we should have\r\n```python\r\nfrom datasets.utils.file_utils import hf_hub_url\r\n\r\nurl = hf_hu...
I_kwDODunzps5TsDuW
5,098
Classes label error when loading symbolic links using imagefolder
**Is your feature request related to a problem? Please describe.** Like this: #4015 When there are **symbolic links** to pictures in the data folder, the parent folder name of the **real file** will be used as the class name instead of the parent folder of the symbolic link itself. Can you give an option to decide wh...
CLOSED
2022-10-11T06:10:58
2022-11-14T14:40:20
2022-11-14T14:40:20
https://github.com/huggingface/datasets/issues/5098
{ "login": "horizon86" }
{ "nodes": [ { "name": "enhancement" }, { "name": "good first issue" }, { "name": "hacktoberfest" } ] }
[ "It can be solved temporarily by remove `resolve` in \r\nhttps://github.com/huggingface/datasets/blob/bef23be3d9543b1ca2da87ab2f05070201044ddc/src/datasets/data_files.py#L278", "Hi, thanks for reporting and suggesting a fix! We still need to account for `.`/`..` in the file path, so a more robust fix would be `P...
I_kwDODunzps5TqnJ5
5,097
Fatal error with pyarrow/libarrow.so
## Describe the bug When using datasets, at the very end of my jobs the program crashes (see trace below). It doesn't seem to affect anything, as it appears to happen as the program is closing down. Just importing `datasets` is enough to cause the error. ## Steps to reproduce the bug This is sufficient to reprodu...
CLOSED
2022-10-10T20:29:04
2022-10-11T06:56:01
2022-10-11T06:56:00
https://github.com/huggingface/datasets/issues/5097
{ "login": "catalys1" }
{ "nodes": [ { "name": "bug" } ] }
[ "Thanks for reporting, @catalys1.\r\n\r\nThis seems a duplicate of:\r\n- #3310 \r\n\r\nThe source of the problem is in PyArrow:\r\n- [ARROW-15141: [C++] Fatal error condition occurred in aws_thread_launch](https://issues.apache.org/jira/browse/ARROW-15141)\r\n- [ARROW-17501: [C++] Fatal error condition occurred in ...
I_kwDODunzps5TpeBo
5,096
Transfer some canonical datasets under an organization namespace
As discussed during our @huggingface/datasets meeting, we are planning to move some "canonical" dataset scripts under their corresponding organization namespace (if this does not exist). On the contrary, if the dataset already exists under the organization namespace, we are deprecating the canonical one (and eventua...
CLOSED
2022-10-10T15:44:31
2024-06-24T06:06:28
2024-06-24T06:02:45
https://github.com/huggingface/datasets/issues/5096
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "dataset contribution" } ] }
[ "The transfer of the dummy dataset to the dummy org works as expected:\r\n```python\r\nIn [1]: from datasets import load_dataset; ds = load_dataset(\"dummy_canonical_dataset\", download_mode=\"force_redownload\"); ds\r\nDownloading builder script: 100%|███████████████████████████████████████████████████████████████...
I_kwDODunzps5To1xm
5,094
Multiprocessing with `Dataset.map` and `PyTorch` results in deadlock
## Describe the bug There seems to be an issue with using multiprocessing with `datasets.Dataset.map` (i.e. setting `num_proc` to a value greater than one) combined with a function that uses `torch` under the hood. The subprocesses that `datasets.Dataset.map` spawns [a this step](https://github.com/huggingface/datase...
CLOSED
2022-10-10T13:50:56
2023-07-24T15:29:13
2023-07-24T15:29:13
https://github.com/huggingface/datasets/issues/5094
{ "login": "RR-28023" }
{ "nodes": [ { "name": "bug" } ] }
[ "Hi ! Could it be an Out of Memory issue that could have killed one of the processes ? can you check your memory ?", "Hi! I don't think it is a memory issue. I'm monitoring the main and spawn python processes and threads with `htop` and the memory does not peak. Besides, the example I've posted above should not b...
I_kwDODunzps5TnykM
5,093
Mismatch between tutoriel and doc
## Describe the bug In the "Process text data" tutorial, [`map` has `return_tensors` as kwarg](https://huggingface.co/docs/datasets/main/en/nlp_process#map). It does not seem to appear in the [function documentation](https://huggingface.co/docs/datasets/main/en/package_reference/main_classes#datasets.Dataset.map), nor...
CLOSED
2022-10-10T10:23:53
2022-10-10T17:51:15
2022-10-10T17:51:14
https://github.com/huggingface/datasets/issues/5093
{ "login": "clefourrier" }
{ "nodes": [ { "name": "bug" }, { "name": "good first issue" }, { "name": "hacktoberfest" } ] }
[ "Hi, thanks for reporting! This line should be replaced with \r\n```python\r\ndataset = dataset.map(lambda examples: tokenizer(examples[\"text\"], return_tensors=\"np\"), batched=True)\r\n```\r\nfor it to work (the `return_tensors` part inside the `tokenizer` call).", "Can I work on this?", "Fixed in https://gi...
I_kwDODunzps5TgyBH
5,090
Review sync issues from GitHub to Hub
## Describe the bug We have discovered that sometimes there were sync issues between GitHub and Hub datasets, after a merge commit to main branch. For example: - this merge commit: https://github.com/huggingface/datasets/commit/d74a9e8e4bfff1fed03a4cab99180a841d7caf4b - was not properly synced with the Hub: https...
CLOSED
2022-10-07T12:31:56
2022-10-08T07:07:36
2022-10-08T07:07:36
https://github.com/huggingface/datasets/issues/5090
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "bug" } ] }
[ "Nice!!" ]
I_kwDODunzps5TflYG
5,089
Resume failed process
**Is your feature request related to a problem? Please describe.** When a process (`map`, `filter`, etc.) crashes part-way through, you lose all progress. **Describe the solution you'd like** It would be good if the cache reflected the partial progress, so that after we restart the script, the process can restart ...
OPEN
2022-10-07T08:07:03
2022-10-07T08:07:03
null
https://github.com/huggingface/datasets/issues/5089
{ "login": "felix-schneider" }
{ "nodes": [ { "name": "enhancement" } ] }
[]
I_kwDODunzps5TemXs
5,088
load_datasets("json", ...) don't read local .json.gz properly
## Describe the bug I have a local file `*.json.gz` and it can be read by `pandas.read_json(lines=True)`, but cannot be read by `load_datasets("json")` (resulting in 0 lines) ## Steps to reproduce the bug ```python fpath = '/data/junwang/.cache/general/57b6f2314cbe0bc45dda5b78f0871df2/test.json.gz' ds_panda = Da...
OPEN
2022-10-07T02:16:58
2022-10-07T14:43:16
null
https://github.com/huggingface/datasets/issues/5088
{ "login": "junwang-wish" }
{ "nodes": [ { "name": "bug" } ] }
[ "Hi @junwang-wish, thanks for reporting.\r\n\r\nUnfortunately, I'm not able to reproduce the bug. Which version of `datasets` are you using? Does the problem persist if you update `datasets`?\r\n```shell\r\npip install -U datasets\r\n``` ", "Thanks @albertvillanova I updated `datasets` from `2.5.1` to `2.5.2` and...
I_kwDODunzps5TdZ2P
5,086
HTTPError: 404 Client Error: Not Found for url
## Describe the bug I was following chap 5 from huggingface course: https://huggingface.co/course/chapter5/6?fw=tf However, I'm not able to download the datasets, with a 404 erros <img width="1160" alt="iShot2022-10-06_15 54 50" src="https://user-images.githubusercontent.com/54015474/194406327-ae62c2f3-1da5-...
CLOSED
2022-10-06T19:48:58
2022-10-07T15:12:01
2022-10-07T15:12:01
https://github.com/huggingface/datasets/issues/5086
{ "login": "keyuchen21" }
{ "nodes": [ { "name": "bug" } ] }
[ "FYI @lewtun ", "Hi @km5ar, thanks for reporting.\r\n\r\nThis should be fixed in the notebook:\r\n- the filename `datasets-issues-with-hf-doc-builder.jsonl` no longer exists on the repo; instead, current filename is `datasets-issues-with-comments.jsonl`\r\n- see: https://huggingface.co/datasets/lewtun/github-issu...
I_kwDODunzps5TdAmh
5,085
Filtering on an empty dataset returns a corrupted dataset.
## Describe the bug When filtering a dataset twice, where the first result is an empty dataset, the second dataset seems corrupted. ## Steps to reproduce the bug ```python datasets = load_dataset("glue", "sst2") dataset_split = datasets['validation'] ds_filter_1 = dataset_split.filter(lambda x: False) # ...
CLOSED
2022-10-06T18:18:49
2022-10-07T19:06:02
2022-10-07T18:40:26
https://github.com/huggingface/datasets/issues/5085
{ "login": "gabegma" }
{ "nodes": [ { "name": "bug" }, { "name": "hacktoberfest" } ] }
[ "~~It seems like #5043 fix (merged recently) is the root cause of such behaviour. When we empty indices mapping (because the dataset length equals to zero), we can no longer get column item like: `ds_filter_2['sentence']` which uses\r\n`ds_filter_1._indices.column(0)`~~\r\n\r\n**UPDATE:**\r\nEmpty datasets are retu...
I_kwDODunzps5Tb-bS
5,083
Support numpy/torch/tf/jax formatting for IterableDataset
Right now `IterableDataset` doesn't do any formatting. In particular this code should return a numpy array: ```python from datasets import load_dataset ds = load_dataset("imagenet-1k", split="train", streaming=True).with_format("np") print(next(iter(ds))["image"]) ``` Right now it returns a PIL.Image. S...
CLOSED
2022-10-06T15:14:58
2023-10-09T12:42:15
2023-10-09T12:42:15
https://github.com/huggingface/datasets/issues/5083
{ "login": "lhoestq" }
{ "nodes": [ { "name": "enhancement" }, { "name": "streaming" }, { "name": "good second issue" } ] }
[ "hii @lhoestq, can you assign this issue to me? Though i am new to open source still I would love to put my best foot forward. I can see there isn't anyone right now assigned to this issue.", "Hi @zutarich ! This issue was fixed by #5852 - sorry I forgot to close it\r\n\r\nFeel free to look for other issues and p...
I_kwDODunzps5TaDwS
5,081
Bug loading `sentence-transformers/parallel-sentences`
## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("sentence-transformers/parallel-sentences") ``` raises this: ``` /home/phmay/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py:697: FutureWarning: the '...
OPEN
2022-10-06T10:47:51
2022-10-11T10:00:48
null
https://github.com/huggingface/datasets/issues/5081
{ "login": "PhilipMay" }
{ "nodes": [ { "name": "bug" } ] }
[ "tagging @nreimers ", "The dataset is sadly not really compatible to be loaded with `load_dataset`. So far it is better to git clone it and to use the files directly.\r\n\r\nA data loading script would be needed to be added to this dataset. But this was too much overhead / not really intuitive how to create it.",...
I_kwDODunzps5TYMAd
5,080
Use hfh for caching
## Is your feature request related to a problem? As previously discussed in our meeting with @Wauplin and agreed on our last datasets team sync meeting, I'm investigating how `datasets` can use `hfh` for caching. ## Describe the solution you'd like Due to the peculiarities of the `datasets` cache, I would prop...
OPEN
2022-10-06T05:51:58
2022-10-06T14:26:05
null
https://github.com/huggingface/datasets/issues/5080
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "There is some discussion in https://github.com/huggingface/huggingface_hub/pull/1088 if it can help :)" ]
I_kwDODunzps5TUbwd
5,075
Throw EnvironmentError when token is not present
Throw EnvironmentError instead of OSError ([link](https://github.com/huggingface/datasets/blob/6ad430ba0cdeeb601170f732d4bd977f5c04594d/src/datasets/arrow_dataset.py#L4306) to the line) in `push_to_hub` when the Hub token is not present.
CLOSED
2022-10-05T14:14:18
2022-10-07T14:33:28
2022-10-07T14:33:28
https://github.com/huggingface/datasets/issues/5075
{ "login": "mariosasko" }
{ "nodes": [ { "name": "good first issue" }, { "name": "hacktoberfest" } ] }
[ "@mariosasko I've raised a PR #5076 against this issue. Please help to review. Thanks." ]
I_kwDODunzps5TUYDw
5,074
Replace AssertionErrors with more meaningful errors
Replace the AssertionErrors with more meaningful errors such as ValueError, TypeError, etc. The files with AssertionErrors that need to be replaced: ``` src/datasets/arrow_reader.py src/datasets/builder.py src/datasets/utils/version.py ```
CLOSED
2022-10-05T14:03:55
2022-10-07T14:33:11
2022-10-07T14:33:11
https://github.com/huggingface/datasets/issues/5074
{ "login": "mariosasko" }
{ "nodes": [ { "name": "good first issue" }, { "name": "hacktoberfest" } ] }
[ "Hi, can I pick up this issue?", "#self-assign", "Looks like the top-level `datasource` directory was removed when https://github.com/huggingface/datasets/pull/4974 was merged, so there are 3 source files to fix." ]
I_kwDODunzps5TQPPP
5,070
Support default config name when no builder configs
**Is your feature request related to a problem? Please describe.** As discussed with @stas00, we could support defining a default config name, even if no predefined allowed config names are set. That is, support `DEFAULT_CONFIG_NAME`, even when `BUILDER_CONFIGS` is not defined. **Additional context** In order to ...
CLOSED
2022-10-04T19:49:35
2022-10-06T14:40:26
2022-10-06T14:40:26
https://github.com/huggingface/datasets/issues/5070
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Thank you for creating this feature request, Albert.\r\n\r\nFor context this is the datatest where Albert has been helping me to switch to on-the-fly split config https://huggingface.co/datasets/HuggingFaceM4/cm4-synthetic-testing\r\n\r\nand the attempt to switch on-the-fly splits was here: https://huggingface.co/...
I_kwDODunzps5TLUki
5,061
`_pickle.PicklingError: logger cannot be pickled` in multiprocessing `map`
## Describe the bug When I `map` with multiple processes, this error occurs. The `.name` of the `logger` that fails to pickle in the final line is `datasets.fingerprint`. ``` File "~/project/dataset.py", line 204, in <dictcomp> split: dataset.map( File ".../site-packages/datasets/arrow_dataset.py", line 24...
CLOSED
2022-10-03T23:51:38
2023-07-21T14:43:35
2023-07-21T14:43:34
https://github.com/huggingface/datasets/issues/5061
{ "login": "ZhaofengWu" }
{ "nodes": [ { "name": "bug" } ] }
[ "This is maybe related to python 3.10, do you think you could try on 3.8 ?\r\n\r\nIn the meantime we'll keep improving the support for 3.10. Let me add a dedicated CI", "I did some binary search and seems like the root cause is either `multiprocess` or `dill`. python 3.10 is fine. Specifically:\r\n- `multiprocess...
I_kwDODunzps5TK9qc
5,060
Unable to Use Custom Dataset Locally
## Describe the bug I have uploaded a [dataset](https://huggingface.co/datasets/zpn/pubchem_selfies) and followed the instructions from the [dataset_loader](https://huggingface.co/docs/datasets/dataset_script#download-data-files-and-organize-splits) tutorial. In that tutorial, it says ``` If the data files live in ...
CLOSED
2022-10-03T21:55:16
2022-10-06T14:29:18
2022-10-06T14:29:17
https://github.com/huggingface/datasets/issues/5060
{ "login": "zanussbaum" }
{ "nodes": [ { "name": "bug" } ] }
[ "Hi ! I opened a PR in your repo to fix this :)\r\nhttps://huggingface.co/datasets/zpn/pubchem_selfies/discussions/7\r\n\r\nbasically you need to use `open` for streaming to work properly", "Thank you so much for this! Naive question, is this a feature of `open` or have you all overloaded it to be able to read fr...
I_kwDODunzps5TEshq
5,053
Intermittent JSON parse error when streaming the Pile
## Describe the bug I have an intermittent error when streaming the Pile, where I get a JSON parse error which causes my program to crash. This is intermittent - when I rerun the program with the same random seed it does not crash in the same way. The exact point this happens also varied - it happened to me 11B tok...
OPEN
2022-10-02T11:56:46
2022-10-04T17:59:03
null
https://github.com/huggingface/datasets/issues/5053
{ "login": "neelnanda-io" }
{ "nodes": [ { "name": "bug" } ] }
[ "Maybe #2838 can help. In this PR we allow to skip bad chunks of JSON data to not crash the training\r\n\r\nDid you have warning messages before the error ?\r\n\r\nsomething like this maybe ?\r\n```\r\n03/24/2022 02:19:46 - WARNING - datasets.utils.streaming_download_manager - Got disconnected from remote data host...
I_kwDODunzps5S_g-6
5,050
Restore saved format state in `load_from_disk`
Even though we save the `format` state in `save_to_disk`, we don't restore it in `load_from_disk`. We should fix that. Reported here: https://discuss.huggingface.co/t/save-to-disk-loses-formatting-information/23815
CLOSED
2022-09-30T12:40:07
2022-10-11T16:49:24
2022-10-11T16:49:24
https://github.com/huggingface/datasets/issues/5050
{ "login": "mariosasko" }
{ "nodes": [ { "name": "bug" }, { "name": "good first issue" } ] }
[ "Hi, can I work on this?", "Hi, sure! Let us know if you need some pointers/help." ]
I_kwDODunzps5S7qjn
5,046
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/1ea4d091b7a4b83a85b2eeb8df65115d39af3766/docs/source/audio_dataset.mdx?plain...
CLOSED
2022-09-29T19:17:23
2022-10-28T13:05:07
2022-10-28T13:05:07
https://github.com/huggingface/datasets/issues/5046
{ "login": "msis" }
{ "nodes": [ { "name": "bug" }, { "name": "good first issue" }, { "name": "hacktoberfest" } ] }
[ "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.\r\n\r\n(Link to a Colab that tries to reproduce this behavior: htt...
I_kwDODunzps5S7V05
5,045
Automatically revert to last successful commit to hub when a push_to_hub is interrupted
**Is your feature request related to a problem? Please describe.** I pushed a modification of a large dataset (remove a column) to the hub. The push was interrupted after some files were committed to the repo. This left the dataset to raise an error on load_dataset() (ValueError couldn’t cast … because column names do...
CLOSED
2022-09-29T18:08:12
2023-10-16T13:30:49
2023-10-16T13:30:49
https://github.com/huggingface/datasets/issues/5045
{ "login": "jorahn" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Could you share the error you got please ? Maybe the full stack trace if you have it ?\r\n\r\nMaybe `push_to_hub` be implemented as a single commit @Wauplin ? This way if it fails, the repo is still at the previous (valid) state instead of ending-up in an invalid/incimplete state.", "> Maybe push_to_hub be imple...
I_kwDODunzps5S7K6c
5,044
integrate `load_from_disk` into `load_dataset`
**Is your feature request related to a problem? Please describe.** Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types? Currently one has to choose a different loader depending on how ...
OPEN
2022-09-29T17:37:12
2025-06-28T09:00:44
null
https://github.com/huggingface/datasets/issues/5044
{ "login": "stas00" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "I agree the situation is not ideal and it would be awesome to use `load_dataset` to reload a dataset saved locally !\r\n\r\nFor context:\r\n\r\n- `load_dataset` works in three steps: download the dataset, then prepare it as an arrow dataset, and finally return a memory mapped arrow dataset. In particular it create...
I_kwDODunzps5S3xuj
5,039
Hendrycks Checksum
Hi, The checksum for [hendrycks_test](https://huggingface.co/datasets/hendrycks_test) does not compare correctly, I guess it has been updated on the remote. ``` datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://people.eecs.berkeley.edu/~hendrycks/data....
CLOSED
2022-09-29T06:56:20
2022-09-29T10:23:30
2022-09-29T10:04:20
https://github.com/huggingface/datasets/issues/5039
{ "login": "DanielHesslow" }
{ "nodes": [ { "name": "dataset bug" } ] }
[ "Thanks for reporting, @DanielHesslow. We are fixing it. ", "@albertvillanova thanks for taking care of this so quickly!", "The dataset metadata is fixed. You can download it normally." ]
I_kwDODunzps5S1BaS
5,038
`Dataset.unique` showing wrong output after filtering
## Describe the bug After filtering a dataset, and if no samples remain, `Dataset.unique` will return the unique values of the unfiltered dataset. ## Steps to reproduce the bug ```python from datasets import Dataset dataset = Dataset.from_dict({'id': [0]}) dataset = dataset.filter(lambda _: False) print(data...
CLOSED
2022-09-28T16:20:35
2022-09-30T15:44:25
2022-09-30T15:44:25
https://github.com/huggingface/datasets/issues/5038
{ "login": "mxschmdt" }
{ "nodes": [ { "name": "bug" } ] }
[ "Hi! It seems like `flatten_indices` (called in `unique`) doesn't know how to handle empty indices mappings. I'm working on the fix.", "Thanks, that was fast!" ]
I_kwDODunzps5Sv1VX
5,032
new dataset type: single-label and multi-label video classification
**Is your feature request related to a problem? Please describe.** In my research, I am dealing with multi-modal (audio+text+frame sequence) video classification. It would be great if the datasets library supported generating multi-modal batches from a video dataset. **Describe the solution you'd like** Assume I h...
OPEN
2022-09-27T19:40:11
2022-11-02T19:10:13
null
https://github.com/huggingface/datasets/issues/5032
{ "login": "fcakyon" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi ! You can in the `features` folder how we implemented the audio and image feature types.\r\n\r\nWe can have something similar to videos. What we need to decide:\r\n- the video loading library to use\r\n- the output format when a user accesses a video type object\r\n- what parameters a `Video()` feature type nee...
I_kwDODunzps5SoNcV
5,028
passing parameters to the method passed to Dataset.from_generator()
Big thanks for providing dataset creation via a generator. I want to ask whether there is any way that parameters can be passed to the method Dataset.from_generator() method, like as follows. ``` from datasets import Dataset def gen(param1): for idx in len(custom_dataset): yield custom_dataset[id...
CLOSED
2022-09-26T15:20:06
2022-10-03T13:00:00
2022-10-03T13:00:00
https://github.com/huggingface/datasets/issues/5028
{ "login": "Basir-mahmood" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi! Yes, you can either use the `gen_kwargs` param in `Dataset.from_generator` (`ds = Dataset.from_generator(gen, gen_kwargs={\"param1\": val})`) or wrap the generator function with `functools.partial`\r\n(`ds = Dataset.from_generator(functools.partial(gen, param1=\"val\"))`) to pass custom parameters to it.\r\n" ...
I_kwDODunzps5SnNpn
5,025
Custom Json Dataset Throwing Error when batch is False
## Describe the bug A clear and concise description of what the bug is. I tried to create my custom dataset using below code ``` from datasets import Features, Sequence, ClassLabel, Value, Array2D, Array3D from torchvision import transforms from transformers import AutoProcessor # we'll use the Auto API here -...
CLOSED
2022-09-26T12:38:39
2022-09-27T19:50:00
2022-09-27T19:50:00
https://github.com/huggingface/datasets/issues/5025
{ "login": "jmandivarapu1" }
{ "nodes": [ { "name": "bug" } ] }
[ "Hi! Our processors are meant to be used in `batched` mode, so if `batched` is `False`, you need to drop the batch dimension (the error message warns you that the array has an extra dimension meaning it's 4D instead of 3D) to avoid the error:\r\n```python\r\ndef prepare_examples(examples):\r\n #Some preporcessin...
I_kwDODunzps5Smt4Y
5,023
Text strings are split into lists of characters in xcsr dataset
## Describe the bug Text strings are split into lists of characters. Example for "X-CSQA-en": ``` {'id': 'd3845adc08414fda', 'lang': 'en', 'question': {'stem': ['T', 'h', 'e', ' ', 'd', 'e', 'n', 't', 'a', 'l', ' ', 'o', 'f', 'f', 'i', 'c', 'e', ...
CLOSED
2022-09-26T11:11:50
2022-09-28T07:54:20
2022-09-28T07:54:20
https://github.com/huggingface/datasets/issues/5023
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "dataset bug" } ] }
[]
I_kwDODunzps5SkshS
5,021
Split is inferred from filename and overrides metadata.jsonl
## Describe the bug Including the strings "test" or "train" anywhere in a filename causes `datasets` to infer the split and silently ignore all other files. This behavior is documented for directory names but not filenames: https://huggingface.co/docs/datasets/image_dataset#imagefolder ## Steps to reproduce th...
CLOSED
2022-09-26T03:22:14
2022-09-29T08:07:50
2022-09-29T08:07:50
https://github.com/huggingface/datasets/issues/5021
{ "login": "float-trip" }
{ "nodes": [ { "name": "bug" }, { "name": "duplicate" } ] }
[ "Hi! What's the structure of your image folder? `datasets` by default tries to infer to what split each file belongs based on directory/file names. If it's OK to load all the images inside the `dataset` folder in the `train` split, you can do the following:\r\n```python\r\ndataset = load_dataset(\"imagefolder\", da...
I_kwDODunzps5SfoG_
5,017
xcsr: X-CSQA simply uses english for all alleged non-english data
## Describe the bug All the alleged non-english subcollections for the X-CSQA task in the [xcsr benchmark dataset ](https://huggingface.co/datasets/xcsr) seem to be copies of the english subcollection, rather than translations. This is in contrast to the data description: > we automatically translate the original C...
CLOSED
2022-09-23T16:11:54
2022-09-26T10:57:31
2022-09-26T10:57:31
https://github.com/huggingface/datasets/issues/5017
{ "login": "thesofakillers" }
{ "nodes": [ { "name": "dataset bug" } ] }
[ "Thanks for reporting, @thesofakillers. Good catch. We are fixing this. " ]
I_kwDODunzps5SdlB2
5,015
Transfer dataset scripts to Hub
Before merging: - #4974 TODO: - [x] Create label: ["dataset contribution"](https://github.com/huggingface/datasets/pulls?q=label%3A%22dataset+contribution%22) - [x] Create project: [Datasets: Transfer datasets to Hub](https://github.com/orgs/huggingface/projects/22/) - [x] PRs: - [x] Add dataset: we should r...
CLOSED
2022-09-23T08:48:10
2022-10-05T07:15:57
2022-10-05T07:15:57
https://github.com/huggingface/datasets/issues/5015
{ "login": "albertvillanova" }
{ "nodes": [] }
[ "Sounds good ! Can I help with anything ?" ]
I_kwDODunzps5SdVqv
5,014
I need to read the custom dataset in conll format
I need to read the custom dataset in conll format
OPEN
2022-09-23T07:49:42
2022-11-02T11:57:15
null
https://github.com/huggingface/datasets/issues/5014
{ "login": "shell-nlp" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi! We don't currently have a builder for parsing custom `conll` datasets, but I guess we could add one as a packaged module (similarly to what [TFDS](https://github.com/tensorflow/datasets/blob/master/tensorflow_datasets/core/dataset_builders/conll/conll_dataset_builder.py) did). @lhoestq @albertvillanova WDYT?\r...
I_kwDODunzps5SdUCj
5,013
would huggingface like publish cpp binding for datasets package ?
HI: I use cpp env libtorch, I like use hugggingface ,but huggingface not cpp binding, would you like publish cpp binding for it. thanks
CLOSED
2022-09-23T07:42:49
2023-02-24T16:20:57
2023-02-24T16:20:57
https://github.com/huggingface/datasets/issues/5013
{ "login": "mullerhai" }
{ "nodes": [ { "name": "wontfix" } ] }
[ "Hi ! Can you share more information about your use case ? How could it help you to have cpp bindings versus using the python libraries ?", "> Hi ! Can you share more information about your use case ? How could it help you to have cpp bindings versus using the python libraries ?\r\n\r\nfor example ,the huggingfac...
I_kwDODunzps5SbKIY
5,012
Force JSON format regardless of file naming on S3
I have a file on S3 created by Data Version Control, it looks like `s3://dvc/ac/badff5b134382a0f25248f1b45d7b2` but contains a json file. If I run ```python dataset = load_dataset( "json", data_files='s3://dvc/ac/badff5b134382a0f25248f1b45d7b2' ) ``` It gives me ``` InvalidSchema: No connection adap...
CLOSED
2022-09-22T18:28:15
2023-08-16T09:58:36
2023-08-16T09:58:36
https://github.com/huggingface/datasets/issues/5012
{ "login": "junwang-wish" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi ! Support for URIs like `s3://...` is not implemented yet in `data_files=`. You can use the HTTP URL instead if your data is public in the meantime", "Hi,\r\nI want to make sure I understand this response. I have a set of files on S3 that are private for security reasons. Because they are not public files I ...
I_kwDODunzps5SaPKz
5,011
Audio: `encode_example` fails with IndexError
## Describe the bug Loading the dataset [earnings-22](https://huggingface.co/datasets/sanchit-gandhi/earnings22_split) from the Hub yields an Index Error. I created this dataset locally and then pushed to hub at the specified URL. Thus, I expect the dataset should work out-of-the-box! Indeed, the dataset viewer functi...
CLOSED
2022-09-22T15:07:27
2022-09-23T09:05:18
2022-09-23T09:05:18
https://github.com/huggingface/datasets/issues/5011
{ "login": "sanchit-gandhi" }
{ "nodes": [ { "name": "bug" } ] }
[ "Sorry bug on my part 😅 Closing " ]
I_kwDODunzps5SU1lT
5,009
Error loading StonyBrookNLP/tellmewhy dataset from hub even though local copy loads correctly
## Describe the bug I have added a new dataset with the identifier `StonyBrookNLP/tellmewhy` to the hub. When I load the individual files using my local copy using `dataset = datasets.load_dataset("json", data_files="data/train.jsonl")`, it loads the dataset correctly. However, when I try to load it from the hub, I ge...
CLOSED
2022-09-21T16:23:06
2022-09-29T13:07:29
2022-09-29T13:07:29
https://github.com/huggingface/datasets/issues/5009
{ "login": "ykl7" }
{ "nodes": [ { "name": "bug" } ] }
[ "I think this is because some columns are mostly empty lists. In particular the train and validation splits only have empty lists for `val_ann`. Therefore the type inference doesn't know which type is inside (or it would have to scan the other splits first before knowing).\r\n\r\nYou can fix that by specifying the ...
I_kwDODunzps5ST6uA
5,005
Release 2.5.0 breaks transformers CI
## Describe the bug As reported by @lhoestq: > see https://app.circleci.com/pipelines/github/huggingface/transformers/47634/workflows/b491886b-e66e-4edb-af96-8b459e72aa25/jobs/564563 this is used here: [https://github.com/huggingface/transformers/blob/3b19c0317b6909e2d7f11b5053895ac55[…]torch/speech-pretraining/ru...
CLOSED
2022-09-21T13:39:19
2022-09-21T14:11:57
2022-09-21T14:11:57
https://github.com/huggingface/datasets/issues/5005
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "bug" } ] }
[ "Shall we revert https://github.com/huggingface/datasets/pull/4971 @mariosasko ?\r\n\r\nAnd for consistency we can update IterableDataset.map later" ]
I_kwDODunzps5SSh9a
5,002
Dataset Viewer issue for loubnabnl/humaneval-x
### Link https://huggingface.co/datasets/loubnabnl/humaneval-x/viewer/ ### Description The dataset has subsets but the viewer gets stuck in the default subset even when I select another one (the data loading of the subsets works fine) ### Owner Yes
CLOSED
2022-09-21T09:06:17
2022-09-21T11:49:49
2022-09-21T11:49:49
https://github.com/huggingface/datasets/issues/5002
{ "login": "loubnabnl" }
{ "nodes": [ { "name": "dataset-viewer" } ] }
[ "It's a bug! Thanks for reporting, I'm looking at it", "Fixed." ]
I_kwDODunzps5SPLHW
5,000
Dataset Viewer issue for asapp/slue
### Link https://huggingface.co/datasets/asapp/slue/viewer/ ### Description Hi, I wonder how to get the dataset viewer of our slue dataset to work. Best, Felix ### Owner Yes
CLOSED
2022-09-20T16:45:45
2022-09-27T07:04:03
2022-09-21T07:24:07
https://github.com/huggingface/datasets/issues/5000
{ "login": "fwu-asapp" }
{ "nodes": [] }
[ "<img width=\"519\" alt=\"Capture d’écran 2022-09-20 à 22 33 47\" src=\"https://user-images.githubusercontent.com/1676121/191358952-1220cb7d-745a-4203-a66b-3c707b25038f.png\">\r\n\r\n```\r\nNot found.\r\n\r\nError code: SplitsResponseNotFound\r\n```\r\n\r\nhttps://datasets-server.huggingface.co/splits?dataset=a...
I_kwDODunzps5SNyMJ
4,996
Dataset Viewer issue for Jean-Baptiste/wikiner_fr
### Link https://huggingface.co/datasets/Jean-Baptiste/wikiner_fr ### Description ``` Error code: StreamingRowsError Exception: FileNotFoundError Message: [Errno 2] No such file or directory: 'zip:/data/train::https:/huggingface.co/datasets/Jean-Baptiste/wikiner_fr/resolve/main/data.zip/state.json' Tra...
CLOSED
2022-09-20T12:32:07
2022-09-27T12:35:44
2022-09-27T12:35:44
https://github.com/huggingface/datasets/issues/4996
{ "login": "severo" }
{ "nodes": [] }
[ "The script uses `Dataset.load_from_disk`, which as you can expect, doesn't work in streaming mode.\r\n\r\nIt would probably be more practical to load the dataset locally using `Dataset.load_from_disk` first and then `push_to_hub` to upload it in Parquet on the Hub", "I've transferred this issue to the Hub repo: ...
I_kwDODunzps5SM4aC
4,995
Get a specific Exception when the dataset has no data
In the dataset viewer on the Hub (https://huggingface.co/datasets/glue/viewer), we would like (https://github.com/huggingface/moon-landing/issues/3882) to show a specific message when the repository lacks any data files. In that case, instead of showing a complex traceback, we want to show a call to action to help t...
CLOSED
2022-09-20T09:31:59
2022-09-21T12:21:25
2022-09-21T12:21:25
https://github.com/huggingface/datasets/issues/4995
{ "login": "severo" }
{ "nodes": [ { "name": "enhancement" }, { "name": "dataset-viewer" } ] }
[]
I_kwDODunzps5SMybv
4,994
delete the hardcoded license list in `datasets`
> Feel free to delete the license list in `datasets` [...] > > Also FYI in #4926 I also removed all the validation steps anyway (language, license, types etc.) _Originally posted by @lhoestq in https://github.com/huggingface/datasets/issues/4930#issuecomment-1238401662_ > [...], in my opinion we can just delete...
CLOSED
2022-09-20T09:14:41
2022-09-22T11:45:47
2022-09-22T11:45:47
https://github.com/huggingface/datasets/issues/4994
{ "login": "julien-c" }
{ "nodes": [] }
[]
I_kwDODunzps5SJHRm
4,990
"no-token" is passed to `huggingface_hub` when token is `None`
## Describe the bug In the 2 lines listed below, a token is passed to `huggingface_hub` to get information from a dataset. If no token is provided, a "no-token" string is passed. What is the purpose of it ? If no real, I would prefer if the `None` value could be sent directly to be handle by `huggingface_hub`. I fee...
CLOSED
2022-09-19T15:14:40
2022-09-30T09:16:00
2022-09-30T09:16:00
https://github.com/huggingface/datasets/issues/4990
{ "login": "Wauplin" }
{ "nodes": [ { "name": "bug" } ] }
[ "Hi @Wauplin, thanks for raising this potential issue.\r\n\r\nThe choice of passing `\"no-token\"` instead of `None` was made in this PR:\r\n- #4536 \r\n\r\nAccording to the PR description, the reason why it is passed is to avoid that `HfApi.dataset_info` uses the local token when no token should be used.", "Hi @...
I_kwDODunzps5SEMrp
4,989
Running add_column() seems to corrupt existing sequence-type column info
I have a dataset that contains a column ("foo") that is a sequence type of length 4. So when I run .to_pandas() on it, the resulting dataframe correctly contains 4 columns - foo_0, foo_1, foo_2, foo_3. So the 1st row of the dataframe might look like: ds = load_dataset(...) df = ds.to_pandas() df: foo_0 | foo_1 ...
CLOSED
2022-09-17T17:42:05
2022-09-19T12:54:54
2022-09-19T12:54:54
https://github.com/huggingface/datasets/issues/4989
{ "login": "derek-rocheleau" }
{ "nodes": [ { "name": "bug" } ] }
[ "Nevermind, I was incorrect." ]
I_kwDODunzps5SBZFI
4,988
Add `IterableDataset.from_generator` to the API
We've just added `Dataset.from_generator` to the API. It would also be cool to add `IterableDataset.from_generator` to support creating an iterable dataset from a generator. cc @lhoestq
CLOSED
2022-09-16T15:19:41
2022-10-05T12:10:49
2022-10-05T12:10:49
https://github.com/huggingface/datasets/issues/4988
{ "login": "mariosasko" }
{ "nodes": [ { "name": "enhancement" }, { "name": "good first issue" } ] }
[ "#take", "Thanks @hamid-vakilzadeh ! Let us know if you have some questions or if we can help", "Thank you! I certainly will reach out if I need any help." ]
I_kwDODunzps5R_wXG
4,983
How to convert torch.utils.data.Dataset to huggingface dataset?
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
CLOSED
2022-09-16T09:15:10
2023-12-14T20:54:15
2022-09-20T11:23:43
https://github.com/huggingface/datasets/issues/4983
{ "login": "DEROOCE" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi! I think you can use the newly-added `from_generator` method for that:\r\n```python\r\nfrom datasets import Dataset\r\n\r\ndef gen():\r\n for idx in len(torch_dataset):\r\n yield torch_dataset[idx] # this has to be a dictionary\r\n ## or if it's an IterableDataset\r\n # for ex in torch_dataset:...
I_kwDODunzps5R_g_V
4,982
Create dataset_infos.json with VALIDATION and TEST splits
The problem is described in that [issue](https://github.com/huggingface/datasets/issues/4895#issuecomment-1247975569). > When I try to create data_infos.json using datasets-cli test Peter.py --save_infos --all_configs I get an error: > ValueError: Unknown split "test". Should be one of ['train']. > > The data_i...
CLOSED
2022-09-16T08:21:19
2022-09-28T07:59:39
2022-09-28T07:59:39
https://github.com/huggingface/datasets/issues/4982
{ "login": "skalinin" }
{ "nodes": [ { "name": "bug" } ] }
[ "@mariosasko could you help me with this issue? we've started the discussion from [here](https://github.com/huggingface/datasets/issues/4895#issuecomment-1248227130)", "Hi again! Can you please pass the directory name containing the dataset script instead of the script name to `datasets-cli test`?", "Yes, it wo...
I_kwDODunzps5R9ii1
4,981
Can't create a dataset with `float16` features
## Describe the bug I can't create a dataset with `float16` features. I understand from the traceback that this is a `pyarrow` error, but I don't see anywhere in the `datasets` documentation about how to successfully do this. Is it actually supported? I've tried older versions of `pyarrow` as well with the same e...
OPEN
2022-09-15T21:03:24
2025-06-12T11:47:42
null
https://github.com/huggingface/datasets/issues/4981
{ "login": "dconathan" }
{ "nodes": [ { "name": "bug" } ] }
[ "Hi @dconathan, thanks for reporting.\r\n\r\nWe rely on Arrow as a backend, and as far as I know currently support for `float16` in Arrow is not fully implemented in Python (C++), hence the `ArrowNotImplementedError` you get.\r\n\r\nSee, e.g.: https://arrow.apache.org/docs/status.html?highlight=float16#data-types",...
I_kwDODunzps5R8tJz
4,980
Make `pyarrow` optional
**Is your feature request related to a problem? Please describe.** Is `pyarrow` really needed for every dataset? **Describe the solution you'd like** It is made optional. **Describe alternatives you've considered** Likely, no.
CLOSED
2022-09-15T17:38:03
2022-09-16T17:23:47
2022-09-16T17:23:47
https://github.com/huggingface/datasets/issues/4980
{ "login": "KOLANICH" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "The whole datasets library is pretty much a wrapper to pyarrow (just take a look at some of the source for a Dataset) https://github.com/huggingface/datasets/blob/51aef08ad7053c0bfe8f9a961207b26df15850d3/src/datasets/arrow_dataset.py#L639 \r\n\r\nI think removing the pyarrow dependency would involve a complete rew...
I_kwDODunzps5R1b1t
4,977
Providing dataset size
**Is your feature request related to a problem? Please describe.** Especially for big datasets like [LAION](https://huggingface.co/datasets/laion/laion2B-en/), it's hard to know exactly the downloaded size (because there are many files and you don't have their exact size when downloaded). **Describe the solution yo...
OPEN
2022-09-14T13:09:27
2022-09-15T16:03:58
null
https://github.com/huggingface/datasets/issues/4977
{ "login": "sashavor" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi @sashavor, thanks for your suggestion.\r\n\r\nUntil now we have the CLI command \r\n```\r\ndatasets-cli test datasets/<your-dataset-folder> --save_infos --all_configs\r\n```\r\nthat generates the `dataset_infos.json` with the size of the downloaded dataset, among other information.\r\n\r\nWe are currently in th...
I_kwDODunzps5Ry_pO
4,976
Hope to adapt Python3.9 as soon as possible
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. **Describe the solution you'd like** A clear and concise description of what you want to happen. **Describe alternatives you've considered** A clear and concise description of any alternat...
OPEN
2022-09-14T04:42:22
2022-09-26T16:32:35
null
https://github.com/huggingface/datasets/issues/4976
{ "login": "RedHeartSecretMan" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi! `datasets` should work in Python 3.9. What kind of issue have you encountered?", "There is this related issue already: https://github.com/huggingface/datasets/issues/4113\r\nAnd I guess we need a CI job for 3.9 ^^", "Perhaps we should report this issue in the `filelock` repo?" ]
I_kwDODunzps5RlBwK
4,965
[Apple M1] MemoryError: Cannot allocate write+execute memory for ffi.callback()
## Describe the bug I'm trying to run `cast_column("audio", Audio())` on Apple M1 Pro, but it seems that it doesn't work. ## Steps to reproduce the bug ```python import datasets dataset = load_dataset("csv", data_files="./train.csv")["train"] dataset = dataset.map(lambda x: {"audio": str(DATA_DIR / "audio" / ...
CLOSED
2022-09-10T15:55:49
2024-03-21T17:25:53
2023-07-21T14:45:50
https://github.com/huggingface/datasets/issues/4965
{ "login": "hoangtnm" }
{ "nodes": [ { "name": "bug" } ] }
[ "Hi! This seems like a bug in `soundfile`. Could you please open an issue in their repo? `soundfile` works without any issues on my M1, so I'm not sure we can help.", "Hi @mariosasko, can you share how you installed `soundfile` on your mac M1?", "Hi @hoangtnm - I upgraded to python 3.10 and it fixed the proble...
I_kwDODunzps5Rk3Fq
4,964
Column of arrays (2D+) are using unreasonably high memory
## Describe the bug When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage. ## Steps to reproduce the bug ```python from datasets import Dataset, Features, Array2D, ...
OPEN
2022-09-10T13:07:22
2022-09-22T18:29:22
null
https://github.com/huggingface/datasets/issues/4964
{ "login": "vigsterkr" }
{ "nodes": [ { "name": "bug" } ] }
[ "note i have tried the same code with `datasets` version 2.4.0, the outcome is the very same as described above.", "Seems related to issues #4623 and #4802 so it would appear this issue has been around for a few months.", "Hi ! `Dataset.from_dict` keeps the data in memory. You can write on disk and reload them ...
I_kwDODunzps5RjRfk
4,963
Dataset without script does not support regular JSON data file
### Link https://huggingface.co/datasets/julien-c/label-studio-my-dogs ### Description <img width="1115" alt="image" src="https://user-images.githubusercontent.com/326577/189422048-7e9c390f-bea7-4521-a232-43f049ccbd1f.png"> ### Owner Yes
CLOSED
2022-09-09T18:45:33
2022-09-20T15:40:07
2022-09-20T15:40:07
https://github.com/huggingface/datasets/issues/4963
{ "login": "julien-c" }
{ "nodes": [] }
[ "Hi @julien-c,\r\n\r\nOut of the box, we only support JSON lines (NDJSON) data files, but your data file is a regular JSON file. The reason is we use `pyarrow.json.read_json` and this only supports line-delimited JSON. " ]
I_kwDODunzps5Ri-qB
4,961
fsspec 2022.8.2 breaks xopen in streaming mode
## Describe the bug When fsspec 2022.8.2 is installed in your environment, xopen will prematurely close files, making streaming mode inoperable. ## Steps to reproduce the bug ```python import datasets data = datasets.load_dataset('MLCommons/ml_spoken_words', 'id_wav', split='train', streaming=True) ``` ...
CLOSED
2022-09-09T17:26:55
2022-09-12T17:45:50
2022-09-12T14:32:05
https://github.com/huggingface/datasets/issues/4961
{ "login": "DCNemesis" }
{ "nodes": [ { "name": "bug" } ] }
[ "loading `fsspec==2022.7.1` fixes this issue, setup.py would need to be changed to prevent users from using the latest version of fsspec.", "Opened [PR](https://github.com/huggingface/datasets/pull/4962) to address this.", "Hi @DCNemesis, thanks for reporting.\r\n\r\nThat was a temporary issue in `fsspec` relea...
I_kwDODunzps5Rio9X
4,960
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_task_b", data_dir=data_dir) ``` ## Actual results `AttributeError: ...
OPEN
2022-09-09T16:06:43
2022-09-13T08:51:03
null
https://github.com/huggingface/datasets/issues/4960
{ "login": "DSLituiev" }
{ "nodes": [ { "name": "dataset bug" } ] }
[ "Following worked:\r\n\r\n```\r\ndata_dir = \"/Users/dlituiev/repos/datasets/bioasq/\"\r\nbioasq_task_b = load_dataset(\"aps/bioasq_task_b\", data_dir=data_dir, name=\"bioasq_9b_source\")\r\n```\r\n\r\nWould maintainers be open to one of the following:\r\n- automating this with a latest default config (e.g. `bioas...
I_kwDODunzps5RhWAQ
4,958
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.4.0/datasets/jsonl/jsonl.py
Hi, When I use load_dataset from local jsonl files, below error happens, and I type the link into the browser prompting me `404: Not Found`. I download the other `.py` files using the same method and it works. It seems that the server is missing the appropriate file, or it is a problem with the code version. ``` C...
CLOSED
2022-09-09T11:29:55
2022-09-09T11:38:44
2022-09-09T11:38:44
https://github.com/huggingface/datasets/issues/4958
{ "login": "hasakikiki" }
{ "nodes": [ { "name": "bug" } ] }
[ "I have solved this problem... The extension of the file should be `.json` not `.jsonl`" ]
I_kwDODunzps5RcVbq
4,955
Raise a more precise error when the URL is unreachable in streaming mode
See for example: - https://github.com/huggingface/datasets/issues/3191 - https://github.com/huggingface/datasets/issues/3186 It would help provide clearer information on the Hub and help the dataset maintainer solve the issue by themselves quicker. Currently: - https://huggingface.co/datasets/compguesswhat ...
OPEN
2022-09-08T13:52:37
2022-09-08T13:53:36
null
https://github.com/huggingface/datasets/issues/4955
{ "login": "severo" }
{ "nodes": [ { "name": "enhancement" } ] }
[]
I_kwDODunzps5RcPIi
4,953
CI test of TensorFlow is failing
## Describe the bug The following CI test fails: https://github.com/huggingface/datasets/runs/8246722693?check_suite_focus=true ``` FAILED tests/test_py_utils.py::TempSeedTest::test_tensorflow - AssertionError: ``` Details: ``` _________________________ TempSeedTest.test_tensorflow _________________________ [...
CLOSED
2022-09-08T13:39:29
2022-09-08T15:14:45
2022-09-08T15:14:45
https://github.com/huggingface/datasets/issues/4953
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "bug" } ] }
[]
I_kwDODunzps5RV4iY
4,945
Push to hub can push splits that do not respect the regex
## Describe the bug The `push_to_hub` method can push splits that do not respect the regex check that is used for downloads. Therefore, splits may be pushed but never re-used, which can be painful if the split was done after runtime preprocessing. ## Steps to reproduce the bug ```python >>> from datasets import...
CLOSED
2022-09-07T13:45:17
2022-09-13T10:16:35
2022-09-13T10:16:35
https://github.com/huggingface/datasets/issues/4945
{ "login": "LysandreJik" }
{ "nodes": [ { "name": "bug" } ] }
[]
I_kwDODunzps5RUcXh
4,944
larger dataset, larger GPU memory in the training phase? Is that correct?
from datasets import set_caching_enabled set_caching_enabled(False) for ds_name in ["squad","newsqa","nqopen","narrativeqa"]: train_ds = load_from_disk("../../../dall/downstream/processedproqa/{}-train.hf".format(ds_name)) break train_ds = concatenate_datasets([train_ds,train_...
CLOSED
2022-09-07T08:46:30
2022-09-07T12:34:58
2022-09-07T12:34:58
https://github.com/huggingface/datasets/issues/4944
{ "login": "debby1103" }
{ "nodes": [ { "name": "bug" } ] }
[ "does the trainer save it in GPU? sooo curious... how to fix it", "It's my bad. didn't limit the input length" ]
I_kwDODunzps5RSv7t
4,942
Trec Dataset has incorrect labels
## Describe the bug Both coarse and fine labels seem to be out of line. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = "trec" raw_datasets = load_dataset(dataset) df = pd.DataFrame(raw_datasets["test"]) df.head() ``` ## Expected results text (string) | coarse_labe...
CLOSED
2022-09-06T22:13:40
2022-09-08T11:12:03
2022-09-08T11:12:03
https://github.com/huggingface/datasets/issues/4942
{ "login": "wmpauli" }
{ "nodes": [ { "name": "bug" } ] }
[ "Thanks for reporting, @wmpauli. \r\n\r\nIndeed we recently fixed this issue:\r\n- #4801 \r\n\r\nThe fix will be accessible after our next library release. In the meantime, you can have it by passing `revision=\"main\"` to `load_dataset`." ]
I_kwDODunzps5RQeyb
4,936
vivos (Vietnamese speech corpus) dataset not accessible
## Describe the bug VIVOS data is not accessible anymore, neither of these links work (at least from France): * https://ailab.hcmus.edu.vn/assets/vivos.tar.gz (data) * https://ailab.hcmus.edu.vn/vivos (dataset page) Therefore `load_dataset` doesn't work. ## Steps to reproduce the bug ```python ds = load_dat...
CLOSED
2022-09-06T13:17:55
2022-09-21T06:06:02
2022-09-12T07:14:20
https://github.com/huggingface/datasets/issues/4936
{ "login": "polinaeterna" }
{ "nodes": [ { "name": "dataset bug" } ] }
[ "If you need an example of a small audio datasets, I just created few hours ago a speech dataset with only 300MB of compressed audio files https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia. It works also with streaming (@albertvillanova helped me adding this functionality) :-)", "@cahya-wirawan om...
I_kwDODunzps5RQTBw
4,935
Dataset Viewer issue for ubuntu_dialogs_corpus
### Link _No response_ ### Description _No response_ ### Owner _No response_
CLOSED
2022-09-06T12:41:50
2022-09-06T12:51:25
2022-09-06T12:51:25
https://github.com/huggingface/datasets/issues/4935
{ "login": "CibinQuadance" }
{ "nodes": [ { "name": "dataset-viewer" } ] }
[ "The dataset maintainers (https://huggingface.co/datasets/ubuntu_dialogs_corpus) decided to forbid the dataset from being downloaded automatically (https://huggingface.co/docs/datasets/v2.4.0/en/loading#manual-download), and the dataset viewer respects this.\r\nWe will try to improve the error display though. Thank...