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
2,089,230,766
I_kwDODunzps58hyGu
6,603
datasets map `cache_file_name` does not work
open
2024-01-18T23:08:30
2024-01-28T04:01:15
https://github.com/huggingface/datasets/issues/6603
ChenchaoZhao
[]
[]
[ "Unfortunately, I'm unable to reproduce this error. Can you share the reproducer?", "```\r\nds = datasets.Dataset.from_dict(dict(a=[i for i in range(100)]))\r\nds.map(lambda item: dict(b=item['a'] * 2), cache_file_name=\"/tmp/whatever-fn\") # this worked\r\nds.map(lambda item: dict(b=item['a'] * 2), cache_file_na...
NONE
### Describe the bug In the documentation `datasets.Dataset.map` arg `cache_file_name` is said to be a string, but it doesn't work. ### Steps to reproduce the bug 1. pick a dataset 2. write a map function 3. do `ds.map(..., cache_file_name='some_filename')` 4. it crashes ### Expected behavior It will tell you t...
2,089,217,483
I_kwDODunzps58hu3L
6,602
Index error when data is large
open
2024-01-18T23:00:47
2025-04-16T04:13:01
https://github.com/huggingface/datasets/issues/6602
ChenchaoZhao
[]
[]
[ "I'm facing this problem while doing my translation of [mteb/stackexchange-clustering](https://huggingface.co/datasets/mteb/stackexchange-clustering). each row has lots of samples (up to 100k samples), because in this dataset, each row represent multiple clusters.\nmy hack is to setting `max_shard_size` to 20Gb or ...
NONE
### Describe the bug At `save_to_disk` step, the `max_shard_size` by default is `500MB`. However, one row of the dataset might be larger than `500MB` then the saving will throw an index error. Without looking at the source code, the bug is due to wrong calculation of number of shards which i think is `total_size / m...
2,088,446,385
I_kwDODunzps58eymx
6,600
Loading CSV exported dataset has unexpected format
open
2024-01-18T14:48:27
2024-01-23T14:42:32
https://github.com/huggingface/datasets/issues/6600
OrianeN
[]
[]
[ "Hi! Parquet is the only format that supports complex/nested features such as `Translation`. So, this should work:\r\n```python\r\ntest_dataset = load_dataset(\"opus100\", name=\"en-fr\", split=\"test\")\r\n\r\n# Save with .to_parquet()\r\ntest_parquet_path = \"try_testset_save.parquet\"\r\ntest_dataset.to_parquet(...
NONE
### Describe the bug I wanted to be able to save a HF dataset for translations and load it again in another script, but I'm a bit confused with the documentation and the result I've got so I'm opening this issue to ask if this behavior is as expected. ### Steps to reproduce the bug The documentation I've mainly cons...
2,086,684,664
I_kwDODunzps58YEf4
6,599
Easy way to segment into 30s snippets given an m4a file and a vtt file
closed
not_planned
2024-01-17T17:51:40
2024-01-23T10:42:17
2024-01-22T15:35:49Z
https://github.com/huggingface/datasets/issues/6599
RonanKMcGovern
[ "enhancement" ]
[]
[ "Hi! Non-generic data processing is out of this library's scope, so it's downstream libraries/users' responsibility to implement such logic.", "That's fair. Thanks" ]
NONE
### Feature request Uploading datasets is straightforward thanks to the ability to push Audio to hub. However, it would be nice if the data (text and audio) could be segmented when being pushed (if not possible already). ### Motivation It's easy to create a vtt file from an audio file. If there could be auto-segment...
2,084,236,605
I_kwDODunzps58Ou09
6,598
Unexpected keyword argument 'hf' when downloading CSV dataset from S3
closed
completed
2024-01-16T15:16:01
2025-01-31T15:35:33
2024-07-23T14:30:10Z
https://github.com/huggingface/datasets/issues/6598
dguenms
[]
[]
[ "I am facing similar issue while reading a csv file from s3. Wondering if somebody has found a workaround. ", "same thing happened to other formats like parquet", "I am facing similar issue while reading a parquet file from s3.\r\ni try with every version between 2.14 to 2.16.1 but it dosen't work ", "Re-def...
NONE
### Describe the bug I receive this error message when using `load_dataset` with "csv" path and `dataset_files=s3://...`: ``` TypeError: Session.__init__() got an unexpected keyword argument 'hf' ``` I found a similar issue here: https://stackoverflow.com/questions/77596258/aws-issue-load-dataset-from-s3-fails-w...
2,083,708,521
I_kwDODunzps58Mt5p
6,597
Dataset.push_to_hub of a canonical dataset creates an additional dataset under the user namespace
closed
completed
2024-01-16T11:27:07
2024-02-05T12:29:37
2024-02-05T12:29:37Z
https://github.com/huggingface/datasets/issues/6597
albertvillanova
[ "bug" ]
[ "albertvillanova" ]
[ "It is caused by these code lines: https://github.com/huggingface/datasets/blob/9d6d16117a30ba345b0236407975f701c5b288d4/src/datasets/dataset_dict.py#L1688-L1694", "Also note the information in the docstring: https://github.com/huggingface/datasets/blob/9d6d16117a30ba345b0236407975f701c5b288d4/src/datasets/datase...
MEMBER
While using `Dataset.push_to_hub` of a canonical dataset, an additional dataset was created under my user namespace. ## Steps to reproduce the bug The command: ```python commit_info = ds.push_to_hub( "caner", config_name="default", commit_message="Convert dataset to Parquet", commit_descriptio...
2,082,896,148
I_kwDODunzps58JnkU
6,595
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2
closed
completed
2024-01-16T02:03:09
2024-01-27T18:26:33
2024-01-26T02:28:32Z
https://github.com/huggingface/datasets/issues/6595
kopyl
[]
[]
[ "Hi ! I think the issue comes from the \"float16\" features that are not supported yet in Parquet\r\n\r\nFeel free to open an issue in `pyarrow` about this. In the meantime, I'd encourage you to use \"float32\" for your \"pooled_prompt_embeds\" and \"prompt_embeds\" features.\r\n\r\nYou can cast them to \"float32\"...
NONE
### Describe the bug I'm aware of the issue #5695 . I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16 So i 1. Map dataset 2. Save to disk 3. Try to upload: ``` import data...
2,082,748,275
I_kwDODunzps58JDdz
6,594
IterableDataset sharding logic needs improvement
open
2024-01-15T22:22:36
2025-11-10T14:55:20
https://github.com/huggingface/datasets/issues/6594
rwightman
[]
[]
[ "I do not know is it the same probelm as mine. I think the num_workers should a value of process number for one dataloader mapped to one card, or the total number of processes for all multiple cards. \r\nbut when I set the num_workers larger then the count of training split files, it will report num_workers ...
NONE
### Describe the bug The sharding of IterableDatasets with respect to distributed and dataloader worker processes appears problematic with significant performance traps and inconsistencies wrt to distributed train processes vs worker processes. Splitting across num_workers (per train process loader processes) and...
2,082,410,257
I_kwDODunzps58Hw8R
6,592
Logs are delayed when doing .map when `docker logs`
closed
not_planned
2024-01-15T17:05:21
2024-02-12T17:35:21
2024-02-12T17:35:21Z
https://github.com/huggingface/datasets/issues/6592
kopyl
[]
[]
[ "Hi! `tqdm` doesn't work well in non-interactive environments, so there isn't much we can do about this. It's best to [disable it](https://huggingface.co/docs/datasets/v2.16.1/en/package_reference/utilities#datasets.disable_progress_bars) in such environments and instead use logging to track progress." ]
NONE
### Describe the bug When I run my SD training in a Docker image and then listen to logs like `docker logs train -f`, the progress bar is delayed. It's updating every few percent. When you have a large dataset that has to be mapped (like 1+ million samples), it's crucial to see the updates in real-time, not every co...
2,082,378,957
I_kwDODunzps58HpTN
6,591
The datasets models housed in Dropbox can't support a lot of users downloading them
closed
completed
2024-01-15T16:43:38
2024-01-22T23:18:09
2024-01-22T23:18:09Z
https://github.com/huggingface/datasets/issues/6591
RDaneelOlivav
[]
[]
[ "Hi! Indeed, Dropbox is not a reliable host. I've just merged https://huggingface.co/datasets/PolyAI/minds14/discussions/24 to fix this by hosting the data files inside the repo." ]
NONE
### Describe the bug I'm using the datasets ``` from datasets import load_dataset, Audio dataset = load_dataset("PolyAI/minds14", name="en-US", split="train") ``` And it seems that sometimes when I imagine a lot of users are accessing the same resources, the Dropbox host fails: `raise ConnectionError(...
2,082,000,084
I_kwDODunzps58GMzU
6,590
Feature request: Multi-GPU dataset mapping for SDXL training
open
2024-01-15T13:06:06
2024-01-15T13:07:07
https://github.com/huggingface/datasets/issues/6590
kopyl
[ "enhancement" ]
[]
[]
NONE
### Feature request We need to speed up SDXL dataset pre-process. Please make it possible to use multiple GPUs for the [official SDXL trainer](https://github.com/huggingface/diffusers/blob/main/examples/text_to_image/train_text_to_image_sdxl.py) :) ### Motivation Pre-computing 3 million of images takes around ...
2,081,358,619
I_kwDODunzps58DwMb
6,589
After `2.16.0` version, there are `PermissionError` when users use shared cache_dir
closed
completed
2024-01-15T06:46:27
2024-02-02T07:55:38
2024-01-30T15:28:38Z
https://github.com/huggingface/datasets/issues/6589
minhopark-neubla
[]
[]
[ "We'll do a new release of `datasets` in the coming days with a fix !", "@lhoestq Thank you very much!" ]
NONE
### Describe the bug - We use shared `cache_dir` using `HF_HOME="{shared_directory}"` - After dataset version 2.16.0, datasets uses `filelock` package for file locking #6445 - But, `filelock` package make `.lock` file with `644` permission - Dataset is not available to other users except the user who created the ...
2,081,284,253
I_kwDODunzps58DeCd
6,588
fix os.listdir return name is empty string
closed
completed
2024-01-15T05:34:36
2024-01-24T10:08:29
2024-01-24T10:08:29Z
https://github.com/huggingface/datasets/issues/6588
d710055071
[]
[]
[]
CONTRIBUTOR
### Describe the bug xlistdir return name is empty string Overloaded os.listdir ### Steps to reproduce the bug ```python from datasets.download.streaming_download_manager import xjoin from datasets.download.streaming_download_manager import xlistdir config = DownloadConfig(storage_options=options) manger = Str...
2,078,874,005
I_kwDODunzps576RmV
6,585
losing DatasetInfo in Dataset.map when num_proc > 1
open
2024-01-12T13:39:19
2024-01-12T14:08:24
https://github.com/huggingface/datasets/issues/6585
JochenSiegWork
[]
[ "JochenSiegWork" ]
[ "Hi ! This issue comes from the fact that `map()` with `num_proc>1` shards the dataset in multiple chunks to be processed (one per process) and merges them. The DatasetInfos of each chunk are then merged together, but for some fields like `dataset_name` it's not been implemented and default to None.\r\n\r\nThe Data...
CONTRIBUTOR
### Describe the bug Hello and thanks for developing this package! When I process a Dataset with the map function using multiple processors some set attributes of the DatasetInfo get lost and are None in the resulting Dataset. ### Steps to reproduce the bug ```python from datasets import Dataset, DatasetInfo...
2,078,454,878
I_kwDODunzps574rRe
6,584
np.fromfile not supported
open
2024-01-12T09:46:17
2024-01-15T05:20:50
https://github.com/huggingface/datasets/issues/6584
d710055071
[]
[]
[ "@lhoestq\r\nCan you provide me with some ideas?", "Hi ! What's the error ?", "@lhoestq \r\n```\r\nTraceback (most recent call last):\r\n File \"/home/dongzf/miniconda3/envs/dataset_ai/lib/python3.11/runpy.py\", line 198, in _run_module_as_main\r\n return _run_code(code, main_globals, None,\r\n ^^...
CONTRIBUTOR
How to do np.fromfile to use it like np.load ```python def xnumpy_fromfile(filepath_or_buffer, *args, download_config: Optional[DownloadConfig] = None, **kwargs): import numpy as np if hasattr(filepath_or_buffer, "read"): return np.fromfile(filepath_or_buffer, *args, **kwargs) else: ...
2,075,645,042
I_kwDODunzps57t9Ry
6,580
dataset cache only stores one config of the dataset in parquet dir, and uses that for all other configs resulting in showing same data in all configs.
closed
completed
2024-01-11T03:14:18
2024-01-20T12:46:16
2024-01-20T12:46:16Z
https://github.com/huggingface/datasets/issues/6580
kartikgupta321
[]
[]
[]
NONE
### Describe the bug ds = load_dataset("ai2_arc", "ARC-Easy"), i have tried to force redownload, delete cache and changing the cache dir. ### Steps to reproduce the bug dataset = [] dataset_name = "ai2_arc" possible_configs = [ 'ARC-Challenge', 'ARC-Easy' ] for config in possible_configs: data...
2,075,407,473
I_kwDODunzps57tDRx
6,579
Unable to load `eli5` dataset with streaming
closed
not_planned
2024-01-10T23:44:20
2024-01-11T09:19:18
2024-01-11T09:19:17Z
https://github.com/huggingface/datasets/issues/6579
haok1402
[]
[]
[ "Hi @haok1402, I have created an issue in the Discussion tab of the corresponding dataset: https://huggingface.co/datasets/eli5/discussions/7\r\nLet's continue the discussion there!" ]
NONE
### Describe the bug Unable to load `eli5` dataset with streaming. ### Steps to reproduce the bug This fails with FileNotFoundError: https://files.pushshift.io/reddit/submissions ``` from datasets import load_dataset load_dataset("eli5", streaming=True) ``` This works correctly. ``` from datasets import lo...
2,074,790,848
I_kwDODunzps57qsvA
6,577
502 Server Errors when streaming large dataset
closed
completed
2024-01-10T16:59:36
2024-02-12T11:46:03
2024-01-15T16:05:44Z
https://github.com/huggingface/datasets/issues/6577
sanchit-gandhi
[ "streaming" ]
[]
[ "cc @mariosasko @lhoestq ", "Hi! We should be able to avoid this error by retrying to read the data when it happens. I'll open a PR in `huggingface_hub` to address this.", "Thanks for the fix @mariosasko! Just wondering whether \"500 error\" should also be excluded? I got these errors overnight:\r\n\r\n```\r\nh...
CONTRIBUTOR
### Describe the bug When streaming a [large ASR dataset](https://huggingface.co/datasets/sanchit-gandhi/concatenated-train-set) from the Hug (~3TB) I often encounter 502 Server Errors seemingly randomly during streaming: ``` huggingface_hub.utils._errors.HfHubHTTPError: 502 Server Error: Bad Gateway for url: http...
2,073,710,124
I_kwDODunzps57mk4s
6,576
document page 404 not found after redirection
closed
completed
2024-01-10T06:48:14
2024-01-17T14:01:31
2024-01-17T14:01:31Z
https://github.com/huggingface/datasets/issues/6576
annahung31
[]
[]
[ "Thanks for reporting! I've opened a PR with a fix." ]
NONE
### Describe the bug The redirected page encountered 404 not found. ### Steps to reproduce the bug 1. In this tutorial: https://huggingface.co/learn/nlp-course/chapter5/4?fw=pt original md: https://github.com/huggingface/course/blob/2c733c2246b8b7e0e6f19a9e5d15bb12df43b2a3/chapters/en/chapter5/4.mdx#L49 `...
2,072,111,000
I_kwDODunzps57geeY
6,571
Make DatasetDict.column_names return a list instead of dict
open
2024-01-09T10:45:17
2025-09-22T08:47:53
https://github.com/huggingface/datasets/issues/6571
albertvillanova
[ "enhancement" ]
[]
[ "Hi @albertvillanova, can I work on this issue?" ]
MEMBER
Currently, `DatasetDict.column_names` returns a dict, with each split name as keys and the corresponding list of column names as values. However, by construction, all splits have the same column names. I think it makes more sense to return a single list with the column names, which is the same for all the split k...
2,071,805,265
I_kwDODunzps57fT1R
6,570
No online docs for 2.16 release
closed
completed
2024-01-09T07:43:30
2024-01-09T16:45:50
2024-01-09T16:45:50Z
https://github.com/huggingface/datasets/issues/6570
albertvillanova
[ "bug", "documentation" ]
[]
[ "Though the `build / build_main_documentation` CI job ran for 2.16.0: https://github.com/huggingface/datasets/actions/runs/7300836845/job/19896275099 🤔 ", "Yes, I saw it. Maybe @mishig25 can give us some hint...", "fixed https://huggingface.co/docs/datasets/v2.16.0/en/index", "Still missing 2.16.1.", "> St...
MEMBER
We do not have the online docs for the latest minor release 2.16 (2.16.0 nor 2.16.1). In the online docs, the latest version appearing is 2.15.0: https://huggingface.co/docs/datasets/index ![Screenshot from 2024-01-09 08-43-08](https://github.com/huggingface/datasets/assets/8515462/83613222-867f-41f4-8833-7a4a765...
2,070,251,122
I_kwDODunzps57ZYZy
6,569
WebDataset ignores features defined in YAML or passed to load_dataset
closed
completed
2024-01-08T11:24:21
2024-01-11T16:11:06
2024-01-11T16:11:05Z
https://github.com/huggingface/datasets/issues/6569
lhoestq
[]
[ "lhoestq" ]
[]
MEMBER
we should not override if the features exist already https://github.com/huggingface/datasets/blob/d26abadce0b884db32382b92422d8a6aa997d40a/src/datasets/packaged_modules/webdataset/webdataset.py#L78-L85
2,069,922,151
I_kwDODunzps57YIFn
6,568
keep_in_memory=True does not seem to work
open
2024-01-08T08:03:58
2024-01-13T04:53:04
https://github.com/huggingface/datasets/issues/6568
kopyl
[]
[]
[ "Seems like I just used the old code which did not have `keep_in_memory=True` argument, sorry.\r\n\r\nAlthough i encountered a different problem – at 97% my python process just hung for around 11 minutes with no logs (when running dataset.map without `keep_in_memory=True` over around 3 million of dataset samples).....
NONE
UPD: [Fixed](https://github.com/huggingface/datasets/issues/6568#issuecomment-1880817794) . But a new issue came up :(
2,069,808,842
I_kwDODunzps57XsbK
6,567
AttributeError: 'str' object has no attribute 'to'
closed
completed
2024-01-08T06:40:21
2024-01-08T11:56:19
2024-01-08T10:03:17Z
https://github.com/huggingface/datasets/issues/6567
andysingal
[]
[]
[ "I think you are reporting an issue with the `transformers` library. Note this is the repository of the `datasets` library. I recommend that you open an issue in their repository: https://github.com/huggingface/transformers/issues\r\n\r\nEDIT: I have not the rights to transfer the issue\r\n~~I am transferring your ...
NONE
### Describe the bug ``` -------------------------------------------------------------------------- AttributeError Traceback (most recent call last) [<ipython-input-6-80c6086794e8>](https://localhost:8080/#) in <cell line: 10>() 8 report_to="wandb") 9 ---> 10 trainer =...
2,069,495,429
I_kwDODunzps57Wf6F
6,566
I train controlnet_sdxl in bf16 datatype, got unsupported ERROR in datasets
closed
completed
2024-01-08T02:37:03
2024-06-02T14:24:39
2024-05-17T09:40:14Z
https://github.com/huggingface/datasets/issues/6566
HelloWorldBeginner
[ "bug" ]
[]
[ "I also see the same error and get passed it by casting that line to float. \r\n\r\nso `for x in obj.detach().cpu().numpy()` becomes `for x in obj.detach().to(torch.float).cpu().numpy()`\r\n\r\nI got the idea from [this ](https://github.com/kohya-ss/sd-webui-additional-networks/pull/128/files) PR where someone was...
NONE
### Describe the bug ``` Traceback (most recent call last): File "train_controlnet_sdxl.py", line 1252, in <module> main(args) File "train_controlnet_sdxl.py", line 1013, in main train_dataset = train_dataset.map(compute_embeddings_fn, batched=True, new_fingerprint=new_fingerprint) File "/home/mini...
2,068,939,670
I_kwDODunzps57UYOW
6,565
`drop_last_batch=True` for IterableDataset map function is ignored with multiprocessing DataLoader
closed
completed
2024-01-07T02:46:50
2025-03-08T09:46:05
2024-01-11T16:10:31Z
https://github.com/huggingface/datasets/issues/6565
naba89
[]
[]
[ "My current workaround this issue is to return `None` in the second element and then filter out samples which have `None` in them.\r\n\r\n```python\r\ndef merge_samples(batch):\r\n if len(batch['a']) == 1:\r\n batch['c'] = [batch['a'][0]]\r\n batch['d'] = [None]\r\n else:\r\n batch['c'] ...
NONE
### Describe the bug Scenario: - Interleaving two iterable datasets of unequal lengths (`all_exhausted`), followed by a batch mapping with batch size 2 to effectively merge the two datasets and get a sample from each dataset in a single batch, with `drop_last_batch=True` to skip the last batch in case it doesn't ha...
2,068,893,194
I_kwDODunzps57UM4K
6,564
`Dataset.filter` missing `with_rank` parameter
closed
completed
2024-01-06T23:48:13
2024-01-29T16:36:55
2024-01-29T16:36:54Z
https://github.com/huggingface/datasets/issues/6564
kopyl
[]
[]
[ "Thanks for reporting! I've opened a PR with a fix", "@mariosasko thank you very much :)" ]
NONE
### Describe the bug The issue shall be open: https://github.com/huggingface/datasets/issues/6435 When i try to pass `with_rank` to `Dataset.filter()`, i get this: `Dataset.filter() got an unexpected keyword argument 'with_rank'` ### Steps to reproduce the bug Run notebook: https://colab.research.google.com...
2,068,302,402
I_kwDODunzps57R8pC
6,563
`ImportError`: cannot import name 'insecure_hashlib' from 'huggingface_hub.utils' (.../huggingface_hub/utils/__init__.py)
closed
completed
2024-01-06T02:28:54
2024-03-14T02:59:42
2024-01-06T16:13:27Z
https://github.com/huggingface/datasets/issues/6563
wasertech
[]
[]
[ "@Wauplin Do you happen to know what's up?", "<del>Installing `datasets` from `main` did the trick so I guess it will be fixed in the next release.\r\n\r\nNVM https://github.com/huggingface/datasets/blob/d26abadce0b884db32382b92422d8a6aa997d40a/src/datasets/utils/info_utils.py#L5", "@wasertech upgrading `huggin...
NONE
### Describe the bug Yep its not [there](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/__init__.py) anymore. ```text + python /home/trainer/sft_train.py --model_name cognitivecomputations/dolphin-2.2.1-mistral-7b --dataset_name wasertech/OneOS --load_in_4bit --use_peft --batch_...
2,067,904,504
I_kwDODunzps57Qbf4
6,562
datasets.DownloadMode.FORCE_REDOWNLOAD use cache to download dataset features with load_dataset function
open
2024-01-05T19:10:25
2024-01-05T19:10:25
https://github.com/huggingface/datasets/issues/6562
LsTam91
[]
[]
[]
NONE
### Describe the bug I have updated my dataset by adding a new feature, and push it to the hub. When I want to download it on my machine which contain the old version by using `datasets.load_dataset("your_dataset_name", download_mode=datasets.DownloadMode.FORCE_REDOWNLOAD)` I get an error (paste bellow). Seems that...
2,067,404,951
I_kwDODunzps57OhiX
6,561
Document YAML configuration with "data_dir"
closed
completed
2024-01-05T14:03:33
2026-04-09T10:40:24
2026-04-09T10:40:24Z
https://github.com/huggingface/datasets/issues/6561
severo
[ "documentation" ]
[ "krishna2426" ]
[ "In particular, I would like to have an example of how to replace the following configuration (from https://huggingface.co/docs/hub/datasets-manual-configuration#splits)\r\n\r\n```\r\n---\r\nconfigs:\r\n- config_name: default\r\n data_files:\r\n - split: train\r\n path: \"data/*.csv\"\r\n - split: test\r\n ...
COLLABORATOR
See https://huggingface.co/datasets/uonlp/CulturaX/discussions/15#6597e83f185db94370d6bf50 for reference
2,065,637,625
I_kwDODunzps57HyD5
6,560
Support Video
closed
completed
2024-01-04T13:10:58
2024-08-23T09:51:27
2024-08-23T09:51:27Z
https://github.com/huggingface/datasets/issues/6560
yuvalkirstain
[ "duplicate", "enhancement" ]
[]
[ "duplicate of #5225" ]
NONE
### Feature request HF datasets are awesome in supporting text and images. Will be great to see such a support in videos :) ### Motivation Video generation :) ### Your contribution Will probably be limited to raising this feature request ;)
2,065,118,332
I_kwDODunzps57FzR8
6,559
Latest version 2.16.1, when load dataset error occurs. ValueError: BuilderConfig 'allenai--c4' not found. Available: ['default']
closed
completed
2024-01-04T07:04:48
2024-04-03T10:40:53
2024-01-05T01:26:25Z
https://github.com/huggingface/datasets/issues/6559
zhulinJulia24
[]
[]
[ "Hi ! The \"allenai--c4\" config doesn't exist (this naming schema comes from old versions of `datasets`)\r\n\r\nYou can load it this way instead:\r\n\r\n```python\r\nfrom datasets import load_dataset\r\ncache_dir = 'path/to/your/cache/directory'\r\ndataset = load_dataset('allenai/c4', data_files={'train': 'en/c4-t...
NONE
### Describe the bug python script is: ``` from datasets import load_dataset cache_dir = 'path/to/your/cache/directory' dataset = load_dataset('allenai/c4','allenai--c4', data_files={'train': 'en/c4-train.00000-of-01024.json.gz'}, split='train', use_auth_token=False, cache_dir=cache_dir) ``` the script su...
2,064,885,984
I_kwDODunzps57E6jg
6,558
OSError: image file is truncated (1 bytes not processed) #28323
closed
completed
2024-01-04T02:15:13
2024-02-21T00:38:12
2024-02-21T00:38:12Z
https://github.com/huggingface/datasets/issues/6558
andysingal
[]
[]
[ "You can add \r\n\r\n```python\r\nfrom PIL import ImageFile\r\nImageFile.LOAD_TRUNCATED_IMAGES = True\r\n```\r\n\r\nafter the imports to be able to read truncated images." ]
NONE
### Describe the bug ``` --------------------------------------------------------------------------- OSError Traceback (most recent call last) Cell In[24], line 28 23 return example 25 # Filter the dataset 26 # filtered_dataset = dataset.filter(contains_number...
2,063,839,916
I_kwDODunzps57A7Ks
6,554
Parquet exports are used even if revision is passed
closed
completed
2024-01-03T11:32:26
2024-02-02T10:35:29
2024-02-02T10:35:29Z
https://github.com/huggingface/datasets/issues/6554
albertvillanova
[ "bug" ]
[ "albertvillanova" ]
[ "I don't think this bug is a thing ? Do you have some code that leads to this issue ?" ]
MEMBER
We should not used Parquet exports if `revision` is passed. I think this is a regression.
2,063,474,183
I_kwDODunzps56_h4H
6,553
Cannot import name 'load_dataset' from .... module ‘datasets’
closed
completed
2024-01-03T08:18:21
2024-02-21T00:38:24
2024-02-21T00:38:24Z
https://github.com/huggingface/datasets/issues/6553
ciaoyizhen
[]
[]
[ "I don't know My conpany conputer cannot work. but in my computer, it work?", "Do you have a folder in your working directory called datasets?" ]
NONE
### Describe the bug use python -m pip install datasets to install ### Steps to reproduce the bug from datasets import load_dataset ### Expected behavior it doesn't work ### Environment info datasets version==2.15.0 python == 3.10.12 linux version I don't know??
2,063,157,187
I_kwDODunzps56-UfD
6,552
Loading a dataset from Google Colab hangs at "Resolving data files".
closed
completed
2024-01-03T02:18:17
2024-01-08T10:09:04
2024-01-08T10:09:04Z
https://github.com/huggingface/datasets/issues/6552
KelSolaar
[]
[]
[ "This bug comes from the `huggingface_hub` library, see: https://github.com/huggingface/huggingface_hub/issues/1952\r\n\r\nA fix is provided at https://github.com/huggingface/huggingface_hub/pull/1953. Feel free to install `huggingface_hub` from this PR, or wait for it to be merged and the new version of `huggingfa...
NONE
### Describe the bug Hello, I'm trying to load a dataset from Google Colab but the process hangs at `Resolving data files`: ![image](https://github.com/huggingface/datasets/assets/99779/7175ad85-e571-46ed-9f87-92653985777d) It is happening when the `_get_origin_metadata` definition is invoked: ```python d...
2,062,420,259
I_kwDODunzps567gkj
6,549
Loading from hf hub with clearer error message
open
2024-01-02T13:26:34
2024-01-02T14:06:49
https://github.com/huggingface/datasets/issues/6549
thomwolf
[ "enhancement" ]
[]
[ "Maybe we can add a helper message like `Maybe try again using \"hf://path/without/resolve\"` if the path contains `/resolve/` ?\r\n\r\ne.g.\r\n\r\n```\r\nFileNotFoundError: Unable to find 'hf://datasets/HuggingFaceTB/eval_data/resolve/main/eval_data_context_and_answers.json'\r\nIt looks like you used parts of the ...
MEMBER
### Feature request Shouldn't this kinda work ? ``` Dataset.from_json("hf://datasets/HuggingFaceTB/eval_data/resolve/main/eval_data_context_and_answers.json") ``` I got an error ``` File ~/miniconda3/envs/datatrove/lib/python3.10/site-packages/datasets/data_files.py:380, in resolve_pattern(pattern, base_path, al...
2,061,047,984
I_kwDODunzps562Riw
6,548
Skip if a dataset has issues
open
2023-12-31T12:41:26
2024-01-02T10:33:17
https://github.com/huggingface/datasets/issues/6548
hadianasliwa
[]
[]
[ "It looks like a transient DNS issue. It should work fine now if you try again.\r\n\r\nThere is no parameter in load_dataset to skip failed downloads. In your case it would have skipped every single subsequent download until the DNS issue was resolved anyway." ]
NONE
### Describe the bug Hello everyone, I'm using **load_datasets** from **huggingface** to download the datasets and I'm facing an issue, the download starts but it reaches some state and then fails with the following error: Couldn't reach https://huggingface.co/datasets/wikimedia/wikipedia/resolve/4cb9b0d719291f1a10...
2,060,789,507
I_kwDODunzps561ScD
6,545
`image` column not automatically inferred if image dataset only contains 1 image
closed
completed
2023-12-30T16:17:29
2024-01-09T13:06:31
2024-01-09T13:06:31Z
https://github.com/huggingface/datasets/issues/6545
apolinario
[]
[]
[]
NONE
### Describe the bug By default, the standard Image Dataset maps out `file_name` to `image` when loading an Image Dataset. However, if the dataset contains only 1 image, this does not take place ### Steps to reproduce the bug Input (dataset with one image `multimodalart/repro_1_image`) ```py from data...
2,059,198,575
I_kwDODunzps56vOBv
6,542
Datasets : wikipedia 20220301.en error
closed
completed
2023-12-29T08:34:51
2024-01-02T13:21:06
2024-01-02T13:20:30Z
https://github.com/huggingface/datasets/issues/6542
ppx666
[]
[]
[ "Hi ! We now recommend using the `wikimedia/wikipedia` dataset, can you try loading this one instead ?\r\n\r\n```python\r\nwiki_dataset = load_dataset(\"wikimedia/wikipedia\", \"20231101.en\")\r\n```", "This bug has been fixed in `2.16.1` thanks to https://github.com/huggingface/datasets/pull/6544, feel free to ...
NONE
### Describe the bug When I used load_dataset to download this data set, the following error occurred. The main problem was that the target data did not exist. ### Steps to reproduce the bug 1.I tried downloading directly. ```python wiki_dataset = load_dataset("wikipedia", "20220301.en") ``` An exception occurre...
2,058,983,826
I_kwDODunzps56uZmS
6,541
Dataset not loading successfully.
closed
completed
2023-12-29T01:35:47
2024-01-17T00:40:46
2024-01-17T00:40:45Z
https://github.com/huggingface/datasets/issues/6541
hisushanta
[]
[]
[ "This is a problem with your environment. You should be able to fix it by upgrading `numpy` based on [this](https://github.com/numpy/numpy/issues/23570) issue.", "Bro I already update numpy package.", "Then, this shouldn't throw an error on your machine:\r\n```python\r\nimport numpy\r\nnumpy._no_nep50_warning\r...
NONE
### Describe the bug When I run down the below code shows this error: AttributeError: module 'numpy' has no attribute '_no_nep50_warning' I also added this issue in transformers library please check out: [link](https://github.com/huggingface/transformers/issues/28099) ### Steps to reproduce the bug ## Reproduction ...
2,058,965,157
I_kwDODunzps56uVCl
6,540
Extreme inefficiency for `save_to_disk` when merging datasets
open
2023-12-29T00:44:35
2023-12-30T15:05:48
https://github.com/huggingface/datasets/issues/6540
KatarinaYuan
[]
[]
[ "Concatenating datasets doesn't create any indices mapping - so flattening indices is not needed (unless you shuffle the dataset).\r\nCan you share the snippet of code you are using to merge your datasets and save them to disk ?" ]
NONE
### Describe the bug Hi, I tried to merge in total 22M sequences of data, where each sequence is of maximum length 2000. I found that merging these datasets and then `save_to_disk` is extremely slow because of flattening the indices. Wondering if you have any suggestions or guidance on this. Thank you very much! ###...
2,058,493,960
I_kwDODunzps56siAI
6,539
'Repo card metadata block was not found' when loading a pragmeval dataset
open
2023-12-28T14:18:25
2023-12-28T14:18:37
https://github.com/huggingface/datasets/issues/6539
lambdaofgod
[]
[]
[]
NONE
### Describe the bug I can't load dataset subsets of 'pragmeval'. The funny thing is I ran the dataset author's [colab notebook](https://colab.research.google.com/drive/1sg--LF4z7XR1wxAOfp0-3d4J6kQ9nj_A?usp=sharing) and it works just fine. I tried to install exactly the same packages that are installed on colab usi...
2,057,377,630
I_kwDODunzps56oRde
6,538
ImportError: cannot import name 'SchemaInferenceError' from 'datasets.arrow_writer' (/opt/conda/lib/python3.10/site-packages/datasets/arrow_writer.py)
closed
completed
2023-12-27T13:31:16
2024-01-03T10:06:47
2024-01-03T10:04:58Z
https://github.com/huggingface/datasets/issues/6538
Sonali-Behera-TRT
[]
[]
[ "Hi ! Are you sure you have `datasets` 2.16 ? I just checked and on 2.16 I can run `from datasets.arrow_writer import SchemaInferenceError` without error", "I have the same issue - using with datasets version 2.16.1. Also this is on a kaggle notebook - other people with the same issue also seem to be having it on...
NONE
### Describe the bug While importing from packages getting the error Code: ``` import os import torch from datasets import load_dataset, Dataset from transformers import ( AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig, HfArgumentParser, TrainingArguments, pipeline, ...
2,057,132,173
I_kwDODunzps56nViN
6,537
Adding support for netCDF (*.nc) files
open
2023-12-27T09:27:29
2023-12-27T20:46:53
https://github.com/huggingface/datasets/issues/6537
shermansiu
[ "enhancement" ]
[]
[ "Related to #3113 ", "Conceptually, we can use xarray to load the netCDF file, then xarray -> pandas -> pyarrow.", "I'd still need to verify that such a conversion would be lossless, especially for multi-dimensional data." ]
NONE
### Feature request netCDF (*.nc) is a file format for storing multidimensional scientific data, which is used by packages like `xarray` (labelled multi-dimensional arrays in Python). It would be nice to have native support for netCDF in `datasets`. ### Motivation When uploading *.nc files onto Huggingface Hub throu...
2,056,863,239
I_kwDODunzps56mT4H
6,536
datasets.load_dataset raises FileNotFoundError for datasets==2.16.0
closed
completed
2023-12-27T03:15:48
2023-12-30T18:58:04
2023-12-30T15:54:00Z
https://github.com/huggingface/datasets/issues/6536
ArvinZhuang
[]
[ "lhoestq" ]
[ "Hi ! Thanks for reporting\r\n\r\nThis is a bug in 2.16.0 for some datasets when `cache_dir` is a relative path. I opened https://github.com/huggingface/datasets/pull/6543 to fix this", "We just released 2.16.1 with a fix:\r\n\r\n```\r\npip install -U datasets\r\n```" ]
NONE
### Describe the bug Seems `datasets.load_dataset` raises FileNotFoundError for some hub datasets with the latest `datasets==2.16.0` ### Steps to reproduce the bug For example `pip install datasets==2.16.0` then ```python import datasets datasets.load_dataset("wentingzhao/anthropic-hh-first-prompt", cache_di...
2,056,264,339
I_kwDODunzps56kBqT
6,535
IndexError: Invalid key: 47682 is out of bounds for size 0 while using PEFT
open
2023-12-26T10:14:33
2024-02-05T08:42:31
https://github.com/huggingface/datasets/issues/6535
MahavirDabas18
[]
[]
[ "@sabman @pvl @kashif @vigsterkr ", "This is surely the same issue as https://discuss.huggingface.co/t/indexerror-invalid-key-16-is-out-of-bounds-for-size-0/14298/25 that comes from the `transformers` `Trainer`. You should add `remove_unused_columns=False` to `TrainingArguments`\r\n\r\nAlso check your logs: the `...
NONE
### Describe the bug I am trying to fine-tune the t5 model on the paraphrasing task. While running the same code without- model = get_peft_model(model, config) the model trains without any issues. However, using the model returned from get_peft_model raises the following error due to datasets- IndexError: Inv...
2,056,002,548
I_kwDODunzps56jBv0
6,534
How to configure multiple folders in the same zip package
open
2023-12-26T03:56:20
2023-12-26T06:31:16
https://github.com/huggingface/datasets/issues/6534
d710055071
[]
[]
[ "@albertvillanova" ]
CONTRIBUTOR
How should I write "config" in readme when all the data, such as train test, is in a zip file train floder and test floder in data.zip
2,055,929,101
I_kwDODunzps56iv0N
6,533
ted_talks_iwslt | Error: Config name is missing
closed
completed
2023-12-26T00:38:18
2023-12-30T18:58:21
2023-12-30T16:09:50Z
https://github.com/huggingface/datasets/issues/6533
rayliuca
[]
[ "lhoestq" ]
[ "Hi ! Thanks for reporting. I opened https://github.com/huggingface/datasets/pull/6544 to fix this", "We just released 2.16.1 with a fix:\r\n\r\n```\r\npip install -U datasets\r\n```" ]
NONE
### Describe the bug Running load_dataset using the newest `datasets` library like below on the ted_talks_iwslt using year pair data will throw an error "Config name is missing" see also: https://huggingface.co/datasets/ted_talks_iwslt/discussions/3 likely caused by #6493, where the `and not config_kwargs` part...
2,055,631,201
I_kwDODunzps56hnFh
6,532
[Feature request] Indexing datasets by a customly-defined id field to enable random access dataset items via the id
open
2023-12-25T11:37:10
2025-05-05T13:25:24
https://github.com/huggingface/datasets/issues/6532
Yu-Shi
[ "enhancement" ]
[]
[ "You can simply use a python dict as index:\r\n\r\n```python\r\n>>> from datasets import load_dataset\r\n>>> ds = load_dataset(\"BeIR/dbpedia-entity\", \"corpus\", split=\"corpus\")\r\n>>> index = {key: idx for idx, key in enumerate(ds[\"_id\"])}\r\n>>> ds[index[\"<dbpedia:Pikachu>\"]]\r\n{'_id': '<dbpedia:Pikachu>...
NONE
### Feature request Some datasets may contain an id-like field, for example the `id` field in [wikimedia/wikipedia](https://huggingface.co/datasets/wikimedia/wikipedia) and the `_id` field in [BeIR/dbpedia-entity](https://huggingface.co/datasets/BeIR/dbpedia-entity). HF datasets support efficient random access via r...
2,054,817,609
I_kwDODunzps56egdJ
6,530
Impossible to save a mapped dataset to disk
open
2023-12-23T15:18:27
2023-12-24T09:40:30
https://github.com/huggingface/datasets/issues/6530
kopyl
[]
[]
[ "I solved it with `train_dataset.with_format(None)`\r\nBut then faced some more issues (which i later solved too).\r\n\r\nHuggingface does not seem to care, so I do. Here is an updated training script which saves a pre-processed (mapped) dataset to your local directory if you specify `--save_precomputed_data_dir=DI...
NONE
### Describe the bug I want to play around with different hyperparameters when training but don't want to re-map my dataset with 3 million samples each time for tens of hours when I [fully fine-tune SDXL](https://github.com/huggingface/diffusers/blob/main/examples/text_to_image/train_text_to_image_sdxl.py). After...
2,054,209,449
I_kwDODunzps56cL-p
6,529
Impossible to only download a test split
open
2023-12-22T16:56:32
2024-02-02T00:05:04
https://github.com/huggingface/datasets/issues/6529
ysig
[]
[]
[ "The only way right now is to load with streaming=True", "This feature has been proposed for a long time. I'm looking forward to the implementation. On clusters `streaming=True` is not an option since we do not have Internet on compute nodes. See: https://github.com/huggingface/datasets/discussions/1896#discussio...
NONE
I've spent a significant amount of time trying to locate the split object inside my _split_generators() custom function. Then after diving [in the code](https://github.com/huggingface/datasets/blob/5ff3670c18ed34fa8ddfa70a9aa403ae6cc9ad54/src/datasets/load.py#L2558) I realized that `download_and_prepare` is executed b...
2,053,076,311
I_kwDODunzps56X3VX
6,524
Streaming the Pile: Missing Files
closed
completed
2023-12-21T21:25:09
2026-04-24T08:36:44
2023-12-22T09:17:05Z
https://github.com/huggingface/datasets/issues/6524
FelixLabelle
[]
[ "albertvillanova" ]
[ "Hello @FelixLabelle,\r\n\r\nAs you can see in the Community tab of the corresponding dataset, it is a known issue: https://huggingface.co/datasets/EleutherAI/pile/discussions/15\r\n\r\nThe data has been taken down due to reported copyright infringement.\r\n\r\nFeel free to continue the discussion there.", "Gener...
NONE
### Describe the bug The pile does not stream, a "File not Found error" is returned. It looks like the Pile's files have been moved. ### Steps to reproduce the bug To reproduce run the following code: ``` from datasets import load_dataset dataset = load_dataset('EleutherAI/pile', 'en', split='train', streamin...
2,052,332,528
I_kwDODunzps56VBvw
6,522
Loading HF Hub Dataset (private org repo) fails to load all features
open
2023-12-21T12:26:35
2023-12-21T13:24:31
https://github.com/huggingface/datasets/issues/6522
versipellis
[]
[]
[]
NONE
### Describe the bug When pushing a `Dataset` with multiple `Features` (`input`, `output`, `tags`) to Huggingface Hub (private org repo), and later downloading the `Dataset`, only `input` and `output` load - I believe the expected behavior is for all `Features` to be loaded by default? ### Steps to reproduce the ...
2,052,229,538
I_kwDODunzps56Uomi
6,521
The order of the splits is not preserved
closed
completed
2023-12-21T11:17:27
2023-12-22T11:36:15
2023-12-22T11:36:15Z
https://github.com/huggingface/datasets/issues/6521
albertvillanova
[ "bug" ]
[ "albertvillanova" ]
[ "After investigation, I think the issue was introduced by the use of the Parquet export:\r\n- #6448\r\n\r\nI am proposing a fix.\r\n\r\nCC: @lhoestq " ]
MEMBER
We had a regression and the order of the splits is not preserved. They are alphabetically sorted, instead of preserving original "train", "validation", "test" order. Check: In branch "main" ```python In [9]: dataset = load_dataset("adversarial_qa", '"adversarialQA") In [10]: dataset Out[10]: DatasetDict({ ...
2,050,121,588
I_kwDODunzps56Ml90
6,517
Bug get_metadata_patterns arg error
closed
completed
2023-12-20T08:56:44
2023-12-22T00:24:23
2023-12-22T00:24:23Z
https://github.com/huggingface/datasets/issues/6517
d710055071
[]
[]
[]
CONTRIBUTOR
https://github.com/huggingface/datasets/blob/3f149204a2a5948287adcade5e90707aa5207a92/src/datasets/load.py#L1240C1-L1240C69 metadata_patterns = get_metadata_patterns(base_path, download_config=self.download_config)
2,049,724,251
I_kwDODunzps56LE9b
6,515
Why call http_head() when fsspec_head() succeeds
closed
completed
2023-12-20T02:25:51
2023-12-26T05:35:46
2023-12-26T05:35:46Z
https://github.com/huggingface/datasets/issues/6515
d710055071
[]
[]
[]
CONTRIBUTOR
https://github.com/huggingface/datasets/blob/a91582de288d98e94bcb5ab634ca1cfeeff544c5/src/datasets/utils/file_utils.py#L510C1-L523C14
2,048,869,151
I_kwDODunzps56H0Mf
6,513
Support huggingface-hub 0.20.0
closed
completed
2023-12-19T15:15:46
2023-12-20T08:44:45
2023-12-20T08:44:45Z
https://github.com/huggingface/datasets/issues/6513
albertvillanova
[]
[]
[]
MEMBER
CI to test the support of `huggingface-hub` 0.20.0: https://github.com/huggingface/datasets/compare/main...ci-test-huggingface-hub-v0.20.0.rc1 We need to merge: - #6510 - #6512 - #6516
2,045,152,928
I_kwDODunzps555o6g
6,507
where is glue_metric.py> @Frankie123421 what was the resolution to this?
closed
not_planned
2023-12-17T09:58:25
2023-12-18T11:42:49
2023-12-18T11:42:49Z
https://github.com/huggingface/datasets/issues/6507
Mcccccc1024
[]
[]
[]
NONE
> @Frankie123421 what was the resolution to this? use glue_metric.py instead of glue.py in load_metric _Originally posted by @Frankie123421 in https://github.com/huggingface/datasets/issues/2117#issuecomment-905093763_
2,044,975,038
I_kwDODunzps5549e-
6,506
Incorrect test set labels for RTE and CoLA datasets via load_dataset
closed
completed
2023-12-16T22:06:08
2023-12-21T09:57:57
2023-12-21T09:57:57Z
https://github.com/huggingface/datasets/issues/6506
emreonal11
[]
[]
[ "As this is a specific issue of the \"glue\" dataset, I have transferred it to the dataset Discussion page: https://huggingface.co/datasets/glue/discussions/15\r\n\r\nLet's continue the discussion there!" ]
NONE
### Describe the bug The test set labels for the RTE and CoLA datasets when loading via datasets load_dataset are all -1. Edit: It appears this is also the case for every other dataset except for MRPC (stsb, sst2, qqp, mnli (both matched and mismatched), qnli, wnli, ax). Is this intended behavior to safeguard the t...
2,044,721,288
I_kwDODunzps553_iI
6,505
Got stuck when I trying to load a dataset
open
2023-12-16T11:51:07
2024-12-24T16:45:52
https://github.com/huggingface/datasets/issues/6505
yirenpingsheng
[]
[]
[ "I ran into the same problem when I used a server cluster (Slurm system managed) that couldn't load any of the huggingface datasets or models, but it worked on my laptop. I suspected some system configuration-related problem, but I had no idea. \r\nMy problems are consistent with [issue #2618](https://github.com/hu...
NONE
### Describe the bug Hello, everyone. I met a problem when I am trying to load a data file using load_dataset method on a Debian 10 system. The data file is not very large, only 1.63MB with 600 records. Here is my code: from datasets import load_dataset dataset = load_dataset('json', data_files='mypath/oaast_r...
2,044,541,154
I_kwDODunzps553Tji
6,504
Error Pushing to Hub
closed
completed
2023-12-16T01:05:22
2023-12-16T06:20:53
2023-12-16T06:20:53Z
https://github.com/huggingface/datasets/issues/6504
Jiayi-Pan
[]
[]
[]
NONE
### Describe the bug Error when trying to push a dataset in a special format to hub ### Steps to reproduce the bug ``` import datasets from datasets import Dataset dataset_dict = { "filename": ["apple", "banana"], "token": [[[1,2],[3,4]],[[1,2],[3,4]]], "label": [0, 1], } dataset = Dataset.from_d...
2,043,377,240
I_kwDODunzps55y3ZY
6,501
OverflowError: value too large to convert to int32_t
open
2023-12-15T10:10:21
2025-06-27T04:27:14
https://github.com/huggingface/datasets/issues/6501
zhangfan-algo
[]
[]
[ "+1\n" ]
NONE
### Describe the bug ![image](https://github.com/huggingface/datasets/assets/47747764/f58044fb-ddda-48b6-ba68-7bbfef781630) ### Steps to reproduce the bug just loading datasets ### Expected behavior how can I fix it ### Environment info pip install /mnt/cluster/zhangfan/study_info/LLaMA-Factory/peft-0.6.0-py3...
2,041,994,274
I_kwDODunzps55tlwi
6,497
Support setting a default config name in push_to_hub
closed
completed
2023-12-14T15:59:03
2023-12-18T11:50:04
2023-12-18T11:50:04Z
https://github.com/huggingface/datasets/issues/6497
albertvillanova
[ "enhancement" ]
[ "albertvillanova" ]
[]
MEMBER
In order to convert script-datasets to no-script datasets, we need to support setting a default config name for those scripts that set one.
2,041,589,386
I_kwDODunzps55sC6K
6,496
Error when writing a dataset to HF Hub: A commit has happened since. Please refresh and try again.
open
2023-12-14T11:24:54
2023-12-14T12:22:21
https://github.com/huggingface/datasets/issues/6496
GeorgesLorre
[]
[]
[ "I transferred from datasets-server, since the issue is more about `datasets` and the integration with `huggingface_hub`." ]
NONE
**Describe the bug** Getting a `412 Client Error: Precondition Failed` when trying to write a dataset to the HF hub. ``` huggingface_hub.utils._errors.HfHubHTTPError: 412 Client Error: Precondition Failed for url: https://huggingface.co/api/datasets/GLorr/test-dask/commit/main (Request ID: Root=1-657ae26f-3bd92b...
2,039,684,839
I_kwDODunzps55kx7n
6,494
Image Data loaded Twice
open
2023-12-13T13:11:42
2023-12-13T13:11:42
https://github.com/huggingface/datasets/issues/6494
ArcaneLex
[]
[]
[]
NONE
### Describe the bug ![1702472610561](https://github.com/huggingface/datasets/assets/28867010/4b7ef5e7-32c3-4b73-84cb-5de059caa0b6) When I learn from https://huggingface.co/docs/datasets/image_load and try to load image data from a folder. I noticed that the image was read twice in the returned data. As you can see i...
2,039,708,529
I_kwDODunzps55k3tx
6,495
Newline characters don't behave as expected when calling dataset.info
open
2023-12-12T23:07:51
2023-12-13T13:24:22
https://github.com/huggingface/datasets/issues/6495
gerald-wrona
[]
[]
[]
NONE
### System Info - `transformers` version: 4.32.1 - Platform: Windows-10-10.0.19045-SP0 - Python version: 3.11.5 - Huggingface_hub version: 0.15.1 - Safetensors version: 0.3.2 - Accelerate version: not installed - Accelerate config: not found - PyTorch version (GPU?): 2.1.1+cpu (False) - Tensorflow version (GPU...
2,037,204,892
I_kwDODunzps55bUec
6,490
`load_dataset(...,save_infos=True)` not working without loading script
open
2023-12-12T08:09:18
2023-12-12T08:36:22
https://github.com/huggingface/datasets/issues/6490
morganveyret
[]
[]
[ "Also, once the README.md exists in the python environment it is used when loading another dataset in the same format (e.g. json) since it always resolves the path to the same directory.\r\nThe consequence here is any other dataset won't load because of infos mismatch.\r\nTo reproduce this aspect:\r\n1. Do a `load_...
NONE
### Describe the bug It seems that saving a dataset infos back into the card file is not working for datasets without a loading script. After tracking the problem a bit it looks like saving the infos uses `Builder.get_imported_module_dir()` as its destination directory. Internally this is a call to `inspect.getfil...
2,036,743,777
I_kwDODunzps55Zj5h
6,489
load_dataset imageflder for aws s3 path
open
2023-12-12T00:08:43
2023-12-12T00:09:27
https://github.com/huggingface/datasets/issues/6489
segalinc
[ "enhancement" ]
[]
[]
NONE
### Feature request I would like to load a dataset from S3 using the imagefolder option something like `dataset = datasets.load_dataset('imagefolder', data_dir='s3://.../lsun/train/bedroom', fs=S3FileSystem(), streaming=True) ` ### Motivation no need of data_files ### Your contribution no experience...
2,035,899,898
I_kwDODunzps55WV36
6,488
429 Client Error
open
2023-12-11T15:06:01
2024-06-20T05:55:45
https://github.com/huggingface/datasets/issues/6488
sasaadi
[]
[]
[ "Transferring repos as this is a datasets issue ", "I'm getting a similar issue even though I've already downloaded the dataset 😅 \r\n\r\n```\r\nhuggingface_hub.utils._errors.HfHubHTTPError: 429 Client Error: Too Many Requests for url: https://huggingface.co/api/datasets/HuggingFaceM4/WebSight\r\n```" ]
NONE
Hello, I was downloading the following dataset and after 20% of data was downloaded, I started getting error 429. It is not resolved since a few days. How should I resolve it? Thanks Dataset: https://huggingface.co/datasets/cerebras/SlimPajama-627B Error: `requests.exceptions.HTTPError: 429 Client Error: Too M...
2,035,141,884
I_kwDODunzps55Tcz8
6,485
FileNotFoundError: [Errno 2] No such file or directory: 'nul'
closed
completed
2023-12-11T08:52:13
2023-12-14T08:09:08
2023-12-14T08:09:08Z
https://github.com/huggingface/datasets/issues/6485
amanyara
[]
[]
[ "Hi! It seems like the problem is your environment. Maybe this issue can help: https://github.com/pytest-dev/pytest/issues/9519. " ]
NONE
### Describe the bug it seems that sth wrong with my terrible "bug body" life, When i run this code, "import datasets" i meet this error FileNotFoundError: [Errno 2] No such file or directory: 'nul' ![image](https://github.com/huggingface/datasets/assets/73683903/3973c120-ebb1-42b7-bede-b9de053e861d) ![image](htt...
2,032,946,981
I_kwDODunzps55LE8l
6,483
Iterable Dataset: rename column clashes with remove column
closed
completed
2023-12-08T16:11:30
2023-12-08T16:27:16
2023-12-08T16:27:04Z
https://github.com/huggingface/datasets/issues/6483
sanchit-gandhi
[ "streaming" ]
[]
[ "Column \"text\" doesn't exist anymore so you can't remove it", "You can get the expected result by fixing typos in the snippet :)\r\n```python\r\nfrom datasets import load_dataset\r\n\r\n# load LS in streaming mode\r\ndataset = load_dataset(\"librispeech_asr\", \"clean\", split=\"validation\", streaming=True)\r\...
CONTRIBUTOR
### Describe the bug Suppose I have a two iterable datasets, one with the features: * `{"audio", "text", "column_a"}` And the other with the features: * `{"audio", "sentence", "column_b"}` I want to combine both datasets using `interleave_datasets`, which requires me to unify the column names. I would typic...
2,033,333,294
I_kwDODunzps55MjQu
6,484
[Feature Request] Dataset versioning
open
2023-12-08T16:01:35
2023-12-11T19:13:46
https://github.com/huggingface/datasets/issues/6484
kenfus
[]
[]
[ "Hello @kenfus, this is meant to be possible to do yes. Let me ping @lhoestq or @mariosasko from the `datasets` team (`huggingface_hub` is only the underlying library to download files from the Hub but here it looks more like a `datasets` problem). ", "Hi! https://github.com/huggingface/datasets/pull/6459 will fi...
NONE
**Is your feature request related to a problem? Please describe.** I am working on a project, where I would like to test different preprocessing methods for my ML-data. Thus, I would like to work a lot with revisions and compare them. Currently, I was not able to make it work with the revision keyword because it was n...
2,032,650,003
I_kwDODunzps55J8cT
6,481
using torchrun, save_to_disk suddenly shows SIGTERM
open
2023-12-08T13:22:03
2023-12-08T13:22:03
https://github.com/huggingface/datasets/issues/6481
Ariya12138
[]
[]
[]
NONE
### Describe the bug When I run my code using the "torchrun" command, when the code reaches the "save_to_disk" part, suddenly I get the following warning and error messages: Because the dataset is too large, the "save_to_disk" function splits it into 70 parts for saving. However, an error occurs suddenly when it reac...
2,028,071,596
I_kwDODunzps544eqs
6,478
How to load data from lakefs
closed
completed
2023-12-06T09:04:11
2024-07-03T19:13:57
2024-07-03T19:13:56Z
https://github.com/huggingface/datasets/issues/6478
d710055071
[]
[]
[ "You can create a `pandas` DataFrame following [this](https://lakefs.io/data-version-control/dvc-using-python/) tutorial, and then convert this DataFrame to a `Dataset` with `datasets.Dataset.from_pandas`. For larger datasets (to memory map them), you can use `Dataset.from_generator` with a generator function that ...
CONTRIBUTOR
My dataset is stored on the company's lakefs server. How can I write code to load the dataset? It would be great if I could provide code examples or provide some references
2,028,018,596
I_kwDODunzps544Ruk
6,476
CI on windows is broken: PermissionError
closed
completed
2023-12-06T08:32:53
2023-12-06T09:17:53
2023-12-06T09:17:53Z
https://github.com/huggingface/datasets/issues/6476
albertvillanova
[ "bug" ]
[ "albertvillanova" ]
[]
MEMBER
See: https://github.com/huggingface/datasets/actions/runs/7104781624/job/19340572394 ``` FAILED tests/test_load.py::test_loading_from_the_datasets_hub - NotADirectoryError: [WinError 267] The directory name is invalid: 'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmpfcnps56i\\hf-internal-testing___dataset_with_script\...
2,027,373,734
I_kwDODunzps5410Sm
6,475
laion2B-en failed to load on Windows with PrefetchVirtualMemory failed
open
reopened
2023-12-06T00:07:34
2023-12-06T23:26:23
https://github.com/huggingface/datasets/issues/6475
doctorpangloss
[]
[]
[ "~~You will see this error if the cache dir filepath contains relative `..` paths. Use `os.path.realpath(_CACHE_DIR)` before passing it to the `load_dataset` function.~~", "This is a real issue and not related to paths.", "Based on the StackOverflow answer, this causes the error to go away:\r\n```diff\r\ndiff -...
NONE
### Describe the bug I have downloaded laion2B-en, and I'm receiving the following error trying to load it: ``` Resolving data files: 100%|██████████| 128/128 [00:00<00:00, 1173.79it/s] Traceback (most recent call last): File "D:\Art-Workspace\src\artworkspace\tokeneval\compute_frequencies.py", line 31, in <mo...
2,026,493,439
I_kwDODunzps54ydX_
6,472
CI quality is broken
closed
completed
2023-12-05T15:35:34
2023-12-06T08:17:34
2023-12-05T18:08:43Z
https://github.com/huggingface/datasets/issues/6472
albertvillanova
[ "bug", "maintenance" ]
[ "albertvillanova" ]
[]
MEMBER
See: https://github.com/huggingface/datasets/actions/runs/7100835633/job/19327734359 ``` Would reformat: src/datasets/features/image.py 1 file would be reformatted, 253 files left unchanged ```
2,024,724,319
I_kwDODunzps54rtdf
6,470
If an image in a dataset is corrupted, we get unescapable error
open
2023-12-04T20:58:49
2023-12-04T20:58:49
https://github.com/huggingface/datasets/issues/6470
chigozienri
[]
[]
[]
NONE
### Describe the bug Example discussed in detail here: https://huggingface.co/datasets/sasha/birdsnap/discussions/1 ### Steps to reproduce the bug ``` from datasets import load_dataset, VerificationMode dataset = load_dataset( 'sasha/birdsnap', split="train", verification_mode=VerificationMode.ALL_C...
2,023,174,233
I_kwDODunzps54lzBZ
6,467
New version release request
closed
completed
2023-12-04T07:08:26
2023-12-04T15:42:22
2023-12-04T15:42:22Z
https://github.com/huggingface/datasets/issues/6467
LZHgrla
[ "enhancement" ]
[]
[ "We will publish it soon (we usually do it in intervals of 1-2 months, so probably next week)", "Thanks!" ]
CONTRIBUTOR
### Feature request Hi! I am using `datasets` in library `xtuner` and am highly interested in the features introduced since v2.15.0. To avoid installation from source in our pypi wheels, we are eagerly waiting for the new release. So, Does your team have a new release plan for v2.15.1 and could you please share ...
2,022,601,176
I_kwDODunzps54jnHY
6,466
Can't align optional features of struct
closed
completed
2023-12-03T15:57:07
2024-02-15T15:19:33
2024-02-08T14:38:34Z
https://github.com/huggingface/datasets/issues/6466
Dref360
[]
[]
[ "Friendly bump, I would be happy to work on this issue once I get the go-ahead from the dev team. ", "Thanks for the PR!\r\n\r\nI'm struggling with this as well and would love to see this PR merged. My case is slightly different, with keys completely missing rather than being `None`:\r\n\r\n```\r\nds = Dataset.fr...
CONTRIBUTOR
### Describe the bug Hello! I'm currently experiencing an issue where I can't concatenate datasets if an inner field of a Feature is Optional. I have a column named `speaker`, and this holds some information about a speaker. ```python @dataclass class Speaker: name: str email: Optional[str] ``` ...
2,022,212,468
I_kwDODunzps54iIN0
6,465
`load_dataset` uses out-of-date cache instead of re-downloading a changed dataset
open
2023-12-02T21:35:17
2024-08-20T08:32:11
https://github.com/huggingface/datasets/issues/6465
mnoukhov
[]
[]
[ "Hi, thanks for reporting! https://github.com/huggingface/datasets/pull/6459 will fix this.", "I meet a similar problem as using loading scripts. I have to set download_mode='force_redownload' to load the latest script." ]
NONE
### Describe the bug When a dataset is updated on the hub, using `load_dataset` will load the locally cached dataset instead of re-downloading the updated dataset ### Steps to reproduce the bug Here is a minimal example script to 1. create an initial dataset and upload 2. download it so it is stored in cache 3. c...
2,017,433,899
I_kwDODunzps54P5kr
6,460
jsonlines files don't load with `load_dataset`
closed
completed
2023-11-29T21:20:11
2023-12-29T02:58:29
2023-12-05T13:30:53Z
https://github.com/huggingface/datasets/issues/6460
serenalotreck
[]
[]
[ "Hi @serenalotreck,\r\n\r\nWe use Apache Arrow `pyarrow` to read jsonlines and it throws an error when trying to load your data files:\r\n```python\r\nIn [1]: import pyarrow as pa\r\n\r\nIn [2]: data = pa.json.read_json(\"train.jsonl\")\r\n---------------------------------------------------------------------------\...
NONE
### Describe the bug While [the docs](https://huggingface.co/docs/datasets/upload_dataset#upload-dataset) seem to state that `.jsonl` is a supported extension for `datasets`, loading the dataset results in a `JSONDecodeError`. ### Steps to reproduce the bug Code: ``` from datasets import load_dataset dset = load_...
2,015,650,563
I_kwDODunzps54JGMD
6,457
`TypeError`: huggingface_hub.hf_file_system.HfFileSystem.find() got multiple values for keyword argument 'maxdepth'
closed
completed
2023-11-29T01:57:36
2023-11-29T15:39:03
2023-11-29T02:02:38Z
https://github.com/huggingface/datasets/issues/6457
wasertech
[]
[]
[ "Updating `fsspec>=2023.10.0` did solve the issue.", "May be it should be pinned somewhere?", "> Maybe this should go in datasets directly... anyways you can easily fix this error by updating datasets>=2.15.1.dev0.\r\n\r\n@lhoestq @mariosasko for what I understand this is a bug fixed in `datasets` already, righ...
NONE
### Describe the bug Please see https://github.com/huggingface/huggingface_hub/issues/1872 ### Steps to reproduce the bug Please see https://github.com/huggingface/huggingface_hub/issues/1872 ### Expected behavior Please see https://github.com/huggingface/huggingface_hub/issues/1872 ### Environment info Please s...
2,010,693,912
I_kwDODunzps532MEY
6,451
Unable to read "marsyas/gtzan" data
closed
completed
2023-11-25T15:13:17
2023-12-01T12:53:46
2023-11-27T09:36:25Z
https://github.com/huggingface/datasets/issues/6451
gerald-wrona
[]
[]
[ "Hi! We've merged a [PR](https://huggingface.co/datasets/marsyas/gtzan/discussions/1) that fixes the script's path logic on Windows.", "I have transferred the discussion to the corresponding dataset: https://huggingface.co/datasets/marsyas/gtzan/discussions/2\r\n\r\nLet's continue there.", "@mariosasko @albertv...
NONE
Hi, this is my code and the error: ``` from datasets import load_dataset gtzan = load_dataset("marsyas/gtzan", "all") ``` [error_trace.txt](https://github.com/huggingface/datasets/files/13464397/error_trace.txt) [audio_yml.txt](https://github.com/huggingface/datasets/files/13464410/audio_yml.txt) Python 3.11.5 ...
2,009,491,386
I_kwDODunzps53xme6
6,450
Support multiple image/audio columns in ImageFolder/AudioFolder
closed
completed
2023-11-24T10:34:09
2023-11-28T11:07:17
2023-11-24T17:24:38Z
https://github.com/huggingface/datasets/issues/6450
severo
[ "duplicate", "enhancement" ]
[]
[ "A duplicate of https://github.com/huggingface/datasets/issues/5760" ]
COLLABORATOR
### Feature request Have a metadata.csv file with multiple columns that point to relative image or audio files. ### Motivation Currently, ImageFolder allows one column, called `file_name`, pointing to relative image files. On the same model, AudioFolder allows one column, called `file_name`, pointing to relative aud...
2,008,195,298
I_kwDODunzps53sqDi
6,447
Support one dataset loader per config when using YAML
open
2023-11-23T13:03:07
2023-11-23T13:03:07
https://github.com/huggingface/datasets/issues/6447
severo
[ "enhancement" ]
[]
[]
COLLABORATOR
### Feature request See https://huggingface.co/datasets/datasets-examples/doc-unsupported-1 I would like to use CSV loader for the "csv" config, JSONL loader for the "jsonl" config, etc. ### Motivation It would be more flexible for the users ### Your contribution No specific contribution
2,007,092,708
I_kwDODunzps53oc3k
6,446
Speech Commands v2 dataset doesn't match AST-v2 config
closed
completed
2023-11-22T20:46:36
2023-11-28T14:46:08
2023-11-28T14:46:08Z
https://github.com/huggingface/datasets/issues/6446
vymao
[]
[]
[ "You can use `.align_labels_with_mapping` on the dataset to align the labels with the model config.\r\n\r\nRegarding the number of labels, only the special `_silence_` label corresponding to noise is missing, which is consistent with the model paper (reports training on 35 labels). You can run a `.filter` to drop ...
NONE
### Describe the bug [According](https://huggingface.co/MIT/ast-finetuned-speech-commands-v2) to `MIT/ast-finetuned-speech-commands-v2`, the model was trained on the Speech Commands v2 dataset. However, while the model config says the model should have 35 class labels, the dataset itself has 36 class labels. Moreover,...
2,006,568,368
I_kwDODunzps53mc2w
6,443
Trouble loading files defined in YAML explicitly
open
2023-11-22T15:18:10
2025-06-23T13:46:46
https://github.com/huggingface/datasets/issues/6443
severo
[ "bug" ]
[]
[ "There is a typo in one of the file names - `data/edf.csv` should be renamed to `data/def.csv` 🙂. ", "wow, I reviewed it twice to avoid being ashamed like that, but... I didn't notice the typo.\r\n\r\n---\r\n\r\nBesides this: do you think we would be able to improve the error message to make this clearer?", "H...
COLLABORATOR
Look at https://huggingface.co/datasets/severo/doc-yaml-2 It's a reproduction of the example given in the docs at https://huggingface.co/docs/hub/datasets-manual-configuration ``` You can select multiple files per split using a list of paths: my_dataset_repository/ ├── README.md ├── data/ │ ├── abc.csv ...
2,006,086,907
I_kwDODunzps53knT7
6,442
Trouble loading image folder with additional features - metadata file ignored
closed
completed
2023-11-22T11:01:35
2023-11-24T17:13:03
2023-11-24T17:13:03Z
https://github.com/huggingface/datasets/issues/6442
linoytsaban
[]
[]
[ "I reproduced too:\r\n- root: metadata file is ignored (https://huggingface.co/datasets/severo/doc-image-3)\r\n- data/ dir: metadata file is ignored (https://huggingface.co/datasets/severo/doc-image-4)\r\n- train/ dir: works (https://huggingface.co/datasets/severo/doc-image-5)" ]
NONE
### Describe the bug Loading image folder with a caption column using `load_dataset(<image_folder_path>)` doesn't load the captions. When loading a local image folder with captions using `datasets==2.13.0` ``` from datasets import load_dataset data = load_dataset(<image_folder_path>) data.column_names ``` ...
2,004,985,857
I_kwDODunzps53gagB
6,441
Trouble Loading a Gated Dataset For User with Granted Permission
closed
completed
2023-11-21T19:24:36
2023-12-13T08:27:16
2023-12-13T08:27:16Z
https://github.com/huggingface/datasets/issues/6441
e-trop
[]
[]
[ "> Also when they try to click the url link for the dataset they get a 404 error.\r\n\r\nThis seems to be a Hub error then (cc @SBrandeis)", "Could you report this to https://discuss.huggingface.co/c/hub/23, providing the URL of the dataset, or at least if the dataset is public or private?", "Thanks for the rep...
NONE
### Describe the bug I have granted permissions to several users to access a gated huggingface dataset. The users accepted the invite and when trying to load the dataset using their access token they get `FileNotFoundError: Couldn't find a dataset script at .....` . Also when they try to click the url link for the d...
2,004,509,301
I_kwDODunzps53emJ1
6,440
`.map` not hashing under python 3.9
closed
completed
2023-11-21T15:14:54
2023-11-28T16:29:33
2023-11-28T16:29:33Z
https://github.com/huggingface/datasets/issues/6440
changyeli
[]
[]
[ "Tried to upgrade Python to 3.11 - still get this message. A partial solution is to NOT use `num_proc` at all. It will be considerably longer to finish the job.", "Hi! The `model = torch.compile(model)` line is problematic for our hashing logic. We would have to merge https://github.com/huggingface/datasets/pull/...
NONE
### Describe the bug The `.map` function cannot hash under python 3.9. Tried to use [the solution here](https://github.com/huggingface/datasets/issues/4521#issuecomment-1205166653), but still get the same message: `Parameter 'function'=<function map_to_pred at 0x7fa0b49ead30> of the transform datasets.arrow_data...
2,002,916,514
I_kwDODunzps53YhSi
6,439
Download + preparation speed of datasets.load_dataset is 20x slower than huggingface hub snapshot and manual loding
open
2023-11-20T20:07:23
2025-12-17T09:49:21
https://github.com/huggingface/datasets/issues/6439
AntreasAntoniou
[]
[]
[ "Hi Antreas, facing a similar type of bug, did you find any workaround?? " ]
NONE
### Describe the bug I am working with a dataset I am trying to publish. The path is Antreas/TALI. It's a fairly large dataset, and contains images, video, audio and text. I have been having multiple problems when the dataset is being downloaded using the load_dataset function -- even with 64 workers takin...
2,002,032,804
I_kwDODunzps53VJik
6,438
Support GeoParquet
open
2023-11-20T11:54:58
2024-02-07T08:36:51
https://github.com/huggingface/datasets/issues/6438
severo
[ "enhancement" ]
[]
[ "Thank you, @severo ! I would be more than happy to help in any way I can. I am not familiar with this repo's codebase, but I would be eager to contribute. :)\r\n\r\nFor the preview in Datasets Hub, I think it makes sense to just display the geospatial column as text. If there were a dataset loader, though, I think...
COLLABORATOR
### Feature request Support the GeoParquet format ### Motivation GeoParquet (https://geoparquet.org/) is a common format for sharing vectorial geospatial data on the cloud, along with "traditional" data columns. It would be nice to be able to load this format with datasets, and more generally, in the Datasets Hub...
2,001,272,606
I_kwDODunzps53SP8e
6,437
Problem in training iterable dataset
open
2023-11-20T03:04:02
2025-11-06T17:15:41
https://github.com/huggingface/datasets/issues/6437
21Timothy
[]
[]
[ "Has anyone ever encountered this problem before?", "`split_dataset_by_node` doesn't give the exact same number of examples to each node in the case of iterable datasets, though it tries to be as equal as possible. In particular if your dataset is sharded and you have a number of shards that is a factor of the nu...
NONE
### Describe the bug I am using PyTorch DDP (Distributed Data Parallel) to train my model. Since the data is too large to load into memory at once, I am using load_dataset to read the data as an iterable dataset. I have used datasets.distributed.split_dataset_by_node to distribute the dataset. However, I have notice...
2,000,844,474
I_kwDODunzps53Qna6
6,436
TypeError: <lambda>() takes 0 positional arguments but 1 was given
closed
completed
2023-11-19T13:10:20
2025-05-05T18:21:21
2023-11-29T16:28:34Z
https://github.com/huggingface/datasets/issues/6436
ahmadmustafaanis
[]
[]
[ "This looks like a problem with your environment rather than `datasets`.", "I meet the same problem,\r\nand originally use\r\n```python\r\nlocale.getpreferredencoding = lambda : \"UTF-8\"\r\n```\r\nand change to\r\n```\r\nlocale.getpreferredencoding = lambda x: \"UTF-8\"\r\n```\r\nand it works.", "> I meet the ...
NONE
### Describe the bug ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) [<ipython-input-35-7b6becee3685>](https://localhost:8080/#) in <cell line: 1>() ----> 1 from datasets import Dataset 9 frames [/usr/lo...
2,000,690,513
I_kwDODunzps53QB1R
6,435
Cannot re-initialize CUDA in forked subprocess. To use CUDA with multiprocessing, you must use the 'spawn' start method
closed
completed
2023-11-19T04:21:16
2024-01-27T17:14:20
2023-12-04T16:57:43Z
https://github.com/huggingface/datasets/issues/6435
kopyl
[]
[]
[ "[This doc section](https://huggingface.co/docs/datasets/main/en/process#multiprocessing) explains how to modify the script to avoid this error.", "@mariosasko thank you very much, i'll check it", "@mariosasko no it does not\r\n\r\n`Dataset.filter() got an unexpected keyword argument 'with_rank'`" ]
NONE
### Describe the bug 1. I ran dataset mapping with `num_proc=6` in it and got this error: `RuntimeError: Cannot re-initialize CUDA in forked subprocess. To use CUDA with multiprocessing, you must use the 'spawn' start method` I can't actually find a way to run multi-GPU dataset mapping. Can you help? ### Steps to...
1,999,258,140
I_kwDODunzps53KkIc
6,432
load_dataset does not load all of the data in my input file
open
2023-11-17T14:28:50
2023-11-22T17:34:58
https://github.com/huggingface/datasets/issues/6432
demongolem-biz2
[]
[]
[ "You should use `datasets.load_dataset` instead of `nlp.load_dataset`, as the `nlp` package is outdated.\r\n\r\nIf switching to `datasets.load_dataset` doesn't fix the issue, sharing the JSON file (feel free to replace the data with dummy data) would be nice so that we can reproduce it ourselves." ]
NONE
### Describe the bug I have 127 elements in my input dataset. When I do a len on the dataset after loaded, it is only 124 elements. ### Steps to reproduce the bug train_dataset = nlp.load_dataset(data_args.dataset_path, name=data_args.qg_format, split=nlp.Split.TRAIN) valid_dataset = nlp.load_dataset(data_...
1,994,579,267
I_kwDODunzps524t1D
6,422
Allow to choose the `writer_batch_size` when using `save_to_disk`
open
2023-11-15T11:18:34
2023-11-16T10:00:21
https://github.com/huggingface/datasets/issues/6422
NathanGodey
[ "enhancement" ]
[]
[ "We have a config variable that controls the batch size in `save_to_disk`:\r\n```python\r\nimport datasets\r\ndatasets.config.DEFAULT_MAX_BATCH_SIZE = <smaller_batch_size>\r\n...\r\nds.save_to_disk(...)\r\n```", "Thank you for your answer!\r\n\r\nFrom what I am reading in `https://github.com/huggingface/datasets/...
NONE
### Feature request Add an argument in `save_to_disk` regarding batch size, which would be passed to `shard` and other methods. ### Motivation The `Dataset.save_to_disk` method currently calls `shard` without passing a `writer_batch_size` argument, thus implicitly using the default value (1000). This can result in R...
1,993,149,416
I_kwDODunzps52zQvo
6,417
Bug: LayoutLMv3 finetuning on FUNSD Notebook; Arrow Error
closed
completed
2023-11-14T16:53:20
2023-11-16T20:23:41
2023-11-16T20:23:41Z
https://github.com/huggingface/datasets/issues/6417
Davo00
[]
[]
[ "Very strange: `datasets-cli env`\r\n> \r\n> Copy-and-paste the text below in your GitHub issue.\r\n> \r\n> - `datasets` version: 2.9.0\r\n> - Platform: macOS-14.0-arm64-arm-64bit\r\n> - Python version: 3.9.13\r\n> - PyArrow version: 8.0.0\r\n> - Pandas version: 1.3.5\r\n\r\nAfter updating datasets and pyarrow on b...
NONE
### Describe the bug Arrow issues when running the example Notebook laptop locally on Mac with M1. Works on Google Collab. **Notebook**: https://github.com/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv3/Fine_tune_LayoutLMv3_on_FUNSD_(HuggingFace_Trainer).ipynb **Error**: `ValueError: Arrow type extensi...