id
stringlengths
18
24
number
int64
2
8.48k
title
stringlengths
1
290
body
stringlengths
0
228k
state
stringclasses
2 values
createdAt
timestamp[s]date
2020-04-14 18:18:51
2026-08-13 03:02:44
updatedAt
timestamp[s]date
2020-04-29 09:23:05
2026-08-15 04:47:12
closedAt
timestamp[s]date
2020-04-29 09:23:05
2026-07-28 10:29:56
url
stringlengths
48
51
author
dict
labels
dict
comments
listlengths
0
30
I_kwDODunzps6H17FL
6,867
Improve performance of JSON loader
As reported by @natolambert, loading regular JSON files with `datasets` shows poor performance. The cause is that we use the `json` Python standard library instead of other faster libraries. See my old comment: https://github.com/huggingface/datasets/pull/2638#pullrequestreview-706983714 > There are benchmarks that...
CLOSED
2024-05-04T15:04:16
2024-05-17T16:22:28
2024-05-17T16:22:28
https://github.com/huggingface/datasets/issues/6867
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Thanks! Feel free to ping me for examples. May not respond immediately because we're all busy but would like to help.", "Hi @natolambert, could you please give some examples of JSON files to benchmark?\r\n\r\nPlease note that this JSON file (https://huggingface.co/datasets/allenai/reward-bench-results/blob/main/...
I_kwDODunzps6H0sFd
6,866
DataFilesNotFoundError for datasets in the open-llm-leaderboard
### Describe the bug When trying to get config names or load any dataset within the open-llm-leaderboard ecosystem (`open-llm-leaderboard/details_`) I receive the DataFilesNotFoundError. For the last month or so I've been loading datasets from the leaderboard almost everyday; yesterday was the first time I started see...
CLOSED
2024-05-04T04:59:00
2024-05-14T08:09:56
2024-05-14T08:09:56
https://github.com/huggingface/datasets/issues/6866
{ "login": "jerome-white" }
{ "nodes": [] }
[ "Potentially related:\r\n* #6864\r\n* #6850\r\n* #6848\r\n* #6819", "Hi @jerome-white, thnaks for reporting.\r\n\r\nHowever, I cannot reproduce your issue:\r\n```python\r\n>>> from datasets import get_dataset_config_names\r\n\r\n>>> get_dataset_config_names(\"open-llm-leaderboard/details_davidkim205__Rhea-72b-v0....
I_kwDODunzps6HvOoA
6,865
Example on Semantic segmentation contains bug
### Describe the bug https://huggingface.co/docs/datasets/en/semantic_segmentation shows wrong example with torchvision transforms. Specifically, as one can see in screenshot below, the object boundaries have weird colors. <img width="689" alt="image" src="https://github.com/huggingface/datasets/assets/4803565/59...
OPEN
2024-05-03T09:40:12
2024-05-03T09:40:12
null
https://github.com/huggingface/datasets/issues/6865
{ "login": "ducha-aiki" }
{ "nodes": [] }
[]
I_kwDODunzps6HuBBl
6,864
Dataset 'rewardsignal/reddit_writing_prompts' doesn't exist on the Hub
### Describe the bug The dataset `rewardsignal/reddit_writing_prompts` is missing in Huggingface Hub. ### Steps to reproduce the bug ``` from datasets import load_dataset prompt_response_dataset = load_dataset("rewardsignal/reddit_writing_prompts", data_files="prompt_responses_full.csv", split='train[:80%]...
CLOSED
2024-05-03T06:03:30
2024-05-06T06:36:42
2024-05-06T06:36:41
https://github.com/huggingface/datasets/issues/6864
{ "login": "vinodrajendran001" }
{ "nodes": [] }
[ "Hi @vinodrajendran001, thanks for reporting.\r\n\r\nIndeed the dataset no longer exists on the Hub. The URL https://huggingface.co/datasets/rewardsignal/reddit_writing_prompts gives 404 Not Found error." ]
I_kwDODunzps6Ht-t-
6,863
Revert temporary pin huggingface-hub < 0.23.0
Revert temporary pin huggingface-hub < 0.23.0 introduced by - #6861 once the following issue is fixed and released: - huggingface/transformers#30618
CLOSED
2024-05-03T05:53:55
2024-05-27T10:14:41
2024-05-27T10:14:41
https://github.com/huggingface/datasets/issues/6863
{ "login": "albertvillanova" }
{ "nodes": [] }
[]
I_kwDODunzps6HofDx
6,860
CI fails after huggingface_hub-0.23.0 release: FutureWarning: "resume_download"
CI fails after latest huggingface_hub-0.23.0 release: https://github.com/huggingface/huggingface_hub/releases/tag/v0.23.0 ``` FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_bertscore - FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume...
CLOSED
2024-05-02T13:24:17
2024-05-02T16:53:45
2024-05-02T16:53:45
https://github.com/huggingface/datasets/issues/6860
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "bug" } ] }
[ "I think this needs to be fixed on transformers.\r\n\r\nCC: @Wauplin ", "See:\r\n- https://github.com/huggingface/transformers/issues/30618", "Opened https://github.com/huggingface/transformers/pull/30620" ]
I_kwDODunzps6HmHtB
6,858
Segmentation fault
### Describe the bug Using various version for datasets, I'm no more longer able to load that dataset without a segmentation fault. Several others files are also concerned. ### Steps to reproduce the bug # Create a new venv python3 -m venv venv_test source venv_test/bin/activate # Install the latest versio...
CLOSED
2024-05-02T08:28:49
2024-05-03T08:43:21
2024-05-03T08:42:36
https://github.com/huggingface/datasets/issues/6858
{ "login": "scampion" }
{ "nodes": [] }
[ "I downloaded the jsonl file and extract it manually. \r\nThe issue seems to be related to pyarrow.json \r\n\r\n\r\n\r\npython3 -q -X faulthandler -c \"from datasets import load_dataset; load_dataset('json', data_files='/Users/scampion/Downloads/1998-09.jsonl')\"\r\nGenerating train split: 0 examples [00:00, ? exa...
I_kwDODunzps6HlyKF
6,856
CI fails on Windows for test_delete_from_hub and test_xgetsize_private due to new-line character
CI fails on Windows for test_delete_from_hub after the merge of: - #6820 This is weird because the CI was green in the PR branch before merging to main. ``` FAILED tests/test_hub.py::test_delete_from_hub - AssertionError: assert [CommitOperat...\r\n---\r\n')] == [CommitOperat...in/*\n---\n')] At index 1 ...
CLOSED
2024-05-02T07:37:03
2024-05-02T11:43:01
2024-05-02T11:43:01
https://github.com/huggingface/datasets/issues/6856
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "bug" } ] }
[ "After investigation, I have found that when a local file is uploaded to the Hub, the new line character is no longer transformed to \"\\n\": on Windows machine now it is kept as \"\\r\\n\".\r\n\r\nAny idea why this changed?\r\nCC: @lhoestq " ]
I_kwDODunzps6HljNG
6,854
Wrong example of usage when config name is missing for community script-datasets
As reported by @Wauplin, when loading a community dataset with script, there is a bug in the example of usage of the error message if the dataset has multiple configs (and no default config) and the user does not pass any config. For example: ```python >>> ds = load_dataset("google/fleurs") ValueError: Config name i...
CLOSED
2024-05-02T06:59:39
2024-05-03T15:51:59
2024-05-03T15:51:58
https://github.com/huggingface/datasets/issues/6854
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "bug" } ] }
[]
I_kwDODunzps6HdKqQ
6,853
Support soft links for load_datasets imagefolder
### Feature request Load_dataset from a folder of images doesn't seem to support soft links. It would be nice if it did, especially during methods development where image folders are being curated. ### Motivation Images are coming from a complex variety of sources and we'd like to be able to soft link directly from ...
OPEN
2024-04-30T22:14:29
2024-04-30T22:14:29
null
https://github.com/huggingface/datasets/issues/6853
{ "login": "billytcl" }
{ "nodes": [ { "name": "enhancement" } ] }
[]
I_kwDODunzps6HcxBz
6,852
Write token isn't working while pushing to datasets
### Describe the bug <img width="1001" alt="Screenshot 2024-05-01 at 3 37 06 AM" src="https://github.com/huggingface/datasets/assets/130903099/00fcf12c-fcc1-4749-8592-d263d4efcbcc"> As you can see I logged in to my account and the write token is valid. But I can't upload on my main account and I am getting that ...
CLOSED
2024-04-30T21:18:20
2024-05-02T00:55:46
2024-05-02T00:55:46
https://github.com/huggingface/datasets/issues/6852
{ "login": "realzai" }
{ "nodes": [] }
[]
I_kwDODunzps6HXC7_
6,851
load_dataset('emotion') UnicodeDecodeError
### Describe the bug **emotions = load_dataset('emotion')** _UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte_ ### Steps to reproduce the bug load_dataset('emotion') ### Expected behavior succese ### Environment info py3.10 transformers 4.41.0.dev0 datasets 2....
OPEN
2024-04-30T09:25:01
2024-09-05T03:11:04
null
https://github.com/huggingface/datasets/issues/6851
{ "login": "Lue0353" }
{ "nodes": [] }
[ "I met the same problem, here is my code:\r\n```\r\nfrom datasets import load_dataset\r\n\r\nds_name = \"togethercomputer/RedPajama-Data-1T\"\r\nds = load_dataset(ds_name, download_mode=DownloadMode.FORCE_REDOWNLOAD)\r\n```\r\nAnd output error is:\r\n```\r\nTraceback (most recent call last):\r\n File \"/home/yator...
I_kwDODunzps6HRdTQ
6,850
Problem loading voxpopuli dataset
### Describe the bug ``` Exception has occurred: FileNotFoundError Couldn't find file at https://huggingface.co/datasets/facebook/voxpopuli/resolve/main/{'en': 'data/en/asr_train.tsv'} ``` Error in logic for link url creation. The link should be https://huggingface.co/datasets/facebook/voxpopuli/resolve/main/da...
CLOSED
2024-04-29T16:46:51
2024-05-06T09:25:54
2024-05-06T09:25:54
https://github.com/huggingface/datasets/issues/6850
{ "login": "Namangarg110" }
{ "nodes": [] }
[ "Version 2.18 works without problem.", "@Namangarg110 @mohsen-goodarzi The bug appears because the number of urls is less than 16 and the algorithm is meant to work on the previously created mode for a single url as stated on line 314: https://github.com/huggingface/datasets/blob/1bf8a46cc7b096d5c547ea3794f6a4b6...
I_kwDODunzps6HOG8R
6,848
Cant Downlaod Common Voice 17.0 hy-AM
### Describe the bug I want to download Common Voice 17.0 hy-AM but it returns an error. ``` The version_base parameter is not specified. Please specify a compatability version level, or None. Will assume defaults for version 1.1 @hydra.main(config_name='hfds_config', config_path=None) /usr/local/lib/pyth...
OPEN
2024-04-29T10:06:02
2025-04-01T20:48:09
null
https://github.com/huggingface/datasets/issues/6848
{ "login": "mheryerznkanyan" }
{ "nodes": [] }
[ "Same issue here.", "#self-assign", "Hi @mheryerznkanyan ,\nI tested it on a Linux-5.14.0-284.86.1.el9_2.x86_64-x86_64-with-glibc2.34 machine using the same package versions you mentioned, and it works fine now.\nDoes it work on your machine as well?" ]
I_kwDODunzps6HN-x5
6,847
[Streaming] Only load requested splits without resolving files for the other splits
e.g. [thangvip](https://huggingface.co/thangvip)/[cosmopedia_vi_math](https://huggingface.co/datasets/thangvip/cosmopedia_vi_math) has 300 splits and it takes a very long time to load only one split. This is due to `load_dataset()` resolving the files of all the splits even if only one is needed. In `dataset-view...
OPEN
2024-04-29T09:49:32
2024-05-07T04:43:59
null
https://github.com/huggingface/datasets/issues/6847
{ "login": "lhoestq" }
{ "nodes": [] }
[ "This should help fixing this issue: https://github.com/huggingface/datasets/pull/6832", "I'm having a similar issue when using splices:\r\n<img width=\"947\" alt=\"image\" src=\"https://github.com/huggingface/datasets/assets/28941213/2153faac-e1fe-4b6d-a79b-30b2699407e8\">\r\n<img width=\"823\" alt=\"image\" src...
I_kwDODunzps6HJQw4
6,846
Unimaginable super slow iteration
### Describe the bug Assuming there is a dataset with 52000 sentences, each with a length of 500, it takes 20 seconds to extract a sentence from the dataset……?Is there something wrong with my iteration? ### Steps to reproduce the bug ```python import datasets import time import random num_rows = 52000 n...
CLOSED
2024-04-28T05:24:14
2024-05-06T08:30:03
2024-05-06T08:30:03
https://github.com/huggingface/datasets/issues/6846
{ "login": "rangehow" }
{ "nodes": [] }
[ "In every iteration you load the full \"random_input\" column in memory, only then to access it's i-th element.\r\n\r\nYou can try using this instead\r\n\r\na,b=dataset[i]['random_input'],dataset[i]['random_output']" ]
I_kwDODunzps6HDohH
6,845
load_dataset doesn't support list column
### Describe the bug dataset = load_dataset("Doraemon-AI/text-to-neo4j-cypher-chinese") got exception: Generating train split: 1834 examples [00:00, 5227.98 examples/s] Traceback (most recent call last): File "/usr/local/lib/python3.11/dist-packages/datasets/builder.py", line 2011, in _prepare_split_single ...
OPEN
2024-04-26T14:11:44
2025-10-27T16:31:08
null
https://github.com/huggingface/datasets/issues/6845
{ "login": "arthasking123" }
{ "nodes": [] }
[ "I encountered this same issue when loading a customized dataset for ORPO training, in which there were three columns and two of them were lists. \r\nI debugged and found that it might be caused by the type-infer mechanism and because in some chunks one of the columns is always an empty list ([]), it was regarded a...
I_kwDODunzps6HB8NB
6,843
IterableDataset raises exception instead of retrying
### Describe the bug In light of the recent server outages, I decided to look into whether I could somehow wrap my IterableDataset streams to retry rather than error out immediately. To my surprise, `datasets` [already supports retries](https://github.com/huggingface/datasets/issues/6172#issuecomment-1794876229). Si...
OPEN
2024-04-26T10:00:43
2024-10-28T14:57:07
null
https://github.com/huggingface/datasets/issues/6843
{ "login": "bauwenst" }
{ "nodes": [] }
[ "Thanks for reporting! I've opened a PR with a fix.", "Thanks, @mariosasko! Related question (although I guess this is a feature request): could we have some kind of exponential back-off for these retries? Here's my reasoning:\r\n- If a one-time accidental error happens, you should retry immediately and will succ...
I_kwDODunzps6G_HW_
6,842
Datasets with files with colon : in filenames cannot be used on Windows
### Describe the bug Datasets (such as https://huggingface.co/datasets/MLCommons/peoples_speech) cannot be used on Windows due to the fact that windows does not allow colons ":" in filenames. These should be converted into alternative strings. ### Steps to reproduce the bug 1. Attempt to run load_dataset on MLCo...
OPEN
2024-04-26T00:14:16
2024-04-26T00:14:16
null
https://github.com/huggingface/datasets/issues/6842
{ "login": "jacobjennings" }
{ "nodes": [] }
[]
I_kwDODunzps6G_GRD
6,841
Unable to load wiki_auto_asset_turk from GEM
### Describe the bug I am unable to load the wiki_auto_asset_turk dataset. I get a fatal error while trying to access wiki_auto_asset_turk and load it with datasets.load_dataset. The error (TypeError: expected str, bytes or os.PathLike object, not NoneType) is from filenames_for_dataset_split in a os.path.join call ...
CLOSED
2024-04-26T00:08:47
2024-05-29T13:54:03
2024-04-26T16:12:29
https://github.com/huggingface/datasets/issues/6841
{ "login": "abhinavsethy" }
{ "nodes": [] }
[ "Hi! I've opened a [PR](https://huggingface.co/datasets/GEM/wiki_auto_asset_turk/discussions/5) with a fix. While waiting for it to be merged, you can load the dataset from the PR branch with `datasets.load_dataset(\"GEM/wiki_auto_asset_turk\", revision=\"refs/pr/5\")`", "Thanks Mario. Still getting the same issu...
I_kwDODunzps6G-yBe
6,840
Delete uploaded files from the UI
### Feature request Once a file is uploaded and the commit is made, I am unable to delete individual files without completely deleting the whole dataset via the website UI. ### Motivation Would be a useful addition ### Your contribution Would love to help out with some guidance
OPEN
2024-04-25T22:33:57
2025-01-21T09:44:22
null
https://github.com/huggingface/datasets/issues/6840
{ "login": "saicharan2804" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "This is super late, but if you click on any directory, you can delete the directory using a \"Delete Directory\" button in the top right of the interface, and similarly, if you click on any file, you can delete the file using a \"Delete File\" button in the top right." ]
I_kwDODunzps6G7O_b
6,838
Remove token arg from CLI examples
As suggested by @Wauplin, see: https://github.com/huggingface/datasets/pull/6831#discussion_r1579492603 > I would not advertise the --token arg in the example as this shouldn't be the recommended way (best to login with env variable or huggingface-cli login)
CLOSED
2024-04-25T14:00:38
2024-04-26T16:57:41
2024-04-26T16:57:41
https://github.com/huggingface/datasets/issues/6838
{ "login": "albertvillanova" }
{ "nodes": [] }
[]
I_kwDODunzps6G5tH_
6,837
Cannot use cached dataset without Internet connection (or when servers are down)
### Describe the bug I want to be able to use cached dataset from HuggingFace even when I have no Internet connection (or when HuggingFace servers are down, or my company has network issues). The problem why I can't use it: `data_files` argument from `datasets.load_dataset()` function get it updates from the serve...
OPEN
2024-04-25T10:48:20
2025-01-25T16:36:41
null
https://github.com/huggingface/datasets/issues/6837
{ "login": "DionisMuzenitov" }
{ "nodes": [] }
[ "There are 2 workarounds, tho:\r\n1. Download datasets from web and just load them locally\r\n2. Use metadata directly (temporal solution, since metadata can change)\r\n```\r\nimport datasets\r\nfrom datasets.data_files import DataFilesDict, DataFilesList\r\n\r\ndata_files_list = DataFilesList(\r\n [\r\n ...
I_kwDODunzps6G1zG_
6,836
ExpectedMoreSplits error on load_dataset when upgrading to 2.19.0
### Describe the bug Hi there, thanks for the great library! We have been using it a lot in torchtune and it's been a huge help for us. Regarding the bug: the same call to `load_dataset` errors with `ExpectedMoreSplits` in 2.19.0 after working fine in 2.18.0. Full details given in the repro below. ### Steps to re...
OPEN
2024-04-24T21:52:35
2024-05-14T04:08:19
null
https://github.com/huggingface/datasets/issues/6836
{ "login": "ebsmothers" }
{ "nodes": [] }
[ "Get same error on same datasets too.", "+1", "same error" ]
I_kwDODunzps6GxVBY
6,834
largelisttype not supported (.from_polars())
### Describe the bug The following code fails because LargeListType is not supported. This is especially a problem for .from_polars since polars uses LargeListType. ### Steps to reproduce the bug ```python import datasets import polars as pl df = pl.DataFrame({"list": [[]]}) datasets.Dataset.from_pola...
CLOSED
2024-04-24T11:33:43
2024-08-12T14:43:46
2024-08-12T14:43:46
https://github.com/huggingface/datasets/issues/6834
{ "login": "Modexus" }
{ "nodes": [] }
[]
I_kwDODunzps6GsMNK
6,833
Super slow iteration with trivial custom transform
### Describe the bug Dataset is 10X slower when applying trivial transforms: ``` import time import numpy as np from datasets import Dataset, Features, Array2D a = np.zeros((800, 800)) a = np.stack([a] * 1000) features = Features({"a": Array2D(shape=(800, 800), dtype="uint8")}) ds1 = Dataset.from_dict({"...
OPEN
2024-04-23T20:40:59
2024-10-08T15:41:18
null
https://github.com/huggingface/datasets/issues/6833
{ "login": "xslittlegrass" }
{ "nodes": [] }
[ "Similar issue in text process \r\n\r\n```python\r\n\r\ntokenizer=AutoTokenizer.from_pretrained(model_dir[args.model])\r\ntrain_dataset=datasets.load_from_disk(dataset_dir[args.dataset],keep_in_memory=True)['train']\r\ntrain_dataset=train_dataset.map(partial(dname2func[args.dataset],tokenizer=tokenizer),batched=Tru...
I_kwDODunzps6GnPSa
6,830
Add a doc page for the convert_to_parquet CLI
Follow-up to https://github.com/huggingface/datasets/pull/6795. Useful for https://github.com/huggingface/dataset-viewer/issues/2742. cc @albertvillanova
CLOSED
2024-04-23T09:49:04
2024-04-25T10:44:11
2024-04-25T10:44:11
https://github.com/huggingface/datasets/issues/6830
{ "login": "severo" }
{ "nodes": [ { "name": "documentation" } ] }
[]
I_kwDODunzps6GnNMB
6,829
Load and save from/to disk no longer accept pathlib.Path
Reported by @vttrifonov at https://github.com/huggingface/datasets/pull/6704#issuecomment-2071168296: > This change is breaking in > https://github.com/huggingface/datasets/blob/f96e74d5c633cd5435dd526adb4a74631eb05c43/src/datasets/arrow_dataset.py#L1515 > when the input is `pathlib.Path`. The issue is that `url_to...
OPEN
2024-04-23T09:44:45
2026-05-10T11:50:37
null
https://github.com/huggingface/datasets/issues/6829
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "bug" } ] }
[ "Opened a PR for this: #8004", "Hi! Triaging older issues — I think this one has shipped and can be closed.\n\nI tried to reproduce on the current `main` branch with the snippet below and both code paths now work:\n\n```python\nfrom pathlib import Path\nimport tempfile\nfrom datasets import Dataset\n\nds = Datase...
I_kwDODunzps6GWX25
6,827
Loading a remote dataset fails in the last release (v2.19.0)
While loading a dataset with multiple splits I get an error saying `Couldn't find file at <URL>` I am loading the dataset like so, nothing out of the ordinary. This dataset needs a token to access it. ``` token="hf_myhftoken-sdhbdsjgkhbd" load_dataset("speechcolab/gigaspeech", "test", cache_dir=f"gigaspeech/test...
OPEN
2024-04-19T21:11:58
2024-04-19T21:13:42
null
https://github.com/huggingface/datasets/issues/6827
{ "login": "zrthxn" }
{ "nodes": [] }
[]
I_kwDODunzps6GLLJl
6,824
Winogrande does not seem to be compatible with datasets version of 1.18.0
### Describe the bug I get the following error when simply running `load_dataset('winogrande','winogrande_xl')`. I do not have such an issue in the 1.17.0 version. ```Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.10/dist-packages/datasets/load.py", line...
CLOSED
2024-04-18T16:11:04
2024-04-19T09:53:15
2024-04-19T09:52:33
https://github.com/huggingface/datasets/issues/6824
{ "login": "spliew" }
{ "nodes": [] }
[ "Hi ! Do you mean 2.18 ? Can you try to update `fsspec` and `huggingface_hub` ?\r\n\r\n```\r\npip install -U fsspec huggingface_hub\r\n```", "Yes I meant 2.18, and it works after updating `fsspec` and `huggingface_hub`. Thanks!" ]
I_kwDODunzps6GKBwR
6,823
Loading problems of Datasets with a single shard
### Describe the bug When saving a dataset on disk and it has a single shard it is not loaded as when it is saved in multiple shards. I installed the latest version of datasets via pip. ### Steps to reproduce the bug The code below reproduces the behavior. All works well when the range of the loop is 10000 bu...
OPEN
2024-04-18T13:59:00
2025-10-15T13:31:49
null
https://github.com/huggingface/datasets/issues/6823
{ "login": "andjoer" }
{ "nodes": [] }
[ "Has there been a PR to resolve this already?", "The problem rises from using a wrong api.\r\nWhen loading a save_to_disk dataset, **load_from_disk** (instead of load_dataset) is what should be used.\r\n\r\n```python\r\nfrom datasets import load_from_disk\r\n\r\ndst.save_to_disk(\"cache\")\r\ndst = load_from_disk...
I_kwDODunzps6F_m0V
6,819
Give more details in `DataFilesNotFoundError` when getting the config names
### Feature request After https://huggingface.co/datasets/cis-lmu/Glot500/commit/39060e01272ff228cc0ce1d31ae53789cacae8c3, the dataset viewer gives the following error: ``` { "error": "Cannot get the config names for the dataset.", "cause_exception": "DataFilesNotFoundError", "cause_message": "No (support...
OPEN
2024-04-17T11:19:47
2024-04-17T11:19:47
null
https://github.com/huggingface/datasets/issues/6819
{ "login": "severo" }
{ "nodes": [ { "name": "enhancement" } ] }
[]
I_kwDODunzps6F3RJu
6,814
`map` with `num_proc` > 1 leads to OOM
### Describe the bug When running `map` on parquet dataset loaded from local machine, the RAM usage increases linearly eventually leading to OOM. I was wondering if I should I save the `cache_file` after every n steps in order to prevent this? ### Steps to reproduce the bug ``` ds = load_dataset("parquet", data...
OPEN
2024-04-16T11:56:03
2024-04-19T11:53:41
null
https://github.com/huggingface/datasets/issues/6814
{ "login": "bhavitvyamalik" }
{ "nodes": [] }
[ "Hi ! You can try to reduce `writer_batch_size`. It corresponds to the number of samples that stay in RAM before being flushed to disk" ]
I_kwDODunzps6FsPyp
6,810
Allow deleting a subset/config from a no-script dataset
As proposed by @BramVanroy, it would be neat to have this functionality through the API.
CLOSED
2024-04-15T07:53:26
2025-01-11T18:40:40
2024-04-30T09:44:25
https://github.com/huggingface/datasets/issues/6810
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Probably best to implement this as a CLI command?", "Thanks for your comment, @mariosasko. Or maybe both (in Python and as CLI command)? The Python command would be just the reverse of `push_to_hub`...\r\n\r\nI am working on a draft implementation, so we can discuss about the API and UX.", "2nd time I've come ...
I_kwDODunzps6FrxPb
6,808
Make convert_to_parquet CLI command create script branch
As proposed by @severo, maybe we should add this functionality as well to the CLI command to convert a script-dataset to Parquet. See: https://github.com/huggingface/datasets/pull/6795#discussion_r1562819168 > When providing support, we sometimes suggest that users store their script in a script branch. What do you th...
CLOSED
2024-04-15T06:46:07
2024-04-17T08:38:19
2024-04-17T08:38:19
https://github.com/huggingface/datasets/issues/6808
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "enhancement" } ] }
[]
I_kwDODunzps6FdPZH
6,805
Batched mapping of existing string column casts boolean to string
### Describe the bug Let the dataset contain a column named 'a', which is of the string type. If 'a' is converted to a boolean using batched mapping, the mapper automatically casts the boolean to a string (e.g., True -> 'true'). It only happens when the original column and the mapped column name are identical. Th...
CLOSED
2024-04-12T04:21:41
2024-07-03T15:00:07
2024-07-03T15:00:07
https://github.com/huggingface/datasets/issues/6805
{ "login": "starmpcc" }
{ "nodes": [] }
[ "This seems to be hardcoded behavior in table.py `array_cast`.\r\n```python\r\nif (\r\n not allow_number_to_str\r\n and pa.types.is_string(pa_type)\r\n and (pa.types.is_floating(array.type) or pa.types.is_integer(array.type))\r\n ):\r\n raise TypeError(\r\n ...
I_kwDODunzps6FVI_E
6,801
got fileNotFound
### Describe the bug When I use load_dataset to load the nyanko7/danbooru2023 data set, the cache is read in the form of a symlink. There may be a problem with the arrow_dataset initialization process and I get FileNotFoundError: [Errno 2] No such file or directory: '2945000.jpg' ### Steps to reproduce the bug #code...
CLOSED
2024-04-11T04:57:41
2024-04-12T16:47:43
2024-04-12T16:47:43
https://github.com/huggingface/datasets/issues/6801
{ "login": "laoniandisko" }
{ "nodes": [] }
[ "Hi! I'll open a PR on the Hub to fix this, but please use the Hub's [Community tab](https://huggingface.co/datasets/nyanko7/danbooru2023/discussions) to report such issues in the future.", "I've opened a [PR](https://huggingface.co/datasets/nyanko7/danbooru2023/discussions/8) in the repo, so let's continue the d...
I_kwDODunzps6FTTu4
6,800
High overhead when loading lots of subsets from the same dataset
### Describe the bug I have a multilingual dataset that contains a lot of subsets. Each subset corresponds to a pair of languages, you can see here an example with 250 subsets: [https://hf.co/datasets/loicmagne/open-subtitles-250-bitext-mining](). As part of the MTEB benchmark, we may need to load all the subsets of t...
OPEN
2024-04-10T21:08:57
2024-04-24T13:48:05
null
https://github.com/huggingface/datasets/issues/6800
{ "login": "loicmagne" }
{ "nodes": [] }
[ "Hi !\r\n\r\nIt's possible to multiple files at once:\r\n\r\n```python\r\ndata_files = \"data/*.jsonl\"\r\n# Or pass a list of files\r\nlangs = ['ka-ml', 'br-sr', 'ka-pt', 'id-ko', ..., 'fi-ze_zh', 'he-kk', 'ka-tr']\r\ndata_files = [f\"data/{lang}.jsonl\" for lang in langs]\r\nds = load_dataset(\"loicmagne/open-sub...
I_kwDODunzps6FQyA7
6,798
`DatasetBuilder._split_generators` incomplete type annotation
### Describe the bug The [`DatasetBuilder._split_generators`](https://github.com/huggingface/datasets/blob/0f27d7b77c73412cfc50b24354bfd7a3e838202f/src/datasets/builder.py#L1449) function has currently the following signature: ```python class DatasetBuilder: def _split_generators(self, dl_manager: DownloadMan...
CLOSED
2024-04-10T14:38:50
2024-04-11T15:34:59
2024-04-11T15:34:59
https://github.com/huggingface/datasets/issues/6798
{ "login": "JonasLoos" }
{ "nodes": [] }
[ "Good catch! Feel free to open a PR with the suggested fix :).", "There is also the [`MockDownloadManager`](https://github.com/JonasLoos/datasets/blob/main/src/datasets/download/mock_download_manager.py#L33), which seems like it might get passed here too. However, to me, it doesn't really seem relevant to the use...
I_kwDODunzps6FNa3C
6,796
CI is broken due to hf-internal-testing/dataset_with_script
CI is broken for test_load_dataset_distributed_with_script. See: https://github.com/huggingface/datasets/actions/runs/8614926216/job/23609378127 ``` FAILED tests/test_load.py::test_load_dataset_distributed_with_script[None] - assert False + where False = all(<generator object test_load_dataset_distributed_with_scr...
CLOSED
2024-04-10T06:56:02
2024-04-12T09:02:13
2024-04-12T09:02:13
https://github.com/huggingface/datasets/issues/6796
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "bug" } ] }
[ "Finally:\r\n- the initial issue seems it was temporary\r\n- there is a different issue now: https://github.com/huggingface/datasets/actions/runs/8627153993/job/23646584590?pr=6797\r\n```\r\nFAILED tests/test_load.py::ModuleFactoryTest::test_HubDatasetModuleFactoryWithParquetExport - datasets.utils._dataset_viewer....
I_kwDODunzps6FAHcI
6,793
Loading just one particular split is not possible for imagenet-1k
### Describe the bug I'd expect the following code to download just the validation split but instead I get all data on my disk (train, test and validation splits) ` from datasets import load_dataset dataset = load_dataset("imagenet-1k", split="validation", trust_remote_code=True) ` Is it expected to work li...
OPEN
2024-04-08T14:39:14
2025-06-23T09:55:08
null
https://github.com/huggingface/datasets/issues/6793
{ "login": "PaulPSta" }
{ "nodes": [] }
[ "+1", "+1\n" ]
I_kwDODunzps6E7Kk8
6,791
`add_faiss_index` raises ValueError: not enough values to unpack (expected 2, got 1)
### Describe the bug Calling `add_faiss_index` on a `Dataset` with a column argument raises a ValueError. The following is the trace ```python 214 def replacement_add(self, x): 215 """Adds vectors to the index. 216 The index must be trained before vectors can be added to it. 217 Th...
CLOSED
2024-04-08T01:57:03
2024-04-11T15:38:05
2024-04-11T15:38:05
https://github.com/huggingface/datasets/issues/6791
{ "login": "NeuralFlux" }
{ "nodes": [] }
[ "I realized I was passing a string column to this instead of float. Is it possible to add a warning or error to prevent users from falsely believing there's a bug?", "Hello!\r\n\r\nI agree that we could add some safeguards around the type of `ds[column]`. At least for FAISS, we need the column to be made of embed...
I_kwDODunzps6E6c5k
6,790
PyArrow 'Memory mapping file failed: Cannot allocate memory' bug
### Describe the bug Hello, I've been struggling with a problem using Huggingface datasets caused by PyArrow memory allocation. I finally managed to solve it, and thought to document it since similar issues have been raised here before (https://github.com/huggingface/datasets/issues/5710, https://github.com/huggi...
OPEN
2024-04-07T19:25:39
2025-09-08T14:04:59
null
https://github.com/huggingface/datasets/issues/6790
{ "login": "lasuomela" }
{ "nodes": [] }
[ "Thanks for a very clean explanation. This happened to me too, and I don't have sudo access to update the value. I wonder if there might be another workaround.", "One option is to just have more data in each file - /proc/sys/vm/max_map_count limits the maximum number of concurrently open files, but I don't know i...
I_kwDODunzps6E4-HZ
6,789
Issue with map
### Describe the bug Map has been taking extremely long to preprocess my data. It seems to process 1000 examples (which it does really fast in about 10 seconds), then it hangs for a good 1-2 minutes, before it moves on to the next batch of 1000 examples. It also keeps eating up my hard drive space for some reaso...
OPEN
2024-04-07T02:52:06
2024-07-23T12:41:38
null
https://github.com/huggingface/datasets/issues/6789
{ "login": "Nsohko" }
{ "nodes": [] }
[ "Default `writer_batch_size `is set to 1000 (see [map](https://huggingface.co/docs/datasets/v2.16.1/en/package_reference/main_classes#datasets.Dataset.map)).\r\nThe \"tmp1335llua\" is probably the temp file it creates while writing to disk.\r\nMaybe try lowering the `writer_batch_size`.\r\n\r\nFor multi-processing ...
I_kwDODunzps6E3wHh
6,788
A Question About the Map Function
### Describe the bug Hello, I have a question regarding the map function in the Hugging Face datasets. The situation is as follows: when I load a jsonl file using load_dataset(..., streaming=False), and then utilize the map function to process it, I specify that the returned example should be of type Torch.ten...
CLOSED
2024-04-06T11:45:23
2024-04-11T05:29:35
2024-04-11T05:29:35
https://github.com/huggingface/datasets/issues/6788
{ "login": "yslanprime" }
{ "nodes": [] }
[ "All data is saved in the arrow format on disk.\r\nIf you return a tensor it gets converted to arrow before saving to disk when using map.\r\n\r\nTo get a tensor when you access data elements you can use `dataset.set_format(\"pt\")`.\r\nNote that this just changes how the data is loaded, not how it is stored.", "...
I_kwDODunzps6E3Wqg
6,787
TimeoutError in map
### Describe the bug ```python from datasets import Dataset def worker(example): while True: continue example['a'] = 100 return example data = Dataset.from_list([{"a": 1}, {"a": 2}]) data = data.map(worker) print(data[0]) ``` I'm implementing a worker function whose runtime will de...
OPEN
2024-04-06T06:25:39
2024-08-14T02:09:57
null
https://github.com/huggingface/datasets/issues/6787
{ "login": "Jiaxin-Wen" }
{ "nodes": [] }
[ "From my current understanding, this timeout is only used when we need to get the results.\r\n\r\nOne of:\r\n1. All tasks are done\r\n2. One worker died\r\n\r\nYour function should work fine and it's definitely a bug if it doesn't.", "When one of the `map`'s worker processes crashes, the linked code re-raises an ...
I_kwDODunzps6Ez1IK
6,783
AttributeError: module 'numpy' has no attribute 'object'. in Kaggle Notebook
### Describe the bug # problem I can't resample audio dataset in Kaggle Notebook. It looks like some code in `datasets` library use aliases that were deprecated in NumPy 1.20. ## code for resampling ``` from datasets import load_dataset, Audio from transformers import AutoFeatureExtractor from transformers imp...
CLOSED
2024-04-05T14:31:48
2024-04-11T17:18:53
2024-04-11T17:18:53
https://github.com/huggingface/datasets/issues/6783
{ "login": "petrov826" }
{ "nodes": [] }
[ "Hi! You can fix this by updating the `datasets` package with `pip install -U datasets` and restarting the notebook.\r\n", "Kaggle removed the problematic `datasets==2.1.0` pin last week, so I'm closing this issue (now it pre-installs the latest version)." ]
I_kwDODunzps6EzdUj
6,782
Image cast_storage very slow for arrays (e.g. numpy, tensors)
Update: see comments below ### Describe the bug Operations that save an image from a path are very slow. I believe the reason for this is that the image data (`numpy`) is converted into `pyarrow` format but then back to python using `.pylist()` before being converted to a numpy array again. `pylist` is alread...
OPEN
2024-04-05T13:46:54
2024-04-10T14:36:13
null
https://github.com/huggingface/datasets/issues/6782
{ "login": "Modexus" }
{ "nodes": [] }
[ "This may be a solution that only changes `cast_storage` of `Image`.\r\nHowever, I'm not totally sure that the assumptions hold that are made about the `ListArray`.\r\n\r\n```python\r\nelif pa.types.is_list(storage.type):\r\n from .features import Array3DExtensionType\r\n\r\n def get_shapes(arr):\r\n s...
I_kwDODunzps6Erq88
6,778
Dataset.to_csv() missing commas in columns with lists
### Describe the bug The `to_csv()` method does not output commas in lists. So when the Dataset is loaded back in the data structure of the column with a list is not correct. Here's an example: Obviously, it's not as trivial as inserting commas in the list, since its a comma-separated file. But hopefully there...
OPEN
2024-04-04T16:46:13
2024-04-08T15:24:41
null
https://github.com/huggingface/datasets/issues/6778
{ "login": "mpickard-dataprof" }
{ "nodes": [] }
[ "Hello!\r\n\r\nThis is due to how pandas write numpy arrays to csv. [Source](https://stackoverflow.com/questions/54753179/to-csv-saves-np-array-as-string-instead-of-as-a-list)\r\nTo fix this, you can convert them to list yourselves.\r\n\r\n```python\r\ndf = ds.to_pandas()\r\ndf['int'] = df['int'].apply(lambda arr: ...
I_kwDODunzps6EmN-v
6,777
.Jsonl metadata not detected
### Describe the bug Hi I have the following directory structure: |--dataset | |-- images | |-- metadata1000.csv | |-- metadata1000.jsonl | |-- padded_images Example of metadata1000.jsonl file {"caption": "a drawing depicts a full shot of a black t-shirt with a triangular pattern on the front there is a white...
OPEN
2024-04-04T06:31:53
2024-04-05T21:14:48
null
https://github.com/huggingface/datasets/issues/6777
{ "login": "nighting0le01" }
{ "nodes": [] }
[ "Hi! `metadata.jsonl` (or `metadata.csv`) is the only allowed name for the `imagefolder`'s metadata files.", "@mariosasko hey i tried with metadata.jsonl also and it still doesn't get the right columns", "@mariosasko it says metadata.csv not found\r\n<img width=\"1150\" alt=\"image\" src=\"https://github.com/hu...
I_kwDODunzps6Eh0YA
6,775
IndexError: Invalid key: 0 is out of bounds for size 0
### Describe the bug I am trying to fine-tune llama2-7b model in GCP. The notebook I am using for this can be found [here](https://github.com/GoogleCloudPlatform/vertex-ai-samples/blob/main/notebooks/community/model_garden/model_garden_pytorch_llama2_peft_finetuning.ipynb). When I use the dataset given in the exa...
OPEN
2024-04-03T17:06:30
2024-04-08T01:24:35
null
https://github.com/huggingface/datasets/issues/6775
{ "login": "kk2491" }
{ "nodes": [] }
[ "Same problem.", "Hi! You should be able to fix this by passing `remove_unused_columns=False` to the `transformers` `TrainingArguments` as explained in https://github.com/huggingface/peft/issues/1299.\r\n\r\n(I'm not familiar with Vertex AI, but I'd assume `remove_unused_columns` can be passed as a flag to the do...
I_kwDODunzps6Ec4lc
6,774
Generating split is very slow when Image format is PNG
### Describe the bug When I create a dataset, it gets stuck while generating cached data. The image format is PNG, and it will not get stuck when the image format is jpeg. ![image](https://github.com/huggingface/datasets/assets/22740819/3b888fd8-e6d6-488f-b828-95a8f206a152) After debugging, I know that it is b...
OPEN
2024-04-03T07:47:31
2024-04-10T17:28:17
null
https://github.com/huggingface/datasets/issues/6774
{ "login": "Tramac" }
{ "nodes": [] }
[ "I think this is due to the speed of reading a `png` image using pillow compared to a `jpg` image.\r\nNotably the same is true with `tiff`, it is even faster than `jpg` in my case." ]
I_kwDODunzps6EYoUh
6,773
Dataset on Hub re-downloads every time?
### Describe the bug Hi, I have a dataset on the hub [here](https://huggingface.co/datasets/manestay/borderlines). It has 1k+ downloads, which I sure is mostly just me and my colleagues working with it. It should have far fewer, since I'm using the same machine with a properly set up HF_HOME variable. However, whene...
CLOSED
2024-04-02T17:23:22
2024-04-08T18:43:45
2024-04-08T18:43:45
https://github.com/huggingface/datasets/issues/6773
{ "login": "manestay" }
{ "nodes": [] }
[ "The caching works as expected when I try to reproduce this locally or on Colab...", "hi @mariosasko , Thank you for checking. I also tried running this again just now, and it seems like the `load_dataset()` caches properly (though I'll double check later).\r\n\r\nI think the issue might be in the caching of the ...
I_kwDODunzps6EVISB
6,771
Datasets FileNotFoundError when trying to generate examples.
### Discussed in https://github.com/huggingface/datasets/discussions/6768 <div type='discussions-op-text'> <sup>Originally posted by **RitchieP** April 1, 2024</sup> Currently, I have a dataset hosted on Huggingface with a custom script [here](https://huggingface.co/datasets/RitchieP/VerbaLex_voice). I'm loa...
CLOSED
2024-04-02T10:24:57
2024-04-04T14:22:03
2024-04-04T14:22:03
https://github.com/huggingface/datasets/issues/6771
{ "login": "RitchieP" }
{ "nodes": [] }
[ "Hi! I've opened a PR in the repo to fix this issue: https://huggingface.co/datasets/RitchieP/VerbaLex_voice/discussions/6", "@mariosasko Thanks for the PR and help! Guess I could close the issue for now. Appreciate the help!" ]
I_kwDODunzps6EQyEL
6,770
[Bug Report] `datasets==2.18.0` is not compatible with `fsspec==2023.12.2`
### Describe the bug `Datasets==2.18.0` is not compatible with `fsspec==2023.12.2`. I have to downgrade fsspec to `fsspec==2023.10.0` to make `Datasets==2.18.0` work properly. ### Steps to reproduce the bug To reproduce the bug: 1. Make sure that `Datasets==2.18.0` and `fsspec==2023.12.2`. 2. Run the following ...
CLOSED
2024-04-01T20:17:48
2024-04-11T17:31:44
2024-04-11T17:31:44
https://github.com/huggingface/datasets/issues/6770
{ "login": "fshp971" }
{ "nodes": [] }
[ "You should be able to fix this by updating `huggingface_hub` with `pip install -U huggingface_hub`. We use this package under the hood to resolve the Hub's files." ]
I_kwDODunzps6EN6_f
6,769
(Willing to PR) Datasets with custom python objects
### Feature request Hi thanks for the library! I would like to have a huggingface Dataset, and one of its column is custom (non-serializable) Python objects. For example, a minimal code: ``` class MyClass: pass dataset = datasets.Dataset.from_list([ dict(a=MyClass(), b='hello'), ]) ``` It gives...
OPEN
2024-04-01T13:18:47
2024-04-01T13:36:58
null
https://github.com/huggingface/datasets/issues/6769
{ "login": "fzyzcjy" }
{ "nodes": [ { "name": "enhancement" } ] }
[]
I_kwDODunzps6EFHZL
6,765
Compatibility issue between s3fs, fsspec, and datasets
### Describe the bug Here is the full error stack when installing: ``` ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. datasets 2.18.0 requires fsspec[http]<=2024.2.0,>=2023.1.0, but you ...
CLOSED
2024-03-29T19:57:24
2024-11-12T14:50:48
2024-04-03T14:33:12
https://github.com/huggingface/datasets/issues/6765
{ "login": "njbrake" }
{ "nodes": [] }
[ "Hi! Instead of running `pip install` separately for each package, you should pass all the packages to a single `pip install` call (in this case, `pip install datasets s3fs`) to let `pip` properly resolve their versions.", "> Hi! Instead of running `pip install` separately for each package, you should pass all th...
I_kwDODunzps6EEexP
6,764
load_dataset can't work with symbolic links
### Feature request Enable the `load_dataset` function to load local datasets with symbolic links. E.g, this dataset can be loaded: ├── example_dataset/ │ ├── data/ │ │ ├── train/ │ │ │ ├── file0 │ │ │ ├── file1 │ │ ├── dev/ │ │ │ ├── file2 │ │ │ ├── file3 │ ├── metad...
OPEN
2024-03-29T17:49:28
2025-04-29T15:06:28
null
https://github.com/huggingface/datasets/issues/6764
{ "login": "VladimirVincan" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "In fact,You can use a hard link instead of a symbolic link.Hard link works" ]
I_kwDODunzps6D3NZ6
6,760
Load codeparrot/apps raising UnicodeDecodeError in datasets-2.18.0
### Describe the bug This happens with datasets-2.18.0; I downgraded the version to 2.14.6 fixing this temporarily. ``` Traceback (most recent call last): File "/home/xxx/miniconda3/envs/py310/lib/python3.10/site-packages/datasets/load.py", line 2556, in load_dataset builder_instance = load_dataset_builder...
OPEN
2024-03-28T03:44:26
2024-06-19T07:06:40
null
https://github.com/huggingface/datasets/issues/6760
{ "login": "yucc-leon" }
{ "nodes": [] }
[ "The same error with mteb datasets.", "Unfortunately, I'm unable to reproduce this error locally or on Colab.", "Here is the requirements.txt from a clean virtual environment (managed by conda) where I only install `datasets` by \r\n`pip install datasets`. \r\nThe pip list:\r\n```\r\naiohttp==3.9.3\r\naiosignal...
I_kwDODunzps6DqQfb
6,759
Persistent multi-process Pool
### Feature request Running .map and filter functions with `num_procs` consecutively instantiates several multiprocessing pools iteratively. As instantiating a Pool is very resource intensive it can be a bottleneck to performing iteratively filtering. My ideas: 1. There should be an option to declare `persist...
OPEN
2024-03-26T17:35:25
2024-03-26T17:35:25
null
https://github.com/huggingface/datasets/issues/6759
{ "login": "fostiropoulos" }
{ "nodes": [ { "name": "enhancement" } ] }
[]
I_kwDODunzps6DovLe
6,758
Passing `sample_by` to `load_dataset` when loading text data does not work
### Describe the bug I have a dataset that consists of a bunch of text files, each representing an example. There is an undocumented `sample_by` argument for the `TextConfig` class that is used by `Text` to decide whether to split files into lines, paragraphs or take them whole. Passing `sample_by=“document”` to `load...
CLOSED
2024-03-26T14:55:33
2024-04-09T11:27:59
2024-04-09T11:27:59
https://github.com/huggingface/datasets/issues/6758
{ "login": "ntoxeg" }
{ "nodes": [] }
[ "Thanks for reporting! We are working on a fix." ]
I_kwDODunzps6DdiPd
6,756
Support SQLite files?
### Feature request Support loading a dataset from a SQLite file https://huggingface.co/datasets/severo/test_iris_sqlite/tree/main ### Motivation SQLite is a popular file format. ### Your contribution See discussion on slack: https://huggingface.slack.com/archives/C04L6P8KNQ5/p1702481859117909 (internal) In ...
CLOSED
2024-03-25T11:48:05
2024-03-26T16:09:32
2024-03-26T16:09:32
https://github.com/huggingface/datasets/issues/6756
{ "login": "severo" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "You can use `Dataset.from_sql(path_to_sql_file)` already. Though we haven't added the Sql dataset builder to the `_PACKAGED_DATASETS_MODULES` list or in `_EXTENSION_TO_MODULE` to map `.sqlite` to the Sql dataset builder\r\n\r\nThis would allow to load a dataset repository with a `.sqlite` file using `load_dataset`...
I_kwDODunzps6DZx5p
6,755
Small typo on the documentation
### Describe the bug There is a small typo on https://github.com/huggingface/datasets/blob/d5468836fe94e8be1ae093397dd43d4a2503b926/src/datasets/dataset_dict.py#L938 It should be `caching is enabled`. ### Steps to reproduce the bug Please visit https://github.com/huggingface/datasets/blob/d5468836fe94e...
CLOSED
2024-03-24T21:47:52
2024-04-02T14:01:19
2024-04-02T14:01:19
https://github.com/huggingface/datasets/issues/6755
{ "login": "fostiropoulos" }
{ "nodes": [ { "name": "good first issue" } ] }
[ "Thanks for reporting @fostiropoulos! I've edited your comment to fix the link to the problematic line.\r\n", "@mariosasko can i take this up?", "#self-assign" ]
I_kwDODunzps6DYLzT
6,753
Type error when importing datasets on Kaggle
### Describe the bug When trying to run ``` import datasets print(datasets.__version__) ``` It generates the following error ``` TypeError: expected string or bytes-like object ``` It looks like It cannot find the valid versions of `fsspec` though fsspec version is fine when I checked Via command ...
CLOSED
2024-03-24T03:01:30
2024-10-02T11:49:35
2024-03-30T00:23:49
https://github.com/huggingface/datasets/issues/6753
{ "login": "jtv199" }
{ "nodes": [] }
[ "I have the same problem \r\nIt seems that it only appears when you are using GPU \r\nIt seems to work fine with the 2.17 version though", "Same here.", "> I have the same problem\r\n> It seems that it only appears when you are using GPU\r\n> It seems to work fine with the 2.17 version though\r\n\r\nI downgrade...
I_kwDODunzps6DXwo_
6,752
Precision being changed from float16 to float32 unexpectedly
### Describe the bug I'm loading a HuggingFace Dataset for images. I'm running a preprocessing (map operation) step that runs a few operations, one of them being conversion to float16. The Dataset features also say that the 'img' is of type float16. Whenever I take an image from that HuggingFace Dataset instance...
OPEN
2024-03-23T20:53:56
2025-11-04T22:40:01
null
https://github.com/huggingface/datasets/issues/6752
{ "login": "gcervantes8" }
{ "nodes": [] }
[ "This is because of the formatter (`torch` in this case).\r\nIt defaults to `float32`.\r\n\r\nYou can load it in `float16` using `dataset.set_format(\"torch\", dtype=torch.float16)`.", "I am having a similar issue when _building_ a dataset given `float16`-valued data.\n\n```py\nfrom datasets import Features, Valu...
I_kwDODunzps6DWCAC
6,750
`load_dataset` requires a network connection for local download?
### Describe the bug Hi all - I see that in the past a network dependency has been mistakenly introduced into `load_dataset` even for local loads. Is it possible this has happened again? ### Steps to reproduce the bug ``` >>> import datasets >>> datasets.load_dataset("hh-rlhf") Repo card metadata block was not ...
CLOSED
2024-03-23T01:06:32
2024-04-15T15:38:52
2024-04-15T15:38:52
https://github.com/huggingface/datasets/issues/6750
{ "login": "MiroFurtado" }
{ "nodes": [] }
[ "Are you using `HF_DATASETS_OFFLINE=1` ?", "> Are you using `HF_DATASETS_OFFLINE=1` ?\r\n\r\nThis doesn't work for me. `datasets=2.18.0`\r\n\r\n`test.py`:\r\n```\r\nimport datasets\r\n\r\ndatasets.utils.logging.set_verbosity_info()\r\n\r\nds = datasets.load_dataset('C-MTEB/AFQMC', revision='b44c3b011063adb25877c1...
I_kwDODunzps6DOH0k
6,748
Strange slicing behavior
### Describe the bug I have loaded a dataset, and then slice first 300 samples using `:` ops, however, the resulting dataset is not expected, as the output below: ```bash len(dataset)=1050324 len(dataset[:300])=2 len(dataset[0:300])=2 len(dataset.select(range(300)))=300 ``` ### Steps to reproduce the bug loa...
OPEN
2024-03-22T01:49:13
2024-03-22T16:43:57
null
https://github.com/huggingface/datasets/issues/6748
{ "login": "Luciennnnnnn" }
{ "nodes": [] }
[ "As explained in the [docs](https://huggingface.co/docs/datasets/v2.18.0/en/access#slicing), slicing a `Dataset` returns a dictionary that maps its column names to their values. So, `len(dataset[:300])=2` is expected, assuming your dataset has 2 columns (the returned dict has 2 keys, but each value in the dict has ...
I_kwDODunzps6DEfwd
6,746
ExpectedMoreSplits error when loading C4 dataset
### Describe the bug I encounter bug when running the example command line ```python python main.py \ --model decapoda-research/llama-7b-hf \ --prune_method wanda \ --sparsity_ratio 0.5 \ --sparsity_type unstructured \ --save out/llama_7b/unstructured/wanda/ ``` The bug occurred ...
CLOSED
2024-03-21T02:53:04
2024-09-18T19:57:14
2024-07-29T07:21:08
https://github.com/huggingface/datasets/issues/6746
{ "login": "billwang485" }
{ "nodes": [] }
[ "Hi ! We updated the `allenai/c4` repository to allow people to specify which language to load easily (the the [c4 dataset page](https://huggingface.co/datasets/allenai/c4))\r\n\r\nTo fix this issue **you can update** `datasets` and remove the mention of the legacy configuration name \"allenai--c4\":\r\n\r\n```pyth...
I_kwDODunzps6DCxWk
6,745
Scraping the whole of github including private repos is bad; kindly stop
### Feature request https://github.com/bigcode-project/opt-out-v2 - opt out is not consent. kindly quit this ridiculous nonsense. ### Motivation [EDITED: insults not tolerated] ### Your contribution [EDITED: insults not tolerated]
CLOSED
2024-03-20T20:54:06
2024-03-21T12:28:04
2024-03-21T10:24:56
https://github.com/huggingface/datasets/issues/6745
null
{ "nodes": [ { "name": "enhancement" } ] }
[ "It's not twitter here" ]
I_kwDODunzps6DAXKY
6,744
Option to disable file locking
### Feature request Commands such as `load_dataset` creates file locks with `filelock.FileLock`. It would be good if there was a way to disable this. ### Motivation File locking doesn't work on all file-systems (in my case NFS mounted Weka). If the `cache_dir` only had small files then it would be possible to point ...
OPEN
2024-03-20T15:59:45
2024-03-20T15:59:45
null
https://github.com/huggingface/datasets/issues/6744
{ "login": "VRehnberg" }
{ "nodes": [ { "name": "enhancement" } ] }
[]
I_kwDODunzps6CuSZq
6,740
Support for loading geotiff files as a part of the ImageFolder
### Feature request Request for adding rasterio support to load geotiff as a part of ImageFolder, instead of using PIL ### Motivation As of now, there are many datasets in HuggingFace Hub which are predominantly focussed towards RemoteSensing or are from RemoteSensing. The current ImageFolder (if I have understood c...
CLOSED
2024-03-18T20:00:39
2024-03-27T18:19:48
2024-03-27T18:19:20
https://github.com/huggingface/datasets/issues/6740
{ "login": "sunny1401" }
{ "nodes": [ { "name": "enhancement" } ] }
[]
I_kwDODunzps6CrSno
6,738
Dict feature is non-nullable while nested dict feature is
When i try to create a `Dataset` object with None values inside a dict column, like this: ```python from datasets import Dataset, Features, Value Dataset.from_dict( { "dict": [{"a": 0, "b": 0}, None], }, features=Features( {"dict": {"a": Value("int16"), "b": Value("int16")}} ) ) ...
CLOSED
2024-03-18T14:31:47
2024-03-20T10:24:15
2024-03-19T20:05:20
https://github.com/huggingface/datasets/issues/6738
{ "login": "polinaeterna" }
{ "nodes": [ { "name": "bug" } ] }
[ "It looks like a bug, by default every feature should be nullable.", "I've linked a PR with a fix :)", "@mariosasko awesome thank you!" ]
I_kwDODunzps6Ci8aZ
6,737
Invalid pattern: '**' can only be an entire path component
### Describe the bug ValueError: Invalid pattern: '**' can only be an entire path component when loading any dataset ### Steps to reproduce the bug import datasets ds = datasets.load_dataset("TokenBender/code_instructions_122k_alpaca_style") ### Expected behavior loading the dataset successfully ### Environm...
CLOSED
2024-03-16T19:28:46
2024-07-23T14:23:28
2024-05-13T11:32:57
https://github.com/huggingface/datasets/issues/6737
{ "login": "JPonsa" }
{ "nodes": [] }
[ "I couldn't reproduce the issue on my side on MacOS, I guess the issue comes from the recent `fsspec` on Windows.\r\n\r\nCan you try downgrading to `fsspec==2023.9.2` for now ? It would also be great to investigate this and see if we need a fix in `datasets` or `fsspec`", "I had the same issue! \r\nDowngrading t...
I_kwDODunzps6Ci4Qu
6,736
Mosaic Streaming (MDS) Support
### Feature request I'm a huge fan of the current HF Datasets `webdataset` integration (especially the built-in streaming support). However, I'd love to upload some robotics and multimodal datasets I've processed for use with [Mosaic Streaming](https://docs.mosaicml.com/projects/streaming/en/stable/), specifically the...
OPEN
2024-03-16T18:42:04
2025-09-10T14:32:13
null
https://github.com/huggingface/datasets/issues/6736
{ "login": "siddk" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi ! that would be great :) Though note that `datasets` doesn't implement format-specific resuming when streaming, so in general I think it's better if users can use the mosaic-streaming library to read their MDS datasets. I wonder if they support `hf://` paths though...\n\nAnyway for those interested, the code fo...
I_kwDODunzps6CZNbm
6,734
Tokenization slows towards end of dataset
### Describe the bug Mapped tokenization slows down substantially towards end of dataset. train set started off very slow, caught up to 20k then tapered off til the end. what's particularly strange is that the tokenization crashed a few times before due to errors with invalid tokens somewhere or corrupted down...
OPEN
2024-03-15T03:27:36
2025-11-25T09:30:12
null
https://github.com/huggingface/datasets/issues/6734
{ "login": "ethansmith2000" }
{ "nodes": [] }
[ "Hi ! First note that if the dataset is not heterogeneous / shuffled, there might be places in the data with shorter texts that are faster to tokenize.\r\n\r\nMoreover, the way `num_proc` works is by slicing the dataset and passing each slice to a process to run the `map()` function. So at the very end of `map()`, ...
I_kwDODunzps6CWBlM
6,733
EmptyDatasetError when loading dataset downloaded with HuggingFace cli
### Describe the bug I am using a cluster that does not have access to the internet when given a job. I tried downloading the dataset using the huggingface-cli command and then loading it with load_dataset but I get an error: ```raise EmptyDatasetError(f"The directory at {base_path} doesn't contain any data files...
OPEN
2024-03-14T16:41:27
2024-03-15T18:09:02
null
https://github.com/huggingface/datasets/issues/6733
{ "login": "StwayneXG" }
{ "nodes": [] }
[ "Hi! `datasets` is not compatible with `huggingface_hub`'s cache structure, hence the error.\r\n\r\nYou can track https://github.com/huggingface/datasets/issues/5080 to get notified when this is implemented." ]
I_kwDODunzps6CG5EB
6,731
Unexpected behavior when using load_dataset with streaming=True in a for loop
### Describe the bug ### My Code ``` from datasets import load_dataset res=[] for i in [0,1]: di=load_dataset( "json", data_files='path_to.json', split='train', streaming=True, ).map(lambda x: {"source": i}) res.append(di) for e in res[...
CLOSED
2024-03-12T23:26:43
2024-04-16T00:00:00
2024-04-16T00:00:00
https://github.com/huggingface/datasets/issues/6731
{ "login": "uApiv" }
{ "nodes": [] }
[ "This is normal behavior in python when using `lambda`: the `i` defined in your `lambda` refers to the global variable `i` in your loop, and `i` equals to `1` when you run your `for e in res[0]` line.\r\n\r\nYou should pass `fn_kwargs` that will be passed to your `lambda` instead of using the global variable:\r\n\r...
I_kwDODunzps6B88dn
6,729
Support zipfiles that span multiple disks?
See https://huggingface.co/datasets/PhilEO-community/PhilEO-downstream The dataset viewer gives the following error: ``` Error code: ConfigNamesError Exception: BadZipFile Message: zipfiles that span multiple disks are not supported Traceback: Traceback (most recent call last): F...
CLOSED
2024-03-11T21:07:41
2024-06-26T05:08:59
2024-06-26T05:05:28
https://github.com/huggingface/datasets/issues/6729
{ "login": "severo" }
{ "nodes": [ { "name": "enhancement" }, { "name": "question" } ] }
[ "@severo were you able to solve it?", "No. cc @albertvillanova @lhoestq @polinaeterna for an evaluation of what it would take to support this feature.", "The underlying issue issue is that the dataset repository has used split ZIP archive files: https://huggingface.co/datasets/PhilEO-community/PhilEO-downstream...
I_kwDODunzps6B2uek
6,728
Issue Downloading Certain Datasets After Setting Custom `HF_ENDPOINT`
### Describe the bug This bug is triggered under the following conditions: - datasets repo ids without organization names trigger errors, such as `bookcorpus`, `gsm8k`, `wikipedia`, rather than in the form of `A/B`. - If `HF_ENDPOINT` is set and the hostname is not in the form of `(hub-ci.)?huggingface.co`. - T...
CLOSED
2024-03-11T09:06:38
2024-03-15T14:52:07
2024-03-15T14:52:07
https://github.com/huggingface/datasets/issues/6728
{ "login": "padeoe" }
{ "nodes": [] }
[ "Through debugging, I found a potential solution is to modify the code in the error handling module of `huggingface_hub`: https://github.com/huggingface/huggingface_hub/commit/56d6c798c44e83d2a3167e74c022737d8fcbe822 ", "@Wauplin ", "Thanks for investigating and reporting the bug @padeoe! I've opened a PR in `h...
I_kwDODunzps6Bw94Q
6,726
Profiling for HF Filesystem shows there are easy performance gains to be made
### Describe the bug # Let's make it faster First, an evidence... ![image](https://github.com/huggingface/datasets/assets/159512661/a703a82c-43a0-426c-9d99-24c563d70965) Figure 1: CProfile for loading 3 files from cerebras/SlimPajama-627B train split, and 3 files from test split using streaming=True. X axis is 1106...
OPEN
2024-03-09T07:08:45
2024-03-09T07:11:08
null
https://github.com/huggingface/datasets/issues/6726
{ "login": "awgr" }
{ "nodes": [] }
[ "FWIW I debugged this while waiting for it to go", "Oh I forgot to mention you can also cache resolve_pattern, and that seemed to also substantially improves things, if you want to load a dataset twice for whatever reason." ]
I_kwDODunzps6Bq-pq
6,725
Request for a comparison of huggingface datasets compared with other data format especially webdataset
### Feature request Request for a comparison of huggingface datasets compared with other data format especially webdataset ### Motivation I see huggingface datasets uses Apache Arrow as its backend, it seems to be great, but I'm curious about how it is good compared with other dataset format, like webdataset, what's...
OPEN
2024-03-08T08:23:01
2024-03-08T08:23:01
null
https://github.com/huggingface/datasets/issues/6725
{ "login": "Luciennnnnnn" }
{ "nodes": [ { "name": "enhancement" } ] }
[]
I_kwDODunzps6Bmq8T
6,724
Dataset with loading script does not work in renamed repos
### Describe the bug My data repository was first called `BramVanroy/hplt-mono-v1-2` but I then renamed to use underscores instead of dashes. However, it seems that `datasets` retrieves the old repo name when it checks whether the repo contains data loading scripts in this line. https://github.com/huggingface/dat...
OPEN
2024-03-07T17:38:38
2024-03-07T20:06:25
null
https://github.com/huggingface/datasets/issues/6724
{ "login": "BramVanroy" }
{ "nodes": [] }
[]
I_kwDODunzps6Bk5DC
6,721
Hi,do you know how to load the dataset from local file now?
Hi, if I want to load the dataset from local file, then how to specify the configuration name? _Originally posted by @WHU-gentle in https://github.com/huggingface/datasets/issues/2976#issuecomment-1333455222_
OPEN
2024-03-07T13:58:40
2024-03-31T08:09:25
null
https://github.com/huggingface/datasets/issues/6721
{ "login": "Gera001" }
{ "nodes": [] }
[ "\r\n@Gera001\r\n# Loading Dataset from Local Files Using 🤗Hugging Face.\r\n\r\nTo load a dataset from local files using the Hugging Face datasets library, you can use the `load_dataset` function.\r\n\r\n```\r\nfrom datasets import load_dataset\r\ndataset = load_dataset('csv', data_files={'train': 'path/to/train.c...
I_kwDODunzps6Bjo6D
6,720
TypeError: 'str' object is not callable
### Describe the bug I am trying to get the HPLT datasets on the hub. Downloading/re-uploading would be too time- and resource consuming so I wrote [a dataset loader script](https://huggingface.co/datasets/BramVanroy/hplt_mono_v1_2/blob/main/hplt_mono_v1_2.py). I think I am very close but for some reason I always get ...
CLOSED
2024-03-07T11:07:09
2024-03-08T07:34:53
2024-03-07T15:13:58
https://github.com/huggingface/datasets/issues/6720
{ "login": "BramVanroy" }
{ "nodes": [] }
[ "Hi ! I opened a PR to fix an issue in the Features defined in your code\r\n\r\nBasically changing\r\n```python\r\nSequence(\"float32\")\r\n```\r\n\r\nto\r\n```python\r\nSequence(Value(\"float32\"))\r\n```\r\n\r\n\r\nhttps://huggingface.co/datasets/BramVanroy/hplt_mono_v1_2/discussions/1", "D'oh! Was wondering wh...
I_kwDODunzps6BUUA_
6,719
Is there any way to solve hanging of IterableDataset using split by node + filtering during inference
### Describe the bug I am using an iterable dataset in a multi-node setup, trying to do training/inference while filtering the data on the fly. I usually do not use `split_dataset_by_node` but it is very slow using the IterableDatasetShard in `accelerate` and `transformers`. When I filter after applying `split_dataset...
OPEN
2024-03-05T15:55:13
2024-03-05T15:55:13
null
https://github.com/huggingface/datasets/issues/6719
{ "login": "ssharpe42" }
{ "nodes": [] }
[]
I_kwDODunzps6BRCOg
6,717
`remove_columns` method used with a streaming enable dataset mode produces a LibsndfileError on multichannel audio
### Describe the bug When loading a HF dataset in streaming mode and removing some columns, it is impossible to load a sample if the audio contains more than one channel. I have the impression that the time axis and channels are swapped or concatenated. ### Steps to reproduce the bug Minimal error code: ```python ...
OPEN
2024-03-05T09:33:26
2024-08-14T17:54:20
null
https://github.com/huggingface/datasets/issues/6717
{ "login": "jhauret" }
{ "nodes": [] }
[ "And it also works well with `dataset = dataset.select_columns([\"audio\"])`", "Same issue here, disable stream=True fix the problem" ]
I_kwDODunzps6BQ9X-
6,716
Non-deterministic `Dataset.builder_name` value
### Describe the bug I'm not sure if this is a bug, but `print(ds.builder_name)` in the following code sometimes prints out `rotten_tomatoes` instead of `parquet`: ```python import datasets for _ in range(100): ds = datasets.load_dataset("rotten_tomatoes", split="train") print(ds.builder_name) # pr...
CLOSED
2024-03-05T09:23:21
2024-03-19T07:58:14
2024-03-19T07:58:14
https://github.com/huggingface/datasets/issues/6716
{ "login": "harupy" }
{ "nodes": [] }
[ "When `rotten_tomatoes` is printed out, the following warning message is also printed out:\r\n\r\n```\r\nYou can avoid this message in future by passing the argument `trust_remote_code=True`.\r\nPassing `trust_remote_code=True` will be mandatory to load this dataset from the next major release of `datasets`.\r\n```...
I_kwDODunzps6A8JWe
6,703
Unable to load dataset that was saved with `save_to_disk`
### Describe the bug I get the following error message: You are trying to load a dataset that was saved using `save_to_disk`. Please use `load_from_disk` instead. ### Steps to reproduce the bug 1. Save a dataset with `save_to_disk` 2. Try to load it with `load_datasets` ### Expected behavior I am ab...
CLOSED
2024-03-01T11:59:56
2024-03-04T13:46:20
2024-03-04T13:46:20
https://github.com/huggingface/datasets/issues/6703
{ "login": "casper-hansen" }
{ "nodes": [] }
[ "`save_to_disk` uses a special serialization that can only be read using `load_from_disk`.\r\n\r\nContrary to `load_dataset`, `load_from_disk` directly loads Arrow files and uses the dataset directory as cache.\r\n\r\nOn the other hand `load_dataset` does a conversion step to get Arrow files from the raw data files...
I_kwDODunzps6A3JA0
6,702
Push samples to dataset on hub without having the dataset locally
### Feature request Say I have the following code: ``` from datasets import Dataset import pandas as pd new_data = { "column_1": ["value1", "value2"], "column_2": ["value3", "value4"], } df_new = pd.DataFrame(new_data) dataset_new = Dataset.from_pandas(df_new) # add these samples to a remote datase...
CLOSED
2024-02-29T19:17:12
2024-03-08T21:08:38
2024-03-08T21:08:38
https://github.com/huggingface/datasets/issues/6702
{ "login": "jbdel" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi ! For now I would recommend creating a new Parquet file using `dataset_new.to_parquet()` and upload it to HF using `huggingface_hub` every time you get a new batch of data. You can name the Parquet files `0000.parquet`, `0001.parquet`, etc.\r\n\r\nThough maybe make sure to not upload one file per sample since t...
I_kwDODunzps6ArcH-
6,700
remove_columns is not in-place but the doc shows it is in-place
### Describe the bug The doc of `datasets` v2.17.0/v2.17.1 shows that `remove_columns` is in-place. [link](https://huggingface.co/docs/datasets/v2.17.1/en/package_reference/main_classes#datasets.DatasetDict.remove_columns) In the text classification example of transformers v4.38.1, the columns are not removed. h...
CLOSED
2024-02-28T12:36:22
2024-04-02T17:15:28
2024-04-02T17:15:28
https://github.com/huggingface/datasets/issues/6700
{ "login": "shelfofclub" }
{ "nodes": [] }
[ "Good catch! I've opened a PR with a fix in the `transformers` repo.", "@mariosasko Thanks!\r\n\r\nWill the doc of `datasets` be updated?\r\n\r\nI find some possible mistakes in doc about whether `remove_columns` is in-place.\r\n1. [You can also remove a column using map() with remove_columns but the present meth...
I_kwDODunzps6AosqV
6,699
`Dataset` unexpected changed dict data and may cause error
### Describe the bug Will unexpected get keys with `None` value in the parsed json dict. ### Steps to reproduce the bug ```jsonl test.jsonl {"id": 0, "indexs": {"-1": [0, 10]}} {"id": 1, "indexs": {"-1": [0, 10]}} ``` ```python dataset = Dataset.from_json('.test.jsonl') print(dataset[0]) ``` Result: ```...
OPEN
2024-02-28T05:30:10
2024-02-28T19:14:36
null
https://github.com/huggingface/datasets/issues/6699
{ "login": "scruel" }
{ "nodes": [] }
[ "If `test.jsonl` contains more lines like:\r\n```\r\n{\"id\": 0, \"indexs\": {\"-1\": [0, 10]}}\r\n{\"id\": 1, \"indexs\": {\"-1\": [0, 10]}}\r\n{\"id\": 2, \"indexs\": {\"-2\": [0, 10]}}\r\n...\r\n{\"id\": n, \"indexs\": {\"-9999\": [0, 10]}}\r\n```\r\n\r\n`Dataset.from_json` will just raise an error:\r\n```\r\nAn...
I_kwDODunzps6Alh_w
6,697
Unable to Load Dataset in Kaggle
### Describe the bug Having installed the latest versions of transformers==4.38.1 and datasets==2.17.1 Unable to load the dataset in a kaggle notebook. Get this Error: ``` --------------------------------------------------------------------------- ValueError Traceback (most recen...
CLOSED
2024-02-27T18:19:34
2024-02-29T17:32:42
2024-02-29T17:32:41
https://github.com/huggingface/datasets/issues/6697
{ "login": "vrunm" }
{ "nodes": [] }
[ "FWIW, I run `load_dataset(\"llm-blender/mix-instruct\")` and it ran successfully.\r\nCan you clear your cache and try again?\r\n\r\n\r\n### Environment Info\r\n\r\n- `datasets` version: 2.17.0\r\n- Platform: Linux-6.2.6-76060206-generic-x86_64-with-glibc2.35\r\n- Python version: 3.9.13\r\n- `huggingface_hub` versi...
I_kwDODunzps6AZJV1
6,695
Support JSON file with an array of strings
Support loading a dataset from a JSON file with an array of strings. See: https://huggingface.co/datasets/CausalLM/Refined-Anime-Text/discussions/1
CLOSED
2024-02-26T12:35:11
2024-03-08T14:16:25
2024-02-28T06:39:13
https://github.com/huggingface/datasets/issues/6695
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "https://huggingface.co/datasets/CausalLM/Refined-Anime-Text/discussions/1 has been fixed, but how can we check if there are other datasets with the same error, in datasets-server's database? I don't know how to get the list of erroneous cache entries, since we only copied `Error code: JobManagerCrashedError`, bu...
I_kwDODunzps6ARvWZ
6,691
load_dataset() does not support tsv
### Feature request the load_dataset() for local functions support file types like csv, json etc but not of type tsv (tab separated values). ### Motivation cant easily load files of type tsv, have to convert them to another type like csv then load ### Your contribution Can try by raising a PR with a little help, c...
CLOSED
2024-02-24T05:56:04
2024-02-26T07:15:07
2024-02-26T07:09:35
https://github.com/huggingface/datasets/issues/6691
{ "login": "dipsivenkatesh" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "#self-assign", "Hi @dipsivenkatesh,\r\n\r\nPlease note that this functionality is already implemented. Our CSV builder uses `pandas.read_csv` under the hood, and you can pass the parameter `delimiter=\"\\t\"` to read TSV files.\r\n\r\nSee the list of CSV config parameters in our docs: https://huggingface.co/docs...
I_kwDODunzps6AMprB
6,690
Add function to convert a script-dataset to Parquet
Add function to convert a script-dataset to Parquet and push it to the Hub, analogously to the Space: "Convert a Hugging Face dataset to Parquet"
CLOSED
2024-02-23T10:28:20
2024-04-12T15:27:05
2024-04-12T15:27:05
https://github.com/huggingface/datasets/issues/6690
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "enhancement" } ] }
[]
I_kwDODunzps6AIAFb
6,689
.load_dataset() method defaults to zstandard
### Describe the bug Regardless of what method I use, datasets defaults to zstandard for unpacking my datasets. This is poor behavior, because not only is zstandard not a dependency in the huggingface package (and therefore, your dataset loading will be interrupted while it asks you to install the package), but it ...
CLOSED
2024-02-22T17:39:27
2024-03-07T14:54:16
2024-03-07T14:54:15
https://github.com/huggingface/datasets/issues/6689
{ "login": "ElleLeonne" }
{ "nodes": [] }
[ "The dataset is made of JSON files compressed using zstandard, as you can see here: https://huggingface.co/datasets/cerebras/SlimPajama-627B/tree/main/test/chunk1\r\n\r\nThat's why it asks for zstandard to be installed.\r\n\r\nThough I'm intrigued that you manage to load the dataset without zstandard installed. May...
I_kwDODunzps6AES9D
6,688
Tensor type (e.g. from `return_tensors`) ignored in map
### Describe the bug I don't know if it is a bug or an expected behavior, but the tensor type seems to be ignored after applying map. For example, mapping over to tokenize text with a transformers' tokenizer always returns lists and it ignore the `return_tensors` argument. If this is an expected behaviour (e.g., fo...
OPEN
2024-02-22T09:27:57
2024-02-22T15:56:21
null
https://github.com/huggingface/datasets/issues/6688
{ "login": "srossi93" }
{ "nodes": [] }
[ "Hi, this is expected behavior since all the tensors are converted to Arrow data (the storage type behind a Dataset).\r\n\r\nTo get pytorch tensors back, you can set the dataset format to \"torch\":\r\n\r\n```python\r\nds = ds.with_format(\"torch\")\r\n```", "Thanks. Just one additional question. During the pipel...
I_kwDODunzps6ABMCf
6,686
Question: Is there any way for uploading a large image dataset?
I am uploading an image dataset like this: ``` dataset = load_dataset( "json", data_files={"train": "data/custom_dataset/train.json", "validation": "data/custom_dataset/val.json"}, ) dataset = dataset.cast_column("images", Sequence(Image())) dataset.push_to_hub("StanfordAIMI/custom_dataset", max_shard_si...
OPEN
2024-02-21T22:07:21
2024-05-02T03:44:59
null
https://github.com/huggingface/datasets/issues/6686
{ "login": "zhjohnchan" }
{ "nodes": [] }
[ "```\r\nimport pandas as pd\r\nfrom datasets import Dataset, Image\r\n\r\n# Read the CSV file\r\ndata = pd.read_csv(\"XXXX.csv\")\r\n\r\n# Create a Hugging Face Dataset\r\ndataset = Dataset.from_pandas(data)\r\ndataset = dataset.cast_column(\"file_name\", Image())\r\n\r\n# Upload to Hugging Face Hub (make sure auth...
I_kwDODunzps5_q5-9
6,679
Node.js 16 GitHub Actions are deprecated
`Node.js` 16 GitHub Actions are deprecated. See: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/ We should update them to Node 20. See warnings in our CI, e.g.: https://github.com/huggingface/datasets/actions/runs/7957295009?pr=6678 > Node.js 16 actions are deprecat...
CLOSED
2024-02-19T09:47:37
2024-02-28T06:56:35
2024-02-28T06:56:35
https://github.com/huggingface/datasets/issues/6679
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "maintenance" } ] }
[]
I_kwDODunzps5_l7Sr
6,676
Can't Read List of JSON Files Properly
### Describe the bug Trying to read a bunch of JSON files into Dataset class but default approach doesn't work. I don't get why it works when I read it one by one but not when I pass as a list :man_shrugging: The code fails with ``` ArrowInvalid: JSON parse error: Invalid value. in row 0 UnicodeDecodeError...
OPEN
2024-02-17T22:58:15
2024-03-02T20:47:22
null
https://github.com/huggingface/datasets/issues/6676
{ "login": "lordsoffallen" }
{ "nodes": [] }
[ "Found the issue, if there are other files in the directory, it gets caught into this `*` so essentially it should be `*.json`. Could we possibly to check for list of files to make sure the pattern matches json files and raise error if not?", "I don't think we should filter for `*.json` as this might silently rem...