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,461,908,087
I_kwDODunzps5XIvJ3
5,286
FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/enwiki/20220301/dumpstatus.json
closed
completed
2022-11-23T14:54:15
2024-11-23T01:16:41
2022-11-25T11:33:14Z
https://github.com/huggingface/datasets/issues/5286
roritol
[]
[]
[ "I found a solution \r\n\r\nIf you specifically install datasets==1.18 and then run\r\n\r\nimport datasets\r\nwiki = datasets.load_dataset('wikipedia', '20200501.en')\r\nthen this should work (it worked for me.)", "I have the same problem here but installing datasets==1.18 wont work for me\r\n", "This works wit...
NONE
### Describe the bug I follow the steps provided on the website [https://huggingface.co/datasets/wikipedia](https://huggingface.co/datasets/wikipedia) $ pip install apache_beam mwparserfromhell >>> from datasets import load_dataset >>> load_dataset("wikipedia", "20220301.en") however this results in the follo...
1,461,519,733
I_kwDODunzps5XHQV1
5,284
Features of IterableDataset set to None by remove column
closed
completed
2022-11-23T10:54:59
2025-02-07T11:36:41
2022-11-28T12:53:24Z
https://github.com/huggingface/datasets/issues/5284
sanchit-gandhi
[ "bug", "streaming" ]
[ "alvarobartt" ]
[ "Related to https://github.com/huggingface/datasets/issues/5245", "#self-assign", "Thanks @lhoestq and @alvarobartt!\r\n\r\nThis would be extremely helpful to have working for the Whisper fine-tuning event - we're **only** training using streaming mode, so it'll be quite important to have this feature working t...
CONTRIBUTOR
### Describe the bug The `remove_column` method of the IterableDataset sets the dataset features to None. ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset # load LS in streaming mode dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True) ...
1,459,930,271
I_kwDODunzps5XBMSf
5,281
Support cloud storage in load_dataset
open
reopened
2022-11-22T14:00:10
2024-11-15T15:03:41
https://github.com/huggingface/datasets/issues/5281
lhoestq
[ "enhancement", "good second issue" ]
[]
[ "Or for example an archive on GitHub releases! Before I added support for JXL (locally only, PR still pending) I was considering hosting my files on GitHub instead...", "+1 to this. I would like to use 'audiofolder' with a data_dir that's on S3, for example. I don't want to upload my dataset to the Hub, but I wo...
MEMBER
Would be nice to be able to do ```python data_files=["s3://..."] # or gs:// or any cloud storage path storage_options = {...} load_dataset(..., data_files=data_files, storage_options=storage_options) ``` The idea would be to use `fsspec` as in `download_and_prepare` and `save_to_disk`. This has been reque...
1,459,823,179
I_kwDODunzps5XAyJL
5,280
Import error
closed
completed
2022-11-22T12:56:43
2022-12-15T19:57:40
2022-12-15T19:57:40Z
https://github.com/huggingface/datasets/issues/5280
feketedavid1012
[]
[]
[ "Hi ! Can you \r\n```python\r\nimport platform\r\nprint(platform.python_version())\r\n```\r\nto see that it returns ?", "Hi,\n\n3.8.13\n\nGet Outlook for Android<https://aka.ms/AAb9ysg>\n________________________________\nFrom: Quentin Lhoest ***@***.***>\nSent: Tuesday, November 22, 2022 2:37:02 PM\nTo: huggingfa...
NONE
https://github.com/huggingface/datasets/blob/cd3d8e637cfab62d352a3f4e5e60e96597b5f0e9/src/datasets/__init__.py#L28 Hy, I have error at the above line. I have python version 3.8.13, the message says I need python>=3.7, which is True, but I think the if statement not working properly (or the message wrong)
1,459,574,490
I_kwDODunzps5W_1ba
5,278
load_dataset does not read jsonl metadata file properly
closed
completed
2022-11-22T10:24:46
2023-02-14T14:48:16
2022-11-23T11:38:35Z
https://github.com/huggingface/datasets/issues/5278
065294847
[]
[]
[ "Can you try to remove \"drop_labels=false\" ? It may force the loader to infer the labels instead of reading the metadata", "Hi, thanks for responding. I tried that, but it does not change anything.", "Can you try updating `datasets` ? Metadata support was added in `datasets` 2.4", "Probably the issue, will ...
NONE
### Describe the bug Hi, I'm following [this page](https://huggingface.co/docs/datasets/image_dataset) to create a dataset of images and captions via an image folder and a metadata.json file, but I can't seem to get the dataloader to recognize the "text" column. It just spits out "image" and "label" as features. B...
1,459,363,442
I_kwDODunzps5W_B5y
5,276
Bug in downloading common_voice data and snall chunk of it to one's own hub
closed
completed
2022-11-22T08:17:53
2023-07-21T14:33:10
2023-07-21T14:33:10Z
https://github.com/huggingface/datasets/issues/5276
capsabogdan
[]
[]
[ "Sounds like one of the file is not a valid one, can you make sure you uploaded valid mp3 files ?", "Well I just sharded the original commonVoice dataset and pushed a small chunk of it in a private rep\n\nWhat did go wrong?\n\nHolen Sie sich Outlook fΓΌr iOS<https://aka.ms/o0ukef>\n________________________________...
NONE
### Describe the bug I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset Help please? ![image](https://user-images.githubusercontent.com/48530104/203260511-26df766f-6013-4...
1,459,358,919
I_kwDODunzps5W_AzH
5,275
YAML integer keys are not preserved Hub server-side
closed
completed
2022-11-22T08:14:47
2023-01-26T10:52:35
2023-01-26T10:40:21Z
https://github.com/huggingface/datasets/issues/5275
albertvillanova
[ "bug" ]
[ "albertvillanova" ]
[ "@huggingface/datasets if you agree, I can make the bulk edit on the Hub to fix integer keys into strings.", "Ok for me, and we can merge (internal) https://github.com/huggingface/moon-landing/pull/4609", "FYI there are still 2k+ weekly users on `datasets` 2.6.1 which doesn't support the string label format for...
MEMBER
After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563): - YAML integer keys are not preserved server-side: they are transformed to strings - See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files - Original: ```yaml ...
1,458,646,455
I_kwDODunzps5W8S23
5,274
load_dataset possibly broken for gated datasets?
closed
completed
2022-11-21T21:59:53
2023-05-27T00:06:14
2022-11-28T02:50:42Z
https://github.com/huggingface/datasets/issues/5274
TristanThrush
[]
[]
[ "@BradleyHsu", "Btw, thanks very much for finding the hub rollback temporary fix and bringing the issue to our attention @KhoomeiK!", "I see the same issue when calling `load_dataset('poloclub/diffusiondb', 'large_random_1k')` with `datasets==2.7.1` and `huggingface-hub=0.11.0`. No issue with `datasets=2.6.1` a...
CONTRIBUTOR
### Describe the bug When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub: ``` [/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validators.py](https://localhost:8080/#) in validate_rep...
1,458,018,050
I_kwDODunzps5W55cC
5,273
download_mode="force_redownload" does not refresh cached dataset
open
2022-11-21T14:12:43
2022-11-21T14:13:03
https://github.com/huggingface/datasets/issues/5273
nomisto
[]
[]
[]
NONE
### Describe the bug `load_datasets` does not refresh dataset when features are imported from external file, even with `download_mode="force_redownload"`. The bug is not limited to nested fields, however it is more likely to occur with nested fields. ### Steps to reproduce the bug To reproduce the bug 3 files are ne...
1,456,940,021
I_kwDODunzps5W1yP1
5,272
Use pyarrow Tensor dtype
open
2022-11-20T15:18:41
2026-02-26T15:59:00
https://github.com/huggingface/datasets/issues/5272
franz101
[ "enhancement" ]
[]
[ "Hi ! We're using the Arrow format for the datasets, and PyArrow tensors are not part of the Arrow format AFAIK:\r\n\r\n> There is no direct support in the arrow columnar format to store Tensors as column values.\r\n\r\nsource: https://github.com/apache/arrow/issues/4802#issuecomment-508494694", "@wesm @rok its b...
NONE
### Feature request I was going the discussion of converting tensors to lists. Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings? For example: ```python import pyarrow as pa import numpy as np x = np.array([[2, 2, 4], [4, 5, 100]], np.int32) pa.Tensor.from_numpy(x, dim_names=["dim1...
1,456,508,990
I_kwDODunzps5W0JA-
5,270
When len(_URLS) > 16, download will hang
open
2022-11-19T14:27:41
2022-11-21T15:27:16
https://github.com/huggingface/datasets/issues/5270
Freed-Wu
[]
[]
[ "It can fix the bug temporarily.\r\n```python\r\nfrom datasets import DownloadConfig\r\nconfig = DownloadConfig(num_proc=8)\r\nIn [5]: dataset = load_dataset('Freed-Wu/kodak', split='test', download_config=config)\r\nDownloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu__...
NONE
### Describe the bug ```python In [9]: dataset = load_dataset('Freed-Wu/kodak', split='test') Downloading: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 2.53k/2.53k [00:00<00:00, 1.88MB/s] [1...
1,456,485,799
I_kwDODunzps5W0DWn
5,269
Shell completions
closed
completed
2022-11-19T13:48:59
2022-11-21T15:06:15
2022-11-21T15:06:14Z
https://github.com/huggingface/datasets/issues/5269
Freed-Wu
[ "enhancement" ]
[]
[ "I don't think we need completion on the datasets-cli, since we're mainly developing huggingface-cli", "I see." ]
NONE
### Feature request Like <https://github.com/huggingface/huggingface_hub/issues/1197>, datasets-cli maybe need it, too. ### Motivation See above. ### Your contribution Maybe.
1,455,274,864
I_kwDODunzps5Wvbtw
5,265
Get an IterableDataset from a map-style Dataset
closed
completed
2022-11-18T14:54:40
2023-02-01T16:36:03
2023-02-01T16:36:03Z
https://github.com/huggingface/datasets/issues/5265
lhoestq
[ "enhancement", "streaming" ]
[ "lhoestq" ]
[ "I think `stream` could be misleading since the data is not being streamed from remote endpoints (one could think that's the case when they see `load_dataset` followed by `stream`). Hence, I prefer the second option.\r\n\r\nPS: When we resolve https://github.com/huggingface/datasets/issues/4542, we could add `as_tf...
MEMBER
This is useful to leverage iterable datasets specific features like: - fast approximate shuffling - lazy map, filter etc. Iterating over the resulting iterable dataset should be at least as fast at iterating over the map-style dataset. Here are some ideas regarding the API: ```python # 1. # - consistency wi...
1,455,252,906
I_kwDODunzps5WvWWq
5,264
`datasets` can't read a Parquet file in Python 3.9.13
closed
completed
2022-11-18T14:44:01
2023-05-07T09:52:59
2022-11-22T11:18:08Z
https://github.com/huggingface/datasets/issues/5264
loubnabnl
[ "bug" ]
[]
[ "Could you share the full stack trace please ?\r\n\r\n\r\nCan you also try running this code ? It can be useful to determine if the issue comes from `datasets` or `fsspec` (streaming) or `pyarrow` (parquet reading):\r\n```python\r\nds = load_dataset(\"parquet\", data_files=a_parquet_file_url, use_auth_token=True)\r...
NONE
### Describe the bug I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset ```python from datasets import load_dataset ds = load_data...
1,455,252,626
I_kwDODunzps5WvWSS
5,263
Save a dataset in a determined number of shards
closed
completed
2022-11-18T14:43:54
2022-12-14T18:22:59
2022-12-14T18:22:59Z
https://github.com/huggingface/datasets/issues/5263
lhoestq
[ "enhancement" ]
[ "lhoestq" ]
[]
MEMBER
This is useful to distribute the shards to training nodes. This can be implemented in `save_to_disk` and can also leverage multiprocessing to speed up the process
1,455,171,100
I_kwDODunzps5WvCYc
5,262
AttributeError: 'Value' object has no attribute 'names'
closed
completed
2022-11-18T13:58:42
2022-11-22T10:09:24
2022-11-22T10:09:23Z
https://github.com/huggingface/datasets/issues/5262
emnaboughariou
[]
[]
[ "Hi ! It looks like your \"isDif\" column is a Sequence of Value(\"string\"), not a Sequence of ClassLabel.\r\n\r\nYou can convert your Value(\"string\") feature type to a ClassLabel feature type this way:\r\n```python\r\nfrom datasets import ClassLabel, Sequence\r\n\r\n# provide the label_names yourself\r\nlabel_n...
NONE
Hello I'm trying to build a model for custom token classification I already followed the token classification course on huggingface while adapting the code to my work, this message occures : 'Value' object has no attribute 'names' Here's my code: `raw_datasets` generates DatasetDict({ train: Datas...
1,454,647,861
I_kwDODunzps5WtCo1
5,261
Add PubTables-1M
open
2022-11-18T07:56:36
2022-11-18T08:02:18
https://github.com/huggingface/datasets/issues/5261
NielsRogge
[ "dataset request" ]
[]
[ "cc @albertvillanova the author would like to add this dataset to the hub: https://github.com/microsoft/table-transformer/issues/68#issuecomment-1319114621. Could you help him out?" ]
CONTRIBUTOR
### Name PubTables-1M ### Paper https://openaccess.thecvf.com/content/CVPR2022/html/Smock_PubTables-1M_Towards_Comprehensive_Table_Extraction_From_Unstructured_Documents_CVPR_2022_paper.html ### Data https://github.com/microsoft/table-transformer ### Motivation Table Transformer is now available in πŸ€— Transforme...
1,453,921,697
I_kwDODunzps5WqRWh
5,260
consumer-finance-complaints dataset not loading
open
2022-11-17T20:10:26
2022-11-18T10:16:53
https://github.com/huggingface/datasets/issues/5260
adiprasad
[]
[ "albertvillanova" ]
[ "Thanks for reporting, @adiprasad.\r\n\r\nWe are having a look at it.", "I have opened an issue in that dataset Community tab on the Hub: https://huggingface.co/datasets/consumer-finance-complaints/discussions/1\r\n\r\nPlease note that in the meantime, you can load the dataset by passing `ignore_verifications=Tru...
NONE
### Describe the bug Error during dataset loading ### Steps to reproduce the bug ``` >>> import datasets >>> cf_raw = datasets.load_dataset("consumer-finance-complaints") Downloading builder script: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ...
1,453,555,923
I_kwDODunzps5Wo4DT
5,259
datasets 2.7 introduces sharding error
closed
completed
2022-11-17T15:36:52
2022-12-24T01:44:02
2022-11-18T12:52:05Z
https://github.com/huggingface/datasets/issues/5259
DCNemesis
[]
[]
[ "I notice a comment in the code says:\r\n`Having lists of different sizes makes sharding ambigious, raise an error in this case until we decide how to define sharding without ambiguity for users` \r\n \r\n ... which suggests this update was pushed knowing that it might break some things. But, it didn't seem to h...
NONE
### Describe the bug dataset fails to load with runtime error `RuntimeError: Sharding is ambiguous for this dataset: we found several data sources lists of different lengths, and we don't know over which list we should parallelize: - key audio_files has length 46 - key data has length 0 To fix this, check the ...
1,453,516,636
I_kwDODunzps5Woudc
5,258
Restore order of split names in dataset_info for canonical datasets
closed
completed
2022-11-17T15:13:15
2023-02-16T09:49:05
2022-11-19T06:51:37Z
https://github.com/huggingface/datasets/issues/5258
albertvillanova
[ "dataset contribution" ]
[ "albertvillanova" ]
[ "The bulk edit is running...\r\n\r\nSee for example: \r\n- A single config: https://huggingface.co/datasets/acronym_identification/discussions/2\r\n- Multiple configs: https://huggingface.co/datasets/babi_qa/discussions/1", "TODO: Add \"dataset_info\" YAML metadata to:\r\n- [x] \"chr_en\" has no metadata JSON fil...
MEMBER
After a bulk edit of canonical datasets to create the YAML `dataset_info` metadata, the split names were accidentally sorted alphabetically. See for example: - https://huggingface.co/datasets/bc2gm_corpus/commit/2384629484401ecf4bb77cd808816719c424e57c Note that this order is the one appearing in the preview of the...
1,452,631,517
I_kwDODunzps5WlWXd
5,255
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
closed
completed
2022-11-17T03:22:22
2022-12-17T12:20:38
2022-12-17T12:20:37Z
https://github.com/huggingface/datasets/issues/5255
sayakpaul
[ "dataset request" ]
[ "sayakpaul" ]
[ "Also cc @mariosasko and @lhoestq ", "Cool ! Let us know if you have questions or if we can help :)\r\n\r\nI guess we'll also have to create the NYU CS Department on the Hub ?", "> I guess we'll also have to create the NYU CS Department on the Hub ?\r\n\r\nYes, you're right! Let me add it to my profile first, a...
MEMBER
### Name NYUDepth ### Paper http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf ### Data https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html ### Motivation Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well: * [GLPN...
1,451,761,321
I_kwDODunzps5WiB6p
5,251
Docs are not generated after latest release
closed
completed
2022-11-16T14:59:31
2022-11-22T16:27:50
2022-11-22T16:27:50Z
https://github.com/huggingface/datasets/issues/5251
albertvillanova
[ "maintenance" ]
[]
[ "After a discussion with @mishig25:\r\n- He said that this action should be triggered if we call our release branch according to the regex `v*-release`, as transformers does\r\n- I said that our procedure is different: our release branch is *temporary* and it is deleted just after the release PR is merged to main\r...
MEMBER
After the latest `datasets` release version 0.7.0, the docs were not generated. As we have changed the release procedure (so that now we do not push directly to main branch), maybe we should also change the corresponding GitHub action: https://github.com/huggingface/datasets/blob/edf1902f954c5568daadebcd8754bdad4...
1,451,692,247
I_kwDODunzps5WhxDX
5,249
Protect the main branch from inadvertent direct pushes
closed
completed
2022-11-16T14:19:03
2023-12-21T10:28:27
2023-12-21T10:28:26Z
https://github.com/huggingface/datasets/issues/5249
albertvillanova
[ "maintenance" ]
[ "albertvillanova" ]
[ "It seems all the tasks have been addressed, meaning this issue can be closed, no?" ]
MEMBER
We have decided to implement a protection mechanism in this repository, so that nobody (not even administrators) can inadvertently push accidentally directly to the main branch. See context here: - d7c942228b8dcf4de64b00a3053dce59b335f618 To do: - [x] Protect main branch - Settings > Branches > Branch protec...
1,450,376,433
I_kwDODunzps5Wcvzx
5,245
Unable to rename columns in streaming dataset
closed
completed
2022-11-15T21:04:41
2022-11-28T12:53:24
2022-11-28T12:53:24Z
https://github.com/huggingface/datasets/issues/5245
peregilk
[]
[ "alvarobartt" ]
[ "Hi @peregilk this bug is directly related to https://github.com/huggingface/datasets/issues/3888, and still not fixed... But I'll try to have a look!", "Thanks @alvarobartt. It is great if you are able to fix it, but when reading the explanation it seems like it is possible to work around it.\r\n\r\nWe also trie...
NONE
### Describe the bug Trying to rename column in a streaming datasets, destroys the features object. ### Steps to reproduce the bug The following code illustrates the error: ``` from datasets import load_dataset dataset = load_dataset('mc4', 'en', streaming=True, split='train') dataset.info.features # {'text':...
1,450,019,225
I_kwDODunzps5WbYmZ
5,244
Allow dataset streaming from private a private source when loading a dataset with a dataset loading script
open
2022-11-15T16:02:10
2022-11-23T14:02:30
https://github.com/huggingface/datasets/issues/5244
bruno-hays
[ "enhancement" ]
[]
[ "Hi ! What kind of private source ? We're exploring adding support for cloud storage and URIs like s3://, gs:// etc. with authentication in the download manager", "Hello! It's a google cloud storage, so gs://, but I'm using it with https.\r\nBeing able to provide a file system like [here](https://huggingface.co/d...
CONTRIBUTOR
### Feature request Add arguments to the function _get_authentication_headers_for_url_ like custom_endpoint and custom_token in order to add flexibility when downloading files from a private source. It should also be possible to provide these arguments from the dataset loading script, maybe giving them to the dl_...
1,449,523,962
I_kwDODunzps5WZfr6
5,243
Download only split data
open
2022-11-15T10:15:54
2025-02-25T14:47:03
https://github.com/huggingface/datasets/issues/5243
capsabogdan
[ "enhancement" ]
[]
[ "Hi @capsabogdan! Unfortunately, it's hard to implement because quite often datasets data is being hosted in a single archive for all splits :( So we have to download the whole archive to split it into splits. This is the case for CommonVoice too. \r\n\r\nHowever, for cases when data is distributed in separate arch...
NONE
### Feature request Is it possible to download only the data that I am requesting and not the entire dataset? I run out of disk spaceas it seems to download the entire dataset, instead of only the part needed. common_voice["test"] = load_dataset("mozilla-foundation/common_voice_11_0", "en", split="test", ...
1,449,069,382
I_kwDODunzps5WXwtG
5,242
Failed Data Processing upon upload with zip file full of images
open
2022-11-15T02:47:52
2022-11-15T17:59:23
https://github.com/huggingface/datasets/issues/5242
scrambled2
[]
[]
[ "cc @abhishekkrthakur @SBrandeis " ]
NONE
I went to autotrain and under image classification arrived where it was time to prepare my dataset. Screenshot below ![image](https://user-images.githubusercontent.com/82735473/201814099-3cc5ff8a-88dc-4f5f-8140-f19560641d83.png) I chose the method 2 option. I have a csv file with two columns. ~23,000 files. I...
1,446,294,165
I_kwDODunzps5WNLKV
5,232
Incompatible dill versions in datasets 2.6.1
closed
completed
2022-11-12T06:46:23
2022-11-14T08:24:43
2022-11-14T08:07:59Z
https://github.com/huggingface/datasets/issues/5232
vinaykakade
[]
[]
[ "Thanks for reporting, @vinaykakade.\r\n\r\nWe are discussing about making a release early this week.\r\n\r\nPlease note that in the meantime, in your specific case (as we also pointed out here: https://github.com/huggingface/datasets/issues/5162#issuecomment-1291720293), you can circumvent the issue by pinning `mu...
NONE
### Describe the bug datasets version 2.6.1 has a dependency on dill<0.3.6. This causes a conflict with dill>=0.3.6 used by multiprocess dependency in datasets 2.6.1 This issue is already fixed in https://github.com/huggingface/datasets/pull/5166/files, but not yet been released. Please release a new version of the...
1,445,883,267
I_kwDODunzps5WLm2D
5,231
Using `set_format(type='torch', columns=columns)` makes Array2D/3D columns stop formatting correctly
closed
completed
2022-11-11T18:54:36
2022-11-11T20:42:29
2022-11-11T18:59:50Z
https://github.com/huggingface/datasets/issues/5231
plamb-viso
[]
[]
[ "In case others find this, the problem was not with set_format, but my usages of `to_pandas()` and `from_pandas()` which I was using during dataset splitting; somewhere in the chain of converting to and from pandas the `Array2D/Array3D` types get converted to series of `Sequence()` types" ]
NONE
I have a Dataset with two Features defined as follows: ``` 'image': Array3D(dtype="int64", shape=(3, 224, 224)), 'bbox': Array2D(dtype="int64", shape=(512, 4)), ``` On said dataset, if I `dataset.set_format(type='torch')` and then use the dataset in a dataloader, these columns are correctly cast to Tensors of ...
1,445,507,580
I_kwDODunzps5WKLH8
5,230
dataclasses error when importing the library in python 3.11
closed
completed
2022-11-11T13:53:49
2023-05-25T04:37:05
2022-11-14T15:27:37Z
https://github.com/huggingface/datasets/issues/5230
yonikremer
[]
[ "mariosasko" ]
[ "I opened [this issue](https://github.com/python/cpython/issues/99401).\r\nPython's maintainers say that the issue is caused by [this change](https://docs.python.org/3.11/whatsnew/3.11.html#dataclasses).\r\nI believe adding a `__hash__` method to `datasets.utils.version.Version` should solve (at least partially) th...
NONE
### Describe the bug When I import datasets using python 3.11 the dataclasses standard library raises the following error: `ValueError: mutable default <class 'datasets.utils.version.Version'> for field version is not allowed: use default_factory` When I tried to import the library using the following jupyter note...
1,445,121,028
I_kwDODunzps5WIswE
5,229
Type error when calling `map` over dataset containing 0-d tensors
closed
completed
2022-11-11T08:27:28
2023-01-13T16:00:53
2023-01-13T16:00:53Z
https://github.com/huggingface/datasets/issues/5229
phipsgabler
[]
[]
[ "Hi! \r\n\r\nWe could address this by calling `.item()` on such tensors to extract the value, but this would lose us the type, which could lead to storing the generated dataset in a suboptimal format. Considering this, I think the only proper fix would be implementing support for 0-D tensors on Apache Arrow's side ...
NONE
### Describe the bug 0-dimensional tensors in a dataset lead to `TypeError: iteration over a 0-d array` when calling `map`. It is easy to generate such tensors by using `.with_format("...")` on the whole dataset. ### Steps to reproduce the bug ``` ds = datasets.Dataset.from_list([{"a": 1}, {"a": 1}]).with_fo...
1,444,763,105
I_kwDODunzps5WHVXh
5,228
Loading a dataset from the hub fails if you happen to have a folder of the same name
open
2022-11-11T00:51:54
2023-05-03T23:23:04
https://github.com/huggingface/datasets/issues/5228
dakinggg
[]
[]
[ "`load_dataset` first checks for a local directory before checking for the Hub.\r\n\r\nTo make it explicit that it has to fetch the Hub, we could support the `hffs` syntax:\r\n```python\r\nload_dataset(\"hf://datasets/glue\")\r\n```\r\n\r\nwould that work for you ? Also cc @mariosasko who's leading the `hffs` proje...
CONTRIBUTOR
### Describe the bug I'm not 100% sure this should be considered a bug, but it was certainly annoying to figure out the cause of. And perhaps I am just missing a specific argument needed to avoid this conflict. Basically I had a situation where multiple workers were downloading different parts of the glue dataset and ...
1,444,620,094
I_kwDODunzps5WGyc-
5,227
datasets.data_files.EmptyDatasetError: The directory at wikisql doesn't contain any data files
closed
completed
2022-11-10T21:57:06
2023-10-07T05:04:41
2022-11-10T22:05:43Z
https://github.com/huggingface/datasets/issues/5227
ScottM-wizard
[]
[]
[ "Fixed. Please close.", "how to fix?i need your help" ]
NONE
### Describe the bug From these lines: from datasets import list_datasets, load_dataset dataset = load_dataset("wikisql","binary") I get error message: datasets.data_files.EmptyDatasetError: The directory at wikisql doesn't contain any data files And yet the 'wikisql' is reported to exist via the list_datas...
1,444,385,148
I_kwDODunzps5WF5F8
5,226
Q: Memory release when removing the column?
closed
completed
2022-11-10T18:35:27
2022-11-29T15:10:10
2022-11-29T15:10:10Z
https://github.com/huggingface/datasets/issues/5226
bayartsogt-ya
[]
[]
[ "Hi ! Datasets are memory mapped from your disk, i.e. they're not loaded in RAM. This is possible thanks to the Arrow data format.\r\n\r\nTherefore the column you remove is not in RAM, so removing it doesn't cause the RAM to decrease.", "Thanks for the explanation! @lhoestq \r\nI wonder since it is memory mapped,...
NONE
### Describe the bug How do I release memory when I use methods like `.remove_columns()` or `clear()` in notebooks? ```python from datasets import load_dataset common_voice = load_dataset("mozilla-foundation/common_voice_11_0", "ja", use_auth_token=True) # check memory -> RAM Used (GB): 0.704 / Total (GB) 33.670...
1,444,305,183
I_kwDODunzps5WFlkf
5,225
Add video feature
open
2022-11-10T17:36:11
2022-12-02T15:13:15
https://github.com/huggingface/datasets/issues/5225
nateraw
[ "enhancement", "help wanted", "vision" ]
[]
[ "@NielsRogge @rwightman may have additional requirements regarding this feature.\r\n\r\nWhen adding a new (decodable) type, the hardest part is choosing the right decoding library. What I mean by \"right\" here is that it has all the features we need and is easy to install (with GPU support?).\r\n\r\nSome candidate...
CONTRIBUTOR
### Feature request Add a `Video` feature to the library so folks can include videos in their datasets. ### Motivation Being able to load Video data would be quite helpful. However, there are some challenges when it comes to videos: 1. Videos, unlike images, can end up being extremely large files 2. Often times ...
1,443,640,867
I_kwDODunzps5WDDYj
5,224
Seems to freeze when loading audio dataset with wav files from local folder
closed
completed
2022-11-10T10:29:31
2023-04-25T09:54:05
2022-11-22T11:24:19Z
https://github.com/huggingface/datasets/issues/5224
uriii3
[]
[]
[ "I just tried to do the same but changing the `.wav` files to `.mp3` files and that doesn't fix it.", "I don't know if anyone will ever read this but I've tried to upload the same dataset with google colab and the output seems more clarifying. I didn't specify the train/test split so the dataset wasn't fully uplo...
NONE
### Describe the bug I'm following the instructions in [https://huggingface.co/docs/datasets/audio_load#audiofolder-with-metadata](url) to be able to load a dataset from a local folder. I have everything into a folder, into a train folder and then the audios and csv. When I try to load the dataset and run from term...
1,442,412,507
I_kwDODunzps5V-Xfb
5,222
HuggingFace website is incorrectly reporting that my datasets are pickled
closed
completed
2022-11-09T16:41:16
2022-11-09T18:10:46
2022-11-09T18:06:57Z
https://github.com/huggingface/datasets/issues/5222
ProGamerGov
[]
[]
[ "cc @McPatate maybe you know what's happening ?", "Yes I think I know what is happening. We check in zips for pickles, and the UI must display the pickle jar when a scan has an associated list of imports, even when empty.\r\n~I'll fix ASAP !~", "> I'll fix ASAP !\r\n\r\nActually I'd rather leave it like that f...
CONTRIBUTOR
### Describe the bug HuggingFace is incorrectly reporting that my datasets are pickled. They are not picked, they are simple ZIP files containing PNG images. Hopefully this is the right location to report this bug. ### Steps to reproduce the bug Inspect my dataset respository here: https://huggingface.co/datasets...
1,442,309,094
I_kwDODunzps5V9-Pm
5,221
Cannot push
closed
completed
2022-11-09T15:32:05
2022-11-10T18:11:21
2022-11-10T18:11:11Z
https://github.com/huggingface/datasets/issues/5221
bayartsogt-ya
[]
[]
[ "Did you run `huggingface-cli lfs-enable-largefiles` before committing or before adding ? Maybe you can try before adding\r\n\r\nAnyway I'd encourage you to split your data into several TAR archives if possible, this way the dataset can loaded faster using multiprocessing (by giving each process a subset of shards ...
NONE
### Describe the bug I am facing the issue when I try to push the tar.gz file around 11G to HUB. ``` (venv) ╭─laptop@laptop ~/PersonalProjects/data/ulaanbal_v0 β€Ήmain●› ╰─$ du -sh * 4.0K README.md 13G data 516K test.jsonl 18M train.jsonl 4.0K ulaanbal_v0.py 11G ulaanbal_v0.tar.gz 452K validation.jsonl...
1,441,664,377
I_kwDODunzps5V7g15
5,220
Implicit type conversion of lists in to_pandas
closed
completed
2022-11-09T08:40:18
2022-11-10T16:12:26
2022-11-10T16:12:26Z
https://github.com/huggingface/datasets/issues/5220
sanderland
[]
[]
[ "I think this behavior comes from PyArrow:\r\n```python\r\nimport pyarrow as pa\r\nt = pa.table({\"a\": [[0]]})\r\nt.to_pandas().a.values[0]\r\n# array([0])\r\n```\r\n\r\nI believe this has to do with zero-copy: you can get a pandas DataFrame without copying the buffers from arrow, and therefore end up with numpy a...
CONTRIBUTOR
### Describe the bug ``` ds = Dataset.from_list([{'a':[1,2,3]}]) ds.to_pandas().a.values[0] ``` Results in `array([1, 2, 3])` -- a rather unexpected conversion of types which made downstream tools expecting lists not happy. ### Steps to reproduce the bug See snippet ### Expected behavior Keep the original typ...
1,441,255,910
I_kwDODunzps5V59Hm
5,219
Delta Tables usage using Datasets Library
open
2022-11-09T02:43:56
2023-03-02T19:29:12
https://github.com/huggingface/datasets/issues/5219
reichenbch
[ "enhancement" ]
[]
[ "Hi ! Interesting :) Can you provide concrete examples of cases where it can be useful ?", "Few example blogs and posts that might help on this - \r\n\r\n1. https://hevodata.com/learn/databricks-delta-tables/\r\n2. https://docs.databricks.com/delta/index.html\r\n\r\nBasically, we are looking at utility of Dataset...
NONE
### Feature request Adding compatibility of Datasets library with Delta Format. Elevating the utilities of Datasets library from Machine Learning Scope to Data Engineering Scope as well. ### Motivation We know datasets library can absorb csv, json, parquet, etc. file formats but it would be great if Datasets library...
1,441,254,194
I_kwDODunzps5V58sy
5,218
Delta Tables usage using Datasets Library
closed
completed
2022-11-09T02:42:18
2022-11-09T02:42:36
2022-11-09T02:42:36Z
https://github.com/huggingface/datasets/issues/5218
rcv-koo
[ "enhancement" ]
[]
[]
NONE
### Feature request Adding compatibility of Datasets library with Delta Format. Elevating the utilities of Datasets library from Machine Learning Scope to Data Engineering Scope as well. ### Motivation We know datasets library can absorb csv, json, parquet, etc. file formats but it would be great if Datasets library...
1,441,041,947
I_kwDODunzps5V5I4b
5,216
save_elasticsearch_index
open
2022-11-08T23:06:52
2022-11-09T13:16:45
https://github.com/huggingface/datasets/issues/5216
amobash2
[]
[]
[ "Hi ! I think there exist tools to dump and reload an index in your elastic search but I'm not super familiar with it.\r\n\r\nAnyway after reloading an index in elastic search you can call `ds.load_elasticsearch_index` which will connect the index to the dataset without re-indexing" ]
NONE
Hi, I am new to Dataset and elasticsearch. I was wondering is there any equivalent approach to save elasticsearch index as of save_faiss_index locally for later use, to remove the need to re-index a dataset?
1,438,367,678
I_kwDODunzps5Vu7--
5,209
Implement ability to define splits in metadata section of dataset card
closed
completed
2022-11-07T13:27:16
2023-07-21T14:36:02
2023-07-21T14:36:01Z
https://github.com/huggingface/datasets/issues/5209
merveenoyan
[ "enhancement" ]
[]
[ "@merveenoyan Do you want different files to be splits or configurations?\r\n\r\nFrom [what you specified in `Readme.md`](https://huggingface.co/datasets/inria-soda/tabular-benchmark/commit/fb4575853772c62a20203bdd6cc0202f5db4ce4e) I hypothesize that you want to have 4 **configs** corresponding to directories: `\"c...
CONTRIBUTOR
### Feature request If you go here: https://huggingface.co/datasets/inria-soda/tabular-benchmark/tree/main you will see bunch of folders that has various CSV files. I’d like dataset viewer to show these files instead of only one dataset like it currently does. (and also people to be able to load them as splits inste...
1,437,858,506
I_kwDODunzps5Vs_rK
5,207
Connection error of the HuggingFace's dataset Hub due to SSLError with proxy
open
2022-11-07T06:56:23
2025-03-08T09:04:10
https://github.com/huggingface/datasets/issues/5207
leemgs
[]
[]
[ "Hi ! It looks like an issue with your python environment, can you make sure you're able to run GET requests to https://huggingface.co using `requests` in python ?", "Thanks for your reply. Does this mean that I have to use the `do_dataset `function and the `requests `function to download the dataset from the com...
NONE
### Describe the bug It's weird. I could not normally connect the dataset Hub of HuggingFace due to a SSLError in my office. Even when I try to connect using my company's proxy address (e.g., http_proxy and https_proxy), I'm getting the SSLError issue. What should I do to download the datanet stored in Hugg...
1,437,223,894
I_kwDODunzps5VqkvW
5,206
Use logging instead of printing to console
closed
completed
2022-11-05T23:48:02
2022-11-06T00:06:00
2022-11-06T00:05:59Z
https://github.com/huggingface/datasets/issues/5206
bilelomrani1
[]
[]
[ "Actually upon closer inspection, it is documented in the code that this behavior is intentional, so I'll close this." ]
NONE
### Describe the bug Some logs ([here](https://github.com/huggingface/datasets/blob/4a6e1fe2735505efc7e3a3dbd3e1835da0702575/src/datasets/builder.py#L778), [here](https://github.com/huggingface/datasets/blob/4a6e1fe2735505efc7e3a3dbd3e1835da0702575/src/datasets/builder.py#L786), and [here](https://github.com/huggingfa...
1,437,221,259
I_kwDODunzps5VqkGL
5,204
`push_to_hub` not propagating `token` through `DownloadConfig`
closed
completed
2022-11-05T23:32:20
2022-11-08T10:12:09
2022-11-08T10:12:08Z
https://github.com/huggingface/datasets/issues/5204
alvarobartt
[]
[ "alvarobartt" ]
[ "#self-assign", "@lhoestq can you close this issue as part of the recent #5205 merge? Thanks πŸ€— ", "Thank you :)" ]
MEMBER
### Describe the bug When trying to upload a new πŸ€— Dataset to the Hub via Python, and providing the `token` as a parameter to the `Dataset.push_to_hub` function, it just works for the first time, assuming that the dataset didn't exist before. But when trying to run `Dataset.push_to_hub` again over the same dataset...
1,435,886,090
I_kwDODunzps5VleIK
5,202
CI fails after bulk edit of canonical datasets
closed
completed
2022-11-04T10:51:20
2023-02-16T09:11:10
2023-02-16T09:11:10Z
https://github.com/huggingface/datasets/issues/5202
albertvillanova
[ "bug" ]
[ "albertvillanova" ]
[ "Fixed by: https://huggingface.co/datasets/paws/discussions/1" ]
MEMBER
``` ______ test_get_dataset_config_info[paws-labeled_final-expected_splits2] _______ [gw0] linux -- Python 3.7.15 /opt/hostedtoolcache/Python/3.7.15/x64/bin/python path = 'paws', config_name = 'labeled_final' expected_splits = ['train', 'test', 'validation'] @pytest.mark.parametrize( "path, config...
1,435,831,559
I_kwDODunzps5VlQ0H
5,200
Some links to canonical datasets in the docs are outdated
closed
completed
2022-11-04T10:06:21
2022-11-07T18:40:20
2022-11-07T18:40:20Z
https://github.com/huggingface/datasets/issues/5200
polinaeterna
[ "documentation" ]
[]
[ "Thanks for catching this, I can go through the docs and replace the links to their corresponding datasets on the Hub!" ]
CONTRIBUTOR
As we don't have canonical datasets in the github repo anymore, some old links to them doesn't work. I don't know how many of them are there, I found link to SuperGlue here: https://huggingface.co/docs/datasets/dataset_script#multiple-configurations, probably there are more of them. These links should be replaced by li...
1,433,883,780
I_kwDODunzps5Vd1SE
5,193
"One or several metadata. were found, but not in the same directory or in a parent directory"
closed
completed
2022-11-02T22:46:25
2022-11-03T13:39:16
2022-11-03T13:35:44Z
https://github.com/huggingface/datasets/issues/5193
lambda-science
[]
[]
[ "Also unrelated but still: https://huggingface.co/docs/datasets/image_dataset#generate-the-dataset\r\n```If your loading script passed the test, you should now have a dataset_infos.json file in your dataset folder.```\r\nIt's not the case anymore as it's now in the readme.md, it was confusing to me", "And here is...
NONE
### Describe the bug When loading my own dataset, on loading it I get an error. Here is my dataset link: https://huggingface.co/datasets/corentinm7/MyoQuant-SDH-Data And the error after loading with: ```python from datasets import load_dataset load_dataset("corentinm7/MyoQuant-SDH-Data") ``` ```python Downlo...
1,433,014,626
I_kwDODunzps5VahFi
5,190
`path` is `None` when downloading a custom audio dataset from the Hub
closed
completed
2022-11-02T11:51:25
2022-11-02T12:55:02
2022-11-02T12:55:02Z
https://github.com/huggingface/datasets/issues/5190
lewtun
[]
[]
[ "Hi! Yes, this is expected behavior - we do this as a security measure to not leak local paths (this info would be useless on other users' machines anyways) and only push audio bytes. \r\n" ]
MEMBER
### Describe the bug I've created an [audio dataset](https://huggingface.co/datasets/lewtun/audio-test-push) using the `audiofolder` feature desribed in the [docs](https://huggingface.co/docs/datasets/audio_dataset#audiofolder) and then pushed it to the Hub. Locally, I can see the `audio.path` feature is of the ...
1,432,769,143
I_kwDODunzps5VZlJ3
5,189
Reduce friction in tabular dataset workflow by eliminating having splits when dataset is loaded
open
2022-11-02T09:15:02
2022-12-06T12:13:17
https://github.com/huggingface/datasets/issues/5189
merveenoyan
[ "enhancement" ]
[ "lhoestq" ]
[ "I have to admit I'm not a fan of this idea, as this would result in a non-consistent behavior between tabular and non-tabular datasets, which is confusing if done without the context you provided. Instead, we could consider returning a `Dataset` object rather than `DatasetDict` if there is only one split in the ge...
CONTRIBUTOR
### Feature request Sorry for cryptic name but I'd like to explain using code itself. When I want to load a specific dataset from a repository (for instance, this: https://huggingface.co/datasets/inria-soda/tabular-benchmark) ```python from datasets import load_dataset dataset = load_dataset("inria-soda/tabular-b...
1,432,045,011
I_kwDODunzps5VW0XT
5,186
Incorrect error message when Dataset.from_sql fails and sqlalchemy not installed
closed
completed
2022-11-01T20:25:51
2022-11-15T18:24:39
2022-11-15T18:24:39Z
https://github.com/huggingface/datasets/issues/5186
nateraw
[]
[ "mariosasko" ]
[ "Hi! The first `Dataset.from_sql` call also outputs the \"ImportError: Using URI string without sqlalchemy installed.\" message, but you also get \"During handling of the above exception another exception occurred: ...\" after which the ValueError is printed. I agree that this behavior makes it easy to miss the ori...
CONTRIBUTOR
### Describe the bug When calling `Dataset.from_sql` (in my case, with sqlite3), it fails with a message ```ValueError: Please pass `features` or at least one example when writing data``` when I don't have `sqlalchemy` installed. ### Steps to reproduce the bug Make a new sqlite db with `sqlite3` and `pandas` from...
1,432,021,611
I_kwDODunzps5VWupr
5,185
Allow passing a subset of output features to Dataset.map
open
2022-11-01T20:07:20
2022-11-01T20:07:34
https://github.com/huggingface/datasets/issues/5185
sanderland
[ "enhancement" ]
[]
[]
CONTRIBUTOR
### Feature request Currently, map does one of two things to the features (if I'm not mistaken): * when you do not pass features, types are assumed to be equal to the input if they can be cast, and inferred otherwise * when you pass a full specification of features, output features are set to this However, so...
1,431,418,066
I_kwDODunzps5VUbTS
5,183
Loading an external dataset in a format similar to conll2003
closed
completed
2022-11-01T13:18:29
2022-11-02T11:57:50
2022-11-02T11:57:50Z
https://github.com/huggingface/datasets/issues/5183
Taghreed7878
[]
[]
[]
NONE
I'm trying to load a custom dataset in a Dataset object, it's similar to conll2003 but with 2 columns only (word entity), I used the following script: features = datasets.Features( {"tokens": datasets.Sequence(datasets.Value("string")), "ner_tags": datasets.Sequence( datasets.featu...
1,431,029,547
I_kwDODunzps5VS8cr
5,182
Add notebook / other resource links to the task-specific data loading guides
closed
completed
2022-11-01T07:57:26
2022-11-03T01:49:57
2022-11-03T01:49:57Z
https://github.com/huggingface/datasets/issues/5182
sayakpaul
[ "enhancement" ]
[ "sayakpaul" ]
[ "Yea this would be great! We would need an object detection tutorial notebook too if it doesn't already exist there. ", "There is one: https://huggingface.co/docs/datasets/object_detection.\r\n\r\nI will start the work. " ]
MEMBER
Does it make sense to include links to notebooks / scripts that show how to use a dataset for training / fine-tuning a model? For example, here in [https://huggingface.co/docs/datasets/image_classification] we could include a mention of https://github.com/huggingface/notebooks/blob/main/examples/image_classificatio...
1,431,027,102
I_kwDODunzps5VS72e
5,181
Add a guide for semantic segmentation
closed
completed
2022-11-01T07:54:50
2022-11-04T18:23:36
2022-11-04T18:23:36Z
https://github.com/huggingface/datasets/issues/5181
sayakpaul
[ "documentation" ]
[ "sayakpaul" ]
[ "Sure this sounds great! Would this be pure torchvision, albumentations, or something else?", "I am considering `torchvision` and `albumentations`. Also [works with TensorFlow](https://github.com/deep-diver/segformer-tf-transformers/blob/main/notebooks/TFSegFormer_Finetune.ipynb). \r\n\r\nI am assigning the issue...
MEMBER
Currently, we have these guides for object detection and image classification: * https://huggingface.co/docs/datasets/object_detection * https://huggingface.co/docs/datasets/image_classification I am proposing adding a similar guide for semantic segmentation. I am happy to contribute a PR for it. Cc: @os...
1,431,012,438
I_kwDODunzps5VS4RW
5,180
An example or recommendations for creating large image datasets?
open
2022-11-01T07:38:38
2022-11-02T10:17:11
https://github.com/huggingface/datasets/issues/5180
sayakpaul
[]
[]
[ "The beam utilities allow to prepare a dataset as parquet in your cloud storage. From my perspective this CLI is not super easy to use, but we've been working on a new python API to prepare a dataset in your cloud storage:\r\n```python\r\nfrom datasets import load_dataset_builder\r\n\r\nbuilder = load_dataset_build...
MEMBER
I know that Apache Beam and `datasets` have [some connector utilities](https://huggingface.co/docs/datasets/beam). But it's a little unclear what we mean by "But if you want to run your own Beam pipeline with Dataflow, here is how:". What does that pipeline do? As a user, I was wondering if we have this support for...
1,430,826,100
I_kwDODunzps5VSKx0
5,179
`map()` fails midway due to format incompatibility
closed
completed
2022-11-01T03:57:59
2022-11-08T11:35:26
2022-11-08T11:35:26Z
https://github.com/huggingface/datasets/issues/5179
sayakpaul
[ "bug" ]
[]
[ "Cc: @lhoestq ", "You can end up with a list instead of a tensor if all the tensors inside the list can't be stacked together - can you make sure all your inputs are tensors with the same shape ?", "Is there an easy way to ensure it?", "You can make sure your `tokenize` function always return tensors of the s...
MEMBER
### Describe the bug I am using the `emotion` dataset from Hub for sequence classification. After training the model, I am using it to generate predictions for all the entries present in the `validation` split of the dataset. ```py def get_test_accuracy(model): def fn(batch): inputs = {k:v.to(device...
1,430,800,810
I_kwDODunzps5VSEmq
5,178
Unable to download the Chinese `wikipedia`, the dumpstatus.json not found!
closed
completed
2022-11-01T03:17:55
2022-11-02T08:27:15
2022-11-02T08:24:29Z
https://github.com/huggingface/datasets/issues/5178
beyondguo
[]
[ "albertvillanova" ]
[ "In the dumps page of the wiki (https://dumps.wikimedia.org/zhwiki/), I found the following dumps:\r\n```\r\nIndex of /zhwiki/\r\n[../](https://dumps.wikimedia.org/)\r\n[20220701/](https://dumps.wikimedia.org/zhwiki/20220701/) 21-Aug-2022 01:48 -\r\n[202207...
NONE
### Describe the bug I tried: `data = load_dataset('wikipedia', '20220301.zh', beam_runner='DirectRunner')` and `data = load_dataset("wikipedia", language="zh", date="20220301", beam_runner='DirectRunner')` but both got: `FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/zhwiki/20220301/dumpsta...
1,430,214,539
I_kwDODunzps5VP1eL
5,176
prepare dataset for cloud storage doesn't work
closed
completed
2022-10-31T17:28:57
2023-03-28T09:11:46
2023-03-28T09:11:45Z
https://github.com/huggingface/datasets/issues/5176
araonblake
[]
[]
[ "It looks like an issue with `gcsfs`, are you able to instantiate a `GCSFileSystem` manually ?", "closing since it was probably due to gcsfs" ]
NONE
### Describe the bug Following the [documentation](https://huggingface.co/docs/datasets/filesystems#load-and-save-your-datasets-using-your-cloud-storage-filesystem) and [this PR](https://github.com/huggingface/datasets/pull/4724), I was downloading and storing huggingface dataset to cloud storage. ``` from datasets ...
1,428,696,231
I_kwDODunzps5VKCyn
5,175
Loading an external NER dataset
closed
completed
2022-10-30T09:31:55
2022-11-01T13:15:49
2022-11-01T13:15:49Z
https://github.com/huggingface/datasets/issues/5175
Taghreed7878
[]
[]
[]
NONE
I need to use huggingface datasets to load a custom dataset similar to conll2003 but with more entities and each the files contain only two columns: word and ner tag. I tried this code snnipet that I found here as an answer to a similar issue: from datasets import Dataset INPUT_COLUMNS = "ID Text NER".split() ...
1,425,523,114
I_kwDODunzps5U98Gq
5,172
Inconsistency behavior between handling local file protocol and other FS protocols
open
2022-10-27T12:03:20
2024-05-08T19:31:13
https://github.com/huggingface/datasets/issues/5172
leoleoasd
[]
[]
[]
NONE
### Describe the bug These lines us used during load_from_disk: ``` if is_remote_filesystem(fs): dest_dataset_dict_path = extract_path_from_uri(dataset_dict_path) else: fs = fsspec.filesystem("file") dest_dataset_dict_path = dataset_dict_path ``` If a local FS is given, then it will the URL as th...
1,425,301,835
I_kwDODunzps5U9GFL
5,170
[Caching] Deterministic hashing of torch tensors
closed
completed
2022-10-27T09:15:15
2022-11-02T17:18:43
2022-11-02T17:18:43Z
https://github.com/huggingface/datasets/issues/5170
lhoestq
[ "enhancement" ]
[]
[]
MEMBER
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...
1,423,616,677
I_kwDODunzps5U2qql
5,165
Memory explosion when trying to access 4d tensors in datasets cast to torch or np
open
2022-10-26T08:14:47
2022-10-26T08:14:47
https://github.com/huggingface/datasets/issues/5165
clefourrier
[]
[]
[]
MEMBER
### 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...
1,422,461,112
I_kwDODunzps5UyQi4
5,162
Pip-compile: Could not find a version that matches dill<0.3.6,>=0.3.6
closed
completed
2022-10-25T13:23:50
2022-11-14T08:25:37
2022-10-28T05:38:15Z
https://github.com/huggingface/datasets/issues/5162
Rijgersberg
[]
[ "albertvillanova" ]
[ "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....
NONE
### 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...
1,422,371,748
I_kwDODunzps5Ux6uk
5,161
Dataset can’t cache model’s outputs
closed
completed
2022-10-25T12:19:00
2022-11-03T16:12:52
2022-11-03T16:12:51Z
https://github.com/huggingface/datasets/issues/5161
jongjyh
[]
[]
[ "Addressed in https://github.com/huggingface/datasets/pull/5191 (torch.Tensor objects now produce deterministic hashes)" ]
NONE
### 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...
1,422,193,938
I_kwDODunzps5UxPUS
5,160
Automatically add filename for image/audio folder
open
2022-10-25T09:56:49
2022-10-26T16:51:46
https://github.com/huggingface/datasets/issues/5160
patrickvonplaten
[ "enhancement" ]
[ "polinaeterna", "lhoestq", "mariosasko" ]
[ "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 ...
CONTRIBUTOR
### 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...
1,422,059,287
I_kwDODunzps5UwucX
5,158
Fix language and license tag names in all Hub datasets
closed
completed
2022-10-25T08:19:29
2022-10-25T11:27:26
2022-10-25T10:42:19Z
https://github.com/huggingface/datasets/issues/5158
albertvillanova
[ "dataset contribution" ]
[ "albertvillanova" ]
[ "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...
MEMBER
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 ...
1,421,703,577
I_kwDODunzps5UvXmZ
5,157
Consistent caching between python and jupyter
closed
completed
2022-10-25T01:34:33
2022-11-02T15:43:22
2022-11-02T15:43:22Z
https://github.com/huggingface/datasets/issues/5157
gpucce
[ "enhancement" ]
[ "gpucce" ]
[ "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...
CONTRIBUTOR
### 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...
1,421,667,125
I_kwDODunzps5UvOs1
5,156
Unable to download dataset using Azure Data Lake Gen 2
closed
completed
2022-10-25T00:43:18
2024-02-15T09:48:36
2022-11-17T23:37:08Z
https://github.com/huggingface/datasets/issues/5156
clarissesimoes
[]
[]
[ "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...
NONE
### 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...
1,420,833,457
I_kwDODunzps5UsDKx
5,153
default Image/AudioFolder infers labels when there is no metadata files even if there is only one dir
closed
completed
2022-10-24T13:28:18
2022-11-15T16:31:10
2022-11-15T16:31:09Z
https://github.com/huggingface/datasets/issues/5153
polinaeterna
[ "bug" ]
[ "polinaeterna" ]
[ "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" ]
CONTRIBUTOR
### 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...
1,420,808,919
I_kwDODunzps5Ur9LX
5,152
refactor FolderBasedBuilder and Image/AudioFolder tests
open
2022-10-24T13:11:52
2022-10-24T13:11:52
https://github.com/huggingface/datasets/issues/5152
polinaeterna
[ "refactoring" ]
[]
[]
CONTRIBUTOR
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.
1,420,791,163
I_kwDODunzps5Ur417
5,151
Add support to create different configs with `push_to_hub` (+ inferring configs from directories with package managers?)
open
2022-10-24T12:59:18
2022-11-04T14:55:20
https://github.com/huggingface/datasets/issues/5151
polinaeterna
[ "enhancement" ]
[ "polinaeterna" ]
[ "also asked in https://discuss.huggingface.co/t/create-multiple-dataset-configs-with-push-to-hub-method/25480" ]
CONTRIBUTOR
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...
1,420,684,999
I_kwDODunzps5Ure7H
5,150
Problems after upgrading to 2.6.1
open
2022-10-24T11:32:36
2024-05-12T07:40:03
https://github.com/huggingface/datasets/issues/5150
pietrolesci
[]
[]
[ "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...
NONE
### 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...
1,420,219,222
I_kwDODunzps5UptNW
5,148
Cannot find the rvl_cdip dataset
closed
completed
2022-10-24T04:57:42
2022-10-24T12:23:47
2022-10-24T06:25:28Z
https://github.com/huggingface/datasets/issues/5148
santule
[]
[ "albertvillanova" ]
[ "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...
NONE
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...
1,419,522,275
I_kwDODunzps5UnDDj
5,147
Allow ignoring kwargs inside fn_kwargs during dataset.map's fingerprinting
open
2022-10-22T21:46:38
2022-11-01T22:19:07
https://github.com/huggingface/datasets/issues/5147
falcaopetri
[ "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...
NONE
### 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...
1,418,005,452
I_kwDODunzps5UhQvM
5,145
Dataset order is not deterministic with ZIP archives and `iter_files`
closed
completed
2022-10-21T09:00:03
2022-10-27T09:51:49
2022-10-27T09:51:10Z
https://github.com/huggingface/datasets/issues/5145
fxmarty
[]
[ "albertvillanova" ]
[ "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...
CONTRIBUTOR
### 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...
1,417,974,731
I_kwDODunzps5UhJPL
5,144
Inconsistent documentation on map remove_columns
closed
completed
2022-10-21T08:37:53
2022-11-15T14:15:10
2022-11-15T14:15:10Z
https://github.com/huggingface/datasets/issues/5144
zhaowei-wang-nlp
[ "documentation", "duplicate", "good first issue", "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...
NONE
### 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...
1,416,837,186
I_kwDODunzps5UczhC
5,143
DownloadManager Git LFS support
closed
completed
2022-10-20T15:29:29
2022-10-20T17:17:10
2022-10-20T17:17:10Z
https://github.com/huggingface/datasets/issues/5143
Muennighoff
[ "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\")`", ...
CONTRIBUTOR
### 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? ##...
1,414,642,723
I_kwDODunzps5UUbwj
5,137
Align task tags in dataset metadata
closed
completed
2022-10-19T09:41:42
2022-11-10T05:25:58
2022-10-25T06:17:00Z
https://github.com/huggingface/datasets/issues/5137
albertvillanova
[ "dataset contribution" ]
[ "albertvillanova" ]
[ "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...
MEMBER
## 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...
1,414,413,519
I_kwDODunzps5UTjzP
5,135
Update docs once dataset scripts transferred to the Hub
closed
completed
2022-10-19T06:58:19
2022-10-20T08:10:01
2022-10-20T08:10:01Z
https://github.com/huggingface/datasets/issues/5135
albertvillanova
[ "documentation" ]
[ "albertvillanova" ]
[]
MEMBER
## 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...
1,413,623,687
I_kwDODunzps5UQi-H
5,134
Raise ImportError instead of OSError if required extraction library is not installed
closed
completed
2022-10-18T17:53:46
2022-10-25T15:56:59
2022-10-25T15:56:59Z
https://github.com/huggingface/datasets/issues/5134
mariosasko
[ "enhancement", "good first issue", "hacktoberfest" ]
[ "ayushthe1" ]
[ "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....
COLLABORATOR
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...
1,413,623,462
I_kwDODunzps5UQi6m
5,133
Tensor operation not functioning in dataset mapping
closed
completed
2022-10-18T17:53:35
2022-10-19T04:15:45
2022-10-19T04:15:44Z
https://github.com/huggingface/datasets/issues/5133
xinghaow99
[ "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 ...
NONE
## 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...
1,413,607,306
I_kwDODunzps5UQe-K
5,132
Depracate `num_proc` parameter in `DownloadManager.extract`
closed
completed
2022-10-18T17:41:05
2022-10-25T15:56:46
2022-10-25T15:56:46Z
https://github.com/huggingface/datasets/issues/5132
mariosasko
[ "enhancement", "good first issue", "hacktoberfest" ]
[ "ayushthe1" ]
[ "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." ]
COLLABORATOR
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...
1,413,534,863
I_kwDODunzps5UQNSP
5,131
WikiText 103 tokenizer hangs
closed
completed
2022-10-18T16:44:00
2023-08-08T08:42:40
2023-07-21T14:41:51Z
https://github.com/huggingface/datasets/issues/5131
TrentBrick
[ "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...
NONE
See issue here: https://github.com/huggingface/transformers/issues/19702
1,413,031,664
I_kwDODunzps5UOSbw
5,129
unexpected `cast` or `class_encode_column` result after `rename_column`
closed
completed
2022-10-18T11:15:24
2022-10-19T03:02:26
2022-10-19T03:02:26Z
https://github.com/huggingface/datasets/issues/5129
quaeast
[ "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...
NONE
## 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...
1,410,828,756
I_kwDODunzps5UF4nU
5,123
datasets freezes with streaming mode in multiple-gpu
open
2022-10-17T03:28:16
2025-12-15T18:48:31
https://github.com/huggingface/datasets/issues/5123
jackfeinmann5
[ "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 ?"...
NONE
## 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...
1,410,547,373
I_kwDODunzps5UEz6t
5,118
Installing `datasets` on M1 computers
closed
completed
2022-10-16T16:50:08
2022-10-19T09:10:08
2022-10-19T09:10:08Z
https://github.com/huggingface/datasets/issues/5118
david1542
[ "bug" ]
[ "albertvillanova" ]
[ "Thanks for reporting, @david1542." ]
CONTRIBUTOR
## 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...
1,409,571,346
I_kwDODunzps5UBFoS
5,117
Progress bars have color red and never completed to 100%
closed
completed
2022-10-14T16:12:30
2024-06-19T19:03:42
2022-10-23T12:58:41Z
https://github.com/huggingface/datasets/issues/5117
echatzikyriakidis
[ "bug" ]
[ "david1542" ]
[ "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...
NONE
## 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...
1,409,236,738
I_kwDODunzps5T_z8C
5,114
load_from_disk with remote filesystem fails due to a wrong temporary local folder path
open
2022-10-14T11:54:53
2022-11-19T07:13:10
https://github.com/huggingface/datasets/issues/5114
bruno-hays
[ "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```" ]
CONTRIBUTOR
## 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...
1,409,143,409
I_kwDODunzps5T_dJx
5,112
Bug with filtered indices
closed
completed
2022-10-14T10:35:47
2022-10-14T13:55:03
2022-10-14T12:11:45Z
https://github.com/huggingface/datasets/issues/5112
albertvillanova
[ "bug" ]
[ "albertvillanova" ]
[ "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 ...
MEMBER
## 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...
1,408,143,170
I_kwDODunzps5T7o9C
5,111
map and filter not working properly in multiprocessing with the new release 2.6.0
closed
completed
2022-10-13T17:00:55
2022-10-17T08:26:59
2022-10-14T14:59:59Z
https://github.com/huggingface/datasets/issues/5111
loubnabnl
[ "bug" ]
[ "lhoestq" ]
[ "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...
NONE
## 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...
1,407,434,706
I_kwDODunzps5T47_S
5,109
Map caching not working for some class methods
closed
completed
2022-10-13T09:12:58
2022-10-17T10:38:45
2022-10-17T10:38:45Z
https://github.com/huggingface/datasets/issues/5109
Mouhanedg56
[ "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...
CONTRIBUTOR
## 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...
1,406,078,357
I_kwDODunzps5Tzw2V
5,105
Specifying an exisiting folder in download_and_prepare deletes everything in it
closed
completed
2022-10-12T11:53:33
2026-04-27T18:44:32
2026-04-27T18:44:32Z
https://github.com/huggingface/datasets/issues/5105
cakiki
[ "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...
CONTRIBUTOR
## 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: ``` ...
1,404,746,554
I_kwDODunzps5Turs6
5,102
Error in create a dataset from a Python generator
closed
completed
2022-10-11T14:28:58
2022-10-12T11:31:56
2022-10-12T11:31:56Z
https://github.com/huggingface/datasets/issues/5102
yangxuhui
[ "bug", "good first issue", "hacktoberfest" ]
[ "riccardobucco" ]
[ "Hi, thanks for reporting! The last line should be `dataset = Dataset.from_generator(my_gen)`.", "Can I work on this one?" ]
NONE
## 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...
1,404,458,586
I_kwDODunzps5TtlZa
5,100
datasets[s3] sagemaker can't run a model - datasets issue with Value and ClassLabel and cast() method
closed
completed
2022-10-11T11:16:31
2022-10-11T13:48:26
2022-10-11T13:48:26Z
https://github.com/huggingface/datasets/issues/5100
jagochi
[]
[]
[]
NONE
1,404,370,191
I_kwDODunzps5TtP0P
5,099
datasets doesn't support # in data paths
closed
completed
2022-10-11T10:05:32
2022-10-13T13:14:20
2022-10-13T13:14:20Z
https://github.com/huggingface/datasets/issues/5099
loubnabnl
[ "bug", "good first issue", "hacktoberfest" ]
[ "riccardobucco" ]
[ "`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...
NONE
## 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...
1,404,058,518
I_kwDODunzps5TsDuW
5,098
Classes label error when loading symbolic links using imagefolder
closed
completed
2022-10-11T06:10:58
2022-11-14T14:40:20
2022-11-14T14:40:20Z
https://github.com/huggingface/datasets/issues/5098
horizon86
[ "enhancement", "good first issue", "hacktoberfest" ]
[ "riccardobucco" ]
[ "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...
NONE
**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...
1,403,679,353
I_kwDODunzps5TqnJ5
5,097
Fatal error with pyarrow/libarrow.so
closed
completed
2022-10-10T20:29:04
2022-10-11T06:56:01
2022-10-11T06:56:00Z
https://github.com/huggingface/datasets/issues/5097
catalys1
[ "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 ...
NONE
## 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...
1,403,379,816
I_kwDODunzps5TpeBo
5,096
Transfer some canonical datasets under an organization namespace
closed
completed
2022-10-10T15:44:31
2024-06-24T06:06:28
2024-06-24T06:02:45Z
https://github.com/huggingface/datasets/issues/5096
albertvillanova
[ "dataset contribution" ]
[ "albertvillanova" ]
[ "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%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ...
MEMBER
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...