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,566,803,452
I_kwDODunzps5dY4X8
5,495
to_tf_dataset fails with datetime UTC columns even if not included in columns argument
closed
completed
2023-02-01T20:47:33
2023-02-08T14:33:19
2023-02-08T14:33:19Z
https://github.com/huggingface/datasets/issues/5495
dwyatte
[ "bug", "good first issue" ]
[]
[ "Hi! This is indeed a bug in our zero-copy logic.\r\n\r\nTo fix it, instead of the line:\r\nhttps://github.com/huggingface/datasets/blob/7cfac43b980ab9e4a69c2328f085770996323005/src/datasets/features/features.py#L702\r\n\r\nwe should have:\r\n```python\r\nreturn pa.types.is_primitive(pa_type) and not (pa.types.is_b...
CONTRIBUTOR
### Describe the bug There appears to be some eager behavior in `to_tf_dataset` that runs against every column in a dataset even if they aren't included in the columns argument. This is problematic with datetime UTC columns due to them not working with zero copy. If I don't have UTC information in my datetime column...
1,566,655,348
I_kwDODunzps5dYUN0
5,494
Update audio installation doc page
closed
completed
2023-02-01T19:07:50
2023-03-02T16:08:17
2023-03-02T16:08:17Z
https://github.com/huggingface/datasets/issues/5494
polinaeterna
[ "documentation" ]
[]
[ "Totally agree, the docs should be in sync with our code.\r\n\r\nIndeed to avoid confusing users, I think we should have updated the docs at the same time as this PR:\r\n- #5167", "@albertvillanova yeah sure I should have, but I forgot back then, sorry for that 😶", "No, @polinaeterna, nothing to be sorry about...
CONTRIBUTOR
Our [installation documentation page](https://huggingface.co/docs/datasets/installation#audio) says that one can use Datasets for mp3 only with `torchaudio<0.12`. `torchaudio>0.12` is actually supported too but requires a specific version of ffmpeg which is not easily installed on all linux versions but there is a cust...
1,566,604,216
I_kwDODunzps5dYHu4
5,492
Push_to_hub in a pull request
closed
completed
2023-02-01T18:32:14
2023-10-16T13:30:48
2023-10-16T13:30:48Z
https://github.com/huggingface/datasets/issues/5492
lhoestq
[ "enhancement", "good first issue" ]
[ "nateraw", "AJDERS" ]
[ "Assigned to myself and will get to it in the next week, but if someone finds this issue annoying and wants to submit a PR before I do, just ping me here and I'll reassign :). ", "I would like to be assigned to this issue, @nateraw . #self-assign" ]
MEMBER
Right now `ds.push_to_hub()` can push a dataset on `main` or on a new branch with `branch=`, but there is no way to open a pull request. Even passing `branch=refs/pr/x` doesn't seem to work: it tries to create a branch with that name cc @nateraw It should be possible to tweak the use of `huggingface_hub` in `pus...
1,565,025,262
I_kwDODunzps5dSGPu
5,488
Error loading MP3 files from CommonVoice
closed
completed
2023-01-31T21:25:33
2023-03-02T16:25:14
2023-03-02T16:25:13Z
https://github.com/huggingface/datasets/issues/5488
kradonneoh
[]
[]
[ "Hi @kradonneoh, thanks for reporting.\r\n\r\nPlease note that to work with audio datasets (and specifically with MP3 files) we have detailed installation instructions in our docs: https://huggingface.co/docs/datasets/installation#audio\r\n- one of the requirements is torchaudio<0.12.0\r\n\r\nLet us know if the pro...
NONE
### Describe the bug When loading a CommonVoice dataset with `datasets==2.9.0` and `torchaudio>=0.12.0`, I get an error reading the audio arrays: ```python --------------------------------------------------------------------------- LibsndfileError Traceback (most recent call last) ~/.l...
1,564,480,121
I_kwDODunzps5dQBJ5
5,487
Incorrect filepath for dill module
closed
completed
2023-01-31T15:01:08
2023-02-24T16:18:36
2023-02-24T16:18:36Z
https://github.com/huggingface/datasets/issues/5487
avivbrokman
[]
[]
[ "Hi! The correct path is still `dill._dill.XXXX` in the latest release. What do you get when you run `python -c \"import dill; print(dill.__version__)\"` in your environment?", "`0.3.6` I feel like that's bad news, because it's probably not the issue.\r\n\r\nMy mistake, about the wrong path guess. I think I did...
NONE
### Describe the bug I installed the `datasets` package and when I try to `import` it, I get the following error: ``` Traceback (most recent call last): File "/var/folders/jt/zw5g74ln6tqfdzsl8tx378j00000gn/T/ipykernel_3805/3458380017.py", line 1, in <module> import datasets File "/Users/avivbrokman/...
1,564,059,749
I_kwDODunzps5dOahl
5,486
Adding `sep` to TextConfig
open
2023-01-31T10:39:53
2023-01-31T14:50:18
https://github.com/huggingface/datasets/issues/5486
omar-araboghli
[]
[]
[ "Hi @omar-araboghli, thanks for your proposal.\r\n\r\nHave you tried to use \"csv\" loader instead of \"text\"? That already has a `sep` argument.", "Hi @albertvillanova, thanks for the quick response!\r\n\r\nIndeed, I have been trying to use `csv` instead of `text`. However I am still not able to define range of...
NONE
I have a local a `.txt` file that follows the `CONLL2003` format which I need to load using `load_script`. However, by using `sample_by='line'`, one can only split the dataset into lines without splitting each line into columns. Would it be reasonable to add a `sep` argument in combination with `sample_by='paragraph'` ...
1,560,894,690
I_kwDODunzps5dCVzi
5,483
Unable to upload dataset
closed
completed
2023-01-28T15:18:26
2023-01-29T08:09:49
2023-01-29T08:09:49Z
https://github.com/huggingface/datasets/issues/5483
yuvalkirstain
[]
[]
[ "Seems to work now, perhaps it was something internal with our university's network." ]
NONE
### Describe the bug Uploading a simple dataset ends with an exception ### Steps to reproduce the bug I created a new conda env with python 3.10, pip installed datasets and: ```python >>> from datasets import load_dataset, load_from_disk, Dataset >>> d = Dataset.from_dict({"text": ["hello"] * 2}) >>> d.pus...
1,560,853,137
I_kwDODunzps5dCLqR
5,482
Reload features from Parquet metadata
closed
completed
2023-01-28T13:12:31
2023-02-12T15:57:02
2023-02-12T15:57:02Z
https://github.com/huggingface/datasets/issues/5482
lhoestq
[ "enhancement", "good second issue" ]
[ "MFreidank" ]
[ "I'd be happy to have a look, if nobody else has started working on this yet @lhoestq. \r\n\r\nIt seems to me that for the `arrow` format features are currently attached as metadata [in `datasets.arrow_writer`](https://github.com/huggingface/datasets/blob/5f810b7011a8a4ab077a1847c024d2d9e267b065/src/datasets/arrow_...
MEMBER
The idea would be to allow this : ```python ds.to_parquet("my_dataset/ds.parquet") reloaded = load_dataset("my_dataset") assert ds.features == reloaded.features ``` And it should also work with Image and Audio types (right now they're reloaded as a dict type) This can be implemented by storing and reading th...
1,560,468,195
I_kwDODunzps5dAtrj
5,481
Load a cached dataset as iterable
open
2023-01-27T21:43:51
2025-06-19T19:30:52
https://github.com/huggingface/datasets/issues/5481
lhoestq
[ "enhancement", "good second issue" ]
[]
[ "Can I work on this issue? I am pretty new to this.", "Hi ! Sure :) you can comment `#self-assign` to assign yourself to this issue.\r\n\r\nI can give you some pointers to get started:\r\n\r\n`load_dataset` works roughly this way:\r\n1. it instantiate a dataset builder using `load_dataset_builder()`\r\n2. the bui...
MEMBER
The idea would be to allow something like ```python ds = load_dataset("c4", "en", as_iterable=True) ``` To be used to train models. It would load an IterableDataset from the cached Arrow files. Cc @stas00 Edit : from the discussions we may load from cache when streaming=True
1,560,357,590
I_kwDODunzps5dASrW
5,479
audiofolder works on local env, but creates empty dataset in a remote one, what dependencies could I be missing/outdated
closed
completed
2023-01-27T20:01:22
2023-01-29T05:23:14
2023-01-29T05:23:14Z
https://github.com/huggingface/datasets/issues/5479
joseph-y-cho
[]
[]
[]
NONE
### Describe the bug I'm using a custom audio dataset (400+ audio files) in the correct format for audiofolder. Although loading the dataset with audiofolder works in one local setup, it doesn't in a remote one (it just creates an empty dataset). I have both ffmpeg and libndfile installed on both computers, what cou...
1,559,909,892
I_kwDODunzps5c-lYE
5,477
Unpin sqlalchemy once issue is fixed
closed
completed
2023-01-27T15:01:55
2024-01-26T14:50:45
2024-01-26T14:50:45Z
https://github.com/huggingface/datasets/issues/5477
albertvillanova
[]
[]
[ "@albertvillanova It looks like that issue has been fixed so I made a PR to unpin sqlalchemy! ", "The source issue:\r\n- https://github.com/pandas-dev/pandas/issues/40686\r\n\r\nhas been fixed:\r\n- https://github.com/pandas-dev/pandas/pull/48576\r\n\r\nThe fix was released yesterday (2023-04-03) only in `pandas-...
MEMBER
Once the source issue is fixed: - pandas-dev/pandas#51015 we should revert the pin introduced in: - #5476
1,559,030,149
I_kwDODunzps5c7OmF
5,475
Dataset scan time is much slower than using native arrow
closed
completed
2023-01-27T01:32:25
2023-01-30T16:17:11
2023-01-30T16:17:11Z
https://github.com/huggingface/datasets/issues/5475
jonny-cyberhaven
[]
[]
[ "Hi ! In your code you only iterate on the Arrow buffers - you don't actually load the data as python objects. For a fair comparison, you can modify your code using:\r\n```diff\r\n- for _ in range(0, len(table), bsz):\r\n- _ = {k:table[k][_ : _ + bsz] for k in cols}\r\n+ for _ in range(0, len(table)...
CONTRIBUTOR
### Describe the bug I'm basically running the same scanning experiment from the tutorials https://huggingface.co/course/chapter5/4?fw=pt except now I'm comparing to a native pyarrow version. I'm finding that the native pyarrow approach is much faster (2 orders of magnitude). Is there something I'm missing that exp...
1,558,827,155
I_kwDODunzps5c6dCT
5,474
Column project operation on `datasets.Dataset`
closed
completed
2023-01-26T21:47:53
2023-02-13T09:59:37
2023-02-13T09:59:37Z
https://github.com/huggingface/datasets/issues/5474
daskol
[ "duplicate", "enhancement" ]
[]
[ "Hi ! This would be a nice addition indeed :) This sounds like a duplicate of https://github.com/huggingface/datasets/issues/5468\r\n\r\n> Not sure. Some of my PRs are still open and some do not have any discussions.\r\n\r\nSorry to hear that, feel free to ping me on those PRs" ]
CONTRIBUTOR
### Feature request There is no operation to select a subset of columns of original dataset. Expected API follows. ```python a = Dataset.from_dict({ 'int': [0, 1, 2] 'char': ['a', 'b', 'c'], 'none': [None] * 3, }) b = a.project('int', 'char') # usually, .select() print(a.column_names) # std...
1,558,066,625
I_kwDODunzps5c3jXB
5,468
Allow opposite of remove_columns on Dataset and DatasetDict
closed
completed
2023-01-26T12:28:09
2023-02-13T09:59:38
2023-02-13T09:59:38Z
https://github.com/huggingface/datasets/issues/5468
hollance
[ "enhancement", "good first issue" ]
[]
[ "Hi! I agree it would be nice to have a method like that. Instead of `keep_columns`, we can name it `select_columns` to be more aligned with PyArrow's naming convention (`pa.Table.select`).", "Hi, I am a newbie to open source and would like to contribute. @mariosasko can I take up this issue ?", "Hey, I also wa...
NONE
### Feature request In this blog post https://huggingface.co/blog/audio-datasets, I noticed the following code: ```python COLUMNS_TO_KEEP = ["text", "audio"] all_columns = gigaspeech["train"].column_names columns_to_remove = set(all_columns) - set(COLUMNS_TO_KEEP) gigaspeech = gigaspeech.remove_columns(column...
1,557,510,618
I_kwDODunzps5c1bna
5,465
audiofolder creates empty dataset even though the dataset passed in follows the correct structure
closed
completed
2023-01-26T01:45:45
2023-01-26T08:48:45
2023-01-26T08:48:45Z
https://github.com/huggingface/datasets/issues/5465
joseph-y-cho
[]
[]
[]
NONE
### Describe the bug The structure of my dataset folder called "my_dataset" is : data metadata.csv The data folder consists of all mp3 files and metadata.csv consist of file locations like 'data/...mp3 and transcriptions. There's 400+ mp3 files and corresponding transcriptions for my dataset. When I run the follo...
1,557,462,104
I_kwDODunzps5c1PxY
5,464
NonMatchingChecksumError for hendrycks_test
closed
completed
2023-01-26T00:43:23
2023-01-27T05:44:31
2023-01-26T07:41:58Z
https://github.com/huggingface/datasets/issues/5464
sarahwie
[]
[]
[ "Thanks for reporting, @sarahwie.\r\n\r\nPlease note this issue was already fixed in `datasets` 2.6.0 version:\r\n- #5040\r\n\r\nIf you update your `datasets` version, you will be able to load the dataset:\r\n```\r\npip install -U datasets\r\n```", "Oops, missed that I needed to upgrade. Thanks!" ]
NONE
### Describe the bug The checksum of the file has likely changed on the remote host. ### Steps to reproduce the bug `dataset = nlp.load_dataset("hendrycks_test", "anatomy")` ### Expected behavior no error thrown ### Environment info - `datasets` version: 2.2.1 - Platform: macOS-13.1-arm64-arm-64bit - Pyt...
1,555,532,719
I_kwDODunzps5ct4uv
5,461
Discrepancy in `nyu_depth_v2` dataset
open
2023-01-24T19:15:46
2023-02-06T20:52:00
https://github.com/huggingface/datasets/issues/5461
awsaf49
[]
[]
[ "Ccing @dwofk (the author of `fast-depth`). \r\n\r\nThanks, @awsaf49 for reporting this. I believe this is because the NYU Depth V2 shipped from `fast-depth` is already preprocessed. \r\n\r\nIf you think it might be better to have the NYU Depth V2 dataset from BTS [here](https://huggingface.co/datasets/sayakpaul/ny...
CONTRIBUTOR
### Describe the bug I think there is a discrepancy between depth map of `nyu_depth_v2` dataset [here](https://huggingface.co/docs/datasets/main/en/depth_estimation) and actual depth map. Depth values somehow got **discretized/clipped** resulting in depth maps that are different from actual ones. Here is a side-by-sid...
1,555,054,737
I_kwDODunzps5csECR
5,458
slice split while streaming
closed
completed
2023-01-24T14:08:17
2023-01-24T15:11:47
2023-01-24T15:11:47Z
https://github.com/huggingface/datasets/issues/5458
SvenDS9
[]
[]
[ "Hi! Yes, that's correct. When `streaming` is `True`, only split names can be specified as `split`, and for slicing, you have to use `.skip`/`.take` instead.\r\n\r\nE.g. \r\n`load_dataset(\"lhoestq/demo1\",revision=None, streaming=True, split=\"train[:3]\")`\r\n\r\nrewritten with `.skip`/`.take`:\r\n`load_dataset(\...
NONE
### Describe the bug When using the `load_dataset` function with streaming set to True, slicing splits is apparently not supported. Did I miss this in the documentation? ### Steps to reproduce the bug `load_dataset("lhoestq/demo1",revision=None, streaming=True, split="train[:3]")` causes ValueError: Bad split:...
1,554,171,264
I_kwDODunzps5cosWA
5,457
prebuilt dataset relies on `downloads/extracted`
open
2023-01-24T02:09:32
2024-11-18T07:43:51
https://github.com/huggingface/datasets/issues/5457
stas00
[]
[]
[ "Hi! \r\n\r\nThis issue is due to our audio/image datasets not being self-contained. This allows us to save disk space (files are written only once) but also leads to the issues like this one. We plan to make all our datasets self-contained in Datasets 3.0.\r\n\r\nIn the meantime, you can run the following map to e...
CONTRIBUTOR
### Describe the bug I pre-built the dataset: ``` python -c 'import sys; from datasets import load_dataset; ds=load_dataset(sys.argv[1])' HuggingFaceM4/general-pmd-synthetic-testing ``` and it can be used just fine. now I wipe out `downloads/extracted` and it no longer works. ``` rm -r ~/.cache/huggingface...
1,552,890,419
I_kwDODunzps5cjzoz
5,454
Save and resume the state of a DataLoader
open
2023-01-23T10:58:54
2024-11-27T01:19:21
https://github.com/huggingface/datasets/issues/5454
lhoestq
[ "enhancement", "generic discussion" ]
[]
[ "Something that'd be nice to have is \"manual update of state\". One of the learning from training LLMs is the ability to skip some batches whenever we notice huge spike might be handy.", "Your outline spec is very sound and clear, @lhoestq - thank you!\r\n\r\n@thomasw21, indeed that would be a wonderful extra fe...
MEMBER
It would be nice when using `datasets` with a PyTorch DataLoader to be able to resume a training from a DataLoader state (e.g. to resume a training that crashed) What I have in mind (but lmk if you have other ideas or comments): For map-style datasets, this requires to have a PyTorch Sampler state that can be sav...
1,552,336,300
I_kwDODunzps5chsWs
5,451
ImageFolder BadZipFile: Bad offset for central directory
closed
completed
2023-01-22T23:50:12
2023-05-23T10:35:48
2023-02-10T16:31:36Z
https://github.com/huggingface/datasets/issues/5451
hmartiro
[]
[]
[ "Hi ! Could you share the full stack trace ? Which dataset did you try to load ?\r\n\r\nit may be related to https://github.com/huggingface/datasets/pull/5640", "The `BadZipFile` error means the ZIP file is corrupted, so I'm closing this issue as it's not directly related to `datasets`.", "For others that find ...
NONE
### Describe the bug I'm getting the following exception: ``` lib/python3.10/zipfile.py:1353 in _RealGetContents │ │ │ │ 1350 │ │ # self.start_dir: Position of start of central directory ...
1,551,109,365
I_kwDODunzps5cdAz1
5,450
to_tf_dataset with a TF collator causes bizarrely persistent slowdown
closed
completed
2023-01-20T16:08:37
2023-02-13T14:13:34
2023-02-13T14:13:34Z
https://github.com/huggingface/datasets/issues/5450
Rocketknight1
[]
[]
[ "wtf", "Couldn't find what's causing this, this will need more investigation", "A possible hint: The function it seems to be spending a lot of time in (when iterating over the original dataset) is `_get_mp` in the PIL JPEG decoder: \r\n![image](https://user-images.githubusercontent.com/12866554/214057267-c889f0...
MEMBER
### Describe the bug This will make more sense if you take a look at [a Colab notebook that reproduces this issue.](https://colab.research.google.com/drive/1rxyeciQFWJTI0WrZ5aojp4Ls1ut18fNH?usp=sharing) Briefly, there are several datasets that, when you iterate over them with `to_tf_dataset` **and** a data colla...
1,550,618,514
I_kwDODunzps5cbI-S
5,448
Support fsspec 2023.1.0 in CI
closed
completed
2023-01-20T10:26:31
2023-01-20T13:26:05
2023-01-20T13:26:05Z
https://github.com/huggingface/datasets/issues/5448
albertvillanova
[ "enhancement" ]
[ "albertvillanova" ]
[]
MEMBER
Once we find out the root cause of: - #5445 we should revert the temporary pin on fsspec introduced by: - #5447
1,550,588,703
I_kwDODunzps5cbBsf
5,445
CI tests are broken: AttributeError: 'mappingproxy' object has no attribute 'target'
closed
completed
2023-01-20T10:03:10
2023-01-20T10:28:44
2023-01-20T10:28:44Z
https://github.com/huggingface/datasets/issues/5445
albertvillanova
[ "bug" ]
[ "albertvillanova" ]
[]
MEMBER
CI tests are broken, raising `AttributeError: 'mappingproxy' object has no attribute 'target'`. See: https://github.com/huggingface/datasets/actions/runs/3966497597/jobs/6797384185 ``` ... ERROR tests/test_streaming_download_manager.py::TestxPath::test_xpath_rglob[mock://top_level-date=2019-10-0[1-4]/*-expected_path...
1,550,185,071
I_kwDODunzps5cZfJv
5,444
info messages logged as warnings
closed
completed
2023-01-20T01:19:18
2023-07-12T17:19:31
2023-07-12T17:19:31Z
https://github.com/huggingface/datasets/issues/5444
davidgilbertson
[]
[]
[ "Looks like a duplicate of https://github.com/huggingface/datasets/issues/1948. \r\n\r\nI also think these should be logged as INFO messages, but let's see what @lhoestq thinks.", "It can be considered unexpected to see a `map` function return instantaneously. The warning is here to explain this case by mentionin...
NONE
### Describe the bug Code in `datasets` is using `logger.warning` when it should be using `logger.info`. Some of these are probably a matter of opinion, but I think anything starting with `logger.warning(f"Loading chached` clearly falls into the info category. Definitions from the Python docs for reference: * I...
1,550,084,450
I_kwDODunzps5cZGli
5,442
OneDrive Integrations with HF Datasets
closed
completed
2023-01-19T23:12:08
2023-02-24T16:17:51
2023-02-24T16:17:51Z
https://github.com/huggingface/datasets/issues/5442
Mohammed20201991
[ "enhancement" ]
[]
[ "Hi! \r\n\r\nWe use [`fsspec`](https://github.com/fsspec/filesystem_spec) to integrate with storage providers. You can find more info (and the usage examples) in [our docs](https://huggingface.co/docs/datasets/v2.8.0/filesystems#download-and-prepare-a-dataset-into-a-cloud-storage).\r\n\r\n[`gdrivefs`](https://githu...
NONE
### Feature request First of all , I would like to thank all community who are developed DataSet storage and make it free available How to integrate our Onedrive account or any other possible storage clouds (like google drive,...) with the **HF** datasets section. For example, if I have **50GB** on my **Onedrive*...
1,537,973,564
I_kwDODunzps5bq508
5,439
[dataset request] Add Common Voice 12.0
closed
completed
2023-01-18T13:07:05
2023-07-21T14:26:10
2023-07-21T14:26:09Z
https://github.com/huggingface/datasets/issues/5439
MohammedRakib
[ "enhancement" ]
[ "polinaeterna" ]
[ "@polinaeterna any tentative date on when the Common Voice 12.0 dataset will be added ?", "This dataset is now hosted on the Hub here: https://huggingface.co/datasets/mozilla-foundation/common_voice_12_0" ]
NONE
### Feature request Please add the common voice 12_0 datasets. Apart from English, a significant amount of audio-data has been added to the other minor-language datasets. ### Motivation The dataset link: https://commonvoice.mozilla.org/en/datasets
1,536,837,144
I_kwDODunzps5bmkYY
5,437
Can't load png dataset with 4 channel (RGBA)
closed
completed
2023-01-17T18:22:27
2023-01-18T20:20:15
2023-01-18T20:20:15Z
https://github.com/huggingface/datasets/issues/5437
WiNE-iNEFF
[]
[]
[ "Hi! Can you please share the directory structure of your image folder and the `load_dataset` call? We decode images with Pillow, and Pillow supports RGBA PNGs, so this shouldn't be a problem.\r\n\r\n", "> Hi! Can you please share the directory structure of your image folder and the `load_dataset` call? We decode...
NONE
I try to create dataset which contains about 9000 png images 64x64 in size, and they are all 4-channel (RGBA). When trying to use load_dataset() then a dataset is created from only 2 images. What exactly interferes I can not understand.![Screenshot_20230117_212213.jpg](https://user-images.githubusercontent.com/41611046...
1,536,099,300
I_kwDODunzps5bjwPk
5,435
Wrong statement in "Load a Dataset in Streaming mode" leads to data leakage
closed
completed
2023-01-17T10:04:16
2023-01-19T09:56:03
2023-01-19T09:56:03Z
https://github.com/huggingface/datasets/issues/5435
DanielYang59
[]
[]
[ "Just for your information, Tensorflow confirmed this issue [here.](https://github.com/tensorflow/tensorflow/issues/59279)", "Thanks for reporting, @HaoyuYang59.\r\n\r\nPlease note that these are different \"dataset\" objects: our docs refer to Hugging Face `datasets.Dataset` and not to TensorFlow `tf.data.Datase...
NONE
### Describe the bug In the [Split your dataset with take and skip](https://huggingface.co/docs/datasets/v1.10.2/dataset_streaming.html#split-your-dataset-with-take-and-skip), it states: > Using take (or skip) prevents future calls to shuffle from shuffling the dataset shards order, otherwise the taken examples cou...
1,536,090,042
I_kwDODunzps5bjt-6
5,434
sample_dataset module not found
closed
completed
2023-01-17T09:57:54
2023-01-19T13:52:12
2023-01-19T07:55:11Z
https://github.com/huggingface/datasets/issues/5434
nickums
[]
[]
[ "Hi! Can you describe what the actual error is?", "working on the setfit example script\r\n\r\n from setfit import SetFitModel, SetFitTrainer, sample_dataset\r\n\r\nImportError: cannot import name 'sample_dataset' from 'setfit' (C:\\Python\\Python38\\lib\\site-packages\\setfit\\__init__.py)\r\n\r\n apart from t...
NONE
1,536,017,901
I_kwDODunzps5bjcXt
5,433
Support latest Docker image in CI benchmarks
closed
completed
2023-01-17T09:06:08
2023-01-18T06:29:08
2023-01-18T06:29:08Z
https://github.com/huggingface/datasets/issues/5433
albertvillanova
[ "enhancement" ]
[]
[ "Sorry, it was us:[^1] https://github.com/iterative/cml/pull/1317 & https://github.com/iterative/cml/issues/1319#issuecomment-1385599559; should be fixed with [v0.18.17](https://github.com/iterative/cml/releases/tag/v0.18.17).\r\n\r\n[^1]: More or less, see https://github.com/yargs/yargs/issues/873.", "Opened htt...
MEMBER
Once we find out the root cause of: - #5431 we should revert the temporary pin on the Docker image version introduced by: - #5432
1,535,862,621
I_kwDODunzps5bi2dd
5,431
CI benchmarks are broken: Unknown arguments: runnerPath, path
closed
completed
2023-01-17T06:49:57
2023-01-18T06:33:24
2023-01-17T08:51:18Z
https://github.com/huggingface/datasets/issues/5431
albertvillanova
[ "maintenance" ]
[ "albertvillanova" ]
[]
MEMBER
Our CI benchmarks are broken, raising `Unknown arguments` error: https://github.com/huggingface/datasets/actions/runs/3932397079/jobs/6724905161 ``` Unknown arguments: runnerPath, path ``` Stack trace: ``` 100%|██████████| 500/500 [00:01<00:00, 338.98ba/s] Updating lock file 'dvc.lock' To track the changes ...
1,535,856,503
I_kwDODunzps5bi093
5,430
Support Apache Beam >= 2.44.0
closed
completed
2023-01-17T06:42:12
2024-02-06T19:24:21
2024-02-06T19:24:21Z
https://github.com/huggingface/datasets/issues/5430
albertvillanova
[ "enhancement" ]
[ "albertvillanova" ]
[ "Some of the shard files now have 0 number of rows.\r\n\r\nWe have opened an issue in the Apache Beam repo:\r\n- https://github.com/apache/beam/issues/25041" ]
MEMBER
Once we find out the root cause of: - #5426 we should revert the temporary pin on apache-beam introduced by: - #5429
1,535,166,139
I_kwDODunzps5bgMa7
5,428
Load/Save FAISS index using fsspec
closed
completed
2023-01-16T16:08:12
2023-03-27T15:18:22
2023-03-27T15:18:22Z
https://github.com/huggingface/datasets/issues/5428
Dref360
[ "enhancement" ]
[]
[ "Hi! Sure, feel free to submit a PR. Maybe if we want to be consistent with the existing API, it would be cleaner to directly add support for `fsspec` paths in `Dataset.load_faiss_index`/`Dataset.save_faiss_index` in the same manner as it was done in `Dataset.load_from_disk`/`Dataset.save_to_disk`.", "That's a gr...
CONTRIBUTOR
### Feature request From what I understand `faiss` already support this [link](https://github.com/facebookresearch/faiss/wiki/Index-IO,-cloning-and-hyper-parameter-tuning#generic-io-support) I would like to use a stream as input to `Dataset.load_faiss_index` and `Dataset.save_faiss_index`. ### Motivation In...
1,535,162,889
I_kwDODunzps5bgLoJ
5,427
Unable to download dataset id_clickbait
closed
completed
2023-01-16T16:05:36
2023-01-18T09:51:28
2023-01-18T09:25:19Z
https://github.com/huggingface/datasets/issues/5427
ilos-vigil
[]
[ "albertvillanova" ]
[ "Thanks for reporting, @ilos-vigil.\r\n\r\nWe have transferred this issue to the corresponding dataset on the Hugging Face Hub: https://huggingface.co/datasets/id_clickbait/discussions/1 " ]
NONE
### Describe the bug I tried to download dataset `id_clickbait`, but receive this error message. ``` FileNotFoundError: Couldn't find file at https://md-datasets-cache-zipfiles-prod.s3.eu-west-1.amazonaws.com/k42j7x2kpn-1.zip ``` When i open the link using browser, i got this XML data. ```xml <?xml versi...
1,535,158,555
I_kwDODunzps5bgKkb
5,426
CI tests are broken: SchemaInferenceError
closed
completed
2023-01-16T16:02:07
2023-06-02T06:40:32
2023-01-16T16:49:04Z
https://github.com/huggingface/datasets/issues/5426
albertvillanova
[ "bug" ]
[ "albertvillanova" ]
[]
MEMBER
CI test (unit, ubuntu-latest, deps-minimum) is broken, raising a `SchemaInferenceError`: see https://github.com/huggingface/datasets/actions/runs/3930901593/jobs/6721492004 ``` FAILED tests/test_beam.py::BeamBuilderTest::test_download_and_prepare_sharded - datasets.arrow_writer.SchemaInferenceError: Please pass `feat...
1,534,581,850
I_kwDODunzps5bd9xa
5,425
Sort on multiple keys with datasets.Dataset.sort()
closed
completed
2023-01-16T09:22:26
2023-02-24T16:15:11
2023-02-24T16:15:11Z
https://github.com/huggingface/datasets/issues/5425
rocco-fortuna
[ "enhancement", "good first issue" ]
[]
[ "Hi! \r\n\r\n`Dataset.sort` calls `df.sort_values` internally, and `df.sort_values` brings all the \"sort\" columns in memory, so sorting on multiple keys could be very expensive. This makes me think that maybe we can replace `df.sort_values` with `pyarrow.compute.sort_indices` - the latter can also sort on multipl...
NONE
### Feature request From discussion on forum: https://discuss.huggingface.co/t/datasets-dataset-sort-does-not-preserve-ordering/29065/1 `sort()` does not preserve ordering, and it does not support sorting on multiple columns, nor a key function. The suggested solution: > ... having something similar to panda...
1,534,394,756
I_kwDODunzps5bdQGE
5,424
When applying `ReadInstruction` to custom load it's not DatasetDict but list of Dataset?
closed
completed
2023-01-16T06:54:28
2023-02-24T16:19:00
2023-02-24T16:19:00Z
https://github.com/huggingface/datasets/issues/5424
macabdul9
[]
[]
[ "Hi! You can get a `DatasetDict` if you pass a dictionary with read instructions as follows:\r\n```python\r\ninstructions = [\r\n ReadInstruction(split_name=\"train\", from_=0, to=10, unit='%', rounding='closest'),\r\n ReadInstruction(split_name=\"dev\", from_=0, to=10, unit='%', rounding='closest'),\r\n R...
NONE
### Describe the bug I am loading datasets from custom `tsv` files stored locally and applying split instructions for each split. Although the ReadInstruction is being applied correctly and I was expecting it to be `DatasetDict` but instead it is a list of `Dataset`. ### Steps to reproduce the bug Steps to reproduc...
1,533,385,239
I_kwDODunzps5bZZoX
5,422
Datasets load error for saved github issues
open
2023-01-14T17:29:38
2023-09-14T11:39:57
https://github.com/huggingface/datasets/issues/5422
folterj
[]
[]
[ "I can confirm that the error exists!\r\nI'm trying to read 3 parquet files locally:\r\n```python\r\nfrom datasets import load_dataset, Features, Value, ClassLabel\r\n\r\nreview_dataset = load_dataset(\r\n \"parquet\",\r\n data_files={\r\n \"train\": os.path.join(sentiment_analysis_data_path, \"train.p...
NONE
### Describe the bug Loading a previously downloaded & saved dataset as described in the HuggingFace course: issues_dataset = load_dataset("json", data_files="issues/datasets-issues.jsonl", split="train") Gives this error: datasets.builder.DatasetGenerationError: An error occurred while generating the dataset...
1,532,278,307
I_kwDODunzps5bVLYj
5,421
Support case-insensitive Hub dataset name in load_dataset
closed
completed
2023-01-13T13:07:07
2023-01-13T20:12:32
2023-01-13T20:12:32Z
https://github.com/huggingface/datasets/issues/5421
severo
[ "enhancement" ]
[]
[ "Closing as case-insensitivity should be only for URL redirection on the Hub. In the APIs, we will only support the canonical name (https://github.com/huggingface/moon-landing/pull/2399#issuecomment-1382085611)" ]
COLLABORATOR
### Feature request The dataset name on the Hub is case-insensitive (see https://github.com/huggingface/moon-landing/pull/2399, internal issue), i.e., https://huggingface.co/datasets/GLUE redirects to https://huggingface.co/datasets/glue. Ideally, we could load the glue dataset using the following: ``` from d...
1,531,999,850
I_kwDODunzps5bUHZq
5,419
label_column='labels' in datasets.TextClassification and 'label' or 'label_ids' in transformers.DataColator
closed
completed
2023-01-13T09:40:07
2023-07-21T14:27:08
2023-07-21T14:27:08Z
https://github.com/huggingface/datasets/issues/5419
CreatixEA
[]
[]
[ "Hi! Thanks for pointing out this inconsistency. Changing the default value at this point is probably not worth it, considering we've started discussing the state of the task API internally - we will most likely deprecate the current one and replace it with a more robust solution that relies on the `train_eval_inde...
NONE
### Describe the bug When preparing a dataset for a task using `datasets.TextClassification`, the output feature is named `labels`. When preparing the trainer using the `transformers.DataCollator` the default column name is `label` if binary or `label_ids` if multi-class problem. It is required to rename the column...
1,530,111,184
I_kwDODunzps5bM6TQ
5,418
Add ProgressBar for `to_parquet`
closed
completed
2023-01-12T05:06:20
2023-01-24T18:18:24
2023-01-24T18:18:24Z
https://github.com/huggingface/datasets/issues/5418
zanussbaum
[ "enhancement" ]
[ "zanussbaum" ]
[ "Thanks for your proposal, @zanussbaum. Yes, I agree that would definitely be a nice feature to have!", "@albertvillanova I’m happy to make a quick PR for the feature! let me know ", "That would be awesome ! You can comment `#self-assign` to assign you to this issue and open a PR :) Will be happy to review", ...
CONTRIBUTOR
### Feature request Add a progress bar for `Dataset.to_parquet`, similar to how `to_json` works. ### Motivation It's a bit frustrating to not know how long a dataset will take to write to file and if it's stuck or not without a progress bar ### Your contribution Sure I can help if needed
1,526,904,861
I_kwDODunzps5bArgd
5,415
RuntimeError: Sharding is ambiguous for this dataset
closed
completed
2023-01-10T07:36:11
2023-01-18T14:09:04
2023-01-18T14:09:03Z
https://github.com/huggingface/datasets/issues/5415
albertvillanova
[]
[ "albertvillanova" ]
[]
MEMBER
### Describe the bug When loading some datasets, a RuntimeError is raised. For example, for "ami" dataset: https://huggingface.co/datasets/ami/discussions/3 ``` .../huggingface/datasets/src/datasets/builder.py in _prepare_split(self, split_generator, check_duplicate_keys, file_format, num_proc, max_shard_size) ...
1,525,733,818
I_kwDODunzps5a8Nm6
5,414
Sharding error with Multilingual LibriSpeech
closed
completed
2023-01-09T14:45:31
2023-01-18T14:09:04
2023-01-18T14:09:04Z
https://github.com/huggingface/datasets/issues/5414
Nithin-Holla
[]
[ "albertvillanova" ]
[ "Thanks for reporting, @Nithin-Holla.\r\n\r\nThis is a known issue for multiple datasets and we are investigating it:\r\n- See e.g.: https://huggingface.co/datasets/ami/discussions/3", "Main issue:\r\n- #5415", "@albertvillanova Thanks! As a workaround for now, can I use the dataset in streaming mode?", "Yes,...
NONE
### Describe the bug Loading the German Multilingual LibriSpeech dataset results in a RuntimeError regarding sharding with the following stacktrace: ``` Downloading and preparing dataset multilingual_librispeech/german to /home/nithin/datadrive/cache/huggingface/datasets/facebook___multilingual_librispeech/german/...
1,524,591,837
I_kwDODunzps5a32zd
5,413
concatenate_datasets fails when two dataset with shards > 1 and unequal shard numbers
closed
completed
2023-01-08T17:01:52
2023-01-26T09:27:21
2023-01-26T09:27:21Z
https://github.com/huggingface/datasets/issues/5413
ZeguanXiao
[]
[ "lhoestq" ]
[ "Hi ! Thanks for reporting :)\r\n\r\nI managed to reproduce the hub using\r\n```python\r\n\r\nfrom datasets import concatenate_datasets, Dataset, load_from_disk\r\n\r\nDataset.from_dict({\"a\": range(9)}).save_to_disk(\"tmp/ds1\")\r\nds1 = load_from_disk(\"tmp/ds1\")\r\nds1 = concatenate_datasets([ds1, ds1])\r\n\r\...
NONE
### Describe the bug When using `concatenate_datasets([dataset1, dataset2], axis = 1)` to concatenate two datasets with shards > 1, it fails: ``` File "/home/xzg/anaconda3/envs/tri-transfer/lib/python3.9/site-packages/datasets/combine.py", line 182, in concatenate_datasets return _concatenate_map_style_data...
1,524,250,269
I_kwDODunzps5a2jad
5,412
load_dataset() cannot find dataset_info.json with multiple training runs in parallel
closed
completed
2023-01-08T00:44:32
2023-01-19T20:28:43
2023-01-19T20:28:43Z
https://github.com/huggingface/datasets/issues/5412
mtoles
[]
[]
[ "Hi ! It fails because the dataset is already being prepared by your first run. I'd encourage you to prepare your dataset before using it for multiple trainings.\r\n\r\nYou can also specify another cache directory by passing `cache_dir=` to `load_dataset()`.", "Thank you! What do you mean by prepare it beforehand...
NONE
### Describe the bug I have a custom local dataset in JSON form. I am trying to do multiple training runs in parallel. The first training run runs with no issue. However, when I start another run on another GPU, the following code throws this error. If there is a workaround to ignore the cache I think that would ...
1,519,890,752
I_kwDODunzps5al7FA
5,408
dataset map function could not be hash properly
closed
completed
2023-01-05T01:59:59
2023-01-06T13:22:19
2023-01-06T13:22:18Z
https://github.com/huggingface/datasets/issues/5408
Tungway1990
[]
[]
[ "Hi ! On macos I tried with\r\n- py 3.9.11\r\n- datasets 2.8.0\r\n- transformers 4.25.1\r\n- dill 0.3.4\r\n\r\nand I was able to hash `prepare_dataset` correctly:\r\n```python\r\nfrom datasets.fingerprint import Hasher\r\nHasher.hash(prepare_dataset)\r\n```\r\n\r\nWhat version of transformers do you have ? Can you ...
NONE
### Describe the bug I follow the [blog post](https://huggingface.co/blog/fine-tune-whisper#building-a-demo) to finetune a Cantonese transcribe model. When using map function to prepare dataset, following warning pop out: `common_voice = common_voice.map(prepare_dataset, remove_...
1,519,797,345
I_kwDODunzps5alkRh
5,407
Datasets.from_sql() generates deprecation warning
closed
completed
2023-01-05T00:43:17
2023-01-06T10:59:14
2023-01-06T10:59:14Z
https://github.com/huggingface/datasets/issues/5407
msummerfield
[]
[ "albertvillanova" ]
[ "Thanks for reporting @msummerfield. We are fixing it." ]
NONE
### Describe the bug Calling `Datasets.from_sql()` generates a warning: `.../site-packages/datasets/builder.py:712: FutureWarning: 'use_auth_token' was deprecated in version 2.7.1 and will be removed in 3.0.0. Pass 'use_auth_token' to the initializer/'load_dataset_builder' instead.` ### Steps to reproduce the ...
1,519,140,544
I_kwDODunzps5ajD7A
5,406
[2.6.1][2.7.0] Upgrade `datasets` to fix `TypeError: can only concatenate str (not "int") to str`
open
2023-01-04T15:10:04
2023-06-21T18:45:38
https://github.com/huggingface/datasets/issues/5406
lhoestq
[]
[]
[ "I still get this error on 2.9.0\r\n<img width=\"1925\" alt=\"image\" src=\"https://user-images.githubusercontent.com/7208470/215597359-2f253c76-c472-4612-8099-d3a74d16eb29.png\">\r\n", "Hi ! I just tested locally and or colab and it works fine for 2.9 on `sst2`.\r\n\r\nAlso the code that is shown in your stack t...
MEMBER
`datasets` 2.6.1 and 2.7.0 started to stop supporting datasets like IMDB, ConLL or MNIST datasets. When loading a dataset using 2.6.1 or 2.7.0, you may this error when loading certain datasets: ```python TypeError: can only concatenate str (not "int") to str ``` This is because we started to update the metadat...
1,517,879,386
I_kwDODunzps5aeQBa
5,405
size_in_bytes the same for all splits
open
2023-01-03T20:25:48
2023-01-04T09:22:59
https://github.com/huggingface/datasets/issues/5405
Breakend
[]
[]
[ "Hi @Breakend,\r\n\r\nIndeed, the attribute `size_in_bytes` refers to the size of the entire dataset configuration, for all splits (size of downloaded files + Arrow files), not the specific split.\r\nThis is also the case for `download_size` (downloaded files) and `dataset_size` (Arrow files).\r\n\r\nThe size of th...
NONE
### Describe the bug Hi, it looks like whenever you pull a dataset and get size_in_bytes, it returns the same size for all splits (and that size is the combined size of all splits). It seems like this shouldn't be the intended behavior since it is misleading. Here's an example: ``` >>> from datasets import load_da...
1,517,566,331
I_kwDODunzps5adDl7
5,404
Better integration of BIG-bench
open
2023-01-03T15:37:57
2023-02-09T20:30:26
https://github.com/huggingface/datasets/issues/5404
albertvillanova
[ "enhancement" ]
[]
[ "Hi, I made my version : https://huggingface.co/datasets/tasksource/bigbench" ]
MEMBER
### Feature request Ideally, it would be nice to have a maintained PyPI package for `bigbench`. ### Motivation We'd like to allow anyone to access, explore and use any task. ### Your contribution @lhoestq has opened an issue in their repo: - https://github.com/google/BIG-bench/issues/906
1,517,409,429
I_kwDODunzps5acdSV
5,402
Missing state.json when creating a cloud dataset using a dataset_builder
open
2023-01-03T13:39:59
2023-01-04T17:23:57
https://github.com/huggingface/datasets/issues/5402
danielfleischer
[]
[]
[ "`load_from_disk` must be used on datasets saved using `save_to_disk`: they correspond to fully serialized datasets including their state.\r\n\r\nOn the other hand, `download_and_prepare` just downloads the raw data and convert them to arrow (or parquet if you want). We are working on allowing you to reload a datas...
NONE
### Describe the bug Using `load_dataset_builder` to create a builder, run `download_and_prepare` do upload it to S3. However when trying to load it, there are missing `state.json` files. Complete example: ```python from aiobotocore.session import AioSession as Session from datasets import load_from_disk, load_da...
1,515,548,427
I_kwDODunzps5aVW8L
5,399
Got disconnected from remote data host. Retrying in 5sec [2/20]
closed
completed
2023-01-01T13:00:11
2023-01-02T07:21:52
2023-01-02T07:21:52Z
https://github.com/huggingface/datasets/issues/5399
alhuri
[]
[]
[]
NONE
### Describe the bug While trying to upload my image dataset of a CSV file type to huggingface by running the below code. The dataset consists of a little over 100k of image-caption pairs ### Steps to reproduce the bug ``` df = pd.read_csv('x.csv', encoding='utf-8-sig') features = Features({ 'link': Ima...
1,514,425,231
I_kwDODunzps5aREuP
5,398
Unpin pydantic
closed
completed
2022-12-30T10:37:31
2022-12-30T10:43:41
2022-12-30T10:43:41Z
https://github.com/huggingface/datasets/issues/5398
albertvillanova
[]
[]
[]
MEMBER
Once `pydantic` fixes their issue in their 1.10.3 version, unpin it. See issue: - #5394 See temporary fix: - #5395
1,513,976,229
I_kwDODunzps5aPXGl
5,394
CI error: TypeError: dataclass_transform() got an unexpected keyword argument 'field_specifiers'
closed
completed
2022-12-29T18:58:44
2022-12-30T10:40:51
2022-12-29T21:00:27Z
https://github.com/huggingface/datasets/issues/5394
albertvillanova
[]
[ "albertvillanova" ]
[ "I still getting the same error :\r\n\r\n`python -m spacy download fr_core_news_lg\r\n`.\r\n`import spacy`", "@MFatnassi, this issue and the corresponding fix only affect our Continuous Integration testing environment.\r\n\r\nNote that `datasets` does not depend on `spacy`." ]
MEMBER
### Describe the bug While installing the dependencies, the CI raises a TypeError: ``` Traceback (most recent call last): File "/opt/hostedtoolcache/Python/3.7.15/x64/lib/python3.7/runpy.py", line 183, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/opt/hoste...
1,510,350,400
I_kwDODunzps5aBh5A
5,391
Whisper Event - RuntimeError: The size of tensor a (504) must match the size of tensor b (448) at non-singleton dimension 1 100% 1000/1000 [2:52:21<00:00, 10.34s/it]
closed
completed
2022-12-25T15:17:14
2023-07-21T14:29:47
2023-07-21T14:29:47Z
https://github.com/huggingface/datasets/issues/5391
catswithbats
[]
[]
[ "Hey @catswithbats! Super sorry for the late reply! This is happening because there is data with label length (504) that exceeds the model's max length (448). \r\n\r\nThere are two options here:\r\n1. Increase the model's `max_length` parameter: \r\n```python\r\nmodel.config.max_length = 512\r\n```\r\n2. Filter dat...
NONE
Done in a VM with a GPU (Ubuntu) following the [Whisper Event - PYTHON](https://github.com/huggingface/community-events/tree/main/whisper-fine-tuning-event#python-script) instructions. Attempted using [RuntimeError: he size of tensor a (504) must match the size of tensor b (448) at non-singleton dimension 1 100% 1...
1,509,357,553
I_kwDODunzps5Z9vfx
5,390
Error when pushing to the CI hub
closed
completed
2022-12-23T13:36:37
2022-12-23T20:29:02
2022-12-23T20:29:02Z
https://github.com/huggingface/datasets/issues/5390
severo
[]
[]
[ "Hmmm, git bisect tells me that the behavior is the same since https://github.com/huggingface/datasets/commit/67e65c90e9490810b89ee140da11fdd13c356c9c (3 Oct), i.e. https://github.com/huggingface/datasets/pull/4926", "Maybe related to the discussions in https://github.com/huggingface/datasets/pull/5196", "Maybe...
COLLABORATOR
### Describe the bug Note that it's a special case where the Hub URL is "https://hub-ci.huggingface.co", which does not appear if we do the same on the Hub (https://huggingface.co). The call to `dataset.push_to_hub(` fails: ``` Pushing dataset shards to the dataset hub: 100%|██████████████████████████████████...
1,509,042,348
I_kwDODunzps5Z8iis
5,388
Getting Value Error while loading a dataset..
closed
completed
2022-12-23T08:16:43
2022-12-29T08:36:33
2022-12-27T17:59:09Z
https://github.com/huggingface/datasets/issues/5388
valmetisrinivas
[]
[]
[ "Hi! I can't reproduce this error locally (Mac) or in Colab. What version of `datasets` are you using?", "Hi [mariosasko](https://github.com/mariosasko), the datasets version is '2.8.0'.", "@valmetisrinivas you get that error because you imported `datasets` (and thus `fsspec`) before installing `zstandard`.\r\n...
NONE
### Describe the bug I am trying to load a dataset using Hugging Face Datasets load_dataset method. I am getting the value error as show below. Can someone help with this? I am using Windows laptop and Google Colab notebook. ``` WARNING:datasets.builder:Using custom data configuration default-a1d9e8eaedd958cd ---...
1,508,740,177
I_kwDODunzps5Z7YxR
5,387
Missing documentation page : improve-performance
closed
completed
2022-12-23T01:12:57
2023-01-24T16:33:40
2023-01-24T16:33:40Z
https://github.com/huggingface/datasets/issues/5387
astariul
[]
[]
[ "Hi! Our documentation builder does not support links to sections, hence the bug. This is the link it should point to https://huggingface.co/docs/datasets/v2.8.0/en/cache#improve-performance." ]
NONE
### Describe the bug Trying to access https://huggingface.co/docs/datasets/v2.8.0/en/package_reference/cache#improve-performance, the page is missing. The link is in here : https://huggingface.co/docs/datasets/v2.8.0/en/package_reference/loading_methods#datasets.load_dataset.keep_in_memory ### Steps to reproduce t...
1,508,592,918
I_kwDODunzps5Z600W
5,386
`max_shard_size` in `datasets.push_to_hub()` breaks with large files
closed
completed
2022-12-22T21:50:58
2022-12-26T23:45:51
2022-12-26T23:45:51Z
https://github.com/huggingface/datasets/issues/5386
salieri
[]
[]
[ "Hi! \r\n\r\nThis behavior stems from the fact that we don't always embed image bytes in the underlying arrow table, which can lead to bad size estimation (we use the first 1000 table rows to [estimate](https://github.com/huggingface/datasets/blob/9a7272cd4222383a5b932b0083a4cc173fda44e8/src/datasets/arrow_dataset....
NONE
### Describe the bug `max_shard_size` parameter for `datasets.push_to_hub()` works unreliably with large files, generating shard files that are way past the specified limit. In my private dataset, which contains unprocessed images of all sizes (up to `~100MB` per file), I've encountered cases where `max_shard_siz...
1,508,535,532
I_kwDODunzps5Z6mzs
5,385
Is `fs=` deprecated in `load_from_disk()` as well?
closed
completed
2022-12-22T21:00:45
2023-01-23T10:50:05
2023-01-23T10:50:04Z
https://github.com/huggingface/datasets/issues/5385
dconathan
[]
[]
[ "Hi! Yes, we should deprecate the `fs` param here. Would you be interested in submitting a PR? ", "> Hi! Yes, we should deprecate the `fs` param here. Would you be interested in submitting a PR?\r\n\r\nYeah I can do that sometime next week. Should the storage_options be a new arg here? I’ll look around for anywh...
CONTRIBUTOR
### Describe the bug The `fs=` argument was deprecated from `Dataset.save_to_disk` and `Dataset.load_from_disk` in favor of automagically figuring it out via fsspec: https://github.com/huggingface/datasets/blob/9a7272cd4222383a5b932b0083a4cc173fda44e8/src/datasets/arrow_dataset.py#L1339-L1340 Is there a reason the...
1,507,293,968
I_kwDODunzps5Z13sQ
5,383
IterableDataset missing column_names, differs from Dataset interface
closed
completed
2022-12-22T05:27:02
2023-03-13T19:03:33
2023-03-13T19:03:33Z
https://github.com/huggingface/datasets/issues/5383
iceboundflame
[ "enhancement", "good first issue" ]
[ "patrickloeber" ]
[ "Another example is that `IterableDataset.map` does not have `fn_kwargs`, among other arguments. It makes it harder to convert code from Dataset to IterableDataset.", "Hi! `fn_kwargs` was added to `IterableDataset.map` in `datasets 2.5.0`, so please update your installation (`pip install -U datasets`) to use it.\...
NONE
### Describe the bug The documentation on [Stream](https://huggingface.co/docs/datasets/v1.18.2/stream.html) seems to imply that IterableDataset behaves just like a Dataset. However, examples like ``` dataset.map(augment_data, batched=True, remove_columns=dataset.column_names, ...) ``` will not work because `.colu...
1,504,498,387
I_kwDODunzps5ZrNLT
5,381
Wrong URL for the_pile dataset
closed
completed
2022-12-20T12:40:14
2023-02-15T16:24:57
2023-02-15T16:24:57Z
https://github.com/huggingface/datasets/issues/5381
LeoGrin
[]
[]
[ "Hi! This error can happen if there is a local file/folder with the same name as the requested dataset. And to avoid it, rename the local file/folder.\r\n\r\nSoon, it will be possible to explicitly request a Hub dataset as follows:https://github.com/huggingface/datasets/issues/5228#issuecomment-1313494020" ]
NONE
### Describe the bug When trying to load `the_pile` dataset from the library, I get a `FileNotFound` error. ### Steps to reproduce the bug Steps to reproduce: Run: ``` from datasets import load_dataset dataset = load_dataset("the_pile") ``` I get the output: "name": "FileNotFoundError", "message...
1,504,404,043
I_kwDODunzps5Zq2JL
5,380
Improve dataset `.skip()` speed in streaming mode
open
2022-12-20T11:25:23
2025-11-10T20:05:37
https://github.com/huggingface/datasets/issues/5380
versae
[ "enhancement", "good second issue" ]
[]
[ "Hi! I agree `skip` can be inefficient to use in the current state.\r\n\r\nTo make it fast, we could use \"statistics\" stored in Parquet metadata and read only the chunks needed to form a dataset. \r\n\r\nAnd thanks to the \"datasets-server\" project, which aims to store the Parquet versions of the Hub datasets (o...
CONTRIBUTOR
### Feature request Add extra information to the `dataset_infos.json` file to include the number of samples/examples in each shard, for example in a new field `num_examples` alongside `num_bytes`. The `.skip()` function could use this information to ignore the download of a shard when in streaming mode, which AFAICT...
1,503,887,508
I_kwDODunzps5Zo4CU
5,378
The dataset "the_pile", subset "enron_emails" , load_dataset() failure
closed
completed
2022-12-20T02:19:13
2022-12-20T07:52:54
2022-12-20T07:52:54Z
https://github.com/huggingface/datasets/issues/5378
shaoyuta
[]
[]
[ "Thanks for reporting @shaoyuta. We are investigating it.\r\n\r\nWe are transferring the issue to \"the_pile\" Community tab on the Hub: https://huggingface.co/datasets/the_pile/discussions/4" ]
NONE
### Describe the bug When run "datasets.load_dataset("the_pile","enron_emails")" failure ![image](https://user-images.githubusercontent.com/52023469/208565302-cfab7b89-0b97-4fa6-a5ba-c11b0b629b1a.png) ### Steps to reproduce the bug Run below code in python cli: >>> import datasets >>> datasets.load_dataset(...
1,501,872,945
I_kwDODunzps5ZhMMx
5,374
Using too many threads results in: Got disconnected from remote data host. Retrying in 5sec
closed
completed
2022-12-18T11:38:58
2023-07-24T15:23:07
2023-07-24T15:23:07Z
https://github.com/huggingface/datasets/issues/5374
Muennighoff
[]
[]
[ "The data files are hosted on HF at https://huggingface.co/datasets/allenai/c4/tree/main\r\n\r\nYou have 200 runs streaming the same files in parallel. So this is probably a Hub limitation. Maybe rate limiting ? cc @julien-c \r\n\r\nMaybe you can also try to reduce the number of HTTP requests by increasing the bloc...
CONTRIBUTOR
### Describe the bug `streaming_download_manager` seems to disconnect if too many runs access the same underlying dataset 🧐 The code works fine for me if I have ~100 runs in parallel, but disconnects once scaling to 200. Possibly related: - https://github.com/huggingface/datasets/pull/3100 - https://github.com/...
1,501,369,036
I_kwDODunzps5ZfRLM
5,371
Add a robustness benchmark dataset for vision
open
2022-12-17T12:35:13
2022-12-20T06:21:41
https://github.com/huggingface/datasets/issues/5371
sayakpaul
[ "dataset request" ]
[ "sayakpaul" ]
[ "Ccing @nazneenrajani @lvwerra @osanseviero " ]
MEMBER
### Name ImageNet-C ### Paper Benchmarking Neural Network Robustness to Common Corruptions and Perturbations ### Data https://github.com/hendrycks/robustness ### Motivation It's a known fact that vision models are brittle when they meet with slightly corrupted and perturbed data. This is also corre...
1,498,171,317
I_kwDODunzps5ZTEe1
5,363
Dataset.from_generator() crashes on simple example
closed
completed
2022-12-15T10:21:28
2022-12-15T11:51:33
2022-12-15T11:51:33Z
https://github.com/huggingface/datasets/issues/5363
villmow
[]
[]
[]
NONE
1,497,643,744
I_kwDODunzps5ZRDrg
5,362
Run 'GPT-J' failure due to download dataset fail (' ConnectionError: Couldn't reach http://eaidata.bmk.sh/data/enron_emails.jsonl.zst ' )
closed
completed
2022-12-15T01:23:03
2022-12-15T07:45:54
2022-12-15T07:45:53Z
https://github.com/huggingface/datasets/issues/5362
shaoyuta
[]
[ "albertvillanova" ]
[ "Thanks for reporting, @shaoyuta.\r\n\r\nWe have checked and yes, apparently there is an issue with the server hosting the data of the \"enron_emails\" subset of \"the_pile\" dataset: http://eaidata.bmk.sh/data/enron_emails.jsonl.zst\r\nIt seems to be down: The connection has timed out.\r\n\r\nPlease note that at t...
NONE
### Describe the bug Run model "GPT-J" with dataset "the_pile" fail. The fail out is as below: ![image](https://user-images.githubusercontent.com/52023469/207750127-118d9896-35f4-4ee9-90d4-d0ab9aae9c74.png) Looks like which is due to "http://eaidata.bmk.sh/data/enron_emails.jsonl.zst" unreachable . ### Steps to ...
1,497,153,889
I_kwDODunzps5ZPMFh
5,361
How concatenate `Audio` elements using batch mapping
closed
completed
2022-12-14T18:13:55
2023-07-21T14:30:51
2023-07-21T14:30:51Z
https://github.com/huggingface/datasets/issues/5361
bayartsogt-ya
[]
[]
[ "You can try something like this ?\r\n```python\r\ndef mapper_function(batch):\r\n return {\"concatenated_audio\": [np.concatenate([audio[\"array\"] for audio in batch[\"audio\"]])]}\r\n\r\ndataset = dataset.map(\r\n mapper_function,\r\n batched=True,\r\n batch_size=3,\r\n remove_columns=list(dataset....
NONE
### Describe the bug I am trying to do concatenate audios in a dataset e.g. `google/fleurs`. ```python print(dataset) # Dataset({ # features: ['path', 'audio'], # num_rows: 24 # }) def mapper_function(batch): # to merge every 3 audio # np.concatnate(audios[i: i+3]) for i in range(i, len(batc...
1,496,947,177
I_kwDODunzps5ZOZnp
5,360
IterableDataset returns duplicated data using PyTorch DDP
closed
completed
2022-12-14T16:06:19
2023-06-15T09:51:13
2023-01-16T13:33:33Z
https://github.com/huggingface/datasets/issues/5360
lhoestq
[]
[ "lhoestq" ]
[ "If you use huggingface trainer, you will find the trainer has wrapped a `IterableDatasetShard` to avoid duplication.\r\nSee:\r\nhttps://github.com/huggingface/transformers/blob/dfd818420dcbad68e05a502495cf666d338b2bfb/src/transformers/trainer.py#L835\r\n", "If you want to support it by datasets natively, maybe w...
MEMBER
As mentioned in https://github.com/huggingface/datasets/issues/3423, when using PyTorch DDP the dataset ends up with duplicated data. We already check for the PyTorch `worker_info` for single node, but we should also check for `torch.distributed.get_world_size()` and `torch.distributed.get_rank()`
1,492,174,125
I_kwDODunzps5Y8MUt
5,354
Consider using "Sequence" instead of "List"
open
2022-12-12T15:39:45
2026-05-20T17:45:03
https://github.com/huggingface/datasets/issues/5354
tranhd95
[ "enhancement", "good first issue" ]
[ "avinashsai" ]
[ "Hi! Linking a comment to provide more info on the issue: https://stackoverflow.com/a/39458225. This means we should replace all (most of) the occurrences of `List` with `Sequence` in function signatures.\r\n\r\n@tranhd95 Would you be interested in submitting a PR?", "Hi all! I tried to reproduce this issue and d...
NONE
### Feature request Hi, please consider using `Sequence` type annotation instead of `List` in function arguments such as in [`Dataset.from_parquet()`](https://github.com/huggingface/datasets/blob/main/src/datasets/arrow_dataset.py#L1088). It leads to type checking errors, see below. **How to reproduce** ```py ...
1,491,880,500
I_kwDODunzps5Y7Eo0
5,353
Support remote file systems for `Audio`
closed
completed
2022-12-12T13:22:13
2022-12-12T13:37:14
2022-12-12T13:37:14Z
https://github.com/huggingface/datasets/issues/5353
OllieBroadhurst
[ "enhancement" ]
[]
[ "Just seen https://github.com/huggingface/datasets/issues/5281" ]
NONE
### Feature request Hi there! It would be super cool if `Audio()`, and potentially other features, could read files from a remote file system. ### Motivation Large amounts of data is often stored in buckets. `load_from_disk` is able to retrieve data from cloud storage but to my knowledge actually copies the datas...
1,490,796,414
I_kwDODunzps5Y279-
5,352
__init__() got an unexpected keyword argument 'input_size'
open
2022-12-12T02:52:03
2022-12-19T01:38:48
https://github.com/huggingface/datasets/issues/5352
J-shel
[]
[]
[ "Hi @J-shel, thanks for reporting.\r\n\r\nI think the issue comes from your call to `load_dataset`. As first argument, you should pass:\r\n- either the name of your dataset (\"mrf\") if this is already published on the Hub\r\n- or the path to the loading script of your dataset (\"path/to/your/local/mrf.py\").", "...
NONE
### Describe the bug I try to define a custom configuration with a input_size attribute following the instructions by "Specifying several dataset configurations" in https://huggingface.co/docs/datasets/v1.2.1/add_dataset.html But when I load the dataset, I got an error "__init__() got an unexpected keyword argument...
1,490,659,504
I_kwDODunzps5Y2aiw
5,351
Do we need to implement `_prepare_split`?
closed
completed
2022-12-12T01:38:54
2022-12-20T18:20:57
2022-12-12T16:48:56Z
https://github.com/huggingface/datasets/issues/5351
jmwoloso
[]
[]
[ "Hi! `DatasetBuilder` is a parent class for concrete builders: `GeneratorBasedBuilder`, `ArrowBasedBuilder` and `BeamBasedBuilder`. When writing a builder script, these classes are the ones you should inherit from. And since all of them implement `_prepare_split`, you only have to implement the three methods mentio...
NONE
### Describe the bug I'm not sure this is a bug or if it's just missing in the documentation, or i'm not doing something correctly, but I'm subclassing `DatasetBuilder` and getting the following error because on the `DatasetBuilder` class the `_prepare_split` method is abstract (as are the others we are required to im...
1,486,975,626
I_kwDODunzps5YoXKK
5,348
The data downloaded in the download folder of the cache does not respect `umask`
open
2022-12-09T15:46:27
2022-12-09T17:21:26
https://github.com/huggingface/datasets/issues/5348
SaulLu
[]
[]
[ "note, that `datasets` already did some of that umask fixing in the past and also at the hub - the recent work on the hub about the same: https://github.com/huggingface/huggingface_hub/pull/1220\r\n\r\nAlso I noticed that each file has a .json counterpart and the latter always has the correct perms:\r\n\r\n```\r\n-...
CONTRIBUTOR
### Describe the bug For a project on a cluster we are several users to share the same cache for the datasets library. And we have a problem with the permissions on the data downloaded in the cache. Indeed, it seems that the data is downloaded by giving read and write permissions only to the user launching the com...
1,486,884,983
I_kwDODunzps5YoBB3
5,346
[Quick poll] Give your opinion on the future of the Hugging Face Open Source ecosystem!
closed
completed
2022-12-09T14:48:02
2023-06-02T20:24:44
2023-01-25T19:35:40Z
https://github.com/huggingface/datasets/issues/5346
LysandreJik
[]
[]
[ "As the survey is finished, can we close this issue, @LysandreJik ?", "Yes! I'll post a public summary on the forums shortly.", "Is the summary available? I would be interested in reading your findings." ]
MEMBER
Thanks to all of you, Datasets is just about to pass 15k stars! Since the last survey, a lot has happened: the [diffusers](https://github.com/huggingface/diffusers), [evaluate](https://github.com/huggingface/evaluate) and [skops](https://github.com/skops-dev/skops) libraries were born. `timm` joined the Hugging Face...
1,486,555,384
I_kwDODunzps5Ymwj4
5,345
Wrong dtype for array in audio features
open
2022-12-09T11:05:11
2023-02-10T14:39:28
https://github.com/huggingface/datasets/issues/5345
qmeeus
[]
[]
[ "After some more investigation, this is due to [this line of code](https://github.com/huggingface/datasets/blob/main/src/datasets/features/audio.py#L279). The function `sf.read(file)` should be updated to `sf.read(file, dtype=\"float32\")`\r\n\r\nIndeed, the default value in soundfile is `float64` ([see here](https...
NONE
### Describe the bug When concatenating/interleaving different datasets, I stumble into an error because the features can't be aligned. After some investigation, I understood that the audio arrays had different dtypes, namely `float32` and `float64`. Consequently, the datasets cannot be merged. ### Steps to repro...
1,485,297,823
I_kwDODunzps5Yh9if
5,343
T5 for Q&A produces truncated sentence
closed
completed
2022-12-08T19:48:46
2022-12-08T19:57:17
2022-12-08T19:57:17Z
https://github.com/huggingface/datasets/issues/5343
junyongyou
[]
[]
[]
NONE
Dear all, I am fine-tuning T5 for Q&A task using the MedQuAD ([GitHub - abachaa/MedQuAD: Medical Question Answering Dataset of 47,457 QA pairs created from 12 NIH websites](https://github.com/abachaa/MedQuAD)) dataset. In the dataset, there are many long answers with thousands of words. I have used pytorch_lightning to...
1,485,244,178
I_kwDODunzps5YhwcS
5,342
Emotion dataset cannot be downloaded
closed
completed
2022-12-08T19:07:09
2023-02-23T19:13:19
2022-12-09T10:46:11Z
https://github.com/huggingface/datasets/issues/5342
cbarond
[ "duplicate" ]
[]
[ "Hi @cbarond there's already an open issue at https://github.com/dair-ai/emotion_dataset/issues/5, as the data seems to be missing now, so check that issue instead 👍🏻 ", "Thanks @cbarond for reporting and @alvarobartt for pointing to the issue we opened in the author's repo.\r\n\r\nIndeed, this issue was first ...
NONE
### Describe the bug The emotion dataset gives a FileNotFoundError. The full error is: `FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/1pzkadrvffbqw6o/train.txt?dl=1`. It was working yesterday (December 7, 2022), but stopped working today (December 8, 2022). ### Steps to reproduce the bug ...
1,482,646,151
I_kwDODunzps5YX2KH
5,338
`map()` stops every 1000 steps
closed
completed
2022-12-07T19:09:40
2025-02-14T18:10:07
2022-12-10T00:39:28Z
https://github.com/huggingface/datasets/issues/5338
bayartsogt-ya
[]
[]
[ "Hi !\r\n\r\n> It starts using all the cores (I am not sure why because I did not pass num_proc)\r\n\r\nThe tokenizer uses Rust code that is multithreaded. And maybe the `feature_extractor` might run some things in parallel as well - but I'm not super familiar with its internals.\r\n\r\n> then progress bar stops at...
NONE
### Describe the bug I am passing the following `prepare_dataset` function to `Dataset.map` (code is inspired from [here](https://github.com/huggingface/community-events/blob/main/whisper-fine-tuning-event/run_speech_recognition_seq2seq_streaming.py#L454)) ```python3 def prepare_dataset(batch): # load and res...
1,481,692,156
I_kwDODunzps5YUNP8
5,337
Support webdataset format
closed
completed
2022-12-07T11:32:25
2024-03-06T14:39:29
2024-03-06T14:39:28Z
https://github.com/huggingface/datasets/issues/5337
lhoestq
[]
[ "lhoestq" ]
[ "I like the idea of having `webdataset` as an optional dependency to ensure our loader generates web datasets the same way as the main project.", "Webdataset is the one of the most popular dataset formats for large scale computer vision tasks. Upvote for this issue. ", "Any updates on this?", "We haven't had ...
MEMBER
Webdataset is an efficient format for iterable datasets. It would be nice to support it in `datasets`, as discussed in https://github.com/rom1504/img2dataset/issues/234. In particular it would be awesome to be able to load one using `load_dataset` in streaming mode (either from a local directory, or from a dataset o...
1,476,513,072
I_kwDODunzps5YAc0w
5,332
Passing numpy array to ClassLabel names causes ValueError
closed
completed
2022-12-05T12:59:03
2022-12-22T16:32:50
2022-12-22T16:32:50Z
https://github.com/huggingface/datasets/issues/5332
freddyheppell
[]
[]
[ "Should `datasets` allow `ClassLabel` input parameter to be an `np.array` even though internally we need to cast it to a Python list? @lhoestq @mariosasko ", "Hi! No, I don't think so. The `names` parameter is [annotated](https://github.com/huggingface/datasets/blob/582236640b9109988e5f7a16a8353696ffa09a16/src/d...
CONTRIBUTOR
### Describe the bug If a numpy array is passed to the names argument of ClassLabel, creating a dataset with those features causes an error. ### Steps to reproduce the bug https://colab.research.google.com/drive/1cV_es1PWZiEuus17n-2C-w0KEoEZ68IX TLDR: If I define my classes as: ``` my_classes = np.array(['on...
1,471,634,168
I_kwDODunzps5Xt1r4
5,326
No documentation for main branch is built
closed
completed
2022-12-01T16:50:58
2022-12-02T16:26:01
2022-12-02T16:26:01Z
https://github.com/huggingface/datasets/issues/5326
albertvillanova
[ "bug" ]
[ "albertvillanova" ]
[]
MEMBER
Since: - #5250 - Commit: 703b84311f4ead83c7f79639f2dfa739295f0be6 the docs for main branch are no longer built. The change introduced only triggers the docs building for releases.
1,471,536,822
I_kwDODunzps5Xtd62
5,325
map(...batch_size=None) for IterableDataset
closed
completed
2022-12-01T15:43:42
2022-12-07T15:54:43
2022-12-07T15:54:42Z
https://github.com/huggingface/datasets/issues/5325
frankier
[ "enhancement", "good first issue" ]
[ "alvarobartt" ]
[ "Hi! I agree it makes sense for `IterableDataset.map` to support the `batch_size=None` case. This should be super easy to fix.", "@mariosasko as this is something simple maybe I can include it as part of https://github.com/huggingface/datasets/pull/5311? Let me know :+1:", "#self-assign", "Feel free to close ...
CONTRIBUTOR
### Feature request Dataset.map(...) allows batch_size to be None. It would be nice if IterableDataset did too. ### Motivation Although it may seem a bit of a spurious request given that `IterableDataset` is meant for larger than memory datasets, but there are a couple of reasons why this might be nice. One is th...
1,471,524,512
I_kwDODunzps5Xta6g
5,324
Fix docstrings and types in documentation that appears on the website
open
2022-12-01T15:34:53
2024-01-23T16:21:54
https://github.com/huggingface/datasets/issues/5324
polinaeterna
[ "documentation" ]
[]
[ "I agree we have a mess with docstrings...", "Ok, I believe we've cleaned up most of the old syntax we were using for the user-facing docs! There are still a couple of `:obj:`'s and `:class:` floating around in the docstrings we don't expose that I'll track down :)", "Hi @polinaeterna @albertvillanova @stevhliu...
CONTRIBUTOR
While I was working on https://github.com/huggingface/datasets/pull/5313 I've noticed that we have a mess in how we annotate types and format args and return values in the code. And some of it is displayed in the [Reference section](https://huggingface.co/docs/datasets/package_reference/builder_classes) of the document...
1,471,518,803
I_kwDODunzps5XtZhT
5,323
Duplicated Keys in Taskmaster-2 Dataset
closed
completed
2022-12-01T15:31:06
2022-12-01T16:26:06
2022-12-01T16:26:06Z
https://github.com/huggingface/datasets/issues/5323
liaeh
[]
[ "albertvillanova" ]
[ "Thanks for reporting, @liaeh.\r\n\r\nWe are having a look at it. ", "I have transferred the discussion to the Community tab of the dataset: https://huggingface.co/datasets/taskmaster2/discussions/1" ]
NONE
### Describe the bug Loading certain splits () of the taskmaster-2 dataset fails because of a DuplicatedKeysError. This occurs for the following domains: `'hotels', 'movies', 'music', 'sports'`. The domains `'flights', 'food-ordering', 'restaurant-search'` load fine. Output: ### Steps to reproduce the bug ``` ...
1,470,390,164
I_kwDODunzps5XpF-U
5,317
`ImageFolder` performs poorly with large datasets
open
2022-12-01T00:04:21
2022-12-01T21:49:26
https://github.com/huggingface/datasets/issues/5317
salieri
[]
[]
[ "Hi ! ImageFolder is made for small scale datasets indeed. For large scale image datasets you better group your images in TAR archives or Arrow/Parquet files. This is true not just for ImageFolder loading performance, but also because having millions of files is not ideal for your filesystem or when moving the data...
NONE
### Describe the bug While testing image dataset creation, I'm seeing significant performance bottlenecks with imagefolders when scanning a directory structure with large number of images. ## Setup * Nested directories (5 levels deep) * 3M+ images * 1 `metadata.jsonl` file ## Performance Degradation Point...
1,470,115,681
I_kwDODunzps5XoC9h
5,316
Bug in sample_by="paragraph"
closed
completed
2022-11-30T19:24:13
2022-12-01T15:19:02
2022-12-01T15:19:02Z
https://github.com/huggingface/datasets/issues/5316
adampauls
[]
[ "albertvillanova" ]
[ "Thanks for reporting, @adampauls.\r\n\r\nWe are having a look at it. " ]
NONE
### Describe the bug I think [this line](https://github.com/huggingface/datasets/blob/main/src/datasets/packaged_modules/text/text.py#L96) is wrong and should be `batch = f.read(self.config.chunksize)`. Otherwise it will never terminate because even when `f` is finished reading, `batch` will still be truthy from the l...
1,470,026,797
I_kwDODunzps5XntQt
5,315
Adding new splits to a dataset script with existing old splits info in metadata's `dataset_info` fails
open
2022-11-30T18:02:15
2022-12-02T07:02:53
https://github.com/huggingface/datasets/issues/5315
polinaeterna
[ "bug" ]
[ "polinaeterna" ]
[ "EDIT:\r\nI think in this case, the metadata files (either README or JSON) should not be read (i.e. `self.info.splits` should be None).\r\n\r\nOne idea: \r\n- I think ideally we should set this behavior when we pass `--save_info` to the CLI `test`\r\n- However, currently, the builder is unaware of this: `save_info`...
CONTRIBUTOR
### Describe the bug If you first create a custom dataset with a specific set of splits, generate metadata with `datasets-cli test ... --save_info`, then change your script to include more splits, it fails. That's what happened in https://huggingface.co/datasets/mrdbourke/food_vision_199_classes/discussions/2#6385f...
1,469,685,118
I_kwDODunzps5XmZ1-
5,314
Datasets: classification_report() got an unexpected keyword argument 'suffix'
closed
completed
2022-11-30T14:01:03
2023-07-21T14:40:31
2023-07-21T14:40:31Z
https://github.com/huggingface/datasets/issues/5314
JonathanAlis
[]
[]
[ "This seems similar to https://github.com/huggingface/datasets/issues/2512 Can you try to update seqeval ? ", "@JonathanAlis also note that the metrics are deprecated in our `datasets` library.\r\n\r\nPlease, use the new library 🤗 Evaluate instead: https://huggingface.co/docs/evaluate" ]
NONE
https://github.com/huggingface/datasets/blob/main/metrics/seqeval/seqeval.py > import datasets predictions = [['O', 'O', 'B-MISC', 'I-MISC', 'I-MISC', 'I-MISC', 'O'], ['B-PER', 'I-PER', 'O']] references = [['O', 'O', 'O', 'B-MISC', 'I-MISC', 'I-MISC', 'O'], ['B-PER', 'I-PER', 'O']] seqeval = datasets.load_metri...
1,465,968,639
I_kwDODunzps5XYOf_
5,306
Can't use custom feature description when loading a dataset
closed
completed
2022-11-28T07:55:44
2022-11-28T08:11:45
2022-11-28T08:11:44Z
https://github.com/huggingface/datasets/issues/5306
clefourrier
[]
[]
[ "Forgot to actually convert the feature dict to a Feature object. Closing." ]
MEMBER
### Describe the bug I have created a feature dictionary to describe my datasets' column types, to use when loading the dataset, following [the doc](https://huggingface.co/docs/datasets/main/en/about_dataset_features). It crashes at dataset load. ### Steps to reproduce the bug ```python # Creating features task_...
1,465,627,826
I_kwDODunzps5XW7Sy
5,305
Dataset joelito/mc4_legal does not work with multiple files
closed
completed
2022-11-28T00:16:16
2022-11-28T07:22:42
2022-11-28T07:22:42Z
https://github.com/huggingface/datasets/issues/5305
JoelNiklaus
[]
[ "albertvillanova" ]
[ "Thanks for reporting @JoelNiklaus.\r\n\r\nPlease note that since we moved all dataset loading scripts to the Hub, the issues and pull requests relative to specific datasets are directly handled on the Hub, in their Community tab. I'm transferring this issue there: https://huggingface.co/datasets/joelito/mc4_legal/...
CONTRIBUTOR
### Describe the bug The dataset https://huggingface.co/datasets/joelito/mc4_legal works for languages like bg with a single data file, but not for languages with multiple files like de. It shows zero rows for the de dataset. joelniklaus@Joels-MacBook-Pro ~/N/P/C/L/p/m/mc4_legal (main) [1]> python test_mc4_legal....
1,465,110,367
I_kwDODunzps5XU89f
5,304
timit_asr doesn't load the test split.
closed
completed
2022-11-26T10:18:22
2023-02-10T16:33:21
2023-02-10T16:33:21Z
https://github.com/huggingface/datasets/issues/5304
seyong92
[]
[]
[ "The [timit_asr.py](https://huggingface.co/datasets/timit_asr/blob/main/timit_asr.py) script iterates over the WAV files per split directory using this:\r\n```python\r\nwav_paths = sorted(Path(data_dir).glob(f\"**/{split}/**/*.wav\"))\r\nwav_paths = wav_paths if wav_paths else sorted(Path(data_dir).glob(f\"**/{spli...
NONE
### Describe the bug When I use the function ```timit = load_dataset('timit_asr', data_dir=data_dir)```, it only loads train split, not test split. I tried to change the directory and filename to lower case to upper case for the test split, but it does not work at all. ```python DatasetDict({ train: Datase...
1,464,681,871
I_kwDODunzps5XTUWP
5,298
Bug in xopen with Windows pathnames
closed
completed
2022-11-25T15:21:32
2022-11-29T08:21:25
2022-11-29T08:21:25Z
https://github.com/huggingface/datasets/issues/5298
albertvillanova
[ "bug" ]
[ "albertvillanova" ]
[]
MEMBER
Currently, `xopen` function has a bug with local Windows pathnames: From its implementation: ```python def xopen(file: str, mode="r", *args, **kwargs): file = _as_posix(PurePath(file)) main_hop, *rest_hops = file.split("::") if is_local_path(main_hop): return open(file, mode, *args, **kwarg...
1,464,553,580
I_kwDODunzps5XS1Bs
5,296
Bug in xjoin with Windows pathnames
closed
completed
2022-11-25T13:29:33
2022-11-29T08:05:13
2022-11-29T08:05:13Z
https://github.com/huggingface/datasets/issues/5296
albertvillanova
[ "bug" ]
[ "albertvillanova" ]
[]
MEMBER
Currently, `xjoin` function has a bug with local Windows pathnames: instead of returning the OS-dependent join pathname, it always returns it in POSIX format. ```python from datasets.download.streaming_download_manager import xjoin path = xjoin("C:\\Users\\USERNAME", "filename.txt") ``` Join path should be: ...
1,464,006,743
I_kwDODunzps5XQvhX
5,295
Extractions failed when .zip file located on read-only path (e.g., SageMaker FastFile mode)
closed
completed
2022-11-25T03:59:43
2023-07-21T14:39:09
2023-07-21T14:39:09Z
https://github.com/huggingface/datasets/issues/5295
verdimrc
[]
[ "lhoestq" ]
[ "Hi ! Thanks for reporting. Indeed the lock file should be placed in a directory with write permission (e.g. in the directory where the archive is extracted).", "I opened https://github.com/huggingface/datasets/pull/5320 to fix this - it places the lock file in the cache directory instead of trying to put in next...
NONE
### Describe the bug Hi, `load_dataset()` does not work .zip files located on a read-only directory. Looks like it's because Dataset creates a lock file in the [same directory](https://github.com/huggingface/datasets/blob/df4bdd365f2abb695f113cbf8856a925bc70901b/src/datasets/utils/extract.py) as the .zip file. ...
1,463,669,201
I_kwDODunzps5XPdHR
5,293
Support streaming datasets with pathlib.Path.with_suffix
closed
completed
2022-11-24T17:52:08
2022-11-29T07:06:33
2022-11-29T07:06:33Z
https://github.com/huggingface/datasets/issues/5293
albertvillanova
[ "enhancement" ]
[ "albertvillanova" ]
[]
MEMBER
Extend support for streaming datasets that use `pathlib.Path.with_suffix`. This feature will be useful e.g. for datasets containing text files and annotated files with the same name but different extension.
1,463,053,832
I_kwDODunzps5XNG4I
5,292
Missing documentation build for versions 2.7.1 and 2.6.2
closed
completed
2022-11-24T09:42:10
2022-11-24T10:10:02
2022-11-24T10:10:02Z
https://github.com/huggingface/datasets/issues/5292
albertvillanova
[ "maintenance" ]
[ "albertvillanova" ]
[ "- Build docs for 2.6.2:\r\n - Commit: a6a5a1cf4cdf1e0be65168aed5a327f543001fe8\r\n - Build docs GH Action: https://github.com/huggingface/datasets/actions/runs/3539470622/jobs/5941404044\r\n- Build docs for 2.7.1:\r\n - Commit: 5ef1ab1cc06c2b7a574bf2df454cd9fcb071ccb2\r\n - Build docs GH Action: https://github...
MEMBER
After the patch releases [2.7.1](https://github.com/huggingface/datasets/releases/tag/2.7.1) and [2.6.2](https://github.com/huggingface/datasets/releases/tag/2.6.2), the online docs were not properly built (the build_documentation workflow was not triggered). There was a fix by: - #5291 However, both documentati...
1,462,134,067
I_kwDODunzps5XJmUz
5,288
Lossy json serialization - deserialization of dataset info
open
2022-11-23T17:20:15
2022-11-25T12:53:51
https://github.com/huggingface/datasets/issues/5288
anuragprat1k
[]
[]
[ "Hi ! JSON is a lossy format indeed. If you want to keep the feature types or other metadata I'd encourage you to store them as well. For example you can use `dataset.info.write_to_directory` and `DatasetInfo.from_directory` to store the feature types, split info, description, license etc." ]
NONE
### Describe the bug Saving a dataset to disk as json (using `to_json`) and then loading it again (using `load_dataset`) results in features whose labels are not type-cast correctly. In the code snippet below, `features.label` should have a label of type `ClassLabel` but has type `Value` instead. ### Steps to re...