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,403,214,950
I_kwDODunzps5To1xm
5,094
Multiprocessing with `Dataset.map` and `PyTorch` results in deadlock
closed
completed
2022-10-10T13:50:56
2023-07-24T15:29:13
2023-07-24T15:29:13Z
https://github.com/huggingface/datasets/issues/5094
RR-28023
[ "bug" ]
[]
[ "Hi ! Could it be an Out of Memory issue that could have killed one of the processes ? can you check your memory ?", "Hi! I don't think it is a memory issue. I'm monitoring the main and spawn python processes and threads with `htop` and the memory does not peak. Besides, the example I've posted above should not b...
NONE
## Describe the bug There seems to be an issue with using multiprocessing with `datasets.Dataset.map` (i.e. setting `num_proc` to a value greater than one) combined with a function that uses `torch` under the hood. The subprocesses that `datasets.Dataset.map` spawns [a this step](https://github.com/huggingface/datase...
1,402,939,660
I_kwDODunzps5TnykM
5,093
Mismatch between tutoriel and doc
closed
completed
2022-10-10T10:23:53
2022-10-10T17:51:15
2022-10-10T17:51:14Z
https://github.com/huggingface/datasets/issues/5093
clefourrier
[ "bug", "good first issue", "hacktoberfest" ]
[ "riccardobucco" ]
[ "Hi, thanks for reporting! This line should be replaced with \r\n```python\r\ndataset = dataset.map(lambda examples: tokenizer(examples[\"text\"], return_tensors=\"np\"), batched=True)\r\n```\r\nfor it to work (the `return_tensors` part inside the `tokenizer` call).", "Can I work on this?", "Fixed in https://gi...
MEMBER
## Describe the bug In the "Process text data" tutorial, [`map` has `return_tensors` as kwarg](https://huggingface.co/docs/datasets/main/en/nlp_process#map). It does not seem to appear in the [function documentation](https://huggingface.co/docs/datasets/main/en/package_reference/main_classes#datasets.Dataset.map), nor...
1,401,102,407
I_kwDODunzps5TgyBH
5,090
Review sync issues from GitHub to Hub
closed
completed
2022-10-07T12:31:56
2022-10-08T07:07:36
2022-10-08T07:07:36Z
https://github.com/huggingface/datasets/issues/5090
albertvillanova
[ "bug" ]
[ "albertvillanova" ]
[ "Nice!!" ]
MEMBER
## Describe the bug We have discovered that sometimes there were sync issues between GitHub and Hub datasets, after a merge commit to main branch. For example: - this merge commit: https://github.com/huggingface/datasets/commit/d74a9e8e4bfff1fed03a4cab99180a841d7caf4b - was not properly synced with the Hub: https...
1,400,788,486
I_kwDODunzps5TflYG
5,089
Resume failed process
open
2022-10-07T08:07:03
2022-10-07T08:07:03
https://github.com/huggingface/datasets/issues/5089
felix-schneider
[ "enhancement" ]
[]
[]
NONE
**Is your feature request related to a problem? Please describe.** When a process (`map`, `filter`, etc.) crashes part-way through, you lose all progress. **Describe the solution you'd like** It would be good if the cache reflected the partial progress, so that after we restart the script, the process can restart ...
1,400,530,412
I_kwDODunzps5TemXs
5,088
load_datasets("json", ...) don't read local .json.gz properly
open
2022-10-07T02:16:58
2022-10-07T14:43:16
https://github.com/huggingface/datasets/issues/5088
junwang-wish
[ "bug" ]
[]
[ "Hi @junwang-wish, thanks for reporting.\r\n\r\nUnfortunately, I'm not able to reproduce the bug. Which version of `datasets` are you using? Does the problem persist if you update `datasets`?\r\n```shell\r\npip install -U datasets\r\n``` ", "Thanks @albertvillanova I updated `datasets` from `2.5.1` to `2.5.2` and...
NONE
## Describe the bug I have a local file `*.json.gz` and it can be read by `pandas.read_json(lines=True)`, but cannot be read by `load_datasets("json")` (resulting in 0 lines) ## Steps to reproduce the bug ```python fpath = '/data/junwang/.cache/general/57b6f2314cbe0bc45dda5b78f0871df2/test.json.gz' ds_panda = Da...
1,400,216,975
I_kwDODunzps5TdZ2P
5,086
HTTPError: 404 Client Error: Not Found for url
closed
completed
2022-10-06T19:48:58
2022-10-07T15:12:01
2022-10-07T15:12:01Z
https://github.com/huggingface/datasets/issues/5086
keyuchen21
[ "bug" ]
[]
[ "FYI @lewtun ", "Hi @km5ar, thanks for reporting.\r\n\r\nThis should be fixed in the notebook:\r\n- the filename `datasets-issues-with-hf-doc-builder.jsonl` no longer exists on the repo; instead, current filename is `datasets-issues-with-comments.jsonl`\r\n- see: https://huggingface.co/datasets/lewtun/github-issu...
NONE
## Describe the bug I was following chap 5 from huggingface course: https://huggingface.co/course/chapter5/6?fw=tf However, I'm not able to download the datasets, with a 404 erros <img width="1160" alt="iShot2022-10-06_15 54 50" src="https://user-images.githubusercontent.com/54015474/194406327-ae62c2f3-1da5-...
1,400,113,569
I_kwDODunzps5TdAmh
5,085
Filtering on an empty dataset returns a corrupted dataset.
closed
completed
2022-10-06T18:18:49
2022-10-07T19:06:02
2022-10-07T18:40:26Z
https://github.com/huggingface/datasets/issues/5085
gabegma
[ "bug", "hacktoberfest" ]
[ "Mouhanedg56" ]
[ "~~It seems like #5043 fix (merged recently) is the root cause of such behaviour. When we empty indices mapping (because the dataset length equals to zero), we can no longer get column item like: `ds_filter_2['sentence']` which uses\r\n`ds_filter_1._indices.column(0)`~~\r\n\r\n**UPDATE:**\r\nEmpty datasets are retu...
NONE
## Describe the bug When filtering a dataset twice, where the first result is an empty dataset, the second dataset seems corrupted. ## Steps to reproduce the bug ```python datasets = load_dataset("glue", "sst2") dataset_split = datasets['validation'] ds_filter_1 = dataset_split.filter(lambda x: False) # ...
1,399,842,514
I_kwDODunzps5Tb-bS
5,083
Support numpy/torch/tf/jax formatting for IterableDataset
closed
completed
2022-10-06T15:14:58
2023-10-09T12:42:15
2023-10-09T12:42:15Z
https://github.com/huggingface/datasets/issues/5083
lhoestq
[ "enhancement", "streaming", "good second issue" ]
[ "lhoestq" ]
[ "hii @lhoestq, can you assign this issue to me? Though i am new to open source still I would love to put my best foot forward. I can see there isn't anyone right now assigned to this issue.", "Hi @zutarich ! This issue was fixed by #5852 - sorry I forgot to close it\r\n\r\nFeel free to look for other issues and p...
MEMBER
Right now `IterableDataset` doesn't do any formatting. In particular this code should return a numpy array: ```python from datasets import load_dataset ds = load_dataset("imagenet-1k", split="train", streaming=True).with_format("np") print(next(iter(ds))["image"]) ``` Right now it returns a PIL.Image. S...
1,399,340,050
I_kwDODunzps5TaDwS
5,081
Bug loading `sentence-transformers/parallel-sentences`
open
2022-10-06T10:47:51
2022-10-11T10:00:48
https://github.com/huggingface/datasets/issues/5081
PhilipMay
[ "bug" ]
[]
[ "tagging @nreimers ", "The dataset is sadly not really compatible to be loaded with `load_dataset`. So far it is better to git clone it and to use the files directly.\r\n\r\nA data loading script would be needed to be added to this dataset. But this was too much overhead / not really intuitive how to create it.",...
CONTRIBUTOR
## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("sentence-transformers/parallel-sentences") ``` raises this: ``` /home/phmay/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py:697: FutureWarning: the '...
1,398,849,565
I_kwDODunzps5TYMAd
5,080
Use hfh for caching
open
2022-10-06T05:51:58
2022-10-06T14:26:05
https://github.com/huggingface/datasets/issues/5080
albertvillanova
[ "enhancement" ]
[ "albertvillanova" ]
[ "There is some discussion in https://github.com/huggingface/huggingface_hub/pull/1088 if it can help :)" ]
MEMBER
## Is your feature request related to a problem? As previously discussed in our meeting with @Wauplin and agreed on our last datasets team sync meeting, I'm investigating how `datasets` can use `hfh` for caching. ## Describe the solution you'd like Due to the peculiarities of the `datasets` cache, I would prop...
1,397,865,501
I_kwDODunzps5TUbwd
5,075
Throw EnvironmentError when token is not present
closed
completed
2022-10-05T14:14:18
2022-10-07T14:33:28
2022-10-07T14:33:28Z
https://github.com/huggingface/datasets/issues/5075
mariosasko
[ "good first issue", "hacktoberfest" ]
[]
[ "@mariosasko I've raised a PR #5076 against this issue. Please help to review. Thanks." ]
COLLABORATOR
Throw EnvironmentError instead of OSError ([link](https://github.com/huggingface/datasets/blob/6ad430ba0cdeeb601170f732d4bd977f5c04594d/src/datasets/arrow_dataset.py#L4306) to the line) in `push_to_hub` when the Hub token is not present.
1,397,850,352
I_kwDODunzps5TUYDw
5,074
Replace AssertionErrors with more meaningful errors
closed
completed
2022-10-05T14:03:55
2022-10-07T14:33:11
2022-10-07T14:33:11Z
https://github.com/huggingface/datasets/issues/5074
mariosasko
[ "good first issue", "hacktoberfest" ]
[ "galbwe" ]
[ "Hi, can I pick up this issue?", "#self-assign", "Looks like the top-level `datasource` directory was removed when https://github.com/huggingface/datasets/pull/4974 was merged, so there are 3 source files to fix." ]
COLLABORATOR
Replace the AssertionErrors with more meaningful errors such as ValueError, TypeError, etc. The files with AssertionErrors that need to be replaced: ``` src/datasets/arrow_reader.py src/datasets/builder.py src/datasets/utils/version.py ```
1,396,765,647
I_kwDODunzps5TQPPP
5,070
Support default config name when no builder configs
closed
completed
2022-10-04T19:49:35
2022-10-06T14:40:26
2022-10-06T14:40:26Z
https://github.com/huggingface/datasets/issues/5070
albertvillanova
[ "enhancement" ]
[ "albertvillanova" ]
[ "Thank you for creating this feature request, Albert.\r\n\r\nFor context this is the datatest where Albert has been helping me to switch to on-the-fly split config https://huggingface.co/datasets/HuggingFaceM4/cm4-synthetic-testing\r\n\r\nand the attempt to switch on-the-fly splits was here: https://huggingface.co/...
MEMBER
**Is your feature request related to a problem? Please describe.** As discussed with @stas00, we could support defining a default config name, even if no predefined allowed config names are set. That is, support `DEFAULT_CONFIG_NAME`, even when `BUILDER_CONFIGS` is not defined. **Additional context** In order to ...
1,395,476,770
I_kwDODunzps5TLUki
5,061
`_pickle.PicklingError: logger cannot be pickled` in multiprocessing `map`
closed
completed
2022-10-03T23:51:38
2023-07-21T14:43:35
2023-07-21T14:43:34Z
https://github.com/huggingface/datasets/issues/5061
ZhaofengWu
[ "bug" ]
[]
[ "This is maybe related to python 3.10, do you think you could try on 3.8 ?\r\n\r\nIn the meantime we'll keep improving the support for 3.10. Let me add a dedicated CI", "I did some binary search and seems like the root cause is either `multiprocess` or `dill`. python 3.10 is fine. Specifically:\r\n- `multiprocess...
NONE
## Describe the bug When I `map` with multiple processes, this error occurs. The `.name` of the `logger` that fails to pickle in the final line is `datasets.fingerprint`. ``` File "~/project/dataset.py", line 204, in <dictcomp> split: dataset.map( File ".../site-packages/datasets/arrow_dataset.py", line 24...
1,395,382,940
I_kwDODunzps5TK9qc
5,060
Unable to Use Custom Dataset Locally
closed
completed
2022-10-03T21:55:16
2022-10-06T14:29:18
2022-10-06T14:29:17Z
https://github.com/huggingface/datasets/issues/5060
zanussbaum
[ "bug" ]
[]
[ "Hi ! I opened a PR in your repo to fix this :)\r\nhttps://huggingface.co/datasets/zpn/pubchem_selfies/discussions/7\r\n\r\nbasically you need to use `open` for streaming to work properly", "Thank you so much for this! Naive question, is this a feature of `open` or have you all overloaded it to be able to read fr...
CONTRIBUTOR
## Describe the bug I have uploaded a [dataset](https://huggingface.co/datasets/zpn/pubchem_selfies) and followed the instructions from the [dataset_loader](https://huggingface.co/docs/datasets/dataset_script#download-data-files-and-organize-splits) tutorial. In that tutorial, it says ``` If the data files live in ...
1,393,739,882
I_kwDODunzps5TEshq
5,053
Intermittent JSON parse error when streaming the Pile
open
2022-10-02T11:56:46
2022-10-04T17:59:03
https://github.com/huggingface/datasets/issues/5053
neelnanda-io
[ "bug" ]
[]
[ "Maybe #2838 can help. In this PR we allow to skip bad chunks of JSON data to not crash the training\r\n\r\nDid you have warning messages before the error ?\r\n\r\nsomething like this maybe ?\r\n```\r\n03/24/2022 02:19:46 - WARNING - datasets.utils.streaming_download_manager - Got disconnected from remote data host...
NONE
## Describe the bug I have an intermittent error when streaming the Pile, where I get a JSON parse error which causes my program to crash. This is intermittent - when I rerun the program with the same random seed it does not crash in the same way. The exact point this happens also varied - it happened to me 11B tok...
1,392,381,882
I_kwDODunzps5S_g-6
5,050
Restore saved format state in `load_from_disk`
closed
completed
2022-09-30T12:40:07
2022-10-11T16:49:24
2022-10-11T16:49:24Z
https://github.com/huggingface/datasets/issues/5050
mariosasko
[ "bug", "good first issue" ]
[ "asofiaoliveira" ]
[ "Hi, can I work on this?", "Hi, sure! Let us know if you need some pointers/help." ]
COLLABORATOR
Even though we save the `format` state in `save_to_disk`, we don't restore it in `load_from_disk`. We should fix that. Reported here: https://discuss.huggingface.co/t/save-to-disk-loses-formatting-information/23815
1,391,372,519
I_kwDODunzps5S7qjn
5,046
Audiofolder creates empty Dataset if files same level as metadata
closed
completed
2022-09-29T19:17:23
2022-10-28T13:05:07
2022-10-28T13:05:07Z
https://github.com/huggingface/datasets/issues/5046
msis
[ "bug", "good first issue", "hacktoberfest" ]
[ "riccardobucco" ]
[ "Hi! Unfortunately, I can't reproduce this behavior. Instead, I get `ValueError: audio at 2063_fe9936e7-62b2-4e62-a276-acbd344480ce_1.wav doesn't have metadata in /audio-data/metadata.csv`, which can be fixed by removing the `./` from the file name.\r\n\r\n(Link to a Colab that tries to reproduce this behavior: htt...
NONE
## Describe the bug When audio files are at the same level as the metadata (`metadata.csv` or `metadata.jsonl` ), the `load_dataset` returns a `DatasetDict` with no rows but the correct columns. https://github.com/huggingface/datasets/blob/1ea4d091b7a4b83a85b2eeb8df65115d39af3766/docs/source/audio_dataset.mdx?plain...
1,391,287,609
I_kwDODunzps5S7V05
5,045
Automatically revert to last successful commit to hub when a push_to_hub is interrupted
closed
completed
2022-09-29T18:08:12
2023-10-16T13:30:49
2023-10-16T13:30:49Z
https://github.com/huggingface/datasets/issues/5045
jorahn
[ "enhancement" ]
[]
[ "Could you share the error you got please ? Maybe the full stack trace if you have it ?\r\n\r\nMaybe `push_to_hub` be implemented as a single commit @Wauplin ? This way if it fails, the repo is still at the previous (valid) state instead of ending-up in an invalid/incimplete state.", "> Maybe push_to_hub be imple...
NONE
**Is your feature request related to a problem? Please describe.** I pushed a modification of a large dataset (remove a column) to the hub. The push was interrupted after some files were committed to the repo. This left the dataset to raise an error on load_dataset() (ValueError couldn’t cast … because column names do...
1,391,242,908
I_kwDODunzps5S7K6c
5,044
integrate `load_from_disk` into `load_dataset`
open
2022-09-29T17:37:12
2025-06-28T09:00:44
https://github.com/huggingface/datasets/issues/5044
stas00
[ "enhancement" ]
[]
[ "I agree the situation is not ideal and it would be awesome to use `load_dataset` to reload a dataset saved locally !\r\n\r\nFor context:\r\n\r\n- `load_dataset` works in three steps: download the dataset, then prepare it as an arrow dataset, and finally return a memory mapped arrow dataset. In particular it create...
CONTRIBUTOR
**Is your feature request related to a problem? Please describe.** Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types? Currently one has to choose a different loader depending on how ...
1,390,353,315
I_kwDODunzps5S3xuj
5,039
Hendrycks Checksum
closed
completed
2022-09-29T06:56:20
2022-09-29T10:23:30
2022-09-29T10:04:20Z
https://github.com/huggingface/datasets/issues/5039
DanielHesslow
[ "dataset bug" ]
[ "albertvillanova" ]
[ "Thanks for reporting, @DanielHesslow. We are fixing it. ", "@albertvillanova thanks for taking care of this so quickly!", "The dataset metadata is fixed. You can download it normally." ]
NONE
Hi, The checksum for [hendrycks_test](https://huggingface.co/datasets/hendrycks_test) does not compare correctly, I guess it has been updated on the remote. ``` datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://people.eecs.berkeley.edu/~hendrycks/data....
1,389,631,122
I_kwDODunzps5S1BaS
5,038
`Dataset.unique` showing wrong output after filtering
closed
completed
2022-09-28T16:20:35
2022-09-30T15:44:25
2022-09-30T15:44:25Z
https://github.com/huggingface/datasets/issues/5038
mxschmdt
[ "bug" ]
[]
[ "Hi! It seems like `flatten_indices` (called in `unique`) doesn't know how to handle empty indices mappings. I'm working on the fix.", "Thanks, that was fast!" ]
CONTRIBUTOR
## Describe the bug After filtering a dataset, and if no samples remain, `Dataset.unique` will return the unique values of the unfiltered dataset. ## Steps to reproduce the bug ```python from datasets import Dataset dataset = Dataset.from_dict({'id': [0]}) dataset = dataset.filter(lambda _: False) print(data...
1,388,270,935
I_kwDODunzps5Sv1VX
5,032
new dataset type: single-label and multi-label video classification
open
2022-09-27T19:40:11
2022-11-02T19:10:13
https://github.com/huggingface/datasets/issues/5032
fcakyon
[ "enhancement" ]
[]
[ "Hi ! You can in the `features` folder how we implemented the audio and image feature types.\r\n\r\nWe can have something similar to videos. What we need to decide:\r\n- the video loading library to use\r\n- the output format when a user accesses a video type object\r\n- what parameters a `Video()` feature type nee...
NONE
**Is your feature request related to a problem? Please describe.** In my research, I am dealing with multi-modal (audio+text+frame sequence) video classification. It would be great if the datasets library supported generating multi-modal batches from a video dataset. **Describe the solution you'd like** Assume I h...
1,386,272,533
I_kwDODunzps5SoNcV
5,028
passing parameters to the method passed to Dataset.from_generator()
closed
completed
2022-09-26T15:20:06
2022-10-03T13:00:00
2022-10-03T13:00:00Z
https://github.com/huggingface/datasets/issues/5028
Basir-mahmood
[ "enhancement" ]
[]
[ "Hi! Yes, you can either use the `gen_kwargs` param in `Dataset.from_generator` (`ds = Dataset.from_generator(gen, gen_kwargs={\"param1\": val})`) or wrap the generator function with `functools.partial`\r\n(`ds = Dataset.from_generator(functools.partial(gen, param1=\"val\"))`) to pass custom parameters to it.\r\n" ...
NONE
Big thanks for providing dataset creation via a generator. I want to ask whether there is any way that parameters can be passed to the method Dataset.from_generator() method, like as follows. ``` from datasets import Dataset def gen(param1): for idx in len(custom_dataset): yield custom_dataset[id...
1,386,011,239
I_kwDODunzps5SnNpn
5,025
Custom Json Dataset Throwing Error when batch is False
closed
completed
2022-09-26T12:38:39
2022-09-27T19:50:00
2022-09-27T19:50:00Z
https://github.com/huggingface/datasets/issues/5025
jmandivarapu1
[ "bug" ]
[]
[ "Hi! Our processors are meant to be used in `batched` mode, so if `batched` is `False`, you need to drop the batch dimension (the error message warns you that the array has an extra dimension meaning it's 4D instead of 3D) to avoid the error:\r\n```python\r\ndef prepare_examples(examples):\r\n #Some preporcessin...
NONE
## Describe the bug A clear and concise description of what the bug is. I tried to create my custom dataset using below code ``` from datasets import Features, Sequence, ClassLabel, Value, Array2D, Array3D from torchvision import transforms from transformers import AutoProcessor # we'll use the Auto API here -...
1,385,881,112
I_kwDODunzps5Smt4Y
5,023
Text strings are split into lists of characters in xcsr dataset
closed
completed
2022-09-26T11:11:50
2022-09-28T07:54:20
2022-09-28T07:54:20Z
https://github.com/huggingface/datasets/issues/5023
albertvillanova
[ "dataset bug" ]
[ "albertvillanova" ]
[]
MEMBER
## Describe the bug Text strings are split into lists of characters. Example for "X-CSQA-en": ``` {'id': 'd3845adc08414fda', 'lang': 'en', 'question': {'stem': ['T', 'h', 'e', ' ', 'd', 'e', 'n', 't', 'a', 'l', ' ', 'o', 'f', 'f', 'i', 'c', 'e', ...
1,385,351,250
I_kwDODunzps5SkshS
5,021
Split is inferred from filename and overrides metadata.jsonl
closed
completed
2022-09-26T03:22:14
2022-09-29T08:07:50
2022-09-29T08:07:50Z
https://github.com/huggingface/datasets/issues/5021
float-trip
[ "bug", "duplicate" ]
[]
[ "Hi! What's the structure of your image folder? `datasets` by default tries to infer to what split each file belongs based on directory/file names. If it's OK to load all the images inside the `dataset` folder in the `train` split, you can do the following:\r\n```python\r\ndataset = load_dataset(\"imagefolder\", da...
NONE
## Describe the bug Including the strings "test" or "train" anywhere in a filename causes `datasets` to infer the split and silently ignore all other files. This behavior is documented for directory names but not filenames: https://huggingface.co/docs/datasets/image_dataset#imagefolder ## Steps to reproduce th...
1,384,022,463
I_kwDODunzps5SfoG_
5,017
xcsr: X-CSQA simply uses english for all alleged non-english data
closed
completed
2022-09-23T16:11:54
2022-09-26T10:57:31
2022-09-26T10:57:31Z
https://github.com/huggingface/datasets/issues/5017
thesofakillers
[ "dataset bug" ]
[ "albertvillanova" ]
[ "Thanks for reporting, @thesofakillers. Good catch. We are fixing this. " ]
NONE
## Describe the bug All the alleged non-english subcollections for the X-CSQA task in the [xcsr benchmark dataset ](https://huggingface.co/datasets/xcsr) seem to be copies of the english subcollection, rather than translations. This is in contrast to the data description: > we automatically translate the original C...
1,383,485,558
I_kwDODunzps5SdlB2
5,015
Transfer dataset scripts to Hub
closed
completed
2022-09-23T08:48:10
2022-10-05T07:15:57
2022-10-05T07:15:57Z
https://github.com/huggingface/datasets/issues/5015
albertvillanova
[]
[ "albertvillanova" ]
[ "Sounds good ! Can I help with anything ?" ]
MEMBER
Before merging: - #4974 TODO: - [x] Create label: ["dataset contribution"](https://github.com/huggingface/datasets/pulls?q=label%3A%22dataset+contribution%22) - [x] Create project: [Datasets: Transfer datasets to Hub](https://github.com/orgs/huggingface/projects/22/) - [x] PRs: - [x] Add dataset: we should r...
1,383,422,639
I_kwDODunzps5SdVqv
5,014
I need to read the custom dataset in conll format
open
reopened
2022-09-23T07:49:42
2022-11-02T11:57:15
https://github.com/huggingface/datasets/issues/5014
shell-nlp
[ "enhancement" ]
[]
[ "Hi! We don't currently have a builder for parsing custom `conll` datasets, but I guess we could add one as a packaged module (similarly to what [TFDS](https://github.com/tensorflow/datasets/blob/master/tensorflow_datasets/core/dataset_builders/conll/conll_dataset_builder.py) did). @lhoestq @albertvillanova WDYT?\r...
NONE
I need to read the custom dataset in conll format
1,383,415,971
I_kwDODunzps5SdUCj
5,013
would huggingface like publish cpp binding for datasets package ?
closed
completed
2022-09-23T07:42:49
2023-02-24T16:20:57
2023-02-24T16:20:57Z
https://github.com/huggingface/datasets/issues/5013
mullerhai
[ "wontfix" ]
[]
[ "Hi ! Can you share more information about your use case ? How could it help you to have cpp bindings versus using the python libraries ?", "> Hi ! Can you share more information about your use case ? How could it help you to have cpp bindings versus using the python libraries ?\r\n\r\nfor example ,the huggingfac...
NONE
HI: I use cpp env libtorch, I like use hugggingface ,but huggingface not cpp binding, would you like publish cpp binding for it. thanks
1,382,851,096
I_kwDODunzps5SbKIY
5,012
Force JSON format regardless of file naming on S3
closed
completed
2022-09-22T18:28:15
2023-08-16T09:58:36
2023-08-16T09:58:36Z
https://github.com/huggingface/datasets/issues/5012
junwang-wish
[ "enhancement" ]
[]
[ "Hi ! Support for URIs like `s3://...` is not implemented yet in `data_files=`. You can use the HTTP URL instead if your data is public in the meantime", "Hi,\r\nI want to make sure I understand this response. I have a set of files on S3 that are private for security reasons. Because they are not public files I ...
NONE
I have a file on S3 created by Data Version Control, it looks like `s3://dvc/ac/badff5b134382a0f25248f1b45d7b2` but contains a json file. If I run ```python dataset = load_dataset( "json", data_files='s3://dvc/ac/badff5b134382a0f25248f1b45d7b2' ) ``` It gives me ``` InvalidSchema: No connection adap...
1,382,609,587
I_kwDODunzps5SaPKz
5,011
Audio: `encode_example` fails with IndexError
closed
completed
2022-09-22T15:07:27
2022-09-23T09:05:18
2022-09-23T09:05:18Z
https://github.com/huggingface/datasets/issues/5011
sanchit-gandhi
[ "bug" ]
[]
[ "Sorry bug on my part πŸ˜… Closing " ]
CONTRIBUTOR
## Describe the bug Loading the dataset [earnings-22](https://huggingface.co/datasets/sanchit-gandhi/earnings22_split) from the Hub yields an Index Error. I created this dataset locally and then pushed to hub at the specified URL. Thus, I expect the dataset should work out-of-the-box! Indeed, the dataset viewer functi...
1,381,194,067
I_kwDODunzps5SU1lT
5,009
Error loading StonyBrookNLP/tellmewhy dataset from hub even though local copy loads correctly
closed
completed
2022-09-21T16:23:06
2022-09-29T13:07:29
2022-09-29T13:07:29Z
https://github.com/huggingface/datasets/issues/5009
ykl7
[ "bug" ]
[]
[ "I think this is because some columns are mostly empty lists. In particular the train and validation splits only have empty lists for `val_ann`. Therefore the type inference doesn't know which type is inside (or it would have to scan the other splits first before knowing).\r\n\r\nYou can fix that by specifying the ...
NONE
## Describe the bug I have added a new dataset with the identifier `StonyBrookNLP/tellmewhy` to the hub. When I load the individual files using my local copy using `dataset = datasets.load_dataset("json", data_files="data/train.jsonl")`, it loads the dataset correctly. However, when I try to load it from the hub, I ge...
1,380,952,960
I_kwDODunzps5ST6uA
5,005
Release 2.5.0 breaks transformers CI
closed
completed
2022-09-21T13:39:19
2022-09-21T14:11:57
2022-09-21T14:11:57Z
https://github.com/huggingface/datasets/issues/5005
albertvillanova
[ "bug" ]
[ "lhoestq" ]
[ "Shall we revert https://github.com/huggingface/datasets/pull/4971 @mariosasko ?\r\n\r\nAnd for consistency we can update IterableDataset.map later" ]
MEMBER
## Describe the bug As reported by @lhoestq: > see https://app.circleci.com/pipelines/github/huggingface/transformers/47634/workflows/b491886b-e66e-4edb-af96-8b459e72aa25/jobs/564563 this is used here: [https://github.com/huggingface/transformers/blob/3b19c0317b6909e2d7f11b5053895ac55[…]torch/speech-pretraining/ru...
1,380,589,402
I_kwDODunzps5SSh9a
5,002
Dataset Viewer issue for loubnabnl/humaneval-x
closed
completed
2022-09-21T09:06:17
2022-09-21T11:49:49
2022-09-21T11:49:49Z
https://github.com/huggingface/datasets/issues/5002
loubnabnl
[ "dataset-viewer" ]
[ "severo" ]
[ "It's a bug! Thanks for reporting, I'm looking at it", "Fixed." ]
NONE
### Link https://huggingface.co/datasets/loubnabnl/humaneval-x/viewer/ ### Description The dataset has subsets but the viewer gets stuck in the default subset even when I select another one (the data loading of the subsets works fine) ### Owner Yes
1,379,709,398
I_kwDODunzps5SPLHW
5,000
Dataset Viewer issue for asapp/slue
closed
completed
2022-09-20T16:45:45
2022-09-27T07:04:03
2022-09-21T07:24:07Z
https://github.com/huggingface/datasets/issues/5000
fwu-asapp
[]
[]
[ "<img width=\"519\" alt=\"Capture d’écran 2022-09-20 aΜ€ 22 33 47\" src=\"https://user-images.githubusercontent.com/1676121/191358952-1220cb7d-745a-4203-a66b-3c707b25038f.png\">\r\n\r\n```\r\nNot found.\r\n\r\nError code: SplitsResponseNotFound\r\n```\r\n\r\nhttps://datasets-server.huggingface.co/splits?dataset=a...
NONE
### Link https://huggingface.co/datasets/asapp/slue/viewer/ ### Description Hi, I wonder how to get the dataset viewer of our slue dataset to work. Best, Felix ### Owner Yes
1,379,345,161
I_kwDODunzps5SNyMJ
4,996
Dataset Viewer issue for Jean-Baptiste/wikiner_fr
closed
completed
2022-09-20T12:32:07
2022-09-27T12:35:44
2022-09-27T12:35:44Z
https://github.com/huggingface/datasets/issues/4996
severo
[]
[]
[ "The script uses `Dataset.load_from_disk`, which as you can expect, doesn't work in streaming mode.\r\n\r\nIt would probably be more practical to load the dataset locally using `Dataset.load_from_disk` first and then `push_to_hub` to upload it in Parquet on the Hub", "I've transferred this issue to the Hub repo: ...
COLLABORATOR
### Link https://huggingface.co/datasets/Jean-Baptiste/wikiner_fr ### Description ``` Error code: StreamingRowsError Exception: FileNotFoundError Message: [Errno 2] No such file or directory: 'zip:/data/train::https:/huggingface.co/datasets/Jean-Baptiste/wikiner_fr/resolve/main/data.zip/state.json' Tra...
1,379,108,482
I_kwDODunzps5SM4aC
4,995
Get a specific Exception when the dataset has no data
closed
completed
2022-09-20T09:31:59
2022-09-21T12:21:25
2022-09-21T12:21:25Z
https://github.com/huggingface/datasets/issues/4995
severo
[ "enhancement", "dataset-viewer" ]
[ "lhoestq" ]
[]
COLLABORATOR
In the dataset viewer on the Hub (https://huggingface.co/datasets/glue/viewer), we would like (https://github.com/huggingface/moon-landing/issues/3882) to show a specific message when the repository lacks any data files. In that case, instead of showing a complex traceback, we want to show a call to action to help t...
1,379,084,015
I_kwDODunzps5SMybv
4,994
delete the hardcoded license list in `datasets`
closed
completed
2022-09-20T09:14:41
2022-09-22T11:45:47
2022-09-22T11:45:47Z
https://github.com/huggingface/datasets/issues/4994
julien-c
[]
[ "albertvillanova" ]
[]
MEMBER
> Feel free to delete the license list in `datasets` [...] > > Also FYI in #4926 I also removed all the validation steps anyway (language, license, types etc.) _Originally posted by @lhoestq in https://github.com/huggingface/datasets/issues/4930#issuecomment-1238401662_ > [...], in my opinion we can just delete...
1,378,120,806
I_kwDODunzps5SJHRm
4,990
"no-token" is passed to `huggingface_hub` when token is `None`
closed
completed
2022-09-19T15:14:40
2022-09-30T09:16:00
2022-09-30T09:16:00Z
https://github.com/huggingface/datasets/issues/4990
Wauplin
[ "bug" ]
[ "lhoestq" ]
[ "Hi @Wauplin, thanks for raising this potential issue.\r\n\r\nThe choice of passing `\"no-token\"` instead of `None` was made in this PR:\r\n- #4536 \r\n\r\nAccording to the PR description, the reason why it is passed is to avoid that `HfApi.dataset_info` uses the local token when no token should be used.", "Hi @...
CONTRIBUTOR
## Describe the bug In the 2 lines listed below, a token is passed to `huggingface_hub` to get information from a dataset. If no token is provided, a "no-token" string is passed. What is the purpose of it ? If no real, I would prefer if the `None` value could be sent directly to be handle by `huggingface_hub`. I fee...
1,376,832,233
I_kwDODunzps5SEMrp
4,989
Running add_column() seems to corrupt existing sequence-type column info
closed
completed
2022-09-17T17:42:05
2022-09-19T12:54:54
2022-09-19T12:54:54Z
https://github.com/huggingface/datasets/issues/4989
derek-rocheleau
[ "bug" ]
[]
[ "Nevermind, I was incorrect." ]
NONE
I have a dataset that contains a column ("foo") that is a sequence type of length 4. So when I run .to_pandas() on it, the resulting dataframe correctly contains 4 columns - foo_0, foo_1, foo_2, foo_3. So the 1st row of the dataframe might look like: ds = load_dataset(...) df = ds.to_pandas() df: foo_0 | foo_1 ...
1,376,096,584
I_kwDODunzps5SBZFI
4,988
Add `IterableDataset.from_generator` to the API
closed
completed
2022-09-16T15:19:41
2022-10-05T12:10:49
2022-10-05T12:10:49Z
https://github.com/huggingface/datasets/issues/4988
mariosasko
[ "enhancement", "good first issue" ]
[ "hamid-vakilzadeh" ]
[ "#take", "Thanks @hamid-vakilzadeh ! Let us know if you have some questions or if we can help", "Thank you! I certainly will reach out if I need any help." ]
COLLABORATOR
We've just added `Dataset.from_generator` to the API. It would also be cool to add `IterableDataset.from_generator` to support creating an iterable dataset from a generator. cc @lhoestq
1,375,667,654
I_kwDODunzps5R_wXG
4,983
How to convert torch.utils.data.Dataset to huggingface dataset?
closed
completed
2022-09-16T09:15:10
2023-12-14T20:54:15
2022-09-20T11:23:43Z
https://github.com/huggingface/datasets/issues/4983
DEROOCE
[ "enhancement" ]
[]
[ "Hi! I think you can use the newly-added `from_generator` method for that:\r\n```python\r\nfrom datasets import Dataset\r\n\r\ndef gen():\r\n for idx in len(torch_dataset):\r\n yield torch_dataset[idx] # this has to be a dictionary\r\n ## or if it's an IterableDataset\r\n # for ex in torch_dataset:...
NONE
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
1,375,604,693
I_kwDODunzps5R_g_V
4,982
Create dataset_infos.json with VALIDATION and TEST splits
closed
completed
2022-09-16T08:21:19
2022-09-28T07:59:39
2022-09-28T07:59:39Z
https://github.com/huggingface/datasets/issues/4982
skalinin
[ "bug" ]
[]
[ "@mariosasko could you help me with this issue? we've started the discussion from [here](https://github.com/huggingface/datasets/issues/4895#issuecomment-1248227130)", "Hi again! Can you please pass the directory name containing the dataset script instead of the script name to `datasets-cli test`?", "Yes, it wo...
NONE
The problem is described in that [issue](https://github.com/huggingface/datasets/issues/4895#issuecomment-1247975569). > When I try to create data_infos.json using datasets-cli test Peter.py --save_infos --all_configs I get an error: > ValueError: Unknown split "test". Should be one of ['train']. > > The data_i...
1,375,086,773
I_kwDODunzps5R9ii1
4,981
Can't create a dataset with `float16` features
open
2022-09-15T21:03:24
2025-06-12T11:47:42
https://github.com/huggingface/datasets/issues/4981
dconathan
[ "bug" ]
[]
[ "Hi @dconathan, thanks for reporting.\r\n\r\nWe rely on Arrow as a backend, and as far as I know currently support for `float16` in Arrow is not fully implemented in Python (C++), hence the `ArrowNotImplementedError` you get.\r\n\r\nSee, e.g.: https://arrow.apache.org/docs/status.html?highlight=float16#data-types",...
CONTRIBUTOR
## Describe the bug I can't create a dataset with `float16` features. I understand from the traceback that this is a `pyarrow` error, but I don't see anywhere in the `datasets` documentation about how to successfully do this. Is it actually supported? I've tried older versions of `pyarrow` as well with the same e...
1,374,868,083
I_kwDODunzps5R8tJz
4,980
Make `pyarrow` optional
closed
completed
2022-09-15T17:38:03
2022-09-16T17:23:47
2022-09-16T17:23:47Z
https://github.com/huggingface/datasets/issues/4980
KOLANICH
[ "enhancement" ]
[]
[ "The whole datasets library is pretty much a wrapper to pyarrow (just take a look at some of the source for a Dataset) https://github.com/huggingface/datasets/blob/51aef08ad7053c0bfe8f9a961207b26df15850d3/src/datasets/arrow_dataset.py#L639 \r\n\r\nI think removing the pyarrow dependency would involve a complete rew...
NONE
**Is your feature request related to a problem? Please describe.** Is `pyarrow` really needed for every dataset? **Describe the solution you'd like** It is made optional. **Describe alternatives you've considered** Likely, no.
1,372,962,157
I_kwDODunzps5R1b1t
4,977
Providing dataset size
open
2022-09-14T13:09:27
2022-09-15T16:03:58
https://github.com/huggingface/datasets/issues/4977
sashavor
[ "enhancement" ]
[]
[ "Hi @sashavor, thanks for your suggestion.\r\n\r\nUntil now we have the CLI command \r\n```\r\ndatasets-cli test datasets/<your-dataset-folder> --save_infos --all_configs\r\n```\r\nthat generates the `dataset_infos.json` with the size of the downloaded dataset, among other information.\r\n\r\nWe are currently in th...
CONTRIBUTOR
**Is your feature request related to a problem? Please describe.** Especially for big datasets like [LAION](https://huggingface.co/datasets/laion/laion2B-en/), it's hard to know exactly the downloaded size (because there are many files and you don't have their exact size when downloaded). **Describe the solution yo...
1,372,322,382
I_kwDODunzps5Ry_pO
4,976
Hope to adapt Python3.9 as soon as possible
open
2022-09-14T04:42:22
2022-09-26T16:32:35
https://github.com/huggingface/datasets/issues/4976
RedHeartSecretMan
[ "enhancement" ]
[]
[ "Hi! `datasets` should work in Python 3.9. What kind of issue have you encountered?", "There is this related issue already: https://github.com/huggingface/datasets/issues/4113\r\nAnd I guess we need a CI job for 3.9 ^^", "Perhaps we should report this issue in the `filelock` repo?" ]
NONE
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. **Describe the solution you'd like** A clear and concise description of what you want to happen. **Describe alternatives you've considered** A clear and concise description of any alternat...
1,368,661,002
I_kwDODunzps5RlBwK
4,965
[Apple M1] MemoryError: Cannot allocate write+execute memory for ffi.callback()
closed
completed
2022-09-10T15:55:49
2024-03-21T17:25:53
2023-07-21T14:45:50Z
https://github.com/huggingface/datasets/issues/4965
hoangtnm
[ "bug" ]
[]
[ "Hi! This seems like a bug in `soundfile`. Could you please open an issue in their repo? `soundfile` works without any issues on my M1, so I'm not sure we can help.", "Hi @mariosasko, can you share how you installed `soundfile` on your mac M1?", "Hi @hoangtnm - I upgraded to python 3.10 and it fixed the proble...
NONE
## Describe the bug I'm trying to run `cast_column("audio", Audio())` on Apple M1 Pro, but it seems that it doesn't work. ## Steps to reproduce the bug ```python import datasets dataset = load_dataset("csv", data_files="./train.csv")["train"] dataset = dataset.map(lambda x: {"audio": str(DATA_DIR / "audio" / ...
1,368,617,322
I_kwDODunzps5Rk3Fq
4,964
Column of arrays (2D+) are using unreasonably high memory
open
2022-09-10T13:07:22
2022-09-22T18:29:22
https://github.com/huggingface/datasets/issues/4964
vigsterkr
[ "bug" ]
[]
[ "note i have tried the same code with `datasets` version 2.4.0, the outcome is the very same as described above.", "Seems related to issues #4623 and #4802 so it would appear this issue has been around for a few months.", "Hi ! `Dataset.from_dict` keeps the data in memory. You can write on disk and reload them ...
CONTRIBUTOR
## Describe the bug When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage. ## Steps to reproduce the bug ```python from datasets import Dataset, Features, Array2D, ...
1,368,201,188
I_kwDODunzps5RjRfk
4,963
Dataset without script does not support regular JSON data file
closed
completed
2022-09-09T18:45:33
2022-09-20T15:40:07
2022-09-20T15:40:07Z
https://github.com/huggingface/datasets/issues/4963
julien-c
[]
[]
[ "Hi @julien-c,\r\n\r\nOut of the box, we only support JSON lines (NDJSON) data files, but your data file is a regular JSON file. The reason is we use `pyarrow.json.read_json` and this only supports line-delimited JSON. " ]
MEMBER
### Link https://huggingface.co/datasets/julien-c/label-studio-my-dogs ### Description <img width="1115" alt="image" src="https://user-images.githubusercontent.com/326577/189422048-7e9c390f-bea7-4521-a232-43f049ccbd1f.png"> ### Owner Yes
1,368,124,033
I_kwDODunzps5Ri-qB
4,961
fsspec 2022.8.2 breaks xopen in streaming mode
closed
completed
2022-09-09T17:26:55
2022-09-12T17:45:50
2022-09-12T14:32:05Z
https://github.com/huggingface/datasets/issues/4961
DCNemesis
[ "bug" ]
[]
[ "loading `fsspec==2022.7.1` fixes this issue, setup.py would need to be changed to prevent users from using the latest version of fsspec.", "Opened [PR](https://github.com/huggingface/datasets/pull/4962) to address this.", "Hi @DCNemesis, thanks for reporting.\r\n\r\nThat was a temporary issue in `fsspec` relea...
NONE
## Describe the bug When fsspec 2022.8.2 is installed in your environment, xopen will prematurely close files, making streaming mode inoperable. ## Steps to reproduce the bug ```python import datasets data = datasets.load_dataset('MLCommons/ml_spoken_words', 'id_wav', split='train', streaming=True) ``` ...
1,368,035,159
I_kwDODunzps5Rio9X
4,960
BioASQ AttributeError: 'BuilderConfig' object has no attribute 'schema'
open
2022-09-09T16:06:43
2022-09-13T08:51:03
https://github.com/huggingface/datasets/issues/4960
DSLituiev
[ "dataset bug" ]
[]
[ "Following worked:\r\n\r\n```\r\ndata_dir = \"/Users/dlituiev/repos/datasets/bioasq/\"\r\nbioasq_task_b = load_dataset(\"aps/bioasq_task_b\", data_dir=data_dir, name=\"bioasq_9b_source\")\r\n```\r\n\r\nWould maintainers be open to one of the following:\r\n- automating this with a latest default config (e.g. `bioas...
NONE
## Describe the bug I am trying to load a dataset from drive and running into an error. ## Steps to reproduce the bug ```python data_dir = "/Users/dlituiev/repos/datasets/bioasq/BioASQ-training9b" bioasq_task_b = load_dataset("aps/bioasq_task_b", data_dir=data_dir) ``` ## Actual results `AttributeError: ...
1,367,695,376
I_kwDODunzps5RhWAQ
4,958
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.4.0/datasets/jsonl/jsonl.py
closed
completed
2022-09-09T11:29:55
2022-09-09T11:38:44
2022-09-09T11:38:44Z
https://github.com/huggingface/datasets/issues/4958
hasakikiki
[ "bug" ]
[]
[ "I have solved this problem... The extension of the file should be `.json` not `.jsonl`" ]
NONE
Hi, When I use load_dataset from local jsonl files, below error happens, and I type the link into the browser prompting me `404: Not Found`. I download the other `.py` files using the same method and it works. It seems that the server is missing the appropriate file, or it is a problem with the code version. ``` C...
1,366,382,314
I_kwDODunzps5RcVbq
4,955
Raise a more precise error when the URL is unreachable in streaming mode
open
2022-09-08T13:52:37
2022-09-08T13:53:36
https://github.com/huggingface/datasets/issues/4955
severo
[ "enhancement" ]
[]
[]
COLLABORATOR
See for example: - https://github.com/huggingface/datasets/issues/3191 - https://github.com/huggingface/datasets/issues/3186 It would help provide clearer information on the Hub and help the dataset maintainer solve the issue by themselves quicker. Currently: - https://huggingface.co/datasets/compguesswhat ...
1,366,356,514
I_kwDODunzps5RcPIi
4,953
CI test of TensorFlow is failing
closed
completed
2022-09-08T13:39:29
2022-09-08T15:14:45
2022-09-08T15:14:45Z
https://github.com/huggingface/datasets/issues/4953
albertvillanova
[ "bug" ]
[]
[]
MEMBER
## Describe the bug The following CI test fails: https://github.com/huggingface/datasets/runs/8246722693?check_suite_focus=true ``` FAILED tests/test_py_utils.py::TempSeedTest::test_tensorflow - AssertionError: ``` Details: ``` _________________________ TempSeedTest.test_tensorflow _________________________ [...
1,364,691,096
I_kwDODunzps5RV4iY
4,945
Push to hub can push splits that do not respect the regex
closed
completed
2022-09-07T13:45:17
2022-09-13T10:16:35
2022-09-13T10:16:35Z
https://github.com/huggingface/datasets/issues/4945
LysandreJik
[ "bug" ]
[]
[]
MEMBER
## Describe the bug The `push_to_hub` method can push splits that do not respect the regex check that is used for downloads. Therefore, splits may be pushed but never re-used, which can be painful if the split was done after runtime preprocessing. ## Steps to reproduce the bug ```python >>> from datasets import...
1,364,313,569
I_kwDODunzps5RUcXh
4,944
larger dataset, larger GPU memory in the training phase? Is that correct?
closed
completed
2022-09-07T08:46:30
2022-09-07T12:34:58
2022-09-07T12:34:58Z
https://github.com/huggingface/datasets/issues/4944
debby1103
[ "bug" ]
[]
[ "does the trainer save it in GPU? sooo curious... how to fix it", "It's my bad. didn't limit the input length" ]
NONE
from datasets import set_caching_enabled set_caching_enabled(False) for ds_name in ["squad","newsqa","nqopen","narrativeqa"]: train_ds = load_from_disk("../../../dall/downstream/processedproqa/{}-train.hf".format(ds_name)) break train_ds = concatenate_datasets([train_ds,train_...
1,363,869,421
I_kwDODunzps5RSv7t
4,942
Trec Dataset has incorrect labels
closed
completed
2022-09-06T22:13:40
2022-09-08T11:12:03
2022-09-08T11:12:03Z
https://github.com/huggingface/datasets/issues/4942
wmpauli
[ "bug" ]
[ "albertvillanova" ]
[ "Thanks for reporting, @wmpauli. \r\n\r\nIndeed we recently fixed this issue:\r\n- #4801 \r\n\r\nThe fix will be accessible after our next library release. In the meantime, you can have it by passing `revision=\"main\"` to `load_dataset`." ]
NONE
## Describe the bug Both coarse and fine labels seem to be out of line. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = "trec" raw_datasets = load_dataset(dataset) df = pd.DataFrame(raw_datasets["test"]) df.head() ``` ## Expected results text (string) | coarse_labe...
1,363,274,907
I_kwDODunzps5RQeyb
4,936
vivos (Vietnamese speech corpus) dataset not accessible
closed
completed
2022-09-06T13:17:55
2022-09-21T06:06:02
2022-09-12T07:14:20Z
https://github.com/huggingface/datasets/issues/4936
polinaeterna
[ "dataset bug" ]
[ "albertvillanova" ]
[ "If you need an example of a small audio datasets, I just created few hours ago a speech dataset with only 300MB of compressed audio files https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia. It works also with streaming (@albertvillanova helped me adding this functionality) :-)", "@cahya-wirawan om...
CONTRIBUTOR
## Describe the bug VIVOS data is not accessible anymore, neither of these links work (at least from France): * https://ailab.hcmus.edu.vn/assets/vivos.tar.gz (data) * https://ailab.hcmus.edu.vn/vivos (dataset page) Therefore `load_dataset` doesn't work. ## Steps to reproduce the bug ```python ds = load_dat...
1,363,226,736
I_kwDODunzps5RQTBw
4,935
Dataset Viewer issue for ubuntu_dialogs_corpus
closed
completed
2022-09-06T12:41:50
2022-09-06T12:51:25
2022-09-06T12:51:25Z
https://github.com/huggingface/datasets/issues/4935
CibinQuadance
[ "dataset-viewer" ]
[ "severo" ]
[ "The dataset maintainers (https://huggingface.co/datasets/ubuntu_dialogs_corpus) decided to forbid the dataset from being downloaded automatically (https://huggingface.co/docs/datasets/v2.4.0/en/loading#manual-download), and the dataset viewer respects this.\r\nWe will try to improve the error display though. Thank...
NONE
### Link _No response_ ### Description _No response_ ### Owner _No response_
1,363,034,253
I_kwDODunzps5RPkCN
4,934
Dataset Viewer issue for indonesian-nlp/librivox-indonesia
closed
completed
2022-09-06T10:03:23
2022-09-06T12:46:40
2022-09-06T12:46:40Z
https://github.com/huggingface/datasets/issues/4934
cahya-wirawan
[]
[ "albertvillanova" ]
[ "The error is not related to the dataset viewer. I'm having a look...", "Thanks @albertvillanova for checking the issue. Actually, I can use the dataset like following:\r\n```\r\n>>> from datasets import load_dataset\r\n>>> ds=load_dataset(\"indonesian-nlp/librivox-indonesia\")\r\nNo config specified, defaulting ...
CONTRIBUTOR
### Link https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia ### Description I created a new speech dataset https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia, but the dataset preview doesn't work with following error message: ``` Server error Status code: 400 Exception: TypeEr...
1,363,013,023
I_kwDODunzps5RPe2f
4,933
Dataset/DatasetDict.filter() cannot have `batched=True` due to `mask` (numpy array?) being non-iterable.
closed
completed
2022-09-06T09:47:48
2022-09-06T11:44:27
2022-09-06T11:44:27Z
https://github.com/huggingface/datasets/issues/4933
tianjianjiang
[ "bug" ]
[]
[ "Hi ! When `batched=True`, you filter function must take a batch as input, and return a list of booleans.\r\n\r\nIn your case, something like\r\n```python\r\nfrom datasets import load_dataset\r\n\r\n\r\nds_mc4_ja = load_dataset(\"mc4\", \"ja\") # This will take 6+ hours... perhaps test it with a toy dataset instea...
CONTRIBUTOR
## Describe the bug `Dataset/DatasetDict.filter()` cannot have `batched=True` due to `mask` (numpy array?) being non-iterable. ## Steps to reproduce the bug (In a python 3.7.12 env, I've tried 2.4.0 and 2.3.2 with both `pyarraw==9.0.0` and `pyarrow==8.0.0`.) ```python from datasets import load_dataset ds_...
1,362,522,423
I_kwDODunzps5RNnE3
4,932
Dataset Viewer issue for bigscience-biomedical/biosses
closed
completed
2022-09-05T22:40:32
2022-09-06T14:24:56
2022-09-06T14:24:56Z
https://github.com/huggingface/datasets/issues/4932
galtay
[]
[]
[ "Possibly not related to the dataset viewer in itself. cc @huggingface/datasets.\r\n\r\nIn particular, I think that the import of bigbiohub is not working here: https://huggingface.co/datasets/bigscience-biomedical/biosses/blob/main/biosses.py#L29 (requires a relative path?)\r\n\r\n```python\r\n>>> from datasets im...
NONE
### Link https://huggingface.co/datasets/bigscience-biomedical/biosses ### Description I've just been working on adding the dataset loader script to this dataset and working with the relative imports. I'm not sure how to interpret the error below (show where the dataset preview used to be) . ``` Status code: 40...
1,358,611,513
I_kwDODunzps5Q-sQ5
4,924
Concatenate_datasets loads everything into RAM
closed
completed
2022-09-01T10:25:17
2022-09-01T11:50:54
2022-09-01T11:50:54Z
https://github.com/huggingface/datasets/issues/4924
louisdeneve
[ "bug" ]
[]
[]
NONE
## Describe the bug When loading the datasets seperately and saving them on disk, I want to concatenate them. But `concatenate_datasets` is filling up my RAM and the process gets killed. Is there a way to prevent this from happening or is this intended behaviour? Thanks in advance ## Steps to reproduce the bug ```...
1,357,684,018
I_kwDODunzps5Q7J0y
4,922
I/O error on Google Colab in streaming mode
closed
not_planned
2022-08-31T18:08:26
2022-08-31T18:15:48
2022-08-31T18:15:48Z
https://github.com/huggingface/datasets/issues/4922
jotterbach
[ "bug" ]
[]
[]
NONE
## Describe the bug When trying to load a streaming dataset in Google Colab the loading fails with an I/O error ## Steps to reproduce the bug ```python import datasets from datasets import load_dataset hf_ds = load_dataset(path='wmt19', name='cs-en', streaming=True, split=datasets.Split.VALIDATION) list(hf_ds....
1,357,564,589
I_kwDODunzps5Q6sqt
4,920
Unable to load local tsv files through load_dataset method
closed
completed
2022-08-31T16:13:39
2022-09-01T05:31:30
2022-09-01T05:31:30Z
https://github.com/huggingface/datasets/issues/4920
DataNoob0723
[ "bug" ]
[ "albertvillanova" ]
[ "Hi @DataNoob0723,\r\n\r\nUnder the hood, we use `pandas` to load CSV/TSV files. Therefore, you should use \"csv\" and pass `sep=\"\\t\"`, as explained in our docs: https://huggingface.co/docs/datasets/v2.4.0/en/package_reference/loading_methods#from-files\r\n```python\r\nds = load_dataset('csv', sep=\"\\t\", data_...
NONE
## Describe the bug Unable to load local tsv files through load_dataset method. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug data_files = { 'train': 'train.tsv', 'test': 'test.tsv' } raw_datasets = load_dataset('tsv', data_files=data_files) ## Expected results I am p...
1,357,242,757
I_kwDODunzps5Q5eGF
4,918
Dataset Viewer issue for pysentimiento/spanish-targeted-sentiment-headlines
closed
completed
2022-08-31T12:09:07
2022-09-05T21:36:34
2022-09-05T16:32:44Z
https://github.com/huggingface/datasets/issues/4918
finiteautomata
[ "dataset-viewer" ]
[ "severo" ]
[ "Thanks for reporting, it's fixed now (I refreshed it manually). It's a known issue; we hope it will be fixed permanently in a few days.\r\n\r\n<img width=\"1508\" alt=\"Capture d’écran 2022-09-05 aΜ€ 18 31 22\" src=\"https://user-images.githubusercontent.com/1676121/188489762-0ed86a7e-dfb3-46e8-a125-43b815a2c6f4.p...
NONE
### Link https://huggingface.co/datasets/pysentimiento/spanish-targeted-sentiment-headlines ### Description After moving the dataset from my user (`finiteautomata`) to the `pysentimiento` organization, the dataset viewer says that it doesn't exist. ### Owner _No response_
1,357,193,841
I_kwDODunzps5Q5SJx
4,917
Keys mismatch: make error message more informative
closed
completed
2022-08-31T11:24:34
2022-09-05T08:43:38
2022-09-05T08:43:38Z
https://github.com/huggingface/datasets/issues/4917
PaulLerner
[ "enhancement", "good first issue" ]
[]
[ "Good idea ! I think this can be improved in `Features.reorder_fields_as()` indeed at\r\n\r\nhttps://github.com/huggingface/datasets/blob/7feeb5648a63b6135a8259dedc3b1e19185ee4c7/src/datasets/features/features.py#L1739-L1740\r\n\r\nIs it something you would be interested in contributing ?", "Is this open to work ...
CONTRIBUTOR
**Is your feature request related to a problem? Please describe.** When loading a dataset from disk with a defect in its `dataset_info.json` describing its features (I don’t know when/why/how this happens but it deserves its own issue), you will get an error message like: `ValueError: Keys mismatch: between {'bar': V...
1,357,076,940
I_kwDODunzps5Q41nM
4,916
Apache Beam unable to write the downloaded wikipedia dataset
closed
completed
2022-08-31T09:39:25
2022-08-31T10:53:19
2022-08-31T10:53:19Z
https://github.com/huggingface/datasets/issues/4916
Shilpac20
[ "bug" ]
[]
[ "See:\r\n- #4915" ]
NONE
## Describe the bug Hi, I am currently trying to download wikipedia dataset using load_dataset("wikipedia", language="aa", date="20220401", split="train",beam_runner='DirectRunner'). However, I end up in getting filenotfound error. I get this error for any language I try to download. It downloads the file but while s...
1,356,009,042
I_kwDODunzps5Q0w5S
4,915
FileNotFoundError while downloading wikipedia dataset for any language
open
reopened
2022-08-30T16:15:46
2022-12-04T22:20:33
https://github.com/huggingface/datasets/issues/4915
Shilpac20
[ "bug" ]
[ "albertvillanova" ]
[ "Hi @Shilpac20,\r\n\r\nAs explained in the Wikipedia dataset card: https://huggingface.co/datasets/wikipedia\r\n> You can find the full list of languages and dates [here](https://dumps.wikimedia.org/backup-index.html).\r\n\r\nThis means that, before passing a specific date, you should first make sure it is availabl...
NONE
## Describe the bug Hi, I am currently trying to download wikipedia dataset using load_dataset("wikipedia", language="aa", date="20220401", split="train",beam_runner='DirectRunner'). However, I end up in getting filenotfound error. I get this error for any language I try to download. Environment: ## Step...
1,355,078,864
I_kwDODunzps5QxNzQ
4,912
datasets map() handles all data at a stroke and takes long time
closed
completed
2022-08-30T02:25:56
2023-04-06T09:43:58
2022-09-06T09:23:35Z
https://github.com/huggingface/datasets/issues/4912
BruceStayHungry
[]
[]
[ "Hi ! Interesting question ;)\r\n\r\n> Which is better? Process in map() or in data-collator\r\n\r\nAs you said, both can be used in practice: map() if you want to preprocess before training, or a data-collator (or the equivalent `dataset.set_transform`) if you want to preprocess on-the-fly during training. Both op...
NONE
**1. Background** Huggingface datasets package advises using `map()` to process data in batches. In the example code on pretraining masked language model, they use `map()` to tokenize all data at a stroke before the train loop. The corresponding code: ``` with accelerator.main_process_first(): tokenized_...
1,354,426,978
I_kwDODunzps5Quupi
4,911
[Tests] Ensure `datasets` supports renamed repositories
open
2022-08-29T14:46:14
2025-06-19T06:10:52
https://github.com/huggingface/datasets/issues/4911
lhoestq
[ "good second issue" ]
[]
[ "You could also switch to using `huggingface_hub` more directly, where such a guarantee is already tested =)\r\n\r\ncc @Wauplin ", "Hi! @lhoestq, I'd love to work on this issue as part of my ongoing contributions to `datasets`.\n\nI'm planning to implement an integration test that ensures `load_dataset()` works e...
MEMBER
On https://hf.co/datasets you can rename a dataset (or sometimes move it to another user/org). The website handles redirections correctly and AFAIK `datasets` does as well. However it would be nice to have an integration test to make sure we don't break support for renamed datasets. To implement this we can use t...
1,354,374,328
I_kwDODunzps5Quhy4
4,910
Identical keywords in build_kwargs and config_kwargs lead to TypeError in load_dataset_builder()
closed
completed
2022-08-29T14:11:48
2026-05-18T10:17:59
2026-05-18T10:17:59Z
https://github.com/huggingface/datasets/issues/4910
bablf
[ "bug", "good first issue" ]
[ "thepurpleowl" ]
[ "I am getting similar error - `TypeError: type object got multiple values for keyword argument 'name'` while following this [tutorial](https://huggingface.co/docs/datasets/dataset_script#create-a-dataset-loading-script). I am getting this error with the `dataset-cli test` command.\r\n\r\n`datasets` version: 2.4.0",...
NONE
## Describe the bug In `load_dataset_builder()`, `build_kwargs` and `config_kwargs` can contain the same keywords leading to a TypeError("type object got multiple values for keyword argument "xyz"). I ran into this problem with the keyword: `base_path`. It might happen with other kwargs as well. I think a quickfix...
1,353,808,348
I_kwDODunzps5QsXnc
4,907
None Type error for swda datasets
closed
completed
2022-08-29T07:05:20
2022-08-30T14:43:41
2022-08-30T14:43:41Z
https://github.com/huggingface/datasets/issues/4907
hannan72
[ "bug" ]
[]
[ "Thanks for reporting @hannan72 ! I couldn't reproduce the error on my side, can you share the full stack trace please ?", "Thanks a lot for your response @lhoestq \r\nThe problem is solved accidentally today and I don't know exactly why it was happened yesterday.\r\nThe issue can be closed.", "Ok, let us know ...
NONE
## Describe the bug I got `'NoneType' object is not callable` error while calling the swda datasets. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("swda") ``` ## Expected results Run without error ## Environment info <!-- You can run the command `datase...
1,353,223,925
I_kwDODunzps5QqI71
4,906
Can't import datasets AttributeError: partially initialized module 'datasets' has no attribute 'utils' (most likely due to a circular import)
closed
completed
2022-08-28T02:23:24
2024-11-16T08:59:17
2022-10-03T12:22:50Z
https://github.com/huggingface/datasets/issues/4906
OPterminator
[ "bug" ]
[]
[ "Thanks for reporting, @OPterminator.\r\n\r\nHowever, we are not able to reproduce this issue.\r\n\r\nThere might be 2 reasons why you get this exception:\r\n- Either the name of your local Python file: if it is called `datasets.py` this could generate a circular import when trying to import the Hugging Face `data...
NONE
## Describe the bug A clear and concise description of what the bug is. Not able to import datasets ## Steps to reproduce the bug ```python # Sample code to reproduce the bug import os os.environ["WANDB_API_KEY"] = "0" ## to silence warning import numpy as np import random import sklearn import matplotlib.p...
1,352,469,196
I_kwDODunzps5QnQrM
4,902
Name the default config `default`
closed
completed
2022-08-26T16:16:22
2023-07-24T21:15:31
2023-07-24T21:15:31Z
https://github.com/huggingface/datasets/issues/4902
severo
[ "enhancement", "question" ]
[]
[ "Addressed in #5331." ]
COLLABORATOR
Currently, if a dataset has no configuration, a default configuration is created from the dataset name. For example, for a dataset loaded from the hub repository, such as https://huggingface.co/datasets/user/dataset (repo id is `user/dataset`), the default configuration will be `user--dataset`. It might be easier...
1,352,405,855
I_kwDODunzps5QnBNf
4,900
Dataset Viewer issue for asaxena1990/Dummy_dataset
closed
completed
2022-08-26T15:15:44
2023-07-24T15:42:09
2023-07-24T15:42:09Z
https://github.com/huggingface/datasets/issues/4900
ankurcl
[]
[]
[ "Seems to be linked to the use of the undocumented `_resolve_features` method in the dataset viewer backend:\r\n\r\n```\r\n>>> from datasets import load_dataset\r\n>>> dataset = load_dataset(\"asaxena1990/Dummy_dataset\", name=\"asaxena1990--Dummy_dataset\", split=\"train\", streaming=True)\r\nUsing custom data con...
NONE
### Link _No response_ ### Description _No response_ ### Owner _No response_
1,351,851,254
I_kwDODunzps5Qk5z2
4,898
Dataset Viewer issue for timit_asr
closed
completed
2022-08-26T07:12:05
2022-10-03T12:40:28
2022-10-03T12:40:27Z
https://github.com/huggingface/datasets/issues/4898
InayatUllah932
[]
[ "albertvillanova" ]
[ "Yes, the dataset viewer is based on `datasets`, and the following does not work:\r\n\r\n```\r\n>>> from datasets import get_dataset_split_names\r\n>>> get_dataset_split_names('timit_asr')\r\nDownloading builder script: 7.48kB [00:00, 6.69MB/s]\r\nTraceback (most recent call last):\r\n File \"/home/slesage/hf/data...
NONE
### Link _No response_ ### Description _No response_ ### Owner _No response_
1,351,784,727
I_kwDODunzps5QkpkX
4,897
datasets generate large arrow file
closed
completed
2022-08-26T05:51:16
2022-09-18T05:07:52
2022-09-18T05:07:52Z
https://github.com/huggingface/datasets/issues/4897
jax11235
[ "bug" ]
[]
[ "Hi ! The cache files are the results of all the transforms you applied to the dataset using `map` for example.\r\nDid you run a transform that could potentially blow up the size of the dataset ?", "@lhoestq,\r\nI don't remember, but I can't imagine what kind of transform may generate data that grow over 200 time...
NONE
Checking the large file in disk, and found the large cache file in the cifar10 data directory: ![image](https://user-images.githubusercontent.com/18533904/186830449-ba96cdeb-0fe8-4543-994d-2abe7145933f.png) As we know, the size of cifar10 dataset is ~130MB, but the cache file has almost 30GB size, there may be so...
1,350,798,527
I_kwDODunzps5Qg4y_
4,895
load_dataset method returns Unknown split "validation" even if this dir exists
closed
completed
2022-08-25T12:11:00
2024-03-26T16:47:48
2022-09-29T08:07:50Z
https://github.com/huggingface/datasets/issues/4895
SamSamhuns
[ "bug" ]
[]
[ "I don't know the main problem but it looks like, it is ignoring the last directory in your case. So, create a directory called 'zzz' in the same folder as train, validation and test. if it doesn't work, create a directory called \"aaa\". It worked for me.\r\n", "@SamSamhuns could you please try to load it with t...
NONE
## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-directory exists in the local data path. The data directories are as follows and a...
1,350,655,674
I_kwDODunzps5QgV66
4,893
Oversampling strategy for iterable datasets in `interleave_datasets`
closed
completed
2022-08-25T10:06:55
2022-10-03T12:37:46
2022-10-03T12:37:46Z
https://github.com/huggingface/datasets/issues/4893
lhoestq
[ "good second issue" ]
[ "ylacombe" ]
[ "Hi @lhoestq,\r\nI plunged into the code and it should be manageable for me to work on it!\r\n#take\r\n\r\nAlso, setting `d1`, `d2` and `d3` as you did raised a `SyntaxError: 'yield' inside list comprehension` for me, on Python 3.8.10.\r\nThe following snippet works for me though:\r\n```\r\nd1 = IterableDataset(Exa...
MEMBER
In https://github.com/huggingface/datasets/pull/4831 @ylacombe added an oversampling strategy for `interleave_datasets`. However right now it doesn't work for datasets loaded using `load_dataset(..., streaming=True)`, which are `IterableDataset` objects. It would be nice to expand `interleave_datasets` for iterable ...
1,349,758,525
I_kwDODunzps5Qc649
4,889
torchaudio 11.0 yields different results than torchaudio 12.1 when loading MP3
closed
completed
2022-08-24T16:54:43
2023-03-02T15:33:05
2023-03-02T15:33:04Z
https://github.com/huggingface/datasets/issues/4889
patrickvonplaten
[ "bug" ]
[]
[ "Maybe we can just pass this along to torchaudio @lhoestq @albertvillanova ? It be great if you could investigate if the errors lies in datasets or in torchaudio.", "torchaudio did a change in [0.12](https://github.com/pytorch/audio/releases/tag/v0.12.0) on MP3 decoding (which affects common voice):\r\n> MP3 deco...
CONTRIBUTOR
## Describe the bug When loading Common Voice with torchaudio 0.11.0 the results are different to 0.12.1 which leads to problems in transformers see: https://github.com/huggingface/transformers/pull/18749 ## Steps to reproduce the bug If you run the following code once with `torchaudio==0.11.0+cu102` and `torc...
1,349,447,521
I_kwDODunzps5Qbu9h
4,888
Dataset Viewer issue for subjqa
closed
completed
2022-08-24T13:26:20
2022-09-08T08:23:42
2022-09-08T08:23:42Z
https://github.com/huggingface/datasets/issues/4888
lewtun
[ "dataset-viewer" ]
[ "severo" ]
[ "It's a bug in the viewer, thanks for reporting it. We're hoping to update to a new version in the next few days which should fix it.", "Fixed \r\n\r\nhttps://huggingface.co/datasets/subjqa\r\n\r\n<img width=\"1040\" alt=\"Capture d’écran 2022-09-08 aΜ€ 10 23 26\" src=\"https://user-images.githubusercontent.com/1...
MEMBER
### Link https://huggingface.co/datasets/subjqa ### Description Getting the following error for this dataset: ``` Status code: 500 Exception: Status500Error Message: 2 or more items returned, instead of 1 ``` Not sure what's causing it though πŸ€” ### Owner Yes
1,349,285,569
I_kwDODunzps5QbHbB
4,886
Loading huggan/CelebA-HQ throws pyarrow.lib.ArrowInvalid
open
2022-08-24T11:24:21
2023-02-02T02:40:53
https://github.com/huggingface/datasets/issues/4886
JeanKaddour
[ "bug" ]
[]
[ "Hi! IIRC one of the files in this dataset is corrupted due to https://github.com/huggingface/datasets/pull/4081 (fixed now).\r\n\r\n@NielsRogge Could you please re-generate and re-push this dataset (or I can do it if you share the generation script)?", "Could you put something in place to catch these problems? ...
NONE
## Describe the bug Loading huggan/CelebA-HQ throws pyarrow.lib.ArrowInvalid ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('huggan/CelebA-HQ') ``` ## Expected results See https://colab.research.google.com/drive/141LJCcM2XyqprPY83nIQ-Zk3BbxWeahq?usp=sharing#...
1,349,181,448
I_kwDODunzps5QauAI
4,885
Create dataset from list of dicts
closed
completed
2022-08-24T10:01:24
2022-09-08T16:02:52
2022-09-08T16:02:52Z
https://github.com/huggingface/datasets/issues/4885
sanderland
[ "enhancement" ]
[]
[ "Hi @sanderland, thanks for your enhancement proposal.\r\n\r\nI agree with you that this would be useful.\r\n\r\nPlease note that under the hood, we use PyArrow tables as backend:\r\n- The implementation of `Dataset.from_dict` uses the PyArrow `Table.from_pydict`\r\n\r\nTherefore, I would suggest:\r\n- Implementin...
CONTRIBUTOR
I often find myself with data from a variety of sources, and a list of dicts is very common among these. However, converting this to a Dataset is a little awkward, requiring either ```Dataset.from_pandas(pd.DataFrame(formatted_training_data))``` Which can error out on some more exotic values as 2-d arrays for reas...
1,349,083,235
I_kwDODunzps5QaWBj
4,883
With dataloader RSS memory consumed by HF datasets monotonically increases
open
2022-08-24T08:42:54
2024-01-23T12:42:40
https://github.com/huggingface/datasets/issues/4883
apsdehal
[ "bug" ]
[]
[ "Are you sure there is a leak? How can I see it? You shared the script but not the output which you believe should indicate a leak.\r\n\r\nI modified your reproduction script to print only once per try as your original was printing too much info and you absolutely must add `gc.collect()` when doing any memory measu...
CONTRIBUTOR
## Describe the bug When the HF datasets is used in conjunction with PyTorch Dataloader, the RSS memory of the process keeps on increasing when it should stay constant. ## Steps to reproduce the bug Run and observe the output of this snippet which logs RSS memory. ```python import psutil import os from transf...
1,348,495,777
I_kwDODunzps5QYGmh
4,881
Language names and language codes: connecting to a big database (rather than slow enrichment of custom list)
open
2022-08-23T20:14:24
2024-04-22T15:57:28
https://github.com/huggingface/datasets/issues/4881
alexis-michaud
[ "enhancement" ]
[]
[ "Thanks for opening this discussion, @alexis-michaud.\r\n\r\nAs the language validation procedure is shared with other Hugging Face projects, I'm tagging them as well.\r\n\r\nCC: @huggingface/moon-landing ", "on the Hub side, there is not fine grained validation we just check that `language:` contains an array of...
NONE
**The problem:** Language diversity is an important dimension of the diversity of datasets. To find one's way around datasets, being able to search by language name and by standardized codes appears crucial. Currently the list of language codes is [here](https://github.com/huggingface/datasets/blob/main/src/datase...
1,348,270,141
I_kwDODunzps5QXPg9
4,878
[not really a bug] `identical_ok` is deprecated in huggingface-hub's `upload_file`
closed
completed
2022-08-23T17:09:55
2022-09-13T14:00:06
2022-09-13T14:00:05Z
https://github.com/huggingface/datasets/issues/4878
severo
[ "help wanted", "question" ]
[]
[ "Resolved via https://github.com/huggingface/datasets/pull/4937." ]
COLLABORATOR
In the huggingface-hub dependency, the `identical_ok` argument has no effect in `upload_file` (and it will be removed soon) See https://github.com/huggingface/huggingface_hub/blob/43499582b19df1ed081a5b2bd7a364e9cacdc91d/src/huggingface_hub/hf_api.py#L2164-L2169 It's used here: https://github.com/huggingfac...
1,348,202,678
I_kwDODunzps5QW_C2
4,876
Move DatasetInfo from `datasets_infos.json` to the YAML tags in `README.md`
closed
completed
2022-08-23T16:16:41
2022-10-03T09:11:13
2022-10-03T09:11:13Z
https://github.com/huggingface/datasets/issues/4876
lhoestq
[]
[ "lhoestq" ]
[ "also @osanseviero @Pierrci @SBrandeis potentially", "Love this in principle πŸš€ \r\n\r\nLet's keep in mind users might rely on `dataset_infos.json` already.\r\n\r\nI'm not convinced by the two-syntax solution, wouldn't it be simpler to have only one syntax with a `default` config for datasets with only one config...
MEMBER
Currently there are two places to find metadata for datasets: - datasets_infos.json, which contains **per dataset config** - description - citation - license - splits and sizes - checksums of the data files - feature types - and more - YAML tags, which contain - license - language - trai...
1,348,095,686
I_kwDODunzps5QWk7G
4,875
`_resolve_features` ignores the token
open
reopened
2022-08-23T14:57:36
2022-10-17T13:45:47
https://github.com/huggingface/datasets/issues/4875
severo
[]
[ "lhoestq" ]
[ "Hi ! Your HF_ENDPOINT seems wrong because of the extra \"/\"\r\n```diff\r\n- os.environ[\"HF_ENDPOINT\"] = \"https://hub-ci.huggingface.co/\"\r\n+ os.environ[\"HF_ENDPOINT\"] = \"https://hub-ci.huggingface.co\"\r\n```\r\n\r\ncan you try again without the extra \"/\" ?", "Oh, yes, sorry, but it's not the issue.\r...
COLLABORATOR
## Describe the bug When calling [`_resolve_features()`](https://github.com/huggingface/datasets/blob/54b532a8a2f5353fdb0207578162153f7b2da2ec/src/datasets/iterable_dataset.py#L1255) on a gated dataset, ie. a dataset which requires a token to be loaded, the token seems to be ignored even if it has been provided to `...
1,347,592,022
I_kwDODunzps5QUp9W
4,873
Multiple dataloader memory error
open
2022-08-23T08:59:50
2023-01-26T02:01:11
https://github.com/huggingface/datasets/issues/4873
cyk1337
[ "bug" ]
[]
[ "Hi!\r\n\r\n200+ data loaders is a lot. Have you tried to reduce the number of datasets by concatenating/interleaving the ones with the same structure/task (the API is `{concatenate_datasets/interleave_datasets}([dset1, ..., dset_N])`)?", "Hi @mariosasko, thank you for your reply. I tried pre-concatenating differ...
NONE
For the use of multiple datasets and tasks, we use around more than 200+ dataloaders, then pass it into `dataloader1, dataloader2, ..., dataloader200=accelerate.prepare(dataloader1, dataloader2, ..., dataloader200)` It causes the memory error when generating batches. Any solutions to it? ```bash File "/home/xxx/...
1,344,552,626
I_kwDODunzps5QJD6y
4,865
Dataset Viewer issue for MoritzLaurer/multilingual_nli
closed
completed
2022-08-19T14:55:20
2022-08-22T14:47:14
2022-08-22T06:13:20Z
https://github.com/huggingface/datasets/issues/4865
MoritzLaurer
[ "dataset-viewer" ]
[ "albertvillanova" ]
[ "Thanks for reporting @MoritzLaurer.\r\n\r\nCurrently, the dataset preview is working properly: https://huggingface.co/datasets/MoritzLaurer/multilingual_nli\r\n\r\nPlease note that when a dataset is modified, it might take some time until the preview is completely updated.\r\n\r\n@severo might it be worth adding ...
NONE
### Link _No response_ ### Description I've just uploaded a new dataset to the hub and the viewer does not work for some reason, see here: https://huggingface.co/datasets/MoritzLaurer/multilingual_nli It displays the error: ``` Status code: 400 Exception: Status400Error Message: The dataset...
1,344,410,043
I_kwDODunzps5QIhG7
4,864
Allow pathlib PoxisPath in Dataset.read_json
open
2022-08-19T12:59:17
2025-04-11T17:22:48
https://github.com/huggingface/datasets/issues/4864
changjonathanc
[ "enhancement" ]
[]
[ "This same error will occur using `ds = datasets.load_dataset('json', data_files=['test.jsonl'])`", "@cccntu I want to make a quick fix for this, but I am struggling to find where the json dataset builder is. Do you know?", "@vvvm23 I think you mean think:\r\n```python\r\nds = datasets.load_dataset('json', data...
CONTRIBUTOR
**Is your feature request related to a problem? Please describe.** ``` from pathlib import Path from datasets import Dataset ds = Dataset.read_json(Path('data.json')) ``` causes an error ``` AttributeError: 'PosixPath' object has no attribute 'decode' ``` **Describe the solution you'd like** It should be...
1,343,737,668
I_kwDODunzps5QF89E
4,863
TFDS wiki_dialog dataset to Huggingface dataset
closed
completed
2022-08-18T23:06:30
2022-08-22T09:41:45
2022-08-22T05:18:53Z
https://github.com/huggingface/datasets/issues/4863
djaym7
[ "dataset request" ]
[]
[ "@albertvillanova any help ? The linked dataset is in beam format which is similar to wikipedia dataset in huggingface that you scripted..", "Nvm, I was able to port it to huggingface datasets, will upload to the hub soon", "https://huggingface.co/datasets/djaym7/wiki_dialog", "Thanks for the addition, @djay...
NONE
## Adding a Dataset - **Name:** *Wiki_dialog* - **Description: https://github.com/google-research/dialog-inpainting#:~:text=JSON%20object%2C%20for-,example,-%3A - **Paper: https://arxiv.org/abs/2205.09073 - **Data: https://github.com/google-research/dialog-inpainting - **Motivation:** *Research and Development on ...
1,343,464,699
I_kwDODunzps5QE6T7
4,862
Got "AttributeError: 'xPath' object has no attribute 'read'" when loading an excel dataset with my own code
closed
completed
2022-08-18T18:36:14
2022-08-31T09:25:08
2022-08-31T09:25:08Z
https://github.com/huggingface/datasets/issues/4862
yana-xuyan
[ "bug" ]
[ "albertvillanova" ]
[ "What's more, the downloaded data is actually a folder instead of an excel file.", "Hi hi, instead of using `download_and_extract` function, I only use `download` function: `base_dir = Path(dl_manager.download(urls))`. It turns out that the code works for `datasets==2.2.2`, however, it doesn't work with `datasets...
NONE
## Describe the bug A clear and concise description of what the bug is. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug # The dataset function is as follows: from pathlib import Path from typing import Dict, List, Tuple import datasets import pandas as pd _CITATION = """\ """...
1,343,260,220
I_kwDODunzps5QEIY8
4,861
Using disk for memory with the method `from_dict`
open
2022-08-18T15:18:18
2023-01-26T18:36:28
https://github.com/huggingface/datasets/issues/4861
HugoLaurencon
[ "enhancement" ]
[]
[ "This issue was also causing an OOM in @nateraw 's workflow and shows again that behavior is confusing - we should definitely switch to using the disk IMO" ]
NONE
**Is your feature request related to a problem? Please describe.** I start with an empty dataset. In a loop, at each iteration, I create a new dataset with the method `from_dict` (based on some data I load) and I concatenate this new dataset with the one at the previous iteration. After some iterations, I have an OOM ...
1,342,231,016
I_kwDODunzps5QANHo
4,859
can't install using conda on Windows 10
open
2022-08-17T19:57:37
2022-08-17T19:57:37
https://github.com/huggingface/datasets/issues/4859
xoffey
[ "bug" ]
[]
[]
NONE
## Describe the bug I wanted to install using conda or Anaconda navigator. That didn't work, so I had to install using pip. ## Steps to reproduce the bug conda install -c huggingface -c conda-forge datasets ## Expected results Should have indicated successful installation. ## Actual results Solving environ...
1,340,859,853
I_kwDODunzps5P6-XN
4,858
map() function removes columns when input_columns is not None
closed
completed
2022-08-16T20:42:30
2022-09-22T13:55:24
2022-09-22T13:55:24Z
https://github.com/huggingface/datasets/issues/4858
pramodith
[ "bug" ]
[]
[ "Hi! Thanks for reporting! This looks like a bug. I've just opened a PR with the fix.", "Awesome! Thank you. I'll close the issue once the PR gets merged. :-)", "I guess we should reopen after the revert by:\r\n- #5006" ]
NONE
## Describe the bug The map function, removes features from the dataset that are not present in the _input_columns_ list of columns, despite the columns being removed not mentioned in the _remove_columns_ argument. ## Steps to reproduce the bug ```python from datasets import Dataset ds = Dataset.from_dict({"a" : [...